OSDN Git Service

For Ian Bolton <ian.bolton@arm.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
2
3         PR target/45070
4         * config/arm/arm.c (arm_output_epilogue): Ensure that return
5          value of size 1-3 is handled correctly.
6
7 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
8
9         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
10         type for the conditional has wide enough range.
11
12 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
13
14         PR target/45327
15         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
16         ix86_binary_operator_ok.
17
18 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
19
20         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
21         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
22         code to output insn mnemonic.  Fix comment.
23         (*addsi_1_zext): Add r-r-0 alternative 1.
24         <TYPE_LEA>: Split insn to lea.
25         <default>: Handle alternative 1.
26         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
27         multi-level if_then_else RTX to set "type" attribute.
28         <default>: Handle alternative 2.
29         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
30         Use cond RTX instead of multi-level if_then_else RTX to set
31         "type" attribute.
32         <default>: Handle alternatives 2 and 4.
33         (lea splitters): Update calls to ix86_lea_for_add_ok.
34
35         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
36         argument.
37         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
38
39 2010-08-18  Richard Guenther  <rguenther@suse.de>
40
41         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
42         use operand helpers.
43
44 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
45
46         PR middle-end/45292
47         * optabs.c (expand_bool_compare_and_swap): Expand pending
48         pops before trying the optab.
49
50 2010-08-18  Yao Qi  <yao@codesourcery.com>
51
52         PR target/45094
53         * config/arm/arm.c (output_move_double): Fix typo generating
54         instructions ('ldr'->'str').
55
56 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
57
58         PR rtl-optimization/42575
59         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
60         live ranges.
61
62 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
63
64         * config/arm/arm-protos.h (arm_expand_sync): New.
65         (arm_output_memory_barrier, arm_output_sync_insn): New.
66         (arm_sync_loop_insns): New.
67         * config/arm/arm.c (FL_ARCH7): New.
68         (FL_FOR_ARCH7): Include FL_ARCH7.
69         (arm_arch7): New.
70         (arm_print_operand): Support %C markup.
71         (arm_legitimize_sync_memory): New.
72         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
73         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
74         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
75         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
76         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
77         (arm_process_output_sync_insn, arm_output_sync_insn): New.
78         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
79         * config/arm/arm.h (struct arm_sync_generator): New.
80         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
81         (TARGET_HAVE_MEMORY_BARRIER): New.
82         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
83         * config/arm/arm.md: Include sync.md.
84         (UNSPEC_MEMORY_BARRIER): New.
85         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
86         (VUNSPEC_SYNC_OP):New.
87         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
88         (sync_result, sync_memory, sync_required_value): New attributes.
89         (sync_new_value, sync_t1, sync_t2): Likewise.
90         (sync_release_barrier, sync_op): Likewise.
91         (length): Add logic to length attribute defintion to call
92         arm_sync_loop_insns when appropriate.
93         * config/arm/sync.md: New file.
94
95 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
96
97         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
98         ENABLE_TREE_CHECKING.
99         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
100         and GCC >= 4.3.
101
102 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
103
104         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
105         or optimizing for size, always avoid lea if possible.
106
107         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
108
109 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
110
111         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
112         Dunmmy function with NULL return unless the target is
113         OSX >= 10.6 (Darwin10).
114
115 2010-08-17  Jack Howarth <howarth@bromo.med.uc.edu>
116
117         * gcc.c (spec_function): Add remove-outfile.
118         (remove_outfile_spec_function): New function.
119         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
120         * invoke.texi (replace-outfile): Document.
121
122 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
123
124         PR target/45296
125         * reginfo.c (globalize_reg): Reject stack registers.
126
127 2010-08-17  Richard Guenther  <rguenther@suse.de>
128
129         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
130         list of conditional equivalences.
131         (free_all_edge_infos): Adjust.
132         (record_equivalences_from_incoming_edge): Likewise.
133         (record_cond): Likewise.
134         (build_and_record_new_cond): Likewise.
135         (record_conditions): Likewise.
136         (dom_opt_leave_block): Likewise.
137
138 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
139
140         * doc/invoke.texi (ms-extension): Add documentation.
141
142 2010-08-17  Richard Guenther  <rguenther@suse.de>
143
144         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
145
146 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
147
148         PR c/40563
149         * c-decl.c (diagnose_uninitialized_cst_member): New function.
150         (finish_decl): Use it to issue a -Wc++-compat warning about
151         uninitialized const field in struct or union.
152
153         (finish_struct): Use strip_array_types.
154
155 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
156
157         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
158         functions.
159         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
160         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
161         call block_nreverse here.
162         (blocks_nreverse): Rename decl temporary to block.
163
164 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
165
166         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
167         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
168         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
169         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
170         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
171         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
172         thumb2_iorsi3): Delete.
173         (orsi_notsi_si): No longer a named pattern.
174         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
175         * config/arm/predicates.md (shift_amount_operand): New.
176         (mult_operator): New.
177         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
178         attr enabled): New.
179         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
180         arch matches t2.
181         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
182         (not_shiftsi_compare0): Likewise, renamed from
183         arm_notsi_shiftsi_compare0.
184         (not_shiftsi_compare0_scratch): Likweise, renamed from
185         arm_notsi_shiftsi_compare0_scratch.
186         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
187         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
188         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
189         so that the register alternative is disabled when the shift_operator
190         is MULT.  Use "M" as the constraint for constants.
191         (arith_shiftsi splitter): Enable for TARGET_32BIT.
192         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
193         constraint for constants.
194         (arith_shiftsi_compare0_scratch): Likewise.
195         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
196         Handle Thumb2 alternative.
197
198 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
199
200         * doc/options.texi (NoDriverArg): Document.
201         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
202         -MDX and -MMDX.
203         * opt-functions.awk (switch_flags): Handle NoDriverArg.
204         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
205         marking for CL_NO_DRIVER_ARG options when in the driver.
206         * opts.h (CL_NO_DRIVER_ARG): Define.
207         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
208         CL_COMMON): Update values.
209
210 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
211
212         * common.opt: Add driver options.
213         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
214         * doc/options.texi (Driver, RejectDriver): Document.
215         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
216         print_prog_name, print_multi_directory, print_sysroot,
217         print_multi_os_directory, print_multi_lib,
218         print_sysroot_headers_suffix, report_times, combine_flag,
219         use_pipes, wrapper_string): Remove.
220         (save_switch, driver_unknown_option_callback,
221         driver_wrong_lang_callback, driver_post_handling_callback,
222         driver_handle_option): New.
223         (spec_lang, last_language_n_infiles): Make file-scope static
224         instead of local to process_command.
225         (process_command): Use decode_cmdline_options_to_array and
226         read_cmdline_option for option processing.  Compute have_c in
227         prescan of decoded options.
228         * opt-functions.awk (switch_flags): Handle Driver and
229         RejectDriver.
230         (var_type, var_type_struct): Handle Separate options as generating
231         const char * variables.
232         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
233         CL_TARGET to be passed by caller if required.
234         (decode_cmdline_options_to_array): Update comment.
235         * opts.c (complain_wrong_lang): Handle options only valid for the
236         driver.
237         (decode_options): Update call to decode_cmdline_options_to_array.
238         (print_filtered_help): Ignore driver-only options.
239         (print_specific_help): Ignore CL_DRIVER.
240         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
241         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
242         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
243         Update values.
244
245 2010-08-16  Richard Guenther  <rguenther@suse.de>
246
247         * tree-cfg.c (verify_types_in_gimple_reference): Verify
248         TARGET_MEM_REF a bit.
249         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
250         (create_mem_ref_raw): Always create TMR_OFFSET, store the
251         alias pointer type via it.
252         (copy_mem_ref_info): Adjust.
253         (maybe_fold_tmr): Likewise.
254         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
255         (reference_alias_ptr_type): Likewise.
256         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
257         adjust documentation of TMR_OFFSET operand.
258         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
259         use the alias pointer type.
260         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
261         initialize mem attrs but the TMR itself.
262         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
263         similar to MEM_REF.
264         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
265         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
266         (unshare_and_remove_ssa_names): Likewise.
267         (copy_ref_info): Adjust.
268         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
269         TARGET_MEM_REF case.
270         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
271         at TMR_ORIGINAL.
272         * tree.h (TMR_ORIGINAL): Remove.
273         * gimple.c (get_base_address): For TARGET_MEM_REF with a
274         symbol return that.
275         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
276         with a symbol.
277         (get_addr_base_and_unit_offset): Likewise.
278         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
279         TARGET_MEM_REFs.
280         (indirect_ref_may_alias_decl_p): Likewise.
281         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
282
283 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
284
285         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
286         with GCC version 4.6, the default setting (when not optimizing
287         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
288         been changed to -fomit-frame-pointer.
289
290 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
291
292         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
293         Darwin10.  Do not link libgcc.a for Darwin >= 9.
294
295 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
296
297         * doc/invoke.texi (Warning Options): Fix terminology and markup
298         in the description of how unknown warning options are handled.
299
300 2010-08-15  Ira Rosen  <irar@il.ibm.com>
301
302         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
303         in basic blocks.
304         (vect_supportable_dr_alignment): Check alignment for basic blocks.
305         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
306         data references.
307         (vect_bb_vectorization_profitable_p): New function.
308         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
309         check if it's worthwhile to vectorize the basic block.
310
311 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
312
313         * reload.h (register_move_cost, memory_move_secondary_cost,
314         secondary_reload_class): Adjust prototype.
315         * rtl.h (reg_class_subset_p): Adjust prototype.
316         * reload.c (secondary_reload_class): Change arguments type from
317         enum reg_class to reg_class_t. Change result type to reg_class_t.
318         * reginfo.c (register_move_cost, reg_class_subset_p): Change
319         arguments type from enum reg_class to reg_class_t.
320         (memory_move_secondary_cost): Change arguments type from
321         enum reg_class to reg_class_t. Change type of saved_flags to
322         reg_class_t.
323
324         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
325         Remove macros.
326         (mips_cost): Remove.
327         (struct mips_rtx_cost_data): Moved to mips.c.
328         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
329         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
330         (mips_cost): Make static.
331         (mips_canonicalize_move_class): Change argument type to reg_class_t.
332         Change result type to reg_class_t.
333         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
334         type from enum reg_class to reg_class_t.
335         (mips_register_move_cost): Make static. Change arguments
336         type from enum reg_class to reg_class_t.
337         (mips_memory_move_cost): New function.
338         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
339
340 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
341
342         PR rtl-optimization/43358
343         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
344         of a single hard register, using simplify_subreg_regno to decide
345         what that register should be.
346
347 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
348
349         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
350         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
351         (loongson_pmull<V_suffix>): Rename to...
352         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
353
354 2010-08-13  Jack Howarth <howarth@bromo.med.uc.edu>
355
356         * gcc/configure.ac: Enable -fomit-frame-pointer on darwin
357         which support dwarf2.
358         * config/i386/i386.c (override_options): Same.
359
360 2010-08-13  Jie Zhang  <jie@codesourcery.com>
361
362         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
363
364 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
365
366         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
367         -MMD.
368
369 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
370
371         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
372         up dot_prod pattern searching if a stmt is outside the loop.
373
374 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
375             Uros Bizjak  <ubizjak@gmail.com>
376
377         * config.gcc: Handle --enable-frame-pointer.
378
379         * configure.ac: Add --enable-frame-pointer.
380         * configure: Regenerated.
381
382         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
383         (override_options): If not configured with --enable-frame-pointer,
384         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
385         optimizing for size), -fasynchronous-unwind-tables and
386         -maccumulate-outgoing-args by default.
387
388 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
389
390         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
391
392         PR middle-end/45262
393         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
394         -a overflows.  Normalize the range.
395
396 2010-08-12  Richard Guenther  <rguenther@suse.de>
397
398         PR tree-optimization/45232
399         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
400         for types with undefined overflow.
401         (reassociate_bb): Allow re-associating of bit and min/max
402         operations for types with undefined overflow.
403         * tree-ssa-forwprop.c (associate_plusminus): New function.
404         (tree_ssa_forward_propagate_single_use_vars): Call it.
405
406 2010-08-12  Richard Guenther  <rguenther@suse.de>
407
408         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
409         * tree-ssa-alias.c (get_ptr_info): Move ...
410         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
411         align and misalign fields conservatively.
412         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
413         derive alignment information.
414         (evaluate_stmt): Derive alignment information from memory
415         allocation functions.
416         * tree.h (get_pointer_alignment): Make unsigned.
417         * builtins.c (get_object_alignment): Use alignment information we
418         have computed for pointers.
419         (get_pointer_alignment): Likewise.  Make conservative, return
420         and unsigned value.
421         (expand_builtin_strlen): Adjust.
422         (expand_builtin_memcmp): Likewise.
423         (expand_builtin_strcmp): Likewise.
424         (expand_builtin_strncmp): Likewise.
425         (get_builtin_sync_mem): Use at least mode alignment.
426         (fold_builtin_memset): Adjust.
427         (fold_builtin_memory_op): Likewise.
428         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
429         information also dump pointer alignment knowledge.
430         (dump_gimple_stmt): Likewise.
431
432 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
433
434         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
435         (EMPTY_FIELD_BOUNDARY): Remove.
436         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
437
438 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
439
440         PR debug/45259
441         * caller-save.c (save_call_clobbered_regs): Only swap notes with
442         DEBUG_INSNs if n_regs_saved.
443
444 2010-08-12  Wei Guozhi  <carrot@google.com>
445
446         PR target/44999
447         * config/arm/arm.md (andsi3): Change to zero extension if possible.
448         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
449
450 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
451
452         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
453
454         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
455
456 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
457
458         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
459         the case removed in the previous patch, when the only phi argument
460         is defined in the same loop as the phi node itself.  Handle it
461         separately from the invariant case by both propagating it outside
462         the region and replacing the phi node with an assign.
463
464 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
465
466         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
467         constant phi nodes with one argument are is_gimple_min_invariant
468         and SSA_NAME_IS_DEFAULT_DEF.
469
470 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
471
472         * graphite-cloog-util.c (oppose_constraint):
473         Extend loop counter's value range (CLOOG_ORG).
474         (cloog_matrix_to_ppl_constraint): Same.
475         (new_Constraint_System_from_Cloog_matrix): Same.
476         * graphite-cloog-compat.h (matrix_num_type): New.
477
478 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
479
480         * graphite.c (graphite_initialize): Do not initialize
481         CLooG and initialize the Parma Polyhedra Library
482         manually when using CLOOG_ORG.
483         (graphite_finalize): Do not finalize CLooG and finalize
484         the Parma Polyhedra Library manually when using CLOOG_ORG.
485         * graphite-cloog-compat.h (cloog_initialize): Hide function
486         when using CLOOG_ORG.
487         (cloog_finalize): Same.
488
489 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
490
491         * graphite-clast-to-gimple.c (free_scattering): Change
492         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
493         (CLOOG_ORG).
494         (build_cloog_prog): Same.
495         * graphite-cloog-compat.h (cloog_domain): Removed.
496         (cloog_scattering): New.
497         (cloog_set_domain): Removed.
498         (cloog_set_scattering): New.
499         (cloog_next_domain): Removed.
500         (cloog_next_scattering): New.
501         (cloog_set_next_domain): Removed.
502         (cloog_set_next_scattering): New.
503         (CloogScatteringList): New.
504         (CloogScattering): New.
505         (cloog_scattering_free): New.
506         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
507         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
508         New.
509
510 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
511
512         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
513         CloogState.
514         (set_cloog_options): Same.
515         (print_clast_stmt): Same.
516         (scop_to_clast): Same.
517         (print_generated_program): Same.
518         (gloog): Same.
519         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
520         (scop_to_clast): Extend with CloogState.
521         * graphite-cloog-util.c: Include graphite-cloog-compat.h
522         (new_Cloog_Domain_from_ppl_Polyhedron):
523         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
524         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
525         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
526         * graphite-cloog-util.h (build_cloog_prog): Same.
527         * graphite-cloog-copat.h (build_cloog_prog): New.
528         (CloogState): New.
529         (cloog_state_malloc): New.
530         (cloog_state_free): New.
531         (cloog_loop_malloc): New.
532         (cloog_options_malloc): New.
533         (cloog_statement_alloc): New.
534         (cloog_domain_from_cloog_matrix): New.
535         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
536         (new_Cloog_Domain_from_ppl_Polyhedron): New.
537
538 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
539
540         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
541         type of NAME now depends on used CLooG version.
542         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
543         (gcc_type_for_clast_expr): Same.
544         (print_clast_stmt): Replace pprint with clast_pprint.
545         * graphite-cloog-compat.h: Provide compatibility macros for
546         CLooG Legacy.
547         (clast_name_p): New.
548         (clast_expr_term): New.
549         (clast_expr_red): New.
550         (clast_expr_bin): New.
551         (clast_pprint): New.
552
553 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
554
555         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
556         compatible to newer CLooG releases (CLOOG_ORG).
557         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
558         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
559         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
560         (build_cloog_prog) : New.
561         (cloog_program_extract_scalars): New.
562         (cloog_program_scatter): New.
563
564 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
565
566         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
567         conditionally (CLOOG_ORG).
568         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
569         (cloog_statement_usr): New.
570         (cloog_domain): Same.
571         (cloog_set_domain): Same.
572         (cloog_next_domain): Same.
573         (cloog_set_next_domain): Same.
574         (cloog_program_nb_scattdims): Same.
575         (cloog_program_set_nb_scattdims): Same.
576         (cloog_program_names): Same.
577         (cloog_program_set_names): Same.
578         (cloog_program_set_context): Same.
579         (cloog_program_set_loop): Same.
580         (cloog_program_blocklist): Same.
581         (cloog_program_set_blocklist): Same.
582         (cloog_program_scaldims): Same.
583         (cloog_program_set_scaldims): Same.
584         (cloog_names_nb_parameters): Same.
585         (cloog_names_set_nb_parameters): Same.
586         (cloog_names_parameters): Same.
587         (cloog_names_set_parameters): Same.
588         (cloog_names_set_nb_iterators): Same.
589         (cloog_names_set_iterators): Same.
590         (cloog_names_set_nb_scattering): Same.
591         (cloog_names_set_scattering): Same.
592         (cloog_statement_set_usr): Same.
593         (cloog_loop_set_next): Same.
594         (cloog_loop_set_domain): Same.
595         (cloog_loop_set_block): Same.
596         (cloog_block_list_next): Same.
597         (cloog_block_list_set_next):
598         (cloog_block_list_set_block): Same.
599
600 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
601
602         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
603         a bool.
604         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
605         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
606         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
607         when something has been changed.
608         (rewrite_commutative_reductions_out_of_ssa): Same.
609
610 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
611
612         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
613         handle the case when def is in the sese region.
614         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
615         for invariant expressions.
616         (rewrite_cross_bb_phi_deps): Removed.
617         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
618         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
619         rewrite_cross_bb_phi_deps.
620
621 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
622
623         * graphite-sese-to-poly.c
624         (rewrite_commutative_reductions_out_of_ssa_loop): Call
625         scev_analyzable_p only on is_gimple_reg
626
627 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
628
629         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
630         (rewrite_close_phi_out_of_ssa): Propagate constant values or
631         parametric expressions outside the scop region.
632         (rewrite_cross_bb_scalar_deps): Same.
633         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
634
635 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
636
637         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
638         SSA_NAME_DEF_STMT only on SSA_NAMEs.
639
640 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
641
642         * tree-scalar-evolution.c (instantiate_scev_name): Do not
643         instantiate default definitions.
644
645 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
646             Sebastian Pop  <sebastian.pop@amd.com>
647
648         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
649         (loop_exits_from_bb_p): New.
650         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
651         (loop_exits_from_bb_p): Declared.
652         * graphite-scop-detection.c (scopdet_basic_block_info): Call
653         loop_exits_to_bb_p.
654
655 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
656
657         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
658         extra parameter for the region.  Call scev_analyzable_p.
659         (rewrite_reductions_out_of_ssa): Update call to
660         rewrite_close_phi_out_of_ssa.
661         (rewrite_cross_bb_phi_deps): Same.
662         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
663         parameter for the region.  Call scev_analyzable_p.
664         (rewrite_commutative_reductions_out_of_ssa): Update call to
665         rewrite_commutative_reductions_out_of_ssa_loop.
666
667 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
668
669         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
670
671 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
672
673         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
674         SSA scalar phi nodes that can be scev_analyzable_p.
675
676 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
677
678         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
679         handle SSA_NAME_IS_DEFAULT_DEF.
680
681 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
682
683         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
684
685 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
686
687         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
688         case non close-phi nodes with one argument.
689
690 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
691
692         * sese.h (scev_analyzable_p): Scevs could be expressions without
693         chrecs and still be scev_analyzable_p.
694
695 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
696
697         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
698
699 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
700
701         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
702         * cfgloop.h (struct loop): Remove single_iv field.
703         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
704         (scop_canonicalize_loops): Removed.
705         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
706         over all the loop phi nodes in loop->header.
707         (build_poly_scop): Remove use of scop_canonicalize_loops.
708
709 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
710
711         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
712         handle GIMPLE_CALL.
713
714 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
715
716         * tree-chrec.c (chrec_apply): Should only apply to the specified
717         variable.  Also handle multivariate chains of recurrences that
718         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
719
720 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
721
722         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
723         (debug_clast_name_indexes_1): Removed.
724         (debug_clast_name_indexes): Removed.
725         (pbb_to_depth_to_oldiv): Removed.
726         (build_iv_mapping): Replace the use of rename_map with iv_map.
727         (translate_clast_user): Remove uses of rename_map.  Allocate and
728         free iv_map.
729         (translate_clast_for_loop): Remove uses of rename_map.
730         (translate_clast_for): Same.
731         (translate_clast_guard): Same.
732         (translate_clast): Same.
733         (gloog): Same.
734         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
735         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
736         * sese.c (set_rename): Now static.
737         (rename_variables_in_stmt): Removed.
738         (rename_uses): New.
739         (is_parameter): Removed.
740         (is_iv): Removed.
741         (expand_scalar_variables_call): Removed.
742         (expand_scalar_variables_ssa_name): Removed.
743         (expand_scalar_variables_expr): Removed.
744         (expand_scalar_variables_stmt): Removed.
745         (expand_scalar_variables): Removed.
746         (rename_variables): Removed.
747         (remove_condition): Removed.
748         (get_true_edge_from_guard_bb): Removed.
749         (get_false_edge_from_guard_bb): Removed.
750         (struct igp): Removed.
751         (default_before_guard): Removed.
752         (convert_for_phi_arg): Removed.
753         (add_guard_exit_phis): Removed.
754         (insert_guard_phis): Removed.
755         (graphite_copy_stmts_from_block): Now also uses iv_map and a
756         region.  Do not copy conditions.  Do not copy induction variables.
757         Call rename_uses.
758         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
759         the translated statement.  Use the iv_map for the induction
760         variable renaming.
761         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
762         (set_rename): Removed declaration.
763         (scev_analyzable_p): ...here.
764         * tree-chrec.c (chrec_apply_map): New.
765         * tree-chrec.h (chrec_apply_map): Declared.
766
767 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
768
769         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
770         insert_loop_close_phis.
771         * sese.c (name_defined_in_loop_p): Removed.
772         (expr_defined_in_loop_p): Removed.
773         (alive_after_loop): Removed.
774         (close_phi_not_yet_inserted_p): Removed.
775         (struct alep): Removed.
776         (add_loop_exit_phis): Removed.
777         (insert_loop_close_phis): Removed.
778
779 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
780
781         * graphite-cloog-util.c
782         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
783         * graphite-poly.c
784         (psct_scattering_dim_for_loop_depth): Same.
785
786 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
787
788         * graphite-cloog-util.h: Added cloog.h.
789         * graphite-blocking.c: Removed cloog.h.
790         * graphite-dependences.c: Same.
791         * graphite-interchange.c: Same.
792         * graphite-poly.c: Same.
793         * graphite-ppl.c: Same.
794         * graphite-scop-detection.c: Same.
795         * graphite-sese-to-poly.c:
796         Removed cloog.h.
797         Removed graphite-clast-to-gimple.h.
798         (check_poly_representation): Removed (unused).
799         * graphite-sese-to-poly.h
800         (check_poly_representation): Removed (unused).
801
802 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
803
804         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
805         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
806         (graphite-cloog-util.o): New.
807         (graphite-ppl.o): Added graphite-cloog-util.h.
808         * graphite-clast-to-gimple.c:
809         Added graphite-cloog-util.h to include statements.
810         * graphite-cloog-util.c: New.
811         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
812         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
813         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
814         (new_C_Polyhedron_from_Cloog_Matrix): Same.
815         (insert_constraint_into_matrix): Same.
816         (ppl_Constrain_System_number_of_constraints): Same.
817         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
818         (oppose_constraint): Same.
819         (cloog_matrix_to_ppl_constraint): Same.
820         (new_Constraint_System_from_Cloog_Matrix): Same.
821         * graphite-cloog-util.h: New.
822         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
823         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
824         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
825         (new_C_Polyhedron_from_Cloog_Matrix): Same.
826         (insert_constraint_into_matrix): Same.
827         * graphite-ppl.c:
828         Added graphite-cloog-util.h to include statements.
829         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
830         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
831         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
832         (new_C_Polyhedron_from_Cloog_Matrix): Same.
833         (insert_constraint_into_matrix): Same.
834         (ppl_Constrain_System_number_of_constraints): Same.
835         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
836         (oppose_constraint): Same.
837         (cloog_matrix_to_ppl_constraint): Same.
838         (new_Constraint_System_from_Cloog_Matrix): Same.
839         * graphite-ppl.h:
840         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
841         graphite-cloog-util.h.
842         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
843         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
844         (new_C_Polyhedron_from_Cloog_Matrix): Same.
845         (insert_constraint_into_matrix): Same.
846
847 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
848
849         * graphite-clast-to-gimple.c
850         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
851         (precision_for_interval): Same.
852         (gcc_type_for_interval): Same.
853         (compute_type_for_level): Same.
854         * graphite-interchange.c
855         (lst_interchange_profitable_p): Same.
856         * graphite-poly.c
857         (psct_scattering_dim_for_loop_depth): Same.
858         * graphite-ppl.c
859         (ppl_max_for_le_pointset): Same.
860         (ppl_min_for_le_pointset): Same.
861
862 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
863
864         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
865         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
866
867 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
868
869         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
870         rewrite_close_phi_out_of_ssa.
871
872 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
873
874         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
875
876 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
877
878         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
879         rename_map.
880         * sese.c (debug_rename_map): Same.
881         (get_rename): Same.
882         (set_rename): Same.
883         (rename_variables_in_stmt): Same.
884         (expand_scalar_variables_call): Same.
885         (expand_scalar_variables_ssa_name): Same.
886         (expand_scalar_variables_expr): Same.
887         (expand_scalar_variables_stmt): Same.
888         (expand_scalar_variables): Same.
889         (rename_variables): Same.
890         (graphite_copy_stmts_from_block): Same.
891         (copy_bb_and_scalar_dependences): Same.
892
893 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
894
895         * graphite-clast-to-gimple.c (copy_renames): Removed.
896         (translate_clast_for): Do not call copy_renames.
897         (translate_clast_guard): Same.
898
899 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
900
901         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
902         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
903         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
904         before rewrite_cross_bb_scalar_deps.
905
906 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
907
908         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
909         Early return in when flag_associative_math is not set.
910
911 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
912
913         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
914         of SSA copies on edges except for loop->latch.
915
916 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
917
918         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
919         Split out of rewrite_reductions_out_of_ssa.
920         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
921         Declared.
922         * graphite.c (graphite_transform_loops): Call it.
923
924 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
925
926         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
927
928 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
929
930         * dbgcnt.def (graphite_scop): New counter.
931         * graphite.c: Include dbgcnt.h.
932         (graphite_transform_loops): Use new counter to limit transformations.
933         * Makefile.in (graphite.o): Depend on DBGCNT_H.
934
935 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
936
937         * passes.c (init_optimization_passes): Add pass_graphite.
938         Schedule a pass_copy_prop before pass_graphite_transforms.
939         * timevar.def (TV_GRAPHITE): Declared.
940         * tree-pass.h (pass_graphite): Declared.
941         * tree-ssa-loop.c (pass_graphite): New.
942
943 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
944
945         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
946         Remove calls to rename_nb_iterations and rename_sese_parameters.
947         * graphite-clast-to-gimple.h (gloog): Update declaration.
948         * graphite.c (graphite_transform_loops): Update call to gloog.
949         * sese.c (rename_variables_in_expr): Removed.
950         (rename_nb_iterations): Removed.
951         (rename_sese_parameters): Removed.
952         * sese.h (rename_nb_iterations): Removed.
953         (rename_sese_parameters): Removed.
954
955 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
956
957         * graphite-clast-to-gimple.c (gloog): Remove call to
958         sese_adjust_liveout_phis.
959         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
960         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
961         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
962         rewrite_phi_out_of_ssa.
963         * sese.c (get_vdef_before_sese): Removed.
964         (sese_adjust_vphi): Removed.
965         (sese_adjust_liveout_phis): Removed.
966         * sese.h (sese_adjust_liveout_phis): Removed.
967
968 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
969
970         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
971         argument for the place after which to insert the out of SSA copy.
972         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
973         (rewrite_phi_out_of_ssa): Same.
974         (rewrite_cross_bb_scalar_deps): Same.
975         (insert_copyout): Removed.
976         (insert_copyin): Removed.
977         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
978         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
979         insert_copyin.
980
981 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
982
983         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
984         (rewrite_reductions_out_of_ssa): Same.
985         (rewrite_commutative_reductions_out_of_ssa): Same.
986         (build_poly_scop): Do not call these functions.
987         * graphite-sese-to-poly.h (build_poly_scop): Declared.
988         (rewrite_reductions_out_of_ssa): Declared.
989         (rewrite_commutative_reductions_out_of_ssa): Declared.
990         * graphite.c (graphite_transform_loops): Call on every scop
991         rewrite_commutative_reductions_out_of_ssa before calling
992         rewrite_reductions_out_of_ssa and build_scop_bbs.
993
994 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
995
996         * graphite-dependences.c (dot_deps): Make system call to dotty run
997         in background.
998         (dot_deps_stmt): Same.
999         * graphite-poly.c (dot_lst): Same.
1000
1001 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1002
1003         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
1004         phi_arg_in_outermost_loop.
1005         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
1006         (remove_invariant_phi): Same.
1007
1008 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
1009
1010         * target.def (output_addr_const_extra): New hook.
1011         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
1012         * doc/tm.texi: Regenerate.
1013         * targhooks.c (default_asm_output_addr_const_extra): New function.
1014         * targhooks.h (default_asm_output_addr_const_extra): Declare.
1015         * final.c: (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
1016         target hook.
1017
1018         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1019         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
1020         * config/i386/i386.h (output_addr_const_extra): Rename to...
1021         (i386_asm_output_addr_const_extra): ...this. Make static.
1022         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1023
1024 2010-08-11  Richard Henderson  <rth@redhat.com>
1025
1026         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
1027
1028 2010-08-11  Nick Clifton  <nickc@redhat.com>
1029
1030         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
1031         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
1032         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
1033         stormy16-lib2-cmpsi.c.
1034
1035         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
1036         -O2.
1037
1038 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
1039
1040         * opts.h (struct cl_option_handler_func): Make handler take
1041         cl_decoded_option structure as parameter, not individual elements.
1042         (struct cl_option_handlers): Make callbacks take cl_decoded_option
1043         structure as parameter, not individual elements.
1044         (handle_option): Take cl_decoded_option structure as parameter,
1045         not individual elements.
1046         (handle_generated_option): Declare.
1047         * opts-common.c (handle_option): Take cl_decoded_option structure
1048         as parameter, not individual elements.  Update calls to callback
1049         and handler functions.
1050         (handle_generated_option): New.
1051         (read_cmdline_option): Update calls to callback functions and
1052         handle_option.
1053         * opts.c (common_handle_option, complain_wrong_lang,
1054         unknown_option_callback, post_handling_callback,
1055         lang_handle_option, target_handle_option): Take cl_decoded_option
1056         structure as parameter, not individual elements.
1057         (lang_handle_option, target_handle_option, common_handle_option):
1058         Assert option has at most one argument.
1059         (enable_warning_as_error): Call handle_generated_option instead of
1060         handle_option.  Do not pass -Werror argument as argument of
1061         generated option.
1062
1063 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1064
1065         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
1066         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
1067         (SUBWORD_BOOL_CAS): Likewise.
1068         (SUBWORD_SYNC_OP): Likewise.
1069         (SUBWORD_TEST_AND_SET): Likewise.
1070         (FETCH_AND_OP_WORD): Parenthesise INF_OP
1071         (SUBWORD_SYNC_OP): Likewise.
1072         (OP_AND_FETCH_WORD): Likewise.
1073
1074 2010-08-10  Xinliang David Li  <davidxl@google.com>
1075
1076         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
1077         compute max/min offset in address.
1078
1079 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
1080
1081         * ira-live.c: Include sbitmap.h.
1082         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
1083         Compress live ranges even more.
1084
1085 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1086
1087         * coverage.c (ctr_labels): Delete.
1088
1089 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
1090
1091         PR bootstrap/45177
1092         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
1093         test here from arm_gen_load_multiple_1.
1094         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
1095         multiple_operation_profitable_p.
1096
1097 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1098
1099         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
1100         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
1101
1102 2010-08-10  Richard Henderson  <rth@redhat.com>
1103
1104         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
1105         after saving registers.  Assert that SSE registers are only saved
1106         with a sufficiently aligned frame.
1107         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
1108         remove stack_realign_fp handling.
1109         (ix86_expand_prologue): Save int registers before stack_realign_fp,
1110         and do not mark the stack alignment as frame related.
1111         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
1112
1113         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
1114         saves when re-aligning the stack.
1115
1116 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1117
1118         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
1119         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
1120         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
1121
1122 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1123
1124         * dwarf2out.c (struct die_struct): Move die_tag to the end.
1125
1126 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
1127
1128         * config/arm/iterators.md: New file.
1129         * config/arm/arm.md: Include iterators.md.
1130         (QHSI): Move to new file.
1131         (LTUGEU, cnb, optab, ior_xor): Likewise.
1132         * config/arm/iwmmxt.md (VMMX): Move to new file.
1133         (VSHFT, MMX_char): Likewise.
1134         * config/arm/neon.md (VD): Move to new file.
1135         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
1136         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
1137         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
1138         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
1139         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
1140         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
1141         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
1142         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
1143         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
1144         (Is_d_reg, V_mode_nunits): Likewise.
1145         * config/arm/vec-common.md (VALL): Move to new file.
1146         (VALLW, VINT, VINTW): Likewise.
1147
1148 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
1149
1150         PR middle-end/45182
1151         * combine.c (make_compound_operation): Don't try to convert
1152         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
1153
1154 2010-08-10  Richard Guenther  <rguenther@suse.de>
1155
1156         * tree.h (get_object_alignment): Adjust prototype.
1157         * builtins.c (get_object_alignment): Return unsigned int,
1158         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
1159         and TARGET_MEM_REF properly.
1160         (get_pointer_alignment): Adjust.
1161         * emit-rtl.c (get_mem_align_offset): Adjust comment.
1162         (set_mem_attributes_minus_bitpos): Adjust.
1163         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
1164
1165 2010-08-10  Richard Guenther  <rguenther@suse.de>
1166
1167         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
1168         (copy_prop_visit_assignment): Simplify.
1169         (copy_prop_visit_stmt): Also visit assignments from
1170         constants.
1171         (copy_prop_visit_phi_node): Use operand_equal_p.
1172
1173 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
1174
1175         * ipa-split.c (find_split_points): Free stack.
1176
1177 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
1178
1179         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
1180         * tree.c (tree_node_kind): Delete corresponding entries.
1181
1182 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1183
1184         * alias.c (may_alias_p): Remove unused ret.
1185
1186 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
1187
1188         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
1189         alias_sets_conflict_p.
1190         (walk_mems_1): Moved from alias.c.
1191         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
1192         in alias.c.
1193         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
1194         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
1195         * alias.c (walk_mems_2): Moved to ddg.c.
1196         (walk_mems_1): Ditto.
1197         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
1198         to ddg.c.
1199         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
1200         disambiguation.
1201         *(may_alias_p): New function to check whether two memory expression
1202         may alias or not. Currently used in buidling inter-iteration memory
1203         dependence.
1204         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
1205         (insn_alias_sets_conflict_p): Removed
1206         *rtl.h (may_alias_p): New function prototype.
1207
1208 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
1209
1210         * tree.c (nreverse): Assert that we don't have a BLOCK.
1211
1212 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
1213
1214         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
1215         * config/arm/arm.c (arm_get_pcs_model): Likewise.
1216         * config/avr/avr.c (init_cumulative_args): Likewise.
1217         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1218         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1219         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
1220         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
1221         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
1222         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1223         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
1224         * dwarf2out.c (gen_subprogram_die): Likewise.
1225         * function.c (allocate_struct_function): Likewise.
1226         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
1227         (deserves_ellipsis): Delete.
1228
1229 2010-08-09  Richard Guenther  <rguenther@suse.de>
1230
1231         * tree-ssa-copy.c (cached_last_copy_of): Remove.
1232         (valueize_val): New function.
1233         (get_last_copy_of): Remove.
1234         (set_copy_of_val): Simplify.
1235         (dump_copy_of): Likewise.
1236         (copy_prop_visit_cond_stmt): Use valueize_val.
1237         (copy_prop_visit_phi_node): Properly handle unvisited names.
1238         Drop code managing copy-of chains.
1239         (init_copy_prop): Adjust.
1240         (fini_copy_prop): Likewise.
1241         (execute_copy_prop): Remove obsolete comment.
1242
1243 2010-08-09  Richard Guenther  <rguenther@suse.de>
1244
1245         PR middle-end/44632
1246         * function.c (gimplify_parameters): Do not clear addressable
1247         bit of the original parameter.
1248
1249 2010-08-09  Richard Guenther  <rguenther@suse.de>
1250
1251         PR middle-end/45212
1252         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
1253         alignment from MEM_REF offset only if we took it from the
1254         base object.
1255
1256 2010-08-09  Eric Fisher <joefoxreal@gmail.com>
1257
1258         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
1259
1260 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
1261
1262         * c-tree.h (build_arg_info): Declare.
1263         * c-decl.c (build_arg_info): Define.
1264         (get_parm_info): Call it.  Delete initialization code.
1265         * c-parser.c (c_parser_parms_declarator): Likewise.
1266         (c_parser_parms_list_declaractor): Likewise.
1267
1268 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
1269
1270         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
1271         (struct c_arg_info): Change type of tags field.
1272         * c-decl.c (grokdeclarator): Update for changed type of tags field.
1273         (get_parm_info): Likewise.
1274         (store_parm_decls_newstyle): Likewise.
1275
1276 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
1277
1278         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
1279         (branch_island_list): Delete.
1280         (branch_islands): Declare.
1281         (add_compiler_branch_island): Adjust for branch_islands instead of
1282         branch_island_list.
1283         (macho_branch_islands): Likewise.
1284         (no_previous_def): Likewise.
1285         (get_prev_label): Likewise.
1286
1287 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1288
1289         PR boehm-gc/34544
1290         * gthr-posix.h (__gthread_start): Delete.
1291         (__gthread_active_init): Use pthread_default_stacksize_np instead of
1292         pthread_create to determine if hpux pthreads are active.
1293         * gthr-posix95.h (__gthread_start): Delete.
1294         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
1295
1296 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
1297
1298         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
1299         _WIN64 not expanded.
1300
1301 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
1302             H.J. Lu  <hongjiu.lu@intel.com>
1303
1304         PR target/45213
1305         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
1306         to output 32bit SFmode immediate as 8 byte sign extended value.
1307
1308 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1309
1310         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
1311         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
1312         (SUBWORD_BOOL_CAS): Likewise.
1313         (SUBWORD_SYNC_OP): Likewise.
1314         (SUBWORD_TEST_AND_SET): Likewise.
1315         (FETCH_AND_OP_WORD): Parenthesise INF_OP
1316         (SUBWORD_SYNC_OP): Likewise.
1317         (OP_AND_FETCH_WORD): Likewise.
1318
1319 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1320
1321         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
1322         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
1323         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
1324         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
1325         generic part.
1326         (cortex_a9_sched_adjust_cost): New function.
1327         (xscale_sched_adjust_cost): New function.
1328         * config/arm/arm-protos.h (struct tune_params): New field
1329         sched_adjust_cost.
1330         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
1331
1332 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
1333
1334         PR target/44942
1335         * config/sparc/sparc.c (function_arg_advance): Always take into account
1336         the padding, if any.
1337
1338 2010-08-06  Richard Guenther  <rguenther@suse.de>
1339
1340         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
1341         (dump_lattice_value): Dump it.
1342         (get_default_value): Adjust.
1343         (get_constant_value): Likewise.
1344         (set_value_varying): Likewise.
1345         (set_lattice_value): Make sure to not go up the lattice
1346         with bitwise constant values.
1347         (get_value_for_expr): Handle ADDR_EXPRs.
1348         (value_to_double_int): New function.
1349         (get_value_from_alignment): Likewise.
1350         (do_dbg_cnt): Adjust.
1351         (ccp_lattice_meet): Handle partially constant values.
1352         (bit_value_unop_1): New function.
1353         (bit_value_binop_1): Likewise.
1354         (bit_value_unop): Likewise.
1355         (bit_value_binop): Likewise.
1356         (evaluate_stmt): Track partially constant values if
1357         flag_tree_bit_ccp is set.
1358         (ccp_fold_stmt): Dump if we folded a predicate.
1359         (ccp_visit_stmt): Adjust.
1360         * common.opt (ftree-bit-ccp): New flag.
1361         * doc/invoke.texi (ftree-bit-ccp): Document.
1362         * opts.c (decode_options): Enable bit-CCP at -O1.
1363
1364 2010-08-06  Alan Modra  <amodra@gmail.com>
1365
1366         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
1367         and -mrelocatable-lib description.
1368
1369 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
1370
1371         From Martin Thuresson  <martint@google.com>
1372         * postreload.c (reload_cse_simplify_operands): Use
1373         SET_REGNO_RAW instead of SET_REGNO.
1374         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
1375         SET_REGNO.
1376         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
1377         instead of SET_REGNO.
1378         * rtl.h (SET_REGNO_RAW): New macro.
1379
1380 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
1381
1382         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
1383         computations.  Fix formatting issues.
1384         (num_sign_bit_copies1): Likewise.
1385         (canonicalize_condition): Likewise.
1386
1387 2010-08-05  Richard Henderson  <rth@redhat.com>
1388
1389         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
1390         (floor_log2): Use clz_hwi.
1391         (exact_log2): Use ctz_hwi.
1392         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
1393         * builtins.c (fold_builtin_bitop): Use them.
1394         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1395         * combine.c (get_pos_from_mask): Use ctz_hwi.
1396         * double-int.c (double_int_ctz): Likewise.
1397         * explow.c (force_reg): Likewise.
1398         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
1399
1400 2010-08-05  Richard Henderson  <rth@redhat.com>
1401
1402         PR target/45189
1403         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
1404         the alignment constant is properly sign-extended.
1405
1406 2010-08-05  Richard Guenther  <rguenther@suse.de>
1407
1408         * expr.c (store_expr): Use emit_block_move only if both
1409         source and target are MEMs.  Use store_bit_field if only
1410         the target is a MEM.
1411
1412 2010-08-05  Richard Henderson  <rth@redhat.com>
1413
1414         PR debug/45188
1415         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
1416         (INCOMING_RETURN_ADDR_RTX): Likewise.
1417         (dwarf2out_do_frame): Remove conditional compilation.
1418         (dwarf2out_frame_init): Likewise.
1419
1420 2010-08-05  Nicolas Setton  <setton@adacore.com>
1421
1422         * gcov.c (flag_display_progress): New static variable.
1423         (main): Display progress info on standard output if requested.
1424         (options): Add -d/--display-progress.
1425         (print_usage): Print them.
1426         (process_args): Handle them.
1427         * doc/gcov.texi: Document them.
1428
1429 2010-08-05  Martin Jambor  <mjambor@suse.cz>
1430
1431         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
1432         (ipcp_insert_stage): Redirect only edges not flagged with
1433         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
1434         discovered constants.
1435
1436 2010-08-05  Martin Jambor  <mjambor@suse.cz>
1437
1438         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
1439         (struct ipa_param_descriptor): New fields types and
1440         cannot_devirtualize.
1441         (ipa_param_cannot_devirtualize_p): New function.
1442         (ipa_param_types_vec_empty): Likewise.
1443         (ipa_make_edge_direct_to_target): Declare.
1444         * ipa-cp.c: Fixed first stage driver name in initial comment,
1445         described devirtualization there too.
1446         (ipcp_analyze_node): Call ipa_analyze_params_uses.
1447         (ipcp_print_all_lattices): Print devirtualization info.
1448         (ipa_set_param_cannot_devirtualize): New function.
1449         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
1450         lattice to BOTTOM.
1451         (ipcp_init_stage): Merged into...
1452         (ipcp_generate_summary): ...its caller.
1453         (ipcp_change_tops_to_bottom): Also process type lists.
1454         (ipcp_add_param_type): New function.
1455         (ipcp_copy_types): Likewise.
1456         (ipcp_propagate_types): Likewise.
1457         (ipcp_propagate_stage): Also propagate types.
1458         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
1459         Also return true if propagated types require it.
1460         (ipcp_update_callgraph): Dump redirection info.
1461         (ipcp_process_devirtualization_opportunities): New function.
1462         (ipcp_const_param_count): Include known type information.
1463         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
1464         on new node.  Fixed formatting.
1465         * ipa-prop.c (make_edge_direct_to_target): Renamed to
1466         ipa_make_edge_direct_to_target and changed all callers.  Made
1467         externally visible.
1468         (ipa_node_duplication_hook): Duplicate types vector.
1469         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
1470         redirect outgoing calls for which we can't get a decl from the
1471         statement.  Check that we can get a decl from the call statement.
1472         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
1473         ipa_analyze_params_uses only when ipa-cp is disabled.
1474         * tree-inline.c (get_indirect_callee_fndecl): Removed.
1475         (expand_call_inline): Do not call get_indirect_callee_fndecl.
1476         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
1477         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
1478
1479 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
1480
1481         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
1482         temporary. Emit move from temporary to accum, so REG_EQUAL note will
1483         be attached to this insn in correct mode.
1484
1485 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
1486
1487         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
1488         using REGNO of base_reg directly.
1489
1490 2010-08-05  Jie Zhang  <jie@codesourcery.com>
1491
1492         PR tree-optimization/45144
1493         * tree-sra.c (type_consists_of_records_p): Return false
1494         if the record contains bit-field.
1495
1496 2010-08-04  Richard Henderson  <rth@redhat.com>
1497
1498         * config/i386/i386.c (struct ix86_frame): Remove padding and
1499         to_allocate members.
1500         (ix86_compute_frame_layout): Don't store them.
1501         (ix86_can_use_return_insn_p): Use a more direct and more obviously
1502         correct condition for the position of the stack pointer.
1503         (ix86_expand_prologue): Compute remaining stack allocation based
1504         on the ultimate stack pointer offset.
1505         (ix86_expand_epilogue): Use more obvious expressions testing for
1506         the stack pointer already pointing to the saved registers.
1507
1508         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
1509         duplication deconstructing the frame pointer.  Simplify
1510         deallocation of the local stack frame.
1511
1512         * reg-notes.def (CFA_EXPRESSION): New.
1513         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
1514         (dwarf2out_frame_debug_cfa_expression): New.
1515         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
1516
1517         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
1518         * config/i386/i386.c (ix86_expand_prologue): Set it.
1519         (ix86_expand_epilogue): Clear it.
1520         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
1521         context, add REG_CFA_EXPRESSION notes.
1522
1523         * config/i386/i386.h (struct machine_frame_state): Rename from
1524         machine_cfa_state.  Add members tracking SP and FP regardless
1525         of the current CFA register.
1526         (ix86_cfa_state): Remove.
1527         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
1528         and sse_reg_save_offset members.
1529         (ix86_compute_frame_layout): Set them.
1530         (gen_push): Increment sp_offset too.
1531         (choose_baseaddr_len, choose_baseaddr): New.
1532         (ix86_emit_save_reg_using_mov): New.
1533         (ix86_emit_save_regs_using_mov): Use it.
1534         (ix86_emit_save_sse_regs_using_mov): Likewise.
1535         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
1536         compare vs the saved red_zone_offset.
1537         (pro_epilogue_adjust_stack): Adjust sp_offset.
1538         (ix86_adjust_stack_and_probe): Likewise.
1539         (ix86_expand_prologue): Set up, use, and validate the new
1540         frame_state_info members.  Use gen_frame_mem.
1541         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
1542         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
1543         new frame_state_info members.
1544         (ix86_emit_leave): Likewise.
1545         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
1546         out-of-range stack pointer offsets here.
1547         (ix86_emit_restore_sse_regs_using_mov): Likewise.
1548         (ix86_expand_epilogue): Use and validate the new frame_state_info
1549         members.  Break up and simplify the logic selecting the
1550         restore_regs_via_mov code path.  Ensure that there will be no
1551         out-of-range stack pointer offsets.
1552
1553         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
1554
1555         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
1556         argument name to reflect the expected tree; fix indentation.
1557         (ix86_asm_output_function_label): Output the entire 32-bit
1558         ms_hook here as bytes ...
1559         (ix86_expand_prologue): ... not here as insns.  Attach the
1560         unwind info for the ms_hook to a blockage insn.
1561         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
1562         (ix86_ms_bitfield_layout_p): Fix indentation.
1563         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
1564
1565         * config/i386/i386.c (ix86_using_red_zone): New.
1566         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
1567         ix86_expand_prologue, ix86_force_to_memory): Use it.
1568
1569         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
1570         saving the int registers.
1571
1572         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
1573         and DWARF2_UNWIND_INFO conditional compilation.
1574
1575 2010-08-04  Richard Henderson  <rth@redhat.com>
1576
1577         PR debug/45171
1578         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
1579         an is_naming_typedef_decl.
1580
1581 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
1582
1583         PR rtl-optimization/45162
1584         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
1585         * dce.c (word_dce_process_block): Likewise.
1586
1587 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
1588
1589         PR target/44583
1590         * config/ia64/constraints.md (Z): New.
1591         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
1592         (xfreg_or_signed_fp01_operand): New.
1593         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
1594         with fr_reg_or_signed_fp01_operand and constraint G with Z.
1595         (subsf3): Ditto.
1596         (*maddsf4): Ditto.
1597         (*msubsf4): Ditto.
1598         (adddf3): Ditto.
1599         (adddf3_trunc): Ditto.
1600         (subdf3): Ditto.
1601         (*subdf3_trunc): Ditto.
1602         (*madddf4): Ditto.
1603         (*madddf4_trunc): Ditto.
1604         (*msubdf4): Ditto.
1605         (*msubdf4_trunc): Ditto.
1606         (addxf3): Replace xfreg_or_fp01_operand with
1607         xfreg_or_signed_fp01_operand and constraint G with Z.
1608         (*addxf3_truncsf): Ditto.
1609         (*addxf3_truncdf): Ditto.
1610         (subxf3): Ditto.
1611         (*subxf3_truncsf): Ditto.
1612         (*subxf3_truncdf): Ditto.
1613         (*maddxf4): Ditto.
1614         (*maddxf4_truncsf): Ditto.
1615         (*maddxf4_truncdf): Ditto.
1616         (*msubxf4): Ditto.
1617         (*msubxf4_truncsf): Ditto.
1618         (*msubxf4_truncdf): Ditto.
1619
1620 2010-08-04  Richard Guenther  <rguenther@suse.de>
1621
1622         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
1623         if either alias-set is zero.
1624
1625 2010-08-04  Richard Guenther  <rguenther@suse.de>
1626
1627         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
1628         * tree-ssa-ccp.c: ... here.
1629         * tree-ssa-copy.c: ... and here.
1630         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
1631         value_range_t): Move ...
1632         * tree-vrp.c: ... here.
1633         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
1634         (substitute_and_fold): Adjust prototype.
1635         * tree-ssa-propagate.c (replace_uses_in): Adjust.
1636         (replace_phi_args_in): Likewise.
1637         (substitute_and_fold): Take callback to query lattice instead
1638         of pointer to lattice.  Replace SSA name defs with lattice
1639         values first.
1640         * tree-ssa-ccp.c (ccp_finalize): Adjust.
1641         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
1642         (get_value): New function.
1643         (fini_copy_prop): Adjust.
1644         * tree-vrp.c (vrp_finalize): Adjust.
1645
1646 2010-08-04  Richard Guenther  <rguenther@suse.de>
1647
1648         PR middle-end/45176
1649         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
1650         points-to set for original MEM_REF.
1651
1652 2010-08-04  Richard Guenther  <rguenther@suse.de>
1653
1654         * tree-ssa-ccp.c (get_constant_value): New function.
1655         (get_rhs_assign_op_for_ccp): Remove.
1656         (valueize_op): New function.
1657         (ccp_fold): Use get_constant_value and valueize_op.
1658         (fold_const_aggregate_ref): Likewise.
1659         (ccp_fold_stmt): Likewise.
1660         (visit_assignment): Simplify.
1661
1662 2010-08-04  Richard Guenther  <rguenther@suse.de>
1663
1664         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
1665         * double-int.h (double_int_ctz): Declare.
1666         * double-int.c (double_int_ctz): New function.
1667
1668 2010-08-04  Hariharan Sandanagobalane <hariharan@picochip.com>
1669
1670         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
1671         Define.
1672         picochip_expand_movmemhi : Expand movmem pattern.
1673         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
1674         Declare.
1675         * config/picochip/picochip.md (movmemhi) : New pattern.
1676
1677 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
1678
1679         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
1680
1681 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
1682
1683         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
1684         NEG as operand of a MULT by merging it with the other operand.
1685         * combine.c (make_compound_operation): Use trunc_int_for_mode when
1686         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
1687         MULT.
1688         * config/arm/constraints.md (M): Examine only 32 bits of a
1689         HOST_WIDE_INT.
1690         * config/arm/predicates.md (power_of_two_operand): Likewise.
1691
1692 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1693
1694         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
1695         non-NOTE insns.
1696
1697 2010-08-03  Jan Hubicka  <jh@suse.cz>
1698
1699         * ipa-split.c (struct split_point): Add split_part_set_retval.
1700         (find_retval): Forward declare.
1701         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
1702         (consider_split): Compute current->split_part_set_retval.
1703         (visit_bb): Do not look into return value.
1704         (split_function): Handle !split_part_set_retval
1705
1706 2010-08-03  Martin Jambor  <mjambor@suse.cz>
1707
1708         * tree-sra.c (completely_scalarize_record): New parameter REF, create
1709         its own access->expr intead of using build_ref_for_offset.
1710
1711 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
1712
1713         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
1714         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
1715         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
1716         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
1717         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
1718         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
1719         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
1720         DEFAULT_SWITCH_TAKES_ARG.
1721         * config/rx/rx.opt (-patch=): Remove option.
1722         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
1723         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
1724         * doc/invoke.texi (RX Options): Remove -patch=.
1725         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
1726         (option_map): Remove --profile-blocks, --quiet and --silent.
1727
1728 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
1729
1730         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
1731         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
1732         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
1733         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
1734         Update calls to ix86_expand_compare and ix86_expand_branch.
1735         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
1736         ix86_expand_compare.
1737         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
1738         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
1739         Make static.
1740         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
1741         and ix86_compare_op1.  Update calls to ix86_expand_compare.
1742         (ix86_expand_int_movcc): Ditto.
1743         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
1744         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
1745         (ix86_expand_setcc): Ditto.
1746         (ix86_expand_compare): Remove prototype.
1747         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
1748         ix86_compare_op0 and ix86_compare_op1.  Update calls
1749         to ix86_expand_branch to directly pass operands[1] and operands[2].
1750         (cbranchxf4): Ditto.
1751         (cbranch<MODEF:mode>4): Ditto.
1752         (cbranchcc4): Ditto.
1753         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
1754         Update calls to ix86_expand_setcc to directly pass operands[2] and
1755         operands[3].
1756         (cstorexf4): Ditto.
1757         (cstore<MODEF:mode>4): Ditto.
1758         (cstorecc4): Ditto.
1759
1760 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
1761
1762         PR target/45063
1763         * caller-save.c (save_call_clobbered_regs): Remove regs from
1764         hard_regs_saved when they are set.
1765
1766 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
1767
1768         PR target/41089
1769         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
1770         as volatile.
1771
1772 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
1773
1774         * common.opt (ftree-loop-distribute-patterns): New.
1775         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
1776         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
1777         at -O3.
1778         * tree-data-ref.c (stores_zero_from_loop): New.
1779         * tree-data-ref.h (stores_zero_from_loop): Declared.
1780         * tree-loop-distribution.c (tree_loop_distribution): Call
1781         stores_zero_from_loop.
1782         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
1783
1784 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
1785
1786         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
1787         into account.
1788
1789         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
1790         * config/arm/arm.c (thumb1_code): New variable.
1791         (arm_override_options): Set it.
1792         (thumb1_final_prescan_insn): Keep track of condition code status.
1793         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
1794         jumps that depend on them.
1795         * config/arm/arm.h (thumb1_code): Declare variable.
1796         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
1797         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
1798         thumb1_cc_mode.
1799         (CC_STATUS_INIT): New macro.
1800         * config/arm/constraints.md (Pd): New constraint.
1801         * config/arm/predicates.md (noov_comparison_operator): New predicate.
1802         * config/arm/arm.md (is_thumb1): New define_attr.
1803         (conds): Set default to "clob" when generating Thumb1 code.
1804         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
1805         code are set.  Use two-operand assembly syntax.
1806         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
1807         pattern.
1808         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
1809         codes are set.  Use two-operand assembly syntax.
1810         (zero_extendhisi splitter): Remove constraints.
1811         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
1812         thumb1_movsf_insn): Set conds attribute as appropriate.
1813         (cbranchsi4_insn): Use condition code status from struct
1814         machine_function to determine whether the comparison can be eliminated.
1815         Discourage the alternative using high registers.
1816         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
1817         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
1818         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
1819         subsi3_cbranch): Delete.
1820         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
1821         one subtract and one cbranch insn.
1822
1823         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
1824         thumb2_movdf_soft_insn): Delete patterns.
1825         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
1826         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
1827         (pool_range, neg_pool_range): Use them to define defaults.
1828         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
1829         and allow for TARGET_32BIT.
1830
1831         PR target/40457
1832         * config/arm/arm.h (arm_regs_in_sequence): Declare.
1833         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
1834         load_multiple_sequence, store_multiple_sequence): Delete
1835         declarations.
1836         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
1837         declarations.
1838         * config/arm/ldmstm.md: New file.
1839         * config/arm/arm.c (arm_regs_in_sequence): New array.
1840         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
1841         CHECK_REGS.  All callers changed.
1842         If SAVED_ORDER is nonnull, copy the computed order into it.
1843         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
1844         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
1845         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
1846         If SAVED_ORDER is nonnull, copy the computed order into it.
1847         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
1848         like REGS.  Handle Thumb mode.
1849         (arm_gen_load_multiple_1): New function, broken out of
1850         arm_gen_load_multiple.
1851         (arm_gen_store_multiple_1): New function, broken out of
1852         arm_gen_store_multiple.
1853         (arm_gen_multiple_op): New function, with code from
1854         arm_gen_load_multiple and arm_gen_store_multiple moved here.
1855         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
1856         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
1857         changed.
1858         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
1859         * config/arm/predicates.md (commutative_binary_operator): New.
1860         (load_multiple_operation, store_multiple_operation): Handle more
1861         variants of these patterns with different starting offsets.  Handle
1862         Thumb-1.
1863         * config/arm/arm.md: Include "ldmstm.md".
1864         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
1865         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
1866         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
1867         peepholes): Delete.
1868         * config/arm/ldmstm.md: New file.
1869         * config/arm/arm-ldmstm.ml: New file.
1870
1871         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
1872         if statement which adds extra costs to frame-related expressions.
1873
1874 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1875
1876         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
1877
1878 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
1879
1880         PR target/45142
1881         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
1882         alternative 2.
1883         (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
1884         split V4SI operands.
1885
1886 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
1887
1888         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
1889         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
1890         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
1891         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
1892
1893 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
1894
1895         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
1896         LOCAL_INCLUDE_DIR.
1897
1898 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
1899
1900         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
1901         used in the call to optab_for_tree_code.  Fix the second
1902         is_widening_mult_p call.  Check that both unwidened operands
1903         have the same sign.
1904
1905 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
1906
1907         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
1908
1909 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
1910
1911         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
1912
1913 2010-07-30  DJ Delorie  <dj@redhat.com>
1914
1915         * config/rx/predicates.md (rx_constshift_operand): New.
1916         * config/rx/rx.md (zs_cond): New.
1917         (cbranchsi4): Remove mode.
1918         (*cbranchsi4_<code>): Likewise.
1919         (*tstbranchsi4_<code>): New.
1920         (*tstbranchsi4r_<code>): New.
1921         (*tstbranchsi4m_eq): New.
1922         (*tstbranchsi4m_ne): New.
1923         (cbranchsf4): Remove mode.
1924         (*cbranchsf4_<code>): Likewise.
1925
1926 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
1927
1928         * rtlanal.c (simplify_subreg_regno): Don't treat
1929         HARD_FRAME_POINTER_REGNUM specially.
1930
1931 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
1932
1933         * common.opt (-G): Don't define option here.
1934         * config/g.opt: New.
1935         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
1936         rs6000/powerpc and score targets.
1937         * opts.c (common_handle_option): Don't handle -G here.
1938         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
1939         * config/frv/frv.c (frv_handle_option): Handle -G.
1940         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
1941         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
1942         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
1943         * config/mips/mips.c (mips_handle_option): Handle -G.
1944         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
1945         * config/score/score.c (score_handle_option): Handle -G.
1946
1947 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
1948
1949         * config/mmix/mmix.c: Include basic-block.h.
1950
1951 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
1952
1953         PR debug/45055
1954         PR rtl-optimization/45137
1955         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
1956         prototypes.
1957         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
1958         New functions.
1959         * combine.c (next_nonnote_nondebug_insn): Removed.
1960         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
1961         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
1962         * sched-deps.c (sched_analyze_insn): Likewise.
1963         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
1964         * rtlanal.c (canonicalize_condition): Likewise.
1965         * postreload.c (reload_combine_recognize_pattern): Likewise.
1966         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
1967
1968 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
1969
1970         * config/i386/i386.md (int_cond): Remove code iterator.
1971         (fp_cond): Ditto.
1972         (cbranch<mode>4): Use ordered_comparison_operator predicate
1973         for operator0.
1974         (cstore<mode>4): Ditto for operator1.
1975         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
1976         (add<mode>cc): ditto.
1977
1978 2010-07-30  Richard Guenther  <rguenther@suse.de>
1979
1980         PR middle-end/45141
1981         * expr.c (expand_expr_real_1): Check for not handled base address.
1982
1983 2010-07-30  Richard Guenther  <rguenther@suse.de>
1984
1985         * ipa-prop.c (ipa_modify_formal_parameters): Use
1986         build_distinct_type_copy.
1987
1988 2010-07-30  Anthony Green  <green@moxielogic.com>
1989
1990         * config/moxie/rtems.h: New file.
1991         * config.gcc: Add moxie-rtems support.
1992
1993 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
1994
1995         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
1996         df flags as in run_fast_df_dce.
1997
1998 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
1999
2000         Revert:
2001         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
2002
2003         * rtl.def (NOTE): Swap operands 4 and 5.
2004         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
2005         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
2006         Adjust accordingly.
2007         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
2008
2009 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
2010
2011         PR debug/45110
2012         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
2013         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
2014         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
2015         formal parameters.
2016         (gen_decl_die): Change return type to dw_die_ref, return what
2017         gen_formal_parameter_die returned.
2018
2019 2010-07-29  Martin Jambor  <mjambor@suse.cz>
2020
2021         * dbgcnt.def (eipa_sra): New counter.
2022         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
2023
2024 2010-07-29  Xinliang David Li  <davidxl@google.com>
2025
2026         PR bootstrap/45119
2027         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
2028         in revision 162652.
2029
2030 2010-07-29  Richard Guenther  <rguenther@suse.de>
2031
2032         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
2033         (TV_TREE_STORE_CCP): Likewise.
2034         (TV_TREE_REDPHI): Likewise.
2035
2036 2010-07-29  Richard Guenther  <rguenther@suse.de>
2037
2038         * double-int.h (double_int_and_not): New function.
2039         * combine.c (try_combine): Use it.
2040         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
2041
2042 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
2043
2044         PR rtl-optimization/42575
2045         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
2046         Argument AU removed.  All callers changed.  Ignore artificial refs.
2047         Use return value of df_word_lr_simulate_defs to decide whether an insn
2048         is necessary.
2049         (fast_dce): Rename arg to WORD_LEVEL.
2050         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
2051         static.
2052         (pass_fast_rtl_byte_dce): Delete.
2053         * dce.h (run_word_dce): Declare.
2054         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
2055         All callers changed.  Simplify code to only deal with two-word regs.
2056         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
2057         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
2058         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
2059         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
2060         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
2061         (df_word_lr_mark_ref): Declare.
2062         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
2063         df_word_lr_simulate_uses): Declare or rename from byte variants.
2064         (df_byte_lr_simulate_artificial_refs_at_top,
2065         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
2066         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
2067         declarations.
2068         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
2069         (enum df_mm): Delete.
2070         * df-byte-scan.c: Delete file.
2071         * df-problems.c (df_word_lr_problem_data): Renamed from
2072         df_byte_lr_problem_data, all members deleted except for
2073         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
2074         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
2075         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
2076         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
2077         df_byte_lr_confluence_0): Delete functions.
2078         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
2079         callers changed.
2080         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
2081         Don't initialize members that were deleted, don't try to discover data
2082         about registers.  Ignore hard regs.
2083         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
2084         (df_word_lr_mark_ref): New function.
2085         (df_word_lr_bb_local_compute): Renamed from
2086         df_byte_bb_lr_local_compute; all callers changed.  Use
2087         df_word_lr_mark_ref.  Assert that artificial refs don't include
2088         pseudos.  Ignore hard registers.
2089         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
2090         Assert that exit block uses don't contain pseudos.
2091         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
2092         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
2093         callers changed.  Ignore hard regs.
2094         (df_word_lr_transfer_function): Renamed from
2095         df_byte_lr_transfer_function; all callers changed.
2096         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
2097         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
2098         changed.
2099         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
2100         callers changed.
2101         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
2102         confluence operator 0 set to NULL.
2103         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
2104         callers changed.
2105         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
2106         Return bool, true if bitmap changed or insn otherwise necessary.
2107         All callers changed.  Simplify using df_word_lr_mark_ref.
2108         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
2109         all callers changed.  Simplify using df_word_lr_mark_ref.
2110         * lower-subreg.c: Include "dce.h"
2111         (decompose_multiword_subregs): Call run_word_dce if df available.
2112         * Makefile.in (lower-subreg.o): Adjust dependencies.
2113         (df-byte-scan.o): Delete.
2114         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
2115
2116 2010-07-29  Richard Guenther  <rguenther@suse.de>
2117
2118         * tree.c (build_vector): Assert that the vector constant
2119         has enough elements.
2120         (build_vector_from_ctor): Pad with trailing zeros.
2121
2122 2010-07-29  Richard Guenther  <rguenther@suse.de>
2123
2124         PR tree-optimization/45120
2125         * tree-ssa-structalias.c (get_constraint_for_component_ref):
2126         Handle offset in DEREFs properly.
2127         (get_constraint_for_1): Handle MEM_REF offset properly.
2128
2129 2010-07-29  Richard Guenther  <rguenther@suse.de>
2130
2131         PR middle-end/45034
2132         * convert.c (convert_to_integer): Always use an unsigned
2133         type for narrowed negate and bitwise not.
2134
2135 2010-07-29  Ira Rosen  <irar@il.ibm.com>
2136
2137         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
2138         to outer loop when creating reduction epilogue for double reduction,
2139         and switch back to the inner loop when updating the phi nodes.
2140         Update uses of outer loop exit phi nodes in double reduction (instead
2141         of uses of reduction).
2142
2143 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
2144
2145         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
2146         popcount on power7 and parity on power6 systems.
2147         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
2148         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
2149         instructions.
2150
2151         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
2152         (UNSPEC_PARITY): Ditto.
2153         (SFDF): New iterator for SF/DF.
2154         (rreg2): New mode attribute for floating register constraint.
2155         (TARGET_FLOAT): New mode attribute for whether single/double float
2156         is supported.
2157         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
2158         pattern.
2159         (parity<mode>2_cmpb): New insn for parity on power6 and newer
2160         machines.
2161         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
2162         pattern.  Add support for fcpsgn instruction added in power6.
2163         (copysignsf3): Delete.
2164         (copysigndf3): Delete.
2165         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
2166         instead of if_then_else in RTL to avoid problems with -0.
2167
2168         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
2169         of if_then_else to mirror scalar code.
2170         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
2171         rs6000.md.
2172
2173         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
2174         instead of if_then_else.
2175
2176 2010-07-28  Xinliang David Li  <davidxl@google.com>
2177
2178         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
2179         (dump_cand): Dump var_before/after.
2180         (htab_inv_expr_eq): New function.
2181         (htab_inv_expr_hash): New function.
2182         (tree_ssa_iv_optimize_init): Support pseudo invariants.
2183         (add_candidate_1): consider base type precision.
2184         (set_use_iv_cost): New parameter.
2185         (adjust_setup_cost): Use profile information.
2186         (get_address_cost): Do not hard code width in computing address
2187         offset limits.
2188         (compare_aff_trees): New function.
2189         (get_loop_invariant_expr_id): New function.
2190         (get_computation_cost_at): New parameter and use profile information.
2191         (get_computation_cost): New parameter.
2192         (determine_use_iv_cost_generic): Pass new parameter.
2193         (determine_use_iv_cost_address): Ditto.
2194         (determine_use_iv_cost_condition): Ditto.
2195         (autoinc_possible_for_pair): Ditto.
2196         (determine_use_iv_costs): More dumps.
2197         (iv_ca_get_num_inv_exprs): New function.
2198         (iv_ca_recount_cost): Consider loop invariants in register pressure
2199         cost.
2200         (iv_ca_add_use): New parameter.
2201         (iv_ca_dump): Better dumping.
2202         (iv_ca_extend): New parameter.
2203         (try_add_cand_for): Attempt to get better partial solution.
2204         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
2205         (create_new-ivs): More dumps.
2206         (rewrite_use_compare): Ditto.
2207         (free_loop_data): More cleanup.
2208         (treee_ssa_iv_optimize_finalize): Ditto.
2209
2210 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
2211
2212         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
2213         * config/i386/i386.c (ix86_profile_before_prologue): New.
2214         (override_options): Add special handling for -mfentry.
2215         (ix86_function_regparm): Likewise.
2216         (ix86_function_sseregparm): Likewise.
2217         (ix86_frame_pointer_required): Likewise.
2218         (ix86_expand_prologue): Check for ms_hook_prologue.
2219         (x86_function_profiler): Adjust mcount output.
2220         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
2221         * config/i386/i386.opt (mfentry): New.
2222         * doc/invoke.texi (mfentry): Add documentation.
2223         * doc/tm.texi: Regenerated..
2224         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
2225         * final.c (final_start_function): Replace macro
2226         PROFILE_BEFORE_PROLOGUE by target hook.
2227         * function.c (thread_prologue_and_epilogue_insns): Likewise.
2228         * target.def (profile_before_prologue): New hook.
2229         * targhooks.c (default_profile_before_prologue): New.
2230         * targhooks.h (default_profile_before_prologue): New.
2231
2232 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
2233
2234         PR debug/45105
2235         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
2236
2237         PR debug/45103
2238         * dwarf2out.c (dwarf2out_var_location): Always consider
2239         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
2240
2241 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
2242
2243         PR rtl-optimization/45107
2244         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
2245
2246 2010-07-28  Richard Guenther  <rguenther@suse.de>
2247
2248         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
2249         (set_lattice_value): Do not query an old default value.
2250         (get_value_for_expr): New function.  Properly canonicalize
2251         float values.
2252         (ccp_visit_phi_node): Use it.
2253
2254 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
2255
2256         * config/arm/arm.c (arm_pcs_default): Remove static.
2257         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
2258         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
2259         (arm_pcs_default): Declare.
2260
2261 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
2262
2263         * config/rs6000/rs6000.c (rs6000_override_options):
2264         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
2265         ... to darwin_rs6000_override_options.
2266         (rs6000_return_in_memory): Update preceding comment for darwin
2267         64 bit ABI.  Use TARGET_MACHO inline.
2268         (rs6000_darwin64_struct_check_p): New.
2269         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
2270         (function_arg): Likewise.
2271         (rs6000_arg_partial_bytes): Likewise.
2272         (rs6000_function_value): Likewise.
2273
2274 2010-07-28  Andi Kleen <ak@linux.intel.com>
2275
2276         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
2277
2278 2010-07-28  Richard Guenther  <rguenther@suse.de>
2279
2280         PR middle-end/44903
2281         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
2282         targets try harder to not generate unaligned accesses.
2283
2284 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
2285
2286         PR rtl-optimization/45101
2287         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
2288         for gcse-las.
2289
2290 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
2291
2292         PR tree-optimization/44885
2293         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
2294         with non-aliased component.
2295
2296 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
2297
2298         * config/darwin-driver.c (SWITCH_TAKES_ARG,
2299         WORD_SWITCH_TAKES_ARG): Remove.
2300         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
2301         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
2302         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
2303         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
2304         definitions from gcc.c.
2305         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
2306         defaults.h.
2307         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
2308         Move to defaults.h.
2309         * opts-common.c: Include tm.h.
2310         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
2311         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
2312         Handle more than one argument.  Set canonical_option_num_elements.
2313         (decode_cmdline_options_to_array): Set
2314         canonical_option_num_elements and trailing elements of
2315         canonical_option.
2316         * opts.h (struct cl_decoded_option): Allow four elements in
2317         canonical_option.  Add field canonical_option_num_elements.
2318         * Makefile.in (opts-common.o): Update dependencies.
2319
2320 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
2321
2322         PR middle-end/44790
2323         PR middle-end/44993
2324         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
2325         sure the base has address_mode before adding the offset.
2326
2327 2010-07-27  Xinliang David Li <davidxl@google.com>
2328
2329         * tree-flow.h (create_mem_ref): Add one new parameter.
2330         * tree-ssa-address.c (create_mem_ref): New parameter.
2331         (addr_to_parts): Ditto.
2332         (move_variant_to_index): New function.
2333         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
2334
2335 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
2336
2337         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
2338         4 and 5.
2339         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
2340         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
2341         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
2342         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
2343         CODE_LABELs and NOTEs.
2344         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
2345         * combine.c (try_combine): Likewise.
2346         * ira.c (setup_prohibited_mode_move_regs): Likewise.
2347         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
2348
2349 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
2350
2351         * coretypes.h (struct cl_option_handlers): Declare.
2352         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
2353         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
2354         * langhooks-def.h (lhd_handle_option): Declare.
2355         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
2356         * langhooks.c (lhd_handle_option): New.
2357         * langhooks.h (struct lang_hooks): Update prototype and return
2358         value type of handle_option hook.
2359         * optc-gen.awk: Generate target_flags_explicit definition for the
2360         driver.
2361         * opts-common.c: Include diagnostic.h.
2362         (handle_option): Move from opts.c.  Update prototype and return
2363         value type.  Use handlers structure.
2364         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
2365         handlers structure.
2366         (set_option): Move from opts.c.
2367         * opts.c (common_handle_option): Update prototype and return value
2368         type.  Update calls to handle_option and enable_warning_as_error.
2369         (unknown_option_callback, post_handling_callback,
2370         lang_handle_option, target_handle_option): New.
2371         (handle_option, read_cmdline_option): Move to opts-common.c.
2372         (read_cmdline_options): Update prototype.  Update call to
2373         read_cmdline_option.
2374         (decode_options): Initialize and use handlers structure.
2375         (set_option): Move to opts-common.c.
2376         (enable_warning_as_error): Update prototype.  Update call to
2377         handle_option.
2378         * opts.h (struct cl_option_handler_func, struct
2379         cl_option_handlers): New.
2380         (handle_option, enable_warning_as_error): Update prototypes.
2381         (read_cmdline_option): Declare.
2382         * Makefile.in (opts-common.o): Update dependencies.
2383
2384 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2385
2386         * config/arm/arm.c (params.h): Include.
2387         (arm_override_options): Tune gcse-unrestricted-cost.
2388         * config/arm/t-arm (arm.o): Define dependencies.
2389
2390 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2391
2392         PR target/42495
2393         PR middle-end/42574
2394         * basic-block.h (get_dominated_to_depth): Declare.
2395         * dominance.c (get_dominated_to_depth): New function, use
2396         get_all_dominated_blocks as a base.
2397         (get_all_dominated_blocks): Use get_dominated_to_depth.
2398
2399         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
2400         (hoist_exprs): Remove.
2401         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
2402         (compute_code_hoist_vbeinout): Add debug print outs.
2403         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
2404
2405         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
2406         quadratic behavior.
2407         * params.h (MAX_HOIST_DEPTH): New macro.
2408         * doc/invoke.texi (max-hoist-depth): Document.
2409
2410 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2411
2412         PR rtl-optimization/40956
2413         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
2414         constants.
2415
2416 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2417
2418         PR target/42495
2419         PR middle-end/42574
2420         * config/arm/arm.c (legitimize_pic_address): Use
2421         gen_calculate_pic_address pattern to emit calculation of PIC address.
2422         (will_be_in_index_register): New function.
2423         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
2424         (thumb1_legitimate_address_p): Use it provided !strict_p.
2425         * config/arm/arm.md (calculate_pic_address): New expand and split.
2426
2427 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2428
2429         PR target/42495
2430         PR middle-end/42574
2431         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
2432         * config/arm/arm.md (define_split "J", define_split "K"): Make
2433         IRA/reload friendly.
2434
2435 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2436
2437         * gcse.c (insert_insn_end_basic_block): Update signature, remove
2438         unused checks.
2439         (pre_edge_insert, hoist_code): Update.
2440
2441 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2442
2443         PR target/42495
2444         PR middle-end/42574
2445         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
2446
2447 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2448
2449         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
2450
2451 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2452
2453         PR rtl-optimization/40956
2454         PR target/42495
2455         PR middle-end/42574
2456         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
2457         for hoisting.
2458         (hoist_code): Count occurences in current block too.
2459
2460 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2461
2462         * gcse.c (struct expr:max_distance): New field.
2463         (doing_code_hoisting_p): New static variable.
2464         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
2465         simple expressions, don't change behavior for PRE.  Set max_distance.
2466         (insert_expr_in_table): Set new max_distance field.
2467         (hash_scan_set): Update.
2468         (hoist_expr_reaches_here_p): Stop search after max_distance
2469         instructions.
2470         (find_occr_in_bb): New static function.  Use it in ...
2471         (hoist_code): Calculate sizes of basic block before any changes are
2472         done.  Pass max_distance to hoist_expr_reaches_here_p.
2473         (one_code_hoisting_pass): Set doing_code_hoisting_p.
2474
2475         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
2476         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
2477         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
2478         macros.
2479         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
2480         Document.
2481
2482 2010-07-27  Jeff Law  <law@redhat.com>
2483             Maxim Kuvyrkov  <maxim@codesourcery.com>
2484
2485         * gcse.c (compute_transpout, transpout): Remove, move logic
2486         to prune_expressions.
2487         (compute_pre_data): Move pruning of trapping expressions ...
2488         (prune_expressions): ... here.  New static function.
2489         (compute_code_hoist_data): Use it.
2490         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
2491
2492 2010-07-27  Xinliang David Li  <davidxl@google.com>
2493
2494         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
2495         (rewrite_use_address): Adjust iv update position when needed.
2496
2497 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2498
2499         * dbgcnt.def (hoist_insn): New debug counter.
2500         * gcse.c (hoist_code): Use it.
2501
2502 2010-07-27  Xinliang David Li  <davidxl@google.com>
2503
2504         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
2505         (niter_for_single_dom_exit): Passes additional parameter.
2506         (iv_period): Fix comments.
2507         (may_eliminate_iv): Handles multiple exit loops properly.
2508         (free_tree_niter_desc): New function.
2509         (free_loop_data): Frees up loop iteration descriptors.
2510
2511 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
2512
2513         PR target/44542
2514         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
2515         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
2516         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
2517         (expand_one_var): Don't consider DECL_ALIGN for variables for
2518         which expand_one_stack_var_at has been already called.
2519
2520         PR testsuite/44701
2521         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
2522         constraints on IA-64.
2523
2524 2010-07-27  Jie Zhang  <jie@codesourcery.com>
2525
2526         PR target/44290
2527         Revert:
2528         2010-07-23  Jie Zhang  <jie@codesourcery.com>
2529
2530         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
2531         false if ! tree_versionable_function_p.
2532
2533 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
2534
2535         * dwarf2out.c (add_data_member_location_attribute): Use
2536         add_AT_unsigned instead of add_AT_int if offset is non-negative.
2537
2538 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
2539
2540         * postreload.c (try_replace_in_use): New static function.
2541         (reload_combine_recognize_const_pattern): Use it here.  Allow
2542         substituting into a final add insn, and substituting into a memory
2543         reference in an insn that sets the reg.
2544
2545 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
2546
2547         * common.opt (o): Add MissingArgError.
2548         * doc/options.texi (MissingArgError): Document.
2549         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
2550         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
2551         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2552         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
2553         * langhooks.h (struct lang_hooks): Remove missing_argument.
2554         * optc-gen.awk: Handle MissingArgError and output new structure
2555         field initializers.
2556         * opts.c (read_cmdline_option): Use missing_argument_error field
2557         instead of missing_argument langhook.
2558         * opts.h (struct cl_option): Add missing_argument_error field.
2559         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
2560
2561 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
2562
2563         PR target/29090
2564         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
2565         Darwin64 ABI, for zero-sized objects.
2566
2567 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
2568
2569         PR target/35491
2570         PR target/29090
2571
2572         Merge from Apple local 4.2.1.
2573         2005-05-11  Stan Shebs  <shebs@apple.com>
2574         Fix 64-bit varargs for Darwin (Radar 4028089).
2575         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
2576         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
2577         Add argument, add case for 8-byte register half-filled with a float.
2578         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
2579         single-precision floats specially.
2580
2581 2010-07-27  Ira Rosen  <irar@il.ibm.com>
2582
2583         PR tree-optimization/44152
2584         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
2585         complex numbers for further check.
2586         (vect_supported_load_permutation_p): Check nodes with
2587         complex numbers.
2588
2589 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
2590
2591         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
2592         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
2593         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
2594         (LANG_HOOKS_INITIALIZER): Add new hooks.
2595         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
2596         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
2597         and complain_wrong_lang_p.  Update init_options prototype.
2598         * c-objc-common.c (c_initialize_diagnostics): First call
2599         c_common_initialize_diagnostics.
2600         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
2601         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
2602         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
2603         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
2604         (hook_uint_void_0): New.
2605         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
2606         (hook_uint_void_0): New.
2607         * opts-common.c (decode_cmdline_option,
2608         decode_cmdline_options_to_array): Also fill in canonical_option field.
2609         * opts.c (complain_wrong_lang): Use langhook to determine whether
2610         to complain instead of special-casing LTO.
2611         (decode_options): Separate lang_mask determination with
2612         option_lang_mask hook from call of init_options hook.
2613         * opts.h (struct cl_decoded_option): Add canonical_option.
2614
2615 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
2616
2617         PR tree-optimization/45083
2618         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
2619
2620 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
2621
2622         * postreload.c (reload_combine_recognize_const_pattern): Move test
2623         for limiting the insn movement to the right scope.
2624
2625         PR rtl-optimization/45051
2626         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
2627         than reg_mentioned_p.
2628
2629 2010-07-26  Richard Henderson  <rth@redhat.com>
2630
2631         PR target/44132
2632         * tree-emutls.c: New file.
2633         * Makefile.in (OBJS-common): Add it.
2634         * tree-pass.h (pass_ipa_lower_emutls): Declare.
2635         * passes.c (init_optimization_passes): Add it.
2636
2637         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
2638         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
2639         * expr.c (emutls_var_address): Delete.
2640         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
2641         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
2642         (emutls_finish): Delete.
2643         * toplev.c (compile_file): Don't call it.
2644         * tree.h (emutls_decl): Delete.
2645         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
2646         (emutls_finish, emutls_finalize_control_var): Delete.
2647         (emutls_object_type): Move to tree-emutls.c.
2648         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
2649         default_emutls_var_fields, get_emutls_object_type,
2650         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
2651         default_emutls_var_init): Likewise.
2652         (get_variable_section): Don't special case emutls.
2653         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
2654         default_elf_select_section, default_unique_section,
2655         default_encode_section_info): Likewise.
2656         * varpool.c (decide_is_variable_needed): Likewise.
2657         * gimple-iterator.c (update_call_edge_frequencies): New
2658         (gsi_insert_on_edge_immediate): Use it.
2659         (gsi_insert_seq_on_edge_immediate): Likewise.
2660         (gsi_commit_one_edge_insert): Likewise.
2661
2662         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
2663         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
2664         (x86_64_elf_unique_section): Likewise.
2665
2666 2010-07-26  Jan Hubicka  <jh@suse.cz>
2667
2668         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
2669         GTY((skip)).
2670
2671 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
2672
2673         * target.def (output_source_filename): New hook.
2674         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
2675         * doc/tm.texi: Regenerate.
2676         * toplev.c (output_file_directive) Remove function.
2677         * toplev.h (output_file_directive) Remove.
2678         * output.h (default_asm_output_source_filename,
2679         output_file_directive): Declare.
2680         * varasm.h (default_asm_output_source_filename,
2681         output_file_directive): New functions.
2682
2683         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
2684         * config/mips/mips-protos.h (mips_output_filename): Remove.
2685         * config/mips/mips.c (mips_output_filename): Make Static.
2686         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
2687
2688 2010-07-26  Richard Guenther  <rguenther@suse.de>
2689
2690         PR tree-optimization/43784
2691         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
2692         if the destination is used by the call.
2693
2694 2010-07-26  Richard Guenther  <rguenther@suse.de>
2695
2696         PR middle-end/45073
2697         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
2698         SSA updating on being in SSA form.
2699
2700 2010-07-26  Richard Guenther  <rguenther@suse.de>
2701
2702         PR middle-end/45056
2703         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
2704
2705 2010-07-26  Richard Guenther  <rguenther@suse.de>
2706
2707         PR tree-optimization/45071
2708         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
2709         adjust op->opcode.
2710
2711 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
2712
2713         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
2714         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
2715         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
2716         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
2717         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
2718         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
2719         save_r31, return_r31, save_interrupt, return_interrupt,
2720         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
2721         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
2722         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
2723         new ABI requirements.
2724         (save_r6_r9, L_callt_save_r6_r9): Remove.
2725         * config/v850/predicates.md (even_reg_operand, disp23_operand,
2726         const_float_1_operand const_float_0_operand): New Predicates.
2727         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
2728         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
2729         * config/v850/t-v850: Update multilibs for new target variants.
2730         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
2731         * config/v850/t-v850e: Likewise.
2732         * config/v850/v850.c (v850_issue_rate): New.
2733         (v850_strict_argument_naming): New.
2734         (function_arg): Modify to generate a different ABI.
2735         (print_operand): Update case 'z' to support float modes.
2736         (output_move_single): Modify to generate appropriate and better
2737         assembly.
2738         (v850_float_z_comparison_operator, v850_select_cc_mode,
2739         v850_float_nz_comparison_operator,  v850_gen_float_compare,
2740         v850_gen_compare): New functions to support comparison of float values.
2741         (ep_memory_offset): Add support for V850E2 targets.
2742         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
2743         (INTERRUPT_REGPARM_NUM): Remove.
2744         (compute_register_save_size): Add extra case to save/restore long call.
2745         (use_prolog_function): New function to support prologue.
2746         (expand_prologue): Add support for V850E2 targets and modified
2747         as per the current ABI requirements.
2748         (expand_epilogue): Likewise.
2749         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
2750         (construct_save_jarl): Likewise.
2751         (construct_dispose_instruction): Update as per the current ABI
2752         requirements.
2753         (construct_prepare_instruction): Likewise.
2754         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
2755         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
2756         (CPP_SPEC): Updated to support v850e2 targets.
2757         (STRICT_ALIGNMENT): Modified.
2758         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
2759         (FIXED_REGISTERS): Likewise.
2760         (CALL_USED_REGISTERS): Likewise.
2761         (CONDITIONAL_REGISTER_USAGE): Updated.
2762         (HARD_REGNO_MODE_OK): Updated.
2763         (reg_class): Updated to add even registers.
2764         (REG_CLASS_NAMES): Likewise.
2765         (REG_CLASS_CONTENTS): Likewise.
2766         (REGNO_REG_CLASS): Updated for CC registers.
2767         (REG_CLASS_FROM_LETTER): Added support for even registers.
2768         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
2769         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
2770         ARG_POINTER_REGNUM): Updated.
2771         (FUNCTION_ARG_ADVANCE): Define.
2772         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
2773         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
2774         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
2775         (GO_IF_LEGITIMATE_ADDRESS): Updated.
2776         (SELECT_CC_MODE): Define.
2777         (REGISTER_NAMES): Updated to add psw and fcc registers.
2778         (ADDITIONAL_REGISTER_NAMES): Updated.
2779         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
2780         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
2781         * config/v850/v850.md (define_constants): Define new constants.
2782         (type): Update store,bit1,macc,div,fpu and single attributes.
2783         (cpu): New attribute.
2784         (cc): Add set_z attribute.
2785         (unsign23byte_load, sign23byte_load, unsign23hword_load,
2786         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
2787         23word_store): New instructions for 23-bit displacement load and store.
2788         (movqi_internal, movhi_internal): Update the attributes.
2789         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
2790         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
2791         the attributes.
2792         (v850_tst1): Modified using CC_REGNUM.
2793         (tstsi): Remove.
2794         (cmpsi): Modified as define_expand from define_insn.
2795         (cmpsi_insn, cmpsf, cmpdf): New instructions.
2796         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
2797         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
2798         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
2799         one_cmplsi2): Clobber the CC_REGNUM register.
2800         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
2801         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
2802         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
2803         (setf_insn, set_z_insn, set_nz_insn): New instructions for
2804         v850e2v3 target.
2805         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
2806         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
2807         targets.
2808         (sasf_1, sasf_2): Remove.
2809         (sasf): New instruction.
2810         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
2811         targets. CC_REGNUM register is clobbered and attributes are
2812         updated.
2813         (branch_z_normal, branch_z_invert, branch_nz_normal,
2814         branch_nz_invert): New branch related instructions.
2815         (jump): Updated the attributes.
2816         (switch): Update to support new targets. CC_REGNUM register is
2817         clobbered and attributes are updated.
2818         (call_internal_short, call_internal_long, call_value_internal_short,
2819         call_value_internal_long): Updated the attributes.
2820         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
2821         clobbered and attributes are updated.
2822         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
2823         Update to support new targets. CC_REGNUM register is clobbered.
2824         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
2825         instructions.
2826         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
2827         are updated.
2828         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
2829         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
2830         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
2831         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
2832         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
2833         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
2834         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
2835         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
2836         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
2837         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
2838         point instructions defined for V850e2v3 target.
2839         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
2840         Add support for V850E2 targets and CC_REGNUM register is clobbered.
2841         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
2842         support for new targets.
2843         * config/v850/v850-modes.def: New file.
2844         * config/v850/v850.opt(mstrict-align): Remove.
2845         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
2846         mv850e2v3): New command line options for V850.
2847         * config.gcc: Update the newly added files.
2848         * doc/invoke.texi: Update the newly added command line options for
2849         V850 target.
2850
2851 2010-07-26  Richard Guenther  <rguenther@suse.de>
2852
2853         PR tree-optimization/45052
2854         * ipa-pure-const.c (check_stmt): Check volatileness.
2855
2856 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
2857
2858         PR target/44707
2859         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
2860         * config/sparc/sparc.c: Include reload.h.
2861         (legitimize_tls_address): Rename into...
2862         (sparc_legitimize_tls_address): ...this.
2863         (legitimize_pic_address): Rename into...
2864         (sparc_legitimize_pic_address): ...this.
2865         (sparc_expand_move): Adjust to above renaming.
2866         (sparc_tls_referenced_p): Likewise.
2867         (sparc_legitimize_tls_address): Likewise.
2868         (sparc_legitimize_pic_address): Likewise.
2869         (sparc_legitimize_address): Likewise.
2870         (sparc_output_mi_thunk): Likewise.
2871         (sparc_legitimize_reload_address): New global function.  Recognize
2872         (lo_sum (high ...) ...) patterns generated by earlier passes.
2873         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
2874
2875 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
2876
2877         PR target/44484
2878         * config/sparc/predicates.md (memory_reg_operand): Delete.
2879         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
2880         (*sync_compare_and_swap): Encode the address form in the pattern.
2881         (*sync_compare_and_swapdi_v8plus): Likewise.
2882
2883 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
2884
2885         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
2886         Streamline paragraph on compatibility with the system compiler.
2887
2888 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
2889
2890         PR middle-end/45035
2891         * alias.c (true_dependence_1): Fix thinko in merge of old
2892         true_dependence and canon_true_dependence.
2893
2894 2010-07-23  Jan Hubicka  <jh@suse.cz>
2895
2896         * lto-streamer-out.c (write_symbol): Fix visibilities of external
2897         references.
2898
2899 2010-07-23  Le-Chun Wu  <lcwu@google.com>
2900
2901         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
2902         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
2903         and an unnecessary assignment.
2904         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
2905         self-assign warning.
2906         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
2907         unnecessary self-init.
2908
2909 2010-07-23  Richard Guenther  <rguenther@suse.de>
2910
2911         PR lto/43071
2912         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
2913         for -flto and -fwhopr.
2914
2915 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
2916
2917         PR target/41943
2918         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
2919         (stmp-int-hdrs): Prefix/postfix headers by include_next.
2920         * config.gcc (user_headers_inc_next_pre): New.
2921         (user_headers_inc_next_post): Likewise.
2922         (*-w64-mingw*): Use for float.h post-fixing, and for
2923         stddef.h/stdarg.h pre-fixing by include_next.
2924         * configure.ac (user_headers_inc_next_post): New.
2925         (user_headers_inc_next_pre): New.
2926         * configure: Regenerated.
2927
2928 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2929
2930         * configure.ac: Don't disable TLS on Solaris 8/9 by default
2931         Set tga_func for Solaris 2/x86 resp. SPARC.
2932         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
2933         (LIB_THREAD_LDFLAGS_SPEC): Define.
2934         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
2935         * configure: Regenerate.
2936         * config.in: Regenerate.
2937         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
2938         -pthread, -threads, LIB_TLS_SPEC with -pthread.
2939         * doc/install.texi (Specific, *-*-solaris2*): Document use of
2940         alternate thread libraries on Solaris 8.
2941         Document TLS patch requirements.
2942         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
2943         Document tls.
2944
2945         PR target/18788
2946         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
2947         -shared.
2948
2949 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
2950
2951         * tree.h (struct tree_base): Add nameless_flag bitfield.
2952         (TYPE_NAMELESS, DECL_NAMELESS): Define.
2953         * omp-low.c (create_omp_child_function, scan_omp_parallel,
2954         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
2955         DECL_ARTIFICIAL where needed.
2956         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
2957         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
2958         has DECL_NAMELESS set.
2959
2960 2010-07-23  Martin Jambor  <mjambor@suse.cz>
2961
2962         PR tree-optimization/44915
2963         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
2964         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
2965         (analyze_function): Likewise.
2966
2967 2010-07-23  Martin Jambor  <mjambor@suse.cz>
2968
2969         PR tree-optimization/44914
2970         * tree-sra.c (sra_modify_function_body): Return true if CFG was
2971         changed, add purging dead eh edges.
2972         (ipa_sra_modify_function_body): Return true if CFG was changed,
2973         simplify purging dead eh edges.
2974         (modify_function): Return true if CFG was changed.
2975         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
2976         was changed.
2977         (ipa_early_sra): Likewise.
2978
2979 2010-07-23  Jie Zhang  <jie@codesourcery.com>
2980
2981         PR target/44290
2982         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
2983         if "naked".
2984         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
2985         false if ! tree_versionable_function_p.
2986
2987 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
2988
2989         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
2990         * ipa-pure-const.c (special_builtlin_state): Remove
2991         BUILT_IN_ARGS_INFO case.
2992         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
2993         * builtins.c (expand_builtin): Likewise.
2994         (expand_builtin_args_info): Remove.
2995         * doc/tm.texi (__builtin_args_info): Remove.
2996         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
2997         * doc/tm.text.in: Likewise.
2998
2999 2010-07-23  Richard Guenther  <rguenther@suse.de>
3000
3001         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
3002         (lto_symtab_merge_decls_2): Likewise.
3003         * tree-ssa.c (useless_type_conversion_p): Likewise.
3004         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3005         * gimple.c (gtc_visited2, gtc_ob2): Remove.
3006         (struct type_pair_d): Make same_p an array indexed by mode.
3007         Update comment.
3008         (lookup_type_pair): Update initialization.
3009         (struct sccs): Adjust same_p type.
3010         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
3011         Adjust.
3012         (print_gimple_types_stats): Likewise.
3013         * gimple.h (enum gtc_mode): New.
3014         (gimple_types_compatible_p): Adjust prototype.
3015
3016 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
3017
3018         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
3019         again after processing insn.
3020
3021 2010-07-23  Jie Zhang  <jie@codesourcery.com>
3022
3023         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
3024         proper words when !tree_versionable_function_p.
3025
3026 2010-07-23  Richard Guenther  <rguenther@suse.de>
3027
3028         PR tree-optimization/45037
3029         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
3030
3031 2010-07-23  Jie Zhang  <jie@codesourcery.com>
3032
3033         * doc/extend.texi: Remove IP2K from the description of naked attribute.
3034         Add MCORE instead.
3035
3036 2010-07-10  Andi Kleen  <ak@linux.intel.com>
3037
3038         PR lto/44992
3039         * lto-opts.c (lto_write_options): Add NULL file_data argument to
3040         lto_get_section_name.
3041         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
3042         * lto-streamer-out.c (produce_asm): Likewise.
3043         (copy_function): Likewise.
3044         (produce_symtab): Likewise.
3045         (produce_asm_for_decls): Likewise.
3046         * lto-streamer.c (lto_get_section_name): Add file_data argument.
3047         Rewrite to add random postfix to LTO sections.
3048         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
3049         (lto_get_section_name): Add file_data argument to prototype.
3050
3051 2010-07-10  Andi Kleen  <ak@linux.intel.com>
3052
3053         * lto-section-in.c (lto_section_name): Synchronize names
3054         with lto_get_section_name.
3055
3056 2010-07-10  Andi Kleen  <ak@linux.intel.com>
3057
3058         * lto-opts.c (lto_read_file_options): Check for missing section.
3059
3060 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
3061
3062         * ira.c (check_allocation): Correctly handle the case where an allocno
3063         with two objects was allocated to a single reg.
3064
3065 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
3066
3067         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
3068         (is_widening_mult_p): Likewise.
3069         (convert_to_widen): Use them.
3070         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
3071         well as integer ones.
3072
3073 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
3074
3075         * alias.c (true_dependence_1): New function, merged version of
3076         true_dependence and canon_true_dependence.
3077         (true_dependence): Simplify.
3078         (canon_true_dependence): Simplify.
3079
3080 2010-07-22  Richard Henderson  <rth@redhat.com>
3081
3082         PR target/45027
3083         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
3084         of V4SFmode for the SSE saves; increase stack alignment if needed.
3085         (ix86_gimplify_va_arg): Don't increase stack alignment here.
3086
3087 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
3088
3089         PR bootstrap/45028
3090         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
3091         call cprop_find_used_regs again via note_uses.
3092
3093 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
3094
3095         * alias.c (get_alias_set): Fix formatting issues.
3096
3097 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
3098
3099         PR middle-end/44878
3100         * stmt.c (expand_value_return):  Call promote_function_mode with
3101         a for_return argument of 2 when returning by reference.
3102
3103 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
3104
3105         PR debug/45024
3106         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
3107         unit DIE if we can find the scope DIE.
3108
3109 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
3110
3111         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
3112         changed.  Initialize OBJECT_SUBWORD.
3113         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
3114         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
3115         all callers changed.
3116         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
3117         (finish_allocno): Likewise.
3118         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
3119         (remove_low_level_allocnos): Likewise.
3120         (update_bad_spill_attribute): Likewise.
3121         (setup_min_max_allocno_live_range_point): Likewise.
3122         (sort_conflict_id_map): Likewise.
3123         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
3124         (ior_hard_reg_conflicts): New function.
3125         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
3126         (compress_conflict_vecs): Iterate over objects, not allocnos.
3127         (ira_add_live_range_to_object): New function.
3128         (object_range_compare_func): Renamed from allocno_range_compare_func.
3129         All callers changed.
3130         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
3131         subobjects, widen the min/max range of the lowest-order object to
3132         potentially include all other such low-order objects.
3133         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
3134         (check_allocation): Likewise.  Use more fine-grained tests for register
3135         conflicts.
3136         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
3137         allocno subobjects.
3138         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
3139         choices about which bits to set in each set.  Don't use
3140         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
3141         using the multiple sets we computed.
3142         (push_allocno_to_stack): Iterate over allocno subobjects.
3143         (all_conflicting_hard_regs_coalesced): New static function.
3144         (setup_allocno_available_regs_num): Use it.
3145         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
3146         subobjects.
3147         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
3148         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
3149         by ALLOCNO_NUM_OBJECTS.
3150         (calculate_spill_cost): Likewise.
3151         (color_pass): Express if statement in a more normal way.
3152         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
3153         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
3154         (setup_slot_coalesced_allocno_live_ranges): Likewise.
3155         (allocno_reload_assign): Likewise.
3156         (ira_reassign_pseudos): Likewise.
3157         (fast_allocation): Likewise.
3158         * ira-conflicts.c (build_conflict_bit_table): Likewise.
3159         (print_allocno_conflicts): Likewise.
3160         (ira_build_conflicts): Likewise.
3161         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
3162         callers changed.  Test subword 0 of each allocno for conflicts.
3163         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
3164         callers changed.  Iterate over allocno subobjects.
3165         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
3166         * ira-int.h (struct ira_allocno): New member: num_objects.
3167         Rename object to objects and change it into an array.
3168         (ALLOCNO_OBJECT): Add new argument N.
3169         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
3170         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
3171         (ior_hard_reg_conflicts): Declare.
3172         (ira_add_live_range_to_object): Declare.
3173         (ira_allocno_object_iterator): New.
3174         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
3175         (FOR_EACH_ALLOCNO_OBJECT): New macro.
3176         * ira-lives.c (objects_live): Renamed from allocnos_live; all
3177         uses changed.
3178         (allocnos_processed): New sparseset.
3179         (make_object_born): Renamed from make_allocno_born; take an
3180         ira_object_t argument.  All callers changed.
3181         (make_object_dead): Renamed from make_allocno_dead; take an
3182         ira_object_t argument.  All callers changed.
3183         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
3184         All callers changed.
3185         (mark_pseudo_regno_live): Iterate over allocno subobjects.
3186         (mark_pseudo_regno_dead): Likewise.
3187         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
3188         functions.
3189         (mark_ref_live): Detect subword accesses and call
3190         mark_pseudo_regno_subword_live as appropriate.
3191         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
3192         (process_bb_nodes_live): Deal with object-related updates first; set
3193         and test bits in allocnos_processed to avoid computing allocno
3194         statistics more than once.
3195         (create_start_finish_chains): Iterate over objects, not allocnos.
3196         (print_object_live_ranges): New function.
3197         (print_allocno_live_ranges): Use it.
3198         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
3199         and objects_live.
3200
3201 2010-07-22  Richard Guenther  <rguenther@suse.de>
3202
3203         PR lto/42451
3204         * gimple.c (gtc_next_dfs_num): New global.
3205         (struct sccs): Make value a union, add integer same_p member.
3206         (gtc_visit): New function.
3207         (gimple_types_compatible_p_1): New function, split out from ...
3208         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
3209         (iterative_hash_gimple_type): Adjust for sccs change.
3210
3211 2010-07-22  Martin Jambor  <mjambor@suse.cz>
3212
3213         PR tree-optimization/44891
3214         * tree-sra.c: Include gimple-pretty-print.h.
3215         (replace_uses_with_default_def_ssa_name): Renamed to
3216         get_repl_default_def_ssa_name, return the new SSA name instead of
3217         replacing the old one.
3218         (sra_modify_assign): Dump a message when removing a load, if the LHS
3219         is an SSA_NAME, do not do any propagation, just set the RHS to a
3220         default definition SSA NAME, type convert if necessary.
3221         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
3222
3223 2010-07-22  Richard Guenther  <rguenther@suse.de>
3224
3225         PR tree-optimization/45017
3226         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
3227         TYPE_PRECISION of integral types in addition to size.
3228
3229 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
3230
3231         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
3232         when no C library is specified.
3233
3234 2010-07-22  Martin Jambor  <mjambor@suse.cz>
3235
3236         * ipa-prop.h (struct ipa_node_params): Updated comment.
3237         (struct ipa_edge_args): Likewise.
3238         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
3239
3240 2010-07-22  Martin Jambor  <mjambor@suse.cz>
3241
3242         * cgraphunit.c (verify_edge_count_and_frequency): New function.
3243         (verify_cgraph_node): Verify frequencies of indirect edges.
3244         * tree-inline.c (tree_function_versioning): Update frequencies of
3245         indirect edges.
3246
3247 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3248
3249         PR target/43698
3250         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
3251         Set *arm_rev to be predicable.
3252
3253 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
3254
3255         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
3256         (LINK_COMMAND_SPEC_A): New.
3257         (DSYMUTIL): New.
3258         (DSYMUTIL_SPEC): New.
3259         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
3260         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
3261
3262 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
3263
3264         * calls.c (load_register_parameters): Move check for zero
3265         sized items so that only the call to
3266         mem_overlaps_already_clobbered_arg_p () is protected.
3267
3268 2010-07-22  Jan Hubicka  <jh@suse.cz>
3269
3270         * ipa-pure-const.c (varying_state): Break out from ...
3271         (get_function_state): ... here; always return varying_state
3272         when state would be NULL otherwise.
3273         (remove_node_data): Do not free varying state.
3274
3275 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
3276
3277         PR bootstrap/44970
3278         PR middle-end/45009
3279         * postreload.c: Include "target.h".
3280         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
3281         into account.
3282         (fixup_debug_insns): Don't copy the rtx.
3283         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
3284         Don't copy when replacing.  Call fixup_debug_insns in the case where
3285         we merged one add with another.
3286         (reload_combine_recognize_pattern): Fail if there aren't any uses.
3287         Try harder to determine whether we're picking a valid index register.
3288         Don't set store_ruid for an insn we're going to scan in the
3289         next iteration.
3290         (reload_combine): Remove unused code.
3291         (reload_combine_note_use): When updating use information for
3292         an old insn, ignore a use that occurs after store_ruid.
3293         * Makefile.in (postreload.o): Update dependencies.
3294
3295         * function.c (record_hard_reg_sets): Restrict the previous change
3296         to cases where the incoming nominal mode is the same as the
3297         incoming promoted mode and everything happens in MODE_INT.
3298
3299 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
3300
3301         PR debug/45015
3302         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
3303         ASM_OPERANDS_OUTPUT_IDX.
3304         (adjust_insn): For inline asm with multiple sets ensure first
3305         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
3306         the insn.
3307
3308 2010-07-21  Richard Henderson  <rth@redhat.com>
3309
3310         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
3311         comparison for avoiding xmm register saves.  Emit the xmm register
3312         saves explicitly.
3313         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
3314         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
3315         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
3316         Remove patterns and the associated splitters.
3317
3318 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
3319
3320         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
3321         and imagine parts of a complex, so that they can have the same
3322         base and fall into the same group.
3323
3324 2010-07-21  Richard Guenther  <rguenther@suse.de>
3325
3326         PR lto/45018
3327         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
3328         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
3329         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
3330
3331 2010-07-21  Martin Jambor  <mjambor@suse.cz>
3332
3333         PR tree-optimization/44900
3334         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
3335         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
3336
3337 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
3338
3339         PR middle-end/44738
3340         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
3341
3342 2010-07-21  Richard Guenther  <rguenther@suse.de>
3343
3344         PR middle-end/45013
3345         * tree-ssa.c (useless_type_conversion_p): Dispatch to
3346         gimple_types_compatible_p only when in lto.
3347         * gimple.c (gimple_types_compatible_p): Use canonical types
3348         to speed up comparison.
3349
3350 2010-07-21  Richard Guenther  <rguenther@suse.de>
3351
3352         * tree-flow.h (referenced_var): Move define ...
3353         * tree-flow-inline.h (referenced_var): ... here as an inline
3354         function.  Assert here ...
3355         * tree-dfa.c (referenced_var_lookup): ... instead of here.
3356         * tree-ssa.c (maybe_optimize_var): Check if the variable
3357         is in referenced vars.
3358         (execute_update_addresses_taken): Remove old broken check.
3359         * gimple-pretty-print.c (pp_points_to_solution): Use
3360         referenced_var_lookup.
3361         * tree-into-ssa.c (dump_decl_set): Likewise.
3362
3363 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
3364
3365         PR debug/45003
3366         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
3367         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
3368         ZERO_EXTEND here.
3369
3370 2010-07-20  Richard Henderson  <rth@redhat.com>
3371
3372         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
3373
3374 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
3375
3376         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
3377         computing the sum of the stack pointer and a large constant.
3378         * config/arm/constraints.md (M): Remove superfluous parentheses.
3379         (Pc): New constraint.
3380
3381 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
3382
3383         PR debug/45006
3384         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
3385         operand's type if exp is tcc_unary class tree.
3386
3387 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
3388
3389         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
3390         Reverse sense of if_then_else condition.
3391
3392 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
3393
3394         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
3395         * config/rs6000/rs6000.c (rs6000_override_options): Set
3396         rs6000_block_move_inline_limit appropriately.
3397         (expand_block_move): Use rs6000_block_move_inline_limit.
3398         * doc/invoke.texi (mblock-move-inline-limit): Document.
3399
3400 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
3401
3402         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
3403         FROM and TO.  All callers changed.  Don't look for tracked uses,
3404         just scan the RTL for DEBUG_INSNs and substitute.
3405         (reload_combine_recognize_pattern): Call fixup_debug_insns.
3406         (reload_combine): Ignore DEBUG_INSNs.
3407
3408 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
3409
3410         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
3411         depth to 8 from 5.
3412
3413         PR debug/45003
3414         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
3415         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
3416         instead of the result's type.
3417
3418 2010-07-20  Richard Guenther  <rguenther@suse.de>
3419
3420         PR tree-optimization/44977
3421         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
3422         SSA form.
3423
3424 2010-07-20  Richard Guenther  <rguenther@suse.de>
3425
3426         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
3427         (lto_symtab_merge_decls_2): Likewise.
3428         * gimple.h (gimple_types_compatible_p): Declare.
3429         * gimple.c (gimple_queue_type_fixup): Remove.
3430         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
3431         (gimple_compatible_complete_and_incomplete_type_p): New function.
3432         (gimple_types_compatible_p): Adjust.
3433         (gimple_register_type): Remove type fixup code.
3434         (print_gimple_types_stats): Adjust.
3435         (free_gimple_type_tables): Likewise.
3436         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
3437         * tree-ssa.c (useless_type_conversion_p): Likewise.
3438
3439 2010-07-20  Richard Guenther  <rguenther@suse.de>
3440
3441         PR middle-end/44971
3442         PR middle-end/44988
3443         * tree-ssa.c (maybe_optimize_var): New function split out from ...
3444         (execute_update_addresses_taken): ... here.
3445         (non_rewritable_mem_ref_base): Likewise.
3446         (execute_update_addresses_taken): Do not iterate over all referenced
3447         vars but just all local decls and parms.
3448         Properly check call and asm arguments and rewrite call arguments.
3449
3450 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
3451
3452         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
3453         to top level.
3454         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
3455         definitions ...
3456         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
3457         New macro.
3458         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
3459
3460 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
3461
3462         * gengtype.c (start_root_entry): New function, split out from
3463         write_root.  Check whether V is null and raise an error if so.
3464         (write_field_root): Check for V being null.  Don't raise an error here;
3465         set V to null instead.
3466         (write_root): Update comment above function.  Use start_root_entry.
3467
3468 2010-07-19  Xinliang David Li  <davidxl@google.com>
3469
3470         PR testsuite/44932
3471         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
3472         def edges.
3473         (find_uninit_use): Add dump.
3474         (is_use_properly_guarded): Ditto.
3475         (warn_uninitialized_phi): Ditto.
3476         (execute_late_warn_uninitialized): Ditto.
3477
3478 2010-07-19  Richard Guenther  <rguenther@suse.de>
3479
3480         PR middle-end/44941
3481         * expr.c (emit_block_move_hints): Move zero size check first.
3482         Move asserts to more useful places.
3483         * calls.c (load_register_parameters): Check for zero size.
3484
3485 2010-07-19  Richard Henderson  <rth@redhat.com>
3486
3487         * tree-optimize.c (execute_all_early_local_passes): New.  Change
3488         cgraph_state here ...
3489         (execute_early_local_optimizations): ... not here.  Remove.
3490         (pass_early_local_passes, pass_all_early_optimizations): Update.
3491
3492 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
3493
3494         * postreload.c (reload_combine_closest_single_use): Ignore the
3495         number of uses for DEBUG_INSNs.
3496         (fixup_debug_insns): New static function.
3497         (reload_combine_recognize_const_pattern): Use it.  Don't let the
3498         main loop be affected by DEBUG_INSNs.
3499         Really disallow moving adds past a jump insn.
3500         (reload_combine_recognize_pattern): Don't update use_ruid here.
3501         (reload_combine_note_use): Do it here.
3502         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
3503
3504 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
3505
3506         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
3507         of a loop.
3508         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
3509
3510 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
3511
3512         * config/i386/darwin.h: Define darwin_emit_branch_islands.
3513         (TARGET_MACHO_BRANCH_ISLANDS): New.
3514         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
3515         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
3516         default value.
3517         * config/i386/i386.c (output_pic_addr_const): Do not emit
3518         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
3519         (x86_output_mi_thunk): Adjust symbol creation.
3520         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
3521         Remove out of date comment.
3522         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
3523         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
3524         (DARWIN_GENERATE_ISLANDS): Ditto.
3525         (output_call):  Do not emit branch islands unless
3526         darwin_emit_branch_islands is set.
3527         * config/darwin.c: Declare darwin_emit_branch_islands.
3528         (machopic_indirect_data_reference): Do not emit unless
3529         darwin_emit_branch_islands is set.
3530         (darwin_override_options): Set darwin_emit_branch_islands
3531         where it is needed.
3532         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
3533
3534 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3535
3536         * doc/sourcebuild.texi (Effective-Target Keywords): Document
3537         sse_runtime, sse2_runtime.
3538
3539 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
3540
3541         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
3542         low half of a single-register SCmode return value before ORing
3543         it with the high half.
3544         * config/mips/mips16.S (MERGE_GPRf): Likewise.
3545
3546 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3547
3548         PR target/44805
3549         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
3550         on all targets.
3551
3552 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
3553
3554         PR target/42235
3555         * postreload.c (reload_cse_move2add): Return bool, true if anything.
3556         changed.  All callers changed.
3557         (move2add_use_add2_insn): Likewise.
3558         (move2add_use_add3_insn): Likewise.
3559         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
3560         reload_combine.
3561         (RELOAD_COMBINE_MAX_USES): Bump to 16.
3562         (last_jump_ruid): New static variable.
3563         (struct reg_use): New members CONTAINING_MEM and RUID.
3564         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
3565         (reload_combine_split_one_ruid, reload_combine_split_ruids,
3566         reload_combine_purge_insn_uses, reload_combine_closest_single_use
3567         reload_combine_purge_reg_uses_after_ruid,
3568         reload_combine_recognize_const_pattern): New static functions.
3569         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
3570         is true for our reg and that we have available index regs.
3571         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
3572         callers changed.  Use them to initialize fields in struct reg_use.
3573         (reload_combine): Initialize last_jump_ruid.  Be careful when to
3574         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
3575         Call reload_combine_recognize_const_pattern.
3576         (reload_combine_note_store): Update REAL_STORE_RUID field.
3577
3578 2010-07-16  Jason Merrill  <jason@redhat.com>
3579
3580         * Makefile.in (opts-common.o): Depend on options.h.
3581
3582 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
3583
3584         * tree.c (build_common_builtin_nodes): Use build_function_type_list
3585         instead of build_function_type.
3586         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
3587         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
3588
3589 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
3590
3591         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
3592         do all the work.
3593         (rs6000_emit_int_cmove): Use function pointers for insn generation.
3594         Don't force values into registers unnecessarily.
3595         (output_isel): Assert that we're not given conditions we can't handle.
3596         Delete corresponding code.
3597         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
3598         scc_comparison_operator constraint.  Permit 0 for the consequent
3599         operand.  Permit any GPR for the alternative operand.
3600         (isel_unsigned_<mode>): Likewise.
3601
3602 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
3603
3604         PR target/44942
3605         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
3606         argument to const_tree.
3607         * config/i386/i386.c (function_arg_advance): If padding needs to be
3608         inserted before argument, increment cum->words by number of padding
3609         words as well.
3610         (contains_aligned_value_p): Change argument to const_tree.
3611         (ix86_function_arg_boundary): Change second argument to const_tree.
3612
3613 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
3614
3615         PR target/42235
3616         * function.c (record_hard_reg_sets): New static function.
3617         (assign_parm_setup_reg): If an optab for extending exists and the
3618         generated code clobbbers no hard regs, emit the insn directly and
3619         create a REG_EQUIV note.
3620
3621 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
3622
3623         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
3624         TREE_CHAIN.
3625         * c-typeck.c (push_init_level): Likewise.
3626         (process_init_element): Likewise.
3627
3628 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
3629
3630         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
3631         (integer_three_node): Add.
3632         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
3633         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
3634         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
3635         of call build_int_cst.
3636         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
3637         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
3638         (find_interesting_uses_address): Ditto.
3639         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
3640         * tree-eh.c (lower_eh_constructs_2): Ditto.
3641         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
3642         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
3643         * expmed.c (expand_divmod): Ditto.
3644         * tree-mudflap.c (mx_register_decls): Ditto.
3645         * varasm.c (array_size_for_constructor): Ditto.
3646         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
3647         * c-parser.c (c_parser_postfix_expression): Ditto.
3648
3649 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
3650
3651         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
3652         New static variables.
3653         (reload_combine_recognize_pattern): New static function, broken out
3654         of reload_combine.
3655         (reload_combine): Use it.  Only initialize first_index_reg and
3656         last_index_reg once.
3657
3658 2010-07-15  Richard Henderson  <rth@redhat.com>
3659
3660         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
3661         when done.
3662
3663 2010-07-15  Jan Hubicka  <jh@suse.cz>
3664
3665         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
3666         comdats for broken gold.
3667         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
3668
3669 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
3670
3671         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
3672
3673 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
3674
3675         * tree.h (DECL_CHAIN): Define.
3676         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3677         * c-decl.c: Likewise.
3678         * c-parser.c: Likewise.
3679         * c-typeck.c: Likewise.
3680         * cfgexpand.c: Likewise.
3681         * cgraph.c: Likewise.
3682         * cgraphunit.c: Likewise.
3683         * combine.c: Likewise.
3684         * config/alpha/alpha.c: Likewise.
3685         * config/arm/arm.c: Likewise.
3686         * config/frv/frv.c: Likewise.
3687         * config/i386/i386.c: Likewise.
3688         * config/i386/winnt-cxx.c: Likewise.
3689         * config/ia64/ia64.c: Likewise.
3690         * config/iq2000/iq2000.c: Likewise.
3691         * config/mep/mep.c: Likewise.
3692         * config/mips/mips.c: Likewise.
3693         * config/pa/som.h: Likewise.
3694         * config/rs6000/rs6000.c: Likewise.
3695         * config/s390/s390.c: Likewise.
3696         * config/sh/sh.c: Likewise.
3697         * config/sh/symbian-cxx.c: Likewise.
3698         * config/sparc/sparc.c: Likewise.
3699         * config/spu/spu.c: Likewise.
3700         * config/stormy16/stormy16.c: Likewise.
3701         * config/vxworks.c: Likewise.
3702         * config/xtensa/xtensa.c: Likewise.
3703         * coverage.c: Likewise.
3704         * dbxout.c: Likewise.
3705         * dwarf2out.c: Likewise.
3706         * emit-rtl.c: Likewise.
3707         * expr.c: Likewise.
3708         * function.c: Likewise.
3709         * gimple-low.c: Likewise.
3710         * gimple-pretty-print.c: Likewise.
3711         * gimplify.c: Likewise.
3712         * integrate.c: Likewise.
3713         * ipa-inline.c: Likewise.
3714         * ipa-prop.c: Likewise.
3715         * ipa-split.c: Likewise.
3716         * ipa-struct-reorg.c: Likewise.
3717         * ipa-type-escape.c: Likewise.
3718         * langhooks.c: Likewise.
3719         * lto-cgraph.c: Likewise.
3720         * omp-low.c: Likewise.
3721         * stor-layout.c: Likewise.
3722         * tree-cfg.c: Likewise.
3723         * tree-complex.c: Likewise.
3724         * tree-dfa.c: Likewise.
3725         * tree-dump.c: Likewise.
3726         * tree-inline.c: Likewise.
3727         * tree-mudflap.c: Likewise.
3728         * tree-nested.c: Likewise.
3729         * tree-object-size.c: Likewise.
3730         * tree-pretty-print.c: Likewise.
3731         * tree-sra.c: Likewise.
3732         * tree-ssa-live.c: Likewise.
3733         * tree-ssa-loop-niter.c: Likewise.
3734         * tree-ssa-math-opts.c: Likewise.
3735         * tree-ssa-reassoc.c: Likewise.
3736         * tree-ssa-sccvn.c: Likewise.
3737         * tree-ssa-structalias.c: Likewise.
3738         * tree-tailcall.c: Likewise.
3739         * tree-vrp.c: Likewise.
3740         * tree.c: Likewise.
3741         * var-tracking.c: Likewise.
3742         * varasm.c: Likewise.
3743
3744 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3745
3746         PR target/44877
3747         * config/spu/spu.c (spu_expand_builtin_1): Allow references
3748         (as well as pointers) as argument to mask_for_load builtins.
3749
3750 2010-07-15  Richard Guenther  <rguenther@suse.de>
3751
3752         PR tree-optimization/44946
3753         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
3754         with accessing only padding properly.
3755
3756 2010-07-15  Jan Hubicka  <jh@suse.cz>
3757
3758         * ipa.c (function_and_variable_visibility): Variables marked as used
3759         should not be localized.
3760
3761 2010-07-15  Jan Hubicka  <jh@suse.cz>
3762
3763         * cgraph.c: Include lto-streamer.h
3764         (change_decl_assembler_name): Work when assembler name hash is at place.
3765         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
3766         be sure to rename it to avoid name clash.
3767         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
3768         Localize hidden symbols only when locally defined.
3769
3770 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
3771
3772         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
3773
3774 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
3775             Kevin F. Quinn  <kevquinn@gentoo.org>
3776
3777         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
3778         * common.opt: Add -Wtrampolines.
3779         * doc/invoke.texi: Add -Wtrampolines.
3780
3781 2010-07-15  Jie Zhang  <jie@codesourcery.com>
3782
3783         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
3784         cortex_a8_issue_ls.
3785
3786 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
3787
3788         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
3789         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
3790
3791 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3792
3793         * config/spu/spu.c (reg_names): Remove prototype.
3794         (call_used_regs): Likewise.
3795
3796 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
3797
3798         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
3799         "unused" with attribute "used".
3800         (__JCR_END__): Likewise.
3801         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
3802         "used" attribute.
3803         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
3804
3805 2010-07-14  Richard Guenther  <rguenther@suse.de>
3806
3807         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
3808         (maybe_fixup_decls): Likewise.
3809         (input_gimple_stmt): Do not fixup anything.
3810         * lto-streamer-out.c (output_gimple_stmt): Make sure all
3811         non-automatic variable uses are wrapped inside a MEM_REF.
3812
3813 2010-07-14  Richard Henderson  <rth@redhat.com>
3814
3815         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
3816         for functions.
3817         * varasm.c (assemble_variable): Remove early exit for functions;
3818         assert that we're given a variable.
3819
3820 2010-07-14  Jie Zhang  <jie@codesourcery.com>
3821
3822         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
3823         cortex_a8_default when neon_type is not none.
3824
3825 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
3826
3827         * lower-subreg.c (subreg_context): New static bitmap.
3828         (decompose_multiword_subregs): Allocate and free it.
3829         (find_decomposable_subregs): Set a bit in it for a register that
3830         occurs in a subreg that changes mode but not size.
3831         (can_decompose_p): Test it instead of non_decomposable_context.
3832
3833 2010-07-14  Richard Guenther  <rguenther@suse.de>
3834
3835         PR tree-optimization/44824
3836         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
3837         is_gimple_mem_ref_addr.
3838         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
3839         non-decl_address_invariant_p addresses.
3840
3841 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
3842
3843         * reload.c (find_reloads): Revert code to penalize small register
3844         classes that was brought in with the IRA merge.
3845
3846 2010-07-14  Richard Guenther  <rguenther@suse.de>
3847
3848         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
3849         as base of ARRAY_REFs.
3850
3851 2010-07-14  Richard Guenther  <rguenther@suse.de>
3852
3853         PR middle-end/44930
3854         * tree-pretty-print.c (do_niy): Do not print a newline.
3855
3856 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
3857
3858         * ira-int.h (struct ira_object): New.
3859         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
3860         (struct ira_allocno): Remove members min, max,
3861         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
3862         conflict_allocnos_num and conflict_vec_p.  Add new member object.
3863         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
3864         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
3865         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
3866         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
3867         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
3868         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
3869         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
3870         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
3871         an ira_object_t rather than ira_allocno_t.  All uses changed.
3872         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
3873         contains a vector of ira_object_t; all uses changed.
3874         (ira_objects_num): Declare variable.
3875         (ira_create_allocno_object): Declare function.
3876         (ira_conflict_vector_profitable_p): Adjust prototype.
3877         (ira_allocate_conflict_vec): Renamed from
3878         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
3879         (ira_allocate_object_conflicts): Renamed from
3880         ira_allocate_allocno_conflicts; first arg now ira_object_t.
3881         (struct ira_object_iterator): New.
3882         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
3883         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
3884         to conflict_vec_p.  All uses changed.
3885         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
3886         Changed to take into account that conflicts are now tracked for
3887         objects.
3888         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
3889         Args changed to accept ira_object_t.  All uses changed.
3890         (allocnos_conflict_p): New static function.
3891         (collected_conflict_objects): Renamed from collected_allocno_objects;
3892         now a vector of ira_object_t.  All uses changed.
3893         (build_conflict_bit_table): Changed to take into account that
3894         conflicts are now tracked for objects.
3895         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
3896         (print_allocno_conflicts, ira_build_conflicts): Likewise.
3897         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
3898         setup_allocno_left_conflicts_size, allocno_reload_assign,
3899         fast_allocation): Likewise.
3900         * ira-lives.c (make_hard_regno_born, make_allocno_born)
3901         process_single_reg_class_operands, process_bb_node_lives): Likewise.
3902         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
3903         Likewise.
3904         * ira-build.c (ira_objects_num): New variable.
3905         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
3906         contains a vector of ira_object_t; all uses changed.
3907         (ira_object_id_map_vec): Corresponding change.
3908         (object_pool): New static variable.
3909         (initiate_allocnos): Initialize it.
3910         (finish_allocnos): Free it.
3911         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
3912         New functions.
3913         (ira_create_allocno): Don't set members that were removed.
3914         (ira_set_allocno_cover_class): Don't change conflict hard regs.
3915         (merge_hard_reg_conflicts): Changed to take into account that
3916         conflicts are now tracked for objects.
3917         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
3918         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
3919         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
3920         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
3921         setup_min_max_conflict_allocno_ids, ):  Likewise.
3922         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
3923         to ira_object_t; all callers changed.
3924         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
3925         to ira_object_t, all callers changed.
3926         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
3927         to ira_object_t, all callers changed.
3928         (conflict_check, curr_conflict_check_tick): Renamed from
3929         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
3930         changed.
3931         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
3932         arg changed to ira_object_t, all callers changed.
3933         (create_cap_allocno): Call ira_create_allocno_object.
3934         (finish_allocno): Free the corresponding object.
3935         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
3936         callers changed.  Adjusted for dealing with objects.
3937         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
3938         dealing with objects.
3939         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
3940
3941         * ira-int.h (struct live_range): Rename allocno member to object
3942         and change type to ira_object_t.
3943         (struct ira_object): New member live_ranges.
3944         (struct ira_allocno): Remove member live_ranges.
3945         (ALLOCNO_LIVE_RANGES): Remove.
3946         (OBJECT_LIVE_RANGES): New macro.
3947         (ira_create_live_range, ira_copy_live_range_list,
3948         ira_merge_live_range_list, ira_live_ranges_intersect_p,
3949         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
3950         * ira-build.c (ira_create_object): Initialize live ranges here.
3951         (ira_create_allocno): Not here.
3952         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
3953         changed to ira_object_t, all callers changed.
3954         (copy_live_range): Rename from copy_allocno_live_range, all callers
3955         changed.
3956         (ira_copy_live_range_list): Rename from
3957         ira_copy_allocno_live_range_list, all callers changed.
3958         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
3959         all callers changed.
3960         (ira_live_ranges_intersect_p): Rename from
3961         ira_allocno_live_ranges_intersect_p, all callers changed.
3962         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
3963         callers changed.
3964         (ira_finish_live_range_list): Rename from
3965         ira_finish_allocno_live_range_list, all callers changed.
3966         (change_object_in_range_list): Rename from change_allocno_in_range_list,
3967         last arg changed to ira_object_t, all callers changed.
3968         (finish_allocno): Changed to expect live ranges in the allocno's object.
3969         (move_allocno_live_ranges, copy_allocno_live_ranges,
3970         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
3971         ira_flattening, ira_build): Likewise.
3972         * ira-color.c (allocnos_have_intersected_live_ranges_p,
3973         slot_coalesced_allocno_live_ranges_intersect,
3974         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
3975         * ira-conflicts.c (build_conflict_bit_table): Likewise.
3976         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
3977         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
3978         make_allocno_dead, create_start_finish_chains,
3979         remove_some_program_points_and_update_live_ranges,
3980         ira_debug_live_range_list): Likewise.
3981
3982         * ira-int.h (ira_object_conflict_iterator): Rename from
3983         ira_allocno_conflict_iterator.
3984         (ira_object_conflict_iter_init): Rename from
3985         ira_allocno_conflict_iter_init, second arg changed to
3986         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
3987         FOR_EACH_ALLOCNO_CONFLICT.
3988         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
3989         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
3990         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
3991         * ira-conflicts.c (print_allocno_conflicts): Likewise.
3992
3993 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
3994
3995         PR other/44874
3996         * tree-dump.c (dump_options): Add enumerate_locals entry.
3997         Add TDF_NOID exclusion to all entry.
3998         * tree-dump.h (dump_enumerated_decls): Declare.
3999         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
4000         Don't display type uid.
4001         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
4002         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
4003         * tree-ssa-live.c: Include gimple.h.
4004         (numbered_tree_d): New struct.
4005         (numbered_tree): New typedef.
4006         (DEF_VEC_O (numbered_tree): New.
4007         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
4008         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
4009         (dump_enumerated_decls): Likewise.
4010         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
4011         debug info and flag_dump_final_insns, call dump_enumerated_decls.
4012         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
4013         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
4014
4015 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
4016
4017         * expmed.h (MAX_BITS_PER_WORD): Move to...
4018         * defaults.h (MAX_BITS_PER_WORD): ...here.
4019
4020 2010-07-13  DJ Delorie  <dj@redhat.com>
4021
4022         * config/h8300/h8300.c (h8300_init_once): Default to
4023         -fstrict_volatile_bitfields.
4024
4025         * config/sh/sh.c (sh_override_options): Default to
4026         -fstrict_volatile_bitfields.
4027
4028         * config/rx/rx.c (rx_option_override): New.
4029
4030         * config/m32c/m32c.c (m32c_override_options): Default to
4031         -fstrict_volatile_bitfields.
4032
4033 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
4034
4035         * tree.h (build_function_call_expr): Delete.
4036         (build_call_expr_loc_array): New function.
4037         (build_call_expr_loc_vec): New function.
4038         * tree-flow.h (struct omp_region): Change type of ws_args field
4039         to a VEC.
4040         * builtins.c (build_function_call_expr): Delete.
4041         (build_call_expr_loc_array): New function.
4042         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
4043         (build_call_expr): Likewise.
4044         (build_call_expr_loc_vec): New function.
4045         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
4046         build_function_call_expr.
4047         * expr.c (emutls_var_address): Likewise.
4048         * varasm.c (emutls_common_1): Likewise.
4049         * omp-low.c (expand_omp_atomic_mutex): Likewise.
4050         (expand_omp_taskreg): Adjust for new type of region->ws_args.
4051         (get_ws_args_for): Return a VEC instead of a tree.
4052         (expand_parallel_call): Call build_call_expr_loc_vec instead of
4053         build_function_call_expr.
4054         * stor-layout.c (self_referential_size): Likewise.
4055
4056 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
4057
4058         PR testsuite/44701
4059         * recog.c (constrain_operands): Allow side-effects in memory
4060         operands if either < or > constraint is used, rather than if
4061         both < and > is used.
4062
4063 2010-07-13  Richard Guenther  <rguenther@suse.de>
4064
4065         PR middle-end/44911
4066         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
4067         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
4068         without name.
4069
4070 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
4071
4072         PR target/44761
4073         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
4074         to variable emited.
4075         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
4076         * config/sh/sh.md (symGOT_load): Likewise.
4077         (symDTPOFF2reg): Likewise.
4078         (symTPOFF2reg): Likewise.
4079
4080 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4081
4082         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
4083         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
4084
4085 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4086
4087         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
4088         explanation.
4089         Find ucontext_t * on Solaris 11.
4090         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
4091         Handle new Solaris 11 __sighndlr patterns.
4092
4093 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
4094
4095         PR debug/44901
4096         * vec.h (VEC_block_remove): Fix comment.
4097         * tree-ssa-live.c (remove_unused_locals): Don't use
4098         VEC_unordered_remove on local_decls, instead replace a single
4099         vector element in each iteration if at least one element had
4100         to be removed and VEC_truncate at the end.
4101         * omp-low.c (expand_omp_taskreg): Likewise.
4102
4103 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4104
4105         * c-decl.c (finish_function): Fix typo in comment.
4106
4107 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
4108
4109         PR bootstrap/44921
4110         * postreload.c (move2add_use_add3_insn): Silence gcc warning
4111         on min_regno.
4112
4113 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
4114
4115         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
4116         (simplify_stmt_using_ranges): Use it.
4117
4118 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4119
4120         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
4121         member.  Do not mark as GTY(()).
4122         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
4123         (spu_builtin_decls): New static variable.
4124         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
4125         (spu_init_builtins): Likewise.
4126         (spu_builtin_mul_widen_even): Likewise.
4127         (spu_builtin_mul_widen_odd): Likewise.
4128         (spu_builtin_mask_for_load): Likewise.
4129         (spu_builtin_vec_perm): Likewise.
4130         * config/spu/spu-c.c: Include "target.h".
4131         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
4132         of using spu_builtins[].fndecl.
4133
4134 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4135
4136         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
4137         imply -minterlink-mips16.
4138
4139 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4140
4141         * config/mips/mips.h (mips16_globals): Declare.
4142         (SWITCHABLE_TARGET): Define.
4143         * config/mips/mips.c: Include target-globals.h.
4144         (mips16_globals): New variable.
4145         (mips_set_mips16_mode): Use save_target_globals and
4146         restore_target_globals instead of target_reinit.
4147
4148 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4149
4150         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
4151         to say that the function can be called more than once.
4152         * target-globals.c (save_target_globals): Call init_reg_sets.
4153
4154 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4155
4156         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
4157         * bb-reorder.h: New file.
4158         * bb-reorder.c (default_target_bb_reorder): New variable.
4159         (this_target_bb_reorder): New conditional variable.
4160         (uncond_jump_length): Redefine as a macro.
4161         * target-globals.h (this_target_bb_reorder): Declare.
4162         (target_globals): Add a bb_reorder field.
4163         (restore_target_globals): Copy the bb_reorder field to
4164         this_target_bb-reorder.
4165         * target-globals.c: Include bb-reorder.h.
4166         (default_target_globals): Initialize the bb_reorder field.
4167         (save_target_globals): Likewise.
4168
4169 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4170
4171         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
4172         * gcse.h: New file.
4173         * gcse.c: Include gcse.h.
4174         (default_target_gcse): New variable.
4175         (this_target_gcse): New conditional variable.
4176         (can_copy): Redefine as a macro.
4177         (can_copy_init_p): New macro.
4178         (can_copy_p): Remove can_copy_init_p.
4179         * target-globals.h (this_target_gcse): Declare.
4180         (target_globals): Add a gcse field.
4181         (restore_target_globals): Copy the gcse field to this_target_gcse.
4182         * target-globals.c: Include gcse.h.
4183         (default_target_globals): Initialize the gcse field.
4184         (save_target_globals): Likewise.
4185
4186 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4187
4188         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
4189         and x_ira_prohibited_mode_move_regs_initialized_p.
4190         (ira_prohibited_mode_move_regs): Redefine as a macro.
4191         * ira.c (ira_prohibited_mode_move_regs): Delete.
4192         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
4193
4194 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4195
4196         * reload.h (target_reload): Add x_cached_reg_save_code and
4197         x_cached_reg_restore_code.
4198         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
4199         Redefine as macros.
4200
4201 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4202
4203         * Makefile.in (target-globals.o): Depend on builtins.h.
4204         * builtins.h: New file.
4205         * builtins.c: Include builtins.h.
4206         (default_target_builtins): New variable.
4207         (this_target_builtins): New conditional variable.
4208         (apply_args_mode, apply_result_mode): Redefine as macros.
4209         * target-globals.h (this_target_builtins): Declare.
4210         (target_globals): Add a builtins field.
4211         (restore_target_globals): Copy the builtins field to
4212         this_target_builtins.
4213         * target-globals.c: Include builtins.h.
4214         (default_target_globals): Initialize the builtins field.
4215         (save_target_globals): Likewise.
4216
4217 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4218
4219         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
4220         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
4221         from expmed.c.
4222         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
4223         (alg_hash, alg_hash_used_p): New macros.
4224         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
4225         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
4226         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
4227
4228 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4229
4230         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
4231         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
4232         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
4233         (this_op_costs, costs_classes): Redefine as macros.
4234         (record_reg_classes): Don't take op_costs as a parameter.
4235         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
4236         (scan_one_insn): Update call to record_operand_costs.
4237
4238 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4239
4240         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
4241         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
4242         (target_ira_int): New structure.
4243         (default_target_ira_int): Declare.
4244         (this_target_ira_int): Declare as a variable or define as a macro.
4245         (ira_reg_mode_hard_regset, ira_register_move_cost)
4246         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
4247         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
4248         (prohibited_class_mode_regs, ira_important_classes_num)
4249         (ira_important_classes, ira_reg_class_intersect)
4250         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
4251         (ira_reg_class_union): Redefine as macros.
4252         * ira.h (target_ira): New structure.
4253         (default_target_ira): Declare.
4254         (this_target_ira): Declare as a variable or define as a macro.
4255         (ira_available_class_regs, ira_hard_regno_cover_class)
4256         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
4257         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
4258         (ira_class_hard_regs_num): Redefine as macros.
4259         * ira.c (default_target_ira, default_target_ira_int): New variables.
4260         (this_target_ira, this_target_ira_int): New conditional variables.
4261         (ira_reg_mode_hard_regset, ira_memory_move_cost)
4262         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
4263         (ira_class_subset_p): Delete.
4264         (no_unit_alloc_regs): Redefine as a macro.
4265         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
4266         (ira_class_hard_regs_num, ira_class_hard_reg_index)
4267         (ira_available_class_regs): Delete.
4268         (alloc_reg_class_subclasses): Redefine as a macro.
4269         (ira_reg_class_cover_size, ira_reg_class_cover)
4270         (ira_important_classes_num, ira_important_classes)
4271         (ira_important_class_nums, ira_class_translate): Delete.
4272         (cover_class_order): Document the variable's lifetime.
4273         (reorder_important_classes): Don't set ira_important_class_nums.
4274         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
4275         (ira_reg_class_super_classes, ira_reg_class_union)
4276         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
4277         Delete.
4278         (setup_reg_class_nregs): Don't set ira_max_regs.
4279         (prohibited_class_mode_regs): Delete.
4280         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
4281         (target_globals): Add ira and ira_int fields.
4282         (restore_target_globals): Copy the ira field to this_target_ira
4283         and the ira_int field to this_target_ira_int.
4284         * target-globals.c: Include ira-int.h.
4285         (default_target_globals): Initialize the ira and ira_int fields.
4286         (save_target_globals): Likewise.
4287
4288 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4289
4290         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
4291         * cfgloop.h (target_cfgloop): New structure.
4292         (default_target_cfgloop): Declare.
4293         (this_target_cfgloop): Declare as a variable or define as a macro.
4294         (target_avail_regs, target_clobbered_regs, target_res_regs)
4295         (target_reg_cost, target_spill_cost): Redefine as macros.
4296         * cfgloopanal.c (default_target_cfgloop): New variable.
4297         (this_target_cfgloop): New conditional variable.
4298         (target_avail_regs, target_clobbered_regs, target_res_regs)
4299         (target_reg_cost, target_spill_cost): Delete.
4300         * target-globals.h (this_target_cfgloop): Declare.
4301         (target_globals): Add a cfgloop field.
4302         (restore_target_globals): Copy the cfgloop field to
4303         this_target_cfgloop.
4304         * target-globals.c: Include cfgloop.h.
4305         (default_target_globals): Initialize the cfgloop field.
4306         (save_target_globals): Likewise.
4307
4308 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4309
4310         * regs.h (target_regs): Add x_direct_load, x_direct_store and
4311         x_float_extend_from_mem.
4312         (direct_load, direct_store, float_extend_from_mem): New macros.
4313         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
4314
4315 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4316
4317         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
4318         (target-globals.o): Depend on $(LIBFUNCS_H).
4319         * libfuncs.h: Include hashtab.h.
4320         (libfunc_entry): Moved from optabs.c.
4321         (target_libfuncs): New structure.
4322         (default_target_libfuncs): Declare.
4323         (this_target_libfuncs): Declare as a variable or define as a macro.
4324         (libfunc_table): Redefine as a macro.
4325         * optabs.c (default_target_libfuncs): New variable.
4326         (this_target_libfuncs): New conditional variable.
4327         (libfunc_table): Delete.
4328         (libfunc_entry): Moved to optabs.h.
4329         (libfunc_hash): Redefine as a macro.
4330         (hash_libfunc, eq_libfunc): Fix comments.
4331         (init_optabs): Use libfunc_hash to detect cases where the function
4332         has already been called.  Clear the hash table instead of
4333         recreating it.
4334         * target-globals.h (this_target_libfuncs): Declare.
4335         (target_globals): Add a libfuncs field.
4336         (restore_target_globals): Copy the libfuncs field to
4337         this_target_libfuncs.
4338         * target-globals.c: Include libfuncs.h.
4339         (default_target_globals): Initialize the libfuncs field.
4340         (save_target_globals): Likewise.
4341
4342 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4343
4344         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
4345         in all dependency lists.
4346
4347 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4348
4349         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
4350         * optabs.h (target_optabs): New structure.
4351         (default_target_optabs): Declare.
4352         (this_target_optabs): Declare as a variable or define as a macro.
4353         (optab_table, convert_optab_table, direct_optab_table): Redefine
4354         as macros.
4355         * optabs.c (default_target_optabs): New variable.
4356         (this_target_optabs): New conditional variable.
4357         (optab_table, convert_optab_table, direct_optab_table): Delete.
4358         * target-globals.h (this_target_optabs): Declare.
4359         (target_globals): Add a optabs field.
4360         (restore_target_globals): Copy the optabs field to
4361         this_target_optabs.
4362         * target-globals.c: Include expr.h and optabs.h.
4363         (default_target_globals): Initialize the optabs field.
4364         (save_target_globals): Likewise.
4365
4366 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4367
4368         * flags.h (target_flagstate): Add x_flag_excess_precision.
4369         (flag_excess_precision): Redefine as a macro.
4370         * toplev.c (flag_excess_precision): Delete.
4371
4372 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4373
4374         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
4375         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
4376         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
4377         (no_caller_save_reg_set): Redefine as a macro.
4378         * reload.h (target_reload): Add x_caller_save_initialized_p and
4379         x_regno_save_mode.
4380         (caller_save_initialized_p): Redefine as a macro.
4381         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
4382         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
4383         (regno_save_mode): Redefine as a macro.
4384
4385 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4386
4387         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
4388         * expmed.h: New file.
4389         * expmed.c (default_target_costs): New variable.
4390         (this_target_costs): New conditional variable.
4391         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
4392         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
4393         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
4394         * target-globals.h (this_target_expmed): Declare.
4395         (target_globals): Add a expmed field.
4396         (restore_target_globals): Copy the expmed field to
4397         this_target_expmed.
4398         * target-globals.c: Include expmed.h.
4399         (default_target_globals): Initialize the expmed field.
4400         (save_target_globals): Likewise.
4401
4402 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4403
4404         * Makefile.in (target-globals.o): Depend on reload.h.
4405         * reload.h (target_reload): New structure.
4406         (default_target_reload): Declare.
4407         (this_target_reload): Declare as a variable or define as a macro.
4408         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
4409         * reload1.c (default_target_reload): New variable
4410         (this_target_reload): New conditional variable.
4411         (indirect_symref_ok, double_reg_address_ok): Delete.
4412         (spill_indirect_levels): Redefine as a macro.
4413         * target-globals.h (this_target_reload): Declare.
4414         (target_globals): Add a reload field.
4415         (restore_target_globals): Copy the reload field to
4416         this_target_reload.
4417         * target-globals.c: Include hard-reg-set.h.
4418         (default_target_globals): Initialize the reload field.
4419         (save_target_globals): Likewise.
4420
4421 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4422
4423         * rtl.h (target_rtl): Add x_static_reg_base_value.
4424         * alias.c (static_reg_base_value): Redefine as a macro.
4425
4426 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4427
4428         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
4429         (GTFILES): Remove reginfo.c.
4430         * rtl.h (target_rtl): Add x_top_of_stack.
4431         (top_of_stack): New macro.
4432         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
4433         (top_of_stack): Delete.
4434
4435 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4436
4437         * regs.h (target_regs): Add x_hard_regs_of_mode,
4438         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
4439         x_may_move_out_cost and x_last_mode_for_init_move_cost.
4440         (have_regs_of_mode, contains_reg_of_mode, move_cost)
4441         (may_move_in_cost, may_move_out_cost): Redefine as macros.
4442         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
4443         (may_move_in_cost, may_move_out_cost): Delete.
4444         (last_mode_for_init_move_cost): Redefine as a macro.
4445
4446 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4447
4448         * hard-reg-set.h (target_hard_regs): New structure.
4449         (default_target_hard_regs): Declare.
4450         (this_target_hard_regs): Declare as a variable or define as a macro.
4451         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
4452         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
4453         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
4454         (reg_class_size, reg_class_subclasses, reg_class_subunion)
4455         (reg_class_superunion, reg_names): Redefine as macros.
4456         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
4457         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
4458         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
4459         (reg_class_contents, reg_class_size, reg_class_subclasses)
4460         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
4461         (default_target_hard_regs): New variable
4462         (this_target_hard_regs, initial_call_really_used_regs)
4463         (initial_reg_alloc_order): New conditional variables.
4464         (initial_reg_names): New variable.
4465         (init_reg_sets): Assert that initial_call_really_used_regs,
4466         initial_reg_alloc_order and initial_reg_names
4467         are all the same size as their variable counterparts.  Use them to
4468         initialize those counterparts.
4469         * target-globals.h (this_target_hard_regs): Declare.
4470         (target_globals): Add a hard_regs field.
4471         (restore_target_globals): Copy the hard_regs field to
4472         this_target_hard_regs.
4473         * target-globals.c: Include hard-reg-set.h.
4474         (default_target_globals): Initialize the hard_regs field.
4475         (save_target_globals): Likewise.
4476
4477 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4478
4479         * Makefile.in (target-globals.o): Depend on $(RTL_H).
4480         * rtl.h (target_rtl): New structure.
4481         (default_target_rtl): Declare.
4482         (this_target_rtl): Declare as a variable or define as a macro.
4483         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
4484         Redefine as macros.
4485         * emit-rtl.c (default_target_rtl): New variable.
4486         (this_target_rtl): New conditional variable.
4487         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
4488         (return_address_pointer_rtx): Delete.
4489         (initial_regno_reg_rtx): New macro.
4490         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
4491         (init_emit_regs): Likewise.
4492         * target-globals.h (this_target_rtl): Declare.
4493         (target_globals): Add a rtl field.
4494         (restore_target_globals): Copy the rtl field to this_target_rtl.
4495         * target-globals.c: Include rtl.h.
4496         (default_target_globals): Initialize the rtl field.
4497         (save_target_globals): Likewise.
4498
4499 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4500
4501         * Makefile.in (target-globals.o): Depend on $(REGS_H).
4502         * regs.h (target_reg_modes): New structure.
4503         (default_target_reg_modes): Declare.
4504         (this_target_reg_modes): Declare as a variable or define as a macro.
4505         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
4506         * reginfo.c (default_target_reg_modes): New variable.
4507         (this_target_reg_modes): New conditional variable.
4508         (hard_regno_nregs, reg_raw_mode): Delete.
4509         * target-globals.h (this_target_regs): Declare.
4510         (target_globals): Add a regs field.
4511         (restore_target_globals): Copy the regs field to this_target_regs.
4512         * target-globals.c: Include regs.h.
4513         (default_target_globals): Initialize the regs field.
4514         (save_target_globals): Likewise.
4515
4516 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4517
4518         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
4519         * doc/tm.texi: Regenerate.
4520         * Makefile.in (OBJS-common): Add target-globals.o.
4521         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
4522         and target-globals.h.
4523         (target-globals.o): New rule.
4524         (GTFILES): Include $(srcdir)/target-globals.h.
4525         * defaults.h (SWITCHABLE_TARGET): Define.
4526         * gengtype.c (open_base_files): Add target-globals.h to the
4527         list of includes.
4528         * target-globals.h: New file.
4529         * target-globals.c: Likewise.
4530
4531         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
4532         * flags.h (target_flag_state): New structure.
4533         (default_target_flag_state): Declare.
4534         (this_target_flag_state): Declare as a variable or define as a macro.
4535         (align_loops_log): Redefine as a macro.
4536         (align_loops_max_skip, align_jumps_log): Likewise.
4537         (align_jumps_max_skip, align_labels_log): Likewise.
4538         (align_labels_max_skip, align_functions_log): Likewise.
4539         * toplev.c (default_target_flag_state): New variable.
4540         (this_target_flag_state): New conditional variable.
4541         (align_loops_log): Delete.
4542         (align_loops_max_skip, align_jumps_log): Likewise.
4543         (align_jumps_max_skip, align_labels_log): Likewise.
4544         (align_labels_max_skip, align_functions_log): Likewise.
4545         * target-globals.h (this_target_flag_state): Declare.
4546         (target_globals): Add a flag_state field.
4547         (restore_target_globals): Copy the flag_state field to
4548         this_target_flag_state.
4549         * target-globals.c: Include flags.h.
4550         (default_target_globals): Initialize the flag_state field.
4551         (save_target_globals): Likewise.
4552
4553 2010-07-12  Jie Zhang  <jie@codesourcery.com>
4554
4555         * postreload.c (reg_symbol_ref[]): New.
4556         (move2add_use_add2_insn): New.
4557         (move2add_use_add3_insn): New.
4558         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
4559         (move2add_note_store): Likewise.
4560
4561 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
4562
4563         PR rtl-optimization/44752
4564         * genautomata.c (main): Don't emit an empty file even if there
4565         is no automaton.
4566
4567 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4568
4569         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
4570         ix86_solaris_return_in_memory.
4571         * config/i386-protos.h: Reflect this.
4572         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
4573         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
4574         Move ...
4575         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
4576
4577 2010-07-12  Jie Zhang  <jie@codesourcery.com>
4578
4579         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
4580         align the stack when it's going to be saved.
4581
4582 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4583
4584         PR pch/14940
4585         * config/host-solaris.c (mmap_fixed): New function.
4586         (sol_gt_pch_get_address): Use it.
4587         (sol_gt_pch_use_address): Likewise.
4588
4589 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4590
4591         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
4592         pentiumpro on Solaris 8 and 9/x86.
4593         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
4594         Document SSE/SSE2 support.
4595         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
4596
4597 2010-07-12  Andi Kleen  <ak@linux.intel.com>
4598
4599         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
4600         instead of gcc_assert to print better error message for multiple
4601         prevailing defs.
4602
4603 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
4604
4605         * config/i386/i386.c (ix86_asm_output_function_label): Change format
4606         string placeholder from 0x%x to %#x.
4607         (ix86_code_end): Use putc to output '\n'.
4608         (ix86_print_operand) <case ';'>: Use putc to output ';'.
4609
4610 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
4611
4612         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
4613         in directive -export.
4614
4615 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
4616
4617         * reginfo.h (reg_classes_intersect_p): Change arguments type to
4618         reg_class_t.
4619         * rtl.h (reg_classes_intersect_p): Adjust prototype.
4620
4621         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
4622         Remove macros.
4623         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
4624         rs6000_memory_move_cost): Remove
4625         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
4626         TARGET_MEMORY_MOVE_COST): Define.
4627         (rs6000_register_move_cost): Make static. Change arguments type from
4628         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
4629         (rs6000_memory_move_cost): Make static. Change arguments type from
4630         'enum reg_class' to reg_class_t.
4631
4632 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
4633
4634         PR middle-end/42505
4635         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
4636         lookup code into....
4637         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
4638         new functions.
4639         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
4640         * cfgloopanal.c (target_clobbered_regs): Define.
4641         (init_set_costs): Initialize target_clobbered_regs.
4642         (estimate_reg_pressure_cost): Add call_p argument.  When true,
4643         adjust the number of available registers to exclude the
4644         call-clobbered registers.
4645         * cfgloop.h (target_clobbered_regs): Declare.
4646         (estimate_reg_pressure_cost): Adjust declaration.
4647         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
4648         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
4649         (determine_set_costs): Dump target_clobbered_regs.
4650         (loop_body_includes_call): New function.
4651         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
4652         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
4653         call_p flag through.
4654         (best_gain_for_invariant): Likewise.
4655         (find_invariants_to_move): Likewise.
4656         (move_single_loop_invariants): Likewise, using already-computed
4657         has_call field.
4658
4659 2010-07-10  Richard Guenther  <rguenther@suse.de>
4660             Joern Rennecke  <joern.rennecke@embecosm.com>
4661
4662         PR debug/44832
4663         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
4664         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
4665         unless they have DECL_IGNORED_P set.
4666
4667 2010-07-10  Richard Guenther  <rguenther@suse.de>
4668
4669         PR lto/44889
4670         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
4671         helper function.
4672         (gimple_types_compatible_p): Similar to pointed-to
4673         types allow and merge a mix of complete and incomplete aggregate.
4674         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
4675         (iterative_hash_gimple_type): Adjust for that.
4676
4677 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
4678
4679         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
4680
4681 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
4682
4683         PR objc/44140
4684         * config/darwin.c (output_objc_section_asm_op): Save and restore
4685         section when outputting ObjC section list.
4686
4687 2010-07-09  Jan Hubicka  <jh@suse.cz>
4688
4689         * lto-streamer-out.c (produce_symtab): Do not write alias
4690         cgraph/varpool nodes.
4691
4692 2010-07-09  Jan Hubicka  <jh@suse.cz>
4693
4694         * tree-inline.c (declare_return_variable): Fix ICE while
4695         inlining DECL_BY_VALUE function not in SSA form
4696
4697 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
4698
4699         PR tree-optimization/44576
4700         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
4701         New.  Pull out from is_loop_prefetching_profitable to implement
4702         the trip count to ahead ratio heuristic.
4703         (mem_ref_count_reasonable_p): New.  Pull out from
4704         is_loop_prefetching_profitable to implement the instruction to
4705         memory reference ratio heuristic.  Also consider not reasonable if
4706         the memory reference count is above a threshold (to avoid
4707         explosive compilation time.
4708         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
4709         is_loop_prefetching_profitable to implement the instruction to
4710         prefetch ratio heuristic.
4711         (is_loop_prefetching_profitable): Removed.
4712         (loop_prefetch_arrays): Distribute the cost analysis across the
4713         function to allow early exit of the prefetch analysis.
4714         is_loop_prefetching_profitable is splitted into three functions,
4715         with each one called as early as possible.
4716         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
4717         number of memory references in a loop is considered too many.
4718
4719 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
4720
4721         * reload.c (find_reloads): Don't clear badop if we have a winreg
4722         alternative, but not win, and the class only has fixed regs.
4723         * hard-reg-set.h (class_only_fixed_regs): Declare.
4724         * reginfo.c (class_only_fixed_regs): New array.
4725         (init_reg_sets_1): Initialize it.
4726         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
4727         discourage alternatives using the stack pointer.
4728
4729         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
4730
4731         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
4732
4733         * config/arm/arm.md (cbranchqi4): Fix array size.
4734         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
4735         calculating length.
4736
4737 2010-07-09  Richard Guenther  <rguenther@suse.de>
4738
4739         * gimple.c (struct type_fixup_s): New struct and VEC type.
4740         (gimple_register_type_fixups): New static global.
4741         (gimple_queue_type_fixup): New function.
4742         (gimple_types_compatible_p): Queue type fixups instead of
4743         applying them here.
4744         (gimple_register_type): Apply queued fixups for the
4745         canonical type.  Empty the type fixup queue.
4746
4747 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
4748
4749         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
4750         * configure: Regenerate.
4751         * config.in: Ditto.
4752
4753 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
4754             Denys Vlasenko  <dvlasenk@redhat.com>
4755             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4756
4757         PR tree-optimization/28632
4758         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
4759         (extract_range_from_binary_expr): Further optimize
4760         BIT_AND_EXPR and BIT_IOR_EXPR.
4761
4762 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
4763
4764         * tree-if-conv.c (fold_or_predicates): New.
4765         (add_to_predicate_list): Call it.
4766
4767 2010-07-09  Richard Guenther  <rguenther@suse.de>
4768
4769         PR middle-end/44890
4770         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
4771         if base is a pointer.
4772         * tree-cfg.c (verify_expr): Update MEM_REF checking.
4773
4774 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
4775
4776         PR target/44877
4777         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
4778         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
4779         builtin mask for load/store builtins.
4780
4781 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
4782
4783         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
4784         for "lock addl".
4785         * configure: Regenerate.
4786         * config/i386/i386.c (ix86_print_operand) <case ';'>:
4787         Remove TARGET_MACHO.
4788
4789 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
4790
4791         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
4792         default ISA flags.
4793         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
4794
4795 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
4796
4797         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
4798
4799 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
4800
4801         * config/picochip/picochip.md (commsTestPort): Emit more
4802         efficient sequence for tstport instruction.
4803
4804 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
4805
4806         * config/i386/i386.c (ix86_veclib_handler): Make static.
4807
4808 2010-07-09  Richard Guenther  <rguenther@suse.de>
4809
4810         PR tree-optimization/44852
4811         * tree-ssa-alias.c: Include toplev.h for exact_log2.
4812         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
4813         in MEM_REF.
4814         (indirect_refs_may_alias_p): Likewise.
4815         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
4816
4817 2010-07-09  Richard Guenther  <rguenther@suse.de>
4818
4819         PR tree-optimization/44882
4820         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
4821         sets do conflict.
4822         (vectorizable_load): Likewise.
4823
4824 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
4825
4826         PR target/40657
4827         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
4828         All callers changed.
4829         Handle the case when we're called for the epilogue.
4830         (thumb_unexpanded_epilogue): Use it.
4831         (thumb1_expand_epilogue): Likewise.
4832
4833 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
4834
4835         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
4836         both ranges are range_int_cst_p with non-negative minimum,
4837         try harder to derive smaller range.
4838
4839 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4840
4841         * genrecog.c: Include diagnostic-core.h before toplev.h.
4842         * genoutput.c: Likewise.
4843         * genextract.c: Likewise.
4844         * genautomata.c: Likewise.
4845         * genemit.c: Likewise.
4846         * genpeep.c: Likewise.
4847         * genattrtab.c: Likewise.
4848         * genconditions.c: Likewise.
4849         * genpreds.c: Likewise.
4850
4851 2010-07-08  Andi Kleen  <ak@linux.intel.com>
4852
4853         * lto-section-in.c (lto_section_name): Add missing comma.
4854
4855 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
4856
4857         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
4858         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
4859         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
4860         (ia64_override_options): Rename to...
4861         (ia64_option_override): ... this one. Make static.
4862
4863 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
4864
4865         PR middle-end/44843
4866         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
4867         pointed-to type of the offset in a MEM_REF to compute the alignment.
4868
4869 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
4870
4871         * final.c (final_scan_insn): Replace
4872         TARGET_UNWIND_INFO macro check by unwind_emit
4873         hook NULL check.
4874         * targhooks.c (default_unwind_emit): Removed.
4875         * targhooks.h (default_unwind_emit): Likewise.
4876         * target.def (unwind_emit): Set default value to NULL.
4877
4878         * config/i386/i386-protos.h (ix86_asm_output_function_label):
4879         New prototype.
4880         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
4881         for NULL fntype argument and allow 64-bit targets.
4882         (ix86_asm_output_function_label): New function.
4883         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
4884         (ix86_handle_fndecl_attribute): Likewise.
4885         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
4886         * doc/doc/tm.texi: Regenerated.
4887         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
4888         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
4889         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
4890         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
4891         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
4892         * config/elfos.h: Likewise.
4893         * config/i386/cygming.h: Likewise.
4894         * config/netbsd-aout.h: Likewise.
4895         * config/openbsd.h: Likewise.
4896         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
4897         by ix86_asm_output_function_label function call.
4898         * varasm.c (assemble_start_function): Use
4899         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
4900
4901 2010-07-08  Jan Hubicka  <jh@suse.cz>
4902
4903         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
4904         New function.
4905         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
4906         Declare.
4907         * ipa-cp.c (ipcp_estimate_growth): Use it.
4908         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
4909         Likewise.
4910
4911 2010-07-08  Jan Hubicka  <jh@suse.cz>
4912
4913         * tree-inline.c (declare_return_variable): Allocate annotation for new
4914         temporary.
4915
4916 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
4917
4918         PR tree-optimization/44710
4919         * tree-if-conv.c (parse_predicate): New.
4920         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
4921         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
4922
4923 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
4924
4925         * common.opt (ftree-loop-if-convert): New flag.
4926         * doc/invoke.texi (ftree-loop-if-convert): Documented.
4927         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
4928         when flag_tree_loop_if_convert is set.
4929
4930 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
4931
4932         * config/i386/i386.c: Use short syntax for function calls
4933         through function pointers.
4934         * config/i386/i386.md: Ditto.
4935
4936 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
4937
4938         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
4939
4940 2010-07-08  Richard Guenther  <rguenther@suse.de>
4941
4942         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
4943         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
4944
4945 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
4946
4947         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
4948         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
4949         (loc_list_from_tree): Likewise.
4950         (output_loc_operands): Handle outputting DW_OP_const[48]u
4951         with loc->dtprel set.
4952         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
4953
4954 2010-07-08  Jan Hubicka  <jh@suse.cz>
4955
4956         * ipa.c: Include pointer-set.h
4957         (cgraph_externally_visible_p): New attribute ALIASED;
4958         when in LTO, hidden symbols are local unless they are aliased.
4959         (function_and_variable_visibility): Compute aliased nodes;
4960         handle LTO and hidden symbol on functions and vars.
4961         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
4962         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
4963
4964 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
4965
4966         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
4967         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4968         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4969         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4970         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4971         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
4972         (ix86_gen_probe_stack_range): Likewise.
4973         (override_options): Set them.
4974         (ix86_target_stack_probe): New function.
4975         (ix86_compute_frame_layout): Force use of push instructions to
4976         save registers if stack checking with probes is enabled.
4977         (get_scratch_register_on_entry): New function.
4978         (release_scratch_register_on_entry): Likewise.
4979         (ix86_adjust_stack_and_probe): Likewise.
4980         (output_adjust_stack_and_probe): Likewise.
4981         (ix86_emit_probe_stack_range): Likewise.
4982         (output_probe_stack_range): Likewise.
4983         (ix86_expand_prologue): Emit stack checking code if static built-in
4984         stack checking is enabled.
4985         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
4986         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
4987         (output_adjust_stack_and_probe): Likewise.
4988         (output_probe_stack_range): Likewise.
4989         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
4990         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
4991         TARGET_STACK_PROBE.
4992         (allocate_stack_worker_64): Likewise.
4993         (allocate_stack): Likewise.
4994         (adjust_stack_and_probe): New insn.
4995         (probe_stack_range): Likewise.
4996
4997 2010-07-08  Richard Guenther  <rguenther@suse.de>
4998
4999         PR tree-optimization/44831
5000         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
5001         a MEM_REF preserving TBAA info of the original dereference.
5002         Dereference the original pointer if the address is not invariant.
5003         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
5004         at least one invariant address that we are going to dereference.
5005
5006 2010-07-08  Richard Guenther  <rguenther@suse.de>
5007
5008         PR tree-optimization/44861
5009         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
5010         information when building MEM_REFs.
5011         (vectorizable_load): Likewise.
5012         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
5013
5014 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5015
5016         * config/sol2-c.c: Do not include diagnostic-core.h.
5017
5018 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5019
5020         PR bootstrap/44768
5021         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
5022         with respect to current_function_decl. Pass decl of the function.
5023         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
5024         * ipa-inline.c (compute_inline_parameters): Pass decl to
5025         estimated_stack_frame_size.
5026
5027 2010-07-08  Richard Guenther  <rguenther@suse.de>
5028
5029         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
5030         New function.
5031         (valueize_refs): Call it.
5032
5033 2010-07-08  Richard Guenther  <rguenther@suse.de>
5034
5035         PR rtl-optimization/44838
5036         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
5037         SSA form do not use pointer equivalence.
5038
5039 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5040
5041         * dwarf2out.c (AT_linkage_name): Delete.
5042         (add_linkage_attr): New function.
5043         (add_linkage_name): Call it to emit the linkage attribute.
5044         (dwarf2out_finish): Likewise.
5045         (move_linkage_attr): Explicitly accept both attribute variants.
5046
5047 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5048
5049         * toplev.h: Do not include diagnostic-core.h.
5050         Include diagnostic-core.h in every file that includes toplev.h.
5051         * c-tree.h: Do not include toplev.h.
5052         * pretty-print.h: Update comment.
5053         * Makefile.in: Update dependencies.
5054         * alias.c: Include diagnostic-core.h in every file that includes
5055         toplev.h.
5056         * attribs.c: Likewise.
5057         * auto-inc-dec.c: Likewise.
5058         * bb-reorder.c: Likewise.
5059         * bt-load.c: Likewise.
5060         * caller-save.c: Likewise.
5061         * calls.c: Likewise.
5062         * cfg.c: Likewise.
5063         * cfganal.c: Likewise.
5064         * cfgbuild.c: Likewise.
5065         * cfgcleanup.c: Likewise.
5066         * cfghooks.c: Likewise.
5067         * cfgloop.c: Likewise.
5068         * combine.c: Likewise.
5069         * config/alpha/alpha.c: Likewise.
5070         * config/arc/arc.c: Likewise.
5071         * config/arm/arm.c: Likewise.
5072         * config/arm/pe.c: Likewise.
5073         * config/avr/avr.c: Likewise.
5074         * config/bfin/bfin.c: Likewise.
5075         * config/cris/cris.c: Likewise.
5076         * config/crx/crx.c: Likewise.
5077         * config/darwin-c.c: Likewise.
5078         * config/darwin.c: Likewise.
5079         * config/fr30/fr30.c: Likewise.
5080         * config/frv/frv.c: Likewise.
5081         * config/h8300/h8300.c: Likewise.
5082         * config/host-darwin.c: Likewise.
5083         * config/i386/i386.c: Likewise.
5084         * config/i386/netware.c: Likewise.
5085         * config/i386/nwld.c: Likewise.
5086         * config/i386/winnt-cxx.c: Likewise.
5087         * config/i386/winnt-stubs.c: Likewise.
5088         * config/i386/winnt.c: Likewise.
5089         * config/ia64/ia64-c.c: Likewise.
5090         * config/ia64/ia64.c: Likewise.
5091         * config/iq2000/iq2000.c: Likewise.
5092         * config/lm32/lm32.c: Likewise.
5093         * config/m32c/m32c-pragma.c: Likewise.
5094         * config/m32c/m32c.c: Likewise.
5095         * config/m32r/m32r.c: Likewise.
5096         * config/m68hc11/m68hc11.c: Likewise.
5097         * config/m68k/m68k.c: Likewise.
5098         * config/mcore/mcore.c: Likewise.
5099         * config/mep/mep-pragma.c: Likewise.
5100         * config/mep/mep.c: Likewise.
5101         * config/mmix/mmix.c: Likewise.
5102         * config/mn10300/mn10300.c: Likewise.
5103         * config/moxie/moxie.c: Likewise.
5104         * config/pa/pa.c: Likewise.
5105         * config/pdp11/pdp11.c: Likewise.
5106         * config/picochip/picochip.c: Likewise.
5107         * config/rs6000/rs6000-c.c: Likewise.
5108         * config/rs6000/rs6000.c: Likewise.
5109         * config/rx/rx.c: Likewise.
5110         * config/s390/s390.c: Likewise.
5111         * config/score/score.c: Likewise.
5112         * config/score/score3.c: Likewise.
5113         * config/score/score7.c: Likewise.
5114         * config/sh/sh.c: Likewise.
5115         * config/sh/symbian-base.c: Likewise.
5116         * config/sh/symbian-c.c: Likewise.
5117         * config/sh/symbian-cxx.c: Likewise.
5118         * config/sol2-c.c: Likewise.
5119         * config/sol2.c: Likewise.
5120         * config/sparc/sparc.c: Likewise.
5121         * config/spu/spu.c: Likewise.
5122         * config/stormy16/stormy16.c: Likewise.
5123         * config/v850/v850-c.c: Likewise.
5124         * config/v850/v850.c: Likewise.
5125         * config/vax/vax.c: Likewise.
5126         * config/vxworks.c: Likewise.
5127         * config/xtensa/xtensa.c: Likewise.
5128         * convert.c: Likewise.
5129         * cse.c: Likewise.
5130         * cselib.c: Likewise.
5131         * dbgcnt.c: Likewise.
5132         * dbxout.c: Likewise.
5133         * ddg.c: Likewise.
5134         * dominance.c: Likewise.
5135         * emit-rtl.c: Likewise.
5136         * explow.c: Likewise.
5137         * expmed.c: Likewise.
5138         * fixed-value.c: Likewise.
5139         * fold-const.c: Likewise.
5140         * fwprop.c: Likewise.
5141         * gcse.c: Likewise.
5142         * ggc-common.c: Likewise.
5143         * ggc-page.c: Likewise.
5144         * ggc-zone.c: Likewise.
5145         * gimple-low.c: Likewise.
5146         * gimplify.c: Likewise.
5147         * graph.c: Likewise.
5148         * haifa-sched.c: Likewise.
5149         * ifcvt.c: Likewise.
5150         * implicit-zee.c: Likewise.
5151         * integrate.c: Likewise.
5152         * ira-build.c: Likewise.
5153         * ira-color.c: Likewise.
5154         * ira-conflicts.c: Likewise.
5155         * ira-costs.c: Likewise.
5156         * ira-lives.c: Likewise.
5157         * ira.c: Likewise.
5158         * lists.c: Likewise.
5159         * loop-doloop.c: Likewise.
5160         * loop-iv.c: Likewise.
5161         * lto-opts.c: Likewise.
5162         * lto-symtab.c: Likewise.
5163         * main.c: Likewise.
5164         * modulo-sched.c: Likewise.
5165         * optabs.c: Likewise.
5166         * params.c: Likewise.
5167         * plugin.c: Likewise.
5168         * postreload-gcse.c: Likewise.
5169         * postreload.c: Likewise.
5170         * predict.c: Likewise.
5171         * profile.c: Likewise.
5172         * real.c: Likewise.
5173         * regcprop.c: Likewise.
5174         * reginfo.c: Likewise.
5175         * regmove.c: Likewise.
5176         * reorg.c: Likewise.
5177         * resource.c: Likewise.
5178         * rtl.c: Likewise.
5179         * rtlanal.c: Likewise.
5180         * sched-deps.c: Likewise.
5181         * sched-ebb.c: Likewise.
5182         * sched-rgn.c: Likewise.
5183         * sdbout.c: Likewise.
5184         * sel-sched-dump.c: Likewise.
5185         * sel-sched-ir.c: Likewise.
5186         * simplify-rtx.c: Likewise.
5187         * stmt.c: Likewise.
5188         * stor-layout.c: Likewise.
5189         * store-motion.c: Likewise.
5190         * targhooks.c: Likewise.
5191         * tree-cfg.c: Likewise.
5192         * tree-cfgcleanup.c: Likewise.
5193         * tree-dump.c: Likewise.
5194         * tree-eh.c: Likewise.
5195         * tree-inline.c: Likewise.
5196         * tree-nomudflap.c: Likewise.
5197         * tree-object-size.c: Likewise.
5198         * tree-optimize.c: Likewise.
5199         * tree-outof-ssa.c: Likewise.
5200         * tree-phinodes.c: Likewise.
5201         * tree-profile.c: Likewise.
5202         * tree-ssa-ccp.c: Likewise.
5203         * tree-ssa-coalesce.c: Likewise.
5204         * tree-ssa-live.c: Likewise.
5205         * tree-ssa-loop-niter.c: Likewise.
5206         * tree-ssa-loop-prefetch.c: Likewise.
5207         * tree-ssa-loop.c: Likewise.
5208         * tree-ssa-structalias.c: Likewise.
5209         * tree-ssa-uninit.c: Likewise.
5210         * tree-ssa.c: Likewise.
5211         * tree-vect-data-refs.c: Likewise.
5212         * tree-vect-loop-manip.c: Likewise.
5213         * tree-vect-loop.c: Likewise.
5214         * tree-vect-patterns.c: Likewise.
5215         * tree-vect-stmts.c: Likewise.
5216         * tree-vrp.c: Likewise.
5217         * varasm.c: Likewise.
5218         * vec.c: Likewise.
5219         * web.c: Likewise.
5220         * xcoffout.c: Likewise.
5221
5222 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
5223
5224         * gengtype.c (write_field_root): New function.
5225         (write_root): Use it.
5226
5227 2010-07-07  Wei Guozhi  <carrot@google.com>
5228
5229         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
5230         of lowest bits to lshift/compare): Add a missing line.
5231
5232 2010-07-07  Wei Guozhi  <carrot@google.com>
5233
5234         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
5235         of lowest bits to lshift/compare): New.
5236
5237 2010-07-07  Tom Tromey  <tromey@redhat.com>
5238
5239         * doc/tm.texi: Update.
5240         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
5241         Add @hook.
5242         * target.def (want_debug_pub_sections): New hook.
5243         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
5244         * dwarf2out.c (add_pubname_string): Check
5245         targetm.want_debug_pub_sections.
5246         (add_pubname): Likewise.
5247         (add_pubtype): Likewise.
5248
5249 2010-07-07  Jie Zhang  <jie@codesourcery.com>
5250
5251         * genautomata.c (output_automata_list_min_issue_delay_code):
5252         Correctly decompress min_issue_delay.
5253
5254 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
5255
5256         PR rtl-optimization/44404
5257         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
5258         possible, use reg_overlap_mentioned_p instead.
5259
5260 2010-07-07  Duncan Sands  <baldrick@free.fr>
5261
5262         PR middle-end/41355
5263         * tree.c (build_function_type_skip_args): Copy the original type using
5264         build_distinct_type_copy rather than copy_node.
5265
5266 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
5267
5268         PR target/44850
5269         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
5270         revision 161876.
5271         (ix86_expand_prologue): Likewise.
5272         (ix86_handle_fndecl_attribute): Likewise.
5273         (ix86_asm_declare_function_name): Likewise.
5274         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5275         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5276         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
5277         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
5278         * doc/extend.texi: Likewise.
5279
5280 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
5281
5282         PR target/44844
5283         * config/i386/i386.md (rdrand<mode>): Changed to expand to
5284         retry if the carry flag isn't valid.
5285         (rdrand<mode>_1): New.
5286
5287 2010-07-07  Richard Guenther  <rguenther@suse.de>
5288
5289         PR middle-end/44790
5290         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
5291         for expanding the constant offset for MEM_REFs.
5292
5293 2010-07-07  Richard Guenther  <rguenther@suse.de>
5294
5295         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
5296         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
5297         * gimple.h (is_gimple_operand): Remove.
5298         * gimple.c (is_gimple_operand): Likewise.
5299         (walk_gimple_op): Fix wi->val_only setting for calls.
5300         * tree-cfg.c (verify_gimple_call): Fix argument validation.
5301         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
5302         invalid gimple calls.
5303
5304 2010-07-06  Jan Hubicka  <jh@suse.cz>
5305
5306         * lto-cgraph.c (output_cgraph): Add missing declaration.
5307
5308 2010-07-06  Jan Hubicka  <jh@suse.cz>
5309
5310         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
5311         partition.
5312
5313 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
5314
5315         * doc/gimple.texi (GIMPLE_DEBUG): Document.
5316         * doc/rtl.texi (Debug Information): New node.
5317         (NOTE_INSN_VAR_LOCATION): Document.
5318         (debug_insn): Likewise.
5319         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
5320
5321 2010-07-07  Jan Hubicka  <jh@suse.cz>
5322
5323         With parts by Richard Guenther.
5324
5325         PR middle-end/44813
5326         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
5327         for functions passed by reference.
5328         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
5329         in memory when passed by reference.
5330         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
5331         beggining.
5332         * ipa-split.c (split_function): Cleanup way return value is passed;
5333         handle SSA DECL_BY_REFERENCE retvals.
5334         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
5335         DECL_BY_REFERENCE is set.
5336         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
5337         find_what_p_points_to): Handle RESULT_DECL.
5338         * tree-inline.c (declare_return_variable): Get new entry_block argument;
5339         when passing by reference ensure that RESULT_DECL is gimple_val.
5340         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
5341         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
5342
5343 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
5344
5345         PR rtl-optimization/44787
5346         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
5347         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
5348
5349 2010-07-06  Jan Hubicka  <jh@suse.cz>
5350
5351         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
5352         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
5353         with body can prevail.
5354         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
5355         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
5356         * cgraph.c (cgraph_get_node_or_alias): New function.
5357         * cgraph.h (cgraph_get_node_or_alias): Declare.
5358
5359 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
5360
5361         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
5362         support.
5363         (ix86_expand_prologue): Likewise.
5364         (ix86_handle_fndecl_attribute): Likewise.
5365         (ix86_asm_declare_function_name): New function for
5366         ASM_DECLARE_FUNCTION_NAME.
5367         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
5368         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
5369         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
5370         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
5371         * doc/extend.texi: Adjust documentation about ms_hook_prologue
5372         attribute.
5373
5374 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
5375
5376         * config/i386/i386.md (immediate_operand): New mode attribute.
5377
5378         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
5379         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
5380         using P mode iterator.
5381         (pro_epilogue_adjust_stack_di_2): Rename from
5382         pro_epilogue_adjust_stack_rex64_2.
5383
5384         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
5385
5386 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
5387
5388         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
5389         through gen_mov_insv_1 function pointer.
5390         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
5391         gen_truncxf<mode>2 through gen_truncxf function pointer.
5392         (remainder<mode>3): Ditto.
5393         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
5394         (allocate_stack): Call gen_allocate_stack_worker_64 or
5395         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
5396         function pointer.
5397         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
5398         function pointer.
5399
5400 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
5401
5402         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
5403         operand constraint instead of <r><i>m.
5404
5405 2010-07-06  Richard Guenther  <rguenther@suse.de>
5406
5407         PR middle-end/44828
5408         * convert.c (convert_to_integer): Watch out for overflowing
5409         MULT_EXPR as well.
5410
5411 2010-07-05  Jan Hubicka  <jh@suse.cz>
5412
5413         * lto-streamer.c (write_symbol_vec): Rename to ...
5414         (write_symbol) ... this one; write only symbol given and when
5415         present in cache. Sanity check that what is defined is present
5416         in cgraph/varpool with body/finalized decl.
5417         (write_symbols_of_kind): Remove.
5418         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
5419         pairs to produce symtab.
5420         (produce_asm_for_decls): Update call of produce_symtab; don't do so
5421         when doing WPA streaming.
5422
5423 2010-07-05  Jan Hubicka  <jh@suse.cz>
5424
5425         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
5426         function is still available to fold into.
5427
5428 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
5429
5430         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
5431         * function.h (struct_function): Change type of local_decls field
5432         to a VEC.
5433         (add_local_decl): New function.
5434         (FOR_EACH_LOCAL_DECL): New macro.
5435         * cfgexpand.c (init_vars_expansion): Adjust for new type of
5436         cfun->local_decls.
5437         (estimated_stack_frame_size): Likewise.
5438         (expand_used_vars): Likewise.
5439         * cgraphbuild.c (build_cgraph_edges): Likewise.
5440         * function.c (instantiate_decls_1): Likewise.
5441         * ipa-struct-reorg.c (build_data_structure): Likewise.
5442         * ipa-type-escape.c (analyze_function): Likewise.
5443         * lto-streamer-in.c (input_function): Likewise.
5444         * lto-streamer-out.c (output_function): Likewise.
5445         * tree-ssa-live.c (remove_unused_locals): Likewise.
5446         * tree.c (free_lang_data_in_decl): Likewise.
5447         (find_decls_types_in_node): Likewise.
5448         * omp-low.c (remove_exit_barrier): Likewise.
5449         (expand_omp_taskreg): Likewise.
5450         (list2chain): Rename to...
5451         (vec2chain): ...this.  Adjust.
5452         * cgraphunit.c (assemble_thunk): Call add_local_decl.
5453         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
5454         * gimple-low.c (record_vars_into): Likewise.
5455         * tree-inline.c (remap_decls): Likewise.
5456         (declare_return_variable): Likewise.
5457         (declare_inline_vars): Likewise.
5458         (copy_forbidden): Adjust for new type of cfun->local_decls.
5459         (add_local_variables): New function.
5460         (expand_call_inline): Call it.
5461         (tree_function_versioning): Likewise.
5462
5463 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
5464
5465         AVX Programming Reference (June, 2010)
5466         * config/i386/cpuid.h (bit_F16C): New.
5467         (bit_RDRND): Likewise.
5468         (bit_FSGSBASE): Likewise.
5469
5470         * config/i386/i386-builtin-types.def: Add
5471         "DEF_FUNCTION_TYPE (UINT16)", function types for
5472         float16 <-> float conversions and
5473         "DEF_FUNCTION_TYPE (VOID, UINT64)".
5474
5475         * config/i386/i386-c.c (ix86_target_macros_internal): Support
5476         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
5477         OPTION_MASK_ISA_F16C.
5478
5479         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
5480         (OPTION_MASK_ISA_RDRND_SET): Likewise.
5481         (OPTION_MASK_ISA_F16C_SET): Likewise.
5482         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
5483         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
5484         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
5485         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
5486         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
5487         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
5488         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
5489         (override_options): Handle them.
5490         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
5491         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
5492         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
5493         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
5494         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
5495         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
5496         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
5497         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
5498         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
5499         (bdesc_args): Likewise.
5500         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
5501         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
5502         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
5503         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
5504         Handle non-memory store.
5505
5506         * config/i386/i386.h (TARGET_FSGSBASE): New.
5507         (TARGET_RDRND): Likewise.
5508         (TARGET_F12C): Likewise.
5509
5510         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
5511         (UNSPEC_VCVTPS2PH): Likewise.
5512         (UNSPECV_RDFSBASE): Likewise.
5513         (UNSPECV_RDGSBASE): Likewise.
5514         (UNSPECV_WRFSBASE): Likewise.
5515         (UNSPECV_WRGSBASE): Likewise.
5516         (UNSPECV_RDRAND): Likewise.
5517         (rdfsbase<mode>): Likewise.
5518         (rdgsbase<mode>): Likewise.
5519         (wrfsbase<mode>): Likewise.
5520         (wrgsbase<mode>): Likewise.
5521         (rdrand<mode>): Likewise.
5522
5523         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
5524
5525         * config/i386/immintrin.h (_rdrand_u16): New.
5526         (_rdrand_u32): Likewise.
5527         (_readfsbase_u32): Likewise.
5528         (_readfsbase_u64): Likewise.
5529         (_readgsbase_u32): Likewise.
5530         (_readgsbase_u64): Likewise.
5531         (_writefsbase_u32): Likewise.
5532         (_writefsbase_u64): Likewise.
5533         (_writegsbase_u32): Likewise.
5534         (_writegsbase_u64): Likewise.
5535         (_rdrand_u64): Likewise.
5536         (_cvtsh_ss): Likewise.
5537         (_mm_cvtph_ps): Likewise.
5538         (_mm256_cvtph_ps): Likewise.
5539         (_cvtss_sh): Likewise.
5540         (_mm_cvtps_ph): Likewise.
5541         (_mm256_cvtps_ph): Likewise.
5542
5543         * config/i386/sse.md (vcvtph2ps): New.
5544         (*vcvtph2ps_load): Likewise.
5545         (vcvtph2ps256): Likewise.
5546         (vcvtps2ph): Likewise.
5547         (*vcvtps2ph): Likewise.
5548         (*vcvtps2ph_store): Likewise.
5549         (vcvtps2ph256): Likewise.
5550
5551         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
5552
5553         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
5554
5555 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
5556
5557         PR bootstrap/44512
5558         * genenums.c (main): Output include of insn-constants.h
5559         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
5560
5561 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
5562
5563         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
5564         (override_options): Initialize it.
5565         (ix86_expand_prologue): Use it.
5566
5567 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
5568
5569         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
5570
5571 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
5572
5573         * double-int.h (fit_double_type): Remove declaration.
5574         * double-int.c (fit_double_type): Remove function.
5575         * tree.h (int_fits_type_p): Adjust prototype.
5576         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
5577         instead of fit_double_type.
5578         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
5579         instead of fit_double_type and build_int_cst_wide.
5580         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
5581         instead of fit_double_type and build_int_cst_wide.
5582         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
5583         of fit_double_type.
5584
5585 2010-07-05  Jan Hubicka  <jh@suse.cz>
5586
5587         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
5588         in_other_partition.
5589         * lto-cgraph.c (referenced_from_other_partition_p,
5590         reachable_from_other_partition_p): Use in_other_partition flags.
5591         (output_node, output_varpool_node): COMDAT nodes always have private
5592         copies and thus are never used from other partition.
5593
5594 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
5595
5596         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
5597         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
5598         * config/ia64/ia64.c Include reload.h.
5599         (ia64_memory_move_cost): New function.
5600         (TARGET_MEMORY_MOVE_COST): Define.
5601         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
5602         memory_move_cost.
5603
5604 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
5605
5606         PR middle-end/42505
5607         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
5608         comments about cost model.
5609         (try_add_cand_for):  Add second strategy for choosing initial set
5610         based on original IVs, controlled by ORIGINALP argument.
5611         (get_initial_solution): Add ORIGINALP argument.
5612         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
5613         (find_optimal_iv_set): Try two different strategies for choosing
5614         the IV set, and return the one with lower cost.
5615
5616 2010-07-05  Richard Guenther  <rguenther@suse.de>
5617
5618         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
5619
5620 2010-07-05  Richard Guenther  <rguenther@suse.de>
5621
5622         * tree.c (reference_alias_ptr_type): New function.
5623         * tree.h (reference_alias_ptr_type): Declare.
5624         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
5625         allow non-TARGET_MEM_REF new refs.
5626         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
5627         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
5628         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
5629         (create_mem_ref): Get alias pointer type.  Adjust calls to
5630         create_mem_ref_raw.
5631         (maybe_fold_tmr): Likewise.
5632         * tree-flow.h (create_mem_ref): Adjust prototype.
5633
5634 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
5635
5636         PR c++/44808
5637         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
5638         *from_p is VAR_DECL.
5639
5640 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
5641
5642         * tree.h (build_call_list): Remove.
5643         * tree.c (build_call_list): Remove.
5644
5645 2010-07-05  Richard Guenther  <rguenther@suse.de>
5646
5647         * double-int.h (double_int_sub): Declare.
5648         * double-int.c (double_int_sub): New function.
5649         * dwarf2out.c (field_byte_offset): Use it.
5650         * fixed-value.c (do_fixed_add): Likewise.
5651         (do_fixed_multiply): Likewise.
5652         (do_fixed_divide): Likewise.
5653         * tree-predcom.c (add_ref_to_chain): Likewise.
5654         (determine_roots_comp): Likewise.
5655         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
5656
5657 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
5658
5659         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
5660         implementations.
5661
5662 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
5663
5664         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
5665         * arm-modes.def (CC_NOTB): Don't define.
5666         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
5667         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
5668         (LTUGEU): New code_iterator.
5669         (cnb, optab): New corresponding code_attrs.
5670         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
5671         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
5672         using LTUGEU.
5673         (addsi3_carryin_shift_<optab>): Likewise.
5674         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
5675         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
5676         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
5677         (subsi3_compare): Renamed from subsi3_compare0_c.
5678         Change CC_NOTB to CC.
5679         (arm_subsi3_insn): Allow constants for operand 0.
5680         (compare_scc peephole for eq case): New.
5681         (compare_scc splitters): Change CC_NOTB to CC.
5682
5683 2010-07-05  Richard Guenther  <rguenther@suse.de>
5684
5685         * tree-ssa-loop-im.c (for_each_index): Do not handle
5686         ALIGN_INDIRECT_REF.
5687         (gen_lsm_tmp_name): Likewise.
5688         * tree-dump.c (dequeue_and_dump): Likewise.
5689         * tree-pretty-print.c (dump_generic_node): Likewise.
5690         (op_code_prio): Likewise.
5691         (op_symbol_code): Likewise.
5692         * tree.c (staticp): Likewise.
5693         (build1_stat): Likewise.
5694         * tree.h (INDIRECT_REF_P): Likewise.
5695         * fold-const.c (maybe_lvalue_p): Likewise.
5696         (operand_equal_p): Likewise.
5697         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5698         (ao_ref_init_from_vn_reference): Likewise.
5699         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
5700         (find_interesting_uses_address): Likewise.
5701         * dwarf2out.c (loc_list_from_tree): Likewise.
5702         * gimplify.c (gimplify_expr): Likewise.
5703         * tree-eh.c (tree_could_trap_p): Likewise.
5704         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
5705         * cfgexpand.c (expand_debug_expr): Likewise.
5706         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
5707         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
5708         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
5709         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
5710         * tree-ssa-operands.c (get_expr_operands): Likewise.
5711         * expr.c (safe_from_p): Likewise.
5712         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
5713         * tree-vect-data-refs.c (vect_setup_realignment): Build
5714         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
5715         * tree-vect-stmts.c (vectorizable_load): Likewise.
5716         * tree.def (ALIGN_INDIRECT_REF): Remove.
5717
5718 2010-07-05  Richard Guenther  <rguenther@suse.de>
5719
5720         PR tree-optimization/44784
5721         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
5722         for inserted stmts.
5723         (find_or_generate_expression): Fix SCCVN insertion check.
5724
5725 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
5726
5727         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
5728         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
5729         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
5730         directives.
5731
5732 2010-07-05  Ira Rosen  <irar@il.ibm.com>
5733
5734         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
5735         statements that are not vectorized.
5736         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
5737         in INSIDE_COST.
5738
5739 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
5740
5741         PR bootstrap/44820
5742         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
5743
5744 2010-07-05  Richard Guenther  <rguenther@suse.de>
5745
5746         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
5747         RESULT_DECLs properly.
5748
5749 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
5750
5751         PR rtl-optimization/44695
5752         * config/i386/i386.md (extract_code): Removed.
5753         (<u>divmodqi4): Likewise.
5754         (divmodqi4): New.
5755         (udivmodqi4): Likewise.
5756         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
5757         (udivmodhiqi3): Likewise.
5758
5759 2010-07-04  Jan Hubicka  <jh@suse.cz>
5760
5761         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
5762
5763 2010-07-04  Jan Hubicka  <jh@suse.cz>
5764
5765         * cgraphunit.c (init_cgraph): Only initialize dump file if it
5766         is not already initialized.
5767
5768 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
5769
5770         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
5771         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
5772         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
5773         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
5774         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
5775         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
5776         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
5777         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
5778         (sync_new_nand_optab): Redefine as macros.
5779         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
5780         Delete.
5781         (direct_optab_index): New enum.
5782         (direct_optab_d): New structure.
5783         (direct_optab): New typedef.
5784         (direct_optab_table): Declare.
5785         (direct_optab_handler, set_direct_optab_handler): New functions.
5786         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
5787         (sync_lock_release_optab): New macros.
5788         * optabs.c (direct_optab_table): New variable.
5789         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
5790         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
5791         cmpstr_optab and cmpstrn_optab.
5792         (emit_conditional_move): Likewise for movcc_optab.
5793         (can_conditionally_move_p): Likewise for movcc_gen_code.
5794         (init_insn_codes): Clear direct_optab_table.
5795         (init_optabs): Don't initialize the new "direct optabs" here.
5796         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
5797         vcond_gen_code.
5798         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
5799         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
5800         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
5801         (expand_sync_operation): Likewise other sync_*_optabs.
5802         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
5803         to sync_compare_and_swap_optab.
5804         (expand_sync_lock_test_and_set): Use direct_optab_handler for
5805         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
5806         to the names of both.
5807         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
5808         cmpstr_optab and cmpstrn_optab.
5809         (expand_builtin_lock_release): Likewise sync_lock_release.
5810         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
5811         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
5812         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
5813         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
5814         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
5815         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
5816         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
5817         (sync_lock_test_and_set, sync_lock_release): Delete.
5818         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
5819         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
5820         * genopinit.c (optabs): Use set_direct_optab_handler for the new
5821         macro optabs.
5822         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
5823         the "optab" local variable.  Use direct_optab_handler for optab and
5824         sync_compare_and_swap_optab.
5825         * reload1.c (reload_in_optab, reload_out_optab): Delete.
5826         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
5827         reload_in_optab and reload_out_optab.
5828         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
5829         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
5830         * config/pa/pa.c (pa_secondary_reload): Likewise.
5831         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
5832         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
5833         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
5834         (VMSupportsCS8_builtin): Likewise.
5835
5836 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
5837
5838         * optabs.h (optab_handlers): Change type of insn_code to int.
5839         (optab_handler, set_optab_handler, convert_optab_handler)
5840         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
5841         CODE_FOR_nothing".
5842         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
5843         (init_insn_codes): Zero both the above arrays.
5844         (init_optabs): Never call init_insn_codes first time around.
5845
5846 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
5847
5848         * optabs.h (optab_handler, convert_optab_handler): Turn into
5849         inline functions that return an insn code.
5850         (set_optab_handler, set_convert_optab_handler): New functions.
5851         * builtins.c: Replace optab_handler(X)->insn_code with
5852         optab_handler or set_optab_handler thoughout.  Likewise
5853         convert_optab_handler(X)->insn_code with convert_optab_handler
5854         and set_convert_optab_handler.
5855         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
5856         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
5857         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
5858         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
5859         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
5860         config/spu/spu.c: Likewise.
5861
5862 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
5863
5864         PR target/44531
5865         * config.gcc (sh*-*-*): Use regular expressions instead of
5866         the 'i' modifier for sed substitutions.
5867
5868 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
5869
5870         * gimple.c (gimple_body): Comments added.
5871
5872 2010-07-04  Richard Guenther  <rguenther@suse.de>
5873
5874         PR middle-end/44809
5875         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
5876         of an INDIRECT_REF.
5877
5878 2010-07-04  Richard Guenther  <rguenther@suse.de>
5879
5880         PR tree-optimization/44479
5881         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
5882         extra SSA name copy statements which preserves points-to
5883         information.
5884         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5885         Copy points-to information for all pointers.  Properly handle
5886         MEM_REFs.
5887         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
5888         copy statements.
5889         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
5890         dependency.
5891
5892 2010-07-04  Richard Guenther  <rguenther@suse.de>
5893
5894         PR middle-end/44785
5895         * tree-inline.c (initialize_inlined_parameters): Do not
5896         re-use pointer-map slot over remap_type call.
5897
5898 2010-07-04  Richard Guenther  <rguenther@suse.de>
5899
5900         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
5901
5902 2010-07-04  Richard Guenther  <rguenther@suse.de>
5903
5904         PR tree-optimization/44656
5905         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
5906         again after value-replacing in the defintions lhs.
5907
5908 2010-07-04  Ira Rosen  <irar@il.ibm.com>
5909             Revital Eres  <eres@il.ibm.com>
5910
5911         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
5912         Document new arguments.
5913         * doc/tm.texi: Regenerate.
5914         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
5915         Handle unaligned store.
5916         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
5917         * target.def (builtin_vectorization_cost): Add new arguments.
5918         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
5919         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
5920         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
5921         (vect_vfa_segment_size): Fix indentation.
5922         * tree-vectorizer.h (struct _vect_peel_info): New.
5923         (struct _vect_peel_extended_info): New.
5924         (struct _loop_vec_info): Add new field for peeling hash table and a
5925         macro for its access.
5926         (VECT_MAX_COST): Define.
5927         (vect_get_load_cost): Declare.
5928         (vect_get_store_cost, vect_get_known_peeling_cost,
5929         vect_get_single_scalar_iteraion_cost): Likewise.
5930         (vect_supportable_dr_alignment): Add new argument.
5931         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
5932         field.
5933         (destroy_loop_vec_info): Free peeling hash table.
5934         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
5935         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
5936         vect_analyze_slp. Fix indentation.
5937         (vect_get_single_scalar_iteraion_cost): New function.
5938         (vect_get_known_peeling_cost): Likewise.
5939         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
5940         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
5941         statement. Move outside cost calculation inside unknown peeling case.
5942         Call vect_get_known_peeling_cost for known amount of peeling.
5943         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
5944         reference to the print message of forced alignment.
5945         (vect_verify_datarefs_alignment): Update call to
5946         vect_supportable_dr_alignment.
5947         (vect_get_data_access_cost): New function.
5948         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
5949         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
5950         vect_peeling_hash_choose_best_peeling): Likewise.
5951         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
5952         to store all the accesses in the loop and find best possible access to
5953         align using peeling for known alignment case. For unknown alignment
5954         check if stores are preferred or if peeling is worthy.
5955         (vect_find_same_alignment_drs): Analyze pairs of loads too.
5956         (vect_supportable_dr_alignment): Add new argument and check aligned
5957         accesses according to it.
5958         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
5959         (cost_for_stmt): Call vect_get_stmt_cost.
5960         (vect_model_simple_cost): Likewise.
5961         (vect_model_store_cost): Call vect_get_stmt_cost. Call
5962         vect_get_store_cost to calculate the cost of the statement.
5963         (vect_get_store_cost): New function.
5964         (vect_model_load_cost): Call vect_get_stmt_cost. Call
5965         vect_get_load_cost to calculate the cost of the statement.
5966         (vect_get_load_cost): New function.
5967         (vectorizable_store): Update call to vect_supportable_dr_alignment.
5968         (vectorizable_load): Likewise.
5969         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
5970         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
5971         arguments. Handle unaligned store.
5972         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
5973         (rs6000_builtin_support_vector_misalignment): Return true for word and
5974         double word alignments for VSX.
5975         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
5976         vect_supportable_dr_alignment and builtin_vectorization_cost.
5977
5978 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5979
5980         PR target/44597
5981         * config/pa/predicates.md (prefetch_cc_operand): Remove.
5982         (prefetch_nocc_operand): Likewise.
5983         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
5984         (prefetch_20): New insn.
5985         (prefetch_cc): Remove.
5986         (prefetch_nocc): Likewise.
5987
5988 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5989
5990         * expr.c (vector_mode_valid_p): Move to c-common.c.
5991         * expr.h (vector_mode_valid_p): Do not declare here.
5992         * system.h: Poison GCC_EXPR_H in front-ends.
5993         * Makefile.in: Update dependencies.
5994
5995 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5996
5997         PR target/44705
5998         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
5999
6000 2010-07-03  Jan Hubicka  <jh@suse.cz>
6001
6002         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
6003         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
6004         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
6005         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
6006         Likewise.
6007
6008         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
6009         Update timevars.V
6010         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
6011         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
6012         TV_IPA_LTO_DECL_OUT): New.
6013         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
6014
6015 2010-07-03  Jan Hubicka  <jh@suse.cz>
6016
6017         * ipa-inline.c (update_edge_key): Break out from ...
6018         update_callers_keys): ... here;
6019         (update_callee_keys): Update only the edges from caller to callee.
6020         (update_all_calle_keys): Do what update_calle_keys did.
6021         (decide_inlining_of_small_functions): Avoid recomputing of all
6022         callees when badness increase.
6023
6024 2010-07-03  Jie Zhang  <jie@codesourcery.com>
6025
6026         * config/arm/arm.c (arm_attr_length_move_neon): New.
6027         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
6028         * config/arm/neon.md (define_mode_attr V_slen): Remove.
6029         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
6030         to compute length attribute.
6031
6032 2010-07-03  Jie Zhang  <jie@codesourcery.com>
6033
6034         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
6035         as predicate for operand 1 and remove its constraint.
6036         * config/arm/predicates.md (vfp_register_operand): New.
6037         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
6038         (*push_fp_multi): Likewise.
6039
6040 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
6041
6042         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
6043
6044 2010-07-03  Jan Hubicka  <jh@suse.cz>
6045
6046         * config/i386/i386.c (override_options): Revert accidental commit.
6047
6048 2010-07-02  Le-Chun Wu  <lcwu@google.com>
6049
6050         PR c++/44128
6051         * doc/invoke.texi: Update documentation of -Wshadow.
6052
6053 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
6054             Julian Brown  <julian@codesourcery.com>
6055             Sandra Loosemore <sandra@codesourcery.com>
6056
6057         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
6058         comparisons.  Adjust to take both operands.
6059         (arm_select_cc_mode): Handle DImode comparisons.
6060         (arm_gen_compare_reg): Generate a scratch register for DImode
6061         comparisons which require one.  Use xor for Thumb equality checks.
6062         (arm_const_double_by_immediates): New.
6063         (arm_print_operand): Allow 'Q' and 'R' for constants.
6064         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
6065         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
6066         arm_canonicalize_comparison.
6067         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
6068         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
6069         prototype.
6070         (arm_const_double_by_immediates): Declare.
6071         * config/arm/constraints.md (Di): New constraint.
6072         * config/arm/predicates.md (arm_immediate_di_operand)
6073         (arm_di_operand, cmpdi_operand): New.
6074         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
6075         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
6076         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
6077         (cstoredi4): Handle non-Cirrus also.
6078
6079 2010-07-02  Julian Brown  <julian@codesourcery.com>
6080             Sandra Loosemore <sandra@codesourcery.com>
6081
6082         PR target/43703
6083         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
6084         (smax<mode>3): Disable for NEON float modes when
6085         flag_unsafe_math_optimizations is false.
6086         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
6087         (*mul<mode>3_neon)
6088         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
6089         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
6090         for NEON float modes when flag_unsafe_math_optimizations is false.
6091         (quad_halves_<code>v4sf): Only enable if
6092         flag_unsafe_math_optimizations is true.
6093         * doc/invoke.texi (ARM Options): Add note about floating point
6094         vectorization requiring -funsafe-math-optimizations.
6095
6096 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
6097             Julian Brown  <julian@codesourcery.com>
6098
6099         * config/arm/neon.md (UNSPEC_VABA): Delete.
6100         (UNSPEC_VABAL): Delete.
6101         (UNSPEC_VABS): Delete.
6102         (UNSPEC_VMUL_N): Delete.
6103         (adddi3_neon): New.
6104         (subdi3_neon): New.
6105         (mul<mode>3add<mode>_neon): Make the pattern named.
6106         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
6107         (neon_vadd<mode>): Replace with define_expand, and move the remaining
6108         unspec parts...
6109         (neon_vadd<mode>_unspec): ...to this.
6110         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
6111         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
6112         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
6113         (neon_vaba<mode>): Rewrite in terms of vabd.
6114         (neon_vabal<mode>): Rewrite in terms of vabdl.
6115         (neon_vabs<mode>): Rewrite without unspec.
6116         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
6117         (*arm_subdi3): Likewise.
6118         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
6119         No_op attribute to disable assembly output checks.
6120         * config/arm/arm_neon.h: Regenerated.
6121         * doc/arm-neon-intrinsics.texi: Regenerated.
6122
6123 2010-07-02  Jan Hubicka  <jh@suse.cz>
6124
6125         * ipa-split.c (split_function): For aggregate values, set the return
6126         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
6127         *<retval> = fncall.part ().
6128         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
6129
6130 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
6131
6132         * config/arm/neon.md (UNSPEC_VAND): Delete.
6133         (UNSPEC_VBIC): Delete.
6134         (UNSPEC_VCLZ): Delete.
6135         (UNSPEC_VCNT): Delete.
6136         (UNSPEC_VEOR): Delete.
6137         (UNSPEC_VORN): Delete.
6138         (UNSPEC_VORR): Delete.
6139         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
6140         core registers too.
6141         (anddi3_neon): Likewise.
6142         (orndi3_neon): Likewise.
6143         (bicdi3_neon): Likewise.
6144         (xordi3_neon): Likewise.
6145         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
6146         rid of unspec and handle unused operand.
6147         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
6148         * config/arm/predicates.md (imm_for_neon_logic_operand):
6149         Require TARGET_NEON.
6150         (imm_for_neon_inv_logic_operand): Likewise.
6151         * config/arm/arm.md (define_split for logical_binary_operator):
6152         Disable for NEON registers.
6153         (anddi3): Add new define_expand, and rename the insn.  Disable
6154         this insn for NEON, where anddi3_neon now applies.
6155         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
6156         (iordi3): As for anddi3.
6157         (xordi3): Likewise.
6158         * config/arm/neon.ml (Vand): Split DImode variants and mark them
6159         as No_op to disable testing for exact instruction match.
6160         (Vorr): Likewise.
6161         (Veor): Likewise.
6162         (Vbic): Likewise.
6163         (Vorn): Likewise.
6164         * config/arm/arm_neon.h: Regenerated.
6165         * doc/arm-neon-intrinsics.texi: Regenerated.
6166
6167 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
6168
6169         * expr.h (emit_stack_probe): Declare.
6170         * explow.c (emit_stack_probe): Make global.
6171         (anti_adjust_stack_and_probe): Fix comments.
6172         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
6173         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6174         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6175         * config/sparc/sparc.c: Include except.h.
6176         (sparc_emit_probe_stack_range): New function.
6177         (output_probe_stack_range): Likewise.
6178         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
6179         built-in stack checking is enabled.
6180         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
6181         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
6182         (probe_stack_range): New insn.
6183
6184 2010-07-02  Richard Guenther  <rguenther@suse.de>
6185
6186         PR target/43958
6187         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
6188         for argument alignment.
6189
6190 2010-07-02  Jan Hubicka  <jh@suse.cz>
6191
6192         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
6193         walk backwards from entry_bb to check only those basic block of header
6194         that might lead to execution of split part.
6195         (consider_split) ... here.
6196         (find_return_bb): Allow assignment in return BB.
6197         (find_retval): New.
6198         (split_function): Fix name of cloned function; take care of updating
6199         return value in return_bb containing move.
6200
6201 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
6202
6203         PR target/44771
6204         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
6205         used variable insn.
6206
6207 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
6208
6209         * implicit-zee.c (combine_reaching_defs): Fix long lines.
6210         (is_set_with_extension_DI): Delete.
6211         (struct zero_extend_info): New structure.
6212         (add_removable_zero_extend): New function.
6213         (find_removable_zero_extends): Use note_stores to find SETs.
6214         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
6215
6216 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
6217
6218         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
6219         is_miss_rate_acceptable. Pull total_positions computation
6220         out of the loops.  Early return if miss_positions exceeds
6221         the acceptable threshold.
6222         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
6223         is_miss_rate_acceptable after renaming of compute_miss_rate.
6224
6225 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
6226
6227         PR middle-end/44576
6228         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
6229         of 1000) for miss rate if the address diference is greater than or
6230         equal to the cache line size (the two reference will never hit the
6231         same cache line).
6232
6233 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
6234
6235         PR target/42835
6236         * config/arm/arm-modes.def (CC_NOTB): New mode.
6237         * config/arm/arm.c (get_arm_condition_code): Handle it.
6238         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
6239         * config/arm/arm.md (subsi3_compare0_c): New pattern.
6240         (compare_scc): Now a define_and_split.  Add a number of extra
6241         splitters before it.
6242
6243         PR target/42172
6244         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
6245         and ZERO_EXTEND.
6246         (arm_rtx_costs_1): Likewise.
6247         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
6248         * config/arm/arm.md (is_arch6): New attribute.
6249         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
6250         extendqisi2): Tighten the code somewhat, avoiding invalid
6251         RTL to occur in the expander patterns.
6252         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
6253         (thumb1_zero_extendhisi2_v6): Delete.
6254         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
6255         (thumb1_extendhisi2_v6): Delete.
6256         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
6257         (thumb1_extendqisi2_v6): Delete.
6258         (zero_extendhisi2 for register input splitter): New.
6259         (zero_extendqisi2 for register input splitter): New.
6260         (thumb1_extendhisi2 for register input splitter): New.
6261         (extendhisi2 for register input splitter): New.
6262         (extendqisi2 for register input splitter): New.
6263         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
6264         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
6265         and add support for a register alternative requiring a split.
6266         (thumb1_zero_extendqisi2): Likewise.
6267         (arm_zero_extendqisi2): Likewise.
6268         (arm_extendhisi2): Likewise.
6269         (arm_extendqisi2): Likewise.
6270
6271 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
6272
6273         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
6274         instead of an unspec.
6275         (neon_expand_vector_init): Likewise.
6276         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
6277         (UNSPEC_VDUP_LANE): Delete.
6278         (UNSPEC VDUP_N): Delete.
6279         (UNSPEC_VGET_HIGH): Delete.
6280         (UNSPEC_VGET_LANE): Delete.
6281         (UNSPEC_VGET_LOW): Delete.
6282         (UNSPEC_VMVN): Delete.
6283         (UNSPEC_VSET_LANE): Delete.
6284         (V_double_vector_mode): New.
6285         (vec_set<mode>_internal): Make code emitted match that for the
6286         corresponding intrinsics.
6287         (vec_setv2di_internal): Likewise.
6288         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
6289         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
6290         (neon_vset_lane<mode>): Combine double and quad patterns and
6291         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
6292         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
6293         (neon_vdup_n<mode>): Rewrite RTL without unspec.
6294         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
6295         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
6296         with neon_vdup_lanev2di, adjusting the pattern from the latter
6297         to be predicable for consistency.
6298         (neon_vdup_lane<mode>_internal): New.
6299         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
6300         to avoid using an unspec.
6301         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
6302         (neon_vdup_lanev2di): Turn into a define_expand.
6303         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
6304         (neon_vget_high<mode>): Replace with....
6305         (neon_vget_highv16qi): New pattern using canonical RTL.
6306         (neon_vget_highv8hi): Likewise.
6307         (neon_vget_highv4si): Likewise.
6308         (neon_vget_highv4sf): Likewise.
6309         (neon_vget_highv2di): Likewise.
6310         (neon_vget_low<mode>): Replace with....
6311         (neon_vget_lowv16qi): New pattern using canonical RTL.
6312         (neon_vget_lowv8hi): Likewise.
6313         (neon_vget_lowv4si): Likewise.
6314         (neon_vget_lowv4sf): Likewise.
6315         (neon_vget_lowv2di): Likewise.
6316
6317         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
6318         test for this emitting vmov.
6319         (Vset_lane): Likewise.
6320         (Vdup_n): Likewise.
6321         (Vmov_n): Likewise.
6322
6323         * doc/arm-neon-intrinsics.texi: Regenerated.
6324
6325 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
6326
6327         * config/arm/neon.md (vec_extractv2di): Correct error in register
6328         numbering to reconcile with neon_vget_lanev2di.
6329
6330 2010-07-02  Richard Guenther  <rguenther@suse.de>
6331
6332         * tree-ssa-structalias.c (pt_solution_set_var): New function.
6333         * tree-ssa-alias.h (pt_solution_set_var): Declare.
6334         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
6335         points-to information.
6336
6337 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
6338
6339         * config/s390/s390.c (override_options): Adopt prefetching
6340         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
6341
6342 2010-07-02  Jan Hubicka  <jh@suse.cz>
6343
6344         * df-problems.c (df_kill_notes): Do not collect dead  notes.
6345         (df_set_note): Just call add_reg_note.
6346         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
6347         df_create_unused_note): Do not deal with lists of old notes.
6348         (df_note_bb_compute): Likewise.
6349
6350 2010-07-02  Richard Guenther  <rguenther@suse.de>
6351
6352         * tree-ssa-structalias.c (find_func_aliases): Handle
6353         pointer alignment via BIT_AND_EXPR.
6354         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
6355
6356 2010-07-02  Richard Guenther  <rguenther@suse.de>
6357
6358         * tree-data-ref.c (initialize_data_dependence_relation): Handle
6359         mismatching number of dimensions properly.
6360
6361 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6362
6363         PR target/44707
6364         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
6365         (lo_sum (high ...) ...) patterns generated by earlier passes.
6366
6367 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6368
6369         * doc/install.texi (Prerequisites): Document Perl requirement on
6370         Solaris 2.
6371         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
6372
6373 2010-07-02  Richard Guenther  <rguenther@suse.de>
6374
6375         PR middle-end/44777
6376         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
6377
6378 2010-07-02  Jan Hubicka  <jh@suse.cz>
6379
6380         PR middle-end/44706
6381         * predict.c (predict_paths_for_bb): Handle case when control dependence
6382         BB has only abnormal edges.
6383
6384 2010-07-02  Richard Guenther  <rguenther@suse.de>
6385
6386         PR tree-optimization/44748
6387         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
6388         the embedded conversion in MEM_REFs.
6389
6390 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
6391
6392         * reload.c: Include toplev.h.
6393         * recog.c:  Likewise.
6394         * Makefile.in: Adjust dependencies.
6395
6396 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
6397
6398         PR debug/44694
6399         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
6400         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
6401
6402 2010-07-01  Richard Guenther  <rguenther@suse.de>
6403
6404         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
6405         types for offsets.
6406
6407 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
6408
6409         PR target/44732
6410         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
6411         Fix argument types.
6412
6413 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
6414
6415         PR target/44727
6416         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
6417         Make sure operand 0 dies.
6418
6419 2010-07-01  Richard Guenther  <rguenther@suse.de>
6420
6421         PR middle-end/42834
6422         PR middle-end/44468
6423         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
6424         * doc/generic.texi (References to storage): Document MEM_REF.
6425         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
6426         (print_call_name): Likewise.
6427         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
6428         (build_simple_mem_ref_loc): New function.
6429         (mem_ref_offset): Likewise.
6430         * tree.h (build_simple_mem_ref_loc): Declare.
6431         (build_simple_mem_ref): Define.
6432         (mem_ref_offset): Declare.
6433         * fold-const.c: Include tree-flow.h.
6434         (operand_equal_p): Handle MEM_REF.
6435         (build_fold_addr_expr_with_type_loc): Likewise.
6436         (fold_comparison): Likewise.
6437         (fold_unary_loc): Fold
6438         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
6439         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
6440         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
6441         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
6442         (ptr_deref_may_alias_ref_p_1): Likewise.
6443         (ao_ref_base_alias_set): Properly differentiate base object for
6444         offset and TBAA.
6445         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
6446         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
6447         (indirect_refs_may_alias_p): Likewise.
6448         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
6449         chasing code.
6450         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
6451         (call_may_clobber_ref_p_1): Likewise.
6452         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
6453         * expr.c (expand_assignment): Handle MEM_REF.
6454         (store_expr): Handle MEM_REFs from STRING_CSTs.
6455         (store_field): If expanding a MEM_REF of a non-addressable
6456         decl use bitfield operations.
6457         (get_inner_reference): Handle MEM_REF.
6458         (expand_expr_addr_expr_1): Likewise.
6459         (expand_expr_real_1): Likewise.
6460         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
6461         * alias.c (ao_ref_from_mem): Handle MEM_REF.
6462         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
6463         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
6464         (dr_analyze_indices): Likewise.
6465         (dr_analyze_alias): Likewise.
6466         (object_address_invariant_in_loop_p): Likewise.
6467         * gimplify.c (mark_addressable): Handle MEM_REF.
6468         (gimplify_cond_expr): Build MEM_REFs.
6469         (gimplify_modify_expr_to_memcpy): Likewise.
6470         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
6471         (gimple_fold_indirect_ref): Adjust.
6472         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
6473         * tree.def (MEM_REF): New tree code.
6474         * tree-dfa.c: Include toplev.h.
6475         (get_ref_base_and_extent): Handle MEM_REF.
6476         (get_addr_base_and_unit_offset): New function.
6477         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
6478         * gimple-fold.c (may_propagate_address_into_dereference): Handle
6479         MEM_REF.
6480         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
6481         accesses if the array has just one dimension.  Remove always true
6482         parameter.  Do not require type compatibility here.
6483         (maybe_fold_offset_to_component_ref): Remove.
6484         (maybe_fold_stmt_indirect): Remove.
6485         (maybe_fold_reference): Remove INDIRECT_REF handling.
6486         Fold back to non-MEM_REF.
6487         (maybe_fold_offset_to_address): Simplify.  Deal with type
6488         mismatches here.
6489         (maybe_fold_reference): Likewise.
6490         (maybe_fold_stmt_addition): Likewise.  Also handle
6491         &ARRAY + I in addition to &ARRAY[0] + I.
6492         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
6493         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
6494         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
6495         * tree-ssa.c (useless_type_conversion_p): Make most pointer
6496         conversions useless.
6497         (warn_uninitialized_var): Handle MEM_REF.
6498         (maybe_rewrite_mem_ref_base): New function.
6499         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
6500         to SSA form.
6501         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
6502         INDIRECT_REF handling.
6503         (copy_tree_body_r): Handle MEM_REF.
6504         * gimple.c (is_gimple_addressable): Adjust.
6505         (is_gimple_address): Likewise.
6506         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
6507         invariant base are invariant.
6508         (is_gimple_min_lval): Adjust.
6509         (is_gimple_mem_ref_addr): New function.
6510         (get_base_address): Handle MEM_REF.
6511         (count_ptr_derefs): Likewise.
6512         (get_base_loadstore): Likewise.
6513         * gimple.h (is_gimple_mem_ref_addr): Declare.
6514         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
6515         * tree-cfg.c (verify_address): New function, split out from ...
6516         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
6517         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
6518         INDIRECT_REFs.
6519         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
6520         INDIRECT_REF.  Allow conversions.
6521         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
6522         a register does not change its size.
6523         (verify_types_in_gimple_reference): Verify MEM_REF.
6524         (verify_gimple_assign_single): Disallow INDIRECT_REF.
6525         Handle MEM_REF.
6526         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
6527         New.
6528         (mark_address_taken): Handle MEM_REF.
6529         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
6530         (get_asm_expr_operands): Pass opf_not_non_addressable.
6531         (get_expr_operands): Handle opf_[not_]non_addressable.
6532         Handle MEM_REF.  Remove INDIRECT_REF handling.
6533         * tree-vrp.c (check_array_ref): Handle MEM_REF.
6534         (search_for_addr_array): Likewise.
6535         (check_array_bounds): Likewise.
6536         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
6537         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
6538         (ref_always_accessed_p): Likewise.
6539         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
6540         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
6541         Handle MEM_REF.
6542         * cgraphbuild.c (mark_load): Properly check for NULL result
6543         from get_base_address.
6544         (mark_store): Likewise.
6545         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
6546         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
6547         handling for MEM_REF.
6548         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
6549         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
6550         * builtins.c (stabilize_va_list_loc): Use the function ABI
6551         valist type if we couldn't canonicalize the argument type.
6552         Always dereference with the canonical va-list type.
6553         (maybe_emit_free_warning): Handle MEM_REF.
6554         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
6555         memmove to memcpy.
6556         * builtins.c (fold_builtin_memory_op): Use ref-all types
6557         for all memcpy foldings.
6558         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
6559         (build_outer_var_ref): Likewise.
6560         (scan_omp_1_op): Likewise.
6561         (lower_rec_input_clauses): Likewise.
6562         (lower_lastprivate_clauses): Likewise.
6563         (lower_reduction_clauses): Likewise.
6564         (lower_copyprivate_clauses): Likewise.
6565         (expand_omp_atomic_pipeline): Likewise.
6566         (expand_omp_atomic_mutex): Likewise.
6567         (create_task_copyfn): Likewise.
6568         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
6569         Remove old union trick.  Initialize constant offsets.
6570         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
6571         INDIRECT_REF.  Init base_alias_set properly.
6572         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
6573         (vn_reference_fold_indirect): Adjust for MEM_REFs.
6574         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
6575         for ARRAY_REFs.
6576         (may_insert): Remove.
6577         (visit_reference_op_load): Do not test may_insert.
6578         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
6579         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
6580         a field to store the constant offset this op applies.
6581         (run_scc_vn): Adjust prototype.
6582         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
6583         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
6584         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
6585         bother about volatile qualifiers on pointers.
6586         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
6587         * tree-ssa-loop-ivopts.c
6588         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
6589         (strip_offset_1): Likewise.
6590         (find_interesting_uses_address): Replace INDIRECT_REF handling with
6591         MEM_REF handling.
6592         (get_computation_cost_at): Likewise.
6593         * ipa-pure-const.c (check_op): Handle MEM_REF.
6594         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
6595         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
6596         and constants.
6597         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
6598         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
6599         (eliminate_local_variables_1): Likewise.
6600         (create_call_for_reduction_1): Likewise.
6601         (create_loads_for_reductions): Likewise.
6602         (create_loads_and_stores_for_name): Likewise.
6603         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
6604         (ssa_accessed_in_tree): Handle MEM_REF.
6605         (ssa_accessed_in_assign_rhs): Likewise.
6606         (update_type_size): Likewise.
6607         (analyze_accesses_for_call_stmt): Likewise.
6608         (analyze_accesses_for_assign_stmt): Likewise.
6609         (transform_access_sites): Likewise.
6610         (transform_allocation_sites): Likewise.
6611         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
6612         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
6613         not handle INDIRECT_REF.
6614         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
6615         (cond_store_replacement): Likewise.
6616         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
6617         MEM_REF, no not handle INDIRECT_REFs.
6618         (insert_into_preds_of_block): Properly initialize avail.
6619         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
6620         for ARRAY_REFs.  Properly handle reference lookups that
6621         require a bit re-interpretation.
6622         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
6623         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
6624         (build_ref_for_offset_1): Remove.
6625         (build_ref_for_offset): Build MEM_REFs.
6626         (gate_intra_sra): Disable for now.
6627         (sra_ipa_modify_expr): Handle MEM_REF.
6628         (ipa_early_sra_gate): Disable for now.
6629         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
6630         MEM_REF handling.
6631         (disqualify_base_of_expr): Likewise.
6632         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
6633         MEM_REF handling.
6634         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
6635         Use mem_ref_offset.  Remove bogus folding.
6636         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
6637         (make_fancy_name_1): Add support for MEM_REF.
6638         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
6639         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
6640         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
6641         (compute_complex_ancestor_jump_func): Likewise.
6642         (ipa_analyze_virtual_call_uses): Likewise.
6643         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
6644         INDIRECT_REF folding with more generalized MEM_REF folding.
6645         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
6646         (forward_propagate_addr_into_variable_array_index): Also handle
6647         &ARRAY + I in addition to &ARRAY[0] + I.
6648         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
6649         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
6650         creates assignments with overlap.
6651         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
6652         (get_frame_field): Likewise.
6653         (get_nonlocal_debug_decl): Likewise.
6654         (convert_nonlocal_reference_op): Likewise.
6655         (struct nesting_info): Add mem_refs pointer-set.
6656         (create_nesting_tree): Allocate it.
6657         (convert_local_reference_op): Insert to be folded mem-refs.
6658         (fold_mem_refs): New function.
6659         (finalize_nesting_tree_1): Perform defered folding of mem-refs
6660         (free_nesting_tree): Free the pointer-set.
6661         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
6662         (vectorizable_load): Likewise.
6663         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
6664         (propagate_with_phi): Likewise.
6665         * tree-object-size.c (addr_object_size): Handle MEM_REFs
6666         instead of INDIRECT_REFs.
6667         (compute_object_offset): Handle MEM_REF.
6668         (plus_stmt_object_size): Handle MEM_REF.
6669         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
6670         for &MEM_REF.
6671         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
6672         (symbol_marked_for_renaming): Likewise.
6673         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
6674         (fold-const.o): Add $(TREE_FLOW_H).
6675         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
6676         (find_func_clobbers): Likewise.
6677         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
6678         (decompose_access): Likewise.
6679         (replace_field_acc): Likewise.
6680         (replace_field_access_stmt): Likewise.
6681         (insert_new_var_in_stmt): Likewise.
6682         (get_stmt_accesses): Likewise.
6683         (reorg_structs_drive): Disable.
6684         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
6685         (ix86_canonical_va_list_type): Likewise.
6686
6687 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
6688
6689         PR other/44566
6690         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
6691         * target.def (struct gcc_target): Replace enum reg_class with
6692         reg_class_t in hook argument / return types.
6693         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
6694         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
6695         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
6696         * targhooks.h (default_branch_target_register_class): Likewise.
6697         (default_ira_cover_classes, default_secondary_reload): Likewise.
6698         (default_memory_move_cost, default_register_move_cost): Likewise.
6699         * targhooks.c (default_branch_target_register_class): Likewise.
6700         (default_ira_cover_classes, default_secondary_reload): Likewise.
6701         (default_memory_move_cost, default_register_move_cost): Likewise.
6702         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
6703         * bt-load.c (branch_target_load_optimize): Likewise.
6704         * ira.c (setup_cover_and_important_classes): Likewise.
6705         * ira-costs.c (copy_cost): Likewise.
6706         * reload1.c (emit_input_reload_insns): Likewise.
6707         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
6708         * config/frv/frv.c (frv_secondary_reload): Likewise.
6709         * config/s390/s390.c (s390_secondary_reload): Likewise.
6710         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
6711         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
6712         (ix86_register_move_cost): Likewise.
6713         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
6714         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
6715         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
6716         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
6717         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
6718         (rs6000_ira_cover_classes): Likewise.
6719         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
6720         * config/picochip/picochip-protos.h (picochip_secondary_reload):
6721         Likewise.
6722         * config/pa/pa.c (pa_secondary_reload): Likewise.
6723         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
6724         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
6725         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
6726         * doc/tm.texi: Regenerate.
6727
6728 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
6729
6730         PR bootstrrap/44726
6731         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
6732         use.
6733         (build_alias_set_optimal_p): Likewise.
6734         (build_base_obj_set_for_drs): Likewise.
6735
6736 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
6737
6738         * target.def: Remove comment about licensing problems of function
6739         declarations.
6740
6741         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
6742         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
6743         * doc/tm.texi: Regenerate.
6744
6745         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
6746         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
6747
6748         * target.def (enum_va_list_p): Use DEFHOOK.
6749         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
6750         Rename ptype to ptree.
6751         * doc/tm.texi: Regenerate.
6752
6753         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
6754         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
6755         * doc/tm.texi: Regenerate.
6756
6757         * target.def (memory_move_cost): Use DEFHOOK.
6758         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
6759         Rename regclass AKA class to rclass.
6760         * doc/tm.texi: Regenerate.
6761
6762         * target.def (pragma_parse): Use DEFHOOK.
6763         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
6764         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
6765         * doc/tm.texi: Regenerate.
6766
6767         * target.def (pass_by_reference): Use DEFHOOK.
6768         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
6769         * doc/tm.texi: Regenerate.
6770
6771         * target.def (resolve_overloaded_builtin): Rename params to arglist.
6772         Use DEFHOOK.
6773         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
6774         * doc/tm.texi: Regenerate.
6775
6776         * target.def (return_pops_args): Use DEFHOOK.
6777         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
6778         Rename stack-size to size.
6779         * doc/tm.texi: Regenerate.
6780
6781         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
6782         last-sched_cycle to last_clock, cur_cycle to clock.
6783         * doc/tm.texi.in: Use @hook.
6784         * doc/tm.texi: Regenerate.
6785
6786         * target.def (print_operand, print_operand_address): Update comment.
6787         (print_operand_punct_valid_p): Likewise.
6788
6789 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6790
6791         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
6792         to rtl.h.
6793         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
6794         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
6795         * rtl-error.h: New.
6796         * regrename.c: Do not include toplev.h. Include rtl-error.h.
6797         * rtl-error.c: Likewise.
6798         * reload.c: Likewise.
6799         * recog.c:  Likewise.
6800         * sel-sched.c: Likewise.
6801         * function.c: Likewise.
6802         * reg-stack.c: Likewise.
6803         * cfgrtl.c: Likewise.
6804         * reload1.c: Likewise.
6805         * final.c: Include rtl-error.
6806         * Makefile.in: Adjust dependencies.
6807
6808 2010-06-30  Jan Hubicka  <jh@suse.cz>
6809
6810         PR middle-end/PR44706
6811         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
6812         to return the value.
6813
6814 2010-06-30  Michael Matz  <matz@suse.de>
6815
6816         PR bootstrap/44699
6817         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
6818         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
6819         a gimple reg, attach the original VDEF to the last store in the
6820         sequence.
6821
6822 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
6823
6824         PR other/44034
6825         * config/darwin.c (darwin_override_options): Use renamed
6826         targetm.asm_out.emit_unwind_label.
6827
6828 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
6829
6830         PR tree-optimization/39799
6831         * tree-inline.c (remap_ssa_name): Initialize variable only if
6832         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
6833
6834 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
6835
6836         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
6837
6838 2010-06-30  Richard Guenther  <rguenther@suse.de>
6839
6840         PR target/44722
6841         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
6842         against oscillation with reverse peephole2.
6843
6844 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
6845
6846         PR target/44721
6847         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
6848         Fix last commit.
6849
6850 2010-06-30  Nick Clifton  <nickc@redhat.com>
6851
6852         * config/rx/rx-modes.def: New file.
6853         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
6854         (CC_REGNUM): Define.
6855         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
6856         register.
6857         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
6858         (SELECT_CC_MODE): Define.
6859         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
6860         (reg:CC CC_REG) instead of (cc0).
6861         (attr "cc"): Delete.
6862         (cbranchsi4): Do not split compare and branch here. Instead move
6863         it to...
6864         (cbranchsi4_<code>): ... here.  New patterns.
6865         (cmpsi): Call rx-compare_redundant to find out if it is necessary
6866         to emit the compare instruction.
6867         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
6868         cc_status flags.
6869         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
6870         FIRST_PSEUDO_REGNUM.
6871         (rx_expand_prologue, rx_expand_epilogue): Likewise.
6872         (rx_notice_update_cc): Delete.
6873         (rx_cc_modes_compatible): New function.
6874         (flags_needed_for_conditional): New function.
6875         (flags_from_mode): New function.
6876         (rx_compare_redundant): New function - scans backwards through
6877         insn list to find out if condition flags are already set correctly.
6878         (TARGET_CC_MODES_COMPATIBLE): Define.
6879         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
6880
6881         * config/rx/rx.h (BRANCH_COST): Define.
6882         (REGISTER_MOVE_COST): Define.
6883         * config/rx/predicates (rx_source_operand): Allow all constant types.
6884         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
6885         (tstsi4): New pattern.
6886         * config/rx/rx.c (rx_memory_move_cost): Define.
6887         (TARGET_MEMORY_MOVE_COST): Define.
6888
6889 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6890
6891         * tree.h (block_may_fallthru): Declare here.
6892         * tree-flow.h (block_may_fallthru): Do not declare here.
6893         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
6894         bitmap.h
6895         * Makefile.in (c-typeck.o): Update dependencies.
6896
6897 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
6898
6899         PR debug/44694
6900         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
6901         * cselib.c (cfa_base_preserved_regno): New static variable.
6902         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
6903         of REGNO (cfa_base_preserved_val->locs->loc).
6904         (cselib_preserve_cfa_base_value): Add regno argument, set
6905         cfa_base_preserved_regno to it.
6906         (cselib_invalidate_regno): Allow removal of registers other than
6907         cfa_base_preserved_regno from cfa_base_preserved_val.
6908         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
6909         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
6910         of MEM addresses, if not on LHS.
6911         (reverse_op): Don't add reverse ops for cfa_base_rtx.
6912         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
6913
6914 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
6915
6916         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
6917         static variables.
6918         (peep2_buf_position): New static function.
6919         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
6920         peephole2_optimize): Use it.
6921         (peep2_attempt, peep2_update_life): New static functions, broken out
6922         of peephole2_optimize.
6923         (peep2_fill_buffer): New static function.
6924         (peephole2_optimize): Change the main loop to try to fill the buffer
6925         with the maximum number of insns before matching them against
6926         peepholes.  Use a forward scan.  Remove special case for targets with
6927         conditional execution.
6928         * genrecog.c (change_state): Delete dead code.
6929         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
6930         Rewrite so as not to expect the second insn to have had a peephole
6931         applied yet.
6932
6933 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
6934
6935         * genhooks.c (emit_findices): Cast field precision to int.
6936         (emit_documentation): Likewise.
6937
6938 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
6939
6940         PR tree-optimization/43801
6941         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
6942         if old_decl was DECL_ONE_ONLY.
6943
6944         PR debug/44668
6945         * dwarf2out.c (add_accessibility_attribute): New function.
6946         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
6947         instead of adding DW_AT_accessibility manually.
6948         (gen_enumeration_type_die, gen_struct_or_union_type_die,
6949         gen_typedef_die): Use it.
6950
6951 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
6952
6953         * vmsdbgout.c (full_name): Just output the file name if not native.
6954
6955 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
6956
6957         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
6958         (funcnam_table): New static table.
6959         (funcnum_table): New static table.
6960         (write_rtnbeg): Write value saved in funcnum_table.
6961         (write_rtnend): Write value saved in funcnum_table.
6962         (vmsdbgout_begin_function): Save current function info in
6963         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
6964         (vmsdbgout_finish): Iterate over funcnum_table.
6965
6966 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
6967
6968         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
6969         (vmsdbgout_type_decl): Declare
6970         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
6971         (FUNC_EPILOGUE_LABEL): New macro
6972         (vmsdbgout_begin_epilogue): New function.
6973         (vmsdbgout_type_decl): New function.
6974
6975 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
6976
6977         * vmsdbg.h: Update copyright.
6978
6979 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
6980
6981         * vmsdbg.h (DST_K_TBG): New DST constant.
6982         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
6983         (write_modbeg): Cast module_language to avoid warning.
6984         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
6985
6986 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
6987
6988         PR other/44034
6989         * target.def, doc/tm.texi.in, genhooks.c: New files.
6990         * target.h: Instead of defining individual hook members,
6991         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
6992         include target.def.
6993         * target-def.h: Instead of defining individual hook initializers,
6994         include target-hooks-def.h.
6995         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
6996         targetm.live_on_entry -> targetm.extra_live_on_entry
6997         targetm.sched.md_finish ->targetm.sched.finish
6998         targetm.sched.md_init -> targetm.sched.init
6999         targetm.sched.md_init_global -> targetm.sched.init_global
7000         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
7001         targetm.asm_out.except_table_label ->
7002           targetm.asm_out.emit_except_table_label
7003         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
7004         targetm.target_help -> targetm.help
7005         targetm.vectorize.builtin_support_vector_misalignment ->
7006           targetm.vectorize.support_vector_misalignment
7007         targetm.file_start_app_off -> targetm.asm_file_start_app_off
7008         targetm.file_start_file_directive ->
7009          targetm.asm_file_start_file_directive
7010         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
7011         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
7012         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
7013         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
7014           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
7015         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
7016           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
7017         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
7018         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
7019         * Makefile.in (TARGET_H): Depend on target.def.
7020         (TARGET_DEF_H): Depend on target-hooks-def.h.
7021         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
7022         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
7023         * doc/tm.texi: Regenerate.
7024
7025         * Makefile.in (s-tm-texi): Remove stray tab / rule.
7026
7027         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
7028         (targetm.sched.init): Likewise.
7029
7030 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7031
7032         PR bootstrap/44713
7033         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
7034         (function_arg_advance_32): Const-ify TYPE parameter.
7035         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
7036         (ix86_function_arg_advance): Change type of NAMED to bool.
7037         (function_arg_32): Const-ify CUM and TYPE parameters.
7038         (function_arg_64): Likewise.  Change type of NAMED to bool.
7039         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
7040         to bool.
7041         (ix86_function_arg): Change type of NAMED to bool.
7042         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
7043         last argument as a bool.
7044
7045 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
7046
7047         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
7048         (OVERRIDE_OPTIONS): Add note of obsolescence.
7049         Replace references with references to TARGET_OPTION_OVERRIDE.
7050         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
7051          the macro).
7052         * targhooks.c (default_target_option_override): New function.
7053         * targhooks.h (default_target_option_override): Declare.
7054         * target.h (struct gcc_target): Add override member to
7055         target_option member.
7056         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
7057         targetm.target_option.override call.
7058         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
7059         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
7060
7061 2010-06-29  Jan Hubicka  <jh@suse.cz>
7062
7063         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
7064
7065 2010-06-29  Jan Hubicka  <jh@suse.cz>
7066
7067         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
7068         unreachable.
7069         (rebuild_frequencies): New function.
7070         * predict.h (rebuild_frequencies): Declare.
7071         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
7072         entry block and edge reaching new_entry.
7073         (tree_function_versioning): When doing partial cloning, rebuild
7074         frequencies when done.
7075         * passes.c (execute_function_todo): Use rebild_frequencies.
7076
7077 2010-06-29  Richard Guenther  <rguenther@suse.de>
7078
7079         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
7080         * tree-flow.h (enum noalias_state): Remove.
7081         (struct var_ann_d): Remove noalias_state member.
7082
7083 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
7084
7085         PR target/43902
7086         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
7087         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
7088         (maddhidi4): Likewise.
7089
7090         Revert parts of the change for PR25130.
7091         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
7092         MEM_ALIAS_SET.
7093
7094 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7095
7096         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
7097         targetm.calls.function_incoming_arg, and
7098         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
7099         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
7100         * target.h (struct gcc_target): Add function_arg_advance,
7101         function_arg, and function_incoming_arg fields.
7102         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
7103         (TARGET_FUNCTION_INCOMING_ARG): Define.
7104         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
7105         and TARGET_FUNCTION_INCOMING_ARG.
7106         * targhooks.h (default_function_arg_advance): Declare.
7107         (default_function_arg, default_function_incoming_arg): Declare.
7108         * targhooks.c (default_function_arg_advance): New function.
7109         (default_function_arg, default_function_incoming_arg): New function.
7110         * config/i386/i386.c (function_arg_advance): Rename to...
7111         (ix86_function_arg_advance): ...this.  Make static.
7112         (function_arg): Rename to...
7113         (ix86_function_arg): ...this.  Make static.
7114         (TARGET_FUNCTION_ARG_ADVANCE): Define.
7115         (TARGET_FUNCTION_ARG): Define.
7116         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
7117         (FUNCTION_ARG): Delete.
7118         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
7119         (function_arg): Delete prototype.
7120
7121 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7122
7123         * reginfo.c (init_reg_sets_1): Adjust comments.
7124         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
7125         * calls.c (prepare_call_address): Likewise.
7126         (emit_call_1): Use targetm.calls.return_pops_args.
7127         (expand_call): Likewise.
7128         * function.c (assign_parms): Likewise.
7129         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
7130         * target.h (struct gcc_target) [struct calls]: Add
7131         return_pops_args field.
7132         * targhooks.h (default_return_pops_args): Declare.
7133         * targhooks.c (default_return_pops_args): Define.
7134         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
7135         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
7136         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
7137         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
7138         documentation.
7139         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
7140         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
7141         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
7142         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
7143         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
7144         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
7145         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
7146         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
7147         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
7148         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
7149         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
7150         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
7151         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
7152         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
7153         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
7154         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
7155         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
7156         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
7157         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
7158         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
7159         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
7160         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
7161         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
7162         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
7163         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
7164         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
7165         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
7166         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
7167         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
7168         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
7169         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
7170         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
7171         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
7172         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
7173         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
7174         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
7175         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
7176         * config/i386/i386.c (ix86_return_pops_args): Make static.
7177         Constify arguments.
7178         (TARGET_RETURN_POPS_ARGS): Define.
7179         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
7180         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
7181         (TARGET_RETURN_POPS_ARGS): Define.
7182         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
7183         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
7184         (TARGET_RETURN_POPS_ARGS): Define.
7185
7186 2010-06-29  Richard Guenther  <rguenther@suse.de>
7187
7188         PR middle-end/44667
7189         * tree-inline.c (initialize_inlined_parameters): Make sure
7190         to remap the inlined parameter variable substitutions types.
7191
7192 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
7193
7194         PR rtl-optimization/44659
7195         * combine.c (make_compound_operation) <SUBREG>: Do not return the
7196         result of force_to_mode if it partially re-expanded the compound.
7197
7198 2010-06-28  Jan Hubicka  <jh@suse.cz>
7199
7200         PR middle-end/44671
7201         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
7202         RESULT_DECL.
7203
7204 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
7205
7206         * double-int.h (force_fit_type_double): Remove declaration.
7207         * double-int.c (force_fit_type_double): Move to tree.c.
7208         * tree.h (force_fit_type_double): Declare.
7209         * tree.h (force_fit_type_double): Moved from double-int.c. Use
7210         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
7211         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
7212         * convert.c (convert_to_pointer): Adjust call to
7213         force_fit_type_double.
7214         * tree-vrp.c (extract_range_from_assert,
7215         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
7216         * fold-const.c: Update comment.
7217         (int_const_binop, fold_convert_const_int_from_int,
7218         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
7219         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
7220         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
7221         round_up_loc): Adjust call to force_fit_type_double.
7222
7223 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
7224
7225         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
7226
7227 2010-06-28  Martin Jambor  <mjambor@suse.cz>
7228
7229         * tree-sra.c (convert_callers): New parameter, change fndecls of
7230         recursive calls.
7231         (modify_function): Pass the old decl to convert_callers.
7232
7233 2010-06-28  Martin Jambor  <mjambor@suse.cz>
7234
7235         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
7236         ipa_check_create_node_params and ipa_initialize_node_params with
7237         checking asserts they are not necessary.
7238
7239 2010-06-28  Jan Hubicka  <jh@suse.cz>
7240
7241         PR tree-optimization/44687
7242         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
7243
7244 2010-06-28  Martin Jambor  <mjambor@suse.cz>
7245
7246         PR c++/44535
7247         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
7248         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
7249         instead of BINFO_BASE_BINFO.
7250
7251 2010-06-28  Michael Matz  <matz@suse.de>
7252
7253         PR middle-end/44592
7254         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
7255         proper VDEF chain for intermediate stores in the sequence.
7256
7257 2010-06-28  Jan Hubicka  <jh@suse.cz>
7258
7259         PR tree-optimization/44357
7260         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
7261         uninlinable functions.
7262
7263 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
7264
7265         * config.gcc (powerpc*-*-*): Handle titan.
7266         * config/rs6000/rs6000.c (titan_cost): New costs.
7267         (rs6000_override_options): Add "titan" to processor_target_table.
7268         Add Titan to branch alignment logic.
7269         Correctly set rs6000_cost for titan.
7270         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
7271         * config/rs6000/titan.md: New file.
7272         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
7273
7274 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
7275
7276         * tree-browser.c (TB_history_stack): Convert to a VEC.
7277         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
7278         (TB_history_prev): Likewise.
7279
7280 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
7281
7282         * vec.h (vec_heap_free): Add parentheses around free.
7283
7284 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
7285
7286         * system.h: Poison GCC_EXCEPT_H for front-end files.
7287
7288         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
7289         langhook.
7290         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
7291         Define to NULL by default.
7292         * except.h: Define GCC_EXCEPT_H.
7293         (doing_eh): Remove prototype.
7294         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
7295         (lang_protect_cleanup_actions): Remove.
7296         * except.c (lang_protect_cleanup_actions): Remove.
7297         (doing_eh): Remove.
7298         (gen_eh_region): Don't check doing_eh here.
7299         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
7300         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
7301         instead of lang_protect_cleanup_actions.
7302         * omp-low.c (maybe_catch_exception): Likewise.
7303         * Makefile.in: Update dependencies.
7304
7305 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
7306
7307         * cgraph.h (struct varpool_node): new used_from_object_file flag.
7308         (struct cgraph_local_info): new used_from_object_file flag.
7309         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
7310         (cgraph_clone_node): initialize used_from_object_file.
7311         (cgraph_create_virtual_clone): initialize used_from_object_file.
7312         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
7313         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
7314         when compiling with -fwhole-program.
7315         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
7316         internal resolver.
7317         * ipa.c (function_and_variable_visibility): Set externally_visible
7318         flag of varpool_node if used_from_object_file flag is set.
7319         (cgraph_externally_visible_p): check used_from_object_file flag.
7320         * doc/invoke.texi (-fwhole-program option): Change description of
7321         externally_visible attribute accordingly.
7322         * doc/extend.texi (externally_visible): Ditto.
7323
7324 2010-06-27  Jan Hubicka  <jh@suse.cz>
7325
7326         * params.def (max-inline-insns-auto): Default to 40.
7327         * doc/invoke.texi (max-inline-insns-auto): Document the change.
7328
7329 2010-06-27  Jan Hubicka  <jh@suse.cz>
7330
7331         PR middle-end/44671
7332         PR middle-end/44686
7333         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
7334         signature change.
7335         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
7336         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
7337
7338 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
7339
7340         * target.h (struct gcc_target): Add register_move_cost field.
7341         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
7342         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
7343         * targhooks.c (default_register_move_cost): New function.
7344         * targhooks.h (default_register_move_cost): Declare function.
7345         * defaults.h (REGISTER_MOVE_COST): Delete.
7346         * ira-int.h (ira_register_move_cost): Update comment.
7347         * ira.c (ira_register_move_cost): Update comment.
7348         * reload.h (register_move_cost): Declare.
7349         * reginfo.c (register_move_cost): New function.
7350         (move_cost): Update comment.
7351         (init_move_cost, memory_move_secondary_cost): Replace
7352         REGISTER_MOVE_COST with register_move_cost.
7353         * postreload.c (reload_cse_simplify_set): (Ditto.).
7354         * reload.c (find_valid_class, find_reloads): (Ditto.).
7355         * reload1.c (choose_reload_regs): (Ditto.).
7356         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
7357         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
7358         * doc/md.texi (can_create_pseudo_p): Update documentation.
7359
7360         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
7361         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
7362         * config/i386/i386.h (ix86_memory_move_cost): Make static.
7363         (TARGET_MEMORY_MOVE_COST): Define.
7364
7365         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
7366         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
7367         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
7368         (TARGET_MEMORY_MOVE_COST): Define.
7369
7370 2010-06-27  Richard Guenther  <rguenther@suse.de>
7371
7372         PR tree-optimization/44683
7373         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
7374         false edge from the inverted condition.
7375
7376 2010-06-27  Richard Guenther  <rguenther@suse.de>
7377
7378         PR middle-end/44684
7379         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
7380         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
7381         for register LHS.  Or non-store assignments.
7382
7383 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
7384
7385         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
7386         (sparc_emit_set_const64): Likewise.  Remove disabled code.
7387         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
7388         (sparc_emit_set_const64): Likewise.
7389
7390 2010-06-26  Catherine Moore  <clm@codesourcery.com>
7391
7392         * config/mips/mips.md (alu_type): New attribute.
7393         (type): Infer type from alu_type.
7394         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
7395         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
7396         *subsi3_extended, negsi2, negdi2, *low<mode>,
7397         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
7398         xor<mode>3, *nor<mode>3,
7399         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
7400         *zero_extendhi_truncqi):  Set alu_type instead of type.
7401
7402 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
7403
7404         * config/alpha/alpha.c (alpha_need_linkage): Adjust
7405         splay_tree_new_ggc call.
7406         (alpha_use_linkage): Likewise.
7407
7408 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
7409
7410         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
7411         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
7412         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
7413         (static_specs): Remove switches_need_spaces.
7414         (process_command, do_self_spec): Hardcode handling "-o" instead of
7415         checking switches_need_spaces.
7416         * system.h (SWITCHES_NEED_SPACES): Poison.
7417
7418 2010-06-26  Richard Guenther  <rguenther@suse.de>
7419
7420         PR tree-optimization/44393
7421         * tree-loop-distribution.c (generate_loops_for_partition): Fix
7422         stmt removal and VOP renaming.
7423         (generate_memset_zero): Remove redundant stmt updating.
7424         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
7425         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
7426
7427 2010-06-26  Jan Hubicka  <jh@suse.cz>
7428
7429         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
7430         edges comming from header are equivalent.
7431         (visit_bb): Handle PHIs correctly.
7432         * tree-inline.c (copy_phis_for_bb): Be able to copy
7433         PHI from entry edge.
7434         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
7435
7436 2010-06-26  Richard Guenther  <rguenther@suse.de>
7437
7438         PR middle-end/44674
7439         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
7440         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
7441
7442 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
7443
7444         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
7445         add_infile, alloc_switch): New.
7446         (process_command): Remove variable lang_n_infiles.  Process
7447         options in a single pass.  Use new functions for allocating
7448         infiles and switches arrays.  Properly skip operands of
7449         -Xpreprocessor and -Xassembler.
7450
7451 2010-06-26  Jan Hubicka  <jh@suse.cz>
7452
7453         PR middle-end/44671
7454         * cgraphunit.c (cgraph_function_versioning): Remove wrong
7455         cgraph_make_decl_local call; fix typo copying RTL data.
7456
7457 2010-06-25  DJ Delorie  <dj@redhat.com>
7458
7459         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
7460         (m32c_output_aligned_common): Likewise.
7461         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
7462         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
7463         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
7464         (m32c_register_pragmas): Register it.
7465         * config/m32c/m32c.c (m32c_get_pragma_address): New.
7466         (m32c_insert_attributes): Set #pragma address decls volatile.
7467         (pragma_entry_eq): New.
7468         (pragma_entry_hash): New.
7469         (m32c_note_pragma_address): New.
7470         (m32c_get_pragma_address): New.
7471         (m32c_output_aligned_common): New.
7472         * doc/extend.texi: Document the new pragma.
7473
7474         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
7475         also.
7476         * config/m32c/predicates.md (m32c_any_operand): Check the code
7477         instead of memory_operand so as to allow matching volatile MEMs.
7478         (m32c_nonimmediate_operand): Likewise.
7479         (mra_operand): Allow volatiles.
7480
7481 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
7482
7483         PR debug/44610
7484         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
7485         address if the offset is unknown.
7486
7487 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
7488
7489         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
7490         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
7491         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
7492         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
7493         to ia64_start_function. Invoke it.
7494         * config/ia64/ia64.c (ia64_start_function): Call new function
7495         dwarf2out_vms_debug_main_pointer.
7496
7497 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
7498
7499         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
7500         statements computing the true predicate.
7501
7502 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
7503
7504         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
7505         to boolean_true_node.
7506         (reset_bb_predicate): New.
7507         (predicate_bbs): Call reset_bb_predicate.
7508
7509 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
7510
7511         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
7512         (tree_if_conversion): Returns true when something has been changed.
7513         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
7514         changed something.
7515
7516 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
7517
7518         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
7519         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
7520         * tree-if-conv.c: Include dbgcnt.h.
7521         (tree_if_conversion): Use if_conversion_tree to count the number of
7522         if-convertible loops.
7523
7524 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
7525
7526         * common.opt (fprefetch-loop-arrays): Re-define
7527         -fprefetch-loop-arrays as a tri-state option with the initial
7528         value of -1.
7529         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
7530         pass only when flag_prefetch_loop_arrays > 0.
7531         * toplev.c (process_options): Note that, with tri-states,
7532         flag_prefetch_loop_arrays>0 means prefetching is enabled.
7533         * config/i386/i386.c (override_options): Enable prefetching at -O3
7534         for a set of CPUs that sw prefetching is helpful.
7535         (software_prefetching_beneficial_p): New.  Return TRUE if software
7536         prefetching is beneficial for the given CPU.
7537
7538 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
7539
7540         PR rtl-optimization/44326
7541         * implicit-zee.c (find_removable_zero_extends): Replace
7542         INSN_P with NONDEBUG_INSN_P.
7543
7544 2010-06-25  Martin Jambor  <mjambor@suse.cz>
7545
7546         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
7547         (struct ipa_node_params): Removed the modification_analysis_done flag.
7548         (ipa_is_param_modified): Removed.
7549         (ipa_analyze_node): Declare.
7550         (ipa_compute_jump_functions): Remove declaration.
7551         (ipa_count_arguments): Likewise.
7552         (ipa_detect_param_modifications): Likewise.
7553         (ipa_analyze_params_uses): Likewise.
7554         * ipa-prop.c (struct param_analysis_info): New type.
7555         (visit_store_addr_for_mod_analysis): Removed.
7556         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
7557         moved down in the file.
7558         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
7559         (ipa_count_arguments): Made static.
7560         (mark_modified): New function.
7561         (is_parm_modified_before_call): New function.
7562         (compute_pass_through_member_ptrs): New parameter parms_info, call
7563         is_parm_modified_before_call instead of ipa_is_param_modified.
7564         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
7565         it to compute_pass_through_member_ptrs.
7566         (ipa_compute_jump_functions): New parameter parms_info, pass it to
7567         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
7568         on the callee if it is analyzed.  Made static.
7569         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
7570         is_parm_modified_before_call instead of ipa_is_param_modified.
7571         (ipa_analyze_call_uses): New parameter parms_info, pass it to
7572         ipa_analyze_indirect_call_uses.
7573         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
7574         ipa_analyze_call_uses.
7575         (ipa_analyze_params_uses): New parameter parms_info, pass it to
7576         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
7577         (ipa_analyze_node): New function.
7578         (ipa_print_node_params): Do not dump the modified flag.
7579         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
7580         it.  Do not stream the modified parameter flag.
7581         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
7582         it.  Do not stream the modified parameter flag.
7583         * ipa-cp.c (ipcp_analyze_node): Removed.
7584         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
7585         with only a call to ipa_analyze_node.
7586         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
7587         node with only a call to ipa_analyze_node.
7588
7589 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7590
7591         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
7592
7593 2010-06-25  Jan Hubicka  <jh@suse.cz>
7594
7595         * tree-pass.h (pass_split_functions): Declare.
7596         * opts.c (decode_options): Enable function splitting at -O2
7597         * timevar.def (TV_IPA_FNSPLIT): New macro.
7598         * ipa-split.c: New file.
7599         * common.opt (-fpartial-inlining): New flag.
7600         * Makefile.in (ipa-split.o): New object file.
7601         * passes.c (init_optimization_passes): Add ipa-split.
7602         * params.def (partial-inlining-entry-probability): New parameters.
7603         * doc/invoke.texi (-fpartial-inlining): New.
7604
7605 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7606
7607         PR 44665
7608         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
7609         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
7610         (gimplify_expr): Likewise.
7611
7612 2010-06-25  Martin Jambor  <mjambor@suse.cz>
7613
7614         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
7615         statements instead of bailing out on them.
7616         (ipa_analyze_indirect_call_uses): Do not require that loads from the
7617         parameter are in the same BB as the condition.  Update comments.
7618
7619 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
7620
7621         PR middle-end/43866
7622         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
7623         true or always false, return NULL_TREE.
7624         (tree_unswitch_single_loop): Optimize conditions even when reaching
7625         max-unswitch-level parameter.  If num > 0, optimize first all conditions
7626         using entry checks, then do still reachable block discovery and consider
7627         only conditions in still reachable basic blocks in the loop.
7628
7629         PR tree-optimization/44539
7630         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
7631         the call doesn't have LHS, but has VDEF.
7632
7633 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
7634
7635         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
7636         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
7637         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
7638         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
7639         * system.h (MODIFY_TARGET_NAME): Poison.
7640
7641 2010-06-25  Alan Modra  <amodra@gmail.com>
7642
7643         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
7644         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
7645         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
7646         CMODEL_LARGE as default.
7647         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
7648         (offsettable_ok_by_alignment): Delete.
7649         (rs6000_emit_move): Remove mcmodel=medium optimization.
7650
7651 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
7652
7653         With large parts from Jim Wilson:
7654         PR target/43902
7655         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
7656         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
7657         * optabs.c (optab_for_tree_code): Likewise.
7658         (expand_widen_pattern_expr): Likewise.
7659         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
7660         out of execute_optimize_widening_mul.
7661         (convert_plusminus_to_widen): New function.
7662         (execute_optimize_widening_mul): Use the two new functions.
7663         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
7664         Remove code to generate widening multiply-accumulate.  Add support
7665         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
7666         * gimple-pretty-print.c (dump_ternary_rhs): New function.
7667         (dump_gimple_assign): Call it when appropriate.
7668         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
7669         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
7670         (expand_gimple_stmt_1): Likewise.
7671         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
7672         WIDEN_MULT_MINUS_EXPR.
7673         * tree-ssa-operands.c (get_expr_operands): Likewise.
7674         * tree-inline.c (estimate_operator_cost): Likewise.
7675         * gimple.c (extract_ops_from_tree_1): Renamed from
7676         extract_ops_from_tree.  Add new arg for a third operand; fill it.
7677         (gimple_build_assign_stat): Support operations with three operands.
7678         (gimple_build_assign_with_ops_stat): Likewise.
7679         (gimple_assign_set_rhs_from_tree): Likewise.
7680         (gimple_assign_set_rhs_with_ops_1): Renamed from
7681         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
7682         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
7683         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
7684         WIDEN_MULT_MINUS_EXPR.
7685         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
7686         (extract_ops_from_tree_1): Adjust declaration.
7687         (gimple_assign_set_rhs_with_ops_1): Likewise.
7688         (gimple_build_assign_with_ops): Pass NULL for last operand.
7689         (gimple_build_assign_with_ops3): New macro.
7690         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
7691         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
7692         functions.
7693         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
7694         (verify_gimple_assign): Call it.
7695         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
7696         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
7697         functions for dealing with three-operand statements.
7698         * tree.c (commutative_ternary_tree_code): New function.
7699         * tree.h (commutative_ternary_tree_code): Declare it.
7700         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
7701         ternary statements.
7702         (gimple_assign_nonzero_warnv_p): Likewise.
7703         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
7704         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
7705         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
7706         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
7707         (struct hashtable_expr): New member ternary in the union.
7708         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
7709         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
7710         (iterative_hash_hashable_expr): Likewise.
7711         (print_expr_hash_elt): Handle EXPR_TERNARY.
7712         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
7713         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
7714         statements.  Handle GIMPLE_TERNARY_RHS.
7715
7716 2010-06-25  Jan Hubicka  <jh@suse.cz>
7717
7718         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
7719
7720 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
7721
7722         PR c/44517
7723         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
7724         parameters are not good.
7725         (c_parser_parameter_declaration): Error unknown type name if the type
7726         name can't start declaration specifiers.
7727
7728 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
7729
7730         * gcc.c (translate_options): Don't mention +e in comment.
7731         (process_command): Don't handle +e specially.
7732
7733 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
7734
7735         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
7736
7737         * ira-build.c (merge_hard_reg_conflicts): New function.
7738         (create_cap_allocno, copy_info_to_removed_store_destinations,
7739         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
7740         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
7741         (remove_unnecessary_allocnos, remove_low_level_allocnos)
7742         copy_nifo_to_removed_store_destination): Use them.
7743         * ira-lives.c (make_hard_regno_born): New function, split out of
7744         make_regno_born.
7745         (make_allocno_born): Likewise.
7746         (make_hard_regno_dead): New function, split out of make_regno_dead.
7747         (make_allocno_dead): Likewise.
7748         (inc_register_pressure): New function, split out of set_allocno_live.
7749         (dec_register_pressure): New function, split out of clear_allocno_live.
7750         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
7751         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
7752         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
7753         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
7754         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
7755         mark_pseudo_regno_live.
7756         (process_bb_node_lives): Use mark_pseudo_regno_live,
7757         make_hard_regno_born and make_allocno_dead.
7758         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
7759         set_allocno_live, clear_allocno_live): Delete functions.
7760
7761         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
7762         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
7763         functions.
7764         (ira_flattening): Use ira_parent_allocno.
7765         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
7766         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
7767
7768         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
7769         statement.
7770
7771         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
7772         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
7773         minmax_set_iter_cond, minmax_set_iter_next,
7774         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
7775         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
7776         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
7777         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
7778         uses changed.
7779
7780         * ira-int.h (struct live_range, live_range_t): Renamed from struct
7781         ira_allocno_live_range and allocno_live_range_t; all uses changed.
7782         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
7783         All uses changed.
7784
7785 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
7786
7787         * thumb2.md (thumb2_tlobits_cbranch): Delete.
7788         (peephole2 to convert zero_extract/compare of single bit to
7789          lshift/compare): New.
7790
7791 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
7792
7793         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
7794         recursive call and call to 'int_const_binop'.
7795         (build_range_check, fold_cond_expr_with_comparison, unextend,
7796         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
7797         multiple_of_p): Adjust call to const_binop.
7798
7799 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
7800
7801         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
7802         determine size of XFmode operand.
7803         (XFmode extended DFmode push splitter): Ditto.
7804         (XFmode extended SFmode push splitter): Ditto.
7805
7806 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
7807
7808         PR target/44588
7809         * config/i386/i386.md (extract_code): New.
7810         (<u>divmodqi4): Likewise.
7811         (divmodhiqi3): Likewise.
7812         (udivmodhiqi3): Likewise.
7813         (<u>divqi3): Remvoved.
7814
7815 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
7816
7817         PR middle-end/44492
7818         * recog.h (struct recog_data): Add is_asm field.
7819         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
7820         present in constraints of inline-asm operand and memory operand
7821         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
7822         (extract_insn): Initialize recog_data.is_asm.
7823         * doc/md.texi (Constraints): Document operand side-effect rules.
7824
7825 2010-06-24  Andi Kleen  <ak@linux.intel.com>
7826
7827         * c-parser.c (c_parser_conditional_expression): Call
7828         warn_for_omitted_condop.
7829         * doc/invoke.texi: Document omitted condop warning.
7830
7831 2010-06-24  Nick Clifton<nickc@redhat.com>
7832
7833         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
7834         insn in the sequence is a jump insn before setting its label.
7835
7836 2010-06-24  Alan Modra  <amodra@gmail.com>
7837
7838         * collect2.c (main): Match exactly --version and --help.
7839
7840 2010-06-24  DJ Delorie  <dj@redhat.com>
7841
7842         * config/m32c/m32c-pragma.c: Don't include rtl.h.
7843
7844 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
7845
7846         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
7847         using X87MODEF mode iterator.
7848         (pushsf splitter): Macroize splitter using P mode iterator.
7849         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
7850         mode iterator.
7851
7852         (*movxf_internal): Rename from *movxf_integer.
7853         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
7854         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
7855         (*movdf_internal): Rename from *movdf_integer.
7856         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
7857         (*movsf_internal): Rename from *movdf_1.
7858
7859 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
7860
7861         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
7862         (const_gimple_seq_node): Removed typedefs.
7863
7864         * gimple.h (gimple_seq_node_d, gimple_seq_node)
7865         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
7866
7867 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
7868
7869         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
7870         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
7871         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
7872         and CODE_FOR_vec_extract_lo_v4df.
7873
7874         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
7875         Changed to define_insn_and_split.
7876         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
7877         (vec_extract_lo_v16hi): Likewise.
7878         (vec_extract_lo_v32qi): Likewise.
7879         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
7880         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
7881
7882 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
7883
7884         PR target/44640
7885         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
7886         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
7887         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
7888         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
7889         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
7890
7891         PR target/44640
7892         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
7893
7894         PR other/44644
7895         * df-core.c (struct df): Rename to df_d.
7896         * df.h (struct df): Likewise.
7897         * dse.h (struct df): Remove forward declaration.
7898         * recog.h (struct insn_data): Rename to:
7899         (struct_insn_data_d).  Adjusted all users.
7900
7901 2010-06-23  Arnaud Charlet  <charlet@adacore.com
7902
7903         PR ada/22220
7904         * doc/install.texi: Update requirements to build GNAT.
7905
7906 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
7907
7908         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
7909         enum type.
7910         (m68k_sched_attr_opx_type): Remove unreachable return.
7911         (m68k_sched_attr_opy_type): Likewise.
7912         (m68k_sched_attr_size): Likewise.
7913         (sched_get_opxy_mem_type): Likewise.
7914         (m68k_sched_attr_op_mem): Likewise.
7915
7916 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
7917
7918         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
7919         new statement and adjust VDEF only if necessary.  Remove superfluous
7920         call to maybe_clean_or_replace_eh_stmt.
7921         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
7922         copy the flags.
7923         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
7924         * tree-inline.c (copy_bb): ...and not there.
7925
7926 2010-06-22  Cary Coutant  <ccoutant@google.com>
7927
7928         * dwarf2out.c (is_nested_in_subprogram): New function.
7929         (should_move_die_to_comdat): Use it.
7930         (copy_ancestor_tree): Don't mark DIEs here.
7931         (copy_decls_walk): Start walk from root of newly-added tree;
7932         mark DIEs here instead.
7933
7934 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
7935
7936         * config/i386/i386.md (unit): Also check sseishft1.
7937
7938 2010-06-22  Jan Hubicka  <jh@suse.cz>
7939
7940         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
7941         enabled.
7942
7943 2010-06-22  Jan Hubicka  <jh@suse.cz>
7944
7945         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
7946         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
7947         Return true if something changed.
7948         * df.h (df_confluence_function_n): Return bool.
7949         * df-core.c (df_worklist_propagate_forward,
7950         df_worklist_propagate_backward): Track changes and ages.
7951         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
7952         track ages.
7953         * dse.c (dse_confluence_n): Return always true.
7954
7955 2010-06-22  Jan Hubicka  <jh@suse.cz>
7956
7957         * bitmap.c (bitmap_clear_bit): Micro optimize.
7958
7959 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
7960
7961         * config/i386/i386.md (SWI1248x): New mode iterator.
7962         (SWI48x): Ditto.
7963         (SWI12): Ditto.
7964         (SWI24): Ditto.
7965
7966         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
7967         SWI1248x mode iterator.
7968         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
7969         using SWI124 mode iterator.
7970         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
7971         mode iterator.
7972         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
7973         *pushdi2_prologue_rex64 using P mode iterator.
7974         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
7975         using SWI48 mode iterator.
7976         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
7977         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
7978         using SWI1248x mode iterator.
7979         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
7980         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
7981         SWI48 mode iterator.
7982         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
7983         iterator.
7984         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
7985         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
7986         SWI12 mode iterator.
7987         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
7988         SWI12 mode iterator.
7989         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
7990         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
7991         SWI24 mode iterator.
7992         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
7993         SWI48 mode iterator.
7994         (mov<mode>_insn_1): New expander.
7995         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
7996         using SWI48x mode iterator.
7997
7998         (*movoi_internal_avx): Rename from *movoi_internal.
7999         (*movti_internal_rex64): Rename from *movti_rex64.
8000         (*movti_internal_sse): Rename from *movti_sse.
8001         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
8002         (*movdi_internal): Rename from *movdi_2.
8003         (*movsi_internal): Rename from *movsi_1.
8004         (*movhi_internal): Rename from *movhi_1.
8005         (*movqi_internal): Rename from *movqi_1.
8006
8007         (insv): Update the call to gen_movsi_insv_1 for rename.
8008         * config/i386/i386.c (promote_duplicated_reg): Ditto.
8009
8010 2010-06-22  Jan Hubicka  <jh@suse.cz>
8011
8012         * passes.c (execute_function_todo): Move call of statistics_fini_pass
8013         to ...
8014         (execute_todo) ... this one.
8015
8016 2010-06-22  Alan Modra  <amodra@gmail.com>
8017
8018         PR target/44364
8019         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
8020         * caller-save.c (insert_restore, insert_save): Use non-validate
8021         form of adjust_address.
8022
8023 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8024
8025         PR target/39690
8026         * config/pa/pa.c (override_options): Disable
8027         -freorder-blocks-and-partition.
8028
8029 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
8030
8031         PR target/44615
8032         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
8033
8034         * config/i386/i386.md (type): Add sseishft1
8035
8036         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
8037         (ppro_insn_load): Likewise.
8038         (ppro_insn_store): Likewise.
8039         (ppro_insn_both): Likewise.
8040
8041         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
8042         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
8043         for type.
8044         (*vec_extractv2di_1_avx): Likewise.
8045         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
8046         type.  Remove atom_unit.
8047         (*vec_extractv2di_1_sse2): Likewise.
8048
8049 2010-06-21  DJ Delorie  <dj@redhat.com>
8050
8051         * diagnostic.h (diagnostic_classification_change_t): New.
8052         (diagnostic_context): Add history and push/pop list.
8053         (diagnostic_push_diagnostics): Declare.
8054         (diagnostic_pop_diagnostics): Declare.
8055         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
8056         from pragmas in a history chain instead of the global table.
8057         (diagnostic_push_diagnostics): New.
8058         (diagnostic_pop_diagnostics): New.
8059         (diagnostic_report_diagnostic): Scan history chain to find state
8060         of diagnostics as of the diagnostic location.
8061         * opts.c (set_option): Pass UNKNOWN_LOCATION to
8062         diagnostic_classify_diagnostic.
8063         (enable_warning_as_error): Likewise.
8064         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
8065         use in the history chain.
8066         * doc/extend.texi: Document pragma GCC diagnostic changes.
8067
8068 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
8069
8070         * dwarf2out.c (add_linkage_name): New function.  Don't add
8071         anything to DW_TAG_member DIEs.
8072         (add_name_and_src_coords_attributes): Use it.
8073         (gen_variable_die): Call it for C++ static data members if
8074         specification is DW_TAG_member.
8075
8076         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
8077         C++ char16_t and char32_t.
8078
8079         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
8080         * genattrtab.c: Include vecprim.h.
8081         (cached_attrs, cached_attr_count, attrs_seen_once,
8082         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
8083         attrs_cached_after): New variables.
8084         (find_attrs_to_cache): New function.
8085         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
8086         (write_test_expr): Add attrs_cached argument, return it too,
8087         attempt to cache non-const attributes used more than once in
8088         a single case handling.
8089         (write_attr_get): Use find_attrs_to_cache, for caching candidates
8090         emit cached_* variables.  Adjust write_attr_set callers.
8091         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
8092         to find attributes that should be cached in this block.  Adjust
8093         write_test_expr callers.
8094         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
8095         callers.
8096         (make_automaton_attrs): Adjust write_test_expr caller.
8097
8098         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
8099         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
8100         (make_automaton_attrs): If find_tune_attr returns non-NULL,
8101         write separate internal_dfa_insn_code_* and insn_default_latency_*
8102         functions for each attribute's value and emit init_sched_attrs
8103         function and function pointers.
8104         * genattr.c (const_attrs, reservations): New variables.
8105         (gen_attr): Add const attributes to const_attrs vector.
8106         (check_tune_attr, find_tune_attr): New functions.
8107         (main): Add reservations to reservations vector.  If find_tune_attr
8108         returns true, add prototype for init_sched_attrs and make
8109         internal_dfa_insn_code and insn_default_latency function pointers,
8110         otherwise define init_sched_attrs as dummy macro.
8111         * cfgexpand.c: Include insn-attr.h.
8112         (gimple_expand_cfg): Call init_sched_attrs.
8113
8114         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
8115
8116         PR target/44575
8117         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
8118         va_arg from a set of register save slots into a temporary,
8119         if the container is bigger than type size, do the copying
8120         using smaller mode or using memcpy.
8121
8122         PR bootstrap/44426
8123         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
8124         prototype.
8125         (sel_print_to_dot): Remove macro.
8126         (sel_print): Likewise.  New prototype.
8127         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
8128         (sel_print): New function.
8129
8130 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8131
8132         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
8133         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
8134
8135 2010-06-21  Nick Clifton  <nickc@redhat.com>
8136
8137         * config/rx/rx.h (PTRDIFF_TYPE): Define.
8138         (SMALL_REGISTER_CLASS): Define (to zero).
8139         (PRINT_OPERAND): Delete.
8140         (PRINT_OPERAND_ADDRESS): Delete.
8141         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
8142         (rx_print_operand_address): Delete prototype.
8143         * config/rx/rx.c (rx_print_operand): Make static.
8144         Allow %H and %L to handle CONST_DOUBLEs.
8145         (rx_print_operand_address): Make static.
8146         (rx_gen_move_template): Rename local variable 'template' to
8147         out_template.
8148         (rx_function_arg): Do not pass unknown sized objects in registers.
8149         (TARGET_PRINT_OPERAND): Define.
8150         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8151
8152 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8153
8154         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
8155
8156 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
8157
8158         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
8159         stack-alignment for simple leaf-functions.
8160
8161 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
8162
8163         * doc/install.texi: Document bootstrap-lto.
8164
8165 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
8166
8167         PR debug/44248
8168         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
8169         (input_function): Drop them here, if VTA is disabled.
8170
8171 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
8172
8173         PR target/44546
8174         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
8175         New predicate.
8176         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
8177         ix86_swapped_fp_comparsion_operator instead of
8178         ix86_fp_comparison_operator.
8179
8180         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
8181         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
8182         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
8183         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
8184         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
8185         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
8186
8187 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
8188
8189         PR other/32998
8190         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
8191         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
8192         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
8193         (decode_cmdline_option): Update for this return value.  Set
8194         orig_option_with_args_text field.  Set arg field for unknown
8195         options.  Make static.
8196         (decode_cmdline_options_to_array): New.
8197         (prune_options): Update handling of find_opt return value.
8198         * opts.c (read_cmdline_option): Take decoded option.  Return void.
8199         (read_cmdline_options): Take decoded options.
8200         (decode_options): Add parameters for decoded options.  Use
8201         decode_cmdline_options_to_array.  Use decoded options for -O
8202         scan.  Use integral_argument for -O parameters.  Update call to
8203         read_cmdline_options.
8204         (enable_warning_as_error): Update handling of find_opt return value.
8205         * opts.h: Update comment on unknown options.
8206         (struct cl_decoded_option): Update comments on opt_index and arg.
8207         Add orig_option_with_args_text.
8208         (decode_cmdline_option): Remove.
8209         (decode_cmdline_options_to_array): Declare.
8210         (decode_options): Update prototype.
8211         * toplev.c (save_argv): Remove.
8212         (save_decoded_options, save_decoded_options_count): New.
8213         (read_integral_parameter): Remove.
8214         (print_switch_values): Use decoded options.
8215         (toplev_main): Don't set save_argv.  Update call to decode_options.
8216         * toplev.h (read_integral_parameter): Remove.
8217         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
8218
8219 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
8220
8221         PR target/44072
8222         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
8223         immediate.
8224         * constraints.md (Pw, Px): New constraints.
8225         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
8226
8227 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
8228
8229         * config/i386/sse.md (fma4modesuffixf4): Removed.
8230         (ssemodesuffixf2s): Likewise.
8231         (ssemodesuffixf4): Likewise.
8232         (ssemodesuffixf2c): Likewise.
8233         (ssescalarmodesuffix2s): Likewise.
8234         (avxmodesuffixf2c): Likewise.
8235         (ssemodesuffix): New.
8236         (ssescalarmodesuffix): Likewise.
8237         Update patterns with ssemodesuffix and ssescalarmodesuffix.
8238
8239 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
8240
8241         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
8242
8243 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
8244
8245         * stor-layout.c (debug_rli): Remove unused local variables.
8246
8247 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
8248
8249         PR rtl-optimization/40900
8250         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
8251         original expression for later reuse.
8252         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
8253         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
8254
8255 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
8256
8257         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
8258         double_int_fits_in_uhwi_p): Implement as static inline.
8259         (double_int_xor): New inline function.
8260         (double_int_lrotate, double_int_rrotate, double_int_max,
8261         double_int_umax, double_int_smax, double_int_min, double_int_umin,
8262         double_int_smin): Declare.
8263         (lrotate_double, rrotate_double): Remove declaration.
8264         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
8265         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
8266         (double_int_lrotate, double_int_rrotate, double_int_max,
8267         double_int_umax, double_int_smax, double_int_min, double_int_umin,
8268         double_int_smin): New function.
8269         * fold-const.c (int_const_binop): Clean up, use double_int_*
8270         functions.
8271         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
8272         double_int_* and immed_double_int_const functions.
8273
8274 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
8275
8276         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
8277         * function.c (types_used_by_cur_var_decl): Likewise.
8278         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
8279
8280 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
8281
8282         * tree.h (record_layout_info): Change type of pending_statics field
8283         to a VEC.
8284         * stor-layout.c (start_record_layout): Store NULL into
8285         pending_statics.
8286         (debug_rli): Call debug_vec_tree instead of debug_tree.
8287         (place_field): Likewise.
8288         (finish_record_layout): Likewise.
8289
8290 2010-06-18  Alan Modra  <amodra@gmail.com>
8291
8292         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
8293
8294 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8295
8296         PR target/43740
8297         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
8298         for SET source operand from SET destination operand.
8299
8300 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
8301
8302         PR rtl-optimization/39871
8303         * reload1.c (init_eliminable_invariants): For flag_pic, disable
8304         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
8305         (function_invariant_p): Rule out a plus of frame or arg pointer with
8306         a SYMBOL_REF.
8307         * ira.c (find_reg_equiv_invariant_const): Likewise.
8308
8309 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
8310
8311         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
8312         print_operand_address and puts to output the operand for CONST.
8313
8314 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
8315
8316         PR debug/44572
8317         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
8318         hook.
8319
8320 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8321
8322         * v850-protos.h (print_operand): Delete.
8323         (print_operand_address): Delete.
8324         * v850.h (PRINT_OPERAND): Delete.
8325         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8326         (PRINT_OPERAND_ADDRESS): Delete.
8327         * v850.c (print_operand_address): Rename to...
8328         (v850_print_operand_address): ...this.  Make static. Call
8329         v850_print_operand.
8330         (print_operand): Rename to...
8331         (v850_print_operand): ...this.  Make static.  Call
8332         v850_print_operand_address.
8333         (v850_print_operand_punct_valid_p): New function.
8334         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8335         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8336
8337 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8338
8339         * config/sh/sh-protos.h (print_operand): Delete.
8340         (print_operand_address): Delete.
8341         * config/sh/sh.h (PRINT_OPERAND): Delete.
8342         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8343         (PRINT_OPERAND_ADDRESS): Delete.
8344         * config/sh/sh.c (sh_print_operand_address): Make static.
8345         (sh_print_operand): Make static.  Call sh_print_operand_address
8346         and sh_print_operand.
8347         (sh_print_operand_punct_valid_p): New function.
8348         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8349         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8350
8351 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8352
8353         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
8354         (mcore_print_operand_address): Delete.
8355         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
8356         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8357         (PRINT_OPERAND_ADDRESS): Delete.
8358         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
8359         (mcore_print_operand): Make static.
8360         (mcore_print_operand_punct_valid_p): New function.
8361         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
8362         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8363
8364 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8365
8366         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
8367         (print_operand_address): Delete.
8368         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
8369         (PRINT_OPERAND_ADDRESS): Delete.
8370         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
8371         static.
8372         (m68hc11_print_operand): Make static.
8373         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8374
8375 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8376
8377         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
8378         (m32r_print_operand_address): Delete.
8379         * config/m32r/m32r.h (m32r_punct_chars): Delete.
8380         (PRINT_OPERAND): Delete.
8381         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8382         (PRINT_OPERAND_ADDRESS): Delete.
8383         * config/m32r/m32r.c (m32r_punct_chars): Make static.
8384         (m32r_print_operand_address): Make static.
8385         (m32r_print_operand): Make static.
8386         (m32r_print_operand_punct_valid_p): New function.
8387         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8388         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8389
8390 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8391
8392         * config/iq2000/iq2000-protos.h (print_operand): Delete.
8393         (print_operand_address): Delete.
8394         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
8395         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8396         (PRINT_OPERAND_ADDRESS): Delete.
8397         (iq2000_print_operand_punct): Delete.
8398         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
8399         (iq2000_print_operand_address): Make static.
8400         (iq2000_print_operand): Make static.
8401         (iq2000_print_operand_punct_valid_p): New function.
8402         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8403         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8404
8405 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8406
8407         * config/frv/frv-protos.h (frv_print_operand): Delete.
8408         (frv_print_operand_address): Delete.
8409         * config/frv/frv.h (PRINT_OPERAND): Delete.
8410         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8411         (PRINT_OPERAND_ADDRESS): Delete.
8412         * config/frv/frv.c (frv_print_operand_address): Make static.
8413         (frv_print_operand): Make static.
8414         (frv_print_operand_punct_valid_p): New function.
8415         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8416         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8417
8418 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8419
8420         * tree.h (vec_member): Declare.
8421         * tree.c (vec_member): Define.
8422
8423 2010-06-17  Richard Guenther  <rguenther@suse.de>
8424
8425         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
8426         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
8427
8428 2010-06-17  Richard Guenther  <rguenther@suse.de>
8429
8430         * tree-inline.c (declare_return_variable): Remove bogus code.
8431
8432 2010-06-17  Richard Guenther  <rguenther@suse.de>
8433
8434         * gimplify.c (gimplify_bind_expr): Always promote complex
8435         and vector variables to registers if possible.
8436
8437 2010-06-17  Richard Guenther  <rguenther@suse.de>
8438
8439         * expr.c (get_inner_reference): Use double_int for bit_offset
8440         calculation.
8441
8442 2010-06-16  DJ Delorie  <dj@redhat.com>
8443
8444         * common.opt (-fstrict-volatile-bitfields): new.
8445         * doc/invoke.texi: Document it.
8446         * fold-const.c (optimize_bit_field_compare): For volatile
8447         bitfields, use the field's type to determine the mode, not the
8448         field's size.
8449         * expr.c (expand_assignment): Likewise.
8450         (get_inner_reference): Likewise.
8451         (expand_expr_real_1): Likewise.
8452         * expmed.c (store_fixed_bit_field): Likewise.
8453         (extract_bit_field_1): Likewise.
8454         (extract_fixed_bit_field): Likewise.
8455
8456 2010-06-16  Richard Guenther  <rguenther@suse.de>
8457
8458         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
8459
8460 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
8461
8462         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
8463         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
8464         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
8465         * debug.c: Likewise.
8466         * sdbout.c: Likewise.
8467         * vmsdbgout.c: Likewise.
8468         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
8469         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
8470         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
8471         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
8472         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
8473         * dwarf2out.c (dw_fde_struct): New fields
8474         dw_fde_vms_{end,begin}_prologue.
8475         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
8476         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
8477         (dwarf2out_vms_end_prologue): New function.
8478         (dwarf2out_vms_begin_epilogue): New function.
8479         (dw_val_struct): New value dw_val_class_vms_delta.
8480         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
8481         begin_epilogue for VMS.
8482         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
8483         new static functions.
8484         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
8485         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
8486         static functions.
8487         (print_die): New case dw_val_class_vms_delta.
8488         (attr_checksum): Likewise.
8489         (same_dw_val_p: Likewise.
8490         (size_of_die): Likewise.
8491         (value_format): Likewise.
8492         (output_die): Likewise.
8493         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
8494         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
8495         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
8496         dwarf2out_cfi_begin_epilogue
8497         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
8498
8499 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
8500
8501         * config/cris/cris-protos.h (cris_print_operand): Delete.
8502         (cris_print_operand_address): Delete.
8503         * config/cris/cris.h (PRINT_OPERAND): Delete.
8504         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8505         (PRINT_OPERAND_ADDRESS): Delete.
8506         * config/cris/cris.c (cris_print_operand_address): Make static.
8507         (cris_print_operand): Make static.
8508         (cris_print_operand_punct_valid_p): New function.
8509         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8510         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8511
8512 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
8513
8514         * config/arm/arm-protos.h (arm_print_operand): Delete.
8515         (arm_print_operand_address): Delete.
8516         * config/arm/arm.h (PRINT_OPERAND): Delete.
8517         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8518         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
8519         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
8520         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
8521         (arm_print_operand): Make static.
8522         (arm_print_operand_punct_valid_p): New function.
8523         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8524         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8525
8526 2010-06-16  Nick Clifton  <nickc@redhat.com>
8527
8528         * config/rx/constraints.md (NEGint4): New constraint.
8529         * config/rx/rx.md (attr cc): Add set_zsc.
8530         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
8531         initialised.
8532         (cmpsf): Likewise.
8533         (call_internal): Clobber the cc0 register.
8534         (call_value_internal): Likewise.
8535         (cstoresi4): Likewise.
8536         (movsieq): Likewise.
8537         (movsine): Likewise.
8538         (addsi3): Add alternative to handle small negative constants.
8539         (sunsi3): Likewise.
8540         (addsi3): Do not set the O bit in the cc0 register.
8541         (adddi3): Likewise.
8542         (subsi3): Likewise.
8543         (subdi3): Likewise.
8544         (andsi3): Reorder alternatives to prefer shorter forms.
8545         (mulsi3): Likewise.
8546         (iorsi3): Likewise.
8547         (negsi2): Note that the cc0 flags are set.
8548         (rotlsi3): Note that only the Z and S bits are set in cc0.
8549         (lshrsi3): Likewise.
8550         (ashlsi3): Likewise.
8551         (subsf3): Use %Q for the MEM operand.
8552         (fix_truncsfsi2): Likewise.
8553         (floatsisf2): Likewise.
8554         (bitset): Remove early clobber from destination.
8555         (bitset_in_memory): Likewise.
8556         (lrintsf2): Clobber the cc0 register.
8557         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
8558         (rx_print_operand): Handle %N.
8559
8560 2010-06-16  Jan Hubicka  <jh@suse.cz>
8561
8562         * df-core.c (df_compact_blocks): Free problem_temps vector.
8563
8564 2010-06-16  Martin Jambor  <mjambor@suse.cz>
8565
8566         PR tree-optimization/43905
8567         * tree-sra.c: Include tree-inline.h.
8568         (create_abstract_origin): Removed.
8569         (modify_function): Version the call graph node instead of creating
8570         abstract origins and dealing with same_body aliases.
8571         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
8572         function is versionable.
8573         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
8574
8575 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
8576
8577         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
8578         (CHOOSE_DYNAMIC_LINKER): Update.
8579
8580 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
8581
8582         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
8583         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
8584         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
8585         *prefetch_3dnow_rex.
8586
8587 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
8588
8589         * target.h (struct asm_out):Add declare_constant_name field.
8590         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
8591         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
8592         * output.h (default_asm_declare_constant_name): Declare.
8593         (assemble_label): Update prototype.
8594         * varasm.c (assemble_constant_contents): Use
8595         targetm.asm_out.declare_constant_name target hook.
8596         (assemble_label): Add 'file' argument.
8597         (default_asm_declare_constant_name): New function.
8598         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
8599         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
8600         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
8601
8602         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
8603         * config/darwin.c (darwin_asm_declare_constant_name): New function.
8604         (machopic_output_indirection): Update assemble_label argument list.
8605         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
8606         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
8607
8608 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
8609
8610         PR middle-end/44391
8611         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
8612         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
8613
8614 2010-06-15  Richard Guenther  <rguenther@suse.de>
8615
8616         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
8617
8618 2010-06-15  Paul Brook  <paul@codesourcery.com>
8619
8620         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
8621         hard-float ABI.
8622
8623 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
8624
8625         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
8626         don't get a vector type for output.
8627
8628 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
8629
8630         PR fortran/44536
8631         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
8632         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
8633         (LANG_HOOKS_DECLS): Add it.
8634         * gimplify.c (omp_notice_variable): Call
8635         lang_hooks.decls.omp_report_decl.
8636
8637 2010-06-15  Martin Jambor  <mjambor@suse.cz>
8638
8639         PR lto/44464
8640         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
8641         on the newly dead SSA name.
8642
8643 2010-06-15  Alan Modra  <amodra@gmail.com>
8644
8645         * doc/invoke.texi: Add mcmodel to powerpc options.
8646         * configure.ac: Add HAVE_LD_LARGE_TOC test.
8647         * configure: Regenerate.
8648         * config.in: Regenerate.
8649         * config/rs6000/linux64.opt (mcmodel): New.
8650         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
8651         (TARGET_CMODEL, SET_CMODEL): Define.
8652         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
8653         select CMODEL_MEDIUM default.
8654         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
8655         (TARGET_CMODEL): Define default.
8656         * config/rs6000/rs6000.c (cmodel): New variable.
8657         (rs6000_explicit_options): Add cmodel field.
8658         (rs6000_handle_option): Handle -mcmodel.
8659         (create_TOC_reference): Add largetoc_reg param.  Generate high,
8660         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
8661         (rs6000_delegitimize_address): Recognise new toc reference rtl
8662         and minimal-toc rtl.
8663         (rs6000_legitimize_reload_address): Handle new toc references.
8664         (print_operand_address): Handle legitimate_constant_pool_address_p
8665         match before lo_sum.
8666         (rs6000_eliminate_indexed_memrefs): Tidy.
8667         (rs6000_emit_move): Tweak threshold for inlining constants.
8668         Keep rs6000_emit_allocate_stack large stack frame offsets
8669         loaded into r0 inline.
8670         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
8671         (tocrel_base, tocrel_offset): New variables.
8672         (toc_relative_expr_p): Set them here.
8673         (print_operand_address): Skip over any offset on constant pool address.
8674         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
8675         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
8676         (offsettable_ok_by_alignment): New function.
8677         (rs6000_emit_move): Address suitably aligned local symbol_refs
8678         relative to the toc pointer for -mcmodel=medium.
8679         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
8680         strict param.  Allow lo_sum version of addressing.  Verify reg
8681         used for -mminimal-toc and -mcmodel != small.  Update all callers.
8682         * config/rs6000/constraints.md: Update for above change.
8683         * config/rs6000/predicates.md: Likewise.
8684         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
8685         code.
8686         (tls_gd): Split for -mcmodel=medium/large.
8687         (tls_gd_high, tls_gd_low): New.
8688         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
8689         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
8690         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
8691         (largetoc_high, largetoc_low): New.
8692         (cmptf_internal2): Add clobber.
8693         * config/rs6000/rs6000-protos.h: Update.
8694
8695 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
8696
8697         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
8698         true if no prefetch is going to be generated for a given group.
8699         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
8700         estimate the prefetch_count.
8701         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
8702         prefetch count by considering the unroll_factor and prefetch_mod
8703         for is_loop_prefetching_profitable.
8704
8705 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
8706
8707         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
8708         anything if the argument is not a MEM.
8709
8710 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
8711
8712         PR debug/43650
8713         PR debug/44181
8714         PR debug/44247
8715         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
8716         debug stmts.
8717         (canonicalize_loop_ivs): Likewise.
8718
8719 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
8720
8721         PR debug/43656
8722         * haifa-sched.c (setup_insn_reg_pressure_info,
8723         update_register_pressure): Reject debug insns.
8724         (ready_sort): Don't setup reg pressure for debug insns.
8725         (schedule_insn): Don't update reg pressure for debug insns.
8726
8727 2010-06-14  Richard Guenther  <rguenther@suse.de>
8728
8729         * lto-streamer.c (cached_bp): Remove.
8730         (bitpack_delete): Likewise.
8731         (bitpack_create): Likewise.
8732         (bp_get_next_word): Likewise.
8733         (bp_pack_value, bp_unpack_value): Move ...
8734         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
8735         Re-implement.
8736         (struct bitpack_d): Likewise.
8737         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
8738         New inline functions.
8739         * lto-streamer-out.c (lto_output_bitpack): Remove.
8740         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
8741         (pack_value_fields): Adjust.
8742         (lto_write_tree): Likewise.
8743         (output_gimple_stmt): Likewise.
8744         (output_function): Likewise.
8745         * lto-streamer-in.c (input_gimple_stmt): Adjust.
8746         (input_function): Likewise.
8747         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
8748         (lto_input_bitpack): Remove.
8749         (lto_materialize_tree): Adjust.
8750         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
8751         * lto-cgraph.c (lto_output_edge): Adjust.
8752         (lto_output_node): Likewise.
8753         (lto_output_varpool_node): Likewise.
8754         (lto_output_ref): Likewise.
8755         (input_node): Likewise.
8756         (input_varpool_node): Likewise.
8757         (input_ref): Likewise.
8758         (input_edge): Likewise.
8759         (output_node_opt_summary): Likewise.
8760         (input_node_opt_summary): Likewise.
8761         * ipa-pure-const.c (pure_const_write_summary): Likewise.
8762         (pure_const_read_summary): Likewise.
8763         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
8764         (ipa_read_indirect_edge_info): Likewise.
8765         (ipa_write_node_info): Likewise.
8766         (ipa_read_node_info): Likewise.
8767
8768 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
8769
8770         PR target/44534
8771         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
8772         (vec_extract_lo_v16hi): Likewise.
8773         (vec_extract_lo_v32qi): Likewise.
8774
8775 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
8776
8777         PR bootstrap/44426
8778         * tree.h (build_call_expr): Don't define as vararg macro, instead
8779         add a prototype.
8780         * builtins.c (build_call_nofold): Remove.
8781         (expand_builtin_int_roundingfn, expand_builtin_pow,
8782         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
8783         expand_builtin_memset_args, expand_builtin_strcmp,
8784         expand_builtin_strncmp, expand_builtin_memory_chk): Use
8785         build_call_nofold_loc instead of build_call_nofold.
8786         (build_call_expr): New function.
8787
8788         PR tree-optimization/44508
8789         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
8790         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
8791         don't eliminate trivially dead stmts.
8792         * tree-vrp.c (vrp_finalize): Pass false as last argument
8793         to substitute_and_fold.
8794         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
8795         to substitute_and_fold.
8796         * tree-ssa-ccp.c (ccp_finalize): Likewise.
8797
8798         PR bootstrap/44509
8799         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
8800
8801 2010-06-14  Ira Rosen  <irar@il.ibm.com>
8802
8803         PR tree-optimization/44507
8804         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
8805         to build initial vector for BIT_AND_EXPR.
8806         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
8807
8808 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
8809
8810         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
8811         adjust z10prop set_attr.
8812
8813 2010-06-13  Jan Hubicka  <jh@suse.cz>
8814
8815         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
8816         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
8817         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
8818         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
8819         datastructure checks into checking asserts.
8820         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
8821         * tree-ssa-sccvn.c (VN_INFO): Likewise.
8822         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
8823         df_ref_create_structure): Likewise.
8824         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
8825         pool_free): Use gcc_checking_assert.
8826         * alias.c (get_alias_set): Likewise.
8827         * var-tracking.c (variable_htab_free, shared_hash_copy,
8828         canonicalize_values_mark, variable_merge_over_cur): Likewise.
8829         * lto-streamer.c (bp_unpack_value): Likewise.
8830
8831 2010-06-13  Richard Guenther  <rguenther@suse.de>
8832
8833         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
8834         Do not stream but initialize TYPE_CANONICAL to NULL.
8835         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
8836         * gimple.c (gimple_types_compatible_p): Disregard
8837         TYPE_STRUCTURAL_EQUALITY_P.
8838         (gimple_register_type): Use TYPE_CANONICAL as cache.
8839         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
8840         before registering common types.
8841         * config/i386/i386.c (ix86_function_arg_boundary): Do not
8842         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
8843         * tree.h (TYPE_CANONICAL): Clarify documentation.
8844
8845 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
8846
8847         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8848         LIBCALL_VALUE): Remove macros.
8849         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
8850         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8851         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8852         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
8853         (ia64_function_value): Make static. Handle receiving the function
8854         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
8855
8856 2010-06-12  Jan Hubicka  <jh@suse.cz>
8857
8858         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
8859         at correct place.
8860
8861 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
8862
8863         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
8864
8865 2010-06-12  Jan Hubicka  <jh@suse.cz>
8866
8867         * df-core.c (df_clear_bb_info): New function.
8868         (df_set_blocks): bb_info is always allocated.
8869         (df_get_bb_info): Use block_info_elt_size.
8870         (df_set_bb_info): Likewise.
8871         (df_compact_blocks): Update for new block_info.
8872         (grow_bb_info): New function.
8873         * df-problems.c (df_grow_bb_info): Move to df-core.c
8874         (df_rd_set_bb_info): Remove.
8875         (df_rd_free_bb_info): Do not free block pool.
8876         (df_rd_alloc): Do not create pool, use check for
8877         obstack presence instead of NULL pointer for new blocks.
8878         (df_rd_free): DO not free alloc pool; clear block_info.
8879         (problem_RD): Add size of block info structure.
8880         (df_lr_set_bb_info): Remove.
8881         (df_lr_free_bb_info): Do not free block pool.
8882         (df_lr_alloc): Do not create pool, use check for
8883         obstack presence instead of NULL pointer for new blocks.
8884         (df_lr_free): DO not free alloc pool; clear block_info.
8885         (problem_LR): Add size of block info structure.
8886         (df_live_set_bb_info): Remove.
8887         (df_live_free_bb_info): Do not free block pool.
8888         (df_live_alloc): Do not create pool, use check for
8889         obstack presence instead of NULL pointer for new blocks.
8890         (df_live_free): DO not free alloc pool; clear block_info.
8891         (problem_LIVE): Add size of block info structure.
8892         (problem_CHAIN): Add size of block info structure.
8893         (df_byte_lr_set_bb_info): Remove.
8894         (df_byte_lr_free_bb_info): Do not free block pool.
8895         (df_byte_lr_alloc): Do not create pool, use check for
8896         obstack presence instead of NULL pointer for new blocks.
8897         (df_byte_lr_free): DO not free alloc pool; clear block_info.
8898         (problem_BYTE_LR): Add size of block info structure.
8899         (problem_NOTE): Add size of block info structure.
8900         (df_byte_MD_set_bb_info): Remove.
8901         (df_byte_MD_free_bb_info): Do not free block pool.
8902         (df_byte_MD_alloc): Do not create pool, use check for
8903         obstack presence instead of NULL pointer for new blocks.
8904         (df_byte_MD_free): DO not free alloc pool; clear block_info.
8905         (problem_BD): Add size of block info structure.
8906         * df-scan.c (df_scan_free_internal): Free block pool.
8907         (df_scan_set_bb_info): Remove.
8908         (df_scan_free_bb_info): Check for artificial_defs instead
8909         of bb_info being non-NULL.
8910         (df_scan_alloc): DO not create df_scan_block pool.
8911         (problem_SCAN): Set size of block info.
8912         (df_bb_refs_record): Do not allocate bb_info.
8913         * df.h (df_problem): Add block_info_elt_size.
8914         (struct dataflow): Change block_info to void *.
8915         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
8916         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
8917         in-line structures.
8918
8919 2010-06-12  Jan Hubicka  <jh@suse.cz>
8920
8921         PR tree-optimize/44485
8922         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
8923         containing use of return value of noreturn function.
8924
8925 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
8926
8927         * targhooks.c (default_function_value): Don't use
8928         FUNCTION_OUTGOING_VALUE.
8929         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
8930         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
8931
8932 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
8933
8934         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
8935         Add crtfastmath.o to extra_parts.
8936         * config/mips/crtfastmath.c: New.
8937         * config/mips/linux.h (ENDFILE_SPEC): New.
8938
8939 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
8940
8941         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
8942         old_type in parameter.
8943         (gcc_type_for_value): Update call to gcc_type_for_interval.
8944         (compute_type_for_level_1): Renamed compute_type_for_level.
8945         Update call to gcc_type_for_interval.
8946
8947 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
8948
8949         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
8950         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
8951
8952 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
8953
8954         * opts-common.c: Include options.h.
8955         (integral_argument): Move from opts.c.
8956         (decode_cmdline_option): New.  Based on read_cmdline_option.
8957         * opts.c (integral_argument): Move to opts-common.c.
8958         (read_cmdline_option): Move most contents to
8959         decode_cmdline_option.  Use %qs in diagnostics.
8960         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
8961         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
8962         decode_cmdline_option): New.
8963
8964 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
8965
8966         PR target/44481
8967         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
8968         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
8969         (partiysi2_cmp): Ditto.
8970         (*partiyhi2_cmp): Ditto.
8971         (*parityqi2_cmp): Remove.
8972
8973 2010-06-11  Jan Hubicka  <jh@suse.cz>
8974
8975         * bitmap.h (bmp_iter_next_bit): New.
8976         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
8977
8978 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
8979             Eric Botcazou  <ebotcazou@adacore.com>
8980
8981         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
8982         computed cost.
8983
8984 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
8985
8986         * config/i386/i386.md (unspec): New define_c_enum.
8987         (unspecv): Ditto.
8988
8989 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
8990
8991         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
8992
8993 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
8994
8995         PR middle-end/44483
8996         * tree-if-conv.c (bb_predicate_s): New struct.
8997         (bb_predicate_p): New.
8998         (bb_has_predicate): New.
8999         (bb_predicate): New.
9000         (set_bb_predicate): New.
9001         (bb_predicate_gimplified_stmts): New.
9002         (set_bb_predicate_gimplified_stmts): New.
9003         (add_bb_predicate_gimplified_stmts): New.
9004         (init_bb_predicate): New.
9005         (free_bb_predicate): New.
9006         (is_predicated): Use bb_predicate.
9007         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
9008         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
9009         before processing their successors.
9010         (clean_predicate_lists): Removed.
9011         (find_phi_replacement_condition): Use bb_predicate.
9012         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
9013         computations.
9014         (insert_gimplified_predicates): New.
9015         (combine_blocks): Call insert_gimplified_predicates.
9016         (tree_if_conversion): Call free_bb_predicate instead of
9017         clean_predicate_lists.
9018
9019 2010-10-11  Paul Brook  <paul@codesourcery.com>
9020
9021         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
9022         * config/arm/arm.c (all_architectures): Change v7e-m default to
9023         cortexm4.
9024         * config/arm/arm-cores.def: Add cortex-m4.
9025         * config/arm/arm-tune.md: Regenerate.
9026
9027 2010-06-11  Jan Hubicka  <jh@suse.cz>
9028
9029         * ipa-pure-const.c (special_builtlin_state): New function.
9030         (check_call): Use it instead of special casign BUILT_IN_RETURN.
9031         (propagate_pure_const): Use it.
9032
9033 2010-06-11  Jan Hubicka  <jh@suse.cz>
9034
9035         * df-problems.c (df_live_scratch): Convert to bitmap_head.
9036         (df_live_alloc): Initialize df_live_scratch when initializing
9037         problem_data.
9038         (df_live_transfer_function): Update uses of df_live_scratch.
9039         (df_live_free): Free problem_data; clear df_live_scratch before
9040         releasing the obstack.
9041         (df_md_free): Free problem data.
9042
9043 2010-06-11  Jan Hubicka  <jh@suse.cz>
9044
9045         * doc/invoke.texi (Wsuggest-attribute): Document.
9046         (Wmissing-noreturn): Remove.
9047         * ipa-pure-const.c (warn_function_noreturn): New function.
9048         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
9049         warn_missing_noreturn.
9050         * common.opt (Wsuggest-attribute=noreturn): New.
9051         * tree-flow.h (warn_function_noreturn): Declare.
9052         * tree-cfg.c (execute_warn_function_noreturn): Use
9053         warn_function_noreturn.
9054         (gate_warn_function_noreturn): New.
9055         (pass_warn_function_noreturn): Update.
9056
9057 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9058
9059         * c-typeck.c (handle_warn_cast_qual): Add loc
9060         parameter. Improve warning message.
9061         (build_c_cast): Pass location to handle_warn_cast_qual.
9062
9063 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
9064
9065         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
9066         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
9067         insn mnemonic.
9068         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
9069
9070 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
9071
9072         Fix bootstap on mips
9073         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
9074         be naming typedefs.
9075
9076 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
9077
9078         * system.h (helper_const_non_const_cast): New inline for
9079         gcc version <= 4.0.
9080         (CONST_CAST2): For gcc version <= 4.0 use
9081         new helper to do const/non-const casting.
9082
9083 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9084
9085         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
9086         * Makefile.in (OBJS-common): Include insn-enums.o.
9087         (insn-enums.o): New rule.
9088         (simple_generated_c): Add insn-enums.c.
9089         (build/genenums.o): New rule.
9090         (genprogmd): Add "enums".
9091         * genconstants.c (print_enum_type): Declare a C string array
9092         for each enum.
9093         * genenums.c: New file.
9094         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
9095         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
9096         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
9097
9098 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9099
9100         * doc/md.texi (define_enum_attr): Document.
9101         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
9102         * read-md.h (lookup_enum_type): Declare.
9103         * read-md.c (lookup_enum_type): New function.
9104         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
9105         * genattrtab.c (attr_desc): Add an enum_name field.
9106         (evaluate_eq_attr): Take the associated attribute as argument.
9107         Get the enum prefix from the enum_name field, if defined.
9108         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
9109         (simplify_test_exp): Pass attr to evaluate_eq_attr.
9110         (add_attr_value): New function, split out from...
9111         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
9112         (write_test_expr): Pass attr to evaluate_eq_attr.
9113         (write_attr_get): Use the enum_name as the enum tag, if defined.
9114         (write_attr_valueq): Use the enum_name as a prefix, if defined.
9115         (find_attr): Initialize enum_name.
9116         (main): Handle DEFINE_ENUM_ATTR.
9117         * gensupport.c (process_rtx): Likewise.
9118         * config/mips/mips.h (mips_tune_attr): Delete.
9119         * config/mips/mips.md (cpu): Use define_attr_enum.
9120
9121 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9122
9123         * doc/md.texi (define_c_enum, define_enum): Document.
9124         * read-md.h (md_constant): Add a parent_enum field.
9125         (enum_value, enum_type): New structures.
9126         (upcase_string, traverse_enum_types): Declare.
9127         * read-md.c (enum_types): New variable.
9128         (upcase_string, add_constant): New functions.
9129         (handle_constants): Don't create the hash table here.
9130         Use add_constant.
9131         (traverse_md_constants): Don't check for a null md_constants.
9132         (decimal_string, handle_enum, traverse_enum_types): New functions.
9133         (read_md_files): Initialize md_constants and md_enums.
9134         * genconstants.c (print_md_constant): Ignore info argument.
9135         Only print constants that belong to no enum.
9136         (print_enum_type): New function.
9137         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
9138         for each defined enum type.
9139         * config/mips/mips.md (processor): New define_enum.
9140         (unspec): New define_c_enum.
9141         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
9142         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
9143         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
9144         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
9145         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
9146         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
9147         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
9148         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
9149         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
9150         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
9151         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
9152         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
9153         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
9154         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
9155         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
9156         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
9157         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
9158         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
9159         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
9160         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
9161         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
9162         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
9163         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
9164         (UNSPEC_RDDSP): Move to mips-dsp.md.
9165         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
9166         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
9167         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
9168         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
9169         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
9170         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
9171         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
9172         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
9173         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
9174         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
9175         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
9176         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
9177         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
9178         Moved to mips-dspr2.md.
9179         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
9180         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
9181         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
9182         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
9183         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
9184         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
9185         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
9186         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
9187         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
9188         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
9189         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
9190         UNSPEC_LOONGSON_PSADBH)
9191         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
9192         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
9193         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
9194         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
9195         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
9196         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
9197         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
9198         (cpu): Update comment.
9199         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
9200         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
9201         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
9202         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
9203         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
9204         UNSPEC_LOONGSON_PCMPEQ)
9205         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
9206         UNSPEC_LOONGSON_PINSR_0)
9207         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
9208         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
9209         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
9210         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
9211         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
9212         UNSPEC_LOONGSON_PSADBH)
9213         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
9214         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
9215         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
9216         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
9217         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
9218         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
9219         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
9220         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
9221         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
9222         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
9223         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
9224         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
9225         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
9226         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
9227         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
9228         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
9229         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
9230         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
9231         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
9232         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
9233         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
9234         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
9235         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
9236         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
9237         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
9238         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
9239         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
9240         (UNSPEC_RDDSP): Moved from mips.md.
9241         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
9242         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
9243         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
9244         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
9245         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
9246         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
9247         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
9248         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
9249         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
9250         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
9251         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
9252         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
9253         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
9254         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
9255         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
9256         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
9257         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
9258         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
9259         (UNSPEC_SCC): Moved from mips.md.
9260         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
9261         "processor_type" to "processor".
9262         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
9263         * config/mips/mips.h (processor_type): Delete.
9264         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
9265         "processor_type" to "processor".
9266
9267 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9268
9269         * configure.ac (tm_include_list): Add insn-constants.h.
9270         * configure: Regenerate.
9271         * Makefile.in (GTM_H): Move insn-constants.h here from...
9272         (TM_H): ...here.
9273         * mkconfig.sh: Remove special handling for insn-constants.h.
9274
9275 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9276
9277         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
9278         (BUILD_MD): ...this new variable.
9279         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
9280         that include the old contents of simple_generated_h and
9281         simple_generated_c.
9282         (simple_generated_h, simple_generated_c): Include them.  Add
9283         insn-constants.h.
9284         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
9285         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
9286         Remove these dependencies from the main rule and include
9287         insn-conditions.md in the command line only if it appears
9288         in the dependency list.
9289         (insn-constants.h, s-constants): Delete.
9290         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
9291         or gensupport.h.
9292         (build/genmddeps.o): Likewise.
9293         (genprogrtl): New variable that contains everything from genprogmd
9294         except mddeps and constants.
9295         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
9296         depend on $(BUILD_MD)
9297         (genprog): New variable.  Make these programs depend on
9298         $(BUILD_ERRORS).
9299         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
9300         (main): Use read_md_files instead of init_rtx_reader_args.
9301         * genconstants.c: As for genmddeps.c.
9302         * read-md.h (read_skip_construct): Declare.
9303         * read-md.c (read_skip_construct): New function.
9304         (handle_file): Allow a null handle_directive, skipping the
9305         construct if so.
9306         (parse_include): Update the comment accordingly.
9307
9308 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9309
9310         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
9311         * genmddeps.c: Include read-md.h.
9312         (main): Call init_rtx_reader_args instead of init_md_reader_args.
9313         * genattr.c (main): Likewise.
9314         * genattrtab.c (main): Likewise.
9315         * genautomata.c (main): Likewise.
9316         * gencodes.c (main): Likewise.
9317         * genconditions.c (main): Likewise.
9318         * genconfig.c (main): Likewise.
9319         * genconstants.c (main): Likewise.
9320         * genemit.c (main): Likewise.
9321         * genextract.c (main): Likewise.
9322         * genflags.c (main): Likewise.
9323         * genopinit.c (main): Likewise.
9324         * genoutput.c (main): Likewise.
9325         * genpeep.c (main): Likewise.
9326         * genrecog.c (main): Likewise.
9327         * genpreds.c (main): Likewise.
9328         * gensupport.h (in_fname): Move to read-md.h.
9329         (init_md_reader_args_cb): Rename to...
9330         (init_rtx_reader_args_cb): ...this and return a bool.
9331         (init_md_reader_args): Rename to...
9332         (init_rtx_reader_args): ...this and return a bool.
9333         (include_callback): Move to read-md.h.
9334         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
9335         (file_name_list, first_dir_md_include): Move to read-md.c
9336         (first_bracket_include): Delete unused variable.
9337         (last_dir_md_include): Move to read-md.c.
9338         (process_include): Delete, moving code to read-md.c:handle_include.
9339         (process_rtx): Don't handle INCLUDE.
9340         (save_string): Delete.
9341         (rtx_handle_directive): New function.
9342         (init_md_reader_args_cb): Rename to...
9343         (init_rtx_reader_args_cb): ...this and return a boolean success value.
9344         Use read_md_args.
9345         (init_md_reader_args): Rename to...
9346         (init_rtx_reader_args): ...this and return a boolean success value.
9347         * rtl.def (INCLUDE): Delete.
9348         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
9349         argument.
9350         * read-rtl.c (read_conditions): Don't gobble ')' here.
9351         (read_mapping): Likewise.
9352         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
9353         Handle top-level non-rtx constructs here rather than in read_rtx_1.
9354         Store the whole queue in *X.  Remove call to init_md_reader.
9355         (read_rtx_1): Rename to...
9356         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
9357         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
9358         here.
9359         (read_nested_rtx): New function.  Handle (nil) here rather than
9360         in read_rtx_code.
9361         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
9362         gobble ')' here.
9363         * read-md.h (directive_handler_t): New type.
9364         (in_fname, include_callback): Moved from read-md.h.
9365         (read_constants, init_md_reader): Delete.
9366         (read_md_files): Declare.
9367         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
9368         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
9369         from gensupport.c.
9370         (read_constants): Rename to...
9371         (handle_constants): ...this.  Don't gobble ')' here.
9372         (handle_include, handle_file, handle_toplevel_file)
9373         (parse_include): New functions, mostly taken from gensupport.c.
9374         (init_md_reader): Subsume into...
9375         (read_md_files): ...this new function.
9376
9377 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9378
9379         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
9380         (unread_char): Decrement read_md_lineno after putting back '\n'.
9381         * read-md.c (fatal_with_file_and_line): Push back any characters
9382         that we decide not to add to the context.
9383         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
9384         fatal_expected_char in cases where '/' ends a line (for example).
9385         (read_name): Don't increment read_md_lineno here.
9386         (read_escape): Likewise.
9387         (read_quoted_string): Likewise.
9388         (read_braced_string): Likewise.
9389
9390 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9391
9392         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
9393         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
9394         * genconstants.c: Include read-md.h.
9395         * read-rtl.c (md_constants): Move to read-md.c.
9396         (md_name): Move to read-md.h.
9397         (initialize_iterators): Use leading_string_hash instead of def_hash
9398         and leading_string_eq_p instead of def_name_eq_p.
9399         (read_name): Move to read-md.c.
9400         (def_hash, def_name_eq_p): Delete.
9401         (read_constants, traverse_md_constants): Move to read-md.c.
9402         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
9403         * read-md.h: Include hashtab.h.
9404         (md_name): Moved from read-rtl.c.
9405         (md_constant): Moved from read-md.h.
9406         (leading_string_hash, leading_string_eq_p, read_name)
9407         (read_constants, traverse_md_constants): Declare.
9408         * read-md.c (md_constants): Moved from read-rtl.c.
9409         (leading_string_hash, leading_string_eq_p): New functions.
9410         (read_name, read_constants, traverse_md_constants): Moved from
9411         read-rtl.c.
9412
9413 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9414
9415         * read-rtl.c (md_name): New structure.
9416         (read_name): Take an md_name instead of a buffer pointer.
9417         Use the "string" field instead of strcpy when expanding constants.
9418         (read_constants): Remove the tmp_char argument.  Update the calls
9419         to read_name, using two local name buffers instead of the tmp_char
9420         argument.  Merge the constant-creation code.
9421         (read_conditions): Remove the tmp_char argument.  Update the calls
9422         to read_name, using a local name buffer instead of the tmp_char
9423         argument.
9424         (read_mapping): Replace tmp_char variable with a local name buffer.
9425         Update the calls to read_name.
9426         (read_rtx_1): Likewise.  Update the calls to read_constants and
9427         read_conditions.
9428
9429 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9430
9431         * Makefile.in (build/read-md.o): Depend on errors.h.
9432         * read-md.h (error_with_line): Declare.
9433         * read-md.c: Include errors.h.
9434         (message_with_line_1): New function, extracted from...
9435         (message_with_line): ...here.
9436         (error_with_line): New function.
9437         * genattrtab.c: If a call to message_with_line is followed by
9438         "have_error = 1;", replace both statements with a call to
9439         error_with_line.
9440         * genoutput.c: Likewise.
9441         * genpreds.c: Likewise.
9442         * genrecog.c: If a call to message_with_line is followed by
9443         "error_count++;", replace both statements with a call to
9444         error_with_line.
9445         (errorcount): Delete.
9446         (main): Don't check it.
9447         * gensupport.c: If a call to message_with_line is followed by
9448         "errors = 1;", replace both statements with a call to error_with_line.
9449         (errors): Delete.
9450         (process_define_cond_exec): Check have_error instead of errors.
9451         (init_md_reader_args_cb): Likewise.  Don't set errors.
9452
9453 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9454
9455         * read-md.h (read_md_file): Declare.
9456         (read_char, unread_char): New functions.
9457         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
9458         (read_quoted_string, read_string): Remove FILE * argument.
9459         * read-md.c (read_md_file): New variable.
9460         (read_md_filename, read_md_lineno): Update comments and remove
9461         unnecessary initialization.
9462         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
9463         (read_escape, read_quoted_string, read_braced_string, read_string):
9464         Remove FILE * argument.  Update calls accordingly, using read_char
9465         and unread_char instead of getc and ungetc.
9466         * rtl.h (read_rtx): Remove FILE * argument.
9467         * read-rtl.c (iterator_group): Remove FILE * argument from
9468         "find_builtin".
9469         (iterator_traverse_data): Remove "infile" field.
9470         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
9471         (add_mapping, read_name, read_constants, read_conditions)
9472         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
9473         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
9474         Remove file arguments from all calls, using read_char and unread_char
9475         instead of getc and ungetc.
9476         * gensupport.c (process_include): Preserve read_md_file around
9477         the include.  Set read_md_file to the handle of the included file.
9478         Update call to read_rtx.
9479         (init_md_reader_args_cb): Set read_md_file to the handle of the file
9480         and remove local FILE *.  Update calls to read_rtx.
9481
9482 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9483
9484         * read-md.h (read_rtx_lineno): Rename to...
9485         (read_md_lineno): ...this.
9486         (read_rtx_filename): Rename to...
9487         (read_md_filename): ...this.
9488         (copy_rtx_ptr_loc): Rename to...
9489         (copy_md_ptr_loc): ...this.
9490         (print_rtx_ptr_loc): Rename to...
9491         (print_md_ptr_loc): ...this.
9492         * read-md.c: Likewise.  Update references after renaming.
9493         (string_obstack): Replace RTL with MD in comment.
9494         (set_rtx_ptr_loc): Rename to...
9495         (set_md_ptr_loc): ...this.
9496         (get_rtx_ptr_loc): Rename to...
9497         (get_md_ptr_loc): ...this.
9498         * genconditions.c: Update references after renaming.
9499         * genemit.c: Likewise.
9500         * genoutput.c: Likewise.
9501         * genpreds.c: Likewise.
9502         * gensupport.c: Likewise.
9503         * read-rtl.c: Likewise.
9504
9505 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9506
9507         * Makefile.in (READ_MD_H): New variable.
9508         (BUILD_RTL): Add build/read-md.o.
9509         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
9510         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
9511         (build/genattrtab.o, build/genconditions.o build/genemit.o)
9512         (build/genextract.o, build/genflags.o, build/genoutput.o)
9513         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
9514         (build/read-md.o): New rule.
9515         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
9516         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
9517         * coretypes.h: ...here.
9518         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
9519         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
9520         * genattr.c: Include read-md.h.
9521         * genattrtab.c: Likewise.
9522         * genconditions.c: Likewise.
9523         * genemit.c: Likewise.
9524         * genextract.c: Likewise.
9525         * genflags.c: Likewise.
9526         * genoutput.c: Likewise.
9527         * genpreds.c: Likewise.
9528         * genrecog.c: Likewise.
9529         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
9530         (join_c_conditions, print_c_condition, read_rtx_filename)
9531         (read_rtx_lineno): Move to read-md.h.
9532         * read-rtl.c: Include read-md.h.
9533         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
9534         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
9535         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
9536         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
9537         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
9538         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
9539         (read_braced_string, read_string): Move to read-md.c.
9540         (read_rtx): Move some initialization to init_md_reader and call
9541         init_md_reader here.
9542         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
9543         Move to read-md.h.
9544         * gensupport.c: Include read-md.h.
9545         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
9546         * read-md.h, read-md.c: New files.
9547
9548 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
9549
9550         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9551         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9552         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
9553         * config/moxie/moxie.c (moxie_function_value): Make static.
9554         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
9555         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9556
9557 2010-06-10  Martin Jambor  <mjambor@suse.cz>
9558
9559         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
9560         * dbgcnt.def (tree_sra): New counter.
9561         * tree-sra.c: Include dbgcnt.h.
9562         (gate_intra_sra): Check tree_sra debug counter.
9563
9564 2010-06-10  Martin Jambor  <mjambor@suse.cz>
9565
9566         PR tree-optimization/44258
9567         * tree-sra.c (build_access_subtree): Return false iff there is a
9568         partial overlap.
9569         (build_access_trees): Likewise.
9570         (analyze_all_variable_accesses): Disqualify candidates if
9571         build_access_trees returns true for them.
9572
9573 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
9574
9575         PR debug/41371
9576         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
9577         tail-recurse into canonical node.  Fast-forward over
9578         non-canonical VALUEs.
9579
9580 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
9581
9582         PR boostrap/44470
9583         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
9584         (*addsi_1_zext) <TYPE_LEA>: Likewise.
9585         (add lea splitter): Likewise.
9586         (add_zext lea splitter): Likewise.
9587
9588 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
9589
9590         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
9591
9592 2010-06-10  Jan Hubicka  <jh@suse.cz>
9593
9594         * df-problems.c (df_live_problem_data): Add live_bitmaps.
9595         (df_live_alloc): Initialize problem data and live_osbtacks.
9596         (df_live_finalize): Remove obstack, problem data; do not
9597         clear all bitmaps.
9598         (df_live_top_dump, df_live_bottom_dump): Do not dump old
9599         data when not allocated.
9600         (df_live_verify_solution_start): Do not allocate problem data.
9601         (df_live_verify_solution_end): Check if out is allocated.
9602         (struct df_md_problem_data): New structure.
9603         (df_md_alloc): Allocate problem data.
9604         (df_md_free): Free problem data; do not clear bitmaps.
9605
9606 2010-06-10  Jan Beulich  <jbeulich@novell.com>
9607
9608         PR bootstrap/37304
9609         * configure.ac: Replace $() with ${} when intending to expand
9610         variables rather than invoking commands.
9611         * configure: Re-generate.
9612
9613 2010-06-10  Jan Hubicka  <jh@suse.cz>
9614
9615         PR rtl-optimization/44460
9616         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
9617         TYPE_NEEDS_CONSTRUCTING sanity check.
9618
9619 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
9620
9621         * doc/include/fdl.texi: Move to GFDL version 1.3.
9622
9623         * doc/cpp.texi: Move to GFDL version 1.3.
9624         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
9625         * doc/gccint.texi: Move to GFDL version 1.3.
9626         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
9627         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
9628         * doc/invoke.texi: Move to GFDL version 1.3.
9629
9630 2010-06-09  Jan Hubicka  <jh@suse.cz>
9631
9632         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
9633         Break out from ...
9634         (propagate) ... here; swap the order.
9635
9636 2010-06-09  Jan Hubicka  <jh@suse.cz>
9637
9638         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
9639         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
9640         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
9641         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
9642
9643 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
9644
9645         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
9646         Do not the gather memory reference in the outer loop if the step
9647         is not a constant.
9648
9649 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
9650
9651         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
9652         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
9653         8 to 4.  Minor change of the related comments.
9654
9655 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
9656
9657         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
9658         the scev analysis when the variable is not used outside the loop
9659         in a close phi node: call compute_overall_effect_of_inner_loop.
9660
9661 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
9662
9663         * graphite-sese-to-poly.c (single_pred_cond): Renamed
9664         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
9665         (build_sese_conditions_before): Renamed call to single_pred_cond.
9666         (build_sese_conditions_after): Same.
9667
9668 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
9669
9670         * graphite-poly.h: Fix comments and indentation.
9671         * graphite-sese-to-poly.c: Same.
9672         (build_sese_conditions_before): Compute stmt and gbb only when needed.
9673         * tree-chrec.c: Fix comments and indentation.
9674         (tree-ssa-loop-niter.c): Same.
9675
9676 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
9677
9678         PR rtl-optimization/42461
9679         * dce.c (deletable_insn_p): Return true for const or pure calls again.
9680         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
9681
9682 2010-06-09  Jan Hubicka  <jh@suse.cz>
9683
9684         * bitmap.c (bitmap_and): Walk array forward.
9685         (bitmap_and_compl_into): Likewise.
9686         (bitmap_xor): Likewise.
9687         (bitmap_xor_into):  Likewise.
9688         (bitmap_equal_p): Likewise.
9689         (bitmap_intersect_p): Likewise.
9690         (bitmap_intersect_compl_p): Likewise.
9691         (bitmap_ior_and_into): Likewise.
9692         (bitmap_elt_copy): Likewise.
9693         (bitmap_and_compl): Likewise.
9694         (bitmap_elt_ior): Likewise.
9695
9696 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
9697
9698         * opts-common.c (prune_options): Ensure replacement argv array
9699         is correctly terminated by a NULL entry.
9700
9701 2010-06-09  Jan Hubicka  <jh@suse.cz>
9702
9703         * cgraph.h (varpool_first_static_initializer,
9704         varpool_next_static_initializer): Make checking only when
9705         checking enabled.
9706         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
9707         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
9708         gcc_assert to gcc_checking_assert.
9709         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
9710         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
9711         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
9712         op_iter_init_phiuse, op_iter_init_phidef,
9713         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
9714         gcc_checking_assert.
9715         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
9716         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
9717         partition_is_global, live_on_entry, live_on_exit,
9718         live_merge_and_clear): Likewise.
9719         * system.h (gcc_checking_assert): New macro.
9720         * gimple.h (set_bb_seq): Use gcc_checking_assert.
9721
9722 2010-06-09  Jason Merrill  <jason@redhat.com>
9723
9724         * Makefile.in (TAGS): Collect tags info from c-family.
9725
9726 2010-06-09  Jan Hubicka  <jh@suse.cz>
9727
9728         * gimple.h (gcc_gimple_checking_assert): New macro.
9729         (gimple_set_def_ops, gimple_set_use_ops,
9730         gimple_set_vuse, gimple_set_vdef,
9731         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
9732         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
9733         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
9734         gimple_asm_output_op, gimple_asm_output_op_ptr,
9735         gimple_asm_set_output_op, gimple_asm_clobber_op,
9736         gimple_asm_set_clobber_op, gimple_asm_label_op,
9737         gimple_asm_set_label_op, gimple_try_set_kind,
9738         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
9739         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
9740         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
9741         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
9742         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
9743         gimple_omp_for_set_initial, gimple_omp_for_final,
9744         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
9745         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
9746         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
9747         conditional with ENABLE_GIMPLE_CHECKING.
9748         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
9749
9750 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
9751
9752         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
9753         (get_computation_cost_at): Use it.
9754         (determine_use_iv_cost_condition): Likewise.
9755         (determine_iv_cost): Likewise.
9756
9757 2010-06-09  Richard Guenther  <rguenther@suse.de>
9758
9759         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
9760         replace constants.
9761
9762 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
9763
9764         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
9765
9766 2010-06-09  Martin Jambor  <mjambor@suse.cz>
9767
9768         PR tree-optimization/44423
9769         * tree-sra.c (dump_access): Dump also grp_assignment_read.
9770         (analyze_access_subtree): Pass negative allow_replacements to children
9771         if the current type is scalar.
9772
9773 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
9774
9775         PR testsuite/42843
9776         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
9777         * doc/plugins.texi (Plugin license check): Update information
9778         on type of plugin_is_GPL_compatible.
9779         * Makefile.in (PLUGINCC): Define as $(COMPILER).
9780         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
9781
9782 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
9783
9784         * config/arm/arm.c (thumb2_reorg): New function.
9785         (arm_reorg): Call it.
9786         * config/arm/thumb2.md (define_peephole2 for flag clobbering
9787         arithmetic operations): Delete.
9788
9789 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
9790
9791         PR target/44067
9792         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
9793         e500v2 target.
9794
9795 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
9796
9797         PR plugins/44459
9798         * gcc-plugin.h: Encapsulate all declarations in extern "C".
9799
9800 2010-06-08  Jan Hubicka  <jh@suse.cz>
9801
9802         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
9803         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
9804
9805 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
9806
9807         PR tree-optimization/39874
9808         PR middle-end/28685
9809         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
9810         Declare.
9811         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
9812         same_bool_result_p): New.
9813         (and_var_with_comparison, and_var_with_comparison_1,
9814         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
9815         (or_var_with_comparison, or_var_with_comparison_1,
9816         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
9817         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
9818         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
9819         of combine_comparisons.
9820         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
9821
9822 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
9823
9824         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9825         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9826         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
9827         pdp11_function_value_regno_p): New functions.
9828         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9829         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9830
9831 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
9832
9833         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
9834         Thumb-2 in the MINUS case.
9835
9836 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9837
9838         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
9839
9840         * doc/gty.texi (GTY Options): Document typed GC allocation and
9841         variable_size GTY option.
9842
9843         * ggc-internal.h: New.
9844
9845         * ggc.h: Update copyright year.
9846         (digit_string): Move to stringpool.c.
9847         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
9848         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
9849         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
9850         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
9851         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
9852         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
9853         (ggc_force_collect, ggc_get_size, ggc_statistics)
9854         (ggc_print_common_statistics): Move to ggc-internal.h.
9855         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
9856         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
9857         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
9858         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
9859         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
9860         (ggc_alloc_zone_pass_stat): Remove.
9861         (ggc_internal_alloc_stat, ggc_internal_alloc)
9862         (ggc_internal_cleared_alloc_stat): New.
9863         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
9864         (ggc_internal_vec_alloc_stat)
9865         (ggc_internal_cleared_vec_alloc_stat)
9866         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
9867         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
9868         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
9869         (ggc_cleared_alloc_ptr_array_two_args): New.
9870         (htab_create_ggc, splay_tree_new_ggc): Redefine.
9871         (ggc_splay_alloc): Change the type of the first argument to
9872         enum gt_types_enum.
9873         (ggc_alloc_string): Make macro.
9874         (ggc_alloc_string_stat): New.
9875         (ggc_strdup): Redefine.
9876         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
9877         (ggc_alloc_rtvec_sized): New.
9878         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
9879         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
9880         (ggc_internal_cleared_alloc_zone_stat)
9881         (ggc_internal_zone_alloc_stat)
9882         (ggc_internal_zone_cleared_alloc_stat)
9883         (ggc_internal_zone_vec_alloc_stat)
9884         (ggc_alloc_zone_rtx_def_stat)
9885         (ggc_alloc_zone_tree_node_stat)
9886         (ggc_alloc_zone_cleared_tree_node_stat)
9887         (ggc_alloc_cleared_gimple_statement_d_stat): New.
9888
9889         * ggc-common.c: Include ggc-internal.h.
9890         (ggc_internal_cleared_alloc_stat): Rename from
9891         ggc_alloc_cleared_stat.
9892         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
9893         (ggc_calloc): Remove.
9894         (ggc_cleared_alloc_htab_ignore_args): New.
9895         (ggc_cleared_alloc_ptr_array_two_args): New.
9896         (ggc_splay_alloc): Add obj_type parameter.
9897         (init_ggc_heuristics): Formatting fixes.
9898
9899         * ggc-none.c: Update copyright year.
9900         (ggc_alloc_stat): Rename to ggc_alloc_stat.
9901         (ggc_alloc_cleared_stat): Rename to
9902         ggc_internal_cleared_alloc_stat.
9903         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
9904
9905         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
9906         Remove references to ggc_alloc in comments.
9907         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
9908         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
9909         (new_ggc_zone, destroy_ggc_zone): Remove.
9910         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
9911
9912         * ggc-zone.c: Include ggc-internal.h.  Remove references to
9913         ggc_alloc in comments.
9914         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
9915         (ggc_internal_alloc_zone_pass_stat): New.
9916         (ggc_internal_cleared_alloc_zone_stat): New.
9917         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
9918         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
9919         (new_ggc_zone, destroy_ggc_zone): Remove.
9920
9921         * stringpool.c: Update copyright year.  Include ggc-internal.h
9922         (digit_vector): Make static.
9923         (digit_string): Moved from ggc.h.
9924         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
9925         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
9926
9927         * Makefile.in (GGC_INTERNAL_H): New.
9928         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
9929         $(GGC_INTERNAL_H) to dependencies.
9930
9931         * gentype.c: Update copyright year.
9932         (walk_type): Accept variable_size GTY option.
9933         (USED_BY_TYPED_GC_P): New macro.
9934         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
9935         whitespace at the end of strings.
9936         (get_type_specifier, variable_size_p): New functions.
9937         (alloc_quantity, alloc_zone): New enums.
9938         (write_typed_alloc_def): New function.
9939         (write_typed_struct_alloc_def): Likewise.
9940         (write_typed_typed_typedef_alloc_def): Likewise.
9941         (write_typed_alloc_defns): Likewise.
9942         (output_typename, write_splay_tree_allocator_def): Likewise.
9943         (write_splay_tree_allocators): Likewise.
9944         (main): Call write_typed_alloc_defns and
9945         write_splay_tree_allocators.
9946
9947         * lto-streamer.h (lto_file_decl_data_ptr): New.
9948
9949         * passes.c (order): Define using cgraph_node_ptr.
9950
9951         * strinpool.c (struct string_pool_data): Declare nested_ptr using
9952         ht_identifier_ptr.
9953
9954         * gimple.h (union gimple_statement_d): Likewise.
9955
9956         * rtl.h (struct rtx_def): Likewise.
9957         (struct rtvec_def): Likewise.
9958
9959         * tree.h (union tree_node): Likewise.
9960
9961         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
9962
9963         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
9964
9965         * tree-scalar-evolution.c (scev_initialize): Likewise.
9966
9967         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
9968
9969         * dwarf2asm.c (dw2_force_const_mem): Likewise.
9970
9971         * omp-low.c (lower_omp_critical): Likewise.
9972
9973         * bitmap.h (struct bitmap_head_def): Update comment to not
9974         reference ggc_alloc.
9975
9976         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
9977
9978         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
9979
9980         * ipa-prop.c (duplicate_ggc_array): Rename to
9981         duplicate_ipa_jump_func_array.  Use typed GC allocation.
9982         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
9983
9984         * gimple.c (gimple_alloc_stat): Use
9985         ggc_alloc_cleared_gimple_statement_d_stat.
9986
9987         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
9988
9989         * tree.c (make_node_stat): Use
9990         ggc_alloc_zone_cleared_tree_node_stat.
9991         (make_tree_vec_stat): Likewise.
9992         (build_vl_exp_stat): Likewise.
9993         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
9994         (make_tree_binfo_stat): Likewise.
9995         (tree_cons_stat): Likewise.
9996
9997         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
9998         (shallow_copy_rtx_stat): Likewise.
9999         (make_node_stat): Likewise.
10000
10001         * lto-symtab.c: Fix comment.
10002
10003         * tree-cfg.c (create_bb): Update comment to not reference
10004         ggc_alloc_cleared.
10005         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
10006
10007         * varpool.c (varpool_node): Use typed GC allocation.
10008         (varpool_extra_name_alias): Likewise.
10009
10010         * varasm.c (emutls_decl): Likewise.
10011         (get_unnamed_section): Likewise.
10012         (get_noswitch_section): Likewise.
10013         (get_section): Likewise.
10014         (get_block_for_section): Likewise.
10015         (build_constant_desc): Likewise.
10016         (create_constant_pool): Likewise.
10017         (force_const_mem): Likewise.
10018
10019         * tree.c (build_vl_exp_stat): Likewise.
10020         (build_real): Likewise.
10021         (build_string): Likewise.
10022         (decl_debug_expr_insert): Likewise.
10023         (decl_value_expr_insert): Likewise.
10024         (type_hash_add): Likewise.
10025         (build_omp_clause): Likewise.
10026
10027         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
10028
10029         * tree-ssa.c (init_tree_ssa): Likewise.
10030
10031         * tree-ssa-structalias.c (heapvar_insert): Likewise.
10032
10033         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
10034
10035         * tree-ssa-loop-niter.c (record_estimate): Likewise.
10036
10037         * tree-ssa-alias.c (get_ptr_info): Likewise.
10038
10039         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
10040
10041         * tree-phinodes.c (allocate_phi_node): Likewise.
10042
10043         * tree-iterator.c (tsi_link_before): Likewise.
10044         (tsi_link_after): Likewise.
10045
10046         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
10047
10048         * tree-dfa.c (create_var_ann): Likewise.
10049
10050         * tree-cfg.c (create_bb): Likewise.
10051
10052         * toplev.c (alloc_for_identifier_to_locale): Likewise.
10053         (general_init): Likewise.
10054
10055         * stringpool.c (stringpool_ggc_alloc): Likewise.
10056         (gt_pch_save_stringpool): Likewise.
10057
10058         * sese.c (if_region_set_false_region): Likewise.
10059
10060         * passes.c (do_per_function_toporder): Likewise.
10061
10062         * optabs.c (set_optab_libfunc): Likewise.
10063         (set_conv_libfunc): Likewise.
10064
10065         * lto-symtab.c (lto_symtab_register_decl): Likewise.
10066
10067         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
10068         (input_eh_region): Likewise.
10069         (input_eh_lp): Likewise.
10070         (make_new_block): Likewise.
10071         (unpack_ts_real_cst_value_fields): Likewise.
10072
10073         * lto-section-in.c (lto_new_in_decl_state): Likewise.
10074
10075         * lto-cgraph.c (input_node_opt_summary): Likewise.
10076
10077         * loop-init.c (loop_optimizer_init): Likewise.
10078
10079         * lambda.h (lambda_vector_new): Likewise.
10080
10081         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
10082
10083         * ira.c (update_equiv_regs): Likewise.
10084
10085         * ipa.c (cgraph_node_set_new): Likewise.
10086         (cgraph_node_set_add): Likewise.
10087         (varpool_node_set_new): Likewise.
10088         (varpool_node_set_add): Likewise.
10089
10090         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
10091         (duplicate_ipa_jump_func_array): Likewise.
10092         (ipa_read_node_info): Likewise.
10093
10094         * ipa-cp.c (ipcp_create_replace_map): Likewise.
10095
10096         * integrate.c (get_hard_reg_initial_val): Likewise.
10097
10098         * gimple.c (gimple_alloc_stat): Likewise.
10099         (gimple_build_omp_for): Likewise.
10100         (gimple_seq_alloc): Likewise.
10101         (gimple_copy): Likewise.
10102
10103         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
10104         (gsi_insert_after_without_update): Likewise.
10105
10106         * function.c (add_frame_space): Likewise.
10107         (insert_temp_slot_address): Likewise.
10108         (assign_stack_temp_for_type): Likewise.
10109         (allocate_struct_function): Likewise.
10110         (types_used_by_var_decl_insert): Likewise.
10111
10112         * except.c (init_eh_for_function): Likewise.
10113         (gen_eh_region): Likewise.
10114         (gen_eh_region_catch): Likewise.
10115         (gen_eh_landing_pad): Likewise.
10116         (add_call_site): Likewise.
10117
10118         * emit-rtl.c (get_mem_attrs): Likewise.
10119         (get_reg_attrs): Likewise.
10120         (start_sequence): Likewise.
10121         (init_emit): Likewise.
10122
10123         * dwarf2out.c (new_cfi): Likewise.
10124         (queue_reg_save): Likewise.
10125         (dwarf2out_frame_init): Likewise.
10126         (new_loc_descr): Likewise.
10127         (find_AT_string): Likewise.
10128         (new_die): Likewise.
10129         (add_var_loc_to_decl): Likewise.
10130         (clone_die): Likewise.
10131         (clone_as_declaration): Likewise.
10132         (break_out_comdat_types): Likewise.
10133         (new_loc_list): Likewise.
10134         (loc_descriptor): Likewise.
10135         (add_loc_descr_to_each): Likewise.
10136         (add_const_value_attribute): Likewise.
10137         (tree_add_const_value_attribute): Likewise.
10138         (add_comp_dir_attribute): Likewise.
10139         (add_name_and_src_coords_attributes): Likewise.
10140         (lookup_filename): Likewise.
10141         (store_vcall_insn): Likewise.
10142         (dwarf2out_init): Likewise.
10143
10144         * dbxout.c (dbxout_init): Likewise.
10145
10146         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10147
10148         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
10149
10150         * config/score/score7.c (score7_output_external): Likewise.
10151
10152         * config/score/score3.c (score3_output_external): Likewise.
10153
10154         * config/s390/s390.c (s390_init_machine_status): Likewise.
10155
10156         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
10157         (rs6000_init_machine_status): Likewise.
10158         (output_toc): Likewise.
10159
10160         * config/pa/pa.c (pa_init_machine_status): Likewise.
10161         (get_deferred_plabel): Likewise.
10162
10163         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
10164
10165         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
10166
10167         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
10168
10169         * config/mep/mep.c (mep_init_machine_status): Likewise.
10170         (mep_note_pragma_flag): Likewise.
10171
10172         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
10173
10174         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
10175
10176         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
10177
10178         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
10179         (i386_pe_maybe_record_exported_symbol): Likewise.
10180
10181         * config/i386/i386.c (get_dllimport_decl): Likewise.
10182         (ix86_init_machine_status): Likewise.
10183         (assign_386_stack_local): Likewise.
10184
10185         * config/frv/frv.c (frv_init_machine_status): Likewise.
10186
10187         * config/darwin.c (machopic_indirection_name): Likewise.
10188
10189         * config/cris/cris.c (cris_init_machine_status): Likewise.
10190
10191         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
10192
10193         * config/avr/avr.c (avr_init_machine_status): Likewise.
10194
10195         * config/arm/arm.c (arm_init_machine_status): Likewise.
10196
10197         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
10198         (alpha_need_linkage): Likewise.
10199         (alpha_use_linkage): Likewise.
10200
10201         * cgraph.c (cgraph_allocate_node): Likewise.
10202         (cgraph_create_edge_1): Likewise.
10203         (cgraph_create_indirect_edge): Likewise.
10204         (cgraph_add_asm_node): Likewise.
10205
10206         * cfgrtl.c (init_rtl_bb_info): Likewise.
10207
10208         * cfgloop.c (alloc_loop): Likewise.
10209         (rescan_loop_exit): Likewise.
10210
10211         * cfg.c (init_flow): Likewise.
10212         (alloc_block): Likewise.
10213         (unchecked_make_edge): Likewise.
10214
10215         * c-parser.c (c_parse_init): Likewise.
10216         (c_parse_file): Likewise.
10217
10218         * c-decl.c (bind): Likewise.
10219         (record_inline_static): Likewise.
10220         (push_scope): Likewise.
10221         (make_label): Likewise.
10222         (lookup_label_for_goto): Likewise.
10223         (finish_struct): Likewise.
10224         (finish_enum): Likewise.
10225         (c_push_function_context): Likewise.
10226
10227         * bitmap.c (bitmap_element_allocate): Likewise.
10228         (bitmap_gc_alloc_stat): Likewise.
10229
10230         * alias.c (record_alias_subset): Likewise.
10231         (init_alias_analysis): Likewise.
10232
10233 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
10234
10235         * fold-const.c (fold_comparison): Remove redundant parenthesis.
10236         * tree-inline.c (expand_call_inline): Pass translated return value of
10237         cgraph_inline_failed_string to diagnostic function.
10238
10239 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
10240             Shujing Zhao  <pearly.zhao@oracle.com>
10241
10242         PR c/37724
10243         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
10244         implicit bad conversions is initialization.
10245         (error_init): Use gmsgid instead of msgid for argument name and change
10246         the call for error.
10247         (pedwarn_init): Use gmsgid instead of msgid for argument name and
10248         change the call for pedwarn.
10249         (warning_init): Use gmsgid instead of msgid for argument name and
10250         change the call for warning.
10251
10252 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
10253
10254         * config/mips/mips-protos.h (mips_print_operand): Delete.
10255         (mips_print_operand_address): Delete.
10256         * config/mips/mips.h (mips_print_operand_punct): Delete.
10257         (PRINT_OPERAND): Delete.
10258         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10259         (PRINT_OPERAND_ADDRESS): Delete.
10260         * config/mips/mips.c (mips_print_operand_punct): Make static.
10261         (mips_print_operand_address): Make static.
10262         (mips_print_operand): Make static.  Call
10263         mips_print_operand_punct_valid_p.
10264         (mips_print_operand_punct_valid_p): New function.
10265         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10266         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10267
10268 2010-06-07  Jan Hubicka  <jh@suse.cz>
10269
10270         PR middle-end/44454
10271         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
10272         are allocated.
10273
10274 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
10275
10276         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
10277         name of RECORD.
10278
10279 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10280
10281         * doc/sourcebuild.texi (Effective-Target Keywords, Other
10282         attributes): Document gas.
10283
10284 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
10285
10286         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
10287         <TYPE_LEA>: Split instruction.
10288         <default>: Remove alternative 2 handling.
10289         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
10290         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
10291         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
10292
10293         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
10294         (ashift_zext lea splitter): Use DImode for multiplication.
10295
10296         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
10297         to generate addition.
10298
10299 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
10300
10301         * common.opt (fira-verbose): Use Var.
10302         (fpcc-struct-return): Use Init instead of VarExists.
10303         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
10304         toplev.c.
10305         * flags.h (flag_signed_char, flag_short_enums,
10306         flag_pcc_struct_return, flag_ira_verbose,
10307         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
10308         * toplev.c (flag_detailed_statistics, flag_signed_char,
10309         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
10310         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
10311         * toplev.h (flag_crossjumping, flag_if_conversion,
10312         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
10313         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
10314         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
10315         flag_cprop_registers, time_report, flag_ira_loop_pressure,
10316         flag_ira_coalesce, flag_ira_move_spills,
10317         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
10318
10319 2010-06-07  Jan Hubicka  <jh@suse.cz>
10320
10321         * df-core.c (df_analyze_problem): Do verification after allocation.
10322
10323         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
10324         (df_lr_alloc): Initialize problem data; move bitmaps to
10325         lr_bitmaps obstack.
10326         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
10327         (df_lr_verify_solution_start): Do not initialize problem data;
10328         allocate bitmaps in lr_bitmaps.
10329         (df_lr_verify_solution_end): Do not free problem data.
10330
10331 2010-06-07  Jan Hubicka  <jh@suse.cz>
10332
10333         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
10334         if caller is noreturn.
10335         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
10336         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
10337         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
10338         * ipa-pure-const.c (check_decl): Add IPA parameter.
10339         (state_from_flags): New function.
10340         (better_state, worse_state): New functions.
10341         (check_call): When in IPA mode, do not care about callees.
10342         (check_load, check_store): Update.
10343         (check_ipa_load, check_ipa_store): New.
10344         (check_stmt): When in IPA mode, use IPA checkers.
10345         (analyze_function): Use state_from_flags.
10346         (propagate): Check indirect edges and references.
10347
10348 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
10349
10350         PR rtl-optimization/44404
10351         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
10352         of count_occurrences to see if it's safe to modify mem_insn.
10353
10354 2010-06-07  Richard Guenther  <rguenther@suse.de>
10355
10356         * gimplify.c (gimplify_cleanup_point_expr): For empty body
10357         and EH-only cleanup drop the cleanup instead of inserting it
10358         unconditionally.
10359
10360 2010-06-07  Ira Rosen  <irar@il.ibm.com>
10361
10362         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
10363         documentation.
10364         * targhooks.c (default_builtin_vectorization_cost): New function.
10365         * targhooks.h (default_builtin_vectorization_cost): Declare.
10366         * target.h (enum vect_cost_for_stmt): Define.
10367         (builtin_vectorization_cost): Change argument and comment.
10368         * tree-vectorizer.h: Remove cost model macros.
10369         * tree-vect-loop.c: Include target.h.
10370         (vect_get_cost): New function.
10371         (vect_estimate_min_profitable_iters): Replace cost model macros with
10372         calls to vect_get_cost.
10373         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
10374         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
10375         default implementation.
10376         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
10377         calls to target hook builtin_vectorization_cost.
10378         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
10379         Likewise.
10380         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
10381         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
10382         implementation to return costs.
10383         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
10384         * config/spu/spu.h: Remove vectorizer cost model macros.
10385         * config/i386/i386.h: Likewise.
10386         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
10387         a call to target hook builtin_vectorization_cost.
10388
10389 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
10390
10391         PR target/44319
10392         * config/i386/i386.c (override_options): Turn zee pass on for level 2
10393         and above and defer till target is known.
10394         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
10395         turn off otherwise.
10396
10397 2010-05-25  Jan Hubicka  <jh@suse.cz>
10398
10399         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
10400         (df_compact_blocks): Likewise.
10401         * df.h (struct df): Turn hardware_regs_used,
10402         regular_block_artificial_uses, eh_block_artificial_uses,
10403         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
10404         bitmap_head.
10405         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
10406         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
10407         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
10408         df_scan_blocks, df_insn_delete, df_insn_rescan,
10409         df_insn_rescan_debug_internal, df_insn_rescan_all,
10410         df_process_deferred_rescans, df_process_deferred_rescans,
10411         df_notes_rescan, df_get_call_refs, df_get_call_refs,
10412         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
10413         df_record_entry_block_defs, df_record_exit_block_uses,
10414         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
10415         df_scan_verify): Update.
10416
10417 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
10418
10419         PR c++/44188
10420         * c-common.c (is_typedef_decl): Move this definition ...
10421         * tree.c (is_typedef_decl): ... here.
10422         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
10423         * c-common.h (is_typedef_decl): Move this declaration ...
10424         * tree.h (is_typedef_decl): ... here.
10425         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
10426         * dwarf2out.c (is_naming_typedef_decl): New function.
10427         (gen_tagged_type_die): Split out of ...
10428         (gen_type_die_with_usage): ... this function. When an anonymous
10429         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
10430         is emitted for the typedef.
10431         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
10432         anonymous tagged types.
10433
10434 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10435
10436         PR c/20000
10437         * c-decl.c (grokdeclarator): Delete warning.
10438
10439 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
10440
10441         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
10442         newly built CALL_EXPR.
10443         * tree-profile.c (tree_profiling): Don't profile functions produced
10444         for built-in stuff.
10445
10446 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
10447
10448         PR bootstrap/44427
10449         PR bootstrap/44428
10450         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
10451         endianness-independent.
10452
10453 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
10454
10455         * c-common.c: Move to c-family/.
10456         * c-common.def: Likewise.
10457         * c-common.h: Likewise.
10458         * c-cppbuiltin.c: Likewise.
10459         * c-dump.c: Likewise.
10460         * c-format.c: Likewise.
10461         * c-format.h : Likewise.
10462         * c-gimplify.c: Likewise.
10463         * c-lex.c: Likewise.
10464         * c-omp.c: Likewise.
10465         * c.opt: Likewise.
10466         * c-opts.c: Likewise.
10467         * c-pch.c: Likewise.
10468         * c-ppoutput.c: Likewise.
10469         * c-pragma.c: Likewise.
10470         * c-pragma.h: Likewise.
10471         * c-pretty-print.c: Likewise.
10472         * c-pretty-print.h: Likewise.
10473         * c-semantics.c: Likewise.
10474         * stub-objc.c: Likewise.
10475
10476         * gengtype.c (get_file_langdir): Special-case files in c-family/.
10477         (get_output_file_with_visibility): Fix name for c-common.h.
10478         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
10479
10480         * c-tree.h: Update include path for moved files.
10481         * c-lang.c: Likewise.
10482         * c-lang.h: Likewise.
10483         * c-parser.c: Likewise.
10484         * c-convert.c: Likewise.
10485         * c-decl.c: Likewise.
10486         * c-objc-common.c: Likewise.
10487         * configure.ac: Make sure c-family/ exists in the build directory.
10488         * configure: Regenerate.
10489         * Makefile.in: Update paths for moved files.  Regroup files per
10490         location and update dependencies.  Move generated_files down after
10491         ALL_GTFILES_H.
10492
10493         * config/spu/spu-c.c: Update paths for moved files.
10494         * config/mep/mep-pragma.c: Likewise.
10495         * config/darwin-c.c: Likewise.
10496         * config/i386/msformat-c.c: Likewise.
10497         * config/i386/i386-c.c: Likewise.
10498         * config/avr/avr-c.c: Likewise.
10499         * config/sol2-c.c: Likewise.
10500         * config/ia64/ia64-c.c: Likewise.
10501         * config/rs6000/rs6000-c.c: Likewise.
10502         * config/arm/arm.c: Likewise.
10503         * config/arm/arm-c.c: Likewise.
10504         * config/h8300/h8300.c: Likewise.
10505         * config/v850/v850-c.c: Likewise.
10506
10507         * config/t-darwin: Fix dependencies for moved files.
10508         * config/t-sol2: Fix dependencies for moved files.
10509         * config/mep/t-mep: Fix dependencies for moved files.
10510         * config/ia64/t-ia64: Fix dependencies for moved files.
10511         * config/rs6000/t-rs6000: Fix dependencies for moved files.
10512         * config/v850/t-v850: Fix dependencies for moved files.
10513         * config/v850/t-v850e: Fix dependencies for moved files.
10514
10515         * config/m32c/m32c-pragma.c
10516
10517         * po/exgettext: Look in c-family/ also.
10518
10519 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
10520
10521         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
10522         (mark_control_dependent_edges_necessary): Call it instead of marking
10523         the last statement manually.
10524         (propagate_necessity): Likewise.
10525
10526 2010-06-05  Jan Hubicka  <jh@suse.cz>
10527
10528         * basic-block.h (compute_dominance_frontiers): Updated.
10529         (compute_idf): Likewise.
10530
10531         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
10532         for dominance frontiers.
10533         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
10534         (insert_updated_phi_nodes_for): Likewise.
10535         (update_ssa): Likewise.
10536         * cfganal.c (compute_dominance_frontiers_1): Likewise.
10537         (compute_dominance_frontiers): Likewise.
10538         (compute_idf): Likewise.
10539         * df-problems.c (df_md_local_compute): Likewise.
10540
10541 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
10542
10543         * target.h (struct gcc_target): Add memory_move_cost field.
10544         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
10545         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
10546         * targhooks.c (default_memory_move_cost): New function.
10547         * targhooks.h (default_memory_move_cost): Declare function.
10548         * reload.h (memory_move_cost): Declare.
10549         (memory_move_secondary_cost): Change type of 'in' argument to bool.
10550         * reginfo.c (memory_move_cost): New function.
10551         (memory_move_secondary_cost): Change type of 'in' argument to bool.
10552         * ira.h (ira_memory_move_cost): Update comment.
10553         * ira.c (ira_memory_move_cost): Update comment.
10554         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
10555         with memory_move_cost.
10556         * postreload.c (reload_cse_simplify_set): (Ditto.).
10557         * reload1.c (choose_reload_regs): (Ditto.).
10558         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
10559         (MEMORY_MOVE_COST):  Revise documentation.
10560
10561         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
10562         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
10563         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
10564         type of 'in' argument to bool.
10565         (TARGET_MEMORY_MOVE_COST): Define.
10566
10567 2010-06-05  Jan Hubicka  <jh@suse.cz>
10568
10569         * ipa-pure-const.c (propagate): Fix typo in handling of functions
10570         that cannot return.  Be more careful when merging the results with
10571         previously known ones.
10572
10573 2010-06-05  Matthias Klose  <doko@ubuntu.com>
10574
10575         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
10576         function to add the -iplugindir option.
10577         (find_plugindir_spec_function): Add new declaration and function.
10578         (static_spec_func): Use it for "find-plugindir".
10579
10580 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
10581
10582         PR c++/44361
10583         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
10584         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
10585         statement expression.
10586
10587 2010-06-05  Jan Hubicka  <jh@suse.cz>
10588
10589         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
10590         (df_rd_problem_data): Convert sparse_invalidated_by_call,
10591         dense_invalidated_by_call to bitmap head.
10592         (df_rd_alloc, df_rd_bb_local_compute_process_def,
10593         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
10594         df_rd_start_dump, df_lr_verify_transfer_functions,
10595         df_live_verify_transfer_functions, df_chain_create_bb,
10596         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
10597         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
10598         df_simulate_one_insn_forwards, df_md_alloc,
10599         df_md_bb_local_compute_process_def,
10600         df_md_bb_local_compute_process_def, df_md_local_compute,
10601         df_md_transfer_function df_md_free): Update.
10602
10603 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
10604
10605         PR c/44322
10606         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
10607         target type for ADDR_EXPR; require no changes to qualifiers except
10608         for function types.
10609         * c-tree.h (c_build_type_variant): Remove.
10610
10611 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
10612
10613         * genautomata.c (get_excl_set): Do work per element, not per char.
10614         (check_presence_pattern_sets): Similar.
10615         (check_absence_pattern_sets): Similar.
10616
10617 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
10618
10619         * genautomata.c (curr_state_pass_num): Delete.
10620         (min_issue_delay_pass_states): Delete.
10621         (min_issue_delay): Delete.
10622         (initiate_min_issue_delay_pass_states): Delete.
10623         (output_min_issue_delay_table): Compute min_issue_delay_vect
10624         using a breadth-first search variant.
10625         (output_tables): Don't call initiate_min_issue_delay_pass_states.
10626
10627 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
10628
10629         PR boostrap/44421
10630         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
10631         (df_byte_lr_bb_local_compute): Likewise.
10632
10633 2010-06-03  Jason Merrill  <jason@redhat.com>
10634
10635         Implement noexcept operator (5.3.7)
10636         * c-common.c (c_common_reswords): Add noexcept.
10637         * c-common.h (enum rid): Add RID_NOEXCEPT.
10638
10639 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
10640
10641         * config/darwin-driver.c (darwin_default_min_version): Use
10642         GCC-specific formats in diagnostics.
10643         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
10644         diagnostics.
10645         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
10646         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
10647         eval_spec_function, handle_braces, process_brace_body, main,
10648         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
10649         getenv_spec_function, compare_version_strings,
10650         version_compare_spec_function): Use GCC-specific formats in
10651         diagnostics.
10652
10653 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
10654
10655         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
10656         that operand 0 and operand 1 are equal.
10657         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
10658         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
10659         and operand 1 are equal.
10660         <default>: Ditto.  Remove ??? comment.
10661         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
10662         and operand 1 are equal.
10663         <default>: Ditto.  Remove ??? comment.
10664         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
10665         are equal.
10666         (*add<mode>_4) <default>: Ditto.
10667         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
10668
10669 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
10670
10671         * config/i386/i386-protos.h (ix86_print_operand): Declare.
10672         * config/i386/i386.c (ix86_print_operand): Make non-static.
10673         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
10674         * output.h (output_operand): Declare.
10675         * final.c (output_operand): Make non-static.
10676
10677 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
10678
10679         PR rtl-optimization/44013
10680         * sched-deps.c (add_dependence_list_and_free): Don't free lists
10681         when processing debug insns.
10682
10683         PR debug/41371
10684         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
10685         recursing.  Check that recursion is bounded.  Rename inner var
10686         to avoid hiding incoming argument.
10687
10688 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
10689
10690         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
10691         operands[2] == 255.
10692         (*addqi_3): Ditto.
10693         (*addqi_4): Ditto.
10694         (*addqi_5): Ditto.
10695         (*addqi_ext_1_rex64): Ditto.
10696         (*addqi_ext_1): Ditto.
10697
10698         (*addqi_4): Check for incdec_operand in QImode.
10699
10700         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
10701         using SWI mode iterator.
10702         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
10703         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
10704         mode iterator.
10705         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
10706         using SWI mode iterator.
10707
10708 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10709
10710         PR c/25880
10711         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
10712         * c-format.c (gcc_diag_flag_specs): Add hash.
10713         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
10714         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
10715         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
10716         pp_c_cv_qualifiers. Handle qualifiers spelling here.
10717         (pp_c_type_qualifier_list): Call the function above.
10718         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
10719         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
10720         (WARN_FOR_QUALIFIERS): New macro.
10721         (convert_for_assignment): Use it.
10722
10723 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
10724
10725         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
10726
10727 2010-06-04  Jan Hubicka  <jh@suse.cz>
10728
10729         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
10730         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
10731         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
10732         DF_BYTE_LR_OUT): Update for embedded bitmaps.
10733         * fwprop.c (single_def_use_enter_block): Likewise.
10734         * ddg.c (create_ddg_dep_from_intra_loop_link,
10735         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
10736         * loop-iv.c (latch_dominating_def): Likewise.
10737         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
10738         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
10739         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
10740         df_rd_transfer_function, df_rd_top_dump,
10741         df_rd_bottom_dump): Update.
10742         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
10743         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
10744         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
10745         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
10746         df_lr_verify_solution_start, df_lr_verify_solution_end,
10747         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
10748         df_live_free_bb_info, df_live_alloc, df_live_reset,
10749         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
10750         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
10751         df_live_verify_solution_start, df_live_verify_solution_end,
10752         df_live_verify_transfer_functions, df_chain_create_bb,
10753         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
10754         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
10755         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
10756         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
10757         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
10758         df_byte_lr_transfer_function, df_byte_lr_top_dump,
10759         df_byte_lr_bottom_dump, df_create_unused_note,
10760         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
10761         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
10762         df_md_transfer_function, df_md_init, df_md_confluence_0,
10763         df_md_confluence_n,
10764         df_md_top_dump, df_md_bottom_dump): Update.
10765         (struct df_lr_problem_data): Embedd bitmap headers.
10766
10767 2010-06-04  Jan Hubicka  <jh@suse.cz>
10768
10769         * dce.c (dce_process_block): Do not re-scan already marked
10770         instructions.
10771
10772 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
10773
10774         PR rtl-optimization/39871
10775         PR rtl-optimization/40615
10776         PR rtl-optimization/42500
10777         PR rtl-optimization/42502
10778         * ira.c (init_reg_equiv_memory_loc: New function.
10779         (ira): Call it twice.
10780         * reload.h (calculate_elim_costs_all_insns): Declare.
10781         * ira-costs.c: Include "reload.h".
10782         (regno_equiv_gains): New static variable.
10783         (init_costs): Allocate it.
10784         (finish_costs): Free it.
10785         (ira_costs): Call calculate_elim_costs_all_insns.
10786         (find_costs_and_classes): Take estimated elimination costs
10787         into account.
10788         (ira_adjust_equiv_reg_cost): New function.
10789         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
10790         * reload1.c (init_eliminable_invariants, free_reg_equiv,
10791         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
10792         (elim_bb): New static variable.
10793         (reload): Move code out of here into init_eliminable_invariants and
10794         free_reg_equiv.  Call them.
10795         (calculate_elim_costs_all_insns): New function.
10796         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
10797         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
10798         but call note_reg_elim_costly if we turned a valid memory address
10799         into an invalid one.
10800         * Makefile.in (ira-costs.o): Depend on reload.h.
10801
10802 2010-06-04  Julian Brown  <julian@codesourcery.com>
10803
10804         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
10805         for pool ranges.
10806
10807 2010-06-04  Richard Guenther  <rguenther@suse.de>
10808
10809         PR lto/41584
10810         * cgraph.h (struct varpool_node): Add lto_file_data field.
10811         * lto-cgraph.c (input_varpool_node): Initialize it.
10812
10813 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
10814
10815         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
10816         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
10817         predicate in "type" attribute calculation.
10818         (*addsi_1_zext): Ditto.
10819         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
10820         (*addsi_2_zext): Ditto.
10821         (*add<mode>_3): Ditto.
10822         (*addsi_3_zext): Ditto.
10823         (*add<mode>_5): Ditto.
10824
10825 2010-06-03  Jan Hubicka  <jh@suse.cz>
10826
10827         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
10828         of bitmap_bit_p.
10829         * cfganal.c (compute_dominance_frontiers_1): Likewise.
10830
10831 2010-06-03  Jan Hubicka  <jh@suse.cz>
10832
10833         * df-problems.c (df_create_unused_note, df_note_bb_compute):
10834         micro-optimize the checks when to add new note.
10835
10836 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
10837
10838         * final.c (output_asm_insn): Call
10839         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
10840         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
10841         (output_address): Call targetm.asm_out.print_operand_address.
10842         Update comments.
10843         * target.h (struct gcc_target): Add print_operand,
10844         print_operand_address, and print_operand_punct_valid_p fields.
10845         * targhooks.h (default_print_operand): Declare.
10846         (default_print_operand_address): Declare.
10847         (default_print_operand_punct_valid_p): Declare.
10848         * targhooks.c (default_print_operand): Define.
10849         (default_print_operand_address): Define.
10850         (default_print_operand_punct_valid_p): Define.
10851         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
10852         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
10853         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
10854         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
10855         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
10856         * vmsdbgout.c (addr_const_to_string): Update comment.
10857         * config/i386/i386.c (print_operand): Rename to...
10858         (ix86_print_operand): ...this.  Make static.
10859         (print_operand_address): Rename to...
10860         (ix86_print_operand_address): ...this.  Make static.  Call
10861         ix86_print_operand instead of PRINT_OPERAND.
10862         (ix86_print_operand_punct_valid_p): New function.
10863         (TARGET_PRINT_OPERAND): Define.
10864         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10865         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10866         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
10867         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10868         (PRINT_OPERAND): Delete.
10869         (PRINT_OPERAND_ADDRESS): Delete.
10870         * config/i386/i386-protos.h (print_operand): Delete prototype.
10871         (print_operand_address): Delete prototype.
10872
10873 2010-06-03  Richard Guenther  <rguenther@suse.de>
10874
10875         PR tree-optimization/44403
10876         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
10877         Preserve pointer qualifiers.
10878         (vect_create_data_ref_ptr): Likewise.
10879
10880 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
10881
10882         PR c++/44294
10883         * defaults.h (MAX_FIXED_MODE_SIZE): New.
10884
10885         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
10886
10887 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
10888
10889         PR debug/44375
10890         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
10891         return false if merging the bbs would lead to goto_locus
10892         location being lost from the IL.
10893
10894 2010-06-03  Jan Hubicka  <jh@suse.cz>
10895             Jakub Jelinek  <jakub@redhat.com>
10896
10897         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
10898         set->regs[i] is NULL or has just one entry.
10899
10900 2010-06-03  Jan Hubicka  <jh@suse.cz>
10901
10902         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
10903         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
10904
10905 2010-06-03  Paul Brook  <paul@codesourcery.com>
10906
10907         * config/arm/arm.c (FL_TUNE): Define.
10908         (arm_default_cpu, arm_cpu_select): Remove.
10909         (all_cores): Populate core field.
10910         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
10911         (arm_find_cpu): New function.
10912         (arm_handle_option): Lookup cpu/architecture names.
10913         (arm_override_options): Cleanup mcpu/march/mtune handling.
10914         (arm_file_start): Ditto.
10915
10916 2010-06-03  Alan Modra  <amodra@gmail.com>
10917
10918         PR target/44169
10919         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
10920         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
10921         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
10922         (rs6000_emit_load_toc_table): Likewise.
10923
10924 2010-06-02  Jan Hubicka  <jh@suse.cz>
10925
10926         * passes.c (init_optimization_passes): Put ipa reference
10927         after ipa pure-const.
10928
10929 2010-06-02  Jan Hubicka  <jh@suse.cz>
10930
10931         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
10932         calls_read_all and calls_write_all.
10933         (get_reference_optimization_summary): Fix formatting.
10934         (is_proper_for_analysis): Check that decl is not readonly.
10935         (propagate_bits): Check CONST/PURE/noreturn flags.
10936         (ipa_init): Move all_module_statics to optimization_summary_obstack.
10937         (analyze_function): Ignore indirect edges.
10938         (copy_global_bitmap): For all module statics, do nothing.
10939         (generate_summary): Do not print calls_read_all/calls_write_all.
10940         (read_write_all_from_decl): Take node as argument; check
10941         cgraph_node_cannot_return.
10942         (propagate): Reorganize read_all/write_all computation;
10943         check indirect edges; check ecf flags; use all_module_statics
10944         in the results; do not free all_module_statics.
10945         (stream_out_bitmap): Handle all_module_statics.
10946         (ipa_reference_write_optimization_summary): Likewise; use
10947         varpool/cgraph encoders to get boundaries.
10948         (ipa_reference_read_optimization_summary): Read in all_module_statics;
10949         use it when possible.
10950
10951 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
10952
10953         PR target/44218
10954         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
10955         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
10956
10957         * doc/extend.texi (powerpc builtins): Document vec_recip,
10958         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
10959
10960         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
10961         (rs6000_emit_swrsqrt): Ditto.
10962         (rs6000_emit_swdivsf): Delete.
10963         (rs6000_emit_swdivdf): Ditto.
10964         (rs6000_emit_swrsqrtsf): Ditto.
10965
10966         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
10967         describe the reciprocal estimate support for each type.
10968         (recip_options): Map -mrecip=<opt> into option bits.
10969         (gen_2arg_fn_t): New typedef for binary rtx gen function.
10970         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
10971         reciprocal estimate instructions.
10972         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
10973         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
10974         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
10975         cost information if -mdebug=cost or -mdebug=reg.
10976         (rs6000_override_options): Set -mrecip-precision for power6, and
10977         power7 machines.  If -mvsx or -mdfp, enable various options that
10978         came in previous instruction set ISAs, unless the option was
10979         explicitly disabled by the command line option.  Parse
10980         -mrecip=<opt> options.
10981         (rs6000_builtin_vectorized_function): Add support for vectorizing
10982         the reciprocal estimate builtins and expansions.
10983         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
10984         (bdesc_2arg): Add reciprocal estimate builtins.
10985         (bdesc_1arg): Add reciprocal square root estimate builtins.
10986         (rs6000_expand_builtin): Rewrite to use a switch statement,
10987         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
10988         (rs6000_init_builtins): Create declarations for reciprocal
10989         estimate builtins.
10990         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
10991         sized, prefer traditional floating point registers, if integer
10992         vector types, prefer altivec registers.  Don't actually look at
10993         the memory address any more.
10994         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
10995         builtins.
10996         (rs6000_load_constant_and_splat): New helper function to load up
10997         the constant for reciprocal estimate instructions.
10998         (rs6000_emit_madd): New helper function for generating
10999         multiply/add type instructions, based on the current switches.
11000         (rs6000_emit_msub): Ditto.
11001         (rs6000_emit_mnsub): Ditto.
11002         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
11003         replace a divide with a reciprocal estimate and fixup, adding
11004         support for machines with high precision and vectors.
11005         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
11006         low precision machines.
11007         (rs6000_emit_swdiv): New common function to be called to replace a
11008         division with reciprocal estimate and fixup.
11009         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
11010         for double and vector types.  Add support for high precision machines.
11011
11012         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
11013         the reciprocal estimate instructions can be generated.
11014         (TARGET_FRE): Ditto.
11015         (TARGET_FRSQRTES): Ditto.
11016         (TARGET_FRSQRTE): Ditto.
11017         (RS6000_RECIP_*): New macros for reciprocal estimate support.
11018
11019         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
11020         square root estimate on vectors.
11021         (re<mode>2): New insn for reciprocal division estimate on vectors.
11022
11023         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
11024         New builtin.
11025         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
11026         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
11027         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
11028         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
11029         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
11030         (RS6000_BUILTIN_RSQRT): Ditto.
11031         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
11032         floating point builtin.
11033
11034         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
11035         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
11036         __RECIP_PRECISION__ based on the command line switches.
11037         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
11038
11039         * config/rs6000/rs6000.opt (-mrecip): Document add support for
11040         replacing division instructions with reciprocal estimate and fixup.
11041         (-mrecip=<opt>): New option.
11042         (-mrecip-precision): Ditto.
11043
11044         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
11045         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
11046         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
11047         precision scalar.
11048
11049         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
11050         (UNSPEC_VREFP): Ditto.
11051         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
11052         conterparts with regard to support of -mno-fused-madd and -ffast-math.
11053         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
11054         reciprocal estimate instructions to be generated.
11055         (altivec_vrefp): Ditto.
11056
11057         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
11058         estimate support.
11059         (rreg): New mode attribute for reciprocal estimate support.
11060         (recip<mode>3): New insn for division using reciprocal estimate
11061         and fixup builtins.
11062         (divide define_split): New define_split to convert floating point
11063         division to use reciprocal estimate if the user used the
11064         appropriate options and the split is run when we can add new
11065         pseudo registers for the fixup.
11066         (rsqrt<mode>2): New insn for reciprocal square root support.
11067         (recipsf3): Move into recip<mode>3.
11068         (recipdf3): Ditto.
11069         (fres): Use TARGET_FRES.
11070         (rsqrtsf2): Move into rsqrt<mode>2.
11071         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
11072         (copysignsf3): Add support for VSX.
11073         (fred): Use TARGET_FRE.
11074         (fred_fpr): Ditto.
11075         (rsqrtdf_internal1): New function for frsqrte instruciton.
11076
11077         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
11078         (vec_rsqrt): Ditto.
11079
11080 2010-06-03  Richard Guenther  <rguenther@suse.de>
11081
11082         PR middle-end/44291
11083         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
11084         (set_user_assembler_libfunc): Likewise.
11085
11086 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
11087
11088         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
11089         defaults.h.
11090         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
11091         to defaults.h
11092         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
11093         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
11094         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
11095         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
11096         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
11097         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
11098         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
11099         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
11100         * defaults.h: Updated for above mentioned changes.
11101
11102 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
11103
11104         * c-common.c: Remove header include of tm_p.h.
11105         * Makefile.in (c-common.o): Remove TM_P_H dependency.
11106
11107 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
11108
11109         * tree.h (struct tree_decl_map): New type.
11110         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
11111         (tree_decl_map_hash): New prototype.
11112         (debug_expr_for_decl, value_expr_for_decl): Change into
11113         tree_decl_map hashtab from tree_map.
11114         (init_ttree): Adjust initialization.
11115         (tree_decl_map_hash): New function.
11116         (decl_debug_expr_lookup, decl_debug_expr_insert,
11117         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
11118
11119 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11120
11121         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
11122         linker emulations.
11123         * configure: Regenerate.
11124         * config.in: Regenerate.
11125
11126         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
11127         (X86_64_EMULATION): Define.
11128         (TARGET_LD_EMULATION): Use them.
11129
11130         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
11131         (SPARC64_EMULATION): Define.
11132         (LINK_ARCH_SPEC): Use them.
11133
11134 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
11135
11136         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
11137         smallest_mode_for_size for computing the precision types of new
11138         graphite IVs.  Do not call lang_hooks.types.type_for_size.
11139
11140 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
11141
11142         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
11143         information.
11144         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
11145
11146 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
11147
11148         PR middle-end/44363
11149         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
11150         return false instead.
11151
11152 2010-06-02  Jan Hubicka  <jh@suse.cz>
11153
11154         PR middle-end/44295
11155         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
11156         create new cgraph node to check callee.
11157
11158 2010-06-02  Richard Guenther  <rguenther@suse.de>
11159
11160         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
11161
11162 2010-06-02  Richard Guenther  <rguenther@suse.de>
11163
11164         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
11165         (lto_wrapper_cleanup): ... this.  Do not exit.
11166         (fatal): Adjust.  Exit here.
11167         (fatal_perror): Likewise.
11168         (fatal_signal): New function.
11169         (main): Set up signal handlers to cleanup temporary files.
11170         * Makefile.in (lto-wrapper.o): Adjust dependencies.
11171
11172 2010-06-02  Richard Guenther  <rguenther@suse.de>
11173
11174         PR tree-optimization/44377
11175         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
11176
11177 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11178
11179         * config/s390/2097.md (z10_fhex): Remove insn reservation.
11180         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
11181         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
11182         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
11183         instruction.
11184         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
11185
11186 2010-06-02  Jan Hubicka  <jh@suse.cz>
11187
11188         * bitmap.c (bitmap_descriptor): Add search_iter.
11189         (bitmap_find_bit): Increment it.
11190         (print_statistics): Print it.
11191
11192 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
11193
11194         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
11195         instead of gimple_build_call_vec.  Delete unnecessary local variable.
11196
11197 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
11198
11199         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
11200         change from yesterday.
11201
11202 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
11203
11204         * c-ada-spec.c: Clean up redundant includes.
11205
11206 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
11207
11208         * gimplify.c: Do not include except.h and optabs.h.
11209         (gimplify_body): Do not initialize RTL profiling.
11210         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
11211         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
11212         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
11213         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
11214         langhooks.h.
11215
11216         * tree-pretty-print.h: Include pretty-print.h.
11217         * gimple-pretty-print.h: Include pretty-print.h.
11218
11219         * tree-pretty-print.c: Do not include diagnostic.h.
11220         * tree-vrp.c: Likewise.
11221         * tree-tailcall.c: Likewise
11222         * tree-scalar-evolution.c: Likewise
11223         * tree-ssa-dse.c: Likewise
11224         * tree-chrec.c: Likewise
11225         * tree-ssa-sccvn.c: Likewise
11226         * tree-ssa-copyrename.c: Likewise
11227         * tree-nomudflap.c: Likewise
11228         * tree-call-cdce.c: Likewise
11229         * tree-stdarg.c: Likewise
11230         * tree-ssa-math-opts.c: Likewise
11231         * tree-nrv.c: Likewise
11232         * tree-ssa-sink.c: Likewise
11233         * tree-browser.c: Likewise
11234         * tree-ssa-loop-ivcanon.c: Likewise
11235         * tree-ssa-loop.c: Likewise
11236         * tree-parloops.c: Likewise
11237         * tree-ssa-address.c: Likewise
11238         * tree-ssa-ifcombine.c: Likewise
11239         * tree-if-conv.c: Likewise
11240         * tree-data-ref.c: Likewise
11241         * tree-affine.c: Likewise
11242         * tree-ssa-phiopt.c: Likewise
11243         * tree-ssa-coalesce.c: Likewise
11244         * tree-ssa-pre.c: Likewise
11245         * tree-ssa-live.c: Likewise
11246         * tree-predcom.c: Likewise
11247         * tree-ssa-forwprop.c: Likewise
11248         * tree-ssa-dce.c: Likewise
11249         * tree-ssa-ter.c: Likewise
11250         * tree-ssa-loop-prefetch.c: Likewise
11251         * tree-optimize.c: Likewise
11252         * tree-ssa-phiprop.c: Likewise
11253         * tree-object-size.c: Likewise
11254         * tree-outof-ssa.c: Likewise
11255         * tree-ssa-structalias.c: Likewise
11256         * tree-switch-conversion.c: Likewise
11257         * tree-ssa-reassoc.c: Likewise
11258         * tree-ssa-operands.c: Likewise
11259         * tree-vectorizer.c: Likewise
11260         * tree-vect-data-refs.c: Likewise
11261         * tree-vect-generic.c: Likewise
11262         * tree-vect-stmts.c: Likewise
11263         * tree-vect-patterns.c: Likewise
11264         * tree-vect-slp.c: Likewise
11265         * tree-vect-loop.c: Likewise
11266         * tree-ssa-loop-ivopts.c: Likewise
11267         * tree-ssa-loop-im.c: Likewise
11268         * tree-ssa-loop-niter.c: Likewise
11269         * tree-ssa-loop-unswitch.c: Likewise
11270         * tree-ssa-loop-manip.c: Likewise
11271         * tree-ssa-loop-ch.c: Likewise
11272         * tree-dump.c: Likewise
11273         * tree-complex.c: Likewise
11274
11275         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
11276         * tree-ssa-uninit.c: Likewise
11277         * tree-ssa-threadupdate.c: Likewise
11278         * tree-ssa-uncprop.c: Likewise
11279         * tree-ssa-ccp.c: Likewise
11280         * tree-ssa-dom.c: Likewise
11281         * tree-ssa-propagate.c: Likewise
11282         * tree-ssa-alias.c: Likewise
11283         * tree-dfa.c: Likewise
11284         * tree-cfgcleanup.c: Likewise
11285         * tree-sra.c: Likewise
11286         * tree-ssa-copy.c: Likewise
11287         * tree-ssa.c: Likewise
11288         * tree-profile.c: Likewise
11289         * tree-cfg.c: Likewise
11290         * tree-ssa-threadedge.c: Likewise
11291         * tree-vect-loop-manip.c: Likewise
11292
11293         * tree-inline.c: Do not include diagnostic.h and expr.h.
11294         Include rtl.h.
11295         (copy_decl_for_dup_finish): Do not use NULL_RTX.
11296
11297         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
11298         * tree-loop-distribution.c: Likewise.
11299
11300 2010-06-01  Jan Hubicka  <jh@suse.cz>
11301
11302         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
11303
11304 2010-06-01  Jan Hubicka  <jh@suse.cz>
11305
11306         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
11307         remove return value.
11308         (split_bbs_on_noreturn_calls) .... here.
11309         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
11310         * tree-flow.h (fixup_noreturn_call): New.
11311
11312 2010-06-01  Jan Hubicka  <jh@suse.cz>
11313
11314         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
11315
11316 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
11317
11318         * tree.h (build_nt_call_list): Delete.
11319         * tree.c (build_nt_call_list): Delete.
11320
11321 2010-06-01  Jan Hubicka  <jh@suse.cz>
11322
11323         * fwprop.c: Make emit-rtl.h include last.
11324         * rtlanal.c: Include emit-rtl.h.
11325         * genautomata.c: Output emit-rtl include into insn-automata.c
11326         * df-scan.c: Include emit-rtl.h.
11327         * haifa-sched.c: Indlude emit-rtl.h.
11328         * mode-switching.c: Indlude emit-rtl.h.
11329         * graph.c: Indlude emit-rtl.h.
11330         * sel-sched.c: Include emit-rtl.h.
11331         * sel-sched-ir.c: Include emit-rtl.h.
11332         * ira-build.c: Include emit-rtl.h.
11333         * emit-rtl.c (first_insn, last_insn): Remove defines.
11334         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
11335         Move to emit-rtl.h.
11336         (set_new_first_and_last_insn, get_last_insn_anywhere,
11337         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
11338         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
11339         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
11340         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
11341         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
11342         Use accessor functions.
11343         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
11344          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
11345         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
11346         mem_expr_equal_p): Move here from rtl.h.
11347         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
11348         Move here from emit-rtl.c; make inline.
11349         * cfglayout.h: Include emit-rtl.h.
11350         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
11351          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
11352         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
11353         mem_expr_equal_p, get_insns, set_first-insn,
11354         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
11355         * reg-stack.c: Include emit-rtl.h.
11356         * dce.c: Likewise.
11357
11358 2010-06-01  Jan Hubicka  <jh@suse.cz>
11359
11360         * cgraph.h (tree_function_versioning): Update prototype.
11361         (cgraph_function_versioning): Update prototype.
11362         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
11363         bitmap.
11364         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
11365         (cgraph_materialize_clone, save_inline_function_body): Update use of
11366         tree_function_versioning.
11367         * tree-inline.c (copy_bb): Look for previous copied block to link
11368         after; fix debug output.
11369         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
11370         (copy_body): Likewise.
11371         (expand_call_inline): Update use of copy_body.
11372         (tree_function_versioning): Update use of copy body; accept
11373         blocks_to_copy and new_entry.
11374
11375 2010-06-01  Jan Hubicka  <jh@suse.cz>
11376
11377         * gegenrtl.c: Remove unnecesary prototypes.
11378         (gendecl): Remove.
11379         (gendef): Produce static inline.
11380         (gencode): Remove.
11381         (main): Do not decode parameters; generate header only.
11382         * Makefile.in (genrtl.c): Remove.
11383
11384 2010-06-01  Jan Hubicka  <jh@suse.cz>
11385
11386         * tree-switch-conversion.c (build_one_array): Make it readonly.
11387
11388 2010-06-01  Richard Guenther  <rguenther@suse.de>
11389
11390         * optabs.c (init_optabs): Guard all accesses to reinit.
11391         * ipa-pure-const.c (propagate): Fix another typo.
11392         * opts.c (common_handle_option): Split assignment to bool.
11393         * c-opts.c (c_common_handle_option): Likewise.
11394
11395 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
11396             Matthew Gingell  <gingell@adacore.com>
11397
11398         * doc/invoke.texi: Mention -fdump-ada-spec.
11399         * tree-dump.c (dump_files): Add ada-spec.
11400         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
11401         * tree-pass.h (tree_dump_index): Add TDI_ada.
11402         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
11403         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
11404         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
11405         * c-decl.c: Include c-ada-spec.h.
11406         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
11407         functions.
11408         (c_write_global_declarations): Add handling of -fdump-ada-spec.
11409         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
11410         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
11411         * c-ada-spec.h, c-ada-spec.c: New files.
11412
11413 2010-06-01  Richard Guenther  <rguenther@suse.de>
11414
11415         PR lto/43853
11416         * ipa-pure-const.c (get_function_state): Hand back varying state
11417         if we do not have one.
11418         (has_function_state): New function.
11419         (duplicate_node_data): Adjust.
11420         (remove_node_data): Likewise.
11421         (pure_const_write_summary): Likewise.
11422         (propagate): Likewise.  Fix typo.
11423
11424 2010-06-01  Jan Hubicka  <jh@suse.cz>
11425
11426         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
11427         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
11428         (execute_all_ipa_transforms): Do not play with the states.
11429
11430 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
11431
11432         * config/arm/t-linux-androideabi: New.
11433         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
11434
11435 2010-06-01  Jan Hubicka  <jh@suse.cz>
11436
11437         * tree-inline.c (estimate_num_insns): For stdarg functions look
11438         into call statement to count cost of argument passing.
11439
11440 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
11441
11442         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
11443         argument for fprintf.
11444         (ix86_output_addr_diff_elt): Likewise.
11445         (x86_function_profiler): Likewise.
11446         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
11447         (LPREFIX): Likewise.
11448         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
11449
11450 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
11451
11452         PR target/44338
11453         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
11454         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
11455         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
11456         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
11457         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
11458         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
11459         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
11460         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
11461         TARGET_FUSED_MADD.
11462
11463 2010-05-31  Jan Hubicka  <jh@suse.cz>
11464
11465         * tree.h (tree_range_check_failed): Declare noreturn.
11466
11467 2010-05-31  Jan Hubicka  <jh@suse.cz>
11468
11469         * gimple.c (gimple_call_builtin_p): New function.
11470         * gimple.h (gimple_call_builtin_p): Declare.
11471         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
11472         to exit.
11473         (execute_warn_function_return): BUILT_IN_RETURN is return.
11474         (split_critical_edges): Return edges are not critical.
11475         (is_ctrl_altering_stmt): Builtin_in_return is altering.
11476         (gimple_verify_flow_info): Handle built_in_return.
11477         (execute_warn_function_return): Handle built_in_return.
11478         * ipa-pure-const.c (check_call): Ignore builtin_return.
11479
11480 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
11481
11482         PR middle-end/44337
11483         * expr.c (expand_assignment): Don't store anything for out-of-bounds
11484         array accesses with non-MEM.
11485
11486         PR tree-optimization/44182
11487         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
11488         newly needs to end a bb is followed by debug stmts, instead return
11489         true from the function at the end.
11490         (maybe_move_debug_stmts_to_successors): New function.
11491         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
11492
11493 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
11494
11495         PR target/44161
11496         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
11497
11498 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
11499
11500         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
11501         for nested functions in non-optimized compilation.
11502
11503 2010-05-31  Richard Guenther  <rguenther@suse.de>
11504
11505         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
11506
11507 2010-05-30  Jan Hubicka  <jh@suse.cz>
11508
11509         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
11510
11511 2010-05-30  Richard Guenther  <rguenther@suse.de>
11512
11513         PR lto/42975
11514         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
11515         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
11516         no longer needed.
11517
11518 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
11519
11520         * config/darwin.c (output_objc_section_asm_op): Add comment.
11521         (name_needs_quotes): Add '_' to list of valid comment chars.
11522         (machopic_output_function_base_name): Remove unneeded quotes.
11523         (darwin_encode_section_info): Adjust asm whitespace.
11524         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
11525         (ASM_OUTPUT_LOCAL): Ditto.
11526         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
11527         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
11528         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
11529
11530 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
11531
11532         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
11533         RS6000_OUTPUT_BASENAME unconditionally.
11534         (rs6000_output_function_epilogue): Likewise.
11535
11536 2010-05-30  Jan Hubicka  <jh@suse.cz>
11537
11538         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
11539         nodes.
11540
11541 2010-05-30  Richard Guenther  <rguenther@suse.de>
11542
11543         * tree-cfg.c (verify_gimple_assign_single): Implement
11544         verification for COND_EXPR rhs.
11545
11546 2010-05-30  Jan Hubicka  <jh@suse.cz>
11547
11548         * cgraph.h (cgraph_dump_file): Declare.
11549         * cgraphunit.c (cgraph_dump_file): Export.
11550         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
11551
11552 2010-05-30  Jan Hubicka  <jh@suse.cz>
11553
11554         * dwarf2out.c (reference_to_unused,
11555         premark_types_used_by_global_vars_helper): Avoid creation of new
11556         varpool nodes.
11557
11558 2010-05-30  Jan Hubicka  <jh@suse.cz>
11559
11560         * cgraph.h (cgraph_node_cannot_return,
11561         cgraph_edge_cannot_lead_to_return): New functions.
11562         * cgraph.c (cgraph_node_cannot_return,
11563         cgraph_edge_cannot_lead_to_return): Use them.
11564         * ipa-pure-const.c (pure_const_names): New static var.
11565         (check_call): Handle calls not leading to return.
11566         (pure_const_read_summary): Dump info read.
11567         (propagate): Dump info about propagation process; ignore side effects
11568         of functions not leading to exit; fix handling of pure functions.
11569
11570 2010-05-30  Jan Hubicka  <jh@suse.cz>
11571
11572         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
11573         for tail call epilogues.
11574
11575 2010-05-30  Jan Hubicka  <jh@suse.cz>
11576
11577         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
11578         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
11579         dump files.
11580
11581 2010-05-29  Jan Hubicka  <jh@suse.cz>
11582
11583         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
11584         node; remove references in node we no longer keep in cgrpah but need
11585         body of.
11586
11587 2010-05-29  Jan Hubicka  <jh@suse.cz>
11588
11589         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
11590
11591 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11592
11593         PR target/44165
11594         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
11595
11596 2010-05-29  Jan Hubicka  <jh@suse.cz>
11597
11598         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
11599         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
11600         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
11601         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
11602         debug_names_replaced_by, debug_update_ssa): Likewise.
11603         * sbitmap.c (debug_sbitmap): Likewise.
11604         * genrecog.c (debug_decision, debug_decision_list): Likewise.
11605         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
11606         debug_tree_chain): Likewise.
11607         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
11608         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
11609         * optabs.c (debug_optab_libfuncs): Likewise.
11610         (verify_loop_closed_ssa): Likewise.
11611         * value-prof.c (verify_histograms): Likewise.
11612         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
11613         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
11614         * cfghooks.c (verify_flow_info): Likewise.
11615         * fold-const.c (debug_fold_checksum): Likewise.
11616         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
11617         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
11618         Likewise.
11619         * omega.c (debug_omega_problem): Likewise.
11620         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
11621         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
11622         * dominance.c (verify_dominators, debug_dominance_info,
11623         debug_dominance_tree): Likewise.
11624         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
11625         * df_regno_debug, df_ref_debug,
11626         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
11627         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
11628         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
11629         * sel-sched.c (debug_state): Likewise.
11630         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
11631         Likewise.
11632         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
11633         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
11634         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
11635         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
11636         Likewise.
11637         * c-pretty-print.c (debug_c_tree): Likewise.
11638         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
11639         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
11640         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
11641         * ebitmap.c (debug_ebitmap): Likewise.
11642         * function.c (debug_find_var_in_block_tree): Likewise.
11643         * print-rtl.c (debug_rtx): Likewise.
11644         (debug_rtx_count): Likewise.
11645         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
11646         * stor-layout.c (debug_rli): Likewise.
11647         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
11648         * tree-data-ref.c (debug_data_references,
11649         debug_data_dependence_relations, debug_data_reference,
11650         debug_data_dependence_relation, debug_rdg_vertex,
11651         debug_rdg_component, debug_rdg): Likewise.
11652         * tree-affine.c (debug_aff): Likewise.
11653         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
11654         Likewise.
11655         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
11656         * emit-rtl.c (verify_rtl_sharing): Likewise.
11657         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
11658         debug_value_expressions): Likewise.
11659         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
11660         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
11661         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
11662         * cfglayout.c (verify_insn_chain): Likewise.
11663         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
11664         debug_clast_stmt, debug_generated_program): Likewise.
11665         * ggc-page.c (debug_print_page_list): Likewise.
11666         * tree-ssa-ter.c (debug_ter): Likewise.
11667         * graphite-dependences.c (debug_pddr): Likewise.
11668         * sched-deps.c (debug_ds): Likewise.
11669         * tree-ssa.c (verify_ssa): Likewise.
11670         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
11671         debug_scattering_functions, debug_iteration_domains, debug_pdr,
11672         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
11673         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
11674         * tree-inline.c (debug_find_tree): Likewise.
11675         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
11676         debug_ppl_powerset_matrix): Likewise.
11677         * var-tracking.c (debug_dv): Likewise.
11678         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
11679         * cfgloop.c (verify_loop_structure): Likewise.
11680         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
11681         * c-common.c (verify_sequence_points): Likewise.
11682         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
11683         debug_candidates, debug_rgn_dependencies): Likewise.
11684         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
11685         * debug_constraint_graph, debug_solution_for_var,
11686         debug_sa_points_to_info): Likewise.
11687         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
11688         Likewie.
11689         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
11690         debug_loops, debug_loop, debug_loop_num): Likewise.
11691         * passes.c (debug_pass): Likewise.
11692         (dump_properties): Likewise; add cfglayout property.
11693         (debug_properties): Likewise.
11694         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
11695         * varpool.c (debug_varpool): Likewise.
11696         * regcprop.c (debug_value_data): Likewise.
11697         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
11698         debug_immediate_uses_for): Likewise.
11699
11700 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
11701
11702         PR bootstrap/44315
11703         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
11704         Filter out insn-flags.h.
11705
11706 2010-05-29  Jan Hubicka  <jh@suse.cz>
11707
11708         * cgraph.h (struct varpool_node_set_def,
11709         struct cgraph_node_set_def): Remove unused AUX pointer.
11710         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
11711         VEC_empty macro.
11712
11713 2010-05-29  Jan Hubicka  <jh@suse.cz>
11714
11715         PR middle-end/44324
11716         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
11717
11718 2010-05-29  Richard Guenther  <rguenther@suse.de>
11719
11720         * lto-streamer.c (cached_bp): New global variable.
11721         (bitpack_create): Return the cached bitpack, if available.
11722         (bitpack_delete): Clear and cache the bitpack, if appropriate.
11723         (bp_pack_value): Remove redundant asserts.
11724
11725 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
11726
11727         PR middle-end/44306
11728         * tree-if-conv.c (is_true_predicate): New.
11729         (is_predicated): Use is_true_predicate.
11730         (add_to_predicate_list): Same.  Do not use unshare_expr.
11731         (add_to_dst_predicate_list): Same.
11732
11733 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
11734
11735         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
11736         field on edges.
11737         (predicate_bbs): Same.
11738         (clean_predicate_lists): Same.
11739         (find_phi_replacement_condition): Do not AND the predicate from
11740         edge->aux.
11741
11742 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
11743
11744         PR bootstrap/44315
11745         * Makefile.in (build/gencondmd.o): Add a missing `\'.
11746
11747 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11748
11749         PR target/44261
11750         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
11751         (negdf2): Adjust expander pattern and use negdf2_slow.
11752         (negsf2): Likewise.
11753
11754 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
11755
11756         * basic-block.h (struct control_flow_graph): Move last_label_uid field
11757         up.
11758         * df.h (struct df_base_ref): Move regno field up.
11759         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
11760         * expr.h (struct separate_ops): Move location field up.
11761         * optabs.h (struct optab_d): Move libcall_basename field down.
11762         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
11763         * config/i386/i386.h (struct machine_function): Convert call_abi field
11764         into a bitfield.  Move cfa field to the end of the structure.
11765
11766 2010-05-29  Jan Hubicka  <jh@suse.cz>
11767
11768         * varpool.c (varpool_get_node): Fix lookup.
11769
11770 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
11771
11772         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
11773         RTL specific prototypes with #ifdef RTX_CODE.
11774         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
11775         * config/spu/t-spu-elf: Fix dependencies.
11776
11777         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
11778
11779 2010-05-29  Mike Stump  <mikestump@comcast.net>
11780
11781         PR bootstrap/44315
11782         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
11783         TM_H when building to avoid dependency loops.
11784
11785 2010-05-29  Jan Hubicka  <jh@suse.cz>
11786
11787         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
11788         refs and body; not the whole node for masters of materialized clones.
11789
11790 2010-05-29  Mike Stump  <mikestump@comcast.net>
11791
11792         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
11793
11794 2010-05-29  Jan Hubicka  <jh@suse.cz>
11795
11796         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
11797         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
11798         use of clone_function_name.
11799         * cgraph.h (cgraph_create_virtual_clone,
11800         cgraph_function_versioning): update prototypes.
11801         (clone_function_name): Declare.
11802         * ipa-cp.c (ipcp_insert_stage): Update call of
11803         cgraph_create_virtual_clone.
11804         * omp-low.c (create_omp_child_function_name): Use
11805         cgraph_create_virtual_clone.
11806         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
11807         (cgraph_function_versioning): Take SUFFIX argument; produce new name
11808         and make decl local.
11809
11810 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
11811
11812         * vec.h: Include statistics.h
11813         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
11814         with VEC_H.
11815
11816 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
11817
11818         * c-lex.c: Do not include c-tree.h.
11819         * c-pretty-print.c: Likewise.
11820         * c-opts.c: Likewise.
11821         * c-gimplify.c: Likewise.
11822         * c-common.c: Likewise.
11823         * c-dump.c: Likewise.  Include c-common.h.
11824
11825 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
11826
11827         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
11828         before including diagnostic-core.h.
11829         (c_cpp_error): New prototype moved from c-tree.h.
11830         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
11831         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
11832         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
11833         (c_cpp_error): Prototype moved to c-common.h.
11834         * Makefile.in: Update dependency for C_COMMON_H.
11835
11836 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
11837
11838         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
11839         * c-common.c (c_register_addr_space): Remove here.
11840         * c-decl.c (c_register_addr_space): Re-add here.
11841
11842 2010-05-28  Mike Stump  <mikestump@comcast.net>
11843
11844         * config/darwin-c.c: Remove c-tree.h include.
11845
11846 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
11847
11848         * gcc.c: Include diagnostic.h.
11849         (error_count): Remove.  All users changed to use errorcount.
11850         (programname): Remove.  All users changed to use progname.
11851         (fancy_abort, internal_error, fatal_error, error, warning, inform,
11852         fnotice): Remove.
11853         (execute): Don't include "Internal error" and bug reporting
11854         information in argument of internal_error call.
11855         (process_command): Don't increment error_count after calling
11856         perror_with_name.
11857         (input_filename): Rename to gcc_input_filename.  All users
11858         changed.
11859         (main): Call diagnostic_initialize.  Register delete_temp_files
11860         with atexit.  Use seen_error to test for errors.
11861         * gcc.h: Include diagnostic-core.h.
11862         (fatal_error, error, warning): Remove.
11863         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
11864         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
11865         (gcc.o): Update dependencies.
11866
11867 2010-05-28  Jeff Law  <law@redhat.com>
11868
11869         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
11870         functions.
11871         * ira.h (ira_bad_reload_regno): Declare
11872         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
11873
11874         * ira-color.c (update_curr_costs): Free updated hard reg costs.
11875         (ira_reassign_conflict_allocnos): Remove bogus asserts.
11876         (allocno_reload_assign): Likewise.
11877
11878 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
11879
11880         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
11881         build1_stat.
11882
11883 2010-05-28  Richard Guenther  <rguenther@suse.de>
11884
11885         PR lto/44312
11886         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
11887         Stream fixed-point constants mode.
11888         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
11889         and TYPE_PRECISION.
11890         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
11891         Stream fixed-point constants mode.
11892         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
11893         and TYPE_PRECISION.
11894
11895 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
11896
11897         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
11898         only place it was called from.
11899         (number_of_latch_executions): Do not return chrec_dont_know when the
11900         may_be_zero is a runtime condition: instead, return a COND_EXPR
11901         including the may_be_zero condition.
11902         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
11903         of nb_iterations.
11904         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
11905         COND_EXPRs.
11906
11907 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
11908
11909         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
11910         generate COND_EXPRs for degenerate_phi_result.
11911
11912 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
11913
11914         PR middle-end/44293
11915         * tree-if-conv.c (if_convertible_loop_p): Check the
11916         if-convertibility of phi nodes in non predicated BBs.
11917
11918 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
11919
11920         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
11921
11922 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
11923
11924         PR driver/15303
11925         * gcc.c (inform, warning, inform): New functions.
11926         (fatal_ice): Rename to internal_error; change cmsgid parameter to
11927         gmsgid.  All callers changed.
11928         (notice): Rename to fnotice; add parameter fp.  All callers changed.
11929         (fatal_error): Rename to fatal_signal.  All users changed.
11930         (fatal): Rename to fatal_error; change cmsgid parameter to
11931         gmsgid.  All callers changed.
11932         (process_command): Use warning instead of error for warnings.
11933         (end_going_arg): Don't use _() around argument of error.
11934         (do_spec_1): Use inform for message from %n specs.  Use warning
11935         instead of error for warnings.
11936         (main): Use inform for comparison messages.  Use warning for
11937         message about unused linker input.
11938         (error): Increment error_count.  Print "error: ".
11939         * gcc.h (fatal): Change to fatal_error.
11940         (warning): Declare.
11941         * config/darwin-driver.c (darwin_default_min_version): Use warning
11942         instead of fprintf for warnings.
11943         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
11944
11945 2010-05-28  Julian Brown  <julian@codesourcery.com>
11946
11947         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
11948         (*thumb2_addsi3_compare0_scratch): New.
11949         * config/arm/constraints.md (Pv): New.
11950         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
11951         for ARM mode only.
11952         (*addsi3_compare0_scratch): Likewise.
11953
11954 2010-05-28  Jan Hubicka  <jh@suse.cz>
11955
11956         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
11957         check.
11958         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
11959         only on local statics.
11960
11961 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
11962
11963         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
11964
11965 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
11966
11967         PR bootstrap/44314
11968         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
11969         (OPTION_GLIBC): Define.
11970
11971 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
11972
11973         PR debug/41048
11974         * dwarf2out.c (double_int_type_size_in_bits): New function.
11975         (round_up_to_align): Change first argument and return value to
11976         double_int.
11977         (field_byte_offset): Work internally on double_ints.
11978
11979         PR target/43636
11980         * builtins.c (expand_movstr): Use a temporary pseudo instead
11981         of target even when target is not NULL and not const0_rtx, but
11982         fails movstr predicate.
11983         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
11984
11985 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
11986
11987         * final.c (rest_of_clean_state): Use %m in errors instead of
11988         strerror (errno).
11989         * gengtype.c (read_input_list, close_output_files): Use xstrerror
11990         instead of strerror.
11991         * toplev.c (process_options): Use %m in errors instead of strerror
11992         (errno).
11993         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
11994         (errno).
11995
11996 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
11997
11998         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
11999         (ix86_canonical_va_list_type): Make static.  Add declaration.
12000         (ix86_enum_va_list): Make static.  Reindent.
12001         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
12002         (ix86_canonical_va_list_type): Ditto.
12003         (ix86_enum_va_list): Ditto.
12004
12005 2010-05-28  Richard Guenther  <rguenther@suse.de>
12006
12007         * lto-wrapper.c (run_gcc): With -save-temps generate a
12008         user-visible ltrans filename.  Fixup ltrans unit numbering.
12009
12010 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
12011
12012         * c-common.c (c_common_nodes_and_builtins): Replace use
12013         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
12014         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
12015         to ix86_enum_va_list.
12016         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
12017         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
12018         (TARGET_ENUM_VA_LIST_P): Add hook description.
12019         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
12020         * target.h (gcc_target): Add enum_va_list hook.
12021
12022         PR bootstrap/44299
12023         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
12024         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
12025         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
12026
12027 2010-05-28  Alan Modra  <amodra@gmail.com>
12028
12029         PR target/44266
12030         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
12031         emit_library_call machinery to set up __tls_get_addr calls.
12032
12033 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12034
12035         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
12036
12037 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
12038
12039         Revert fix for PR c++/44188
12040         * c-common.c (is_typedef_decl): Revert the moving of  this
12041         definition ...
12042         * tree.c (is_typedef_decl): ... here.
12043         (typdef_variant_p): Revert the moving of this  definition
12044         here from gcc/cp/tree.c.
12045         * c-common.h (is_typedef_decl): Revert the moving of this
12046         declaration ...
12047         * tree.h (is_typedef_decl): ... here.
12048         (typedef_variant_p): Revert the moving of this  declaration here
12049         from gcc/cp/cp-tree.h
12050         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
12051         (gen_tagged_type_die): Revert the splitting out of ...
12052         (gen_type_die_with_usage): ... this function. Revert the anonymous
12053         tagged type handling.
12054         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
12055         typedefs naming anonymous tagged types.
12056
12057 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
12058
12059         * config/rs6000/rs6000-modes.def (PSImode): Delete.
12060
12061 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
12062
12063         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
12064         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
12065         throughout.
12066         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
12067         "xer" to "ca".
12068         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
12069         XER_REGS to CA_REGS throughout.
12070         * config/rs6000/rs6000.h: Same.
12071         (ADDITIONAL_REGISTER_NAMES): Add "xer".
12072         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
12073         that mode_iterator "P" is the size for arithmetic carries as well.
12074         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
12075
12076 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
12077
12078         PR bootstrap/44255
12079         * combine.c (struct rtx_subst_pair): Define unconditionally.
12080         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
12081         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
12082         Call make_compound_operation on pair->to.
12083         (propagate_for_debug): Don't call make_compound_operation here.
12084         Always use simplify_replace_fn_rtx.
12085
12086 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
12087
12088         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
12089         * config/xtensa/xtensa.c (override_options): Check
12090           TARGET_FORCE_NO_PIC and set flag_pic.
12091         * config/xtensa/xtensa.opt: Document -mforce-no-pic
12092
12093 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
12094
12095         PR bootstrap/44299
12096         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
12097         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
12098
12099 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
12100
12101         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
12102         toplev.h.
12103         * diagnostic.c: Don't include toplev.h.
12104         (progname): Define.  Moved from toplev.c.
12105         (seen_error): New function.
12106         * diagnostic.h: Include diagnostic-core.h.
12107         (diagnostic_t, emit_diagnostic): Don't declare here.
12108         * toplev.c (progname): Move to toplev.c.
12109         (emit_debug_global_declarations, compile_file, finalize,
12110         do_compile, toplev_main): Use seen_error.
12111         * toplev.h: Include diagnostic-core.h.
12112         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
12113         internal_error, warning, warning_at, error, error_n, error_at,
12114         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
12115         verbatim, fnotice, progname): Move to diagnostic-core.h.
12116         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
12117         (expand_builtin_expect): Use seen_error.
12118         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
12119         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
12120         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
12121         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
12122         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
12123         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
12124         errorcount for errors.
12125         * c-opts.c (c_common_finish): Use seen_error.
12126         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
12127         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
12128         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
12129         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
12130         (get_coverage_counts): Use seen_error.
12131         * dwarf2out.c (dwarf2out_finish): Use seen_error.
12132         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
12133         gimplify_body): Use seen_error.
12134         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
12135         * ipa-pure-const.c (gate_pure_const): Use seen_error.
12136         * ipa-reference.c (gate_reference): Use seen_error.
12137         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
12138         * lambda-code.c: Include diagnostic-core.h instead of
12139         diagnostic.h.
12140         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
12141         * lto-compress.c: Include diagnostic-core.h instead of
12142         diagnostic.h.
12143         * lto-section-in.c: Include diagnostic-core.h instead of
12144         diagnostic.h.
12145         * lto-streamer-out.c: Include diagnostic-core.h instead of
12146         diagnostic.h.
12147         * lto-streamer.c: Include diagnostic-core.h instead of
12148         diagnostic.h.
12149         (gate_lto_out): Use seen_error.
12150         * matrix-reorg.c: Include diagnostic-core.h instead of
12151         diagnostic.h.
12152         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
12153         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
12154         (gate_expand_omp, lower_omp_1): Use seen_error.
12155         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
12156         (rest_of_decl_compilation, rest_of_type_compilation,
12157         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
12158         * tree-cfg.c (label_to_block_fn): Use seen_error.
12159         * tree-inline.c (optimize_inline_calls): Use seen_error.
12160         * tree-mudflap.c (mudflap_finish_file): Use
12161         seen_error.
12162         * tree-optimize.c (gate_all_optimizations,
12163         gate_all_early_local_passes, gate_all_early_optimizations): Use
12164         seen_error.
12165         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
12166         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
12167         (varpool_remove_unreferenced_decls,
12168         varpool_assemble_pending_decls): Use seen_error.
12169         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
12170         (TOPLEV_H, DIAGNOSTIC_H): Update.
12171         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
12172         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
12173         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
12174         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
12175         coverage.o, lambda-code.o): Update dependencies.
12176
12177 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
12178
12179         PR c++/44188
12180         * c-common.c (is_typedef_decl): Move this definition ...
12181         * tree.c (is_typedef_decl): ... here.
12182         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
12183         * c-common.h (is_typedef_decl): Move this declaration ...
12184         * tree.h (is_typedef_decl): ... here.
12185         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
12186         * dwarf2out.c (is_naming_typedef_decl): New function.
12187         (gen_tagged_type_die): Split out of ...
12188         (gen_type_die_with_usage): ... this function. When an anonymous
12189         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
12190         is emitted for the typedef.
12191         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
12192         anonymous tagged types.
12193
12194 2010-05-27  Jason Merrill  <jason@redhat.com>
12195
12196         * print-tree.c (debug_vec_tree): New fn.
12197         (print_vec_tree): New fn.
12198         * tree.h: Declare them.
12199         * gdbinit.in (pvt): New command.
12200
12201         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
12202
12203         * gdbinit.in (pdd): New command.
12204
12205 2010-05-27  Jan Hubicka  <jh@suse.cz>
12206
12207         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
12208         (update_caller_keys): Return early if there are no callers;
12209         only update fibheap when decresing the key.
12210         (update_callee_keys): Avoid recursion.
12211         (decide_inlining_of_small_functions): When badness does not match;
12212         re-insert into fibheap.
12213
12214 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
12215
12216         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
12217         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
12218         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
12219         (ALL_HOST_OBJS): Now a union of the above two.
12220         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
12221         all files in ALL_HOST_FRONTEND_OBJS.
12222         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
12223
12224         * c-common.c: Pretend to be a backend file by undefining
12225         IN_GCC_FRONTEND (still need rtl.h here).
12226
12227 2010-05-27  Jan Hubicka  <jh@suse.cz>
12228
12229         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
12230         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
12231
12232 2010-05-27  Jan Hubicka  <jh@suse.cz>
12233
12234         * sched-ebb.c: Rename struct deps to struct deps_desc.
12235         * ddg.c: Likewise.
12236         * sel-sched-ir.c: Likewise.
12237         * sched-deps.c: Likewise.
12238         * sched-int.h: Likewise.
12239         * sched-rgn.c: Likewise.
12240
12241 2010-05-27  Jon Beniston  <jon@beniston.com>
12242
12243         PR 43726
12244         * config/lm32/lm32.h: Remove definition of
12245         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
12246
12247 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
12248
12249         PR lto/44230
12250         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
12251
12252 2010-05-27  Richard Guenther  <rguenther@suse.de>
12253
12254         PR tree-optimization/44284
12255         * tree-vect-stmts.c (vectorizable_assignment): Handle
12256         sign-changing conversions as simple copy.
12257
12258 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12259
12260         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
12261         Bionic C library.
12262         (__gthread_active_p): Check for pthread_create if compiling against
12263         Bionic C library.
12264
12265 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12266
12267         Support compilation for Android platform.  Reimplement -mandroid.
12268
12269         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
12270         (*android*): Set ANDROID_DEFAULT.
12271         (arm*-*-linux*): Include linux-android.h.
12272         (arm*-*-eabi*): Don't include previous -mandroid implementation.
12273         * config/arm/eabi.h: Remove, move Android-specific parts ...
12274         * config/linux-android.h: ... here.  New file.
12275         * config/arm/eabi.opt: Rename to ...
12276         * config/linux-android.opt: ... this.
12277         (mandroid): Allow -mno-android option.  Initialize based on
12278         ANDROID_DEFAULT.
12279         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
12280         Move logic to corresponding LINUX_TARGET_* macros.
12281         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
12282         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
12283         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
12284         Android definitions.
12285         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
12286         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
12287         Document.
12288
12289 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12290
12291         Add support for Bionic C library
12292
12293         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
12294         macro.
12295         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
12296         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
12297
12298         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
12299         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
12300         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
12301         to support multiple C libraries.  Handle Bionic.
12302         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
12303         (BIONIC_DYNAMIC_LINKER64): Define.
12304         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
12305         Update.
12306         (TARGET_HAS_SINCOS): Enable for Bionic.
12307
12308         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
12309         the last option specified on command line take effect.
12310         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
12311         (mbionic): New.
12312         (mglibc, muclibc): Update.
12313
12314         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
12315         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
12316         DEFAULT_LIBC.
12317
12318         * doc/invoke.texi (-mglibc, -muclibc): Update.
12319         (-mbionic): Document.
12320
12321 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12322
12323         * c-common.h (c_register_addr_space): Add prototype.
12324         (ADDR_SPACE_KEYWORD): Remove.
12325         * c-common.c (c_register_addr_space): New function.
12326         (c_addr_space_name): Reimplement.
12327         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
12328
12329         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
12330         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
12331
12332         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
12333         Remove TARGET_ADDR_SPACE_KEYWORDS.
12334
12335 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
12336
12337         * input.c: New file.
12338         * input.h (main_input_filename): Move declaration to toplev.h.
12339         * toplev.c (input_location, line_table): Move to input.c
12340         * toplev.h (main_input_filename): Move declaration from input.h.
12341         * tree.c (expand_location): Move to input.c.
12342         * Makefile.in (OBJS-common): Add input.o.
12343         (input.o): Add dependencies.
12344
12345 2010-05-27  Richard Guenther  <rguenther@suse.de>
12346
12347         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
12348         for non-existant files.
12349         (fork_execute): Mark args_name file as deleted.
12350
12351 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
12352
12353         PR bootstrp/44287
12354         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
12355         (narrow_signed_type): Likewise.
12356
12357 2010-05-26  Jan Hubicka  <jh@suse.cz>
12358
12359         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
12360         edge only when checking is enabled; check using former_clone_of;
12361         check inline clones too.
12362         (cgraph_materialize_clone): Record former_clone_of pointer.
12363         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
12364         combining redirections; dump args_to_skip bitmap
12365         (cgraph_materialize_all_clones): Do no redirection here.
12366         * ipa-inline.c (inline_transform): Do redirection here.
12367         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
12368         cheking only).
12369
12370 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12371
12372         * config/avr/avr-c.c: Do not include regs.h.
12373         Include cpplib.h for cpp_define and tree.h for c-common.h.
12374         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
12375         * config/avr/t-avr: Fix dependencies for avr-c.o.
12376
12377 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12378
12379         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
12380         string instead of SYMBOL_REF rtx.
12381         * rtl.h (set_stack_check_libfunc): Move prototype from here...
12382         * libfuncs.h: ...to here.  Adjust for explow.c change.
12383
12384 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
12385
12386         * pretty-print.c: Don't include ggc.h.
12387         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
12388         (identifier_to_locale): Use them for allocation.
12389         * pretty-print.h (identifier_to_locale_alloc,
12390         identifier_to_locale_free): Declare.
12391         * toplev.c (alloc_for_identifier_to_locale): New.
12392         (general_init): Set identifier_to_locale_alloc and
12393         identifier_to_locale_free.
12394         * Makefile.in (pretty-print.o): Update dependencies.
12395
12396 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
12397
12398         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
12399         pointer types if they have different alignment or mode.
12400
12401 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
12402
12403         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
12404         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12405         * config/sparc/sparc-protos.h (function_value): Remove declaration.
12406         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
12407         sparc_function_value_regno_p): New functions.
12408         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12409         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12410         (function_value): Rename to...
12411         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
12412         argument to 'outgoing'.
12413         (function_arg_record_value, function_arg_union_value,
12414         function_arg_vector_value): Update comment.
12415
12416 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
12417
12418         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
12419         (fde_needed_for_eh_p): New predicate.
12420         (output_call_frame_info): Use it throughout to decide whether FDEs
12421         are needed for EH purpose.
12422         (dwarf2out_begin_prologue): Reorder assignments.
12423
12424 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12425
12426         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
12427         special case loop->header.
12428         (is_predicated): New.
12429         (if_convertible_loop_p): Call it.
12430
12431 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12432
12433         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
12434         iterator in parameter.  Do not generate code during the analysis.
12435         (tree_if_convert_cond_stmt): Removed.
12436         (tree_if_convert_stmt): Removed.
12437         (predicate_bbs): New.
12438         (if_convertible_loop_p): Call predicate_bbs.
12439         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
12440         now contains all the analysis part.
12441
12442 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12443
12444         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
12445         statements in the analysis part.
12446         (tree_if_convert_stmt): Update comment.
12447         (remove_conditions_and_labels): New.
12448         (combine_blocks): Call remove_conditions_and_labels.
12449         (tree_if_conversion): Update comment.
12450
12451 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12452
12453         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
12454         than 2 predecessors or more than 2 successors.
12455
12456 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12457
12458         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
12459         of loops in which the data dependence analysis fails.
12460
12461 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12462
12463         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
12464         CDI_POST_DOMINATORS.
12465         (tree_if_conversion): Same.
12466
12467 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12468
12469         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
12470
12471 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12472
12473         * tree-if-conv.c: Update copyright years.  Fix comments.
12474         Fix indentation.
12475
12476 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
12477
12478         * builtin-types.def (BT_INT128): New primitive type.
12479         (BT_UINT128): Likewise.
12480         * c-common.c (c_common_r): Add __int128 keyword.
12481         (c_common_type_for_size): Handle __int128.
12482         (c_common_type_for_mode): Likewise.
12483         (c_common_signed_or_unsigned_type): Likewise.
12484         (c_common_nodes_and_builtins): Add builtin type
12485         if target supports 128-bit integer scalar.
12486         * c-common.h (enum rid): Add RID_INT128.
12487         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
12488         if target supports 128-bit integer scalar.
12489         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
12490         (finish_declspecs): Likewise.
12491         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
12492         (c_token_starts_declspecs): Likewise.
12493         (c_parser_declspecs): Likewise.
12494         (c_parser_attributes): Likewise.
12495         (c_parser_objc_selector): Likewise.
12496         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
12497         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
12498         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
12499         * tree.c (make_or_reuse_type): Likewise.
12500         (make_unsigned_type): Likewise.
12501         (build_common_tree_nodes_2): Likewise.
12502         * tree.h (enum integer_type_kind): Add itk_int128 and
12503         itk_unsigned_int128.
12504         (int128_integer_type_node): New define.
12505         (int128_unsigned_type_node): New define.
12506         * doc/extend.texi: Add documentation about __int128 type.
12507
12508 2010-05-26  Richard Guenther  <rguenther@suse.de>
12509
12510         * tree-ssa-sccvn.c (copy_nary): Adjust.
12511         (copy_phis): Rename to ...
12512         (copy_phi): ... this.  Adjust.
12513         (copy_references): Rename to ...
12514         (copy_reference): ... this.  Adjust.
12515         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
12516         result into the valid table.
12517
12518 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12519
12520         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
12521         insn-config.h, insn-codes.h, recog.h, and optabs.h.
12522
12523 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12524
12525         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
12526
12527 2010-05-26  Richard Guenther  <rguenther@suse.de>
12528
12529         * opts.c (common_handle_option): Handle OPT_Ofast.
12530
12531 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
12532
12533         * diagnostic.c: Don't include opts.h.
12534         (permissive_error_option): Define.
12535         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
12536         for classify_diagnostic.  Don't use memset for
12537         classify_diagnostic.  Initialize new and recently added fields.
12538         (diagnostic_classify_diagnostic): Use context->n_opts instead of
12539         N_OPTS.
12540         (diagnostic_report_diagnostic): Pass context parameter to
12541         diagnostic_report_warnings_p.  Use option_enabled and option_name
12542         hooks from context.
12543         (emit_diagnostic): Use permissive_error_option.
12544         (permerror): Likewise.
12545         * diagnostic.h: Don't include options.h.
12546         (struct diagnostic_context): Add n_opts, opt_permissive,
12547         inhibit_warnings, warn_system_headers, option_enabled and
12548         option_name fields.  Change classify_diagnostic to a pointer.
12549         * opts-diagnostic.h: New file.
12550         * opts.c: Include opts-diagnostic.h.
12551         (common_handle_option): Set global_dc fields for -Wfatal-errors,
12552         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
12553         (option_name): New function.
12554         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
12555         (c_common_handle_option): Set global_dc->permissive for
12556         -fpermissive.
12557         * c-common.c (c_cpp_error): Save and restore
12558         global_dc->warn_system_headers, not variable warn_system_headers.
12559         * toplev.c: Include opts-diagnostic.h.
12560         (general_init): Update call to diagnostic_initialize.  Set
12561         global_dc->show_column, global_dc->option_enabled and
12562         global_dc->option_name.
12563         (process_options): Don't set global_dc fields here.
12564         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
12565         (diagnostic.o, opts.o, toplev.o): Update dependencies.
12566
12567 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
12568
12569         * config/picochip/picochip.md (movsi): Split a movsi from a
12570         const after reload.
12571
12572 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12573
12574         * ggc-zone.c: Update copyright year.
12575         (poison_region): Mark memory for Valgrind as undefined before
12576         memset () call and inaccessible afterwards.
12577         (ggc_pch_total_size): Change type of i to int.
12578
12579 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12580
12581         * ggc-common.c (ggc_free_overhead): Allow empty slot.
12582
12583 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12584
12585         * ggc-common.c: Update copyright year.
12586         (ggc_rlimit_bound): Remove prototype.  Compile only if
12587         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
12588         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
12589         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
12590         (ggc_min_heapsize_heuristic): Likewise.
12591
12592 2010-05-26  Richard Guenther  <rguenther@suse.de>
12593
12594         PR rtl-optimization/44164
12595         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
12596         no-common access-path disambiguation.
12597         (indirect_ref_may_alias_decl_p): Adjust.
12598         (indirect_refs_may_alias_p): Likewise.
12599         (refs_may_alias_p_1): Likewise.
12600
12601 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12602
12603         * c-typeck.c: Do not include expr.h.
12604
12605 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12606
12607         * rtl.h (decl_default_tls_model): Move prototype from here...
12608         * output.h: ...to here.
12609         * c-decl.c: Do not include rtl.h.
12610         * c-pragma.c: Likewise.
12611         * c-parser.c: Likewise.
12612         * c-gimplify.c: Likewise.  And also not hard-reg-set.
12613         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
12614         FIXME note for it.  Add a FIXME note for expr.h.
12615         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
12616         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
12617         defined.
12618
12619 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
12620
12621         PR target/44199
12622         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
12623         or total_size is larger than red zone size for non-V4 ABI, emit a
12624         stack_tie resp. frame_tie insn before stack pointer restore.
12625         * config/rs6000/rs6000.md (frame_tie): New insn.
12626
12627 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
12628
12629         * function.h (struct function): Add can_throw_non_call_exceptions bit.
12630         * lto-streamer-in.c (input_function): Stream it in.
12631         * lto-streamer-out.c (output_function): Stream it out.
12632         * function.c (allocate_struct_function): Set it.
12633         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
12634         for flag_non_call_exceptions.
12635         * cfgbuild.c (control_flow_insn_p): Likewise.
12636         (make_edges): Likewise.
12637         * cfgexpand.c (expand_stack_alignment): Likewise.
12638         * combine.c (distribute_notes): Likewise.
12639         * cse.c (cse_extended_basic_block): Likewise.
12640         * except.c (insn_could_throw_p): Likewise.
12641         * gcse.c (simple_mem): Likewise.
12642         * ipa-pure-const.c (check_call): Likewise.
12643         (check_stmt ): Likewise.
12644         * lower-subreg.c (lower-subreg.c): Likewise.
12645         * optabs.c (emit_libcall_block): Likewise.
12646         (prepare_cmp_insn): Likewise.
12647         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
12648         * postreload.c (rest_of_handle_postreload): Likewise.
12649         * reload1.c (reload_as_needed): Likewise.
12650         (emit_input_reload_insns): Likewise.
12651         (emit_output_reload_insns): Likewise.
12652         (fixup_abnormal_edges): Likewise.
12653         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
12654         * store-motion.c (find_moveable_store): Likewise.
12655         * tree-eh.c (stmt_could_throw_p): Likewise.
12656         (tree_could_throw_p): Likewise.
12657         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
12658         * config/arm/arm.c (arm_expand_prologue): Likewise.
12659         (thumb1_expand_prologue): Likewise.
12660         * config/rx/rx.md (cbranchsf4): Likewise.
12661         (cmpsf): Likewise.
12662         * config/s390/s390.c (s390_emit_prologue): Likewise.
12663         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
12664         (inline_forbidden_into_p): New predicate.
12665         (expand_call_inline): Use it to forbid inlining.
12666         (tree_can_inline_p): Likewise.
12667
12668 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
12669
12670         * config/i386/i386-c.c: Do not include rtl.h.
12671         * config/i386/t-i386: Update dependencies.
12672
12673 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
12674
12675         * attribs.c: Do not include rtl.h.
12676         * Makefile.in: Update dependencies.
12677
12678 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
12679
12680         * double-int.h (double_int_and): New.
12681         * combine.c (try_combine): Clean up, use double_int_* and
12682         immed_double_int_const functions.
12683
12684 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12685
12686         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
12687         stderr to /dev/null instead of grep -q.
12688         * configure: Regenerate.
12689
12690 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
12691
12692         * Makefile.in (EXCEPT_H): Fix typo.
12693
12694 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
12695
12696         * ira-build.c (update_conflict_hard_reg_costs): New.
12697         (ira_build): Call update_conflict_hard_reg_costs.
12698
12699 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
12700
12701         PR debug/41371
12702         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
12703         ENABLE_CHECKING.
12704         (intersect_loc_chains): Walk the s2var's loc_chain together
12705         with s1node chain as long as the locations are equal, don't
12706         call find_loc_in_1pdv in that case.
12707
12708         PR debug/42801
12709         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
12710         (copy_bind_expr): ... instead of here.
12711         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
12712         if the block hasn't been remapped.
12713         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
12714         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
12715
12716 2010-05-25  Richard Guenther  <rguenther@suse.de>
12717
12718         PR middle-end/44069
12719         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
12720         out-of-bounds array accesses.
12721
12722 2010-05-25  Richard Guenther  <rguenther@suse.de>
12723
12724         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
12725         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
12726         (run_gcc): Re-organize to make cleanup easier.
12727
12728 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12729
12730         * config/s390/s390.c (optimization_options): Fix and move the
12731         flag_prefetch_loop_arrays override ...
12732         (override_options): ... here.
12733
12734 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
12735
12736         * diagnostic.c: Don't include plugin.h.
12737         (diagnostic_report_diagnostic): Don't handle plugins specially
12738         here.  Pass context to internal_error callback.
12739         * diagnostic.h (struct diagnostic_context): Add context parameter
12740         to internal_error callback.
12741         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
12742         * plugin.h (struct diagnostic_context): Declare.
12743         (warn_if_plugins, plugins_internal_error_function): Declare.
12744         * toplev.c (general_init): Set global_dc->internal_error.
12745         * Makefile.in (diagnostic.o): Update dependencies.
12746
12747 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
12748
12749         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
12750         * config/rs6000/t-darwin64: New.
12751         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
12752         build crt2.
12753
12754 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
12755
12756         PR 44203
12757         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
12758         match the original (and intended) behaviour before r159557.  This
12759         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
12760         in two ways.
12761
12762 2010-05-25  Richard Guenther  <rguenther@suse.de>
12763
12764         * doc/invoke.texi: Document -Ofast.
12765         * target.h (struct gcc_target): Add handle_ofast.
12766         * target-def.h (TARGET_HANDLE_OFAST): Add.
12767         (TARGET_INITIALIZER): Adjust.
12768         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
12769         * common.opt (Ofast): Add.
12770
12771 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
12772
12773         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
12774         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
12775
12776 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
12777
12778         PR target/43610
12779         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
12780         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
12781         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
12782         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
12783
12784 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
12785
12786         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
12787         DW_OP_minus with negated offset instead of DW_OP_plus.
12788         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
12789
12790 2010-05-25  Wei Guozhi  <carrot@google.com>
12791
12792         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
12793         tst instruction and a new alternative.
12794         * config/arm/constraints.md (Pu): New constraint.
12795
12796 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
12797
12798         * function.c (assign_stack_local_1): Initialize variable
12799         to avoid warning when bootstrapping at -O3.
12800
12801 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
12802
12803         * configure.ac (all_lang_makefiles): Remove everything related to it.
12804         * configure: Regenerate.
12805         * Makefile.in: Fix reference to ada Make-lang.in.
12806         Remove support for LANG_MAKEFILES.
12807
12808 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
12809             Sandra Loosemore  <sandra@codesourcery.com>
12810
12811         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
12812         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
12813         description.  Add arm_neon_fp16_ok.
12814         (Add Options): Add arm_neon and arm_neon_fp16.
12815
12816 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
12817
12818         * diagnostic.c: Don't include flags.h.
12819         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
12820         context parameters.  Check flags in the context passed as a parameter.
12821         (diagnostic_build_prefix): Add context parameter.  Check
12822         show_column flag in context.
12823         (diagnostic_action_after_output): Check fatal_errors flag in context.
12824         (diagnostic_report_current_module): Check show_column flag in context.
12825         (default_diagnostic_starter): Update call to
12826         diagnostic_build_prefix.
12827         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
12828         (emit_diagnostic): Pass context to permissive_error_kind.
12829         (permerror): Pass context to permissive_error_kind.
12830         * diagnostic.h (struct diagnostic_context): Add show_column,
12831         pedantic_errors, permissive and fatal_errors fields.
12832         (diagnostic_build_prefix): Update prototype.
12833         * langhooks.c
12834         * toplev.c (process_options): Set flags in global_dc from
12835         flag_show_column, flag_pedantic_errors, flag_permissive,
12836         flag_fatal_errors.
12837         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
12838         to diagnostic_build_prefix.
12839         * Makefile.in (diagnostic.o): Update dependencies.
12840
12841 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
12842
12843         * config/i386/ia32intrin.h (__crc32q): Define only if
12844         __SSE4_2__ is defined.
12845
12846 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
12847
12848         PR target/44132
12849         PR middle-end/43602
12850         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
12851         DECL_VISIBILITY_SPECIFIED.
12852         (emutls_decl): Set DECL_PRESERVE_P and copy
12853         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
12854         (emutls_finalize_control_var): New callback.
12855         (emutls_finish): Finalize emutls control variables.
12856         * toplev.c (compile_file): Move the call to emutls_finish ()
12857         before varpool_assemble_pending_decls ().
12858
12859 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
12860
12861         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
12862         added to the preprocessor condition.
12863
12864 2010-05-24  Paul Brook  <paul@codesourcery.com>
12865
12866         * gengtype-lex.l: Add HARD_REG_SET.
12867         * expr.c (expand_expr_real_1): Record writes to hard registers.
12868         * function.c (rtl_data): Add asm_clobbers.
12869         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
12870         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
12871         Use crtl->asm_clobbers.
12872
12873 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12874
12875         * doc/makefile.texi (Makefile): Mention stages 'profile'
12876         and 'feedback' for profiledbootstrap.
12877
12878 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
12879
12880         PR target/44245
12881         * config/i386/i386.c (def_builtin): Properly check
12882         OPTION_MASK_ISA_64BIT.
12883
12884 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
12885
12886         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
12887         typedefs with different but compatible types.  Allow duplicate
12888         typedefs with the same type except for pedantic non-C1X, but give
12889         warning for variably modified types.
12890         * c-typeck.c (tagged_types_tu_compatible_p,
12891         function_types_compatible_p, type_lists_compatible_p,
12892         comptypes_internal): Add parameter different_types_p; set
12893         *different_types_p for different but compatible types.  All
12894         callers changed.
12895         (comptypes_check_different_types): New.
12896         * c-tree.h (comptypes_check_different_types): Declare.
12897
12898 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
12899
12900         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
12901         * jump.c: Include basic-block.h.
12902         * profile.c: Likewise.
12903         * tree-profile.c: Likewise.
12904         * coverage.c: Likewise.
12905         * basic-block.h (optimize_function_for_size_p): Move to function.h.
12906         (optimize_function_for_speed_p): Likewise.
12907         * function.h (optimize_function_for_size_p,
12908         optimize_function_for_speed_p): Moved here from basic-block.h.
12909         * Makefile.in: Update dependencies.
12910
12911 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12912
12913         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
12914         before calling make; allow override through $MAKE.
12915         * doc/invoke.texi (Optimize Options): Document override.
12916
12917 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
12918
12919         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
12920         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12921         (rs6000_mode_dependent_address_ptr): Make static.
12922         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12923         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
12924         Remove.
12925
12926 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
12927
12928         PR target/43869
12929         * config/i386/i386.c: Make sure that the correct regparm is passed.
12930
12931 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
12932
12933         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
12934         * sbitmap.c: ...to here to internalize sbitmap element access.
12935         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
12936         Explain why basic-block.h is included.
12937         * function.h: Include tm.h for CUMULATIVE_ARGS.
12938         * Makefile.in: Update dependencies.
12939
12940 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
12941
12942         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
12943         New core types.
12944         * sbitmap.h (struct sbitmap_def): Do not typedef here.
12945         * sbitmap.c: Include sbitmap.h.
12946         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
12947         hard-reg-set.h.  Split everything related to regsets out from here...
12948         * regset.h: ...to here.  New file.
12949         * df.h: Include regset.h and sbitmap.h.
12950         * tree-flow.h: Likewise.
12951         * cfgloop.h: Likewise.
12952         * except.h: Do not include sbitmap.h.  Include hashtab.h.
12953         * cgraph.h: Include vec.h and function.h.
12954         * reload.h (struct insn_chain): Change types of live_throughout
12955         and dead_or_set from regset_head to bitmap_head.
12956         (compute_use_by_pseudos): Be defined also if regset.h is not included.
12957         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
12958         spilled_regs from regset_head to bitmap_head to avoid dependency
12959         in regset.h.
12960         * sel-sched-ir.h: Include regset.h.
12961         * reload.c: Include df.h before reload.h.
12962         * caller-save.c: Likewise.
12963         * reload1.c: Likewise.
12964         * ira.c: Likewise.
12965         (mark_elimination): Update type of r to bitmap, consistent with
12966         DF_LR_IN.
12967         * dominance.c: Include bitmap.h.
12968         * modulo-sched.c: Include df.h.
12969         * cfganal.c: Include bitmap.h and sbitmap.h.
12970         * cfgbuild.c: Include sbitmap.h.
12971         * lcm.c: Include sbitmap.h.
12972         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
12973         * domwalk.c: Include sbitmap.h, exclude ggc.h.
12974         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
12975         * cselib.c: Include bitmap.h.
12976         * tree-optimize.c: Include regset.h.
12977         * stmt.c: Include bitmap.h.
12978         * Makefile.in: Update dependencies.
12979
12980 2010-05-22  Jan Hubicka  <jh@suse.cz>
12981
12982         * cgraph.h (struct varpool_node): Add same_comdat_group.
12983         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
12984         pointer.
12985         (output_varpool): Update call of lto_output_varpool_node.
12986         (input_varpool): Read same_comdat_group pointer.
12987         (input_varpool_1): Fixup same_comdat_group pointer.
12988         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
12989         group is needed, all are.
12990         * varpool.c (varpool_remove_node): Remove node from same comdat group
12991         linklist too.
12992         (varpool_analyze_pending_decls): Walk same comdat groups.
12993
12994 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
12995
12996         * rtl.h (union rtunion_def): Remove rt_bit member.
12997         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
12998         * print-rtl (print_rtx): Do not print the member.
12999         * gengtype.c (adjust_field_rtx_def): Do not handle it.
13000         * gengenrtl.c (type_from_format): Likewise.
13001         (accessor_from_format): Likewise.
13002
13003 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
13004
13005         * dbgcnt.c: Include toplev.h instead of errors.h.
13006         * ira-emit.c: Don't include errors.h.
13007         * ira.c: Include toplev.h instead of errors.h.
13008         * lto-compress.c: Include toplev.h instead of errors.h.
13009         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
13010         ira.o, dbgcnt.o): Update dependencies.
13011
13012 2010-05-22  Richard Guenther  <rguenther@suse.de>
13013
13014         * gimple.c (gimple_types_compatible_p): Check type qualifications
13015         before merging pointer to complete and pointer to incomplete type.
13016         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
13017         we use our own resolution algorithm.  The gold linker plugin
13018         doesn't do the job we want it to do here.
13019
13020 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
13021
13022         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13023         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13024         (sparc_mode_dependent_address_p): New function.
13025
13026 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
13027
13028         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
13029
13030         * timevar.c: Do not include any core headers.
13031         (timevar_print): De-i18n-ize.
13032         (print_time): Likewise.
13033         * timevar.h (timevar_push, timevar_pop): Make inline functions.
13034
13035 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
13036
13037         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
13038         langhooks-def.h.
13039         (diagnostic_initialize): Initialize x_data not last_function.
13040         (diagnostic_report_current_function): Move to tree-diagnostic.c.
13041         (default_diagnostic_starter): Call
13042         diagnostic_report_current_module not
13043         diagnostic_report_current_function.
13044         (diagnostic_report_diagnostic): Initialize x_data not
13045         abstract_origin.
13046         (verbatim): Likewise.
13047         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
13048         x_data.
13049         (struct diagnostic_context): Change last_function to x_data.
13050         (diagnostic_auxiliary_data): Replace with
13051         diagnostic_context_auxiliary_data and
13052         diagnostic_info_auxiliary_data.
13053         (diagnostic_last_function_changed, diagnostic_set_last_function,
13054         diagnostic_report_current_function): Move to tree-diagnostic.h.
13055         (print_declaration, dump_generic_node, print_generic_stmt,
13056         print_generic_stmt_indented, print_generic_expr,
13057         print_generic_decl, debug_c_tree, dump_omp_clauses,
13058         print_call_name, debug_generic_expr, debug_generic_stmt,
13059         debug_tree_chain, default_tree_printer): Move to
13060         tree-pretty-print.h.
13061         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
13062         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
13063         gimple-pretty-print.h.
13064         * pretty-print.c: Don't include tree.h
13065         (pp_base_format): Don't handle %K here.
13066         (pp_base_tree_identifier): Move to tree-pretty-print.c.
13067         * pretty-print.h (text_info): Change abstract_origin to x_data.
13068         (pp_tree_identifier, pp_unsupported_tree,
13069         pp_base_tree_identifier): Move to tree-pretty-print.h.
13070         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
13071         tree-pretty-print.h: New files.
13072         * tree-pretty-print.c: Include tree-pretty-print.h.
13073         (percent_K_format): New.  Moved from pretty-print.c.
13074         (pp_base_tree_identifier): Move from pretty-print.c.
13075         * c-objc-common.c: Include tree-pretty-print.h.
13076         (c_tree_printer): Handle %K here.
13077         * langhooks.c: Include tree-diagnostic.h.
13078         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
13079         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
13080         (default_tree_printer): Handle %K using percent_K_format.
13081         (general_init): Use default_tree_diagnostic_starter.
13082         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
13083         (free_lang_data): Use default_tree_diagnostic_starter.
13084         * c-pretty-print.c: Include tree-pretty-print.h.
13085         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13086         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13087         * dwarf2out.c: Include tree-pretty-print.h.
13088         * except.c: Include tree-pretty-print.h.
13089         * gimple-pretty-print.c: Include tree-pretty-print.h and
13090         gimple-pretty-print.h.
13091         * gimplify.c: Include tree-pretty-print.h.
13092         * graphite-poly.c: Include tree-pretty-print.h and
13093         gimple-pretty-print.h.
13094         * ipa-cp.c: Include tree-pretty-print.h.
13095         * ipa-inline.c: Include gimple-pretty-print.h.
13096         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13097         * ipa-pure-const.c: Include gimple-pretty-print.h.
13098         * ipa-struct-reorg.c: Include tree-pretty-print.h and
13099         gimple-pretty-print.h.
13100         * ipa-type-escape.c: Include tree-pretty-print.h.
13101         * print-rtl.c: Include tree-pretty-print.h.
13102         * print-tree.c: Include gimple-pretty-print.h.
13103         * sese.c: Include tree-pretty-print.h.
13104         * tree-affine.c: Include tree-pretty-print.h.
13105         * tree-browser.c: Include tree-pretty-print.h.
13106         * tree-call-cdce.c: Include gimple-pretty-print.h.
13107         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13108         * tree-chrec.c: Include tree-pretty-print.h.
13109         * tree-data-ref.c: Include tree-pretty-print.h and
13110         gimple-pretty-print.h.
13111         * tree-dfa.c: Include tree-pretty-print.h.
13112         * tree-if-conv.c: Include tree-pretty-print.h and
13113         gimple-pretty-print.h.
13114         * tree-inline.c: Include tree-pretty-print.h.
13115         * tree-into-ssa.c: Include tree-pretty-print.h and
13116         gimple-pretty-print.h.
13117         * tree-nrv.c: Include tree-pretty-print.h.
13118         * tree-object-size.c: Include tree-pretty-print.h and
13119         gimple-pretty-print.h.
13120         * tree-outof-ssa.c: Include tree-pretty-print.h and
13121         gimple-pretty-print.h.
13122         * tree-parloops.c: Include tree-pretty-print.h and
13123         gimple-pretty-print.h.
13124         * tree-predcom.c: Include tree-pretty-print.h and
13125         gimple-pretty-print.h.
13126         * tree-scalar-evolution.c: Include tree-pretty-print.h and
13127         gimple-pretty-print.h.
13128         * tree-sra.c: Include tree-pretty-print.h.
13129         * tree-ssa-address.c: Include tree-pretty-print.h.
13130         * tree-ssa-alias.c: Include tree-pretty-print.h.
13131         * tree-ssa-ccp.c: Include tree-pretty-print.h and
13132         gimple-pretty-print.h.
13133         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
13134         * tree-ssa-copy.c: Include tree-pretty-print.h and
13135         gimple-pretty-print.h.
13136         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
13137         * tree-ssa-dce.c: Include tree-pretty-print.h and
13138         gimple-pretty-print.h.
13139         * tree-ssa-dom.c: Include tree-pretty-print.h and
13140         gimple-pretty-print.h.
13141         * tree-ssa-dse.c: Include gimple-pretty-print.h.
13142         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
13143         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
13144         * tree-ssa-live.c: Include tree-pretty-print.h and
13145         gimple-pretty-print.h.
13146         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
13147         gimple-pretty-print.h.
13148         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
13149         gimple-pretty-print.h.
13150         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
13151         gimple-pretty-print.h.
13152         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
13153         gimple-pretty-print.h.
13154         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
13155         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
13156         * tree-ssa-operands.c: Include tree-pretty-print.h and
13157         gimple-pretty-print.h.
13158         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
13159         gimple-pretty-print.h.
13160         * tree-ssa-pre.c: Include tree-pretty-print.h and
13161         gimple-pretty-print.h.
13162         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
13163         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
13164         gimple-pretty-print.h.
13165         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
13166         gimple-pretty-print.h.
13167         * tree-ssa-sink.c: Include gimple-pretty-print.h.
13168         * tree-ssa-ter.c: Include tree-pretty-print.h and
13169         gimple-pretty-print.h.
13170         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
13171         * tree-ssa.c: Include tree-pretty-print.h and
13172         gimple-pretty-print.h.
13173         * tree-stdarg.c: Include gimple-pretty-print.h.
13174         * tree-switch-conversion.c: Include gimple-pretty-print.h.
13175         * tree-tailcall.c: Include tree-pretty-print.h and
13176         gimple-pretty-print.h.
13177         * tree-vect-data-refs.c: Include tree-pretty-print.h and
13178         gimple-pretty-print.h.
13179         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
13180         gimple-pretty-print.h.
13181         * tree-vect-loop.c: Include tree-pretty-print.h and
13182         gimple-pretty-print.h.
13183         * tree-vect-patterns.c: Include gimple-pretty-print.h.
13184         * tree-vect-slp.c: Include tree-pretty-print.h and
13185         gimple-pretty-print.h.
13186         * tree-vect-stmts.c: Include tree-pretty-print.h and
13187         gimple-pretty-print.h.
13188         * tree-vectorizer.c: Include tree-pretty-print.h.
13189         * tree-vrp.c: Include tree-pretty-print.h and
13190         gimple-pretty-print.h.
13191         * value-prof.c: Include tree-pretty-print.h and
13192         gimple-pretty-print.h.
13193         * var-tracking.c: Include tree-pretty-print.h.
13194         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
13195         (tree-diagnostic.o): New dependencies.
13196         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
13197         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
13198         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
13199         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
13200         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
13201         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
13202         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
13203         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
13204         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
13205         tree-ssa-address.o, tree-ssa-loop-niter.o,
13206         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
13207         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
13208         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
13209         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
13210         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
13211         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
13212         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
13213         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
13214         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
13215         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
13216         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
13217         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
13218         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
13219         tree-switch-conversion.o, var-tracking.o, value-prof.o,
13220         cfgexpand.o, pretty-print.o): Update dependencies.
13221
13222 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
13223
13224         * tree-ssa-structalias.c: Remove tm_p.h from include.
13225
13226 2010-05-21  Jeff Law  <law@redhat.com>
13227
13228         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
13229
13230 2010-05-21  Jason Merrill  <jason@redhat.com>
13231
13232         * tree-eh.c (cleanup_is_dead_in): New.
13233         (lower_try_finally): Don't generate a dead cleanup region.
13234         (lower_cleanup): Likewise.
13235
13236 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
13237
13238         PR debug/44223
13239         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
13240         unchain each use from the cyclic next_regno_use chain first.
13241
13242 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
13243
13244         * real: Do not include gmp.h, mpfr.h, and mpc.h.
13245         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
13246         (real_value_negate, real_value_abs): New prototypes.
13247         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
13248         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
13249         new include file for interface between MPFR and REAL_VALUE_TYPE.
13250         * real.c: Include realmpfr.h.
13251         (real_arithmetic2): Remove legacy function.
13252         (real_value_negate): New.
13253         (real_value_abs): New.
13254         (mfpr_from_real, real_from_mpfr): Move from here...
13255         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
13256         * builtins.c: Include realmpfr.h.
13257         * fold-const.c: Include realmpfr.h.
13258         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
13259         (fold_negate_const): Likewise.
13260         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
13261         * toplev.c: Include realmpfr.h.
13262         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
13263         and real_value_negate.
13264         * fixed-value.c (check_real_for_fixed_mode): Likewise.
13265         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
13266         (vfp3_const_double_index): Likewise.
13267         (arm_print_operand): Likewise.
13268         * Makefile.in: Update dependencies.
13269
13270 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13271
13272         * config/s390/s390.c (override_options): Increase the default
13273         of max-completely-peel-times.
13274
13275 2010-05-21  Julian Brown  <julian@codesourcery.com>
13276             Mark Mitchell  <mark@codesourcery.com>
13277
13278         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
13279         sibling calls for Thumb-1.
13280         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
13281         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
13282         Thumb-2.
13283         (*call_insn, *call_value_insn): Don't use for Thumb-2.
13284         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
13285         for Thumb-2.
13286         (return): New expander.
13287         (*arm_return): New name for ARM return insn.
13288         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
13289
13290 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
13291
13292         * config.gcc (sparc64-*-rtems*): New target.
13293
13294 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
13295
13296         * tree.c (build_function_decl_skip_args): Fix grammar.
13297         (build_function_type_list_1): Fix typos, adjust formatting.
13298
13299 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
13300
13301         * tree.h: Include real.h and fixed-value.h as basic datatypes.
13302         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
13303         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
13304         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
13305         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
13306         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
13307         tree-pretty-print.c, tree-loop-distribution.c,
13308         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
13309         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
13310         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
13311         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
13312         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
13313         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
13314         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
13315         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
13316         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
13317         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
13318         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
13319         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
13320         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
13321         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
13322         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
13323         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
13324         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
13325         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
13326         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
13327         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
13328         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
13329         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
13330         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
13331         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
13332         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
13333         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
13334         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
13335         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
13336         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
13337         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
13338         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
13339         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
13340         config/score/score7.c, config/score/score.c, config/arm/arm.c,
13341         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
13342         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
13343         config/bfin/bfin.c: Clean up redundant includes.
13344         * Makefile.in: Update accordingly.
13345
13346 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
13347
13348         PR middle-end/44204
13349         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
13350         statement has no arguments.
13351
13352 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
13353
13354         PR/44139
13355         * varasm.c (emutls_decl): Merge attributes to new decl.
13356
13357 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
13358
13359         PR middle-end/44101
13360         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
13361         around the uniquized constructor if its type requires a conversion.
13362
13363 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
13364
13365         PR debug/44205
13366         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
13367         at -O0 goto_locus of any of the incoming edges differs from
13368         goto_locus of outgoing edge, or gimple_location of any of the
13369         labels differs.
13370
13371 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
13372
13373         * ira.c (ira_non_ordered_class_hard_regs): Define.
13374         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
13375         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
13376         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
13377         cost of unaligned hard regs when allocating multi-reg pseudos.
13378
13379 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
13380
13381         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
13382         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
13383         for TARGET_NO_FLOAT.
13384         * config/mips/mips.c (mips_file_start): Expand conditional expression
13385         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
13386         (mips_override_options): Move -mno-float override -msoft-float and
13387         -mhard-float.
13388         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
13389         Condition(TARGET_SUPPORTS_NO_FLOAT).
13390         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
13391         __mips_no_float here.
13392         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
13393         (TARGET_SUPPORTS_NO_FLOAT): Define.
13394         * config/mips/sdemtk.opt: Delete.
13395
13396 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
13397
13398         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
13399
13400 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
13401
13402         PR target/43733
13403         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
13404         * configure: Regenerate.
13405         * config.in: Regenerate.
13406         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
13407         instead of sahf only for 64bit targets.
13408
13409 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
13410
13411         PR debug/44178
13412         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
13413         setup_ref_regs for DEBUG_INSNs.
13414
13415 2010-05-20  Jan Hubicka  <jh@suse.cz>
13416
13417         PR middle-end/44197
13418         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
13419
13420 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
13421
13422         PR bootstrap/43870
13423         * df-scan.c (df_ref_compare): Stabilize sort.
13424
13425 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
13426
13427         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
13428         argument.  Don't use DW_OP_piece if offset is non-zero,
13429         put offset into second DW_OP_bit_piece argument.
13430         (dw_sra_loc_expr): Adjust callers.  For memory expressions
13431         compute offset.
13432
13433 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
13434
13435         PR target/44202
13436         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
13437         settings for 16-bit-constant "addo" alternative.
13438
13439 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
13440
13441         * config/mips/mips-dsp.md (add<DSPV:mode>3,
13442         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
13443
13444         PR target/43764
13445         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
13446         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
13447         Use it.
13448
13449 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
13450
13451         * diagnostic.c (FLOAT, FFS): Don't undefine.
13452         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
13453         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
13454         include ordering.
13455
13456 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
13457
13458         * combine.c (propagate_for_debug): Call make_compound_operation
13459         on the source value.
13460         (try_combine): When implementing a split chosen by find_split_point,
13461         either copy i2src or set it to null.  Assert that i2src is not null
13462         before substituting into CALL_INSN_FUNCTION_USAGE.
13463
13464 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
13465
13466         * double-int.h (double_int_ior): New function.
13467         * tree.h (build_int_cst_wide_type): Remove.
13468         * tree.c (build_int_cst_wide_type): Remove.
13469         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
13470         of build_int_cst_wide_type.
13471         * stor-layout.c (set_sizetype): (Ditto.).
13472         * dojump.c (do_jump): Use build_int_cstu instead of
13473         build_int_cst_wide_type.
13474
13475 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
13476
13477         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
13478         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
13479         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
13480         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
13481         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
13482         propagate the 'data' argument to copy_tree_r.
13483         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
13484         Propagate 'data' argument to walk_tree.
13485         (copy_if_shared): New function.
13486         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
13487         (unmark_visited): New function.
13488         (unshare_body): Call copy_if_shared instead of doing it manually.
13489         (unvisit_body): Call unmark_visited instead of doing it manually.
13490
13491 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
13492
13493         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
13494         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
13495         * hooks.c: Likewise.
13496         * target-def.h (TARGET_FOLD_BUILTIN): Define to
13497         hook_tree_tree_int_treep_bool_null.
13498         * target.h (struct gcc_target): Update signature of fold_builtin
13499         field.
13500         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
13501         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
13502         instead of the call expression.
13503         (fold_builtin_call_array): Pass n and argarray directly.
13504         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
13505         consing a list.
13506         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
13507         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
13508         `i' and use it in place of `arity'.
13509         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
13510         Dereference `args' directly.
13511         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
13512
13513 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13514
13515         * doc/sourcebuild.texi (Effective-Target Keywords): Document
13516         3dnow, sse3, sse2.
13517         (Directives): Document optional dg-require-effective-target
13518         selector.
13519
13520 2010-05-19  Richard Guenther  <rguenther@suse.de>
13521
13522         PR lto/44196
13523         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
13524
13525 2010-05-19  Richard Guenther  <rguenther@suse.de>
13526
13527         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
13528         * common.opt (fwhopr=): New.
13529         * opts.c (common_handle_option): Handle OPT_fwhopr.
13530         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
13531         * collect2.c (main): Match -fwhopr*.
13532         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
13533         Execute ltrans stage in parallel when jobs is bigger than 1.
13534
13535 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13536
13537         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
13538         pentiumpro on Solaris 8/x86 with Sun as.
13539         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
13540         hidden alias bug.
13541         (gcc_cv_as_ix86_quad): Check for .quad directive.
13542         * configure: Regenerate.
13543         * config.in: Regenerate.
13544         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
13545
13546 2010-05-19  Martin Jambor  <mjambor@suse.cz>
13547
13548         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
13549         also for indirect edges.  Actual printing moved...
13550         (ipa_print_node_jump_functions_for_edge): ...here.
13551         (ipa_compute_jump_functions): Renamed to
13552         ipa_compute_jump_functions_for_edge and made static.
13553         (ipa_compute_jump_functions): New function.
13554         (make_edge_direct_to_target): Check if the number of arguments on
13555         the newly direct edge is the same as the number of parametrs of
13556         the callee.
13557         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
13558         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
13559         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
13560         analysis functions unconditionally, call the new
13561         ipa_analyze_params_uses on the node instead of every edge.
13562
13563 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
13564
13565         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
13566         to tree.
13567         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
13568         also checks for a constant int vs.  non-constant but
13569         loop-invariant steps.
13570         (find_or_create_group): Change the sort algorithm to only consider
13571         steps that are constant ints.
13572         (idx_analyze_ref): Adopt code to handle a tree instead of a
13573         HOST_WIDE_INT for step.
13574         (gather_memory_references_ref): Handle tree instead of int and be
13575         prepared to see a NULL_TREE.
13576         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
13577         prefetches if the step cannot be calculated at compile time.
13578         (issue_prefetch_ref): Issue prefetches for non-constant but
13579         loop-invariant steps.
13580
13581 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
13582
13583         Revert:
13584         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
13585
13586         * tree.h (build_call_list): Remove.
13587         * tree.c (build_call_list): Remove.
13588
13589 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
13590
13591         * tree.h (build_call_list): Remove.
13592         * tree.c (build_call_list): Remove.
13593
13594 2010-05-18  Jan Hubicka  <jh@suse.cz>
13595
13596         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
13597
13598 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
13599
13600         PR rtl-optimization/43332
13601         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
13602
13603 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
13604
13605         * tree.h (build_int_cstu): Implement as static inline.
13606         * tree.c (build_int_cstu): Remove function.
13607         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
13608         sign extended.
13609
13610 2010-05-18  Richard Guenther  <rguenther@suse.de>
13611
13612         PR lto/44143
13613         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
13614         (debug): Initialize from -save-temps.
13615         (collect_execute): Print command-line when verbose.
13616         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
13617         for ltrans invocation.  Produce -dumpbase flag again.
13618         (process_args): Remove.
13619         (main): Simplify.
13620         * collect2.c (maybe_run_lto_and_relink): Only pass object
13621         files to lto-wrapper.
13622         * gcc.c (LINK_COMMAND_SPEC): Likewise.
13623
13624 2010-05-18  Jan Hubicka  <jh@suse.cz>
13625
13626         * opts.c (decode_options): Do not disable whopr at ipa_cp.
13627         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
13628
13629 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
13630
13631         PR lto/44184
13632         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
13633         in a GIMPLE_ASM.
13634         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
13635         in a GIMPLE_ASM.
13636
13637 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
13638
13639         PR debug/41371
13640         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
13641         rtx_equal_p inline.
13642
13643 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
13644
13645         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
13646         lto-macho as lto_binary_reader.
13647
13648         * darwin.c (darwin_asm_named_section): Do not add assembler comment
13649         after .section directive; just print it before the directive instead.
13650
13651 2010-05-17  Jan Hubicka  <jh@suse.cz>
13652
13653         * cgraph.c (cgraph_create_virtual_clone): Only check
13654         versionable_function_p when not in wpa and checking is enabled.
13655         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
13656         there are no more functions to materialize.
13657
13658 2010-05-17  Jan Hubicka  <jh@suse.cz>
13659
13660         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
13661         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
13662         New functions.
13663         (output_cgraph): Call output_cgraph_opt_summary.
13664         (input_cgrpah): Call input_cgraph_opt_summary.
13665         (output_cgraph_opt_summary_p, output_node_opt_summary,
13666         input_node_opt_summary, input_cgraph_opt_section): New functions.
13667         * lto-section-in.c (lto_section_name): Add cgraphopt.
13668         * tree-inline.c (tree_function_versioning): Handle parm_num.
13669         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
13670         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
13671
13672 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
13673
13674         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
13675         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
13676         the insn to prefetch ratio heuristic to loops with known trip count.
13677
13678 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
13679
13680         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
13681         (schedule_prefetches): Do not generate a prefetch if the unroll factor
13682         is far from what is required by the prefetch.
13683
13684 2010-05-17  Jan Hubicka  <jh@suse.cz>
13685
13686         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
13687         (ipcp_estimate_growth): Likewise.
13688         (ipcp_const_param_count): Likewise.
13689         (ipcp_insert_stage): Likewise.
13690         * ipa-prop.c (visit_load_for_mod_analysis): New function.
13691         (visit_store_addr_for_mod_analysis): Set used flag.
13692         (ipa_detect_param_modifications): Set used flag for SSE params;
13693         update use of walk_stmt_load_store_addr_ops.
13694         (ipa_print_node_params): Print used flag.
13695         (ipa_write_node_info): Stream used flag.
13696         (ipa_read_node_info): Likewise.
13697         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
13698         (ipa_is_param_used): New function.
13699         (lto_ipa_fixup_call_notes): Remove unused declaration.
13700
13701 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13702
13703         PR target/44074
13704         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
13705         * configure: Regenerate.
13706         * config.in: Regenerate.
13707         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
13708         !HAVE_AS_IX86_REP_LOCK_PREFIX.
13709         Don't emit whitespace.
13710         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
13711         (*rep_movsi): Likewise.
13712         (*rep_movsi_rex64): Likewise.
13713         (*rep_movqi): Likewise.
13714         (*rep_movqi_rex64): Likewise.
13715         (*rep_stosdi_rex64): Likewise.
13716         (*rep_stossi): Likewise.
13717         (*rep_stossi_rex64): Likewise.
13718         (*rep_stosqi): Likewise.
13719         (*rep_stosqi_rex64): Likewise.
13720         (*cmpstrnqi_nz_1): Use {%;} after repz.
13721         (*cmpstrnqi_nz_rex_1): Likewise.
13722         (*cmpstrnqi_1): Likewise.
13723         (*cmpstrnqi_rex_1): Likewise.
13724         (*strlenqi_1): Use {%;} after repnz.
13725         (*strlenqi_rex_1): Likewise.
13726         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
13727         (*sync_compare_and_swap<mode>): Likewise.
13728         (sync_double_compare_and_swap<mode>): Likewise.
13729         (*sync_double_compare_and_swapdi_pic): Likewise.
13730         (sync_old_add<mode>): Likewise.
13731         (sync_add<mode>): Likewise.
13732         (sync_sub<mode>): Likewise.
13733         (sync_<code><mode>): Likewise.
13734
13735 2010-05-17  Martin Jambor  <mjambor@suse.cz>
13736
13737         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
13738         otr_token and polymorphic.
13739         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
13740         (cgraph_clone_edge): Copy the above fields.
13741         * tree.c (get_binfo_at_offset): New function.
13742         * tree.h (get_binfo_at_offset): Declare.
13743         * ipa-prop.h (enum jump_func_type): Added known_type jump function
13744         type, reordered items, updated comments.
13745         (union jump_func_value): Added base_type field, reordered fields.
13746         (enum ipa_lattice_type): Moved down in the file.
13747         (struct ipa_param_descriptor): New field polymorphic.
13748         (ipa_is_param_polymorphic): New function.
13749         * ipa-prop.c: Include gimple.h and gimple-fold.h.
13750         (ipa_print_node_jump_functions): Print known type jump functions.
13751         (compute_complex_pass_through): Renamed to...
13752         (compute_complex_assign_jump_func): this.
13753         (compute_complex_ancestor_jump_func): New function.
13754         (compute_known_type_jump_func): Likewise.
13755         (compute_scalar_jump_functions): Create known type and complex ancestor
13756         jump functions.
13757         (ipa_note_param_call): New parameter polymorphic, set the corresponding
13758         flag in the call note accordingly.
13759         (ipa_analyze_call_uses): Renamed to...
13760         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
13761         variable var only in the block where it is used.
13762         (ipa_analyze_virtual_call_uses): New function.
13763         (ipa_analyze_call_uses): Likewise.
13764         (combine_known_type_and_ancestor_jfs): Likewise.
13765         (update_jump_functions_after_inlining): Implemented handling of a
13766         number of new jump function types combination.
13767         (print_edge_addition_message): Removed.
13768         (make_edge_direct_to_target): New function.
13769         (try_make_edge_direct_simple_call): Likewise.
13770         (try_make_edge_direct_virtual_call): Likewise.
13771         (update_call_notes_after_inlining): Renamed to...
13772         (update_indirect_edges_after_inlining): this.  Moved edge creation for
13773         indirect calls to try_make_edge_direct_simple_call, also calls
13774         try_make_edge_direct_virtual_call for virtual calls.
13775         (ipa_print_node_params): Changed the header message.
13776         (ipa_write_jump_function): Stream also known type jump functions.
13777         (ipa_read_jump_function): Likewise.
13778         (ipa_write_indirect_edge_info): Stream new fields in
13779         cgraph_indirect_call_info.
13780         (ipa_read_indirect_edge_info): Likewise.
13781         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
13782         GIMPLE_FOLD_H.
13783
13784 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13785
13786         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
13787
13788 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
13789
13790         * tree.h (CALL_EXPR_ARGS): Delete.
13791         (call_expr_arglist): Delete.
13792         * tree.c (call_expr_arglist): Delete.
13793         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
13794         targetm.fold_builtin.
13795         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
13796         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
13797         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
13798         arglist parameter.  Use CALL_EXPR_ARG.
13799         (picochip_expand_builtin_3op): Likewise.
13800         (picochip_expand_builtin_2opvoid): Likewise.
13801         (picochip_expand_array_get): Likewise.
13802         (picochip_expand_array_put): Likewise.
13803         (picochip_expand_array_testport): Likewise.
13804         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
13805         rather than arglist.
13806         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
13807         CALL_EXPR_ARGS.
13808         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
13809         than TREE_VALUE and TREE_CHAIN.
13810         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
13811         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
13812         the arglist.
13813
13814 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
13815
13816         PR bootstrap/42347
13817         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
13818         to have no fallthru edge.
13819
13820         PR middle-end/44102
13821         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
13822         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
13823         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
13824         add BARRIER after previous bb if needed.
13825
13826 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
13827
13828         * tree.c (build_function_type_list_1): Remove bogus assert condition.
13829
13830 2010-05-17  Alan Modra  <amodra@gmail.com>
13831
13832         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
13833         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
13834         with copy_reg rtx param.
13835         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
13836         Correct cases where code for ABI_V4 did not initialise the reg
13837         used to access frame.  Also leave frame_reg_rtx as sp for large
13838         frames that save no regs.
13839
13840 2010-05-17  Martin Jambor  <mjambor@suse.cz>
13841
13842         PR middle-end/44133
13843         * tree-sra.c (create_access_replacement): New parameter rename, mark
13844         the replaement for renaming only when it is true.
13845         (get_access_replacement): Pass true in the rename parameter of
13846         create_access_replacement.
13847         (get_unrenamed_access_replacement): New function.
13848         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
13849         replacement declaration from it.
13850
13851 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
13852
13853         * function.c (try_fit_stack_local, add_frame_space): New static
13854         functions.
13855         (assign_stack_local_1): Use them.  Look for opportunities to use
13856         space previously wasted on alignment.
13857         * function.h (struct frame_space): New.
13858         (struct rtl_data): Add FRAME_SPACE_LIST member.
13859         * reload1.c (something_was_spilled): New static variable.
13860         (alter_reg): Set it.
13861         (reload): Test it in addition to testing if the frame size changed.
13862
13863 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
13864
13865         * config/s390/s390.c: Define sane prefetch settings and activate
13866         flag_prefetch_loop_arrays on -O3.
13867         * config/s390/s390.h: Declare that read can use write prefetch.
13868
13869 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
13870
13871         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
13872         build.
13873
13874 2010-05-16  Jan Hubicka  <jh@suse.cz>
13875
13876         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
13877         function body; do not check stdarg field of struct function.
13878
13879 2010-05-16  Jan Hubicka  <jh@suse.cz>
13880
13881         * cgraph.c (dump_cgraph_node): Dump versionable flag.
13882         * cgraph.h (cgraph_local_info): Add versionable flag.
13883         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
13884         (ipcp_versionable_function_p): Use it.
13885         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
13886         versionable flag.
13887
13888 2010-05-16  Jan Hubicka  <jh@suse.cz>
13889
13890         * cgraph.c (cgraph_clone_node): Take decl argument and insert
13891         clone into hash when it is different from orig.
13892         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
13893         * cgraph.h (cgraph_clone_node): Update prototype.
13894         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
13895         (lto_cgraph_encoder_delete): Delete body map.
13896         (lto_cgraph_encoder_size): Move to header.
13897         (lto_cgraph_encoder_encode_body_p,
13898         lto_set_cgraph_encoder_encode_body): New.
13899         (lto_output_node): Do not take written_decls argument; output clone_of
13900         pointer.
13901         (add_node_to): Add include_body_argument; call
13902         lto_set_cgraph_encoder_encode_body on master of the clone.
13903         (add_references): Update use of add_node_to.
13904         (compute_ltrans_boundary): Likewise.
13905         (output_cgraph): Do not create written_decls bitmap.
13906         (input_node): Take nodes argument; stream in clone_of correctly.
13907         (input_cgraph_1): Update use of input_node.
13908         * lto-streamer-out.c (lto_output): Use encoder info to decide
13909         what bodies to output.
13910         * ipa-inline.c (cgraph_clone_inlined_nodes,
13911         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
13912         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
13913         (lto_cgraph_encoder_size): Define here.
13914         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
13915         Declare.
13916
13917 2010-05-16  Richard Guenther  <rguenther@suse.de>
13918
13919         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
13920         -fipa-type-escape.
13921         * ipa-type-escape.c (gate_type_escape_vars): Run when
13922         -fipa-struct-reorg runs.
13923         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
13924         * common.opt (fipa-type-escape): Remove.
13925
13926 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
13927
13928         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
13929         (decode_options): Likewise.
13930         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
13931
13932 2010-05-16  Jan Hubicka  <jh@suse.cz>
13933
13934         * ipa.c (function_and_variable_visibility): Also bring local all
13935         aliases.
13936
13937 2010-05-16  Richard Guenther  <rguenther@suse.de>
13938
13939         * alias.c (nonoverlapping_memrefs_p): Remove use of
13940         IPA type-escape information.
13941
13942 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
13943
13944         * c-common.c (c_common_reswords): Add _Static_assert for C.
13945         * c-parser.c (c_token_starts_declaration,
13946         c_parser_next_token_starts_declaration,
13947         c_parser_static_assert_declaration_no_semi,
13948         c_parser_static_assert_declaration): New.
13949         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
13950         Handle static assertions if static_assert_ok.
13951         (c_parser_external_declaration, c_parser_declaration_or_fndef,
13952         c_parser_compound_statement_nostart, c_parser_label,
13953         c_parser_for_statement, c_parser_objc_methodprotolist,
13954         c_parser_omp_for_loop): All callers of
13955         c_parser_declaration_or_fndef changed.
13956         (c_parser_struct_declaration): Handle static assertions.
13957         (c_parser_compound_statement_nostart): Use
13958         c_parser_next_token_starts_declaration and
13959         c_token_starts_declaration to detect start of declarations.
13960         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
13961         Likewise.
13962
13963 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
13964
13965         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
13966         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13967         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13968         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13969         (mmix_function_outgoing_value): Rename to...
13970         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
13971         (mmix_function_value_regno_p): Make static.
13972         (mmix_libcall_value): New function.
13973         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
13974         mmix_function_value_regno_p): Remove declaration.
13975
13976 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
13977
13978         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
13979         BUILT_IN_ALLOCA if stack checking is enabled.
13980
13981 2010-05-16  Richard Guenther  <rguenther@suse.de>
13982
13983         * var-tracking.c (vars_copy_1): Inline ...
13984         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
13985         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
13986         (variable_merge_over_cur): Adjust.  Merge asserts.
13987         (variable_merge_over_src): Likewise.
13988         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
13989         (variable_post_merge_new_vals): Merge asserts.
13990         (variable_post_merge_perm_vals): Likewise.
13991         (find_mem_expr_in_1pdv): Likewise.
13992         (dataflow_set_different_value): Remove.
13993         (onepart_variable_different_p): Merge asserts.
13994         (variable_different_p): Likewise.
13995         (dataflow_set_different_1): Inline ...
13996         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
13997         (emit_notes_for_differences_1): Merge asserts.
13998
13999 2010-05-16  Richard Guenther  <rguenther@suse.de>
14000
14001         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
14002         * optabs.c (libfunc_decl_hash): Likewise.
14003         * varasm.c (emutls_decl): Likewise.
14004
14005 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
14006
14007         * c-decl.c: Don't include gimple.h.
14008         (merge_decls): Do not copy gimple_body.
14009
14010 2010-05-15  Jason Merrill  <jason@redhat.com>
14011
14012         * c.opt: Add -fnothrow-opt.
14013
14014 2010-05-15  Jan Hubicka  <jh@suse.cz>
14015
14016         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
14017         analyzed.
14018         * passes.c (ipa_write_summaries): Write all analyzed nodes.
14019
14020 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
14021
14022         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
14023         * Makefile.in: Add it.
14024         Fix all other Makefile dependencies for changes below.
14025         * tree.h: Include it instead of defining VEC primitives here.
14026         * gimple.h: Likewise.
14027         * rtl.h: Likewise.
14028         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
14029         * except.h: Include vecir.h, break dependence on tree.h.
14030
14031         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
14032         Move from here...
14033         * tree-iterator.c: ...to here.
14034         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
14035
14036         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
14037         tm_p.h.
14038         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
14039         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
14040         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
14041         tree-mudflap.h, and target.h.
14042         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
14043         predict.h, tree-inline.h, gimple.h, and langhooks.h.
14044         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
14045         Add FIXME for why gimple.h is still included (should be unnecessary
14046         since GCC 4.5 gimplification unit-at-a-time).
14047         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
14048         * c-pragma.c: Add FIXME for why function.h needs to be included just
14049         for cfun, at front-end level.
14050         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
14051         Do not include ggc.h, but include vecprim.h for VEC(char).
14052         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
14053         Explain why target.h is included.
14054         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
14055         Explain why gimple.h is included.
14056         * c-ppoutput.c: Do not include tm.h.
14057         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
14058         * c-parses.c: Explain why rtl.h is included, and that this (and only
14059         this) is also why tm.h must be included.
14060         Do not include except.h.
14061         * c-lang.c: Do not include ggc.h.
14062
14063 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
14064
14065         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
14066
14067 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
14068
14069         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
14070         unions by default if those structs and unions have no tags.  Do
14071         not condition anonymous struct and unions handling on flag_iso.
14072         Allow anonymous structs and unions for C1X.
14073         (finish_struct): Do not diagnose lack of named fields when
14074         anonymous structs and unions present for C1X.  Accept flexible
14075         array members in structure with anonymous structs or unions but no
14076         directly named fields.
14077         * doc/extend.texi (Unnamed Fields): Update.
14078
14079 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
14080
14081         * gimple.h (compare_field_offset): Rename into...
14082         (gimple_compare_field_offset): ...this.
14083         * gimple.c (compare_field_offset): Rename into...
14084         (gimple_compare_field_offset): ...this.  Compare the full access if
14085         the offset is self-referential.
14086         (gimple_types_compatible_p): Adjust for above renaming.
14087         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
14088         DECL_NONADDRESSABLE_P flag of fields before merging them.
14089
14090 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
14091
14092         * tree.h (ctor_to_list): Delete.
14093         * tree.c (ctor_to_list): Delete.
14094
14095 2010-05-15  Jan Hubicka  <jh@suse.cz>
14096
14097         * ipa-reference.c: Include toplev.h
14098         (is_proper_for_analysis): Only add to all_module_statics
14099         if it is allocated.
14100         (write_node_summary_p, stream_out_bitmap,
14101         ipa_reference_write_optimization_summary,
14102         ipa_reference_read_optimization_summary): New.
14103         (struct ipa_opt_pass_d pass_ipa_reference): Add
14104         optimization summary streaming.
14105         * lto-cgraph.c (referenced_from_this_partition_p,
14106         reachable_from_this_partition_p): New functions.
14107         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
14108         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
14109         * opts.c (decode_options): Enable ipa_reference.
14110         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
14111         * lto-streamer.h (referenced_from_this_partition_p,
14112         reachable_from_this_partition_p): Declare.
14113
14114 2010-05-15  Richard Guenther  <rguenther@suse.de>
14115
14116         PR tree-optimization/44038
14117         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
14118         taking the address of a V_C_E of a constant.
14119
14120 2010-05-14  Jan Hubicka  <jh@suse.cz>
14121
14122         * tree.h (memory_identifier_string): Remove.
14123         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
14124         (ipa_reference_global_vars_info_d): Remove statics_not_read and
14125         statics_not_written.
14126         (ipa_reference_optimization_summary_d): New structure.
14127         (ipa_reference_optimization_summary_t): New type and vector.
14128         (ipa_reference_vars_info_d): Embedd structures instead of using
14129         pointers.
14130         (reference_vars_to_consider): Remove out of GGC space.
14131         (module_statics_escape): Remove.
14132         (global_info_obstack): Rename to ...
14133         (optimization_summary_obstack): ... this one.
14134         (initialization_status_t): Remove.
14135         (memory_identifier_string): Remove.
14136         (get_reference_vars_info): Fix indenting.
14137         (set_reference_vars_info): Likewise.
14138         (get_reference_optimization_summary): New.
14139         (set_reference_optimization_summary): New.
14140         (get_global_reference_vars_info): Remove.
14141         (ipa_reference_get_read_global): Remove.
14142         (ipa_reference_get_written_global): Remove.
14143         (ipa_reference_get_not_read_global): Update.
14144         (ipa_reference_get_not_written_global): Update.
14145         (is_proper_for_analysis): Outlaw addressable.
14146         (propagate_bits): Update for new datastructures.
14147         (analyze_variable): Remove.
14148         (init_function_info): Update for new datastructures.
14149         (clean_function_local_data): Remove.
14150         (clean_function): Remove.
14151         (copy_global_bitmap): Use optimizations_summary_obstack.
14152         (duplicate_node_data): Duplicate optimization summary only.
14153         (remove_node_data): Remove optimization summary only.
14154         (generate_summary): Do not analyze variables; do not compute
14155         module_statics_escape; do not prune solutions by it.
14156         (read_write_all_from_decl): Fix typos in comments.
14157         (propagate): Doscover readonly and nonaddressable first;
14158         update for new datastructures; share global bitmaps.
14159         * ipa-reference.h (ipa_reference_get_read_global,
14160         ipa_reference_get_written_global): Remove.
14161         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
14162         * Makefile.in: Remove ipa-refereference from GT files.
14163
14164 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
14165
14166         PR debug/44112
14167         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
14168         for all SYMBOL_REF_DECLs.
14169
14170 2010-05-14  Jan Hubicka  <jh@suse.cz>
14171
14172         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
14173         (varpool_all_refs_explicit_p): New inline function.
14174         * ipa-reference.c: Update comment.
14175         (module_statics_written): Remove.
14176         (get_static_decl): Remove.
14177         (ipa_init): Do not initialize module_statics_written.
14178         (analyze_function): Likewise.
14179         (generate_summary): Likewise; do not compute module_statics_readonly
14180         and do not update variable flags.
14181         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
14182         * ipa.c: Inlucde flags.h
14183         (cgraph_local_node_p): New.
14184         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
14185         promote functions to local.
14186         (ipa_discover_readonly_nonaddressable_vars): New function.
14187         (function_and_variable_visibility): Use cgraph_local_node_p.
14188         * varpool.c (varpool_finalize_decl): Set force_output for
14189         DECL_PRESERVE_P vars.
14190
14191 2010-05-14  Jan Hubicka  <jh@suse.cz>
14192
14193         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
14194
14195 2010-05-14  Richard Guenther  <rguenther@suse.de>
14196
14197         PR tree-optimization/44119
14198         * tree-ssa-pre.c (eliminate): Properly mark replacement of
14199         a PHI node necessary.
14200
14201 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
14202
14203         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
14204
14205 2010-05-14  Jason Merrill  <jason@redhat.com>
14206
14207         PR c++/44127
14208         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
14209         (gimple_call_set_nothrow): New.
14210         * gimple.c (gimple_build_call_from_tree): Call it.
14211         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
14212
14213         PR c++/44127
14214         * gimplify.c (gimplify_seq_add_stmt): No longer static.
14215         * gimple.h: Declare it.
14216         * gimple.c (gimple_build_eh_filter): No ops.
14217
14218 2010-05-14  Jan Hubicka  <jh@suse.cz>
14219
14220         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
14221         nodes already in queue.
14222         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
14223         re-enqueueing node.
14224
14225 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
14226
14227         PR debug/44136
14228         * cfgexpand.c (expand_debug_expr): If non-memory op0
14229         has BLKmode, return NULL.
14230
14231 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
14232
14233         * config.gcc: Add support for --with-cpu option for bdver1.
14234         * config/i386/i386.h (TARGET_BDVER1): New macro.
14235         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
14236         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
14237         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
14238         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
14239         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
14240         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
14241         (processor_type): Add PROCESSOR_BDVER1.
14242         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
14243         processor_type in config/i386/i386.h.
14244         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
14245         movaps <reg, reg> instead of movapd <reg, reg> when replacing
14246         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
14247         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
14248         to emit packed xor instead of packed double/packed integer
14249         xor for SSE and AVX when moving a zero value.
14250         * config/i386/sse.md: Add check for
14251         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
14252         movapd/movdqa for SSE and AVX.
14253         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
14254         single logical operations i.e and, or and xor instead of packed double
14255         logical operations for SSE and AVX.
14256         * config/i386/i386-c.c (ix86_target_macros_internal):
14257         Add PROCESSOR_BDVER1.
14258         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
14259         (has_fma4, has_xop): New.
14260         * config/i386/i386.c (bdver1_cost): New variable.
14261         (m_BDVER1): New macro.
14262         (m_AMD_MULTIPLE): Add m_BDVER1.
14263         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
14264         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
14265         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
14266         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
14267         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
14268         x86_tune_sse_partial_reg_dependency,
14269         x86_tune_sse_unaligned_load_optimal,
14270         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
14271         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
14272         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
14273         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
14274         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
14275         Enable/disable for bdver1.
14276         (processor_target_table): Add bdver1_cost.
14277         (cpu_names): Add bdver1.
14278         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
14279          processor_alias_table.
14280         (ix86_expand_vector_move_misalign): Change.
14281         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
14282         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
14283         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
14284         of movupd/movdqu for SSE and AVX.
14285         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
14286         (ix86_tune_adjust_cost): Add code for bdver1.
14287         (standard_sse_constant_opcode): Add check for
14288         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
14289         of packed double xor for SSE and AVX.
14290
14291 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
14292
14293         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
14294         result to unsigned.
14295
14296 2010-05-14  Tristan Gingold  <gingold@adacore.com>
14297
14298         * toplev.c (default_debug_hooks): Remove this variable.
14299         (process_options): Remove assignments to default_debug_hooks.
14300
14301 2010-05-14  Martin Jambor  <mjambor@suse.cz>
14302
14303         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
14304         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
14305         * langhooks.h (struct lang_hooks_for_decls): Removed field
14306         fold_obj_type_ref.
14307         * tree.c (free_lang_data): Remove assignment to
14308         lang_hooks.fold_obj_type_ref.
14309         * tree.def (OBJ_TYPE_REF): Update comment.
14310
14311 2010-05-14  Richard Guenther  <rguenther@suse.de>
14312
14313         PR tree-optimization/44124
14314         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
14315
14316 2010-05-14  Alan Modra  <amodra@gmail.com>
14317
14318         PR target/44075
14319         * config/rs6000/rs6000.c (struct machine_function): Reorder
14320         fields for better packing.  Add lr_save_state.
14321         (rs6000_ra_ever_killed): Return lr_save_state if set.
14322         (rs6000_emit_eh_reg_restore): Set lr_save_state.
14323
14324 2010-05-13  Jan Hubicka  <jh@suse.cz>
14325
14326         * varpool.c (decide_is_variable_needed): Drop code checking
14327         TREE_SYMBOL_REFERENCED.
14328
14329 2010-05-13  Jan Hubicka  <jh@suse.cz>
14330
14331         * final.c (output_addr_const): Do not call mark_decl_referenced.
14332         * cgraphunit.c (process_function_and_variable_attributes): Use
14333         mark_needed_node dirrectly.
14334         (assemble_thunk): Do not call mark_decl_referenced.
14335
14336 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
14337
14338         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
14339
14340 2010-05-13  Jeff Law  <law@redhat.com>
14341
14342         * ira-conflicts.c (print_allocno_conflicts): New function broken out
14343         from...
14344         (print_conflicts): Call print_allocno_conflicts.
14345
14346 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
14347
14348         PR debug/44104
14349         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
14350         if it is NULL.
14351
14352 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
14353
14354         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
14355         t-mingw-w64 or t-mingw-w32 for multilib configuration.
14356         * config/i386/t-mingw-w32: New.
14357         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
14358
14359 2010-05-13  Martin Jambor  <mjambor@suse.cz>
14360
14361         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
14362         gimple-fold.c).
14363         * gimple-fold.c (get_base_binfo_for_type): New function.
14364         (gimple_get_relevant_ref_binfo): Likewise.
14365         (gimple_fold_obj_type_ref_known_binfo): Likewise.
14366         (gimple_fold_obj_type_ref): Likewise.
14367         (fold_gimple_call): Simplify condition for folding virtual calls
14368         and call gimple_fold_obj_type_ref.
14369         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
14370         (gimple_fold_obj_type_ref_known_binfo): Likewise.
14371
14372 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
14373
14374         * config/rs6000/rs6000-protos.h
14375         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
14376         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
14377         (rs6000_debug_mode_dependent_address)
14378         (rs6000_mode_dependent_address_ptr): Likewise.
14379
14380 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
14381
14382         PR debug/43983
14383         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
14384         by SRA.
14385         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
14386         * tree-sra.c (create_access_replacement): Call unshare_expr before
14387         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
14388         * dwarf2out.c: Include tree-flow.h.
14389         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
14390         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
14391         Handle DW_OP_bit_piece.
14392         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
14393         construct_piece_list, adjust_piece_list): New functions.
14394         (add_var_loc_to_decl): Handle SRA optimized variables.
14395         Adjust for var_loc_note to loc field renaming.
14396         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
14397         in VAR_LOCATION note.
14398         (new_loc_descr_op_bit_piece): New function.
14399         (dw_sra_loc_expr): New function.
14400         (dw_loc_list): Use it.  Don't handle the last range after the
14401         loop, handle it inside of the loop.  Adjust for var_loc_note
14402         to loc field renaming.
14403         (add_location_or_const_value_attribute): Only special case
14404         single entry loc lists if loc is NOTE_P.  Adjust for
14405         var_loc_note to loc field renaming.
14406         (dwarf2out_var_location): Don't set newloc->var_loc_note
14407         and newloc->next here.
14408
14409 2010-05-12  Jan Hubicka  <jh@suse.cz>
14410
14411         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
14412         flag.
14413         * cgraph.h (cgraph_only_called_directly_p,
14414         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
14415         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
14416         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
14417         (assemble
14418         * ipa.c (cgraph_remove_unreachable_nodes): Use
14419         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
14420         flags.
14421         * tree-inline.c (copy_bb): Check address_taken flag.
14422         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
14423         externally_visible flag.
14424
14425 2010-05-12  Jason Merrill  <jason@redhat.com>
14426
14427         PR bootstrap/44048
14428         PR target/44099
14429         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
14430         * sdbout.c (plain_type_1): Likewise.
14431         * dwarf2out.c (is_base_type): Likewise.
14432         (gen_type_die_with_usage): Likewise.  Generate
14433         DW_TAG_unspecified_type for any LANG_TYPE.
14434
14435 2010-05-12  Jan Hubicka  <jh@suse.cz>
14436
14437         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
14438         indrect edges too.
14439         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
14440         (cgraph_clone_edge): Update.
14441         (cgraph_node_remove_callees): Remove indirect calls too.
14442         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
14443         (cgraph_create_indirect_edge): Update prototype.
14444         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
14445         is_proper_for_analysis.
14446         (add_new_function, visited_nodes, function_insertion_hook_holder,
14447         get_local_reference_vars_info, mark_address_taken, mark_address,
14448         mark_load, mark_store, check_asm_memory_clobber, check_call,
14449         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
14450         (ipa_init): Do not initialize visited_nodes;
14451         function_insertion_hook_holder.
14452         (analyze_variable): Rewrite.
14453         (analyze_function): Rewrite.
14454         (copy_local_bitmap): Remove.
14455         (duplicate_node_dat): Do not duplicate local info.
14456         (generate_summary): Simplify to only walk cgraph.
14457         (write_node_summary_p, ipa_reference_write_summary,
14458         ipa_reference_read_summary): Remove.
14459         (propagate): Do not remove function insertion;
14460         generate summary.
14461         (pass_ipa_reference): NULLify summary handling fields.
14462         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
14463         (input_edge): Input ecf_flags.
14464         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
14465         (update_indirect_edges_after_inlining): Ignore edges with unknown
14466         param.
14467
14468 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
14469
14470         * implicit-zee.c: New file.
14471         * tree-pass.h (pass_implicit_zee): Declare.
14472         * passes.c (init_optimization_passes): Add zee pass.
14473         * common.opt (fzee): New flag.
14474         * timevar.def (TV_ZEE): Define.
14475         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
14476         and beyond.
14477         * Makefile.in (implicit-zee.o): Add new build file.
14478
14479 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
14480             Nathan Froyd  <froydnj@codesourcery.com>
14481
14482         * c-common.c (sync_resolve_params): Remove write-only variable.
14483
14484 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
14485
14486         * target.h (struct gcc_target): Add mode_dependent_address_p field.
14487         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
14488         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
14489         * targhooks.c (default_mode_dependent_address_p): New function.
14490         * targhooks.h (default_mode_dependent_address_p): Declare function.
14491         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
14492         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
14493         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
14494         target hook. Change return type to bool.
14495         * recog.h (mode_dependent_address_p): Change return type to bool.
14496
14497 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
14498             Nathan Froyd  <froydnj@codesourcery.com>
14499
14500         * tree-mudflap.c (build_function_type_0, build_function_type_1,
14501         build_function_type_2, build_function_type_3): Remove.
14502         (mudflap_init): Use build_function_type_list.
14503
14504 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
14505             Nathan Froyd  <froydnj@codesourcery.com>
14506
14507         * coverage.c (build_fn_info_value): Call build_constructor instead of
14508         build_constructor_from_list.
14509         (build_ctr_info_value): Likewise.
14510         (build_gcov_info): Likewise.
14511
14512 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
14513
14514         * tree.c (build_constructor): Compute TREE_CONSTANT for the
14515         resultant constructor.
14516         (build_constructor_single): Don't set TREE_CONSTANT.
14517         (build_constructor_from_list): Don't compute TREE_CONSTANT.
14518
14519 2010-05-12  Jan Hubicka  <jh@suse.cz>
14520
14521         * cgraph.h (struct varpool_node): Add aux.
14522         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
14523         * varpool.c (varpool_remove_node): Do not remove initializer.
14524         (varpool_reset_queue): Export.
14525         (varpool_finalize_decl): Volatile vars are forced to be output.
14526         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
14527         replaced decl.
14528         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
14529         process_references, varpool_can_remove_if_no_refs): New functions.
14530         (cgraph_remove_unreachable_nodes): Handle variables too.
14531
14532 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
14533
14534         PR target/44088
14535         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
14536
14537 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
14538
14539         PR middle-end/44085
14540         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
14541         change value of ORT_TASK.
14542         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
14543         (omp_notice_threadprivate_variable): New function.
14544         (omp_notice_variable): Call it for threadprivate variables.
14545         If enclosing ctx is a task, print enclosing task rather than
14546         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
14547         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
14548         if task has untied clause.
14549
14550         PR debug/42278
14551         * dwarf2out.c (base_type_die): Don't add name attribute here.
14552         (modified_type_die): Instead of sizetype use
14553         its underlying original type.  If a DW_TAG_base_type doesn't
14554         have name added, add __unknown__.
14555         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
14556         always call force_type_die instead.
14557
14558 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
14559
14560         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
14561         for __stack_chk_guard.
14562
14563 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
14564
14565         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
14566         don't call start_source_file debug hook here...
14567         (finish_options): ... but here, after outputting predefined and
14568         command line defines and undefs.
14569
14570         PR middle-end/44071
14571         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
14572         no fallthru edge.
14573         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
14574         optimizing away empty bb with no successors, move over its
14575         footer chain to fallthru predecessor.
14576         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
14577         (rtl_split_edge): For asm goto call patch_jump_insn even if
14578         splitting fallthru edge.
14579
14580         PR c++/44059
14581         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
14582         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
14583         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
14584         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
14585         on DW.ref.* decls.
14586
14587         PR c++/44062
14588         * c-parser.c (c_parser_expression): Mark LHS of a comma
14589         expression as read if it is a decl, handled component or
14590         COMPOUND_EXPR with that on the RHS.
14591         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
14592         if it is a decl or handled component.
14593
14594 2010-05-11  Jan Hubicka  <jh@suse.cz>
14595
14596         * lto-symtab.c (lto_symtab_free): New function.
14597         * lto-streamer.h (lto_symtab_free): Declare.
14598
14599 2010-05-11  Jan Hubicka  <jh@suse.cz>
14600
14601         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
14602         that if function is needed it is reachable.
14603         (lto_output_node): See if it the function is reachable or referenced.
14604         (output_cgraph): Update call of lto_output_node.
14605         * lto-streamer.h (reachable_from_other_partition_p): Declare.
14606
14607 2010-05-11  Jan Hubicka  <jh@suse.cz>
14608
14609         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
14610         Mark as used.
14611
14612 2010-05-11  Jan Hubicka  <jh@suse.cz>
14613
14614         PR tree-optimize/44063
14615         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
14616         queue.
14617         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
14618         limits.
14619         (estimate_function_body_sizes): Compute sizes even when disregarding.
14620
14621 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
14622
14623         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
14624
14625 2010-05-11  Jan Hubicka  <jh@suse.cz>
14626
14627         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
14628         into every boundary.
14629
14630 2010-05-11  Jan Hubicka  <jh@suse.cz>
14631
14632         * matrix-reorg.c (matrix_reorg): Rebuild edges.
14633
14634 2010-05-11  Jan Hubicka  <jh@suse.cz>
14635
14636         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
14637         lto_streamer_cache_delete): Put nodes into heap.
14638         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
14639         heap.
14640
14641 2010-05-11  Jan Hubicka  <jh@suse.cz>
14642
14643         * cgraphbuild.c (cgraph_rebuild_references): New.
14644         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
14645         out extern inlines.
14646         * cgraph.h (cgraph_rebuild_references): Declare.
14647         * tree-inline.c (tree_function_versioning): Use it.
14648         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
14649
14650 2010-05-11  Jan Hubicka  <jh@suse.cz>
14651
14652         * cgraph.c: Include ipa-utils.h
14653         (cgraph_create_virtual_clone): Update references.
14654         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
14655
14656 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
14657
14658         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
14659         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
14660         cache size.
14661
14662 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
14663
14664         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
14665
14666 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
14667
14668         * gcc.c (execute): For -### don't quote arguments that
14669         contain just alphanumerics and _/-. characters.
14670         * doc/invoke.texi: Document that change for -###.
14671
14672         PR debug/44023
14673         * df-problems.c (struct dead_debug): Add to_rescan field.
14674         (dead_debug_init): Clear to_rescan field.
14675         (dead_debug_finish): Rescan all debug insns in to_rescan
14676         bitmap and free the bitmap.
14677         (dead_debug_insert_before): Instead of rescanning debug insns
14678         immediately queue their rescanning until dead_debug_finish.
14679         (df_note_bb_compute): After dead_debug_add do continue instead
14680         of break.
14681
14682 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
14683
14684         PR debug/44028
14685         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
14686         clear also INSN_REG_USE_LIST.
14687
14688 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14689
14690         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
14691
14692 2010-05-10  Jan Hubicka  <jh@suse.cz>
14693
14694         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
14695         commited change.
14696
14697 2010-05-10  Jan Hubicka  <jh@suse.cz>
14698
14699         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
14700         Allocate encoders.
14701         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
14702         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
14703         (lto_streamer_cache_create): Init alloc pool.
14704         (lto_streamer_cache_delete): Free alloc pool.
14705         * lto-streamer.h: Include alloc pool.
14706         (lto_streamer_cache_d): Use alloc pool.
14707         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
14708
14709 2010-05-10  Jan Hubicka  <jh@suse.cz>
14710
14711         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
14712         * cgraphbuild.c: Include except.h
14713         (record_type_list, record_eh_tables): New function.
14714         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
14715
14716 2010-05-10  Jan Hubicka  <jh@suse.cz>
14717
14718         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
14719         __frame_dummy_init_array_entry, force_to_data): Attribute as used
14720         rather than unused.
14721
14722 2010-05-10  Michael Matz  <matz@suse.de>
14723
14724         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
14725         (can_reassociate_p): Use FLOAT_TYPE_P.
14726         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
14727         (vect_force_simple_reduction): ... this.
14728         * tree-parloops.c (gather_scalar_reductions): Use
14729         vect_force_simple_reduction.
14730         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
14731         vect_is_simple_reduction, add modify argument, if true rewrite
14732         "a-b" into "a+(-b)".
14733         (vect_is_simple_reduction, vect_force_simple_reduction): New
14734         functions.
14735         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
14736
14737 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
14738             Vladimir Makarov  <vmakarov@redhat.com>
14739
14740         PR rtl-optimization/44012
14741         * ira-build.c (remove_unnecessary_allocnos): Nullify
14742         regno_allocno_map of the removed allocno.
14743
14744 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14745
14746         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
14747         to /dev/null.
14748         * configure: Regenerate.
14749
14750 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14751
14752         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
14753         unused.
14754         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
14755         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
14756         support in Sun ld.
14757         * configure: Regenerate.
14758
14759 2010-05-10  Richard Guenther  <rguenther@suse.de>
14760
14761         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
14762         marked if the entry identifier is marked.
14763
14764 2010-05-10  Richard Guenther  <rguenther@suse.de>
14765
14766         * c-common.c (struct c_common_attributes): Add fnspec attribute.
14767         (handle_fnspec_attribute): New function.
14768         * gimple.h (gimple_call_return_flags): Declare.
14769         (gimple_call_arg_flags): Likewise.
14770         * gimple.c (gimple_call_arg_flags): New function.
14771         (gimple_call_return_flags): Likewise.
14772         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
14773         New argument flags.
14774         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
14775         return value flags.
14776         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
14777         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
14778         main work to ...
14779         (make_heapvar_for): ... this new function.
14780         (handle_rhs_call): Handle fnspec attribute argument specifiers.
14781         (handle_lhs_call): Likewise.
14782         (find_func_aliases): Adjust.
14783
14784 2010-05-10  Richard Guenther  <rguenther@suse.de>
14785
14786         PR tree-optimization/44050
14787         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
14788
14789 2010-05-10  Wei Guozhi  <carrot@google.com>
14790
14791         PR target/42879
14792         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
14793
14794 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
14795
14796         PR c/10676
14797         * c-typeck.c (lookup_field): Take a type directly.  Update
14798         recursive calls.
14799         (build_component_ref): Update call to lookup_field.
14800         (set_init_label): Use lookup_field to find initialized field.
14801         Handle returned list of fields like a sequence of designators.
14802
14803 2010-05-09  Richard Guenther  <rguenther@suse.de>
14804
14805         PR middle-end/44024
14806         * fold-const.c (tree_single_nonzero_warnv_p): Properly
14807         handle &FUNCTION_DECL.
14808
14809 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
14810
14811         PR c/4784
14812         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
14813         structures and unions recursively.
14814         (detect_field_duplicates): Move duplicate detection with a hash to
14815         detect_field_duplicates_hash.  Always use a hash if anonymous
14816         structures or unions are present.
14817         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
14818         give errors.
14819
14820 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
14821
14822         PR target/44046
14823         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
14824         detect Atom, Core 2 and Core i7.
14825
14826 2010-05-09  Richard Guenther  <rguenther@suse.de>
14827
14828         * gcc.c (store_arg): Handle temporary file deletion for
14829         joined arguments.
14830
14831 2010-05-09  Richard Guenther  <rguenther@suse.de>
14832
14833         PR middle-end/44043
14834         * ipa-inline.c (estimate_function_body_sizes): Return after
14835         disregarding inline limits.
14836
14837 2010-05-09  Richard Guenther  <rguenther@suse.de>
14838
14839         * gcc.c (store_arg): Revert last change.
14840
14841 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
14842
14843         PR middle-end/28685
14844         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
14845         (optimize_ops_list): Call it.
14846
14847 2010-05-08  Richard Guenther  <rguenther@suse.de>
14848
14849         PR tree-optimization/44030
14850         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
14851         NECESSARY flag if we propagate from a inserted expression.
14852
14853 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
14854
14855         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
14856         domain types as equal if they are both PLACEHOLDER_EXPRs.
14857
14858 2010-05-08  Richard Guenther  <rguenther@suse.de>
14859
14860         * lto-wrapper.c (run_gcc): Remove linker output from
14861         command line for LTRANS invocation.
14862
14863 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
14864
14865         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
14866         lto-macho as lto_binary_reader.
14867         * target.h (struct gcc_target): New hooks lto_start and lto_end.
14868         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
14869         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
14870         in lto_start and lto_end calls.
14871         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
14872         magic numbers.
14873         (scan_prog_file): Update is_elf_or_coff call.
14874         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
14875
14876         * collect2.c (main): Fix enum comparison.
14877
14878         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
14879         Add prototypes.
14880         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
14881         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
14882         and TARGET_ASM_LTO_END.
14883         * darwin.c: Include obstack.h and lto-streamer.h.
14884         (lto_section_names_offset, lto_section_names_obstack,
14885         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
14886         global variables.
14887         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
14888         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
14889         to a temporary file.
14890         (darwin_asm_lto_end): New function.  Restore asm_out_file.
14891         (darwin_asm_named_section): For LTO sections, replace the name with
14892         the offset of the section name in a string table, and build this
14893         table.
14894         (darwin_file_start): Initialize global vars for LTO support.
14895         (darwin_file_end): If output to asm_out_file was redirected, append it
14896         to the proper asm_out_file here.  Add the section names section.
14897
14898 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
14899
14900         * c-pragma.c (pending_weak_d, pending_weak): New.
14901         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
14902         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
14903         handle_pragma_weak): Update the uses of pending_weaks.
14904
14905 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14906
14907         PR documentation/44016
14908         * doc/standards.texi (Standards): Link to unversioned
14909         cxx0x_status.html page.
14910
14911 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
14912
14913         PR target/43708
14914         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
14915         in addition to TREE_USED, to avoid "set but unused" warnings.
14916
14917 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
14918
14919         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
14920         (is_loop_prefetching_profitable): Do not insert prefetches
14921         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
14922         times the prefetch ahead distance.
14923
14924 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
14925
14926         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
14927         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
14928         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
14929         the unroll_factor.
14930
14931 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
14932
14933         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
14934         a diagnostic info when the insn-to-mem ratio is too small.
14935
14936 2010-05-07  Richard Guenther  <rguenther@suse.de>
14937
14938         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
14939         the linker plugin.
14940         (store_arg): Queue temp_filename for deletion instead of
14941         the whole argument.
14942
14943 2010-05-07  Richard Guenther  <rguenther@suse.de>
14944
14945         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
14946         (run_gcc): Handle LTRANS phase invocation.
14947         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
14948
14949 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
14950
14951         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
14952         this is also meaningful on PARM_DECLs and RESULT_DECLs.
14953
14954 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14955
14956         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
14957
14958 2010-05-07  Richard Guenther  <rguenther@suse.de>
14959
14960         PR tree-optimization/44020
14961         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
14962         code when PRE is not yet initialized.
14963
14964 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14965
14966         * config/mips/dbxmdebug.h: Remove.
14967         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
14968
14969 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
14970
14971         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
14972         with null pointer and also warn about ordered comparison of zero with
14973         pointer if -Wextra.
14974
14975 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
14976
14977         * graphite-blocking.c
14978         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
14979         * graphite-clast-to-gimple.c
14980         (clast_to_gcc_expression): Same.
14981         (precision_for_value): Same.
14982         (precision_for_interval): Same.
14983         (gcc_type_for_interval): Same.
14984         (graphite_create_new_guard): Same.
14985         (compute_bounds_for_level): Same.
14986         (graphite_create_new_loop_guard): Same.
14987         * graphite-interchange.c
14988         (build_linearized_memory_access): Same.
14989         (pdr_stride_in_loop): Same.
14990         (memory_strides_in_loop_1): Same.
14991         (memory_strides_in_loop): Same.
14992         (extend_scattering): Same.
14993         (psct_scattering_dim_for_loop_depth): Same.
14994         (pbb_number_of_iterations): Same.
14995         * graphite-poly.h
14996         (debug_iteration_domains): Same.
14997         * graphite-ppl.c
14998         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
14999         (ppl_set_inhomogeneous_gmp): Same.
15000         (ppl_strip_loop): Same.
15001         (ppl_lexico_compare_linear_expressions): Same.
15002         (ppl_read_polyhedron_matrix): Same.
15003         (ppl_max_for_le_pointset): Same.
15004         * graphite-ppl.h
15005         (ppl_read_polyhedron_matrix): Same.
15006         (tree_int_to_gmp): Same.
15007         (gmp_cst_to_tree): Same.
15008         (ppl_set_inhomogeneous): Same.
15009         (ppl_set_inhomogeneous_tree): Same.
15010         (ppl_set_coef): Same.
15011         (ppl_set_coef_tree): Same.
15012         * graphite-sese-to-poly.c
15013         (build_pbb_scattering_polyhedrons): Same.
15014         (build_scop_scattering): Same.
15015         (scan_tree_for_params_right_scev): Same.
15016         (scan_tree_for_params): Same.
15017         (find_params_in_bb): Same.
15018         (find_scop_parameters): Same.
15019         (add_upper_bounds_from_estimated_nit): Same.
15020         (build_loop_iteration_domains): Same.
15021         (add_condition_to_domain): Same.
15022         (pdr_add_memory_accesses): Same.
15023
15024 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15025
15026         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
15027         CLooG's value_* macros to their respective mpz_* counterparts.
15028         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
15029         (graphite_create_new_loop_guard): Same.
15030         * graphite-interchange.c (build_linearized_memory_access): Same.
15031         (pdr_stride_in_loop): Same.
15032         (memory_strides_in_loop_1): Same.
15033         (1st_interchange_profitable_p): Same.
15034         * graphite-poly.c (extend_scattering): Same.
15035         (psct_scattering_dim_for_loop_depth): Same.
15036         (pbb_number_of_iterations): Same.
15037         (pbb_number_of_iterations_at_time): Same.
15038         * graphite-poly.h (new_1st_loop): Same.
15039         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
15040         (oppose_constraint): Same.
15041         (insert_constraint_into_matrix): Same.
15042         (ppl_set_inhomogeneous_gmp): Same.
15043         (ppl_set_coef_gmp): Same.
15044         (ppl_strip_loop): Same.
15045         (ppl_lexico_compare_linear_expressions): Same.
15046         (ppl_max_for_le_pointset): Same.
15047         (ppl_min_for_le_pointset): Same.
15048         (ppl_build_realtion): Same.
15049         * graphite-ppl.h (gmp_cst_to_tree): Same.
15050         (ppl_set_inhomogeneous): Same.
15051         (ppl_set_inhomogeneous_tree): Same.
15052         (ppl_set_coef): Same.
15053         (ppl_set_coef_tree): Same.
15054         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
15055         (build_scop_scattering): Same.
15056         (add_value_to_dim): Same.
15057         (scan_tree_for_params_right_scev): Same.
15058         (scan_tree_for_params_int): Same.
15059         (scan_tree_for_params): Same.
15060         (find_params_in_bb): Same.
15061         (find_scop_parameters): Same.
15062         (add_upper_bounds_from_estimated_nit): Same.
15063         (build_loop_iteration_domains): Same.
15064         (create_linear_expr_from_tree): Same.
15065         (add_condition_to_domain): Same.
15066         (pdr_add_memory_accesses): Same.
15067
15068 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
15069             Jason Merrill  <jason@redhat.com>
15070
15071         * c-common.c (c_common_reswords): Add nullptr.
15072         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
15073         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
15074         (gen_type_die_with_usage): Likewise.
15075         * dbxout.c (dbxout_type): Likewise.
15076         * sdbout.c (plain_type_1): Likewise.
15077
15078 2010-05-06  Jason Merrill  <jason@redhat.com>
15079
15080         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
15081         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
15082         ret appropriately.
15083         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
15084
15085         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
15086         stripping WITH_SIZE_EXPR.
15087         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
15088         change.
15089
15090 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15091
15092         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
15093         list of obsolete configurations.
15094         Disabled check for obsolete configurations.
15095         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
15096         Removed support for previous versions.
15097         * config/mips/iris.h: Removed.
15098         * config/mips/iris5.h: Removed.
15099         * config/mips/iris6.h: Merged old iris.h contents.
15100         (TARGET_IRIX): Removed.
15101         (DRIVER_SELF_SPECS): Removed mabi=32.
15102         (IDENT_ASM_OP): Removed undef.
15103         (STARTFILE_SPEC): Removed mabi=32.
15104         (ENDFILE_SPEC): Likewise.
15105         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
15106         (MACHINE_TYPE): Update for IRIX 6.5.
15107         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
15108         TARGET_IRIX by TARGET_IRIX6.
15109         (mips_file_start): Likewise.
15110         (mips_output_external): Remove IRIX 5/6 O32 support.
15111         (mips_output_function_prologue): Likewise.
15112         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
15113         TARGET_IRIX6.
15114         (TARGET_CPU_CPP_BUILTINS): Likewise.
15115         (TARGET_IRIX): Removed.
15116         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
15117         (MULTILIB_DIRNAMES): Removed 32.
15118         (MULTILIB_OSDIRNAMES): Removed ../lib.
15119         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
15120         (Specific, mips-sgi-irix5): Document removal.
15121         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
15122         Remove references to older IRIX 6 releases and the O32 ABI.
15123
15124 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
15125
15126         PR bootstrap/43994
15127         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
15128         instead of DF_REF_REAL_REG.
15129
15130 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
15131
15132         PR target/43888
15133         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
15134         handling to still return true for x64 targets.
15135
15136 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
15137
15138         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
15139
15140 2010-05-06  Jan Hubicka  <jh@suse.cz>
15141
15142         PR tree-optimization/43791
15143         * ipa-inline.c (update_caller_keys): Remove bogus
15144         disregard_inline_limits check.
15145
15146 2010-05-06  Michael Matz  <matz@suse.de>
15147
15148         PR tree-optimization/43984
15149         * tree-ssa-pre.c (inserted_phi_names): Remove.
15150         (inserted_exprs): Change to bitmap.
15151         (create_expression_by_pieces): Set bits, don't append to vector.
15152         (insert_into_preds_of_block): Don't handle inserted_phi_names.
15153         (eliminate): Don't look at inserted_phi_names, remove deleted
15154         insns from inserted_exprs.
15155         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
15156         (init_pre, fini_pre): Allocate and free bitmaps.
15157         (execute_pre): Insert insns on edges before elimination.
15158
15159 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
15160
15161         * tree.c (initializer_zerop): Handle STRING_CST.
15162
15163 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15164
15165         PR 40989
15166         * doc/invoke.texi (Wimplicit): Document as C only.
15167         * opts.c (common_handle_option): Add argument kind.
15168         (handle_option): Rename as read_cmdline_option. Factor out code to...
15169         (handle_option): ... here. New.
15170         (handle_options): Rename as read_cmdline_options.
15171         (decode_options): Update call.
15172         (set_option): Use option index instead of option pointer. Classify
15173         diagnostics correctly.
15174         (enable_warning_as_error): Call handle_option.
15175         * opts.h (set_option): Update declaration.
15176         (handle_option): Declare.
15177         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
15178         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
15179         * c-opts.c (set_Wimplicit): Delete.
15180         (c_family_lang_mask): New static constant.
15181         (c_common_handle_option): Add argument kind. Use handle_option
15182         instead of set_Wimplicit.
15183         (c_common_post_options): warn_implicit and warn_implicit_int
15184         are disabled by default.
15185         * c-common.c (warn_implicit): Do not define here.
15186         * c-common.h (warn_implicit): Do not declare here.
15187         (c_common_handle_option): Update declaration.
15188         * lto-opts.c (lto_reissue_options): Update call to set_option.
15189
15190 2010-05-06  Richard Guenther  <rguenther@suse.de>
15191
15192         PR tree-optimization/43571
15193         * domwalk.c (walk_dominator_tree): Walk the dominator
15194         sons in more optimal order.
15195
15196 2010-05-06  Richard Guenther  <rguenther@suse.de>
15197
15198         PR tree-optimization/43934
15199         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
15200         (stmt_cost): Likewise.
15201         (extract_true_false_args_from_phi): New helper.
15202         (determine_max_movement): For PHI nodes verify we can hoist them
15203         and compute their cost.
15204         (determine_invariantness_stmt): Handle PHI nodes.
15205         (move_computations_stmt): Likewise.  Hoist PHI nodes in
15206         if-converted form using COND_EXPRs.
15207         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
15208         (tree_ssa_lim): Likewise.
15209         * tree-flow.h (tree_ssa_lim): Adjust prototype.
15210         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
15211
15212 2010-05-06  Richard Guenther  <rguenther@suse.de>
15213
15214         PR tree-optimization/43987
15215         * tree-ssa-structalias.c (could_have_pointers): For possibly
15216         address-taken variables force pointers to be recorded.
15217         (create_variable_info_for_1): Likewise.
15218         (push_fields_onto_fieldstack): Pass in wheter all fields
15219         must have pointers.
15220         (find_func_aliases): Query types instead of vars whether
15221         they contain pointers where appropriate.
15222
15223 2010-05-06  Jan Hubicka  <jh@suse.cz>
15224
15225         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
15226         (record_reference, mark_address, mark_load, mark_store): Record
15227         references.
15228         (record_references_in_initializer): Update call of record_references.
15229         (rebuild_cgraph_edges): Remove all references before rebuiding.
15230         * cgraph.c (cgraph_create_node): Clear ref list.
15231         (cgraph_remove_node): Remove references.
15232         (dump_cgraph_node): Dump references.
15233         (cgraph_clone_node): Clone references.
15234         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
15235         (struct cgraph_node, varpool_node): Add ref_lst.
15236         * ipa-ref.c: New file.
15237         * ipa-ref.h: New file.
15238         * ipa-ref-inline.h: New file.
15239         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
15240         (referenced_from_other_partition_p): New function.
15241         (lto_output_varpool_node): Take set arugment; call
15242         referenced_from_other_partition.
15243         (lto_output_ref): New.
15244         (add_references): New.
15245         (output_refs): New.
15246         (output_cgraph): Compute boundary based on references; output refs.
15247         (output_varpool): Accept cgraph_node_set argument.
15248         (input_ref): New.
15249         (input_refs): New.
15250         (input_cgraph): Call input_refs.
15251         * lto-section-in.c (lto_section_name): Add refs.
15252         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
15253         (ipa-ref.o): New file.
15254         * varpool.c (varpool_node): Clear ipa ref list.
15255         (varpool_remove_node): Remove references.
15256         (dump_varpool_node): Dump references.
15257         (varpool_assemble_decl): Only compile finalized ones.
15258         (varpool_extra_name_alias): Initialize ref list.
15259         * lto-streamer.c (lto-get_section_name): Add .refs section.
15260         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
15261         (referenced_from_other_partition_p): Declared.
15262
15263 2010-05-06  Ira Rosen  <irar@il.ibm.com>
15264
15265         PR tree-optimization/43901
15266         * tree-vect-stmts.c (vectorizable_call): Assert that vector
15267         type is not NULL if it's transformation phase, and return
15268         FALSE if it's analysis.
15269         (vectorizable_conversion, vectorizable_operation,
15270         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
15271
15272 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
15273
15274         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
15275         Delete.
15276         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
15277         New define.
15278         * config/mips/mips-protos.h
15279         (mips_small_register_classes_for_mode_p): Delete prototype.
15280
15281 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
15282
15283         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
15284         * config/arm/arm.c (multiple_operation_profitable_p,
15285         compute_offset_order): New static functions.
15286         (load_multiple_sequence, store_multiple_sequence): Use them.
15287         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
15288         memory offsets, not register numbers.
15289         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
15290
15291 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
15292
15293         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
15294         (get_pending_sizes, put_pending_size, put_pending_sizes):
15295         Update the uses of pending_sizes.
15296         * c-decl.c (store_parm_decls): Likewise.
15297         * c-tree.h (struct c_arg_info): Likewise.
15298         * tree.h: Update the prototype for get_pending_sizes and
15299         put_pending_sizes.
15300
15301 2010-05-05  Jason Merrill  <jason@redhat.com>
15302
15303         PR debug/43370
15304         * c-common.c (handle_aligned_attribute): Respect
15305         ATTR_FLAG_TYPE_IN_PLACE.
15306
15307         PR testsuite/43758
15308         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
15309         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
15310         (TARGET_INITIALIZER): Use it.
15311         * c-common.c (attribute_takes_identifier_p): Call it.
15312         * c-common.h: Update prototype.
15313         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
15314         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
15315
15316 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
15317
15318         PR debug/43950
15319         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
15320         DW_ID_down_case for Fortran compilation units.
15321
15322 2010-05-05  Jan Hubicka  <jh@suse.cz>
15323
15324         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
15325         handle aliases.
15326
15327 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
15328
15329         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
15330         a variable-sized RESULT_DECL.
15331
15332 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
15333
15334         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
15335
15336 2010-05-05  Jason Merrill  <jason@redhat.com>
15337
15338         PR c++/43787
15339         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
15340         returns GS_OK.
15341         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
15342
15343 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
15344             Jakub Jelinek  <jakub@redhat.com>
15345
15346         PR debug/43478
15347         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
15348         (dead_debug_init, dead_debug_finish): New functions.
15349         (dead_debug_add, dead_debug_insert_before): Likewise.
15350         (df_note_bb_compute): Initialize a dead_debug object, add dead
15351         debug uses to it, insert debug bind insns before death insns,
15352         reset debug insns that refer to pending uses at the end.
15353         * rtl.h (make_debug_expr_from_rtl): New prototype.
15354         * varasm.c (make_debug_expr_from_rtl): New function.
15355
15356 2010-05-05  Jan Hubicka  <jh@suse.cz>
15357
15358         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
15359         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
15360         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
15361         lto_varpool_encoder_deref, lto_varpool_encoder_size,
15362         lto_varpool_encoder_encode_initializer_p,
15363         lto_set_varpool_encoder_encode_initializer): New functions.
15364         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
15365         call output_varpool.
15366         (input_varpool_node): Do not always set analyzed.
15367         (input_cgraph_1): Return vector of cgraph nodes.
15368         (input_varpool_1): Return vector of varpools.
15369         (input_cgraph): Free the vectors.
15370         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15371         output only initializers needed.
15372         (lto_output): Only call output_cgraph.
15373         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
15374         * lto-section-out.c (lto_new_out_decl_state): Initialize
15375         state->varpool_node_encoder.
15376         * lto-streamer.h (lto_varpool_encoder_d): New.
15377         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
15378         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
15379         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
15380         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
15381         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
15382         Declare.
15383         (output_varpool, input_varpool): Remove declarations.
15384
15385 2010-05-05  Jan Hubicka  <jh@suse.cz>
15386
15387         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
15388         with body can prevail.
15389
15390 2010-05-05  Jan Hubicka  <jh@suse.cz>
15391
15392         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
15393         size.
15394
15395 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15396
15397         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
15398
15399         * gengtype.h (erro_at_line): Constify pos argument.
15400
15401         * gengtype.c: Include hashtab.h.
15402         (enum gc_used): Document GC_MAYBE_POINTED_TO.
15403         (error_at_line): Constify pos argument.
15404         (do_typedef): Initialize p->opt field.
15405         (get_file_gtfilename): Fix comment typo.
15406         (struct walk_type_data): Constify line field.
15407         (get_output_file_for_structure): New function.
15408         (write_local_func_for_structure): Constify orig_s argument.
15409         Use get_output_file_for_structure.
15410         (write_func_for_structure): Use get_output_file_for_structure.
15411         (INDENT): New define.
15412         (dump_pair, dump_type, dump_type_list, dump_typekind)
15413         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
15414         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
15415         functions.
15416         (seen_types): New variable.
15417         (main): New variable do_dump.  Process "-d" command line option.
15418         Call dump_everything if dump requested.
15419
15420 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
15421
15422         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
15423         in a temporary instead of invoking the macro multiple times.
15424         (track_expr_p): Likewise.
15425
15426 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
15427
15428         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
15429         per new semantics.
15430         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
15431         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
15432         conditions for printing notes.
15433         * common.opt (-Wcoverage-mismatch): Allow negative, default to
15434         true, update documentation.
15435         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
15436
15437 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
15438
15439         PR c/43981
15440         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
15441         on dimen.
15442
15443 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
15444
15445         PR target/43799
15446         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
15447         (*sse_prologue_save_insn1): Likewise.
15448         (SSE prologue save splitter): Likewise.
15449
15450 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
15451
15452         * tree.c (free_lang_data_in_one_sizepos): New inline function.
15453         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
15454         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
15455         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
15456         all decls.  Call it on DECL_FIELD_OFFSET of fields.
15457         (find_decls_types_r): Follow DECL_VALUE_EXPR.
15458         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
15459
15460 2010-05-04  Martin Jambor  <mjambor@suse.cz>
15461
15462         * tree-sra.c (build_access_from_expr_1): The first parameter type
15463         changed to simple tree.
15464         (build_access_from_expr): Likewise, gsi parameter was eliminated.
15465         (scan_assign_result): Renamed to assignment_mod_result, enum elements
15466         renamed as well.
15467         (build_accesses_from_assign): Removed all parameters except for a
15468         simple gimple statement.  Now returns a simple bool.
15469         (scan_function): All non-analysis parts moved to separate functions
15470         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
15471         parameters and updated both callers.
15472         (sra_modify_expr): Removed parameter data.
15473         (sra_modify_function_body): New function.
15474         (perform_intra_sra): Call sra_modify_function_body to modify the
15475         function body.
15476         (replace_removed_params_ssa_names): Parameter data changed into
15477         adjustments vector.
15478         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
15479         changed the parameter dont_convert to convert with the opposite
15480         meaning.
15481         (sra_ipa_modify_assign): Parameter data changed into adjustments
15482         vector, return value changed to bool.
15483         (ipa_sra_modify_function_body): New function.
15484         (sra_ipa_reset_debug_stmts): Updated a comment.
15485         (modify_function): Use ipa_sra_modify_function_body to modify function
15486         body.
15487
15488 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
15489
15490         PR middle-end/43671
15491         * alias.c (true_dependence): Handle the same VALUE in x and mem.
15492         (canon_true_dependence): Likewise.
15493         (write_dependence_p): Likewise.
15494
15495 2010-05-04  Jan Hubicka  <jh@suse.cz>
15496
15497         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
15498         * cgraphbuild.c: Include ipa-utils.h
15499         (record_reference_ctx): New struct.
15500         (record_reference): Simplify to work on initializers; not statements.
15501         (mark_address, mark_load, mark_store): New.
15502         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
15503         walk PHI nodes too.
15504         (record_references_in_initializer): Update use of record_reference.
15505         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
15506         walk PHI nodes too.
15507
15508 2010-05-04  Jan Hubicka  <jh@suse.cz>
15509
15510         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
15511         node will be removed anyway.
15512         (lto_varpool_replace_node): Allow also unanalyzed nodes;
15513         relink aliases of node into prevailing node.
15514         * varpool.c (varpool_remove_node): Remove aliases properly;
15515         when removing node, remove all its aliases too; remove DECL_INITIAL
15516         of removed node; ggc_free the varpool node.
15517
15518 2010-05-04  Richard Guenther  <rguenther@suse.de>
15519
15520         PR tree-optimization/43879
15521         * tree-ssa-structalias.c (alias_get_name): Use
15522         DECL_ASSEMBLER_NAME if available.
15523         (create_function_info_for): Return the varinfo node.
15524         (ipa_pta_execute): Associate same-body aliases and extra names
15525         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
15526
15527 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
15528
15529         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
15530
15531 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
15532
15533         PR bootstrap/43964
15534         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
15535         only if HONOR_REG_ALLOC_ORDER is not defined.
15536
15537 2010-05-04  Richard Guenther  <rguenther@suse.de>
15538
15539         PR tree-optimization/43949
15540         * tree-vrp.c (extract_range_from_binary_expr): Only handle
15541         TRUNC_MOD_EXPR.
15542
15543 2010-04-26  Jason Merrill  <jason@redhat.com>
15544
15545         * c.opt (-fstrict-enums): New.
15546         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
15547
15548 2010-05-03  David Ung  <davidu@mips.com>
15549             James E. Wilson  <wilson@codesourcery.com>
15550
15551         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
15552         emit the trap instruction before the divide for TUNE_74K.
15553
15554 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
15555
15556         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
15557         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
15558         based on the above, for new target hook.
15559
15560         * hooks.c (hook_bool_mode_true): New generic hook.
15561         * hooks.h (hook_bool_mode_true): Add prototype.
15562
15563         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
15564         target hook.
15565         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
15566         target hook, set to hook_bool_mode_false.
15567         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
15568         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
15569         with targetm.small_register_classes_for_mode_p.
15570         (find_reusable_reload): Likewise.
15571         (combine_reloads): Likewise.
15572         * reload1.c (reload_as_needed): Likewise.
15573         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
15574         * ifcvt.c (noce_process_if_block, check_cond_move_block,
15575         dead_or_predicable): Likewise.
15576         * regmove.c (optimize_reg_copy_1): Likewise.
15577         * calls.c (prepare_call_address): Likewise.
15578         (precompute_register_parameters): Likewise.
15579
15580         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
15581         hook definition.
15582         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
15583         implementation of the hook that considers all register classes
15584         small except for SH64.
15585         (sh_override_options): Use the new hook.
15586         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
15587         Add prototype.
15588
15589         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
15590         hook definition.
15591         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
15592         implementation of the hook that considers all register classes
15593         small for THUMB1.
15594         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
15595         Add prototype.
15596
15597         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
15598         hook definition.
15599         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
15600         implementation of the hook that considers all register classes
15601         small for MIPS16.
15602         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
15603         Add prototype.
15604
15605         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
15606         hook definition.
15607         * config/m32c/m32c.h: Likewise.
15608         * config/pdp11/pdp11.h: Likewise.
15609         * config/avr/avr.h: Likewise.
15610         * config/xtensa/xtensa.h: Likewise.
15611         * config/m68hc11/m68hc11.h: Likewise.
15612         * config/mn10300/mn10300.h: Likewise.
15613         * config/mcore/mcore.h: Likewise.
15614         * config/h8300/h8300.h: Likewise.
15615         * config/bfin/bfin.h: Likewise.
15616
15617         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
15618         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
15619
15620 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
15621
15622         * double-int.h (tree_to_double_int): Remove macro.
15623         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
15624         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
15625         (tree_to_double_int): New function.
15626         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
15627         Move ...
15628         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
15629
15630 2010-05-03  Richard Guenther  <rguenther@suse.de>
15631
15632         PR tree-optimization/43971
15633         * tree-ssa-structalias.c (get_constraint_for_1): Fix
15634         constraints in the !flag_delete_null_pointer_checks case.
15635
15636 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
15637
15638         PR debug/43972
15639         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
15640         result mode matches original rtl mode.
15641
15642 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
15643
15644         PR target/43888
15645         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
15646
15647 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
15648
15649         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
15650         when processing flag options.
15651
15652 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
15653
15654         * gcov-iov.c (main): Change format string placeholder
15655         from %#08x to 0x%08x.
15656         * genchecksum.c (dosum): Change format string placeholder
15657         from %#02x to 0x%02x.
15658
15659 2010-05-02  Richard Guenther  <rguenther@suse.de>
15660
15661         PR tree-optimization/43879
15662         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
15663
15664 2010-05-02  Bruno Haible  <bruno@clisp.org>
15665
15666         * doc/extend.texi (Function Attributes): Fix a typo.
15667
15668 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
15669
15670         Revert:
15671         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
15672         placeholder from 0x%x to %#x.
15673         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
15674         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
15675         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
15676         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
15677         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
15678         * config/i386/i386.c (ix86_target_string): Ditto.
15679         * config/i386/i386.c (output_pic_addr_const): Ditto.
15680         (print_operand): Ditto.
15681
15682 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
15683
15684         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
15685         placeholder from 0x%x to %#x.
15686         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
15687         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
15688         (ASM_OUTPUT_DEBUG_DATA): Ditto.
15689         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
15690         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
15691         * optc-gen.awk: Ditto.
15692         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
15693         (HOST_WIDE_INT_PRINT_HEX): Ditto.
15694         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
15695         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
15696
15697 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
15698
15699         * target.h (struct calls): Add function_value_regno_p field.
15700         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
15701         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
15702         * targhooks.c (default_function_value_regno_p): New function.
15703         * targhooks.h (default_function_value_regno_p): Declare function.
15704         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
15705         * builtins.c. (apply_result_size): (Ditto.).
15706         * combine.c. (likely_spilled_retval_p): (Ditto.).
15707         * mode-switching.c. Include 'target.h'.
15708         (create_pre_exit): Use function_value_regno_p hook.
15709         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
15710         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
15711         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
15712
15713         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
15714         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
15715         (ix86_function_value_regno_p): Declare as static, change argument
15716         type to const unsigned int.
15717         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
15718
15719 2010-05-01  Richard Guenther  <rguenther@suse.de>
15720
15721         PR tree-optimization/43949
15722         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
15723         types.
15724         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
15725
15726 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
15727
15728         * rtl.h (CONST_DOUBLE_P): Define.
15729         (rtx_to_double_int): Declare.
15730         * emit-rtl.c (rtx_to_double_int): New function.
15731         * dwarf2out.c (insert_double): New function.
15732         (loc_descriptor, add_const_value_attribute): Clean up, use
15733         rtx_to_double_int and insert_double functions.
15734
15735 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
15736
15737         * doc/extend.texi (Inline): Add missing return keyword to examples.
15738         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
15739         "command-line".
15740
15741 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
15742
15743         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
15744         the variable part of the offset as well.  Use highest_pow2_factor for
15745         all alignment checks.
15746
15747 2010-04-30  Richard Guenther  <rguenther@suse.de>
15748
15749         PR tree-optimization/43879
15750         * tree-ssa-structalias.c (type_could_have_pointers): Functions
15751         can have pointers.
15752
15753 2010-04-30  Jan Hubicka  <jh@suse.cz>
15754
15755         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
15756         varpool.
15757         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
15758
15759 2010-04-30  Jan Hubicka  <jh@suse.cz>
15760
15761         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
15762         New.
15763         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
15764         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
15765         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
15766         cgraph_node_set_needs_ltrans_p): Remove.
15767
15768 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
15769
15770         * sdbout.c: Include vec.h, do not include varray.h.
15771         (deferred_global_decls, sdbout_global_decl,
15772         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
15773         * toplev.c: Do not include varray.h.
15774         (dump_memory_report): Do not dump VARRAY statistics.
15775         * gengtype.c (open_base_file): Ignore varray.h.
15776         * Makefile.in: Update for abovementioned changes.
15777         Remove all traces of varray.c and varray.h.
15778         * varray.c: Remove file.
15779         * varray.h: Remove file.
15780
15781 2010-04-30  Jan Hubicka  <jh@suse.cz>
15782
15783         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
15784         references.
15785
15786 2010-04-30  Jan Hubicka  <jh@suse.cz>
15787
15788         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
15789         needed.
15790
15791 2010-04-30  Richard Guenther  <rguenther@suse.de>
15792
15793         * tree-ssa-structalias.c (get_constraint_for_1): Generate
15794         constraints for CONSTRUCTOR.
15795
15796 2010-04-30  Richard Guenther  <rguenther@suse.de>
15797
15798         PR lto/43946
15799         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
15800         first after all lowering passes.
15801
15802 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
15803
15804         * toplev.c: Include varray.h for statistics dumping.
15805         * tree.h: Do not declare varray_head_tag.
15806         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
15807         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
15808         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
15809         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
15810         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
15811         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
15812         c-common.c, c-common.h, reg-stack.c, basic-block.h,
15813         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
15814         include varray.h.
15815         * Makefile.in: Update for abovementioned changes.
15816
15817 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
15818
15819         PR debug/43942
15820         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
15821
15822 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
15823
15824         * config/picochip/picochip.c (picochip_legitimize_address): Define.
15825         Use this function to do machine-specific conversion.
15826         (picochip_legitimize_reload_address): Likewise.
15827         (picochip_legitimate_address_p): Check valid base register only if
15828         strict.
15829         (picochip_check_conditional_copy): Check for modw only if opnd is
15830         register.
15831         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
15832         to call the function in c.
15833         * config/picochip/picochip-protos.h
15834         (picochip_legitimize_reload_address): Define.
15835         * config/picochip/picochip.md (supported_compare1): Define.
15836
15837 2010-04-30  Jan Hubicka  <jh@suse.cz>
15838
15839         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
15840         (cgraph_global_info): Remove inlined.
15841         (LTO_cgraph_tag_names): Remove.
15842         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
15843         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
15844         simplify cgraph tags and document.
15845         (lto_output_node): Use only LTO_cgraph_unavail_node and
15846         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
15847         for_functions_valid, global info, process and output flags.
15848         (input_overwrite_node): Initialize estimated stack size and
15849         estimated growth.  Do not read flags we no longer store.
15850         (input_node): Likewise do not read info no longer stored.
15851         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
15852         flag.
15853
15854 2010-04-30  Richard Guenther  <rguenther@suse.de>
15855
15856         PR tree-optimization/43879
15857         * tree-ssa-structalias.c (get_constraint_for_1): Properly
15858         handle non-zero initializers.
15859
15860 2010-04-30  Richard Guenther  <rguenther@suse.de>
15861
15862         * builtins.c (fold_builtin_1): Delete free (0).
15863
15864 2010-04-29  Jan Hubicka  <jh@suse.cz>
15865
15866         * gengtype.c (open_base_files): Add lto-streamer.h
15867         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
15868         (pass_ipa_cp): GGC collect.
15869         * toplev. (compile_file): Do not output symbols.
15870         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
15871         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
15872         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
15873         * lto-section-in.c: Include ggc.h
15874         (lto_new_in_decl_state): Alloc in GGC.
15875         (lto_delete_in_decl_state): Likewise.
15876         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
15877         Collect.
15878
15879 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
15880
15881         PR target/42895
15882         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
15883         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
15884         (HONOR_REG_ALLOC_ORDER): Describe new macro.
15885         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
15886         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
15887         account only if HONOR_REG_ALLOC_ORDER is not defined.
15888         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
15889         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
15890
15891 2010-04-29  Jon Grant  <04@jguk.org>
15892
15893         * collect2.c (vflag): Change type from int to bool.
15894         (debug): Likewise.
15895         (helpflag): New global bool.
15896         (main): Set vflag and debug with boolean, not integer truth values.
15897         Accept new "--help" option and output usage text if found.
15898         * collect2.h (vflag): Update prototype.
15899         (debug): Likewise.
15900
15901 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
15902
15903         PR bootstrap/43936
15904         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
15905
15906 2010-04-29  Richard Guenther  <rguenther@suse.de>
15907
15908         PR bootstrap/43935
15909         * plugin.h (invoke_plugin_callbacks): Annotate arguments
15910         with ATTRIBUTE_UNUSED.
15911
15912 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
15913
15914         PR target/43921
15915         * config/i386/i386.c (get_some_local_dynamic_name): Replace
15916         INSN_P with NONDEBUG_INSN_P.
15917         (distance_non_agu_define): Likewise.
15918         (distance_agu_use): Likewise.
15919
15920 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
15921
15922         From Dominique d'Humieres  <dominiq@lps.ens.fr>
15923         PR bootstrap/43858
15924         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
15925         test_set.
15926
15927 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
15928
15929         * plugin.h (invoke_plugin_callbacks): New inline function.
15930         * plugin.c (flag_plugin_added): New global flag.
15931         (add_new_plugin): Initialize above flag.
15932         (invoke_plugin_callbacks): Rename to ...
15933         (invoke_plugin_callbacks_full): ... this.
15934
15935 2010-04-28  Jan Hubicka  <jh@suse.cz>
15936
15937         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
15938         (lto_varpool_replace_node): New.
15939         (lto_symtab_resolve_symbols): Resolve varpool nodes.
15940         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
15941         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
15942         * cgraph.h (varpool_node_ptr): New type.
15943         (varpool_node_ptr): New vector.
15944         (varpool_node_set_def): New structure.
15945         (varpool_node_set): New type.
15946         (varpool_node_set): New vector.
15947         (varpool_node_set_element_def): New structure.
15948         (varpool_node_set_element, const_varpool_node_set_element): New types.
15949         (varpool_node_set_iterator): New type.
15950         (varpool_node): Add prev pointers, add used_from_other_partition,
15951         in_other_partition.
15952         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
15953         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
15954         varpool_get_node, varpool_remove_node): Declare.
15955         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
15956         varpool_node_set_size): New inlines.
15957         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
15958         * tree-pass.h (varpool_node_set_def): Forward declare.
15959         (ipa_opt_pass_d): Summary writting takes vnode sets too.
15960         (ipa_write_optimization_summaries): Update prototype.
15961         * ipa-cp.c (ipcp_write_summary): Update.
15962         * ipa-reference.c (ipa_reference_write_summary): Update.
15963         * lto-cgraph.c (lto_output_varpool_node): New static function.
15964         (output_varpool): New function.
15965         (input_varpool_node): New static function.
15966         (input_varpool_1): New function.
15967         (input_cgraph): Input varpool.
15968         * ipa-pure-const.c (pure_const_write_summary): Update.
15969         * lto-streamer-out.c (lto_output): Update, output varpool too.
15970         (write_global_stream): Kill WPA hack.
15971         (produce_asm_for_decls): Update.
15972         (output_alias_pair_p): Handle variables.
15973         (output_unreferenced_globals): Output only needed partition of varpool.
15974         * ipa-inline.c (inline_write_summary): Update.
15975         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
15976         cgraph.
15977         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
15978         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
15979         varpool_node_set_new, varpool_node_set_add,
15980         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
15981         debug_varpool_node_set): New functions.
15982         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
15983         (execute_one_pass): Process new decls too.
15984         (ipa_write_summaries_2): Pass around vsets.
15985         (ipa_write_summaries_1): Likewise.
15986         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
15987         to add.
15988         (ipa_write_optimization_summaries_1): Pass around vsets.
15989         (ipa_write_optimization_summaries): Likewise.
15990         * varpool.c (varpool_get_node): New.
15991         (varpool_node): Update doubly linked lists.
15992         (varpool_remove_node): New.
15993         (dump_varpool_node): More dumping.
15994         (varpool_enqueue_needed_node): Update doubly linked lists.
15995         (decide_is_variable_needed): Kill ltrans hack.
15996         (varpool_finalize_decl): Kill lto hack.
15997         (varpool_assemble_decl): Skip decls in other partitions.
15998         (varpool_assemble_pending_decls): Update doubly linkes lists.
15999         (varpool_empty_needed_queue): Likewise.
16000         (varpool_extra_name_alias): Likewise.
16001         * lto-streamer.c (lto_get_section_name): Add vars section.
16002         * lto-streamer.h (lto_section_type): Update.
16003         (output_varpool, input_varpool): Declare.
16004
16005 2010-04-28  Mike Stump  <mikestump@comcast.net>
16006
16007         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
16008
16009 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
16010
16011         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
16012         record or union type with RECORD_OR_UNION_TYPE_P predicate.
16013         (lto_input_ts_type_tree_pointers): Likewise.
16014         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
16015         (lto_output_ts_type_tree_pointers): Likewise.
16016
16017 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
16018
16019         Uniquization of constants at the Tree level
16020         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
16021         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
16022         bit to the end.
16023         (tree_output_constant_def): Declare.
16024         * gimplify.c (gimplify_init_constructor): When using block copy, first
16025         uniquize the constant constructor on the RHS.
16026         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
16027         DECL_IN_CONSTANT_POOL flag.
16028         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
16029         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
16030         constant pool.
16031         (assemble_variable): Deal with symbols belonging to the tree constant
16032         pool.
16033         (get_constant_section): Add ALIGN parameter and simplify.
16034         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
16035         (assemble_constant_contents): Use the expression of the VAR_DECL.
16036         (output_constant_def_contents): Use the alignment of the VAR_DECL.
16037         (tree_output_constant_def): New global function.
16038         (mark_constant): Use the expression of the VAR_DECL.
16039         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
16040         its expression.
16041         (output_object_block): Likewise and assemble the expression.
16042
16043 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
16044
16045         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
16046         hash_tree, eq_tree): New tree hash table.
16047         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
16048         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
16049         lto_orig_address_remove): Reimplement.
16050
16051 2010-04-28  Xinliang David Li  <davidxl@google.com>
16052
16053         PR c/42643
16054         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
16055         (compute_uninit_opnds_pos): New function.
16056         (is_non_loop_exit_postdominating): New function.
16057         (compute_control_dep_chain): New function.
16058         (find_pdom): New function.
16059         (convert_control_dep_chain_into_preds): New function.
16060         (find_predicates): New function.
16061         (find_control_equiv_block): New function.
16062         (collect_phi_def_edges): New function.
16063         (find_def_preds): New function.
16064         (find_dom): New function.
16065         (dump_predicates): New function.
16066         (get_cmp_code): New function.
16067         (is_value_included_in): New function.
16068         (find_matching_predicate_in_rest_chains): New function.
16069         (use_pred_not_overlap_with_undef_path_pred): New function.
16070         (is_use_properly_guarded): New function.
16071         (normalize_cond_1): New function.
16072         (is_and_or_or): New function.
16073         (normalize_cond): New function.
16074         (is_gcond_subset_of): New function.
16075         (is_subset_of_any): New function.
16076         (is_or_set_subset_of): New function.
16077         (is_and_set_subset_of): New function.
16078         (is_norm_cond_subset_of): New function.
16079         (is_pred_expr_subset_of): New function.
16080         (is_pred_chain_subset_of): New function.
16081         (is_included_in): New function.
16082         (is_superset_of): New function.
16083         (find_uninit_use): New function.
16084         (warn_uninitialized_phi): New function.
16085         (compute_possibly_undefined_names): New function.
16086         (ssa_undefined_value_p): New function.
16087         (execute_late_warn_uninitialized): New function.
16088         * tree-ssa.c (ssa_undefined_value_p): Removed.
16089         (warn_uninit): Changed to extern.
16090         (warn_uninitialized_phi): Removed.
16091         (warn_uninitialized_vars): Changed to extern.
16092         (execute_late_warn_uninitialized): Removed
16093         * tree-flow.h: Add new prototypes.
16094         * timevar.def: Add new time variable.
16095         * Makefile.in: Add new build file.
16096
16097 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
16098
16099         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
16100         type if available.
16101
16102 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16103
16104         PR target/22224
16105         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
16106
16107 2010-04-28  Martin Jambor  <mjambor@suse.cz>
16108
16109         * cgraph.h (struct cgraph_node): New field indirect_calls.
16110         (struct cgraph_indirect_call_info): New type.
16111         (struct cgraph_edge): Removed field indirect_call. New fields
16112         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
16113         (cgraph_create_indirect_edge): Declare.
16114         (cgraph_make_edge_direct): Likewise.
16115         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
16116         * ipa-prop.h (struct ipa_param_call_note): Removed.
16117         (struct ipa_node_params): Removed field param_calls.
16118         (ipa_create_all_structures_for_iinln): Declare.
16119         * cgraph.c: Described indirect edges and uids in initial comment.
16120         (cgraph_add_edge_to_call_site_hash): New function.
16121         (cgraph_edge): Search also among the indirect edges, use
16122         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
16123         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
16124         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
16125         site hash.
16126         (initialize_inline_failed): Assign a reason to indirect edges.
16127         (cgraph_create_edge_1): New function.
16128         (cgraph_create_edge): Moved some functionality to
16129         cgraph_create_edge_1.
16130         (cgraph_create_indirect_edge): New function.
16131         (cgraph_edge_remove_callee): Add an assert checking for
16132         non-indirectness.
16133         (cgraph_edge_remove_caller): Special-case indirect edges.
16134         (cgraph_remove_edge): Likewise.
16135         (cgraph_set_edge_callee): New function.
16136         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
16137         (cgraph_make_edge_direct): New function.
16138         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
16139         the declaration of the call statement matches.
16140         (cgraph_node_remove_callees): Special-case indirect edges.
16141         (cgraph_clone_edge): Likewise.
16142         (cgraph_clone_node): Clone also the indirect edges.
16143         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
16144         indirect_call, dump count of indirect_calls edges.
16145         * ipa-prop.c (iinlining_processed_edges): New variable.
16146         (ipa_note_param_call): Create indirect edges instead of
16147         creating notes.  New parameter node.
16148         (ipa_analyze_call_uses): New parameter node, pass it on to
16149         ipa_note_param_call.
16150         (ipa_analyze_stmt_uses): Likewise.
16151         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
16152         (print_edge_addition_message): Work on edges rather than on notes.
16153         (update_call_notes_after_inlining): Likewise, renamed to
16154         update_indirect_edges_after_inlining.
16155         (ipa_create_all_structures_for_iinln): New function.
16156         (ipa_free_node_params_substructures): Do not free notes.
16157         (ipa_edge_duplication_hook): Propagate bits within
16158         iinlining_processed_edges bitmap.
16159         (ipa_node_duplication_hook): Do not duplicate notes.
16160         (free_all_ipa_structures_after_ipa_cp): Renamed to
16161         ipa_free_all_structures_after_ipa_cp.
16162         (free_all_ipa_structures_after_iinln): Renamed to
16163         ipa_free_all_structures_after_iinln.
16164         (ipa_write_param_call_note): Removed.
16165         (ipa_read_param_call_note): Removed.
16166         (ipa_write_indirect_edge_info): New function.
16167         (ipa_read_indirect_edge_info): Likewise.
16168         (ipa_write_node_info): Do not stream notes, do stream information
16169         in indirect edges.
16170         (ipa_read_node_info): Likewise.
16171         (lto_ipa_fixup_call_notes): Removed.
16172         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
16173         * ipa-inline.c (pass_ipa_inline): Likewise.
16174         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
16175         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
16176         * tree-inline.c (copy_bb): Removed an unnecessary double check for
16177         is_gimple_call.
16178         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
16179         edges.
16180         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
16181         (output_cgraph): Stream also indirect edges.
16182         (lto_output_edge): Added capability to stream indirect edges.
16183         (input_edge): Likewise.
16184         (input_cgraph_1): Likewise.
16185         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
16186         of indirect edges.
16187
16188 2010-04-28  Richard Guenther  <rguenther@suse.de>
16189
16190         PR tree-optimization/43879
16191         PR tree-optimization/43909
16192         * tree-ssa-structalias.c (struct variable_info): Add
16193         only_restrict_pointers flag.
16194         (new_var_info): Initialize it.  Increment stats.total_vars here.
16195         (create_function_info_for): Do not increment stats.total_vars here.
16196         (get_function_part_constraint): Fix build with C++.
16197         (insert_into_field_list): Remove.
16198         (push_fields_onto_fieldstack): Properly merge fields.
16199         (create_variable_info_for): Split and simplify.
16200         (create_variable_info_for_1): New piece.
16201         (intra_create_variable_infos): Properly make restrict constraints
16202         from parameters.
16203
16204 2010-04-28  Richard Guenther  <rguenther@suse.de>
16205
16206         PR c++/43880
16207         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
16208
16209 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16210             Jan Hubicka  <hubicka@ucw.cz>
16211
16212         * doc/invoke.texi (-Wsuggest-attribute=const,
16213         -Wsuggest-attribute=pure): Document.
16214         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
16215         (function_always_visible_to_compiler_p,
16216         suggest_attribute, warn_function_pure, warn_function_const):
16217         New functions.
16218         (check_call): Improve debug info.
16219         (analyze_function): Do not check availability.
16220         (add_new_function): Check availability.
16221         (propagate): Output warnings.
16222         (skip_function_for_local_pure_const): New function.
16223         (local_pure_const): Use it; output warnings.
16224         * common.opt (Wsuggest-attribute=const,
16225         Wsuggest-attribute=pure): New.
16226
16227 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
16228
16229         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
16230         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
16231         or DW_CFA_def_cfa_offset{,_sf}.
16232
16233 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
16234
16235         * tree.h: Fix truncated long macros.
16236
16237 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
16238
16239         * collect2.c (TARGET_64BIT): Redefine to target's default.
16240         * tlink.c: Likewise.
16241         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
16242         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
16243         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
16244         for underscoring __USER_LABEL_PREFIX__.
16245         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
16246         (SUB_LINK_ENTRY32): New.
16247         (SUB_LINK_ENTRY64): New.
16248         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
16249         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
16250         (SUB_LINK_ENTRY64): New.
16251         (SUB_LINK_ENTRY): New.
16252         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
16253         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
16254         x64 target is choosen.
16255         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
16256         * configure: Regenerated.
16257         * configure.ac (leading-mingw64-underscores): Option added.
16258
16259 2010-04-27  Jan Hubicka  <jh@suse.cz>
16260
16261         * doc/invoke.texi (-fipa-profile): Document.
16262         * opts.c (decode_options): Enable ipa-profile at -O1.
16263         * timevar.def (TV_IPA_PROFILE): Define.
16264         * common.opt (fipa-profile): Add.
16265         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
16266         flag for clones.
16267         (cgraph_propagate_frequency): Handle only local ones.
16268         * tree-pass.h (pass_ipa_profile): Declare.
16269         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
16270         (pass_ipa_profile): Use TV_IPA_PROFILE.
16271         * ipa.c (ipa_profile): New function.
16272         (gate_ipa_profile): Likewise.
16273         (pass_ipa_profile): New global variable.
16274         * passes.c (pass_ipa_profile): New.
16275
16276 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
16277
16278         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
16279
16280 2010-04-27  Martin Jambor  <mjambor@suse.cz>
16281
16282         PR middle-end/43812
16283         * ipa.c (dissolve_same_comdat_group_list): New function.
16284         (function_and_variable_visibility): Call
16285         dissolve_same_comdat_group_list when comdat group contains external or
16286         newly local nodes.
16287         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
16288         lists are circular and that they contain only DECL_ONE_ONLY nodes.
16289
16290 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
16291
16292         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
16293         (const_hash_1) <VECTOR_CST>: New case.
16294         (compare_constant) <VECTOR_CST>: Likewise.
16295         <ADDR_EXPR>: Deal with LABEL_REFs.
16296         (copy_constant) <VECTOR_CST>: New case.
16297
16298 2010-04-27  Jan Hubicka  <jh@suse.cz>
16299
16300         * cgraph.c (cgraph_propagate_frequency): New function.
16301         * cgraph.h (cgraph_propagate_frequency): Declare.
16302         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
16303         cgraph_propagate_frequency.
16304
16305 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
16306
16307         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
16308
16309 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
16310
16311         PR target/40657
16312         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
16313         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
16314         here to determine which regs to push and how much stack to reserve.
16315
16316 2010-04-27  Jie Zhang  <jie@codesourcery.com>
16317
16318         * doc/gimple.texi (gimple_statement_with_ops): Remove
16319         addresses_taken field.
16320         (gimple_statement_with_memory_ops): Likewise.
16321
16322 2010-04-27  Jan Hubicka  <jh@suse.cz>
16323
16324         * tree-inline.c (eni_inlining_weights): Remove.
16325         (estimate_num_insns): Special case more builtins.
16326
16327 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
16328
16329         PR c/32207
16330         * c-typeck.c (build_binary_op): Move forward check for comparison
16331         pointer with null pointer constant and adjust the diagnostic message.
16332
16333 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
16334
16335         PR lto/42776
16336         * configure.ac (gcc_cv_as_section_has_align): Set if installed
16337         binutils supports extended .section directive needed by LTO, or
16338         warn if older binutils found.
16339         (LTO_BINARY_READER): New AC_SUBST'd variable.
16340         (LTO_USE_LIBELF): Likewise.
16341         * gcc/config.gcc (lto_binary_reader): New target-specific configure
16342         variable.
16343         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
16344         (LTO_USE_LIBELF): Likewise.
16345         * configure: Regenerate.
16346
16347         * collect2.c (is_elf): Rename from this ...
16348         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
16349          object files in addition to ELF-formatted ones.
16350         (scan_prog_file): Caller updated.  Also allow for LTO info marker
16351         symbol to be prefixed or not by an extra underscore.
16352
16353         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
16354         * config/i386/winnt.c: Also #include lto-streamer.h
16355         (i386_pe_asm_named_section): Specify 1-byte section alignment for
16356         LTO named sections.
16357         (i386_pe_asm_output_aligned_decl_common): Add comment.
16358         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
16359
16360 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
16361
16362         PR target/43889
16363         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
16364         Add missing earlyclobber for second alternative.
16365
16366 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
16367
16368         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
16369         bits for artificial defs at the top of the block.
16370         * fwprop.c (single_def_use_enter_block): Don't call it.
16371
16372 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
16373
16374         PR 43715
16375         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
16376         instead of "$gcc_cv_objdump -T".
16377         Use "-undefined dynamic_lookup" on darwin.
16378         * gcc/configure: Regenerate.
16379
16380 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
16381
16382         PR c/43893
16383         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
16384
16385 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
16386
16387         * c-parser.c (struct c_token): Move location field up.
16388         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
16389         (struct c_declspecs): Convert typespec_word, storage_class, and
16390         default_int_p into bitfields.
16391         (struct c_declarator): Move loc field up.
16392
16393 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
16394
16395         * cfgloop.h (struct loop): Move can_be_parallel field up.
16396         * ipa-prop.h (struct ip_node_params): Move bitfields up.
16397         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
16398         down.
16399         (struct iv_cand): Convert pos field into a bitfield.
16400         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
16401         field up.
16402         (struct _stmt_vec_info): Shuffle fields for better packing.
16403
16404 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
16405
16406         * varasm.c (IN_NAMED_SECTION): Remove guard.
16407         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
16408         (IN_NAMED_SECTION_P): ...this.
16409         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
16410         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
16411
16412 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
16413
16414         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
16415         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
16416         of shadowing it.  Fix comments.
16417
16418 2010-04-26  Jan Hubicka  <jh@suse.cz>
16419
16420         * cgraph.c (cgraph_create_node): Set node frequency to normal.
16421         (cgraph_clone_node): Copy function frequency.
16422         * cgraph.h (node_frequency): New enum
16423         (struct cgraph_node): Add.
16424         * final.c (rest_of_clean_state): Update.
16425         * lto-cgraph.c (lto_output_node): Output node frequency.
16426         (input_overwrite_node): Input node frequency.
16427         * tre-ssa-loop-ivopts (computation_cost): Update.
16428         * lto-streamer-out.c (output_function): Do not output function
16429         frequency.
16430         * predict.c (maybe_hot_frequency_p): Update and handle functions
16431         executed once.
16432         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
16433         attribute lookup.
16434         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
16435         (compute_function_frequency): Set noreturn functions to be executed
16436         once.
16437         (choose_function_section): Update.
16438         * lto-streamer-in.c (input_function): Do not input function frequency.
16439         * function.c (allocate_struct_function): Do not initialize function
16440         frequency.
16441         * function.h (function_frequency): Remove.
16442         (struct function): Remove function frequency.
16443         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
16444         (try_update): Update.
16445         * tree-inline.c (initialize_cfun): Do not update function frequency.
16446         * passes.c (pass_init_dump_file): Update.
16447         * i386.c (ix86_compute_frame_layout): Update.
16448         (ix86_pad_returns): Update.
16449
16450 2010-04-26  Jie Zhang  <jie@codesourcery.com>
16451
16452         PR tree-optimization/43833
16453         * tree-vrp.c (range_int_cst_p): New.
16454         (range_int_cst_singleton_p): New.
16455         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
16456         when both operands are constants.  Use range_int_cst_p in
16457         BIT_IOR_EXPR case.
16458
16459 2010-04-26  Jan Hubicka  <jh@suse.cz>
16460
16461         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
16462
16463 2010-04-26  Richard Guenther  <rguenther@suse.de>
16464
16465         PR lto/43080
16466         * gimple.c (gimple_decl_printable_name): Deal gracefully
16467         with a NULL DECL_NAME.
16468
16469 2010-04-26  Richard Guenther  <rguenther@suse.de>
16470
16471         PR lto/42425
16472         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
16473         if emitting debug information and it is either a function
16474         or a namespace decl.
16475
16476 2010-04-26  Ira Rosen  <irar@il.ibm.com>
16477
16478         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
16479         determine if the statement is vectorizable, and a macro to access it.
16480         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
16481         Skip statements that can't be vectorized. If the analysis fails,
16482         mark the statement as unvectorizable if vectorizing basic block.
16483         (vect_compute_data_refs_alignment): Likewise.
16484         (vect_verify_datarefs_alignment): Skip statements marked as
16485         unvectorizable. Add print.
16486         (vect_analyze_group_access): Skip statements that can't be
16487         vectorized. If the analysis fails, mark the statement as
16488         unvectorizable if vectorizing basic block.
16489         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
16490         * tree-vect-stmts.c (vectorizable_store): Fix the number of
16491         generated stmts for SLP.
16492         (new_stmt_vec_info): Initialize the new field.
16493         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
16494         statements marked as unvectorizable.
16495
16496 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
16497
16498         * c-common.c (flag_isoc1x): New.
16499         (flag_isoc99): Update comment.
16500         * c-common.h (flag_isoc1x): New.
16501         (flag_isoc99): Update comment.
16502         * c-cppbuiltin.c (builtin_define_float_constants): Also define
16503         __<type>_DECIMAL_DIG__.
16504         * c-opts.c (set_std_c1x): New.
16505         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
16506         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
16507         * c.opt (-std=c1x, -std=gnu1x): New options.
16508         * doc/cpp.texi: Mention -std=c1x.
16509         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
16510         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
16511         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
16512         * doc/standards.texi: Mention C1X.
16513         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
16514         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
16515         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
16516         Define for C1X.
16517
16518 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
16519
16520         * config/i386/gmon-sol2.c (_mcleanup): Change format string
16521         placeholder from 0x%x to %#x.
16522         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
16523         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
16524         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
16525         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
16526         * config/i386/i386.c (ix86_target_string): Ditto.
16527         (output_pic_addr_const): Ditto.
16528         (print_operand): Ditto.
16529
16530 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
16531
16532         * combine.c (find_split_point): Add third argument.  Use it
16533         to find nested multiply-accumulate instructions.  Adjust calls.
16534         (try_combine): Adjust call to find_split_point.
16535
16536 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
16537
16538         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
16539
16540 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
16541
16542         PR tree-optimization/41442
16543         * fold-const.c (merge_truthop_with_opposite_arm): New function.
16544         (fold_binary_loc): Call it.
16545
16546 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16547
16548         * toplev.c (general_init): Set default for fdiagnostics-show-option.
16549         * opts.c (common_handle_option): Allow disabling it.
16550         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
16551
16552 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
16553
16554         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
16555         between modes if both types are integral.
16556
16557 2010-04-23  Richard Guenther  <rguenther@suse.de>
16558
16559         PR tree-optimization/43572
16560         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
16561
16562 2010-04-23  Richard Guenther  <rguenther@suse.de>
16563
16564         PR lto/43455
16565         * tree-inline.c (tree_can_inline_p): Also check compatibility
16566         of return types.
16567
16568 2010-04-23  Martin Jambor  <mjambor@suse.cz>
16569
16570         PR tree-optimization/43846
16571         * tree-sra.c (struct access): New flag grp_assignment_read.
16572         (build_accesses_from_assign): Set grp_assignment_read.
16573         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
16574         (enum mark_read_status): New type.
16575         (analyze_access_subtree): Propagate grp_assignment_read, create
16576         accesses also if both direct_read and root->grp_assignment_read.
16577
16578 2010-04-23  Martin Jambor  <mjambor@suse.cz>
16579
16580         PR middle-end/43835
16581         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
16582         function does not have type attributes.
16583
16584 2010-04-23  Richard Guenther  <rguenther@suse.de>
16585
16586         PR lto/42653
16587         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
16588         of FUNCTION_DECLs.
16589
16590 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16591
16592         * sese.h (create_if_region_on_edge): Remove.
16593
16594         * sese.c (create_if_region_on_edge): Make static.
16595
16596         * tree-inline.c: Do not include ggc.h.
16597
16598         * expr.c: Do not include ggc.h.
16599
16600         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
16601         dependencies.
16602
16603 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
16604
16605         PR target/43744
16606         * config/sh/sh.c (find_barrier): Don't emit a constant pool
16607         in the middle of insns for casesi_worker_2.
16608
16609 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
16610
16611         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
16612
16613 2010-04-22  Ira Rosen  <irar@il.ibm.com>
16614
16615         PR tree-optimization/43842
16616         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
16617         loop unrolling in update of exit phis. Fix comment.
16618         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
16619         least two reduction statements in the loop before starting SLP
16620         analysis.
16621
16622 2010-04-22  Nick Clifton  <nickc@redhat.com>
16623
16624         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
16625
16626 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
16627
16628         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
16629         to simplify a + ~a.
16630
16631 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16632
16633         * tree-parloops.c (loop_parallel_p): New argument
16634         parloop_obstack.  Pass it down.
16635         (parallelize_loops): New variable parloop_obstack.  Initialize it,
16636         pass it down, free it.
16637
16638         * tree-loop-linear.c (linear_transform_loops): Pass down
16639         lambda_obstack.
16640
16641         * tree-data-ref.h (lambda_compute_access_matrices): New argument
16642         of type struct obstack *.
16643
16644         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
16645         scratch_obstack.  Initialize it, pass down, free it.
16646
16647         * lambda.h (lambda_loop_new): Remove.
16648         (lambda_matrix_new, lambda_matrix_inverse)
16649         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
16650         argument of type struct obstack *.
16651
16652         * lambda-trans.c (lambda_trans_matrix_new): New argument
16653         lambda_obstack.  Pass it down, use obstack allocation for ret.
16654         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
16655         it down.
16656
16657         * lambda-mat.c (lambda_matrix_get_column)
16658         (lambda_matrix_project_to_null): Remove.
16659         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
16660         allocation for mat.
16661         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
16662         lambda_obstack.
16663
16664         * lambda-code.c (lambda_loop_new): New function.
16665         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
16666         (lambda_compute_auxillary_space, lambda_compute_target_space)
16667         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
16668         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
16669         (build_access_matrix): New argument lambda_obstack.  Use obstack
16670         allocation for am.
16671         (lambda_compute_step_signs, lambda_compute_access_matrices): New
16672         argument lambda_obstack.  Pass it down.
16673
16674 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
16675
16676         * optabs.h (expand_widening_mult): Declare.
16677
16678 2010-04-22  Richard Guenther  <rguenther@suse.de>
16679
16680         PR tree-optimization/43845
16681         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
16682         lookup the CALL_EXPR function and arguments.
16683
16684 2010-04-22  Nick Clifton  <nickc@redhat.com>
16685
16686         * config/stormy16/stormy16.c
16687         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
16688         * config/stormy16/stormy16.h: Tidy up formatting.
16689         (DONT_USE_BUILTIN_SETJMP): Remove definition.
16690         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
16691         (ineqbranchsi): Delete pattern.
16692         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
16693         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
16694         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
16695         stormy16-lib2-ucmpsi2.c.
16696
16697 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
16698
16699         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
16700         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
16701         extra set merge_set_noclobber, and use it to relax the final test
16702         slightly.
16703         * df.h (df_simulate_find_noclobber_defs): Declare.
16704         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
16705         conditional defs.
16706         (df_simulate_find_noclobber_defs): New function.
16707
16708 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
16709
16710         * config/i386/i386.md: Use {} around multi-line preparation statements.
16711
16712 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16713
16714         * c-tree.h (push_init_level, pop_init_level, set_init_index)
16715         (process_init_element): New argument of type struct obstack *.
16716
16717         * c-typeck.c (push_init_level, pop_init_level, set_designator)
16718         (set_init_index, set_init_label, set_nonincremental_init)
16719         (set_nonincremental_init_from_string, find_init_member)
16720         (output_init_element, output_pending_init_elements)
16721         (process_init_element): New argument braced_init_obstack.  Pass it
16722         down.
16723         (push_range_stack, add_pending_init): New argument
16724         braced_init_obstack.  Use obstack allocation.
16725
16726         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
16727         braced_init_obstack.  Pass it down.
16728         (c_parser_braced_init): New variables ret, braced_init_obstack.
16729         Initialize obstack, pass it down and finally free it.
16730
16731 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
16732
16733         PR middle-end/29274
16734         * tree-pass.h (pass_optimize_widening_mul): Declare.
16735         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
16736         gate_optimize_widening_mul): New static functions.
16737         (pass_optimize_widening_mul): New.
16738         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
16739         <case MULT_EXPR>: Remove support for widening multiplies.
16740         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
16741         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
16742         simplify_gen_unary rather than directly building extensions.
16743         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
16744         WIDEN_MULT_EXPR.
16745         * expmed.c (expand_widening_mult): New function.
16746         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
16747
16748 2010-04-21  Jan Hubicka  <jh@suse.cz>
16749
16750         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
16751         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
16752         * lto-wpa-fixup.c: Remove.
16753         * Makefile.in (lto-wpa-fixup.o): Remove.
16754         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
16755         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
16756         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
16757
16758 2010-04-21  Jan Hubicka  <jh@suse.cz>
16759
16760         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
16761         add write_optimization_summary, read_optimization_summary.
16762         (ipa_write_summaries_of_cgraph_node_set): Remove.
16763         (ipa_write_optimization_summaries): Declare.
16764         (ipa_read_optimization_summaries): Declare.
16765         * ipa-cp.c (pass_ipa_cp): Update.
16766         * ipa-reference.c (pass_ipa_reference): Update.
16767         * ipa-pure-const.c (pass_ipa_pure_const): Update.
16768         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
16769         Update.
16770         * ipa-inline.c (pass_ipa_inline): Update.
16771         * ipa.c (pass_ipa_whole_program): Update.
16772         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
16773         * passes.c (ipa_write_summaries_1): Do not test wpa.
16774         (ipa_write_optimization_summaries_1): New.
16775         (ipa_write_optimization_summaries): New.
16776         (ipa_read_summaries): Do not test ltrans.
16777         (ipa_read_optimization_summaries_1): New.
16778         (ipa_read_optimization_summaries): New.
16779
16780 2010-04-21  Jan Hubicka  <jh@suse.cz>
16781
16782         * lto-cgraph.c (lto_output_node): Do not output comdat groups
16783         for boundary nodes.
16784         (output_cgraph): Do not arrange comdat groups for boundary nodes.
16785
16786 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
16787
16788         PR debug/40040
16789         * dwarf2out.c (add_name_and_src_coords_attributes): Add
16790         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
16791
16792 2010-04-21  Jan Hubicka  <jh@suse.cz>
16793
16794         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
16795
16796 2010-04-21  Jan Hubicka  <jh@suse.cz>
16797
16798         * varpool.c (decide_is_variable_needed): Variable is always needed
16799         during ltrans.
16800
16801 2010-04-21  Jan Hubicka  <jh@suse.cz>
16802
16803         * opts.c (decode_options): Enable pure-const pass for whopr.
16804
16805 2010-04-21  Jan Hubicka  <jh@suse.cz>
16806
16807         * cgraph.c (dump_cgraph_node): Dump also assembler name.
16808         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
16809         at WPA dumping.
16810         (cgraph_decide_inlining): Do not expect callee to be removed in all
16811         cases.
16812
16813 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
16814
16815         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
16816
16817 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
16818
16819         * config/i386/i386.md (x86_shrd): Add athlon_decode and
16820         amdfam10_decode attributes.
16821
16822 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
16823
16824         PR middle-end/43570
16825         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
16826         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
16827         (lower_copyprivate_clauses): Use private var in outer
16828         context instead of original var.  Make sure the types
16829         are correct for VLAs.
16830
16831 2010-04-21  Richard Guenther  <rguenther@suse.de>
16832
16833         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
16834         to non-pointer objects.
16835
16836 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
16837
16838         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
16839         last chain entry if it starts with the still current label.
16840         (add_location_or_const_value_attribute): Check that
16841         loc_list->first->next is NULL instead of comparing ->first with ->last.
16842         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
16843         to add_var_loc_to_decl.
16844
16845         * dwarf2out.c (output_call_frame_info): For dw_cie_version
16846         >= 4 add also address size and segment size fields into CIE header.
16847
16848         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
16849         long as address size is the same as sizeof (void *) and
16850         segment size is 0.
16851         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
16852         address size or segment size is unexpected, return DW_EH_PE_omit.
16853         (classify_object_over_fdes): If get_cie_encoding returned
16854         DW_EH_PE_omit, return -1.
16855         (init_object): If classify_object_over_fdes returned -1,
16856         pretend there were no FDEs at all.
16857
16858 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
16859
16860         * config/i386/i386.md (bswap<mode>2): Macroize expander from
16861         bswap{si,di}2 using SWI48 mode iterator.
16862         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
16863         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
16864         set modrm attribute of bswap insn to 0 and remove length attribute.
16865         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
16866         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
16867         set mode attribute to <MODE> and remove length attribute.
16868
16869 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
16870
16871         PR rtl-optimization/43520
16872         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
16873         zero available registers.
16874
16875 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16876
16877         * builtins.c (fold_builtin_cproj): Fold more cases.
16878
16879 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16880
16881         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
16882         (fold_builtin_1): Fold builtin cproj.
16883         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
16884         Use ATTR_CONST_NOTHROW_LIST.
16885
16886 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
16887
16888         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
16889         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
16890         ffsi2_no_cmove for !TARGET_CMOVE.
16891         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
16892         (ffssi2): Remove expander.
16893         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
16894         mode iterator.
16895         (ctz<mode>2): Ditto from ctz{si,di}2.
16896         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
16897         mode iterator.
16898         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
16899         mode iterator.
16900
16901 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
16902
16903         * dwarf2out.c (AT_linkage_name): Define.
16904         (clone_as_declaration): Handle DW_AT_linkage_name.
16905         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
16906         of DW_AT_MIPS_linkage_name.
16907         (move_linkage_attr): Likewise.
16908         (dwarf2out_finish): Likewise.
16909
16910 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
16911
16912         PR middle-end/41952
16913         * fold-const.c (fold_comparison): New folding rule.
16914
16915 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
16916
16917         * double-int.h (double_int_setbit): Declare.
16918         * double-int.c (double_int_setbit): New function.
16919         * rtl.h (immed_double_int_const): Declare.
16920         * emit-rtl.c (immed_double_int_const): New function.
16921         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
16922         and immed_double_int_const functions.
16923         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
16924         expand_copysign_bit): (Ditto.).
16925         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
16926         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
16927         * dojump.c (prefer_and_bit_test): (Ditto.).
16928         * expr.c (convert_modes, reduce_to_bit_field_precision,
16929         const_vector_from_tree): (Ditto.).
16930         * expmed.c (mask_rtx, lshift_value): (Ditto.).
16931
16932 2010-04-20  Jan Hubicka  <jh@suse.cz>
16933
16934         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
16935         (dump_cgraph_node): Dump new flags.
16936         * cgraph.h (struct cgraph_node): Add flags
16937         reachable_from_other_partition and in_other_partition.
16938         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
16939         other partition can not be removed.
16940         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
16941         the other partition must be output; silence sanity checking on
16942         leaking functions bodies from other paritition.
16943         * lto-cgraph.c (reachable_from_other_partition_p): New function.
16944         (lto_output_node): Output new flags; do not sanity check that inline
16945         clones are output; drop lto_forced_extern_inline_p code; do not mock
16946         visibility flags at partition boundaries.
16947         (add_node_to): New function.
16948         (output_cgraph): Use it to sort functions so masters appear before
16949         clones.
16950         (input_overwrite_node): Input new flags.
16951         * passes.c (ipa_write_summaries): Do not call
16952         lto_new_extern_inline_states.
16953         * lto-section-out.c (forced_extern_inline,
16954         lto_new_extern_inline_states lto_delete_extern_inline_states,
16955         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
16956         * lto-streamer.h (lto_new_extern_inline_states,
16957         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
16958         lto_forced_extern_inline_p): Kill.
16959
16960 2010-04-20  Richard Guenther  <rguenther@suse.de>
16961
16962         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
16963         from vars that can have pointers.
16964         (process_constraint): Dump useless constraints.
16965
16966 2010-04-20  Richard Guenther  <rguenther@suse.de>
16967
16968         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
16969         (dump_sa_points_to_info): Remove asserts.
16970         (init_base_vars): nothing_id isn't an escape point nor does it
16971         have pointers.
16972
16973 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
16974
16975         * tree.h (TYPE_REF_IS_RVALUE): Define.
16976         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
16977         should_move_die_to_comdat, prune_unused_types_walk): Handle
16978         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
16979         (modified_type_die, gen_reference_type_die): Emit
16980         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
16981         if TYPE_REF_IS_RVALUE and -gdwarf-4.
16982
16983 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16984
16985         PR target/43635
16986         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
16987         calls for -fpic -m31 if they have been sibcall optimized.
16988
16989 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
16990
16991         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
16992         ar.lc fixed and call-used.
16993
16994         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
16995
16996 2010-04-19  Jan Hubicka  <jh@suse.cz>
16997
16998         * opts.c (decode_options): Disable whpr incompatible passes.
16999         * lto/lto.c (lto_1_to_1_map): Skip clones.
17000         (read_cgraph_and_symbols): Do not mark everything as needed.
17001         (do_whole_program_analysis): Do map only after optimizing;
17002         set proper cgraph_state; use passmanager.
17003
17004 2010-04-19  DJ Delorie  <dj@redhat.com>
17005
17006         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
17007         POINTER_PLUS_EXPR and fix them.
17008
17009 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
17010
17011         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
17012         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
17013         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
17014         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
17015         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
17016         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
17017         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
17018         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
17019         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
17020         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
17021         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
17022
17023 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
17024
17025         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
17026         (check_cond_move_block): Likewise.
17027         (cond_move_process_if_block): Likewise.
17028         (noce_find_if_block): Improve formatting.
17029         (find_if_header): Pass 0 to memset and tweak conditions.
17030         (cond_exec_find_if_block): Fix long lines and tweak conditions.
17031
17032 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
17033
17034         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
17035         for -gdwarf-4.
17036
17037         PR middle-end/43337
17038         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
17039         with non-local decl doesn't need chain.
17040
17041 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
17042
17043         * ira-color.c (allocno_reload_assign): Avoid accumulating
17044         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
17045
17046 2010-04-19  Martin Jambor  <mjambor@suse.cz>
17047
17048         * gimple.h (create_tmp_reg): Declare.
17049         * gimplify.c (create_tmp_reg): New function.
17050         (gimplify_return_expr): Use create_tmp_reg.
17051         (gimplify_omp_atomic): Likewise.
17052         (gimple_regimplify_operands): Likewise.
17053         * tree-dfa.c (make_rename_temp): Likewise.
17054         * tree-predcom.c (predcom_tmp_var): Likewise.
17055         (reassociate_to_the_same_stmt): Likewise.
17056         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
17057         (get_replaced_param_substitute): Likewise.
17058         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
17059         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
17060         * tree-ssa-pre.c (get_representative_for): Likewise.
17061         (create_expression_by_pieces): Likewise.
17062         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
17063         (create_tailcall_accumulator): Likewise.
17064
17065 2010-04-19  Martin Jambor  <mjambor@suse.cz>
17066
17067         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
17068         new_stmt.
17069         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
17070
17071 2010-04-19  Richard Guenther  <rguenther@suse.de>
17072
17073         PR tree-optimization/43796
17074         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
17075         from SCEV in the lattice.
17076         (vrp_visit_phi_node): Dump change.
17077
17078 2010-04-19  Richard Guenther  <rguenther@suse.de>
17079
17080         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
17081         * configure: Re-generated.
17082
17083 2010-04-19  Richard Guenther  <rguenther@suse.de>
17084
17085         PR tree-optimization/43783
17086         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
17087         constant ARRAY_REF operands two and three if possible.
17088
17089 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
17090
17091         PR target/43766
17092         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
17093
17094 2010-04-19  Jie Zhang  <jie@codesourcery.com>
17095
17096         PR target/43662
17097         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
17098
17099 2010-04-19  Ira Rosen  <irar@il.ibm.com>
17100
17101         PR tree-optimization/37027
17102         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
17103         and macro to access it.
17104         (vectorizable_reduction): Add argument.
17105         (vect_get_slp_defs): Likewise.
17106         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
17107         statements for possible use in SLP.
17108         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
17109         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
17110         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
17111         add new argument.
17112         (vectorizable_reduction): Likewise.
17113         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
17114         vect_get_slp_defs.
17115         (vectorizable_type_demotion, vectorizable_type_promotion,
17116         vectorizable_store): Likewise.
17117         (vect_analyze_stmt): Update call to vectorizable_reduction.
17118         (vect_transform_stmt): Likewise.
17119         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
17120         (vect_build_slp_tree): Fix indentation. Check that there are no loads
17121         from different interleaving chains in same node.
17122         (vect_slp_rearrange_stmts): New function.
17123         (vect_supported_load_permutation_p): Allow load permutations for
17124         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
17125         inside SLP nodes if necessary.
17126         (vect_analyze_slp_instance): Handle reductions.
17127         (vect_analyze_slp): Try to build SLP instances originating from groups
17128         of reductions.
17129         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
17130         (vect_get_constant_vectors): Create initial vectors for reductions
17131         according to reduction code. Add new argument.
17132         (vect_get_slp_defs): Add new argument, pass it to
17133         vect_get_constant_vectors.
17134         (vect_schedule_slp_instance): Remove SLP tree root statements.
17135
17136 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
17137
17138         * tree.h (ENUM_IS_SCOPED): Define.
17139         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
17140         for ENUM_IS_SCOPED enums.
17141
17142 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
17143
17144         * fold-const.c (fold_comparison): Use ssizetype.
17145         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
17146         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
17147         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
17148         * tree-object-size.c (compute_object_sizes): Use size_type_node.
17149
17150         * tree.h (initialize_sizetypes): Remove parameter.
17151         (build_common_tree_nodes): Remove second parameter.
17152         * stor-layout.c (initialize_sizetypes): Remove parameter.
17153         Always create an unsigned type.
17154         (set_sizetype): Assert that the passed type is unsigned and simplify.
17155         * tree.c (build_common_tree_nodes): Remove second parameter.
17156         Adjust call to initialize_sizetypes.
17157         * c-decl.c (c_init_decl_processing): Remove second argument in call to
17158         build_common_tree_nodes.
17159
17160 2010-04-18  Matthias Klose  <doko@ubuntu.com>
17161
17162         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
17163
17164 2010-04-18  Ira Rosen  <irar@il.ibm.com>
17165
17166         PR tree-optimization/43771
17167         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
17168         load permutation doesn't have gaps.
17169
17170 2010-04-18  Jan Hubicka  <jh@suse.cz>
17171
17172         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
17173         (sse_prologue_save_insn expander): Use new pattern.
17174         (sse_prologue_save_insn1): New pattern and splitter.
17175         (sse_prologue_save_insn): Update to deal also with 64bit aligned
17176         blocks.
17177         * i386.c (setup_incoming_varargs_64): Do not compute jump
17178         destination here.
17179         (ix86_gimplify_va_arg): Update alignment needed.
17180         (ix86_local_alignment): Do not align all local arrays to 128bit.
17181
17182 2010-04-17  Jan Hubicka  <jh@suse.cz>
17183
17184         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
17185
17186 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
17187
17188         * arm.md (negdi2): Remove redundant code to force values into a
17189         register.
17190
17191 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
17192
17193         * arm/bpabi.S: Add EABI alignment attributes to objects.
17194         * arm/bpabi-v6m.S: Likewise.
17195         * arm/crti.asm: Likewise.
17196         * arm/crtn.asm: Likewise.
17197         * arm/lib1funcs.asm: Likewise.
17198         * arm/libunwind.S: Likewise.
17199
17200 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
17201
17202         * arm-protos.h (tune_params): New structure.
17203         * arm.c (current_tune): New variable.
17204         (arm_constant_limit): Delete.
17205         (struct processors): Add pointer to the tune parameters.
17206         (arm_slowmul_tune): New tuning option.
17207         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
17208         (all_cores): Adjust to pick up the tuning model.
17209         (arm_constant_limit): New function.
17210         (arm_override_options): Select the appropriate tuning model.  Delete
17211         initialization of arm_const_limit.
17212         (arm_split_constant): Use the new constant-limit model.
17213         (arm_rtx_costs): Pick up the current tuning model.
17214         * arm.md (is_strongarm, is_xscale): Delete.
17215         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
17216         for Xscale variant architectures.
17217         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
17218
17219 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17220
17221         * config/arm/arm.c (arm_gen_constant): Remove unused variable
17222         can_shift.
17223         (arm_rtx_costs_1): Remove unused variable extra_cost.
17224         (arm_unwind_emit_set): Use variable offset.
17225         (thumb1_output_casesi): Remove unused variable flags.
17226
17227 2010-04-16  Jeff Law  <law@redhat.com>
17228
17229         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
17230         needing assignment rather than doing a two-phase assignment.  Remove
17231         unused variable 'm'.
17232
17233 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
17234
17235         PR bootstrap/43767
17236         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
17237
17238 2010-04-16  Doug Kwan  <dougkwan@google.com>
17239
17240         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
17241         (next_operand_entry_id): New static variable.
17242         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
17243         (add_to_ops_vec): Assigned unique ID to operand entry.
17244         (struct oecount_s): New field ID.
17245         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
17246         (undistribute_ops_list): Assign unique IDs to oecounts.
17247         (init_reassoc): reset next_operand_entry_id.
17248
17249 2010-04-16  Doug Kwan  <dougkwan@google.com>
17250
17251         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
17252         missing left parenthesis.
17253
17254 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
17255
17256         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
17257         *btdi_rex64 using SWI48 mode iterator.
17258         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
17259         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
17260         *jcc_btdi_mask_rex64.
17261
17262 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
17263
17264         * double-int.h (tree_to_double_int): Convert to macro.
17265         * double-int.c (tree_to_double_int): Remove.
17266
17267 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
17268
17269         PR debug/43762
17270         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
17271         with want_address 2 and in case a single element list might be
17272         possible, call it again with want_address 0.
17273
17274 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
17275
17276         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
17277         case 'W' print operands for HI mode.
17278         * config/h8300/h8300.h (Y0, Y2) : New constraints.
17279         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
17280         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
17281         * config/h8300/predicate.md (bit_register_indirect_operand): New.
17282
17283         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
17284
17285         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
17286         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
17287         #xx:3 and #xx:4 mode.
17288
17289         * config/h8300/h8300.md (inverted load with HImode dest): Add
17290         support for H8300SX.
17291
17292         * config/h8300/predicate.md (bit_operand): Allow immediate values that
17293         satisfy 'U' constraint.
17294
17295 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17296
17297         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
17298         * configure: Regenerate.
17299         * config.in: Regenerate.
17300         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
17301         works.
17302
17303 2010-04-16  Richard Guenther  <rguenther@suse.de>
17304
17305         * tree.h (struct tree_decl_minimal): Move pt_uid ...
17306         (struct tree_decl_common): ... here.
17307         (DECL_PT_UID): Adjust.
17308         (SET_DECL_PT_UID): Likewise.
17309         (DECL_PT_UID_SET_P): Likewise.
17310
17311 2010-04-16  Richard Guenther  <rguenther@suse.de>
17312
17313         PR tree-optimization/43572
17314         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
17315         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
17316         * tree-flow.h (is_call_clobbered): Remove.
17317         * tree-flow-inline.h (is_call_clobbered): Likewise.
17318         * tree-dfa.c (dump_variable): Do not dump call clobber state.
17319         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
17320         (execute_return_slot_opt): Adjust.
17321         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
17322         check for call clobbered vars here.
17323         (find_tail_calls): Move tailcall verification to the
17324         proper place.
17325
17326 2010-04-16  Diego Novillo  <dnovillo@google.com>
17327
17328         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
17329
17330 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
17331
17332         PR target/40603
17333         * config/arm/arm.md (cbranchqi4): New pattern.
17334         * config/arm/predicates.md (const0_operand,
17335         cbranchqi4_comparison_operator): New predicates.
17336
17337 2010-04-16  Richard Guenther  <rguenther@suse.de>
17338
17339         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
17340         (dump_gimple_stmt): Likewise.
17341
17342 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
17343
17344         * recog.h (struct recog_data): New field is_operator.
17345         (struct insn_operand_data): New field is_operator.
17346         * recog.c (extract_insn): Set recog_data.is_operator.
17347         * genoutput.c (output_operand_data): Emit code to set the
17348         is_operator field.
17349         * reload.c (find_reloads): Use it rather than testing for an
17350         empty constraint string.
17351
17352         PR target/41514
17353         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
17354         If the previous insn is a cbranchsi4_insn with the same arguments,
17355         omit the compare instruction.
17356
17357         * config/arm/arm.md (addsi3_cbranch): If destination is a high
17358         register, inputs must be low registers and we need a low register
17359         scratch.  Handle alternative 2 like alternative 3.
17360
17361 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
17362
17363         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
17364         don't call get_addr on both.  If one expression is a VALUE and
17365         the other a REG, check VALUE's locs if the REG isn't among them.
17366
17367 2010-04-16  Christian Bruel  <christian.bruel@st.com>
17368
17369         * config/sh/sh.h (sh_frame_pointer_required): New function.
17370         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
17371         (flag_omit_frame_pointer) Set.
17372         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
17373         (rounded_frame_size): Adjust size with outgoing_args_size.
17374         (sh_set_return_address): Must return from stack pointer.
17375         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
17376         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
17377         (ACCUMULATE_OUTGOING_ARGS): Define.
17378         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
17379         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
17380
17381 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
17382
17383         PR target/43471
17384         * config/sh/sh.c (sh_legitimize_reload_address): Use
17385         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
17386         Remove a unneeded check for offset_base.
17387
17388 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
17389
17390         * configure: Regenerated.
17391
17392 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17393
17394         * config/s390/s390.c (s390_call_save_register_used): Switch back
17395         to HARD_REGNO_NREGS.
17396
17397 2010-04-15  Richard Guenther  <rguenther@suse.de>
17398
17399         * alias.c (alias_set_subset_of): Handle alias-set zero
17400         child properly.
17401
17402 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
17403             Julian Brown  <julian@codesourcery.com>
17404
17405         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
17406         alternatives according to use of high and low regs.
17407         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17408         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
17409         optimizing for size on Thumb-2.
17410
17411 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
17412
17413         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
17414
17415 2010-04-15  Richard Guenther  <rguenther@suse.de>
17416
17417         * tree-ssa-structalias.c (struct variable_info): Add
17418         is_fn_info flag.
17419         (new_var_info): Initialize it.
17420         (dump_constraints): Support printing last added constraints.
17421         (debug_constraints): Adjust.
17422         (dump_constraint_graph): Likewise.
17423         (make_heapvar_for): Check for NULL cfun.
17424         (get_function_part_constraint): New function.
17425         (get_fi_for_callee): Likewise.
17426         (find_func_aliases): Properly implement IPA PTA constraints.
17427         (process_ipa_clobber): New function.
17428         (find_func_clobbers): Likewise.
17429         (insert_into_field_list_sorted): Remove.
17430         (create_function_info_for): Properly allocate vars for IPA mode.
17431         Do not use insert_into_field_list_sorted.
17432         (create_variable_info_for): Properly generate constraints for
17433         global vars in IPA mode.
17434         (dump_solution_for_var): Always dump the solution.
17435         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
17436         (find_what_var_points_to): Adjust.
17437         (pt_solution_set): Change.
17438         (pt_solution_ior_into): New function.
17439         (pt_solution_empty_p): Export.
17440         (pt_solution_includes_global): Adjust.
17441         (pt_solution_includes_1): Likewise.
17442         (pt_solutions_intersect_1): Likewise.
17443         (dump_sa_points_to_info): Check some invariants.
17444         (solve_constraints): Move constraint dumping ...
17445         (compute_points_to_sets): ... here.
17446         (ipa_pta_execute): ... and here.
17447         (compute_may_aliases): Do not re-compute points-to info
17448         locally if IPA info is available.
17449         (ipa_escaped_pt): New global var.
17450         (ipa_pta_execute): Properly implement IPA PTA.
17451         * tree-into-ssa.c (dump_decl_set): Support dumping
17452         decls not in referenced-vars.
17453         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
17454         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
17455         (dump_points_to_solution): Likewise.
17456         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
17457         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
17458         (remap_gimple_stmt): Reset call clobber/use information if necessary.
17459         (copy_decl_to_var): Copy DECL_PT_UID.
17460         (copy_result_decl_to_var): Likewise.
17461         * tree.c (make_node_stat): Initialize DECL_PT_UID.
17462         (copy_node_stat): Copy it.
17463         * tree.h (DECL_PT_UID): New macro.
17464         (SET_DECL_PT_UID): Likewise.
17465         (DECL_PT_UID_SET_P): Likewise.
17466         (struct tree_decl_minimal): Add pt_uid member.
17467         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
17468         (pt_solution_empty_p): Declare.
17469         (pt_solution_set): Adjust.
17470         (ipa_escaped_pt): Declare.
17471         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
17472         * gimple-pretty-print.c (pp_points_to_solution): New function.
17473         (dump_gimple_call): Dump call clobber/use information.
17474         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
17475         * tree-pass.h (TDF_ALIAS): New dump option.
17476         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
17477         * doc/invoke.texi (-fipa-pta): Update documentation.
17478
17479 2010-04-15  Richard Guenther  <rguenther@suse.de>
17480
17481         * Makefile.in (OBJS-common): Add gimple-fold.o.
17482         (gimple-fold.o): New rule.
17483         * tree.h (maybe_fold_offset_to_reference,
17484         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
17485         prototypes ...
17486         * gimple.h: ... here.
17487         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
17488         may_propagate_address_into_dereference): Move prototypes ...
17489         * gimple.h: ... here.
17490         * tree-ssa-ccp.c (get_symbol_constant_value,
17491         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
17492         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
17493         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
17494         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
17495         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
17496         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
17497         gimplify_and_update_call_from_tree): Move ...
17498         * gimple-fold.c: ... here.  New file.
17499         (ccp_fold_builtin): Rename to ...
17500         (gimple_fold_builtin): ... this.
17501         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
17502
17503 2010-04-15  Richard Guenther  <rguenther@suse.de>
17504
17505         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
17506         fit_double_type, force_fit_type_double, add_double_with_sign,
17507         neg_double, mul_double_with_sign, lshift_double, rshift_double,
17508         lrotate_double, rrotate_double, div_and_round_double): Move ...
17509         * double-int.c: ... here.
17510         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
17511         add_double, neg_double, mul_double_with_sign, mul_double,
17512         lshift_double, rshift_double, lrotate_double, rrotate_double,
17513         div_and_round_double): Move prototypes ...
17514         * double-int.h: ... here.
17515
17516 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
17517
17518         PR target/43742
17519         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
17520         matching constraints to ensure inputs match the output.
17521
17522 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
17523
17524         PR target/43742
17525         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
17526         in an input-only operand.
17527
17528 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
17529
17530         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
17531         (double_int_not, double_int_lshift, double_int_rshift): Declare.
17532         (double_int_negative_p): Convert to static inline function.
17533         * double-int.c (double_int_lshift, double_int_lshift): New functions.
17534         (double_int_negative_p): Remove.
17535         * tree.h (lshift_double, rshift_double):
17536         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
17537         * fold-const.c (fold_convert_const_int_from_real,
17538         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
17539         (lshift_double): Change type of arith argument to bool.
17540         (rshift_double): Change type of arith argument to bool. Correct
17541         comment.
17542         * expmed.c (mask_rtx, lshift_value): (Ditto.).
17543
17544 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
17545
17546         PR target/21803
17547         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
17548         at the start and end of the then/else blocks, and omit them from the
17549         conversion.
17550         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
17551         argument; all callers changed.  Pass zero to old_insns_match_p instead.
17552         (flow_find_head_matching_sequence): New function.
17553         (old_insns_match_p): Check REG_EH_REGION notes for calls.
17554         * basic-block.h (flow_find_cross_jump,
17555         flow_find_head_matching_sequence): Declare functions.
17556
17557 2010-04-14  Jason Merrill  <jason@redhat.com>
17558
17559         PR c++/36625
17560         * c-common.c (attribute_takes_identifier_p): New fn.
17561         * c-common.h: Declare it.
17562
17563 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17564
17565         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
17566         splitter condition.
17567         (*udivmod<mode>4): Ditto.
17568
17569 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17570
17571         * config/i386/i386.md (maxmin_int): Rename code attribute from
17572         maxminiprefix and update all users.
17573         (maxmin_float): Ditto from maxminfprefix.
17574         (logic): Ditto from logicprefix.
17575         (absneg_mnemonic): Ditto from absnegprefix.
17576         * config/i386/mmx.md: Update all users of maxminiprefix,
17577         maxminfprefix and logicprefix for rename.
17578         * config/i386/sse.md: Ditto.
17579         * config/i386/sync.md (sync_<code><mode>): Update for
17580         logicprefix rename.
17581
17582 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17583
17584         PR 42966
17585         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
17586         warnings converted to errors.
17587
17588 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17589
17590         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
17591         used insn_type variable.
17592         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
17593         to avoid set-but-not-used warning.
17594
17595 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17596
17597         * df-core.c (df_ref_debug): Change format string placeholder
17598         from 0x%x to %#x.
17599         * dwarf2asm.c (dw2_asm_output_data_raw,
17600         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
17601         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
17602         * dwarf2out.c (output_cfi, output_cfi_directive,
17603         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
17604         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
17605         Ditto.
17606         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
17607         * print-rtl.c (print_rtx): Ditto.
17608
17609 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17610
17611         PR middle-end/42694
17612         * builtins.c (expand_builtin_pow_root): New function to expand pow
17613         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
17614         series of sqrt and cbrt calls under -ffast-math.
17615         (expand_builtin_pow): Call it.
17616
17617 2010-04-14  Michael Matz  <matz@suse.de>
17618
17619         PR tree-optimization/42963
17620         * tree-cfg.c (touched_switch_bbs): New static variable.
17621         (group_case_labels_stmt): New function broken out from ...
17622         (group_case_labels): ... here, use the above.
17623         (start_recording_case_labels): Allocate touched_switch_bbs.
17624         (end_recording_case_labels): Deallocate it, call
17625         group_case_labels_stmt.
17626         (gimple_redirect_edge_and_branch): Remember index of affected BB.
17627
17628 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17629
17630         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
17631         from insn template.
17632
17633 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17634
17635         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
17636
17637 2010-04-13  Jan Hubicka  <jh@suse.cz>
17638
17639         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
17640         of optimized out static functions.
17641         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
17642         cost computation.  Also sanity check for overflows.
17643         (update_caller_keys): Update cgraph_edge_badness call; properly
17644         update fibheap and sanity check that it is up to date.
17645         (add_new_edges_to_heap): Update cgraph_edge_badness.
17646         (cgraph_decide_inlining_of_small_function): Likewise;
17647         add sanity checking that badness in heap is up to date;
17648         improve dumping of reason; Update badness of calls to the
17649         offline copy of function currently inlined; dump badness
17650         of functions not inlined because of unit growth limits.
17651
17652 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
17653
17654         PR middle-end/32628
17655         * c-common.c (pointer_int_sum): Disregard overflow that occured only
17656         because of sign-extension change when converting to sizetype here...
17657         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
17658
17659         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
17660         the folding to constants.  Remove redundant final conversion.
17661         (fold_binary) <associate>: Do not associate if the re-association of
17662         constants alone overflows.
17663         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
17664         to the end of the list.
17665         (multiple_of_p) <COND_EXPR>: New case.
17666
17667 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17668
17669         * opt-functions.awk (opt_sanitized_name): New.
17670         (opt_enum): New.
17671         * optc-gen.awk: Use it
17672         * opth-gen.awk: Use it.
17673
17674 2010-04-13  Martin Jambor  <mjambor@suse.cz>
17675
17676         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
17677         (sra_modify_assign): Delete stmts loading dead data even if racc has no
17678         children.  Call replace_uses_with_default_def_ssa_name to handle
17679         SSA_NAES on lhs.
17680
17681 2010-04-13  Michael Matz  <matz@suse.de>
17682
17683         PR middle-end/43730
17684         * builtins.c (expand_builtin_interclass_mathfn): Also create
17685         a register if the predicate doesn't match.
17686
17687 2010-04-13  Diego Novillo  <dnovillo@google.com>
17688
17689         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
17690         * c-pch.c: Include timevar.h.
17691         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
17692         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
17693         * ggc-common.c: Include timevar.h.
17694         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
17695         * timevar.def (TV_PCH_SAVE): Define.
17696         (TV_PCH_CPP_SAVE): Define.
17697         (TV_PCH_PTR_REALLOC): Define.
17698         (TV_PCH_PTR_SORT): Define.
17699         (TV_PCH_RESTORE): Define.
17700         (TV_PCH_CPP_RESTORE): Define.
17701
17702 2010-04-13  Michael Matz  <matz@suse.de>
17703
17704         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
17705         into MINUS_EXPRs.
17706         (can_reassociate_p): New function.
17707         (break_up_subtract_bb, reassociate_bb): Use it.
17708
17709 2010-04-13  Richard Guenther  <rguenther@suse.de>
17710
17711         PR bootstrap/43737
17712         * builtins.c (c_readstr): Fix assert.
17713
17714 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
17715
17716         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
17717         when generating cltd insn.
17718
17719         (*ashl<mode>3_1): Remove special handling for register operand 2.
17720         (*ashlsi3_1_zext): Ditto.
17721         (*ashlhi3_1): Ditto.
17722         (*ashlhi3_1_lea): Ditto.
17723         (*ashlqi3_1): Ditto.
17724         (*ashlqi3_1_lea): Ditto.
17725         (*<shiftrt_insn><mode>3_1): Ditto.
17726         (*<shiftrt_insn>si3_1_zext): Ditto.
17727         (*<shiftrt_insn>qi3_1_slp): Ditto.
17728         (*<rotate_insn><mode>3_1): Ditto.
17729         (*<rotate_insn>si3_1_zext): Ditto.
17730         (*<rotate_insn>qi3_1_slp): Ditto.
17731
17732 2010-04-13  Richard Guenther  <rguenther@suse.de>
17733
17734         * tree-ssa-structalias.c (callused_id): Remove.
17735         (call_stmt_vars): New.
17736         (get_call_vi): Likewise.
17737         (lookup_call_use_vi): Likewise.
17738         (lookup_call_clobber_vi): Likewise.
17739         (get_call_use_vi): Likewise.
17740         (get_call_clobber_vi): Likewise.
17741         (make_transitive_closure_constraints): Likewise.
17742         (handle_const_call): Adjust to do per-call call-used handling.
17743         (handle_pure_call): Likewise.
17744         (find_what_var_points_to): Remove general callused handling.
17745         (init_base_vars): Likewise.
17746         (init_alias_vars): Initialize call_stmt_vars.
17747         (compute_points_to_sets): Process call-used and call-clobbered
17748         vars for call statements.
17749         (delete_points_to_sets): Free call_stmt_vars.
17750
17751 2010-04-13  Richard Guenther  <rguenther@suse.de>
17752
17753         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
17754         Only add RW dependence for dependence distance zero.
17755         Adjust maximal vectorization factor according to dependences.
17756         Move alignment handling ...
17757         (vect_find_same_alignment_drs): ... here.  New function.
17758         (vect_analyze_data_ref_dependences): Adjust.
17759         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
17760         (vect_analyze_data_refs): Adjust minimal vectorization factor
17761         according to data references.
17762         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
17763         dependences before determining the vectorization factor.
17764         Analyze alignment after determining the vectorization factor.
17765         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
17766         dependences before alignment.
17767         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
17768         Adjust prototype.
17769         (vect_analyze_data_refs): Likewise.
17770         (MAX_VECTORIZATION_FACTOR): New define.
17771
17772 2010-04-13  Duncan Sands  <baldrick@free.fr>
17773
17774         * except.h (lang_eh_type_covers): Remove.
17775         * except.c (lang_eh_type_covers): Likewise.
17776
17777 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17778             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17779
17780         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
17781         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
17782         UNITS_PER_LONG where it is ABI relevant.
17783         (s390_return_addr_rtx): Likewise.
17784         (s390_back_chain_rtx): Likewise.
17785         (s390_frame_area): Likewise.
17786         (s390_frame_info): Likewise.
17787         (s390_initial_elimination_offset): Likewise.
17788         (save_gprs): Likewise.
17789         (s390_emit_prologue): Likewise.
17790         (s390_emit_epilogue): Likewise.
17791         (s390_function_arg_advance): Likewise.
17792         (s390_function_arg): Likewise.
17793         (s390_va_start): Likewise.
17794         (s390_gimplify_va_arg): Likewise.
17795         (s390_function_profiler): Likewise.
17796         (s390_optimize_prologue): Likewise.
17797         (s390_rtx_costs): Likewise.
17798         (s390_secondary_reload): Likewise.
17799         (s390_promote_function_mode): Likewise.
17800         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
17801         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
17802         registers available.
17803         (s390_unwind_word_mode): New function.
17804         (s390_function_value): Split 64 bit values into register pair if
17805         used as return value.
17806         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
17807         function call parameters.  Handle parallels.
17808         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
17809         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
17810         (DWARF_CIE_DATA_ALIGNMENT): New macro.
17811         (s390_expand_setmem): Remove unused variable src_addr.
17812         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
17813         deal with 64 bit registers.
17814         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
17815         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
17816         (UNITS_PER_LONG): New macro.
17817         * libjava/include/s390-signal.h: Define extended ucontext
17818         structure containing the upper halfs of the 64 bit registers.
17819
17820 2010-04-13  Simon Baldwin  <simonb@google.com>
17821
17822         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
17823
17824 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
17825
17826         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
17827         rvalue on the RHS if the LHS is of a non-renamable type.
17828         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
17829
17830 2010-04-13  Matthias Klose  <doko@ubuntu.com>
17831
17832         * gcc.c (cc1_options): Handle -iplugindir before processing
17833         the cc1 spec. Only add -iplugindir once.
17834         (cpp_unique_options): Add -iplugindir option if -fplugin* options
17835         found.
17836         * common.opt (iplugindir): Remove `Separate' property, initialize.
17837         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
17838         option.
17839         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
17840         (distclean): Remove plugin dir.
17841         * doc/invoke.texi: Document -iplugindir.
17842
17843 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
17844
17845         * doc/plugins.texi (Loading Plugins): Document short
17846         -fplugin=foo option.
17847         (Plugin API): Mention default_plugin_dir_name function.
17848
17849         * gcc.c (find_file_spec_function): Add new declaration.
17850         (static_spec_func): Use it for "find-file".
17851         (find_file_spec_function): Add new function.
17852         (cc1_options): Add -iplugindir option if -fplugin* options found.
17853
17854         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
17855
17856         * plugin.c (add_new_plugin): Updated comment, and handle short
17857         plugin name.
17858         (default_plugin_dir_name): Added new function.
17859
17860         * common.opt (iplugindir): New option to set the plugin directory.
17861
17862 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
17863
17864         * config/i386/i386.md (any_rotate): New code iterator.
17865         (rotate_insn): New code attribute.
17866         (rotate): Ditto.
17867         (SWIM124): New mode iterator.
17868         (<rotate_insn>ti3): New expander.
17869         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
17870         any_rotate code iterator.
17871         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
17872         using any_rotate code iterator and SWIM124 mode iterator.
17873         (ix86_rotlti3): New insn_and_split pattern.
17874         (ix86_rotrti3): Ditto.
17875         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
17876         ix86_rotl{di,ti}3 patterns.
17877         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
17878         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
17879         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
17880         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
17881         code iterator and SWI mode iterator.
17882         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
17883         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
17884         code iterator.
17885         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
17886         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
17887         (bswap rotatert splitter): Add splitter.
17888         (bswap splitter): Macroize splitter using any_rotate code iterator.
17889         Add insn predicate to split only for TARGET_USE_XCHGB or when
17890         optimizing function for size.
17891
17892 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
17893
17894         * config/pa/pa.c (emit_move_sequence): Remove use of
17895         deleted variable flag_argument_noalias.
17896
17897 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17898
17899         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
17900         configurations.
17901         Add to unsupported targets list.
17902         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
17903         sparc*-sun-solaris2.[567]* from target lists.
17904         * configure: Regenerate.
17905         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
17906         removal.
17907         Remove Solaris 7 patch references.
17908         (Specific, sparc-sun-solaris2.7): Removed.
17909         (sparc-sun-solaris2*): Update Solaris 7 example.
17910         (sparc64-*-solaris2*): Likewise.
17911
17912 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17913
17914         * config.build (alpha*-dec-osf4*): Remove.
17915         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
17916         of obsolete configurations.
17917         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
17918         support.
17919         * config/alpha/t-osf4: Renamed to ...
17920         * config/alpha/t-osf5: ... this.
17921         * config/alpha/osf.h: Renamed to ...
17922         * config/alpha/osf5.h: ... this.
17923         Merged old osf5.h contents.
17924         Update comments.
17925         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
17926         (EXTRA_SPECS): Removed.
17927         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
17928         reflect removal of Tru64 UNIX V4.0/V5.0 support.
17929         Document that.
17930
17931 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17932
17933         * doc/contrib.texi (Contributors, Rainer Orth): Update.
17934
17935 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
17936
17937         PR/43702
17938         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
17939         __thiscall convention.
17940
17941 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
17942
17943         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
17944         orig_base.
17945         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
17946
17947 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
17948
17949         * function.c (assign_parms_initialize_all): Add unused attribute
17950         to fntype.
17951
17952 2010-04-12  Richard Guenther  <rguenther@suse.de>
17953
17954         * gsstruct.def (GSS_CALL): New.
17955         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
17956         * gimple.h: Include tree-ssa-alias.h.
17957         (struct gimple_statement_call): New.
17958         (union gimple_statement_struct_d): Add gimple_call member.
17959         (gimple_call_reset_alias_info): Declare.
17960         (gimple_call_use_set): New function.
17961         (gimple_call_clobber_set): Likewise.
17962         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
17963         * gimple.c (gimple_call_reset_alias_info): New function.
17964         (gimple_build_call_1): Call it.
17965         * lto-streamer-in.c (input_gimple_stmt): Likewise.
17966         * tree-inline.c (remap_gimple_stmt): Likewise.
17967         (expand_call_inline): Remove callused handling.
17968         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
17969         * tree-dfa.c (dump_variable): Likewise.
17970         * tree-parloops.c (parallelize_loops): Likewise.
17971         * tree-ssa.c (init_tree_ssa): Likewise.
17972         (delete_tree_ssa): Likewise.
17973         * tree-flow-inline.h (is_call_used): Remove.
17974         * tree-flow.h (struct gimple_df): Remove callused member.
17975         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
17976         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
17977         (ref_maybe_used_by_call_p_1): Simplify.
17978         (call_may_clobber_ref_p_1): Likewise.
17979         * tree-ssa-structalias.c (compute_points_to_sets): Set
17980         the call stmt used and clobbered sets.
17981         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
17982         (find_tail_calls): Verify the tail call.
17983
17984 2010-04-12  Richard Guenther  <rguenther@suse.de>
17985
17986         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
17987         single-iteration always-inline inlining.
17988         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
17989         (cgraph_decide_inlining): Do not handle always-inline specially.
17990         (try_inline): Remove always-inline cycle detection special case.
17991         Do not recurse on always-inlines.
17992         (cgraph_early_inlining): Do not iterate if not optimizing.
17993         (cgraph_gate_early_inlining): remove.
17994         (pass_early_inline): Run unconditionally.
17995         (gate_cgraph_decide_inlining): New function.
17996         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
17997         not inlining or optimizing.
17998         (cgraph_decide_inlining_of_small_functions): Also consider
17999         always-inline functions.
18000         (cgraph_default_inline_p): Return true for nodes which should
18001         disregard inline limits.
18002         (estimate_function_body_sizes): Assume zero size and time for
18003         nodes which are marked as disregarding inline limits.
18004         (cgraph_decide_recursive_inlining): Do not perform recursive
18005         inlining on always-inline nodes.
18006
18007 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
18008
18009         PR bootstrap/43699
18010         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
18011         for exprs satisfying handled_component_p.
18012
18013 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
18014
18015         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
18016         non-constant aggregate elements.
18017
18018         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
18019         is a real initialization.
18020
18021 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
18022
18023         PR c/36774
18024         * c-decl.c (start_function): Move forward check for nested function.
18025
18026 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
18027
18028         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
18029         * config/sh/sh.c: Include reload.h.
18030         (sh_legitimize_reload_address): New.
18031         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
18032         sh_legitimize_reload_address.
18033
18034 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
18035
18036         * config/sh/sh.md (*movqi_pop): New insn pattern.
18037         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
18038
18039 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
18040
18041         * config/i386/i386.md (any_shiftrt): New code iterator.
18042         (shiftrt_insn): New code attribute.
18043         (shiftrt): Ditto.
18044         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
18045         using any_shiftrt code iterator.
18046         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
18047         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
18048         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
18049         pattern from corresponding peephole2 patterns.
18050         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
18051         using any_shiftrt code iterator.
18052         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
18053         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
18054         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
18055         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
18056         *{ashr,lshr}<mode>3_cmp_zext.
18057         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
18058
18059 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
18060
18061         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
18062         scratch register.
18063         (*lshr<mode>3_cconly): Ditto.
18064
18065 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
18066
18067         * config/i386/i386.md (lshr<mode>3): Macroize expander from
18068         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
18069         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
18070         pattern from *lshr{di,ti}3_1 and corresponding splitters using
18071         DWI mode iterator.
18072         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
18073         from corresponding peephole2 patterns.
18074         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
18075         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
18076         and *lshrdi3_1_rex64 using SWI mode iterator.
18077         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
18078         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
18079         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
18080         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
18081         and *lshrdi3_cmp_rex64 using SWI mode iterator.
18082         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
18083         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
18084         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
18085         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
18086         SWI mode iterator.
18087
18088 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
18089
18090         * config/i386/i386.md (ashr<mode>3): Macroize expander from
18091         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
18092         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
18093         pattern from *ashr{di,ti}3_1 and corresponding splitters using
18094         DWI mode iterator.
18095         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
18096         from corresponding peephole2 patterns.
18097         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
18098         (ashrsi3_cvt): Rename from ashrsi3_31.
18099         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
18100         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
18101         and x86_64_shift_adj_3 using SWI48 mode iterator.
18102         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
18103         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
18104         and *ashrdi3_1_rex64 using SWI mode iterator.
18105         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
18106         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
18107         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
18108         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
18109         and *ashrdi3_cmp_rex64 using SWI mode iterator.
18110         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
18111         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
18112         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
18113         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
18114         SWI mode iterator.
18115         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
18116         * config/i386/i386.c (ix86_split_ashr): Update for renamed
18117         x86_shift<mode>_adj_3 expanders.
18118
18119 2010-04-10  Wei Guozhi  <carrot@google.com>
18120
18121         PR target/42601
18122         * config/arm/arm.c (arm_pic_static_addr): New function.
18123         (legitimize_pic_address): Call arm_pic_static_addr when it detects
18124         a static symbol.
18125         (arm_output_addr_const_extra): Output expression for new pattern.
18126         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
18127
18128 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
18129
18130         * ira-costs.c (record_reg_classes): Ignore alternatives that are
18131         not enabled.
18132
18133         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
18134         * web.c: Include "insn-config.h" and "recog.h".
18135         (union_match_dups): New function.
18136         (web_main): Call it.
18137         (union_defs): Don't try to recognize match_dups.
18138
18139         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
18140         if doing so would replace the entire pattern.
18141
18142 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
18143
18144         PR target/43707
18145         PR target/43709
18146         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
18147         and splitter pattern.  Change splitter operand 1 predicate to
18148         nonmemory_operand.
18149
18150 2010-04-09  Martin Jambor  <mjambor@suse.cz>
18151
18152         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
18153         lattices are addresses of CONST_DECLs with the same initial value.
18154         (ipcp_print_all_lattices): Print values of CONST_DECLs.
18155         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
18156
18157 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
18158             Bernd Schmidt  <bernds@codesourcery.com>
18159
18160         * loop-invariant.c (replace_uses): New static function.
18161         (move_invariant_reg): Use it to ensure we can replace the uses.
18162
18163 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
18164
18165         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
18166         function template.
18167         (picochip_override_options): Enable section anchors only above -O1.
18168         (picochip_reorg): Fixed a couple of build warnings.
18169
18170 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18171
18172         * configure.ac (plugin -rdynamic test): Log result.
18173         * configure: Regenerate.
18174         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
18175         (RDYNAMIC_SPEC): Define.
18176         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
18177
18178 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18179
18180         * configure.ac: Determine Sun ld version numbers.
18181         (comdat_group): Restrict GNU ld version checks to gld.
18182         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
18183         (enable_comdat): Support --enable-comdat.
18184         * configure: Regenerate.
18185         * doc/install.texi (Configuration): Document --enable-comdat.
18186
18187 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18188
18189         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
18190         * config/sol2-gld.h: ... here.
18191         * config.gcc (sparc*-*-solaris2*): Reflect this.
18192         (i[34567]86-*-solaris2*): Use it.
18193
18194 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
18195
18196         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
18197         setup_clocks_p.
18198         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
18199
18200 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18201
18202         PR 42965
18203         * diagnostic.c (diagnostic_initialize): Initialize
18204         some_warnings_are_errors.
18205         (diagnostic_finish): New.
18206         (diagnostic_action_after_output): Call it before exiting.
18207         (diagnostic_report_diagnostic): Do not print message here. Set
18208         some_warnings_are_errors.
18209         * diagnostic.h (diagnostic_context): Delete
18210         issue_warnings_are_errors_message. Add some_warnings_are_errors.
18211         (diagnostic_finish): Declare.
18212         * toplev.c (toplev_main): Call it before exit.
18213
18214 2010-04-09  Jason Merrill  <jason@redhat.com>
18215
18216         PR c++/42623
18217         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
18218         for incomplete type.
18219
18220         PR c++/41788
18221         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
18222         based on a warning flag.
18223
18224 2010-04-09  Richard Guenther  <rguenther@suse.de>
18225
18226         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
18227
18228 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
18229
18230         PR bootstrap/43684
18231         * varasm.c (default_assemble_visibility): Wrap vars that are
18232         set, but unused, by targets without GAS.
18233         * config/rs6000/rs6000.c (paired_emit_vector_compare):
18234         Remove set, but unused, vars.
18235         (rs6000_legitimize_tls_address): Likewise.
18236         (altivec_expand_dst_builtin): Likewise.
18237         * config/darwin.c (machopic_classify_symbol): Likewise.
18238         (machopic_indirection_name): Likewise.
18239
18240 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
18241
18242         * config/i386/i386.md (DWI): New mode iterator.
18243         (S): New mode attribute.
18244         (shift_operand): Ditto.
18245         (shift_immediate_operand): Ditto.
18246         (ashl_input_operand): Ditto.
18247         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
18248         using SDWIM mode iterator.
18249         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
18250         pattern from *ashl{di,ti}3_1 and corresponding splitters using
18251         DWI mode iterator.
18252         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
18253         from corresponding peephole2 patterns.
18254         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
18255         and x86_64_shift_adj_1 using SWI48 mode iterator.
18256         (x86_shift<mode>_adj_2): Ditto.
18257         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
18258         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
18259         using SWI48 mode iterator.
18260         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
18261         *ashldi3_cmp_rex64 using SWI mode iterator.
18262         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
18263         *ashldi3_cconly_rex64 using SWI mode iterator.
18264         * config/i386/i386.c (ix86_split_ashl): Update for renamed
18265         x86_shift<mode>_adj_{1,2}.
18266         (ix86_split_ashr): Ditto.
18267         (ix86_split_lshr): Ditto.
18268
18269 2010-04-09  Richard Guenther  <rguenther@suse.de>
18270
18271         * target.h (builtin_conversion): Pass in input and output types.
18272         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
18273         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
18274         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
18275         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
18276
18277         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
18278         Handle AVX modes.
18279         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
18280
18281 2010-04-09  Richard Guenther  <rguenther@suse.de>
18282
18283         PR target/43152
18284         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
18285
18286 2010-04-09  Richard Guenther  <rguenther@suse.de>
18287
18288         * tree-vectorizer.h (struct _stmt_vec_info): Document
18289         that vectype is the type of the LHS.
18290         (supportable_widening_operation, supportable_narrowing_operation):
18291         Get both input and output vector types as arguments.
18292         (vect_is_simple_use_1): Declare.
18293         (get_same_sized_vectype): Likewise.
18294         * tree-vect-loop.c (vect_determine_vectorization_factor):
18295         Set STMT_VINFO_VECTYPE to the vector type of the def.
18296         (vectorizable_reduction): Adjust.
18297         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
18298         Adjust.  Specify the output vector type.
18299         (vect_pattern_recog_1): Adjust.
18300         * tree-vect-stmts.c (get_same_sized_vectype): New function.
18301         (vectorizable_call): Adjust.
18302         (vectorizable_conversion): Likewise.
18303         (vectorizable_operation): Likewise.
18304         (vectorizable_type_demotion): Likewise.
18305         (vectorizable_type_promotion): Likewise.
18306         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
18307         the def.
18308         (vect_is_simple_use_1): New function.
18309         (supportable_widening_operation): Get both input and output
18310         vector types.
18311         (supportable_narrowing_operation): Likewise.
18312         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
18313
18314 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
18315
18316         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
18317         __thiscall and _thiscall as predefined macros.
18318         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
18319         thiscall attribute handling.
18320         (ix86_comp_type_attributes): Likewise.
18321         (ix86_function_regparm): Likewise.
18322         (ix86_return_pops_args): Likewise.
18323         (init_cumulative_args): Likewise.
18324         (find_drap_reg): Likewise.
18325         (ix86_static_chain): Likewise.
18326         (x86_this_parameter): Likewise.
18327         (x86_output_mi_thunk): Likewise.
18328         (ix86_attribute_table): Add description for thiscall attribute.
18329         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
18330         * doc/extend.texi: Add documentation for thiscall.
18331
18332 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18333
18334         PR c++/28584
18335         * c.opt (Wint-to-pointer-cast): Available in C++.
18336         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
18337
18338 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
18339
18340         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
18341         * calls.c (expand_call): Pass the function type to aggregate_value_p.
18342         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
18343         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
18344         function type instead.  Reorder and simplify checks.
18345
18346         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
18347
18348 2010-04-08  Jing Yu  <jingyu@google.com>
18349             Zdenek Dvorak  <ook@ucw.cz>
18350
18351         PR tree-optimization/42720
18352         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
18353         loop unswitch conditions here from ...
18354         (tree_unswitch_single_loop): ... here.
18355
18356 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
18357
18358         * tree-if-conv.c: Fix comments and simplify logic.
18359
18360 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
18361
18362         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
18363         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
18364         (main_tree_if_conversion): Update call to tree_if_conversion.
18365
18366 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18367
18368         PR 42485
18369         * doc/invoke.texi (-b,-V): Delete.
18370         * doc/tm.texi: Do not mention -b.
18371         * gcc.c (display_help): Delete -b and -V.
18372         (process_command): Delete -b and -V.
18373         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
18374
18375 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
18376             Wolfgang Gellerich  <gellerich@de.ibm.com>
18377
18378         Implement target hook for loop unrolling
18379         * target.h (loop_unroll_adjust): Add a new target hook function.
18380         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
18381         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
18382         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
18383         (s390_loop_unroll_adjust): Implement the new target hook for s390.
18384         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
18385         target hook.
18386         (decide_unroll_stupid): Likewise.
18387
18388 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18389
18390         PR target/43643
18391         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
18392
18393 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18394
18395         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
18396         (Specific, *-*-solaris2*): Likewise.
18397         Don't prefer Sun as over GNU as.
18398
18399 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
18400
18401         * config/s390/s390.c (override_options): Adjust the z10 defaults
18402         for max-unroll-times, max-completely-peeled-insns
18403         and max-completely-peel-times.
18404
18405 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18406
18407         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
18408         instructions for z10.
18409         (s390_expand_setmem): Likewise.
18410         (s390_expand_cmpmem): Likewise.
18411
18412 2010-04-08  Richard Guenther  <rguenther@suse.de>
18413
18414         PR tree-optimization/43679
18415         * tree-ssa-pre.c (eliminate): Only propagate copies.
18416
18417 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
18418
18419         PR bootstrap/43681
18420         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
18421         set but not used variable warning.
18422
18423 2010-04-08  Wei Guozhi  <carrot@google.com>
18424
18425         PR target/41653
18426         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
18427         (arm_size_rtx_costs): Call the new function when optimized for size.
18428
18429 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
18430
18431         PR debug/43670
18432         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
18433         op0 is not a MEM, just return NULL instead of assertion
18434         failure.
18435         (discover_nonconstant_array_refs): Don't walk debug stmts.
18436
18437 2010-04-08  Doug Kwan  <dougkwan@google.com>
18438
18439         * configure.ac: Recognize gold and do not use its version number
18440         to test ld features.
18441         * configure: Regenerate.
18442
18443 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
18444
18445         PR middle-end/40815
18446         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
18447         (negate_value): Move code to push elements to broken_up_substracts ...
18448         (eliminate_plus_minus_pair): ... here.  Push operands that have no
18449         negative pair to plus_negates.
18450         (repropagate_negates, init_reassoc, fini_reassoc): Update.
18451
18452 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18453
18454         * doc/install.texi (Configuration): Move description of
18455         --enable-lto, --with-libelf*, --enable-gold from Java section to
18456         general section.
18457
18458         * doc/generic.texi (Working with declarations)
18459         (Function Properties, C and C++ Trees): Fix typos.
18460         * doc/sourcebuild.texi (Top Level): Likewise.
18461
18462 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
18463
18464         PR c/18624
18465         * tree.h (DECL_READ_P): Define.
18466         (struct tree_decl_common): Add decl_read_flag.
18467         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
18468         a set but not used warning.
18469         (merge_decls): Merge DECL_READ_P flag.
18470         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
18471         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
18472         * c-common.c (handle_used_attribute, handle_unused_attribute):
18473         Likewise.
18474         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
18475         New prototypes.
18476         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
18477         New functions.
18478         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
18479         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
18480         c_parser_binary_expression, c_parser_cast_expression,
18481         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
18482         Call default_function_array_read_conversion instead of
18483         default_function_array_conversion where needed.
18484         (c_parser_unary_expression, c_parser_conditional_expression,
18485         c_parser_postfix_expression_after_primary, c_parser_initelt):
18486         Likewise.  Call mark_exp_read where needed.
18487         (c_parser_statement_after_labels, c_parser_asm_operands,
18488         c_parser_typeof_specifier, c_parser_sizeof_expression,
18489         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
18490         where needed.
18491         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
18492         New.
18493         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
18494         (warn_unused_but_set_parameter): Default to warn_unused
18495         && extra_warnings.
18496         * doc/invoke.texi: Document -Wunused-but-set-variable and
18497         -Wunused-but-set-parameter.
18498
18499         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
18500         used count variable.
18501         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
18502         when operandN variables aren't used in the body of the expander
18503         or splitter.
18504         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
18505         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
18506         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
18507         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
18508         FOR_EACH_IMM_USE_ON_STMT): Likewise.
18509         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
18510         * tree.c (PROCESS_ARG): Likewise.
18511
18512 2010-04-07  Simon Baldwin  <simonb@google.com>
18513
18514         * diagnostic.h (diagnostic_override_option_index): New macro to
18515         set a diagnostic's option_index.
18516         * c-tree.h (c_cpp_error): Add warning reason argument.
18517         * opts.c (_warning_as_error_callback): New.
18518         (register_warning_as_error_callback): Store callback for
18519         warnings enabled via enable_warning_as_error.
18520         (enable_warning_as_error): Call callback, minor code tidy.
18521         * opts.h (register_warning_as_error_callback): Declare.
18522         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
18523         response to -Werror=.
18524         (c_common_init_options): Register warning_as_error_callback in opts.c.
18525         * common.opt: Add -Wno-cpp option.
18526         * c-common.c (struct reason_option_codes_t): Map cpp warning
18527         reason codes to gcc option indexes.
18528         * (c_option_controlling_cpp_error): New function, lookup the gcc
18529         option index for a cpp warning reason code.
18530         * (c_cpp_error): Add warning reason argument, call
18531         c_option_controlling_cpp_error for diagnostic_override_option_index.
18532         * doc/invoke.texi: Document -Wno-cpp.
18533
18534 2010-04-07  Richard Guenther  <rguenther@suse.de>
18535
18536         * ipa-reference.c (mark_load): Use get_base_address.
18537         (mark_store): Likewise.
18538
18539         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
18540         inserting GIMPLE_NOPs into the IL.
18541         * tree-ssa-structalias.c (get_constraint_for_component_ref):
18542         Explicitly strip handled components and indirect references.
18543
18544         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
18545         folding address expressions.
18546         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
18547         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
18548         operand_equal_p to compare decls.
18549         (ptr_deref_may_alias_decl_p): Likewise.
18550         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
18551         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
18552         Handle reversed comparison ops.
18553         * tree-sra.c (asm_visit_addr): Use get_base_address.
18554         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
18555         * ipa-reference.c (mark_address): Use get_base_address.
18556
18557 2010-04-07  Richard Guenther  <rguenther@suse.de>
18558
18559         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
18560         Propagate constants everywhere.
18561
18562 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
18563
18564         PR debug/43516
18565         * tree.c (MAX_INT_CACHED_PREC): Define.
18566         (nonstandard_integer_type_cache): New array.
18567         (build_nonstandard_integer_type): Cache results for precision
18568         <= MAX_INT_CACHED_PREC.
18569
18570 2010-04-07  Richard Guenther  <rguenther@suse.de>
18571
18572         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
18573         -fargument-noalias-global, -fargument-noalias-anything): Remove.
18574         * common.opt: Likewise.
18575         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
18576         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
18577         (nonoverlapping_memrefs_p): Likewise.
18578         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
18579         * opts.c (common_handle_option): Handle OPT_fargument_alias,
18580         OPT_fargument_noalias, OPT_fargument_noalias_anything and
18581         OPT_fargument_noalias_global for backward compatibility.
18582
18583 2010-04-07  Richard Guenther  <rguenther@suse.de>
18584
18585         PR tree-optimization/43270
18586         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
18587         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
18588         * tree-ssa-pre.c (phi_translate_1): Adjust.
18589         (fully_constant_expression): Split out vn_reference handling to ...
18590         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
18591         Fold reads from constant strings.
18592         (vn_reference_lookup): Handle fully constant references.
18593         (vn_reference_lookup_pieces): Likewise.
18594         * Makefile.in (expmed.o-warn): Add -Wno-error.
18595
18596 2010-04-07  Martin Jambor  <mjambor@suse.cz>
18597
18598         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
18599
18600 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
18601
18602         PR driver/41594
18603         * gcc.c: Add -static-libstdc++ to list of recognized options.
18604
18605 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18606
18607         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
18608
18609 2010-04-07  Richard Guenther  <rguenther@suse.de>
18610
18611         PR middle-end/42617
18612         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
18613         bases build simple mem attributes to retain points-to information.
18614
18615 2010-04-07  Richard Guenther  <rguenther@suse.de>
18616
18617         PR middle-end/42617
18618         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
18619         preserve points-to related information.
18620
18621 2010-04-07  Richard Guenther  <rguenther@suse.de>
18622
18623         PR middle-end/42617
18624         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
18625         discard plain indirect references.
18626         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
18627         * tree.c (tree_nop_conversion): Likewise.
18628
18629 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
18630
18631         PR debug/43628
18632         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
18633
18634 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
18635
18636         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
18637         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
18638
18639 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
18640
18641         * tree-if-conv.c: Fix indentation and comments.
18642
18643 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
18644
18645         * tree-if-conv.c: Sort static functions in topological order.
18646
18647 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
18648
18649         * tree-if-conv.c: Fix indentation and comments.
18650
18651 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18652
18653         PR middle-end/43519
18654         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
18655         lang_hooks.types.type_for_size instead of
18656         build_nonstandard_integer_type.
18657         When converting an unsigned type to signed, double its precision.
18658         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
18659         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
18660         (graphite_create_new_loop_guard): When ub + 1 wraps around,
18661         use lb <= ub.
18662
18663 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18664
18665         PR middle-end/43519
18666         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
18667         POINTER_PLUS_EXPR for pointer types.
18668
18669 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18670
18671         PR middle-end/43519
18672         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
18673         * graphite-clast-to-gimple.c: Include langhooks.h.
18674         (max_signed_precision_type): New.
18675         (max_precision_type): Takes two types as arguments.
18676         (precision_for_value): New.
18677         (precision_for_interval): New.
18678         (gcc_type_for_interval): New.
18679         (gcc_type_for_value): New.
18680         (gcc_type_for_clast_term): New.
18681         (gcc_type_for_clast_red): New.
18682         (gcc_type_for_clast_bin): New.
18683         (gcc_type_for_clast_expr): Split up into several functions.
18684         (gcc_type_for_clast_eq): Rewritten.
18685         (compute_bounds_for_level): New.
18686         (compute_type_for_level_1): New.
18687         (compute_type_for_level): New.
18688         (gcc_type_for_cloog_iv): Removed.
18689         (gcc_type_for_iv_of_clast_loop): Rewritten.
18690         (graphite_create_new_loop): Compute the lower and upper bound types
18691         with gcc_type_for_clast_expr.
18692         (graphite_create_new_loop_guard): Same.
18693         (find_cloog_iv_in_expr): Removed.
18694         (compute_cloog_iv_types_1): Removed.
18695         (compute_cloog_iv_types): Removed.
18696         (gloog): Do not call compute_cloog_iv_types.
18697         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
18698         GBB_CLOOG_IV_TYPES.
18699         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
18700         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
18701         (GBB_CLOOG_IV_TYPES): Removed.
18702
18703 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18704
18705         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
18706         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
18707         (detect_commutative_reduction): Same.
18708
18709 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18710
18711         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
18712         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
18713         argument.
18714         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
18715         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
18716         (rewrite_commutative_reductions_out_of_ssa): Same.
18717         * passes.c (execute_function_todo): Call verify_ssa for every pass
18718         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
18719         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
18720         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
18721         with an extra argument.
18722         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
18723         verify_ssa only when the extra argument is true.
18724         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
18725         with an extra argument.
18726         (tree_transform_and_unroll_loop): Same.
18727
18728 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18729
18730         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
18731         for all the passes of the LNO having LOOP_CLOSED_SSA.
18732         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
18733         * tree-loop-distribution.c (pass_loop_distribution): Same.
18734         * tree-pass.h (TODO_verify_loops): Removed.
18735         * tree-ssa-loop.c (pass_tree_loop_init): Same.
18736         (pass_lim): Same.
18737         (pass_tree_unswitch): Same.
18738         (pass_predcom): Same.
18739         (pass_vectorize): Same.
18740         (pass_linear_transform): Same.
18741         (pass_graphite_transforms): Same.
18742         (pass_iv_canon): Same.
18743         (pass_complete_unroll): Same.
18744         (pass_complete_unrolli): Same.
18745         (pass_parallelize_loops): Same.
18746         (pass_loop_prefetch): Same.
18747         (pass_iv_optimize): Same.
18748
18749 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
18750
18751         PR middle-end/32824
18752         * passes.c (init_optimization_passes): Move pass_lim before
18753         pass_copy_prop and pass_dce_loop.
18754
18755 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
18756
18757         PR target/43667
18758         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
18759         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
18760         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
18761         MULTI_* defines for 4 argument vpermil2p* builtins.
18762
18763 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
18764
18765         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
18766         * config/i386/i386.c (x86_maybe_negate_const_int): New.
18767         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
18768         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
18769         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
18770         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
18771         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
18772         Use x86_maybe_negate_const_int to output insn mnemonic.
18773         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
18774         check from instruction predicate.  Update comments.
18775         * config/i386/sync.md (sync_add<mode>): Use
18776         x86_maybe_negate_const_int to output insn mnemonic.
18777
18778 2010-04-06  Jan Hubicka  <jh@suse.cz>
18779
18780         PR tree-optimization/42906
18781         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
18782         IGNORE_SELF argument.  Set visited_control_parents for fully
18783         processed BBs.
18784         (find_obviously_necessary_stmts): Update call of
18785         mark_control_dependent_edges_necessary.
18786         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
18787
18788 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
18789
18790         * config/i386/i386.md: Remove comment about 'e' and 'E'
18791         operand modifier.
18792
18793 2010-04-06  Richard Guenther  <rguenther@suse.de>
18794
18795         PR tree-optimization/43627
18796         * tree-vrp.c (extract_range_from_unary_expr): Widenings
18797         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
18798         not varying.
18799
18800 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
18801
18802         * BASE-VER: Change to 4.6.0.
18803
18804         PR target/43638
18805         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
18806         handling.
18807
18808 2010-04-06  Richard Guenther  <rguenther@suse.de>
18809
18810         PR middle-end/43661
18811         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
18812
18813 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18814
18815         * doc/invoke.texi (Optimize Options): Document that LTO
18816         won't remove object access purely due to incompatible
18817         declarations.
18818
18819 2010-04-04  Matthias Klose  <doko@ubuntu.com>
18820
18821         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
18822         Initialize variable.
18823
18824 2010-04-03  Richard Guenther  <rguenther@suse.de>
18825
18826         PR middle-end/42509
18827         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
18828         require a non-NULL MEM_OFFSET.
18829
18830 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
18831
18832         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
18833         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
18834         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
18835         config/alpha/predicates.md, config/arm/arm.md,
18836         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
18837         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
18838         config/darwin9.h, config/darwin.c, config/darwin.h,
18839         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
18840         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
18841         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
18842         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
18843         config/mips/mips.md, config/mn10300/mn10300.c,
18844         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
18845         config/rs6000/aix.h, config/rs6000/dfp.md,
18846         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
18847         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
18848         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
18849         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
18850         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
18851         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
18852         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
18853         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
18854         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
18855         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
18856         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
18857         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
18858         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
18859         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
18860         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
18861         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
18862         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
18863         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
18864         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
18865         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
18866         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
18867         opt-functions.awk, opth-gen.awk, params.def, passes.c,
18868         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
18869         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
18870         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
18871         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
18872         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
18873         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
18874         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
18875         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
18876         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
18877         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
18878         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
18879         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
18880         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
18881         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
18882
18883 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18884
18885         PR other/43620
18886         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
18887         * aclocal.m4: Regenerate.
18888
18889 2010-04-02  Richard Guenther  <rguenther@suse.de>
18890
18891         PR tree-optimization/43629
18892         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
18893         if we have seen a constant value.
18894
18895 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
18896
18897         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
18898
18899 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
18900
18901         PR target/43469
18902         * arm.c (legitimize_tls_address): Adjust call to
18903         gen_tls_load_dot_plus_four.
18904         (arm_note_pic_base): New function.
18905         (arm_cannot_copy_insn_p): Use it.
18906         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
18907         constraint.
18908
18909 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18910
18911         PR bootstrap/43531
18912
18913         Revert:
18914         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18915
18916         * Makefile.in ($(out_object_file)): Depend on
18917         gt-$(basename $(notdir $(out_file))).h.
18918
18919 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
18920
18921         * config.gcc (lm32-*-rtems*): Add t-lm32.
18922
18923 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
18924
18925         * config.gcc: Add lm32-*-rtems*.
18926         * config/lm32/rtems.h: New file.
18927
18928 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
18929
18930         PR target/42609
18931         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
18932
18933 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
18934
18935         * dwarf2out.c (output_compilation_unit_header): For
18936         -gdwarf-4 use version 4 instead of version 3.
18937         (output_line_info): For version 4 and above emit additional
18938         maximum ops per insn header field.
18939         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
18940
18941         * dwarf2out.c (is_c_family, is_java): Remove.
18942         (lower_bound_default): New function.
18943         (add_bound_info, gen_descr_array_type_die): Use it.
18944
18945 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
18946
18947         PR debug/43325
18948         * dwarf2out.c (gen_variable_die): Allow debug info for variable
18949         re-declaration when it happens in a function.
18950
18951 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
18952
18953         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
18954         (cgraph_remove_function_insertion_hook): Same.
18955         (cgraph_call_function_insertion_hooks): Same.
18956
18957 2010-04-01  Richard Guenther  <rguenther@suse.de>
18958
18959         PR middle-end/43614
18960         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
18961         and TREE_THIS_VOLATILE.
18962         (copy_ref_info): Likewise.
18963         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
18964         * tree.c (build6_stat): Ignore side-effects of all but arg5
18965         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
18966         TARGET_MEM_REF.
18967
18968 2010-04-01  Richard Guenther  <rguenther@suse.de>
18969
18970         PR tree-optimization/43607
18971         * ipa-type-escape.c (check_call): Do not access non-existing
18972         arguments.
18973
18974 2010-04-01  Richard Guenther  <rguenther@suse.de>
18975
18976         PR middle-end/43602
18977         Revert
18978         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
18979                     Jack Howarth  <howarth@bromo.med.uc.edu>
18980
18981         * tree-profile.c (tree_init_ic_make_global_vars): Make static
18982         variables TLS.
18983
18984 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18985
18986         * doc/install.texi (Prerequisites): Document libelf usability on
18987         IRIX 5/6 and Solaris 2.
18988         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
18989         Update GNU as, GNU ld requirements.
18990         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
18991         Document Sun Studio compiler download.
18992         Update and simplify as, ld recommendations.
18993         (Specific, *-*-solaris2.7): Note obsoletion, removal.
18994
18995 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18996
18997         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
18998         with_tune_32 to pentium4.
18999
19000 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
19001
19002         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
19003
19004 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19005
19006         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
19007         obsoletion, removal.
19008         Update IDO URL.
19009         Document GNU as requirement.
19010         Update configure requirements.
19011         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
19012         Recomment IRIX 6.5.18+.
19013         Document IDF/IDL requirement.
19014         Document GNU as requirement.
19015         Document GNU ld bootstrap failure.
19016         Remove freeware.sgi.com reference.
19017
19018 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19019
19020         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
19021         UNIX V4.0, V5.0 obsoletion, removal.
19022         Remove --with-gc=simple reference.
19023         Update VM requirements during bootstrap.
19024         Remove -oldas bootstrap description.
19025         Update binutils reference.
19026         Remove comparison failure note.
19027
19028 2010-03-31  Richard Guenther  <rguenther@suse.de>
19029             Zdenek Dvorak  <ook@ucw.cz>
19030             Sebastian Pop  <sebastian.pop@amd.com>
19031
19032         PR middle-end/43464
19033         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
19034         with multiple arguments.
19035         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
19036
19037 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19038
19039         * graphite-dependences.c (print_pddr): Call print_pdr with an
19040         extra argument.
19041         * graphite-poly.c (debug_pdr): Add an extra argument for the
19042         verbosity level.
19043         (print_pdr): Same.
19044         (print_pbb_domain): Same.
19045         (print_pbb): Same.
19046         (print_scop_context): Same.
19047         (print_scop): Same.
19048         (print_cloog): Same.
19049         (debug_pbb_domain): Same.
19050         (debug_pbb): Same.
19051         (print_pdrs): Same.
19052         (debug_pdrs): Same.
19053         (debug_scop_context): Same.
19054         (debug_scop): Same.
19055         (debug_cloog): Same.
19056         (print_scop_params): Same.
19057         (debug_scop_params): Same.
19058         (print_iteration_domain): Same.
19059         (print_iteration_domains): Same.
19060         (debug_iteration_domain): Same.
19061         (debug_iteration_domains): Same.
19062         (print_scattering_function): Same.
19063         (print_scattering_functions): Same.
19064         (debug_scattering_function): Same.
19065         (debug_scattering_functions): Same.
19066         * graphite-poly.h (debug_pdr): Update declaration.
19067         (print_pdr): Same.
19068         (print_pbb_domain): Same.
19069         (print_pbb): Same.
19070         (print_scop_context): Same.
19071         (print_scop): Same.
19072         (print_cloog): Same.
19073         (debug_pbb_domain): Same.
19074         (debug_pbb): Same.
19075         (print_pdrs): Same.
19076         (debug_pdrs): Same.
19077         (debug_scop_context): Same.
19078         (debug_scop): Same.
19079         (debug_cloog): Same.
19080         (print_scop_params): Same.
19081         (debug_scop_params): Same.
19082         (print_iteration_domain): Same.
19083         (print_iteration_domains): Same.
19084         (debug_iteration_domain): Same.
19085         (debug_iteration_domains): Same.
19086         (print_scattering_function): Same.
19087         (print_scattering_functions): Same.
19088         (debug_scattering_function): Same.
19089         (debug_scattering_functions): Same.
19090
19091 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19092
19093         * graphite-poly.c (print_scattering_function_1): New.
19094         (print_scattering_function): Call it.
19095         (print_scop_params): Remove spaces at the end of lines.
19096         (print_cloog): New.
19097         (debug_cloog): New.
19098         * graphite-poly.h (print_cloog): Declared.
19099         (debug_cloog): Declared.
19100
19101 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19102
19103         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
19104         in loop->header.
19105         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
19106         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
19107         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
19108         to switch between adding the IV bump in loop->latch or in loop->header.
19109
19110 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19111
19112         * graphite-poly.c (print_scattering_function): Pretty print following
19113         the scoplib format.
19114         (print_pdr): Same.
19115         (print_pbb_domain): Same.
19116         (dump_gbb_cases): Same.
19117         (dump_gbb_conditions): Same.
19118         (print_pdrs): Same.
19119         (print_pbb): Same.
19120         (print_scop_params): Same.
19121         (print_scop_context): Same.
19122         (print_scop): Same.
19123         (print_pbb_body): New.
19124         (lst_indent_to): New.
19125         (print_lst): Start new lines with a #.
19126         * graphite-poly.h (pbb_bb): New.
19127         (pbb_index): Use pbb_bb.
19128         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
19129         disjuncts.
19130         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
19131
19132 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
19133
19134         * dwarf2out.c (size_of_die): For -gdwarf-4 use
19135         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
19136         and 0 instead of 1 for dw_val_class_flag.
19137         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
19138         dw_val_class_range_list, dw_val_class_loc_list,
19139         dw_val_class_lineptr and dw_val_class_macptr, use
19140         DW_FORM_flag_present for dw_val_class_flag and
19141         DW_FORM_exprloc for dw_val_class_loc.
19142         (output_die): For -gdwarf-4 print dw_val_class_loc
19143         size as uleb128 instead of 1 or 2 bytes and don't print
19144         anything for dw_val_class_flag.
19145
19146         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
19147         instead of cselib_lookup following by tweaking locs->setting_insn.
19148
19149         PR bootstrap/43596
19150         * cselib.c (cselib_process_insn): Clear cselib_current_insn
19151         even before returning from label, setjmp call or volatile asm
19152         handling.
19153
19154 2010-03-31  Richard Guenther  <rguenther@suse.de>
19155
19156         PR middle-end/43600
19157         * cgraphunit.c (cgraph_output_in_order): Do not allocate
19158         temporary data on stack.
19159
19160 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19161
19162         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
19163         (PUSHSECTION_ASM_OP): Remove.
19164         (POPSECTION_ASM_OP): Remove.
19165         (PUSHSECTION_FORMAT): Remove.
19166         * config/sol2.h (PUSHSECTION_FORMAT): Define.
19167         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
19168         * config/sol2.c (solaris_output_init_fini): Use it.
19169
19170 2010-03-31  Jie Zhang  <jie@codesourcery.com>
19171
19172         PR 43574
19173         * opt-functions.awk (var_type_struct): Use signed char type
19174         for simple variables.
19175
19176 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19177
19178         * config/sol2.c: Include output.h.
19179         (solaris_assemble_visibility): New function.
19180         * config/t-sol2 (sol2.o): Add output.h dependency.
19181         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
19182         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
19183         Redefine.
19184
19185 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
19186
19187         PR target/43580
19188         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
19189         V2SImode or XFmode on PRE_DEC.
19190
19191         PR debug/43557
19192         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
19193         BLKmode.
19194
19195 2010-03-31  Jie Zhang  <jie@codesourcery.com>
19196
19197         PR 43562
19198         * reload.h (caller_save_initialized_p): Declare.
19199         * toplev.c (backend_init_target): Don't call
19200         init_caller_save but set caller_save_initialized_p to false.
19201         * caller-save.c (caller_save_initialized_p): Define.
19202         (init_caller_save): Check caller_save_initialized_p.
19203         * ira.c (ira): Call init_caller_save if flag_caller_saves.
19204
19205 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19206
19207         PR target/39048
19208         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
19209         and soft-fp/t-softfp to tmake_file.
19210         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
19211         (LIBGCC2_TF_CEXT): Define.
19212         (TF_SIZE): Define.
19213
19214 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
19215
19216         PR debug/42977
19217         * cselib.c (n_useless_values): Document handling of debug locs.
19218         (n_useless_debug_values, n_debug_values): New variables.
19219         (new_elt_loc_list): Don't add to debug values, keep count.
19220         (promote_debug_loc): New.
19221         (cselib_reset_table): Zero new variables.
19222         (entry_and_rtx_equal_p): Promote debug locs.
19223         (discard_useless_locs): Increment n_useless_debug_values for
19224         debug values.
19225         (remove_useless_values): Adjust n_useless_values and n_debug_values
19226         with n_useless_debug_values.
19227         (add_mem_for_addr): Promote debug locs.
19228         (cselib_lookup_mem): Likewise.
19229         (cselib_lookup_addr): Renamed to...
19230         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
19231         (cselib_log_lookup): ... this.  Turn into...
19232         (cselib_lookup_addr): ... new wrapper.
19233         (cselib_lookup_from_insn): New.
19234         (cselib_invalidate_regno): Increment n_useless_debug_values for
19235         debug values.
19236         (cselib_invalidate_mem): Likewise.
19237         (cselib_process_insn): Take n_deleted and n_debug_values into
19238         account to guard remove_useless_value call.
19239         (cselib_finish): Zero n_useless_debug_values.
19240         * cselib.h (cselib_lookup_from_insn): Declare.
19241         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
19242         (sched_analyze_2): Likewise.
19243
19244 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
19245
19246         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
19247         functions.
19248         (adjust_mems): Replace narrowing SUBREG of expression containing
19249         just PLUS, MINUS, MULT and ASHIFT of registers and constants
19250         with operations in the narrower mode.
19251
19252         PR debug/43593
19253         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
19254         regs_invalidated_by_call instead all call_used_reg_set registers.
19255
19256 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
19257
19258         PR middle-end/43430
19259         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
19260         pointer comparisons with types_compatible_p.
19261         * tree-vect-stmts.c (vectorizable_call): Same.
19262         (vectorizable_condition): Same.
19263
19264 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19265
19266         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
19267         stack check if the mask would be zero.
19268
19269 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
19270             Jack Howarth  <howarth@bromo.med.uc.edu>
19271
19272         * tree-profile.c (tree_init_ic_make_global_vars): Make static
19273         variables TLS.
19274
19275 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
19276
19277         PR other/25232
19278         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
19279         and __unordtf2.
19280         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
19281         Include ___unordxf2 and ___unordtf2.
19282         * config/i386/libgcc-glibc.ver: Do not define inheritance from
19283         GCC_4.4.0 here.
19284
19285 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
19286
19287         * config/lm32/t-lm32: New file.
19288         * config.gcc: Use the above file when targetting lm32.
19289
19290 2010-03-28  Duncan Sands  <baldrick@free.fr>
19291
19292         * Makefile.in (PLUGIN_HEADERS): Add except.h.
19293
19294 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
19295
19296         PR middle-end/43431
19297         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
19298         Improve vectorization cost model diagnostic.
19299
19300 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
19301
19302         PR middle-end/43436
19303         * tree-vect-data-refs.c (vect_analyze_data_refs): When
19304         compute_data_dependences_for_loop returns false, early exit
19305         and output an extra diagnostic for the failed data reference
19306         analysis.
19307
19308 2010-03-29  Richard Guenther  <rguenther@suse.de>
19309
19310         PR tree-optimization/43560
19311         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
19312         (can_sm_ref_p): Treat stores to readonly locations as trapping.
19313
19314 2010-03-29  Jie Zhang  <jie@codesourcery.com>
19315
19316         PR 43564
19317         * toplev.c (process_options): Set optimization_default_node
19318         and optimization_current_node.
19319         * opts.c (decode_options): Don't set optimization_default_node
19320         and optimization_current_node.
19321
19322 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
19323
19324         * config/rtems.h: Abandon -qrtems_debug.
19325
19326 2010-03-28  Jan Hubicka  <jh@suse.cz>
19327
19328         PR tree-optimization/43505
19329         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
19330         map should not be copied.
19331
19332 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19333
19334         PR middle-end/41674
19335         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
19336         cdtors, set DECL_PRESERVE_P.
19337         * ipa.c (cgraph_externally_visible_p): Return true if declaration
19338         should be preseved.
19339
19340 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
19341
19342         PR tree-optimization/43528
19343         * stor-layout.c (place_field): Check that constant fits into
19344         unsigned HWI when skipping calculation of MS bitfield layout.
19345
19346 2010-03-27  Jan Hubicka  <jh@suse.cz>
19347
19348         PR middle-end/43391
19349         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
19350         notice_global_symbol work.
19351
19352 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
19353
19354         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
19355         instead of dwarf2out_decl.
19356         (struct var_loc_node): Remove section_label field.
19357         (dwarf2out_function_decl): New function.
19358         (dwarf2out_var_location): Don't set section_label field.
19359         (dwarf2out_begin_function): Don't empty decl_loc_table here.
19360
19361 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
19362
19363         PR tree-optimization/43544
19364         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
19365         First argument for builtin vectorized function hook is now a
19366         tree to be able to distinguish between machine specific and
19367         standard builtins.
19368         * targhooks.c (default_builtin_vectorized_function): Ditto.
19369         * targhooks.h (default_builtin_vectorized_function): Ditto.
19370         * target.h (struct gcc_target): Ditto.
19371         * tree-vect-stmts.c (vectorizable_function): Ditto.
19372         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
19373         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
19374         Ditto.
19375
19376 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
19377
19378         PR c/43381
19379         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
19380         nested binding iff it is a FUNCTION_DECL.
19381         (store_parm_decls_newstyle): Pass nested=true to bind for
19382         FUNCTION_DECLs amongst parameters.
19383
19384 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
19385
19386         * var-tracking.c (vt_expand_loc_callback): Don't run
19387         cselib_expand_value_rtx_cb in dummy mode if
19388         cselib_dummy_expand_value_rtx_cb returned false.
19389
19390         * var-tracking.c (emit_note_insn_var_location): For one part
19391         notes with offset 0, don't add EXPR_LIST around the location.
19392         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
19393         add_location_or_const_value_attribute): Adjust for that change.
19394
19395         PR debug/43540
19396         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
19397         into first operand and location into second.
19398         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
19399         dw_cfi_oprnd_loc for DW_CFA_expression.
19400         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
19401         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
19402         assume first argument is regnum and second argument is location.
19403
19404 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
19405
19406         PR target/42113
19407         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
19408         of scratch register to DImode.  Split to DImode comparison operator.
19409         Use SImode subreg of scratch register in the multiplication.
19410         (*cmp_sadd_sidi): Ditto.
19411         (*cmp_ssub_si): Ditto.
19412         (*cmp_ssub_sidi): Ditto.
19413
19414 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
19415
19416         PR target/43524
19417         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
19418         Remove invalid assert and wrong comment.
19419
19420 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
19421
19422         PR debug/43516
19423         * flags.h (final_insns_dump_p): New extern.
19424         * final.c (final_insns_dump_p): New variable.
19425         (rest_of_clean_state): Set it before -fdump-final-insns=
19426         dumping, clear afterwards.
19427         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
19428         MEM_ALIAS_SET on MEMs.
19429
19430 2010-03-26  David S. Miller  <davem@davemloft.net>
19431
19432         * configure.ac: Fix sparc GOTDATA_OP bug check.
19433         * configure: Rebuild.
19434
19435 2010-03-26  Alan Modra  <amodra@gmail.com>
19436
19437         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
19438
19439 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19440
19441         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
19442         TLS_SECTION_ASM_FLAG.
19443
19444 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
19445
19446         PR bootstrap/43511
19447         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
19448         Clear first_function_block_is_cold.
19449
19450         PR c/43385
19451         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
19452         argument if the argument is truth_value_p.
19453
19454 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
19455
19456         * config/rs6000/constraints.md: Update copyright year for my changes.
19457
19458         PR target/43484
19459         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
19460         used in reg+reg addressing, swap registers.
19461
19462 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
19463
19464         PR debug/43293
19465         * target.h (struct gcc_target): Add code_end hook.
19466         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
19467         if not yet defined.
19468         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
19469         * toplev.c (compile_file): Call targetm.asm_out.code_end
19470         hook before unwind info/debug info output.
19471         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
19472         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
19473         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
19474         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
19475         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
19476         * config/i386/i386.c (ix86_file_end): Renamed to...
19477         (ix86_code_end): ... this.  Make static.  Don't call
19478         file_end_indicate_exec_stack.  Emit unwind info using
19479         final_start_function/final_end_function.
19480         (darwin_x86_file_end): Remove.
19481         (TARGET_ASM_CODE_END): Define.
19482         * config/i386/i386.h (TARGET_ASM_FILE_END,
19483         NEED_INDICATE_EXEC_STACK): Don't define.
19484         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
19485         (TARGET_ASM_FILE_END): Define to darwin_file_end.
19486         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
19487         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
19488
19489         PR target/43498
19490         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
19491         at the beginning and final_end_function at the end.
19492         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
19493
19494 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19495
19496         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
19497         and Sun as TLS syntax.
19498         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
19499         * configure: Regenerate.
19500         * config.in: Regenerate.
19501         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
19502         (default_elf_asm_named_section): Use it.
19503         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
19504         (i386_output_dwarf_dtprel): Likewise.
19505         (output_addr_const_extra): Likewise.
19506         (output_pic_addr_const): Lowercase @GOTTPOFF.
19507         (output_addr_const_extra): Likewise.
19508         (output_pic_addr_const): Lowercase @GOTNTPOFF.
19509         (output_addr_const_extra): Likewise.
19510         (output_pic_addr_const): Lowercase @INDNTPOFF.
19511         (output_addr_const_extra): Likewise.
19512         (output_pic_addr_const): Lowercase @NTPOFF.
19513         (output_addr_const_extra): Likewise.
19514         (output_pic_addr_const): Lowercase @TPOFF.
19515         (output_addr_const_extra): Likewise.
19516         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
19517         (*tls_global_dynamic_64): Likewise.
19518         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
19519         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
19520
19521         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
19522         (ASM_OUTPUT_TLS_COMMON): Use it.
19523         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
19524
19525         PR target/38118
19526         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
19527         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
19528         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
19529         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
19530         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
19531         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
19532
19533 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19534
19535         * config/i386/i386.c (override_options): Don't accept
19536         -mtls-dialect=sun any longer.
19537         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
19538         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
19539         (*tls_local_dynamic_base_32_sun): Likewise.
19540         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
19541
19542 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
19543
19544         PR debug/43508
19545         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
19546         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
19547
19548         PR debug/43479
19549         * ira.c (adjust_cleared_regs): New function.
19550         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
19551
19552         PR debug/19192
19553         PR debug/43479
19554         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
19555         from gimple_block.
19556         * expr.c (expand_expr_real): Restore previous
19557         curr_insn_source_location and curr_insn_block after
19558         expand_expr_real_1 call.
19559         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
19560         instead of expand_expr_real_1.
19561
19562 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
19563
19564         PR rtl-optimization/43413
19565         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
19566         hard regs too.
19567
19568 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
19569
19570         PR target/43348
19571         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
19572         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
19573
19574 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
19575
19576         * config/i386/i386.c (ix86_target_string): Add -mfma.
19577         Fix a typo in comment.
19578
19579 2010-03-22  Mike Stump  <mikestump@comcast.net>
19580
19581         PR target/23071
19582         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
19583         Don't overly align based upon packed packed fields.
19584
19585 2010-03-22  Jason Merrill  <jason@redhat.com>
19586
19587         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
19588         Use () rather than [], and move before the element type.
19589
19590 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19591
19592         * doc/configfiles.texi (Configuration Files): Removed
19593         fixinc/Makefile*, intl/Makefile.*.
19594         * doc/makefile.texi: Fixed markup. Abstract from version
19595         control system used.
19596         (Makefile): Removed obsolete gcc/java/parse.y example.
19597         * doc/sourcebuild.texi: Likewise.
19598         (Top Level): Added config, gnattools, libdecnumber, libgcc,
19599         libgomp, libssp.  Removed fastjar.
19600         (Miscellaneous Docs): Clarify location.
19601         Added COPYING3, COPYING3.LIB.
19602         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
19603
19604 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19605
19606         PR target/38085
19607         * config/i386/i386.c (x86_function_profiler)
19608         [!NO_PROFILE_COUNTERS]: Fix typo.
19609         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
19610         instead of callq.
19611
19612 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
19613             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19614
19615         * doc/sourcebuild.texi (Test Directives): Split into six
19616         subsections, with most of the current text in new subsections
19617         Directives, Selectors, and Final Actions.
19618         (Directives): Split list of test directives into multiple
19619         subsubsections.
19620         (Selectors): Describe use and syntax of selectors.
19621         (Effective-Target Keywords): Describe all existing keywords.
19622         (Add Options): Describe features for dg-add-options.
19623         (Require Support): Describe variants of dg-require-support.
19624         (Final Actions): Describe commands to use in dg-final.
19625
19626 2010-03-22  Michael Matz  <matz@suse.de>
19627
19628         PR middle-end/43475
19629         * recog.c (validate_replace_rtx_group): Replace also in
19630         REG_EQUAL and REG_EQUIV notes.
19631
19632 2010-03-22  Richard Guenther  <rguenther@suse.de>
19633
19634         PR tree-optimization/43390
19635         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
19636         sure vector extracts are type correct.
19637
19638 2010-03-22  Richard Guenther  <rguenther@suse.de>
19639
19640         PR middle-end/40106
19641         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
19642         x * sqrt (x) even when optimizing for size if the target
19643         has native support for sqrt.
19644
19645 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
19646
19647         * varasm.c (make_decl_rtl_for_debug): Also clear
19648         flag_mudflap for the duration of make_decl_rtl call.
19649
19650         PR debug/43443
19651         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
19652         locs from preserved VALUEs.
19653
19654 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19655
19656         PR middle-end/42718
19657         * pa.md (movmemsi): Set align to one if zero.
19658         (movmemdi): Likewise.
19659
19660 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
19661
19662         PR target/42321
19663         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
19664         with their corresponding prologue pushes.
19665
19666 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
19667
19668         PR target/43156
19669         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
19670         at the begining or end.
19671         (spu_expand_epilogue): Likewise.
19672
19673 2010-03-20  Richard Guenther  <rguenther@suse.de>
19674
19675         PR rtl-optimization/43438
19676         * combine.c (make_extraction): Properly zero-/sign-extend an
19677         extraction of the low part of a CONST_INT.  Also handle
19678         CONST_DOUBLE.
19679
19680 2010-03-19  Mike Stump  <mikestump@comcast.net>
19681
19682         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
19683         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
19684         (override_options): Use SUBTARGET32_DEFAULT_CPU.
19685
19686 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
19687
19688         PR c/43211
19689         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
19690         an error.
19691
19692 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
19693
19694         PR rtl-optimization/42258
19695         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
19696         use that may match DEF.
19697
19698         PR target/40697
19699         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
19700         the cost of loading the constant rather than assuming
19701         COSTS_N_INSNS (1).
19702         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
19703         outer code is AND, do the same tests as the andsi3 expander and
19704         return COSTS_N_INSNS (1) if and is cheap.
19705
19706         * optabs.c (avoid_expensive_constant): Fix formatting.
19707
19708 2010-03-19  Michael Matz  <matz@suse.de>
19709
19710         PR c++/43116
19711         * attribs.c (decl_attributes): When rebuilding a function pointer
19712         type use the same qualifiers as the original pointer type.
19713
19714 2010-03-19  Martin Jambor  <mjambor@suse.cz>
19715
19716         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
19717         and is_gimple_ip_invariant_address.
19718
19719 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19720
19721         Revert
19722         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19723
19724         * config/arm/arm.c (arm_override_options): Turn off
19725         flag_dwarf2_cfi_asm for AAPCS variants.
19726
19727 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19728
19729         PR target/43399
19730         * config/arm/arm.c (emit_multi_reg_push): Update comments.
19731         Use PRE_MODIFY instead of PRE_DEC.
19732         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
19733         (vfp_emit_fstmd): Likewise.
19734
19735 2010-03-19  Michael Matz  <matz@suse.de>
19736
19737         PR target/43305
19738         * builtins.c (expand_builtin_interclass_mathfn,
19739         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
19740         if that fails.
19741
19742 2010-03-19  Richard Guenther  <rguenther@suse.de>
19743
19744         PR tree-optimization/43415
19745         * tree-ssa-pre.c (phi_translate): Split out worker to ...
19746         (phi_translate_1): ... this.
19747         (phi_translate): Move all caching here.  Cache all NARY
19748         and REFERENCE translations.
19749
19750 2010-03-19  David S. Miller  <davem@davemloft.net>
19751
19752         With help from Eric Botcazou.
19753         * config/sparc/sparc.c: Include dwarf2out.h.
19754         (emit_pic_helper): Delete.
19755         (pic_helper_symbol_name): Delete.
19756         (pic_helper_emitted_p): Delete.
19757         (pic_helper_needed): New.
19758         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
19759         (get_pc_thunk_name): New.
19760         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
19761         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
19762         Set pic_helper_needed to true.  Don't call emit_pic_helper.
19763         (sparc_expand_prologue): Update load_pic_register call.
19764         (sparc_output_mi_thunk): Likewise.
19765         (sparc_file_end): Emit a hidden comdat symbol for the PIC
19766         thunk if possible.  Output CFI information as needed.
19767
19768 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
19769             Jack Howarth  <howarth@bromo.med.uc.edu>
19770
19771         PR target/36399
19772         * config/i386/i386.h: Fix ABI on darwin x86-32.
19773
19774 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
19775
19776         * tree.h: Declare make_decl_rtl_for_debug.
19777         * varasm.c (make_decl_rtl_for_debug): New.
19778         * dwarf2out.c (rtl_for_decl_location): Call it.
19779         * cfgexpand.c (expand_debug_expr): Call it.
19780
19781 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
19782
19783         PR bootstrap/43399
19784         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
19785         mem_mode.
19786
19787         PR bootstrap/43403
19788         * var-tracking.c (vt_init_cfa_base): Do nothing if
19789         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
19790
19791 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
19792
19793         PR debug/42873
19794         * var-tracking.c (canonicalize_vars_star): New.
19795         (dataflow_post_merge_adjust): Use it.
19796
19797 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
19798
19799         PR debug/43058
19800         * var-tracking.c (non_suitable_const): New function.
19801         (add_uses): For DEBUG_INSNs with constants, don't record any
19802         value, instead just the constant value itself.
19803         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
19804         is not VAR_LOC_UNKNOWN_P, set var to the constant.
19805         (emit_notes_in_bb): Likewise.
19806         (emit_note_insn_var_location): For onepart variables if
19807         cur_loc is a VOIDmode constant, use DECL_MODE.
19808
19809 2010-03-18  Martin Jambor  <mjambor@suse.cz>
19810
19811         PR middle-end/42450
19812         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
19813         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
19814         all non-clones.  Moved call redirection...
19815         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
19816         (cgraph_materialize_all_clones): Dispose of all
19817         combined_args_to_skip bitmaps.
19818         (verify_cgraph_node): Do not check for edges pointing to wrong
19819         nodes in inline clones.
19820         * tree-inline.c (copy_bb): Call
19821         cgraph_redirect_edge_call_stmt_to_callee.
19822         * ipa.c (cgraph_remove_unreachable_nodes): Call
19823         cgraph_node_remove_callees even when there are used clones.
19824
19825 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
19826
19827         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
19828
19829 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
19830
19831         PR target/43383
19832         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
19833         for 32bit.
19834
19835 2010-03-18  Michael Matz  <matz@suse.de>
19836
19837         PR middle-end/43419
19838         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
19839         into sqrt(x) if we need to preserve signed zeros.
19840
19841 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
19842             Eric Botcazou  <ebotcazou@adacore.com>
19843
19844         PR rtl-optimization/43360
19845         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
19846         note if we don't know its invariant status.
19847
19848 2010-03-18  Michael Matz  <matz@suse.de>
19849
19850         PR tree-optimization/43402
19851         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
19852         PHI chains of ssa names registered for update.
19853
19854 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
19855
19856         PR target/42427
19857         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
19858         non-offsettable and pre_modify update addressing.
19859         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
19860         and "2" alternatives "#".
19861         (*movdd_softfloat32): Make all alternatives "#";
19862         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
19863         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
19864         (*movdf_softfloat32): Make all alternatives "#";
19865         (movdi): Use the new DIFD mode iterator to create a common splitter
19866         for movdi, movdf and movdd patterns.
19867
19868 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
19869
19870         * common.opt (dumpdir): Remove redundant tab.
19871
19872 2010-03-17  Martin Jambor  <mjambor@suse.cz>
19873
19874         PR tree-optimization/43347
19875         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
19876         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
19877
19878 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
19879
19880         PR rtl-optimization/42216
19881         * regrename.c (create_new_chain): New function, broken out from...
19882         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
19883         appending a use to an empty chain.
19884         (build_def_use): Remove previous changes that convert OP_INOUT to
19885         OP_OUT operands; instead detect the case where an OP_INOUT operand
19886         uses a previously untracked register and create an empty chain for it.
19887
19888 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19889
19890         * doc/extend.texi (Function Attributes): Rewrite unfinished
19891         sentence in ms_abi documentation.
19892
19893 2010-03-17  Alan Modra  <amodra@gmail.com>
19894
19895         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
19896         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
19897         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
19898         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
19899
19900 2010-03-16  Richard Henderson  <rth@redhat.com>
19901
19902         PR middle-end/43365
19903         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
19904         (lower_try_finally): Save and restore eh_seq around the expansion
19905         of the try-finally.
19906
19907 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
19908
19909         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
19910         statements before splitting block.
19911
19912 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19913
19914         * doc/sourcebuild.texi (Testsuites): Fix markup.
19915         Use pathnames relative to gcc/testsuite.
19916         (Test Directives): Move description of how timeout is determined.
19917         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
19918         (C Tests): Correct gcc.misc-tests directory.
19919         Framework tests now live in gcc.test-framework.
19920
19921 2010-03-16  Richard Guenther  <rguenther@suse.de>
19922
19923         PR middle-end/43379
19924         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
19925         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
19926
19927 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
19928             Alexandre Oliva  <aoliva@redhat.com>
19929
19930         PR tree-optimization/42917
19931         * lambda-code.c (remove_iv): Skip debug statements.
19932         (lambda_loopnest_to_gcc_loopnest): Likewise.
19933         (not_interesting_stmt): Debug statements are not interesting.
19934
19935 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
19936
19937         PR debug/43051
19938         PR debug/43092
19939         * cselib.c (cselib_preserve_constants,
19940         cfa_base_preserved_val): New static variables.
19941         (preserve_only_constants): New function.
19942         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
19943         clear its REG_VALUES.  If cselib_preserve_constants, don't
19944         empty the whole hash table, but preserve there VALUEs with constants,
19945         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
19946         (cselib_preserve_cfa_base_value): New function.
19947         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
19948         (cselib_init): Change argument to int bitfield.  Set
19949         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
19950         is in it.
19951         (cselib_finish): Clear cselib_preserve_constants and
19952         cfa_base_preserved_val.
19953         * cselib.h (enum cselib_record_what): New enum.
19954         (cselib_init): Change argument to int.
19955         (cselib_preserve_cfa_base_value): New prototype.
19956         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
19957         * dse.c (dse_step1): Likewise.
19958         * cfgcleanup.c (thread_jump): Likewise.
19959         * sched-deps.c (sched_analyze): Likewise.
19960         * gcse.c (local_cprop_pass): Likewise.
19961         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
19962         If FN is non-NULL, call the callback always and whenever it returns
19963         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
19964         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
19965         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
19966         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
19967         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
19968         * var-tracking.c: Include recog.h.
19969         (bb_stack_adjust_offset): Remove.
19970         (vt_stack_adjustments): Don't call it, instead just gather the
19971         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
19972         (adjust_stack_reference): Remove.
19973         (compute_cfa_pointer): New function.
19974         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
19975         (struct adjust_mem_data): New type.
19976         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
19977         functions.
19978         (get_address_mode): New function.
19979         (replace_expr_with_values): Use it.
19980         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
19981         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
19982         (adjust_sets): Remove.
19983         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
19984         Use get_address_mode.
19985         (get_adjusted_src): Remove.
19986         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
19987         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
19988         (add_with_sets): Don't call adjust_sets.
19989         (fp_setter, vt_init_cfa_base): New functions.
19990         (vt_initialize): Change return type to bool.  Move most of pool etc.
19991         initialization to the beginning of the function from end.  Pass
19992         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
19993         If !frame_pointer_needed, call vt_stack_adjustment before mos
19994         vector is filled, call vt_init_cfa_base if argp/framep has been
19995         eliminated to sp.  If frame_pointer_needed and argp/framep has
19996         been eliminated to hard frame pointer, set
19997         hard_frame_pointer_adjustment and call vt_init_cfa_base after
19998         encountering fp setter in the prologue.  For MO_ADJUST, call
19999         log_op_type before pusing the op into mos vector, not afterwards.
20000         Call adjust_insn before cselib_process_insn/add_with_sets,
20001         call cancel_changes (0) afterwards.
20002         (variable_tracking_main_1): Adjust for vt_initialize calling
20003         vt_stack_adjustments and returning whether it succeeded or not.
20004
20005 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
20006
20007         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
20008         debug statements.
20009
20010 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
20011
20012         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
20013         has been set.
20014         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
20015         drap_reg has not been set.
20016
20017 2010-03-15  Michael Matz  <matz@suse.de>
20018
20019         PR middle-end/43300
20020         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
20021         use it to expand block copies.
20022         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
20023         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
20024         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
20025
20026 2010-03-15  Richard Guenther  <rguenther@suse.de>
20027
20028         PR tree-optimization/43367
20029         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
20030         elimination check.
20031
20032 2010-03-15  Richard Guenther  <rguenther@suse.de>
20033
20034         PR tree-optimization/43317
20035         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
20036
20037 2010-03-15  Martin Jambor  <mjambor@suse.cz>
20038
20039         PR tree-optimization/43141
20040         * tree-sra.c (create_abstract_origin): New function.
20041         (modify_function): Call create_abstract_origin.
20042
20043 2010-03-15  Chris Demetriou  <cgd@google.com>
20044
20045         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
20046         wasn't copied.
20047
20048 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20049
20050         PR middle-end/43354
20051         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
20052         call insert_out_of_ssa_copy for default definitions.
20053
20054 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20055
20056         * graphite-clast-to-gimple.c (my_long_long): Defined.
20057         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
20058         * graphite-sese-to-poly.c (my_long_long): Defined.
20059         (scop_ivs_can_be_represented): Use it.
20060
20061 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20062
20063         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
20064         graphite-max-bbs-per-function, and loop-block-tile-size.
20065         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
20066         with "maximum".
20067         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
20068
20069 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20070
20071         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
20072         forward declaration.
20073         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
20074         (add_upper_bounds_from_estimated_nit): New.
20075         (build_loop_iteration_domains): Use it.
20076
20077 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20078
20079         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
20080
20081 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20082
20083         PR middle-end/43306
20084         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
20085         should be an INTEGER_CST.  Also handle CASE_CONVERT.
20086
20087 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20088
20089         * graphite.c (graphite_initialize): To bound the number of bbs per
20090         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
20091         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
20092         * doc/invoke.texi: Document it.
20093
20094 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20095
20096         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
20097         * graphite-sese-to-poly.h (build_poly_scop): Same.
20098
20099 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20100
20101         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
20102         the number of parameters in the scop.  Use as an upper bound
20103         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
20104         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
20105         * doc/invoke.texi: Document it.
20106
20107 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
20108
20109         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
20110         * doc/c-tree.texi: Remove.
20111         * doc/generic.texi: Merge c-tree.texi here.
20112         * doc/gccint.texi (Trees): Remove menu entry.
20113         (c-tree.texi): Remove @include.
20114         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
20115         * doc/languages.texi (Reading RTL): Ditto.
20116
20117 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
20118
20119         PR target/42869
20120         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
20121
20122 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
20123
20124         PR middle-end/42431
20125         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
20126         code added to work around reload clobbering CONST insns.
20127
20128 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
20129
20130         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
20131         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
20132         (cselib_preserve_only_values): Remove retain argument, don't
20133         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
20134         * cselib.h (cselib_preserve_only_values): Remove retain argument.
20135         * var-tracking.c (micro_operation): Move insn field before union.
20136         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
20137         (struct variable_tracking_info_def): Remove n_mos field, change
20138         mos into a vector of micro_operations.
20139         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
20140         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
20141         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
20142         changing into a vector.
20143         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
20144         come before all other uops generated by add_stores.
20145         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
20146         argument removal.
20147         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
20148         a vector.  Run just one pass over the bbs instead of separate counting
20149         and computation phase.
20150         (vt_finalize): Free VTI (bb)->mos vector instead of array.
20151
20152         PR debug/43329
20153         * tree-inline.c (remap_decls): Put old_var rather than origin_var
20154         into *nonlocalized_list vector.
20155         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
20156         even if origin is non-NULL.
20157         (gen_variable_die): Likewise.
20158         (process_scope_var): Don't change origin.
20159         (gen_decl_die): Likewise.
20160         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
20161         before adding new edges instead of after it, fix moving over
20162         debug stmts.
20163
20164 2010-03-11  David S. Miller  <davem@davemloft.net>
20165
20166         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
20167         of four.
20168         * configure: Rebuild.
20169
20170 2010-03-11  Martin Jambor  <mjambor@suse.cz>
20171
20172         PR tree-optimization/43257
20173         * tree.c (assign_assembler_name_if_neeeded): New function.
20174         (free_lang_data_in_cgraph): Assembler name assignment moved to the
20175         above new function.
20176         * tree.h (assign_assembler_name_if_neeeded): Declare.
20177         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
20178         the function if needed.
20179
20180 2010-03-11  Chris Demetriou  <cgd@google.com>
20181
20182         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
20183         include/stdint-gcc.h, and include/stdint.h world-readable.
20184
20185 2010-03-11  Richard Guenther  <rguenther@suse.de>
20186
20187         PR tree-optimization/43255
20188         * tree-vrp.c (process_assert_insertions_for): Do not insert
20189         asserts for trivial conditions.
20190
20191 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20192
20193         PR tree-optimization/43280
20194         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
20195         generation.  Move calculation of size out of the if branch.
20196         (find_bswap): Modify compare number generation.
20197
20198 2010-03-11  Richard Guenther  <rguenther@suse.de>
20199
20200         PR lto/43200
20201         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
20202         (input_gimple_stmt): Fixup handled component types during
20203         operand read.  Also fix up decls in ADDR_EXPRs.
20204
20205 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
20206
20207         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
20208         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
20209
20210 2010-03-10  Jan Hubicka  <jh@suse.cz>
20211
20212         PR c/43288
20213         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
20214         * varasm.c (get_variable_section): Don't do that here...
20215         (make_decl_rtl): ... and here.
20216         (do_assemble_alias): Produce decl RTL.
20217         (assemble_alias): Likewise.
20218
20219 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
20220
20221         PR debug/43290
20222         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
20223         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
20224         of fde->vdrap_reg.
20225         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
20226         (based_loc_descr): Only express drap or vdrap regno based expressions
20227         using DW_OP_fbreg when not optimizing.
20228         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
20229         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
20230         REG_CFA_SET_VDRAP note.
20231
20232 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
20233
20234         PR tree-optimization/43236
20235         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
20236         error in calculation of base address in reverse iteration case.
20237         (generate_builtin): Take number of latch executions if the statement
20238         is in the latch.
20239
20240 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
20241
20242         PR middle-end/42859
20243         * tree-eh.c: Include pointer-set.h.
20244         (lower_eh_dispatch): Filter out duplicate case labels and
20245         remove the unneeded edge when the label is unused.  Return
20246         true when some edges are removed.
20247         (execute_lower_eh_dispatch): When any lowering resulted in
20248         removing an edge, also delete unreachable blocks.
20249
20250 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
20251
20252         PR bootstrap/43287
20253         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
20254         UNSPEC_MACHOPIC_OFFSET.
20255
20256 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
20257
20258         PR target/43294
20259         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
20260         (m68k_delegitimize_address): New function.
20261
20262 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
20263
20264         PR debug/43299
20265         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
20266
20267         PR debug/43299
20268         * var-tracking.c (adjust_sets): New function.
20269         (count_with_sets, add_with_sets): Use it.
20270         (get_adjusted_src): New inline function.
20271         (add_stores): Use it.
20272
20273         PR debug/43304
20274         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
20275         call cselib_dummy_expand_value_rtx_cb instead of
20276         cselib_expand_value_rtx_cb.
20277
20278         PR debug/43293
20279         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
20280         * config/i386/i386.c: Include debug.h and dwarf2out.h.
20281         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
20282         and .cfi_endproc around the pic thunks.
20283         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
20284         all queued unwind info register saves are saved before the call.
20285         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
20286         considered as sp-=4 for unwind info and the pop as sp+=4 which
20287         also clobbers dest, but doesn't actually restore it.
20288
20289         PR debug/43290
20290         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
20291         RTX_FRAME_RELATED_P.
20292
20293 2010-03-09  Jie Zhang  <jie@codesourcery.com>
20294
20295         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
20296         whitespaces in output template.
20297
20298 2010-03-09  Jie Zhang  <jie@codesourcery.com>
20299
20300         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
20301         out array boundary.
20302
20303 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
20304
20305         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
20306         builtins.exp in a separate job.
20307
20308 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20309
20310         * graphite-sese-to-poly.c (add_param_constraints): Use
20311         lower_bound_in_type and upper_bound_in_type.
20312
20313 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20314
20315         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
20316         instead of unsigned_type_node.
20317
20318 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20319             Reza Yazdani  <reza.yazdani@amd.com>
20320
20321         PR middle-end/43065
20322         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
20323         on pointer type parameters.
20324
20325 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
20326
20327         PR middle-end/42644
20328         PR middle-end/42130
20329         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
20330         handle conversions from pointer to integers.
20331         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
20332         induction variable, to be able to work with code generated by CLooG.
20333         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
20334         (build_poly_scop): Bail out if we cannot codegen a loop.
20335
20336 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
20337
20338         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
20339         code generation with gloog_error.
20340
20341 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20342
20343         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
20344         Call fold_convert on all the returned values.
20345         (expand_scalar_variables_expr): Pass to
20346         expand_scalar_variables_ssa_name the type of the resulting expression.
20347
20348 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20349
20350         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
20351         ppl_min_for_le_pointset.
20352         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
20353         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
20354
20355 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20356
20357         * graphite-dependences.c (map_into_dep_poly): Removed.
20358         (dependence_polyhedron_1): Use combine_context_id_scat.
20359
20360 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20361
20362         * graphite-poly.h (struct poly_scattering): Add layout documentation.
20363         (struct poly_bb): Same.
20364         (combine_context_id_scat): New.
20365
20366 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20367
20368         PR middle-end/42326
20369         * sese.c (name_defined_in_loop_p): Return false for default
20370         definitions.
20371
20372 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20373
20374         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
20375         and clean up the logic.
20376
20377 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20378
20379         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
20380         early return.
20381
20382 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
20383
20384         * var-tracking.c (remove_cselib_value_chains): Define only for
20385         ENABLE_CHECKING.
20386         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
20387         delete_slot_part, emit_notes_for_differences_1): Don't call
20388         remove_cselib_value_chains here.
20389         (set_slot_part, emit_notes_for_differences_2): Don't call
20390         add_cselib_value_chains here.
20391         (preserved_values): New vector.
20392         (preserve_value): New function.
20393         (add_uses, add_stores, vt_add_function_parameters): Use it
20394         instead of cselib_preserve_value.
20395         (changed_values_stack): New vector.
20396         (check_changed_vars_0): New function.
20397         (check_changed_vars_1, check_changed_vars_2): Use it.
20398         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
20399         changed_values_stack VALUEs.
20400         (vt_emit_notes): For all preserved_values call
20401         add_cselib_value_chains.  If ENABLE_CHECKING call
20402         remove_cselib_value_chains before verifying value_chains is empty.
20403         Initialize and free changed_values_stack.
20404         (vt_initialize): Initialize preserved_values.
20405         (vt_finalize): Free preserved_values.
20406
20407 2010-03-08  Richard Guenther  <rguenther@suse.de>
20408
20409         PR tree-optimization/43269
20410         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
20411         region detection.
20412
20413 2010-03-08  Martin Jambor  <mjambor@suse.cz>
20414
20415         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
20416         (ipa_is_param_called): Removed.
20417         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
20418         (ipa_print_node_params): Do not print the called flag.
20419         (ipa_write_node_info): Do not stream the called flag.
20420         (ipa_read_node_info): Likewise.
20421
20422 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
20423
20424         PR debug/43176
20425         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
20426         * cselib.c (struct expand_value_data): Add dummy field.
20427         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
20428         dummy to false.
20429         (cselib_dummy_expand_value_rtx_cb): New function.
20430         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
20431         any rtl.
20432         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
20433         * var-tracking.c: Include pointer-set.h.
20434         (variable): Change n_var_parts to char from int.  Add
20435         cur_loc_changed and in_changed_variables fields.
20436         (variable_canonicalize): Remove.
20437         (shared_var_p): New inline function.
20438         (unshare_variable): Maintain cur_loc_changed and
20439         in_changed_variables fields.  If var was in changed_variables,
20440         replace it there with new_var.  Just copy cur_loc instead of
20441         resetting it to something else.
20442         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
20443         (dataflow_set_union): Don't call variable_canonicalize.
20444         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
20445         of their DEBUG_EXPR_TREE_DECLs.
20446         (canonicalize_loc_order_check): Verify that cur_loc is NULL
20447         and in_changed_variables and cur_loc_changed is false.
20448         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
20449         and cur_loc_changed.  Don't update cur_loc here.
20450         (variable_merge_over_src): Don't call variable_canonicalize.
20451         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
20452         removing loc that is equal to cur_loc, clear cur_loc,
20453         set cur_loc_changed and ensure variable_was_changed is called.
20454         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
20455         compare pointers in cur_loc check, if it is equal to loc,
20456         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
20457         (variable_different_p): Remove compare_current_location argument,
20458         don't compare cur_loc.
20459         (dataflow_set_different_1): Adjust variable_different_p caller.
20460         (variable_was_changed): If dv had some var in changed_variables
20461         already, reset in_changed_variables flag for it and propagate
20462         cur_loc_changed over to the new variable.  On empty var
20463         always set cur_loc_changed.  Set in_changed_variables on whatever
20464         var is added to changed_variables.
20465         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
20466         Use shared_var_p.  When removing loc that is equal to cur_loc,
20467         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
20468         end, don't set it to something else, just call variable_was_changed.
20469         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
20470         loc being removed, clear cur_loc and set cur_loc_changed.
20471         Set cur_loc_changed if all locations have been removed.
20472         (struct expand_loc_callback_data): New type.
20473         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
20474         allocated.  Always create SUBREGs if simplify_subreg failed.
20475         Prefer to use cur_loc, when that fails and still in
20476         changed_variables (and seen first time) recompute it.  Set
20477         cur_loc_changed of variables which had to change cur_loc and
20478         compute elcd->cur_loc_changed if any of the subexpressions used
20479         had to change cur_loc.
20480         (vt_expand_loc): Adjust to pass arguments in
20481         expand_loc_callback_data structure.
20482         (vt_expand_loc_dummy): New function.
20483         (emitted_notes): New variable.
20484         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
20485         that weren't used for any other decl in current
20486         emit_notes_for_changes call call vt_expand_loc_dummy to update
20487         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
20488         first loc_chain location if NULL before.  Always use just
20489         cur_loc instead of first loc_chain location.  When cur_loc_changed
20490         is false, when not --enable-checking=rtl just don't emit any note.
20491         When rtl checking, compute the note and assert it is the same
20492         as previous note.  Clear cur_loc_changed and in_changed_variables
20493         at the end before removing from changed_variables.
20494         (check_changed_vars_3): New function.
20495         (emit_notes_for_changes): Traverse changed_vars to call
20496         check_changed_vars_3 on each changed var.
20497         (emit_notes_for_differences_1): Clear cur_loc_changed and
20498         in_changed_variables.  Recompute cur_loc of new_var.
20499         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
20500         (vt_emit_notes): Initialize and destroy emitted_notes.
20501
20502 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
20503
20504         PR rtl-optimization/42220
20505         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
20506         Use verify_reg_tracked to determine if we should use OP_OUT rather
20507         than OP_INOUT.
20508         (build_def_use): If we see an in-out operand for a register that we
20509         know nothing about, treat is an output if possible, fail the block if
20510         not.
20511
20512 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
20513
20514         PR debug/42897
20515         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
20516         permanently.
20517
20518 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
20519
20520         PR debug/42897
20521         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
20522         uses of relevant DEFs that are dead outside the loop too.
20523
20524 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
20525
20526         * var-tracking.c (dataflow_set_merge): Swap src and src2.
20527         Reverted:
20528         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
20529         PR debug/41371
20530         * var-tracking.c (values_to_unmark): New variable.
20531         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
20532         values_to_unmark vector.  Moved body to...
20533         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
20534         instead queue it into values_to_unmark vector.
20535         (vt_find_locations): Free values_to_unmark vector.
20536
20537 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
20538
20539         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
20540         (site.exp): Export them when plugins are enabled.
20541
20542 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
20543
20544         PR middle-end/42326
20545         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
20546         that contain scevs.
20547         (chrec_fold_multiply): Same.
20548
20549 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
20550
20551         PR c/43248
20552         * c-decl.c (build_compound_literal): Return early if init is
20553         an error_mark_node.
20554
20555 2010-03-04  Martin Jambor  <mjambor@suse.cz>
20556
20557         PR tree-optimization/43164
20558         PR tree-optimization/43191
20559         * tree-sra.c (type_consists_of_records_p): Reject records with
20560         zero-size bit-fields at the end.
20561
20562 2010-03-04  Mike Stump  <mikestump@comcast.net>
20563
20564         * Makefile.in (TAGS): Remove *.y.
20565
20566 2010-03-04  Richard Guenther  <rguenther@suse.de>
20567
20568         PR tree-optimization/40761
20569         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
20570         in reverse order.
20571         (my_rev_post_order_compute): New function.
20572         (init_pre): Call it.
20573
20574 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
20575
20576         PR middle-end/43209
20577         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
20578         decrease the cost of an IV candidate when the cost is infinite.
20579
20580 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20581
20582         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
20583         Use '3DNow!' for the extension of that name, ensure normal space
20584         after the string.
20585         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
20586
20587 2010-03-03  Jeff Law  <law@redhat.com>
20588
20589         * PR middle-end/32693
20590         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
20591         than gen_rtx_SUBREG.
20592         (extract_bit_field_1): Likewise.
20593
20594 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
20595
20596         * doc/sourcebuild.texi (Test directives): Document that arguments
20597         include-opts and exclude-opts are now optional for dg-skip-if,
20598         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
20599
20600 2010-03-03  Jason Merrill  <jason@redhat.com>
20601
20602         PR c++/12909
20603         * cgraph.h (varpool_node): Add extra_name field.
20604         * varpool.c (varpool_extra_name_alias): New.
20605         (varpool_assemble_decl): Emit extra name aliases.
20606         (varpool_mark_needed_node): Look past an extra name alias.
20607         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
20608         * lto-streamer-in.c (lto_input_tree): Read it.
20609         * lto-streamer-out.c (output_unreferenced_globals): Write it.
20610
20611 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
20612
20613         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
20614         (sparc*-*-solaris2*): ...this.
20615
20616 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
20617
20618         PR debug/43229
20619         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
20620         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
20621         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
20622         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
20623
20624         PR debug/43237
20625         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
20626         fallthrough to default handling, just with want_address 0 instead of 2.
20627         For single element lists, add_AT_loc directly, otherwise create an
20628         artificial variable DIE and stick location list to it.
20629
20630         PR debug/43177
20631         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
20632         (VAL_EXPR_HAS_REVERSE): Define.
20633         (reverse_op): New function.
20634         (add_stores): For reversible operations add an extra MO_VAL_USE.
20635
20636 2010-03-02  Jason Merrill  <jason@redhat.com>
20637
20638         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
20639
20640 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
20641
20642         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
20643         (sparc64-*-linux*): Likewise.
20644         (sparc64-*-solaris2*): Include assembler files before linker ones.
20645         (sparc-*-solaris2*): Simplify and reorder to match previous case.
20646         * config/sparc/gas.h: Delete.
20647         * config/sparc/sol2-64.h: Add copyright notice.
20648         * config/sparc/sol2-gas-bi.h: Likewise.
20649         * config/sparc/sol2-gld.h: Likewise.
20650         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
20651         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
20652         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
20653         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
20654         (sparc_elf_asm_named_section): Rename into...
20655         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
20656
20657 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
20658
20659         * config/alpha/alpha.c (override_options): Fix -mtune error message.
20660
20661 2010-03-02  Jeff Law  <law@redhat.com>
20662
20663         PR middle-end/42431
20664         * reload1.c (rtx_p, substitute_stack): Declare.
20665         (substitute): Record addresses of changed rtxs.
20666         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
20667         Restore the original rtx when complete.
20668         (reload): Free subsitute_stack when complete.
20669
20670 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
20671
20672         * doc/gccint.texi (menu): Add Testsuites as a chapter.
20673         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
20674         new chapter.
20675         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
20676         LTO Testing, gcov Testing, profopt Testing, compat Testing,
20677         Torture Tests): Change from subsection to section.
20678
20679 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
20680             Steven Bosscher  <steven@gcc.gnu.org>
20681
20682         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
20683         instead of bb.
20684
20685 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
20686
20687         PR middle-end/42640
20688         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
20689         the assignment from the new induction variable to the assignment
20690         of the value from the original loop PHI function.
20691
20692 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
20693             Daniel Jacobowitz  <dan@codesourcery.com>
20694
20695         * doc/sourcebuild.texi (Test directives): Clarify options to
20696         dg-skip-if.
20697
20698 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20699
20700         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
20701         Disable cfi directives unless GCC and gas agree on using read-only
20702         .eh_frame sections for 64-bit.
20703         * configure: Regenerate.
20704
20705 2010-03-01  Richard Guenther  <rguenther@suse.de>
20706
20707         PR tree-optimization/43220
20708         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
20709         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
20710
20711 2010-03-01  Richard Guenther  <rguenther@suse.de>
20712             Martin Jambor  <mjambor@suse.cz>
20713
20714         PR middle-end/41250
20715         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
20716         gimplified parameters.
20717
20718 2010-03-01  Christian Bruel  <christian.bruel@st.com>
20719
20720         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
20721
20722 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
20723
20724         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
20725
20726 2010-03-01  Richard Guenther  <rguenther@suse.de>
20727
20728         PR middle-end/43213
20729         * expr.c (expand_assignment): Use the alias-oracle to tell
20730         if the rhs aliases the result decl.
20731
20732 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20733
20734         PR pch/14940
20735         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
20736         to sol_gt_pch_get_address.
20737         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
20738         64-bit, SPARC and x86.
20739         (sol_gt_pch_get_address): New function.
20740
20741 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
20742
20743         * toplev.h (inform_n, error_n): Declare.
20744         * diagnostic.c (inform_n, error_n): New function.
20745
20746 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
20747
20748         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
20749         has no rtl yet when processing local_decls, queue it and recheck
20750         if deferred stack allocation hasn't assigned it rtl.
20751
20752 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
20753
20754         * config/sh/sh.c (unspec_bbr_uid): New.
20755         (gen_block_redirect): Use it instead of INSN_UID.
20756         (gen_far_branch): Likewise.
20757
20758 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
20759
20760         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
20761         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
20762
20763 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20764
20765         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
20766         (Warning Options): -Wno-conversion-null is valid for
20767         Objective-C++ as well.
20768         * doc/tm.texi (Named Address Spaces): Likewise.
20769         * doc/plugins.texi (Plugins): Replace TABs with spaces.
20770         * doc/tree-ssa.texi (Tree SSA): Likewise.
20771
20772 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
20773
20774         PR bootstrap/43202
20775         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
20776         by default.  Don't set the default arch for
20777         i[34567]86-*-darwin*|x86_64-*-darwin*.
20778
20779 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
20780
20781         PR bootstrap/43202
20782         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
20783         default.  Set the default 32bit/64bit archs with $with_arch
20784         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
20785
20786 2010-02-27  Richard Guenther  <rguenther@suse.de>
20787
20788         PR tree-optimization/43186
20789         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
20790         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
20791         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
20792         unroller iterations.
20793
20794 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
20795
20796         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
20797         required and i[34567]86-*-* targets don't support 64bit ISA.
20798
20799 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
20800
20801         PR ada/43096
20802         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
20803         the same alias set.
20804
20805 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
20806
20807         * config.gcc: Set the default arch at least to Prescott for
20808         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
20809         if SSE math is enabled.
20810
20811 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20812
20813         * diagnostic.c (diagnostic_initialize): Update.
20814         (diagnostic_report_diagnostic): Test inhibit_notes_p for
20815         informative notes.
20816         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
20817         (diagnostic_inhibit_notes): New.
20818         * toplev.c (process_options): inhibit notes with -fcompare-debug.
20819
20820 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20821
20822         PR c/20631
20823         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
20824         * doc/standards.texi: Likewise.
20825         * doc/extend.texi: Likewise.
20826         * doc/trouble.texi: Likewise.
20827         * doc/cppopts.texi: Likewise.
20828         * doc/install.texi: Likewise.
20829         * c.opt (std=c90,std=gnu90): New options.
20830         * c-opts.c (c_common_handle_option): Handle them.
20831
20832 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20833
20834         PR c/24577
20835         * c-decl.c (undeclared_variable): Use an informative note.
20836
20837 2010-02-26  Richard Guenther  <rguenther@suse.de>
20838
20839         PR tree-optimization/43186
20840         * gimple.h (gimple_fold): Remove.
20841         * gimple.c (gimple_fold): Remove.  Inline into single user ...
20842         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
20843         Try harder for conditions.
20844
20845 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
20846
20847         PR debug/43190
20848         * function.c (used_types_insert): Don't skip through named pointer
20849         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
20850         and it is different from the main variant's type.
20851
20852 2010-02-26  Nick Clifton  <nickc@redhat.com>
20853
20854         * config/rx/rx.md (sminsi3): Remove bogus alternative.
20855
20856 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
20857
20858         * config.gcc: Support --with-fpmath=sse for x86.
20859
20860         * config/i386/ssemath.h: New.
20861
20862         * doc/install.texi (--with-fpmath=sse): Documented.
20863
20864 2010-02-26  Richard Guenther  <rguenther@suse.de>
20865
20866         PR tree-optimization/43188
20867         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
20868         vector types of over-aligned element type.
20869
20870 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
20871
20872         PR target/43175
20873         * config/i386/i386.c (expand_vec_perm_blend): Use correct
20874         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
20875
20876 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
20877
20878         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
20879
20880 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
20881
20882         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
20883         * var-tracking.c: Include diagnostic.h.
20884         (debug_dv): New function.
20885         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
20886
20887         PR debug/43160
20888         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
20889         (add_value_chain, add_value_chains, remove_value_chain,
20890         remove_value_chains): Handle DEBUG_EXPRs.
20891         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
20892
20893         PR debug/43161
20894         * regcprop.c (struct queued_debug_insn_change): New type.
20895         (struct value_data_entry): Add debug_insn_changes field.
20896         (struct value_data): Add n_debug_insn_changes field.
20897         (debug_insn_changes_pool): New variable.
20898         (free_debug_insn_changes, apply_debug_insn_changes,
20899         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
20900         (kill_value_one_regno): Call free_debug_insn_changes if needed.
20901         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
20902         fields.
20903         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
20904         changes for them.
20905         (copyprop_hardreg_forward_1): Don't call apply_change_group for
20906         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
20907         changes, call cprop_find_used_regs via note_stores.
20908         (copyprop_hardreg_forward): When copying vd from predecessor
20909         which has any queued DEBUG_INSN changes, make sure the pointers are
20910         cleared.  At the end call df_analyze and then if there are any
20911         DEBUG_INSN changes queued at the end of some basic block for still
20912         live registers, apply them.
20913         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
20914
20915 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
20916
20917         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
20918         (arm*-*-*): Ditto.
20919
20920 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
20921
20922         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
20923         targets.  Set the default with_cpu/with_arch from arch/cpu.
20924         Allow x86-64 and native for with_cpu/with_arch.
20925
20926 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
20927
20928         * ebitmap.c: Change calls to verify_popcount with calls to
20929         sbitmap_verify_popcount.
20930         (ebitmap_clear_bit): Fixed map->cacheindex test and
20931         map>cache update when bit clearing results in an empty
20932         element.
20933
20934 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
20935
20936         PR target/43154
20937         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
20938         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
20939         and support both V2DF and V2DI modes.
20940         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
20941         support both V2DF and V2DI modes.
20942         (general): Delete trailing whitespace from a few patterns.
20943
20944         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20945         V2DF/V2DI interleave high/low builtins.
20946
20947         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
20948         new VSX builtins.
20949
20950         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
20951         interleave high/low functions.
20952
20953 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
20954
20955         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
20956         #pragma extern_prefix.
20957
20958 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
20959
20960         PR debug/43166
20961         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
20962         BLKmode, assert op0 is a MEM and just adjust its mode.
20963
20964         PR debug/43165
20965         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
20966         if bitpos isn't multiple of mode's bitsize.
20967
20968 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20969
20970         * c.opt (-ftemplate-depth=): New.
20971         (-ftemplate-depth-): Deprecate.
20972         * optc-gen.awk: Handle -ftemplate-depth=.
20973         * opth-gen.awk: Likewise.
20974         * c-opts.c (c_common_handle_option): Likewise.
20975         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
20976
20977 2010-02-24  Jason Merrill  <jason@redhat.com>
20978
20979         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
20980
20981 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20982
20983         * cfg.c (alloc_aux_for_block): Remove inline.
20984         (alloc_aux_for_edge): Likewise.
20985
20986 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20987
20988         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
20989
20990 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20991
20992         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
20993         * config/i386/sol2-gas.h: New file.
20994         * config.gcc (i[34567]86-*-solaris2*): Use it.
20995
20996 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20997
20998         PR c/43128
20999         * c-typeck.c (ep_convert_and_check): New.
21000         (build_conditional_expr): Use it.
21001         (build_binary_op): Likewise.
21002
21003 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
21004
21005         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
21006
21007         PR debug/43150
21008         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
21009         bounds even for -O+.
21010         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
21011         expr needs to have DECL_NAME set.
21012
21013 2010-02-24  Nick Clifton  <nickc@redhat.com>
21014
21015         * config/mep/mep.c: Include gimple.h.
21016         (mep_function_uses_sp): Delete unused function.
21017         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
21018         parameters.  Use unsigned integers to count args.  Return a
21019         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
21020
21021 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
21022
21023         PR target/43107
21024         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
21025         greater or equal to nelt instead of 2 * nelt.
21026         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
21027         with nelt - 1.
21028
21029 2010-02-23  Jason Merrill  <jason@redhat.com>
21030
21031         PR debug/42800
21032         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
21033         in cfun->local_decls even if they have register types.
21034
21035         PR c++/42837
21036         * stor-layout.c (place_field): Don't warn about unnecessary
21037         DECL_PACKED if the type is packed.
21038
21039 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
21040
21041         PR target/43139
21042         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
21043         GOTOFF relocs, even when the base reg isn't pic pointer.
21044
21045 2010-02-23  Michael Matz  <matz@suse.de>
21046
21047         PR debug/43077
21048         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
21049         (expand_gimple_basic_block): Generate and use debug temps if there
21050         are debug uses left after the last real use of TERed ssa names.
21051         Unlink debug immediate uses when they are expanded.
21052
21053 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21054
21055         PR 43123
21056         * config/i386/i386.c (override_options): Reorganise to provide
21057         better error messages.
21058
21059 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21060
21061         PR middle-end/43083
21062         * graphite-scop-detection.c (create_single_exit_edge): Move
21063         the call to find_single_exit_edge to....
21064         (create_sese_edges): ...here.  Don't handle multiple edges
21065         exiting the function.
21066         (build_graphite_scops): Don't handle multiple edges
21067         exiting the function.
21068
21069 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21070
21071         PR middle-end/43097
21072         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
21073         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
21074
21075 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21076
21077         PR middle-end/43026
21078         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
21079
21080 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21081
21082         PR c++/43126
21083         * c-typeck.c (convert_arguments): Print declaration location.
21084         * c-common.c (validate_nargs): Rename as
21085         builtin_function_validate_nargs.
21086         (check_builtin_function_arguments): Update.
21087
21088 2010-02-22  Richard Guenther  <rguenther@suse.de>
21089
21090         PR lto/43045
21091         * tree-inline.c (declare_return_variable): Use the type of
21092         the call stmt lhs if available.
21093
21094 2010-02-22  Duncan Sands  <baldrick@free.fr>
21095
21096         * passes.c (register_pass): Always consider all pass lists when
21097         ref_pass_instance_number is zero.
21098
21099 2010-02-22  Richard Guenther  <rguenther@suse.de>
21100
21101         PR tree-optimization/42749
21102         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
21103         parameter.  Do arithmetic in the original type.
21104         (update_accumulator_with_ops): Likewise.
21105         (adjust_accumulator_values): Adjust.
21106
21107 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21108
21109         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
21110         (QI to BLKmode splitter): New splitter.
21111
21112 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
21113
21114         * config/i386/i386.c (initial_ix86_tune_features): Turn on
21115         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
21116
21117 2010-02-22  Richard Guenther  <rguenther@suse.de>
21118
21119         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
21120
21121 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
21122
21123         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
21124         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
21125         ($(T)crti.o, $(T)crtn.o): Remove rules.
21126
21127 2010-02-21  Tobias Burnus  <burnus@net-b.de>
21128
21129         PR fortran/35259
21130         * doc/invoke.texi (-fassociative-math): Document that this
21131         option is automatically enabled for Fortran.
21132
21133 2010-02-20  David S. Miller  <davem@davemloft.net>
21134
21135         * configure.ac: Test if linker and assembler properly support
21136         GOTDATA_OP relocations.
21137         * configure: Rebuild.
21138         * config.in: Likewise.
21139         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
21140         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
21141         (movsi_high_pic): Likewise.
21142         (movdi_lo_sum_pic): Likewise.
21143         (movdi_high_pic): Likewise.
21144         (movsi_pic_gotdata_op): New pattern.
21145         (movdi_pic_gotdata_op): Likewise.
21146         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
21147         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
21148
21149 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
21150
21151         PR target/43067
21152         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
21153         attribute to ssemul.
21154         (xop_mulv2div2di3_high): Ditto.
21155
21156 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21157
21158         PR c++/35669
21159         * c.opt (Wconversion-null): New option.
21160         * doc/invoke.texi (Wconversion-null): Document.
21161
21162 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21163
21164         * common.opt (Wlarger-than-): Add Undocumented.
21165
21166 2010-02-19  Mike Stump  <mikestump@comcast.net>
21167
21168         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
21169
21170 2010-02-19  Jason Merrill  <jason@redhat.com>
21171
21172         PR target/40332
21173         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
21174         * configure: Likewise.
21175
21176 2010-02-20  Alan Modra  <amodra@gmail.com>
21177
21178         PR middle-end/42344
21179         * cgraph.h (cgraph_make_decl_local): Declare.
21180         * cgraph.c (cgraph_make_decl_local): New function.
21181         (cgraph_make_node_local): Use it.
21182         * cgraphunit.c (cgraph_function_versioning): Likewise.
21183         * ipa.c (function_and_variable_visibility): Likewise.
21184
21185 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
21186
21187         PR bootstrap/43121
21188         * except.c (sjlj_emit_function_enter): Don't call
21189         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
21190         directly.
21191         * rtl.h (add_reg_br_prob_note): Remove prototype.
21192
21193 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21194
21195         PR 41779
21196         * c-common.c (conversion_warning): Remove widening conversions
21197         before checking the conversion of integers to reals.
21198
21199 2010-02-19  Mike Stump  <mikestump@comcast.net>
21200
21201         PR middle-end/43125
21202         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
21203
21204         PR objc/43061
21205         * cgraphunit.c (process_function_and_variable_attributes): Check
21206         DECL_PRESERVE_P instead of looking up attribute "used".
21207         * ipa-pure-const.c (check_decl): Likewise.
21208         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
21209         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
21210         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
21211         instead of attribute "used".
21212         * config/sol2-c.c (solaris_pragma_init): Likewise.
21213         (solaris_pragma_fini): Likewise.
21214
21215 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
21216
21217         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
21218         Use XCNEW instead of xcalloc.
21219         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
21220         XNEW instead of xmalloc.
21221         (get_fields): Use XNEWVEC instead of xmalloc.
21222
21223         PR debug/43084
21224         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
21225         populate vars array.
21226         (create_new_general_access): For debug stmts just reset value.
21227         (get_stmt_accesses): For accesses within debug stmts just record them
21228         using add_access_to_acc_sites instead of preventing the peeling or
21229         counting them as accesses.
21230
21231         PR middle-end/42233
21232         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
21233
21234 2010-02-19  Richard Guenther  <rguenther@suse.de>
21235
21236         PR tree-optimization/42916
21237         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
21238         instructions.
21239
21240 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
21241
21242         * configure.ac: Replace all uses of changequote in macro arguments
21243         with proper quoting.
21244
21245 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
21246
21247         PR middle-end/42233
21248         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
21249
21250 2010-02-19  Richard Guenther  <rguenther@suse.de>
21251
21252         PR tree-optimization/42944
21253         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
21254         test for aliasing with errno.
21255
21256 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
21257
21258         PR middle-end/42233
21259         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
21260         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
21261         * dojump.c: Include output.h.
21262         (inv): New inline function.
21263         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
21264         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
21265         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
21266         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
21267         argument, pass it down to other calls.
21268         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
21269         add REG_BR_PROB note to the conditional jump.
21270         * cfgexpand.c (add_reg_br_prob_note): Removed.
21271         (expand_gimple_cond): Don't call it, add the probability
21272         as last argument to jumpif_1/jumpifnot_1.
21273         * Makefile.in (dojump.o): Depend on output.h.
21274         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
21275         callers.
21276         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
21277         * stmt.c (do_jump_if_equal): Likewise.
21278         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
21279         * loop-unswitch.c (compare_and_jump_seq): Likewise.
21280         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
21281         Likewise.
21282         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
21283         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
21284         jumpifnot_1 callers.
21285         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
21286         callers.
21287         (store_expr): Adjust jumpifnot caller.
21288         (store_constructor): Adjust jumpif caller.
21289
21290         PR middle-end/42233
21291         * gimplify.c (gimple_boolify): For __builtin_expect call
21292         gimple_boolify also on its first argument.
21293
21294 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
21295
21296         * configure.ac (gnu-unique-object): Wrap regexps using [] in
21297         changequote block.
21298         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
21299         * configure: Regenerated.
21300
21301 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21302
21303         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
21304         lang_hooks.types_compatible_p instead of comptypes.
21305
21306 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
21307
21308         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
21309         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
21310         if __prefer_thumb__ is defined.
21311
21312 2010-02-18  Martin Jambor  <mjambor@suse.cz>
21313
21314         PR tree-optimization/43066
21315         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
21316         array with zero-sized element type.
21317
21318 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
21319
21320         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
21321         rtx, allocate struct var_loc_node here and return it to the
21322         caller, and only if it is actually needed.
21323         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
21324         move it earlier and return immediately if it returns NULL.
21325
21326 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
21327
21328         * config/sparc/gas.h: New file.  Restore
21329         TARGET_ASM_NAMED_SECTION to its ELF default.
21330         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
21331         check !HAVE_GNU_AS.
21332         * config/sparc/sparc.c (sparc_elf_asm_named_section):
21333         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
21334         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
21335         after sparc/sysv4.h.
21336
21337 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
21338
21339         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
21340
21341 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
21342
21343         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
21344         patterns from predicated pattern.
21345
21346 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
21347
21348         PR target/43103
21349         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
21350         for insn mnemonic suffix.
21351
21352 2010-02-17  Richard Guenther  <rguenther@suse.de>
21353
21354         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
21355         to loop PHI nodes.
21356
21357 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
21358
21359         PR debug/42918
21360         * caller-save.c (save_call_clobbered_regs): If BB ends with
21361         a DEBUG_INSN, move any notes in between last real insn and the last
21362         DEBUG_INSN after the last DEBUG_INSN.
21363
21364 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
21365
21366         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
21367         Fix return type.  Fix argument type.  Explain meaning of return value.
21368
21369 2010-02-16  Richard Guenther  <rguenther@suse.de>
21370
21371         PR tree-optimization/41043
21372         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
21373         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
21374         statements ...
21375         (vrp_visit_phi_node): ... but only for loop PHI nodes.
21376
21377 2010-02-16  Ira Rosen  <irar@il.ibm.com>
21378
21379         PR tree-optimization/43074
21380         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
21381         * tree-vect-loop.c (vect_analyze_loop_operations): Add
21382         vectorizable cycles in hybrid SLP check.
21383         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
21384
21385 2010-02-16  Richard Guenther  <rguenther@suse.de>
21386
21387         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
21388         (true_dependence): If memrefs_conflict_p computes must-alias
21389         trust it.  Move TBAA check after offset-based disambiguation.
21390         (canon_true_dependence): Likewise.
21391
21392 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
21393
21394         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
21395         * doc/invoke.texi: Document it.
21396         * var-tracking.c: Include toplev.h and params.h.
21397         (vt_find_locations): Return bool indicating success.  Compute
21398         hash sizes unconditionally.  Check new parameter, report.
21399         (variable_tracking_main_1): Check vt_find_locations results and
21400         retry.  Renamed from...
21401         (variable_tracking_main): ... this.  New wrapper to preserve
21402         flag_var_tracking_assignments.
21403         * Makefile.in (var-tracking.o): Adjust dependencies.
21404
21405 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
21406             Jakub Jelinek  <jakub@redhat.com>
21407
21408         PR target/42854
21409         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
21410         if weak_import attribute is present.
21411         * config/darwin.c (machopic_select_section): Likewise.
21412
21413 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
21414
21415         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
21416         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
21417         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
21418         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
21419
21420         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
21421         types.
21422
21423         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
21424         Fix argument types.
21425
21426         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
21427         Rewrite text to refer to the names.
21428
21429 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
21430
21431         * config/i386/i386-builtin-types.def
21432         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
21433         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
21434         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
21435         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
21436         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
21437         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
21438         IX86_BUILTIN_VPERMIL2PS256.
21439         (MULTI_ARG_4_DF2_DI_I): Defined.
21440         (MULTI_ARG_4_DF2_DI_I1): Defined.
21441         (MULTI_ARG_4_SF2_SI_I): Defined.
21442         (MULTI_ARG_4_SF2_SI_I1): Defined.
21443         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
21444         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
21445         __builtin_ia32_vpermil2ps256.
21446         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
21447         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
21448         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
21449         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
21450         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
21451         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
21452         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
21453         CODE_FOR_xop_vpermil2v8sf3.
21454         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
21455         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
21456         * config/i386/xopintrin.h (_mm_permute2_pd): New.
21457         (_mm256_permute2_pd): New.
21458         (_mm_permute2_ps): New.
21459         (_mm256_permute2_ps): New.
21460
21461 2010-02-15  Nick Clifton  <nickc@redhat.com>
21462
21463         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
21464         boolean parameters.  Use emit_jump_insn when emitting a pop
21465         instruction containing a return insn.
21466         (push): Use 'true' rather than '1' as second parameter to F.
21467         (h8300_expand_prologue): Likewise.
21468         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
21469         (h8300_expand_epilogue): Likewise.
21470
21471 2010-02-15  Richard Guenther  <rguenther@suse.de>
21472
21473         PR middle-end/43068
21474         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
21475         if that is zero.
21476
21477 2010-02-15  Nick Clifton  <nickc@redhat.com>
21478
21479         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
21480         delta.
21481
21482 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
21483
21484         * intl.c (fake_ngettext): New function.
21485         * intl.h (fake_ngettext): Declare.
21486         (ngettext): Define macro.
21487         * collect2.c (notice_translated): New function.
21488         (main): Use notice_translated and ngettext.
21489         * collect2.h (notice_translated): Declare.
21490
21491 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
21492
21493         * reorg.c (delete_computation): Comment fixes.
21494         * caller-save.c (setup_save_areas): Idem.
21495         * sel-sched-dump.c (dump_lv_set): Idem.
21496         * rtl.def: Idem.
21497
21498 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21499
21500         * config/s390/s390.c (s390_sched_init): New function.
21501         (TARGET_SCHED_INIT): Target hook defined.
21502
21503 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
21504             Jack Howarth  <howarth@bromo.med.uc.edu>
21505             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
21506
21507         PR target/42982
21508         Partial revert of unintended change in fix for PR41605.
21509         * config/darwin.h: Fix typo.
21510         * config/darwin9.h: Same.
21511
21512 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
21513
21514         * c-pch.c (pch_init): Clear v.
21515
21516 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
21517
21518         PR middle-end/42930
21519         * graphite-scop-detection.c (graphite_can_represent_scev): Call
21520         graphite_can_represent_init for MULT_EXPR.
21521
21522 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
21523
21524         PR middle-end/42914
21525         PR middle-end/42530
21526         * graphite-sese-to-poly.c (remove_phi): New.
21527         (translate_scalar_reduction_to_array): Call remove_phi.
21528
21529 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
21530
21531         PR middle-end/42771
21532         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
21533         * graphite-clast-to-gimple.h (gloog): Update declaration.
21534         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
21535         * graphite-poly.h (struct poly_bb): Add missing comments.
21536         (struct scop): Add poly_scop_p field.
21537         (POLY_SCOP_P): New.
21538         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
21539         * graphite.c (graphite_transform_loops): Build the polyhedral
21540         representation for each scop before code generation.
21541         * sese.c (rename_variables_in_operand): Removed.
21542         (rename_variables_in_expr): Return the renamed expression.
21543         (rename_sese_parameters): New.
21544         * sese.h (rename_sese_parameters): Declared.
21545
21546 2010-02-11  Richard Guenther  <rguenther@suse.de>
21547
21548         PR tree-optimization/42998
21549         * tree-ssa-pre.c (create_expression_by_pieces): Treat
21550         POINTER_PLUS_EXPR properly.
21551
21552 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
21553             Changpeng Fang  <changpeng.fang@amd.com>
21554
21555         PR middle-end/40886
21556         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
21557         the cost of an IV candidate when the IV is used in a test against zero.
21558
21559         * gcc.dg/tree-ssa/ivopts-3.c: New.
21560
21561 2010-02-11  Richard Guenther  <rguenther@suse.de>
21562
21563         PR lto/41664
21564         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
21565         pointer-vs-decl case by swapping refs.  Handle some cases
21566         of pointer-vs-decl disambiguations more conservatively.
21567         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
21568         to false after expanding.
21569
21570 2010-02-11  Richard Guenther  <rguenther@suse.de>
21571
21572         PR driver/43021
21573         * gcc.c (process_command): Handle LTO file@offset case more
21574         appropriately.
21575
21576 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
21577
21578         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
21579         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
21580         of DEBUG_INSNs.
21581         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
21582
21583         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
21584         if MEM's mode size isn't DWARF2_ADDR_SIZE.
21585         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
21586         Optimize eq/ne comparisons when both arguments are known to be
21587         zero-extended.
21588         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
21589         Don't mask operands unnecessarily if they are known to be already
21590         zero-extended.
21591
21592 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
21593
21594         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
21595         instead of loop.
21596
21597 2010-02-10  Richard Guenther  <rguenther@suse.de>
21598
21599         PR tree-optimization/43017
21600         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
21601         for wrapping signed arithmetic.
21602
21603 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
21604
21605         PR debug/43010
21606         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
21607         if no debug info should be emitted for it.
21608
21609 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
21610
21611         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
21612         note when flag_exceptions is set.
21613
21614 2010-02-10  Duncan Sands  <baldrick@free.fr>
21615
21616         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
21617
21618 2010-02-10  Richard Guenther  <rguenther@suse.de>
21619
21620         PR c/43007
21621         * tree.c (get_unwidened): Handle constants.
21622         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
21623
21624 2010-02-10  Martin Jambor  <mjambor@suse.cz>
21625
21626         PR lto/42985
21627         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
21628         check for variable argument counts independently.
21629
21630 2010-02-10  Christian Bruel  <christian.bruel@st.com>
21631
21632         PR target/42841
21633         * config/sh/sh.c (find_barrier): Increase length for non delayed
21634         conditional branches.
21635
21636 2010-02-10  Christian Bruel  <christian.bruel@st.com>
21637
21638         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
21639
21640 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
21641
21642         * builtins.c (set_builtin_user_assembler_name): Also handle
21643         ffs if int is smaller than word.
21644
21645 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
21646
21647         PR middle-end/42973
21648         * ira-conflicts.c (get_dup): Remove.
21649         (process_reg_shuffles): Add new parameter.  Use it as an
21650         additional guard for copy generation.
21651         (add_insn_allocno_copies): Rewrite.
21652
21653 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
21654
21655         * common.opt (fsched2-use-traces): Preserved for backward
21656         compatibility.
21657         * doc/invoke.texi: Remove the documentation about option
21658         -fsched2-use-traces.
21659         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
21660         flag_sched2_use_traces.
21661         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
21662         the backward compatibility flag section.
21663
21664 2010-02-09  Richard Guenther  <rguenther@suse.de>
21665
21666         PR tree-optimization/43008
21667         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
21668         make HEAP variables initialized from global memory if they
21669         are not known builtin functions.
21670         (find_func_aliases): Adjust.
21671
21672 2010-02-09  Richard Guenther  <rguenther@suse.de>
21673
21674         PR tree-optimization/43000
21675         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
21676         arithmetic manually.
21677
21678 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
21679
21680         PR tree-optimization/42931
21681         * tree-loop-linear.c (try_interchange_loops): Don't call
21682         double_int_mul if estimated_loop_iterations failed.
21683
21684 2010-02-08  Martin Jambor  <mjambor@suse.cz>
21685
21686         PR middle-end/42898
21687         * tree-sra.c (build_accesses_from_assign): Do not mark in
21688         should_scalarize_away_bitmap if stmt has volatile ops.
21689         (sra_modify_assign): Do not process assigns piecemeal if if stmt
21690         has volatile ops.
21691
21692 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
21693
21694         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
21695
21696 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
21697
21698         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
21699         before the pattern.
21700
21701 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
21702
21703         PR middle-end/42946
21704         * df-core.c (df_finish_pass): Change type of saved_flags to int.
21705
21706 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
21707
21708         PR middle-end/42988
21709         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
21710         to unknown_dependence.
21711         (graphite_legal_transform_dr): Handle the unknown_dependence.
21712         (graphite_carried_dependence_level_k): Same.
21713
21714 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
21715
21716         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
21717
21718 2010-02-07  Richard Guenther  <rguenther@suse.de>
21719
21720         PR middle-end/42991
21721         * expr.c (get_inner_reference): Always initialize *pbitsize.
21722
21723 2010-02-07  Richard Guenther  <rguenther@suse.de>
21724
21725         PR middle-end/42956
21726         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
21727         new ARRAY_REFs on variable size element or minimal index arrays.
21728         Complete.
21729         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
21730         gimple_fold_indirect_ref.
21731
21732 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
21733
21734         PR target/42957
21735         * arm.c (arm_override_options): Just return if the user has specified
21736         an invalid fpu name.
21737
21738 2010-02-03  Jason Merrill  <jason@redhat.com>
21739
21740         PR c++/42870
21741         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
21742         i386_pe_maybe_record_exported_symbol.
21743
21744 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
21745
21746         PR target/42924
21747         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
21748         (pa_delegitimize_address): New function.
21749
21750 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
21751
21752         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
21753         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
21754
21755 2010-02-05  Richard Guenther  <rguenther@suse.de>
21756
21757         PR lto/42762
21758         * lto-streamer-in.c (get_resolution): Deal with references
21759         to undefined functions.
21760
21761 2010-02-05  Richard Guenther  <rguenther@suse.de>
21762
21763         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
21764         (fold_const_aggregate_ref): Likewise.
21765         (ccp_fold_stmt): Substitute loads.
21766         (maybe_fold_reference): Verify types before substituting.
21767         Unshare properly.
21768         (fold_gimple_assign): Unshare properly.
21769         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
21770
21771 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
21772
21773         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
21774         for rs6000_gen_cell_microcode.
21775
21776 2010-02-04  Richard Guenther  <rguenther@suse.de>
21777
21778         PR rtl-optimization/42952
21779         * dse.c (const_or_frame_p): Remove MEM handling.
21780
21781 2010-02-04  Nick Clifton  <nickc@redhat.com>
21782
21783         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
21784         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
21785         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
21786         (mn10300_asm_output_mi_thunk): New function.
21787         (mn10300_can_output_mu_thunk): New function.
21788         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
21789         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
21790         (FUNCTION_ARG): Delete incorrect comment.
21791
21792 2010-02-03  Jason Merrill  <jason@redhat.com>
21793
21794         PR c++/40138
21795         * fold-const.c (operand_equal_p): Handle erroneous types.
21796
21797 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
21798
21799         * config/h8300/h8300.md (can_delay): Fix attibute condition.
21800
21801 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
21802
21803         PR rtl-optimization/42941
21804         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
21805         of xmalloc.
21806
21807 2010-02-03  Jason Merrill  <jason@redhat.com>
21808
21809         PR c++/35652
21810         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
21811
21812 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
21813
21814         PR debug/42896
21815         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
21816         (cselib_reset_table): Renamed from...
21817         (cselib_reset_table_with_next_value): ... this.
21818         (cselib_get_next_uid): Renamed from...
21819         (cselib_get_next_unknown_value): ... this.
21820         * cselib.c (next_uid): Renamed from...
21821         (next_unknown_value): ... this.
21822         (cselib_clear_table): Adjust.
21823         (cselib_reset_table): Adjust.  Renamed from...
21824         (cselib_reset_table_with_next_value): ... this.
21825         (cselib_get_next_uid): Adjust.  Renamed from...
21826         (cselib_get_next_unknown_value): ... this.
21827         (get_value_hash): Use hash.
21828         (cselib_hash_rtx): Likewise.
21829         (new_cselib_val): Adjust.  Set and dump uid.
21830         (cselib_lookup_mem): Pass next_uid as hash.
21831         (cselib_subst_to_values): Likewise.
21832         (cselib_log_lookup): Dump uid.
21833         (cselib_lookup): Pass next_uid as hash.  Adjust.
21834         (cselib_process_insn): Adjust.
21835         (cselib_init): Initialize next_uid.
21836         (cselib_finish): Adjust.
21837         (dump_cselib_table): Likewise.
21838         * dse.c (canon_address): Dump value uid.
21839         * print-rtl.c (print_rtx): Print value uid.
21840         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
21841         (dvuid): New type.
21842         (dv_uid): New function, sort of renamed from...
21843         (dv_htab_hash): ... this, reimplemented in terms of it and...
21844         (dv_uid2hash): ... this.  New.
21845         (variable_htab_eq): Drop excess assertions.
21846         (tie_break_pointers): Removed.
21847         (canon_value_cmp): Compare uids.
21848         (variable_post_merge_New_vals): Print uids.
21849         (vt_add_function_parameters): Adjust.
21850         (vt_initialize): Reset table.  Adjust.
21851
21852 2010-02-03  Richard Guenther  <rguenther@suse.de>
21853
21854         PR tree-optimization/42944
21855         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
21856         (call_may_clobber_ref_p_1): Likewise.  Properly handle
21857         malloc and calloc clobbering errno.
21858
21859 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
21860
21861         * doc/invoke.texi: Fix name of sched1 dump.
21862
21863         * opts.c (decode_options): Set flag_tree_switch_conversion
21864         only conditionally on optimize >= 2.
21865
21866         * gcse.c: Assorted comment fixes in pass description.
21867
21868 2010-02-03  Anthony Green  <green@moxielogic.com>
21869
21870         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
21871         nop padding in order to maintain alignment of storage location of
21872         target function address.
21873         (moxie_trampoline_init): Store target function address at newly
21874         aligned location.
21875         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
21876         to 32.
21877         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
21878
21879 2010-02-03  Richard Guenther  <rguenther@suse.de>
21880
21881         PR middle-end/42927
21882         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
21883
21884 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21885
21886         * config.gcc: Reenable check for obsolete targets.
21887         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
21888         mips-sgi-irix6.[0-4]*.
21889
21890 2010-02-02  Nick Clifton  <nickc@redhat.com>
21891
21892         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
21893         constant size of 4 as being the same as 0.
21894         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
21895         can take values in the range 0..4.
21896
21897 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
21898
21899         PR java/41991
21900         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
21901         as _darwin10_Unwind_FindEnclosingFunction().
21902         * libgcc-libsystem.ver: New.
21903
21904 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
21905
21906         PR target/41399
21907         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
21908         implicitly set registers.
21909
21910 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
21911
21912         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
21913         (arm_override_options): Allow automatic selection of the thread
21914         pointer register if thumb2.
21915         (legitimize_pic_address): Improve code sequences for Thumb2.
21916         (arm_call_tls_get_addr): Likewise.
21917         (legitimize_tls_address): Likewise.
21918         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
21919         (pic_load_addr_32bit): ... this.  New named pattern.
21920         * thumb2.md (pic_load_addr_thumb2): Delete.
21921         (pic_load_dot_plus_four): Delete.
21922         (tls_load_dot_plus_four): New named pattern.
21923
21924 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21925
21926         PR libgomp/29986
21927         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
21928         Document fix for TLS bug.
21929
21930 2010-01-31  Richard Guenther  <rguenther@suse.de>
21931
21932         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
21933         conservatively correct.
21934
21935 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21936
21937         PR target/42850
21938         Revert:
21939         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21940
21941         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
21942
21943 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21944
21945         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
21946
21947 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
21948
21949         * config.gcc: Adjust order of makefile fragments for mingw targets.
21950
21951 2010-01-31  Richard Guenther  <rguenther@suse.de>
21952
21953         PR middle-end/42898
21954         * gimplify.c (gimplify_init_constructor): For volatile LHS
21955         initialize a temporary.
21956
21957 2010-01-31  Matthias Klose  <doko@ubuntu.com>
21958
21959         * configure.ac: Fix __stack_chk_fail check for cross builds configured
21960         --with-headers
21961         * configure: Regenerate.
21962
21963 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
21964
21965         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
21966         the same alias set and their sizes different constantness.
21967         (aliasing_component_refs_p): Revert 2009-10-24 change.
21968
21969 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21970
21971         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
21972         unused.
21973
21974 2010-01-29  Richard Guenther  <rguenther@suse.de>
21975
21976         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
21977         Assert we successfully updated the call.
21978
21979 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
21980
21981         PR rtl-optimization/42889
21982         * df.h (df_set_bb_dirty_nonlr): New prototype.
21983         * df-core.c (df_set_bb_dirty_nonlr): New function.
21984         * df-scan.c (df_insn_rescan): Call it instead of
21985         df_set_bb_dirty for DEBUG_INSNs.
21986
21987 2010-01-29  Richard Guenther  <rguenther@suse.de>
21988
21989         PR middle-end/37448
21990         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
21991         quadratic behavior in most cases.
21992
21993 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
21994
21995         PR target/42891
21996         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
21997         in the call to gen_x86_movsicc_0_m1.
21998
21999 2010-01-28  Richard Guenther  <rguenther@suse.de>
22000
22001         PR tree-optimization/42871
22002         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
22003
22004 2010-01-28  Richard Guenther  <rguenther@suse.de>
22005
22006         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
22007         into call arguments.
22008
22009 2010-01-28  Richard Guenther  <rguenther@suse.de>
22010
22011         PR middle-end/42883
22012         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
22013         the forwarder if the destination is an EH landing pad.
22014
22015 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
22016
22017         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
22018         block list passed to gimple_duplicate_sese_tail.
22019         (parallelize_loops): Avoid parallelization when the function
22020         has_nonlocal_label.
22021         Avoid parallelization when the preheader is IRREDUCIBLE.
22022         Try to optimize when estimated_loop_iterations_int is unresolved.
22023         Add the loop's location to the dump file.
22024         * tree-cfg.c (add_phi_args_after_redirect): Remove.
22025         (gimple_duplicate_sese_tail): Remove the check for the latch.
22026         Redirect nexits to the exit block.
22027         Remove handling of the incoming edges to the latch.
22028         Redirect the backedge from the copied latch to the exit bb.
22029
22030 2010-01-28  Michael Matz  <matz@suse.de>
22031
22032         PR target/42881
22033         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
22034         Wrap force_reg into a sequence, emit it before user.
22035
22036 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
22037
22038         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
22039         (arm_rev): New.
22040         (arm_legacy_rev): Likewise.
22041         (thumb_legacy_rev): Likewise.
22042
22043 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
22044
22045         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
22046         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
22047         on MEM's address failed, try avoid_constant_pool_reference and
22048         recurse if it returned something different.
22049         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
22050         address, try avoid_constant_pool_reference and recurse if it
22051         returned something different.
22052         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
22053         address and avoid_constant_pool_reference returned something
22054         different, don't set have_address.
22055
22056 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
22057
22058         PR debug/42861
22059         * var-tracking.c (val_store): Add modified argument, obey it.
22060         Adjust callers.
22061         (count_uses): Move down logging of main.
22062         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
22063         don't need resolution.
22064         (emit_notes_in_bb): Likewise.
22065
22066 2010-01-27  Richard Guenther  <rguenther@suse.de>
22067
22068         PR middle-end/42878
22069         * tree-inline.c (remap_decl): Delay remapping of SSA name
22070         default definitions until we need them.
22071
22072 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
22073
22074         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
22075         (rs6000_delegitimize_address): New function.
22076
22077         * config/s390/s390.c (s390_delegitimize_address): Call
22078         delegitimize_mem_from_attrs.
22079
22080         PR middle-end/42874
22081         * tree-inline.c (cannot_copy_type_1): Removed.
22082         (copy_forbidden): Don't forbid copying of functions containing
22083         records/unions with variable length fields.
22084
22085 2010-01-27  Christian Bruel  <christian.bruel@st.com>
22086
22087         Revert:
22088         PR target/42841
22089         * config/sh/sh.c (find_barrier): Increase length for non delayed
22090         conditional branches.
22091
22092 2010-01-27  Matthias Klose  <doko@ubuntu.com>
22093
22094         * configure.ac (gnu-unique-object): Fix ldd version check.
22095         * configure: Regenerate.
22096
22097 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22098
22099         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
22100         HAVE_GNU_AS value.
22101         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
22102         Test for HAVE_GNU_AS value.
22103
22104 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22105
22106         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
22107         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
22108         INT64_TYPE): Define.
22109         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
22110         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
22111         INT_LEAST64_TYPE): Define.
22112         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
22113         UINT_LEAST64_TYPE): Define.
22114         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
22115         INT_FAST64_TYPE): Define.
22116         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
22117         UINT_FAST64_TYPE): Define.
22118         (INTMAX_TYPE, UINTMAX_TYPE): Define.
22119         (INTPTR_TYPE, UINTPTR_TYPE): Define.
22120         (SIG_ATOMIC_TYPE): Define.
22121
22122 2010-01-26  Richard Guenther  <rguenther@suse.de>
22123
22124         * df-scan.c (df_scan_set_bb_info): Remove assert.
22125         (df_insn_rescan_debug_internal): Merge asserts.
22126         (df_install_ref): Likewise.
22127         (df_mark_reg): Use bitmap_set_range.
22128         (df_hard_reg_used_p): Remove assert.
22129         (df_hard_reg_used_count): Likewise.
22130
22131 2010-01-26  Richard Guenther  <rguenther@suse.de>
22132
22133         PR rtl-optimization/42685
22134         * web.c (web_main): Ignore DEBUG_INSNs.
22135
22136 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
22137
22138         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
22139
22140         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
22141         Fix types of fndecl and arglist parameters.
22142
22143 2010-01-26  Richard Guenther  <rguenther@suse.de>
22144
22145         PR middle-end/42806
22146         * tree-eh.c (unsplit_eh): Skip debug insns.
22147
22148 2010-01-26  Richard Guenther  <rguenther@suse.de>
22149
22150         PR tree-optimization/42250
22151         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
22152
22153 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
22154
22155         PR fortran/42866
22156         * omp-low.c (expand_omp_sections): Only use single_pred if
22157         l2_bb is single_pred_p.
22158
22159 2010-01-25  Christian Bruel  <christian.bruel@st.com>
22160
22161         PR target/42841
22162         * config/sh/sh.c (find_barrier): Increase length for non delayed
22163         conditional branches.
22164         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
22165
22166 2010-01-24  David S. Miller  <davem@davemloft.net>
22167
22168         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
22169         define if not using GAS.
22170         * config/sparc/sparc.c (sparc_elf_asm_named_section):
22171         Likewise.  Delete SECTION_MERGE code, which is only applicable
22172         when using GAS.
22173
22174 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
22175
22176         PR c++/42748
22177         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
22178         mangling of va_list in system headers.
22179
22180 2010-01-23  Toon Moene  <toon@moene.org>
22181
22182         * tree-predcom.c (combine_chains): Return NULL, not false.
22183
22184 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
22185
22186         * tree-loop-distribution.c (distribute_loop): Fix declaration and
22187         initialization of variable res to agree with return type.
22188
22189 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
22190
22191         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
22192         * tree-sra.c: Add include of expr.h.
22193
22194 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
22195
22196         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
22197         insert the debug stmt on the single non-EH edge from the stmt.
22198
22199 2010-01-22  Richard Henderson  <rth@redhat.com>
22200
22201         PR tree-opt/42833
22202         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
22203         the RHS until after generate_subtree_copies has insertted its
22204         code before the current statement.
22205
22206 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
22207
22208         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
22209
22210         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
22211
22212 2010-01-21  Martin Jambor  <mjambor@suse.cz>
22213
22214         PR tree-optimization/42585
22215         * tree-sra.c (struct access): New field grp_total_scalarization.
22216         (dump_access): Dump the new field.
22217         (should_scalarize_away_bitmap): New variable.
22218         (cannot_scalarize_away_bitmap): Likewise.
22219         (sra_initialize): Allocate new bitmaps.
22220         (sra_deinitialize): Free new bitmaps.
22221         (create_access_1): New function.
22222         (create_access): Parts moved to create_access_1.
22223         (type_consists_of_records_p): New function.
22224         (completely_scalarize_record): Likewise.
22225         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
22226         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
22227         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
22228         access.
22229         (analyze_all_variable_accesses): Completely scalarize small eligible
22230         records.
22231
22232 2010-01-21  Martin Jambor  <mjambor@suse.cz>
22233
22234         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
22235
22236 2010-01-21  Andrew Haley  <aph@redhat.com>
22237
22238         * gcc.c (process_command): Move lang_specific_driver before
22239         setting cc_libexec_prefix.
22240
22241 2010-01-21  Richard Guenther  <rguenther@suse.de>
22242
22243         PR middle-end/19988
22244         * fold-const.c (negate_expr_p): Pretend only negative
22245         real constants are easily negatable.
22246
22247 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
22248             Jason Merrill  <jason@redhat.com>
22249
22250         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
22251         (TYPE_TRANSPARENT_AGGR): this, for union and record.
22252         * calls.c (initialize argument_information): Handle it.
22253         * c-common.c (handle_transparent_union_attribute): Use new name.
22254         * c-decl.c (finish_struct): Ditto.
22255         * c-typeck.c (type_lists_compatible_p): Ditto.
22256         (convert_for_assignment): Use new name and also handle record.
22257         * function.c (aggregate_value_p): Handle it.
22258         (pass_by_reference): Ditto.
22259         (assign_parm_data_types): Ditto.
22260         * print-tree.c (print_node): Ditto.
22261         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
22262         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
22263         * tree.c (first_field): New fn.
22264
22265 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
22266
22267         PR target/42818
22268         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
22269         even when linking statically, for now.
22270
22271 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
22272
22273         PR debug/42715
22274         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
22275         without a cselib val.
22276         (count_uses): Accept MO_VAL_SET with no val on stores.
22277         (add_stores): Likewise.
22278
22279 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22280
22281         * var-tracking.c (check_value_val): Add a compile time assertion.
22282         (dv_is_decl_p): Simplify.
22283         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
22284         gcc_assert if ENABLE_CHECKING.
22285
22286 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
22287
22288         PR debug/42782
22289         * var-tracking.c: Include tree-flow.h.
22290         (mem_dies_at_call): New.
22291         (dataflow_set_preserve_mem_locs): Use it.
22292         (dataflow_set_remove_mem_locs): Likewise.
22293         (dump_var): Renamed from dump_variable.  Adjust all callers.
22294         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
22295         * Makefile.in (var-tracking.o): Adjust deps.
22296
22297 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
22298
22299         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
22300
22301 2010-01-20  Richard Guenther  <rguenther@suse.de>
22302
22303         PR tree-optimization/42717
22304         * tree-ssa-dce.c (get_live_post_dom): Remove.
22305         (forward_edge_to_pdom): Take an arbitrary edge to copy
22306         degenerate PHI args from.
22307         (remove_dead_stmt): Use the first post-dominator even if it
22308         does not contain live statements as redirection destination.
22309
22310 2010-01-20  Richard Guenther  <rguenther@suse.de>
22311
22312         * tree-inline.c (estimate_num_insns): Handle EH builtins.
22313
22314 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22315
22316         * sel-sched.c (create_speculation_check): Remove set but not used
22317         variable twin.
22318         (try_transformation_cache): Remove set but not used variable ds.
22319         (calculate_privileged_insns): Remove set but not used variables
22320         cur_insn and min_spec_insn.
22321         (find_best_expr): Remove set but not used variable avail_n.
22322         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
22323         variable e.
22324         * cgraphunit.c (assemble_thunk): Remove set but not used variable
22325         false_label.
22326         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
22327         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
22328         new_scop_exit_edge.
22329
22330 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
22331
22332         PR bootstrap/42786
22333         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
22334         cpu types.  Add support for *-sse3 cpu types.
22335         (x86_64-*-*): Ditto.
22336
22337 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22338
22339         PR middle-end/42803
22340         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
22341         argument, call initializer_constant_valid_p_1 instead of
22342         initializer_constant_valid_p, pass CACHE to it, return NULL
22343         immediately if first call returns NULL.
22344         (initializer_constant_valid_p_1): New function.
22345         (initializer_constant_valid_p): Use it.
22346
22347 2010-01-20  Thomas Quinot  <quinot@adacore.com>
22348
22349         * tree.def (PLACEHOLDER_EXPR): Fix comment.
22350
22351 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22352
22353         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
22354         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
22355         (loc_list_from_tree): Don't handle unsigned division.  Handle
22356         signed modulo using DW_OP_{over,over,div,mul,minus}.
22357         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
22358         modulo instead of signed.
22359
22360 2010-01-20  DJ Delorie  <dj@redhat.com>
22361
22362         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
22363         (Fpa): Pass it
22364         (h8300_emit_stack_adjustment): Propogate it.
22365         (push): Pass it.
22366         (h8300_expand_prologue): Likewise.
22367         (h8300_expand_epilogue): Likewise.
22368
22369 2010-01-19  Michael Matz  <matz@suse.de>
22370
22371         PR tree-optimization/41783
22372         * tree-data-ref.c (toplevel): Include flags.h.
22373         (dump_data_dependence_relation):  Also dump the inputs if the
22374         result will be unknown.
22375         (split_constant_offset_1): Look through some conversions.
22376         * tree-predcom.c (determine_roots_comp): Restart a new chain if
22377         the offset from last element is too large.
22378         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
22379         (reassociate_to_the_same_stmt): Handle vector registers.
22380         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
22381         (e.g. conversions).
22382         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
22383         wide_prolog_niters argument, emit widening instructions.
22384         (vect_do_peeling_for_alignment): Adjust caller, use widened
22385         variant of the iteration cound.
22386         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
22387
22388 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22389
22390         PR target/38697
22391         * config/arm/neon-testgen.m (emit_automatics): New parameter
22392         features. Adjust for Fixed_return_reg feature.
22393         (test_intrinsic): Call emit_automatics with new feature.
22394         * config/arm/neon.ml: Update copyright years.
22395         (features): New Fixed_return_reg feature.
22396         (ops): Update feature for Vget_low.
22397
22398 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
22399
22400         PR tree-optimization/42719
22401         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
22402         stmt uses.
22403
22404         PR debug/42728
22405         * fwprop.c (all_uses_available_at): Return false if def_set dest
22406         is a REG that is used in def_insn.
22407
22408 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
22409
22410         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
22411
22412         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
22413         Add argument names.
22414
22415         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
22416
22417         * target.h (struct gcc_target) <secondary_reload>: Change type
22418         of last argument to secondary_reload_info *.
22419
22420 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
22421
22422         PR target/42774
22423         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
22424         memory references with unaligned offsets.  Remove CQImode handling.
22425         (unaligned_memory_operand): Return 1 for memory references with
22426         unaligned offsets.  Remove CQImode handling.
22427
22428 2010-01-18  Richard Guenther  <rguenther@suse.de>
22429
22430         PR middle-end/39954
22431         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
22432         builtin calls.
22433
22434 2010-01-18  Richard Guenther  <rguenther@suse.de>
22435
22436         PR tree-optimization/42781
22437         * tree-ssa-structalias.c (find_what_var_points_to): Skip
22438         restrict processing only if the original variable was artificial.
22439
22440 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
22441
22442         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
22443         find number of popped argument bytes.
22444
22445         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
22446         Fix the text that describes the return value for invalid insns.
22447
22448         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
22449
22450         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
22451         Clarify what 'cost of the -dependence' is.  Fix quoting.
22452
22453         * toplev.c (default_get_pch_validity): Rename argument to "sz".
22454         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
22455
22456 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
22457
22458         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
22459         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
22460
22461 2010-01-17  Richard Guenther  <rguenther@suse.de>
22462
22463         PR middle-end/42248
22464         * function.c (split_complex_args): Take a VEC to modify.
22465         (assign_parms_augmented_arg_list): Build a VEC instead of
22466         a chain of PARM_DECLs.
22467         (assign_parms_unsplit_complex): Take a VEC of arguments.
22468         Do not fixup unmodified parms.
22469         (assign_parms): Deal with the VEC.
22470         (gimplify_parameters): Likewise.
22471
22472 2010-01-17  Richard Guenther  <rguenther@suse.de>
22473
22474         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
22475         node existence check.
22476         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
22477         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
22478         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
22479         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
22480         (gimple_execute_on_growing_pred): Likewise.
22481
22482 2010-01-17  Richard Guenther  <rguenther@suse.de>
22483
22484         PR tree-optimization/42773
22485         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
22486         (compute_antic_aux): Likewise.
22487         (compute_partial_antic_aux): Likewise.
22488
22489 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
22490
22491         PR debug/42767
22492         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
22493         and US_TRUNCATE.
22494
22495 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
22496
22497         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
22498         appearance.
22499
22500         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
22501         Fix markup for strict argument.
22502
22503         (TARGET_SCHED_REORDER2): Fix argument types.
22504
22505         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
22506         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
22507
22508         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
22509         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
22510
22511         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
22512         Add argument name.
22513
22514         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
22515         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
22516         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
22517         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
22518         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
22519
22520         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
22521
22522         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
22523
22524         (TARGET_ASM_RELOC_RW_MASK): Add return type.
22525         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
22526
22527         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
22528
22529         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
22530         Use prototype.
22531
22532         (TARGET_ASM_NAMED_SECTION): Fix argument list.
22533
22534         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
22535         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
22536
22537         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
22538
22539         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
22540
22541         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
22542         referring to it.  Fix language.
22543
22544         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
22545
22546         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
22547
22548         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
22549
22550         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
22551
22552         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
22553         '@var{stream}.  Remove stray 'and'.
22554
22555         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
22556
22557         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
22558
22559         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
22560
22561         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
22562         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
22563
22564         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
22565         Fix description of return value.
22566         Rename argument "sz" to "len."
22567
22568         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
22569         Clarify meaning of 'true' return value.
22570
22571         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
22572
22573         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
22574         rep_mode versus mode_rep.
22575
22576         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
22577
22578         (TARGET_BUILTIN_DECL): Fix name.
22579
22580         (TARGET_COMMUTATIVE_P): Fix type of first argument.
22581
22582         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
22583
22584         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
22585
22586         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
22587
22588         (TARGET_RELAXED_ORDERING): Use @deftypevr.
22589
22590         (TARGET_GET_DRAP_RTX): Note that this is a hook.
22591         Clarify language.
22592
22593         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
22594         Rename argument tm_fn to md_fn.
22595
22596         (TARGET_OPTION_PRINT): Fix argument list.
22597
22598 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
22599
22600         PR target/42664
22601         * config/i386/i386.c (ix86_fixup_binary_operands):
22602         Revert FMA4 fixup of operands.
22603
22604 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22605
22606         PR gcc/42525
22607         * Makefile.in (write_entries_to_file, install-plugin):
22608         Use \012 instead of \n with tr.
22609
22610 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
22611
22612         * configure.ac (HAVE_AS_REF): New C macro.
22613         * configure: Regenerate.
22614         * config.in: Likewise.
22615         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
22616         if HAVE_AS_REF.
22617         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
22618         if HAVE_AS_REF.
22619
22620 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
22621
22622         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
22623
22624         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
22625
22626         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
22627
22628         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
22629
22630         (TARGET_IN_SMALL_DATA_P): Fix argument type.
22631
22632         (TARGET_BINDS_LOCAL_P): Fix argument type.
22633
22634         (TARGET_ASM_FILE_END): Use prototype.
22635
22636         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
22637
22638         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
22639
22640         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
22641
22642         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
22643
22644         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
22645         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
22646
22647         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
22648         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
22649
22650         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
22651         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
22652         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
22653         (TARGET_ADDR_SPACE_CONVERT): Likewise.
22654
22655         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
22656
22657         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
22658
22659         (TARGET_INIT_BUILTINS): Use prototype.
22660
22661         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
22662         Put 'const char *' in braces.  Fix parameter types.
22663         (TARGET_INVALID_CONVERSION): Fix parameter types.
22664         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
22665         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
22666
22667         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
22668         Fix argument type.
22669
22670         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
22671
22672         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
22673
22674 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
22675
22676         * doc/tm.texi (TARGET_HELP): Fix return type.
22677
22678         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
22679         in braces.  Fix argument types.
22680
22681         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
22682
22683         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
22684
22685         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
22686
22687         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
22688         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
22689
22690         (TARGET_MANGLE_TYPE): Fix argument types.
22691
22692         (TARGET_IRA_COVER_CLASSES): Use prototype.
22693
22694         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
22695
22696         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
22697
22698         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
22699
22700         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
22701
22702         (TARGET_CALLEE_COPIES): Fix argument types.
22703
22704         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
22705
22706         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
22707
22708         (TARGET_FUNCTION_VALUE): Fix argument types.
22709
22710         (TARGET_RETURN_IN_MSB): Fix argument type.
22711
22712         (TARGET_RETURN_IN_MEMORY): Fix argument types.
22713
22714         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
22715
22716         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
22717
22718         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
22719         agree with return type.
22720
22721         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
22722
22723 2010-01-15  Jing Yu  <jingyu@google.com>
22724
22725         PR rtl-optimization/42691
22726         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
22727         a pseudo to a constant and are merged, and adjust comments.
22728
22729 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
22730
22731         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
22732
22733 2010-01-15  Richard Guenther  <rguenther@suse.de>
22734
22735         PR middle-end/42739
22736         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
22737         labels of computed or non-local gotos to the destination.
22738         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
22739         landing pad label is the first label.
22740
22741 2010-01-15  Richard Guenther  <rguenther@suse.de>
22742
22743         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
22744
22745 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
22746
22747         PR target/42747
22748         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
22749         to allow generation of the xssqrtdp instruction on power7.
22750         (sqrtdf2_fpr): Ditto.
22751
22752 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
22753
22754         PR middle-end/42674
22755         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
22756         functions with noreturn attribute.
22757
22758         PR c++/42608
22759         * varasm.c (declare_weak): Add weak attribute to decl if it
22760         doesn't have one already.
22761         (assemble_external): Only add decls to weak_decls if they also
22762         have weak attribute.
22763
22764 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
22765
22766         * var-tracking.c (var_reg_delete): Don't delete the association
22767         between REGs and values or one-part variables if the register
22768         isn't clobbered.
22769
22770 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
22771
22772         PR debug/42657
22773         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
22774         because its first operand is a non-localized variable.
22775
22776 2010-01-14  Martin Jambor  <mjambor@suse.cz>
22777
22778         PR tree-optimization/42706
22779         * tree-sra.c (encountered_recursive_call): New variable.
22780         (encountered_unchangable_recursive_call): Likewise.
22781         (sra_initialize): Initialize both new variables.
22782         (callsite_has_enough_arguments_p): New function.
22783         (scan_function): Call decl and flags check only for IPA-SRA, check
22784         whether there is a recursive call and whether it has enough arguments.
22785         (all_callers_have_enough_arguments_p): New function.
22786         (convert_callers): Look for recursive calls only when
22787         encountered_recursive_call is set.
22788         (ipa_early_sra): Bail out either if
22789         !all_callers_have_enough_arguments_p or
22790         encountered_unchangable_recursive_call.
22791
22792 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
22793
22794         * sel-sched.c: Add 2010 to copyright years.
22795         * sel-sched-ir.c: Likewise.
22796         * sel-sched-ir.h: Likewise.
22797
22798 2010-01-14  Martin Jambor  <mjambor@suse.cz>
22799
22800         PR tree-optimization/42714
22801         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
22802         constructors specially.
22803
22804 2010-01-14  Andi Kleen  <ak@linux.intel.com>
22805
22806         * config/i386/drivers-i386.c (detect_caches_intel):
22807         Add l2sizekb parameter and fill in.
22808         (host_detect_local_cpu): Add l2sizekb, fill in.
22809         Add Atom small cache heuristic.
22810
22811 2010-01-14  Andi Kleen  <ak@linux.intel.com>
22812
22813         * config/i386/drivers-i386.c (detect_caches_cpuid4):
22814         Add level3 parameter and fill in.
22815         (detect_caches_intel): Handle level3 cache.
22816
22817 2010-01-14  Andi Kleen  <ak@linux.intel.com>
22818
22819         * config/i386/drivers-i386.c (host_detect_local_cpu):
22820         Fix core duo detection.
22821
22822 2010-01-14  Andi Kleen  <ak@linux.intel.com>
22823
22824         * config/i386/drivers-i386.c (host_detect_local_cpu):
22825         Fix Atom detection.
22826
22827 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
22828
22829         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
22830         (rs6000_variable_issue_1): this.  Use...
22831         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
22832
22833 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
22834
22835         * sel-sched-ir.c (sel_restore_other_notes): Rename to
22836         sel_restore_notes.  Update all callers.  Call reemit_notes
22837         for all insns.
22838
22839 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
22840
22841         PR rtl-optimization/42246
22842         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
22843         loops.
22844
22845 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
22846
22847         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
22848         all successors is the same as number of successors in current region.
22849
22850 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
22851
22852         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
22853         to rename is not separable.  Otherwise check that its LHS is not NULL.
22854
22855 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
22856
22857         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
22858
22859 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
22860
22861         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
22862         available registers when failed to discover LHS register class.
22863         Fix indentation.  Update comment.
22864
22865 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
22866             Alexander Monakov  <amonakov@ispras.ru>
22867
22868         PR rtl-optimization/42389
22869         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
22870         to can_issue_more.
22871         (advance_state_on_fence): Likewise.
22872         (sel_target_adjust_priority): Print debug output only when
22873         sched_verbose >= 4, not 2.
22874         (get_expr_cost): Do not issue all unique insns on the next cycle.
22875         (fill_insns): Initialize can_issue_more from the value saved
22876         with the fence.
22877         * sel-sched-ir.c (flist_add): New parameter issue_more.
22878         Init FENCE_ISSUE_MORE with it.
22879         (merge_fences): Likewise.
22880         (init_fences): Update call to flist_add.
22881         (add_to_fences, add_clean_fence_to_fences)
22882         (add_dirty_fence_to_fences): Likewise.
22883         (move_fence_to_fences): Update call to merge_fences.
22884         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
22885         sched groups.
22886         * sel-sched-ir.h (struct _fence): New field issue_more.
22887         (FENCE_ISSUE_MORE): New accessor macro.
22888
22889 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
22890
22891         PR rtl-optimization/42388
22892         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
22893         that have no predecessors nor successors.  Do not call move_bb_info
22894         for empty blocks outside of current region.
22895
22896 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
22897
22898         PR rtl-optimization/42294
22899         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
22900         * sel-sched.c (move_exprs_to_boundary): Transitively add all
22901         originators' originators.
22902
22903 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
22904
22905         PR rtl-optimization/39453
22906         PR rtl-optimization/42246
22907         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
22908         for pipelining_p.
22909         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
22910
22911 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
22912             Alexander Monakov  <amonakov@ispras.ru>
22913
22914         PR middle-end/42245
22915         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
22916         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
22917         argument.  Update all callers.
22918         (tidy_control_flow): ... and here.  Recompute topological order
22919         of basic blocks in region if necessary.
22920         (sel_redirect_edge_and_branch): Change return type.  Return true
22921         if topological order might have been invalidated.
22922         (purge_empty_blocks): Export and move from...
22923         * sel-sched.c (purge_empty_blocks): ... here.
22924         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
22925         (maybe_tidy_empty_bb): Delete prototype.
22926         (purge_empty_blocks): Declare.
22927
22928 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
22929
22930         PR rtl-optimization/42249
22931         * sel-sched.c (try_replace_dest_reg): When chosen register
22932         and original register is the same, do not bail out early, but
22933         still check all original insns for validity of replacing destination
22934         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
22935         in this case.
22936
22937 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
22938
22939         PR c/42721
22940         Port from no-undefined-overflow branch:
22941         2009-03-09  Richard Guenther  <rguenther@suse.de>
22942
22943         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
22944
22945 2010-01-14  Richard Guenther  <rguenther@suse.de>
22946
22947         PR lto/42665
22948         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
22949
22950 2010-01-14  Ira Rosen  <irar@il.ibm.com>
22951
22952         PR tree-optimization/42709
22953         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
22954         as scalar type in creation of constant vector operand.
22955
22956 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22957
22958         PR testsuite/42414
22959         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
22960         (check-parallel-%): Match `testsuite' directory component only
22961         at the end.
22962
22963 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
22964
22965         PR translation/39521
22966         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
22967         strings with _().
22968
22969 2010-01-13  Richard Guenther  <rguenther@suse.de>
22970
22971         PR tree-optimization/42730
22972         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
22973         offset zero.
22974
22975 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
22976
22977         PR target/pr42542
22978         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
22979         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
22980         them signed.
22981
22982 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
22983
22984         * config/bfin/libgcc-bfin.ver: Regenerate based on current
22985         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
22986         ___umulsi3_highpart.
22987
22988         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
22989         rather than schedule_insns if the pass is enabled.
22990
22991 2010-01-13  Martin Jambor  <mjambor@suse.cz>
22992
22993         PR tree-optimization/42704
22994         * tree-sra.c (sra_modify_assign): Do not delete assignments to
22995         SSA_NAMEs.
22996
22997 2010-01-13  Martin Jambor  <mjambor@suse.cz>
22998
22999         PR tree-optimization/42703
23000         * tree-sra.c (analyze_access_subtree): Check that we can build a
23001         reference to the original data within the aggregate.
23002
23003 2010-01-13  Richard Guenther  <rguenther@suse.de>
23004
23005         PR tree-optimization/42705
23006         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
23007
23008 2010-01-13  Richard Guenther  <rguenther@suse.de>
23009
23010         PR middle-end/42716
23011         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
23012
23013 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
23014
23015         PR debug/41371
23016         * var-tracking.c (values_to_unmark): New variable.
23017         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
23018         values_to_unmark vector.  Moved body to...
23019         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
23020         instead queue it into values_to_unmark vector.
23021         (vt_find_locations): Free values_to_unmark vector.
23022
23023 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
23024
23025         * config/s390/s390.c (override_options): Set
23026         default of max-pending-list-length to 256
23027
23028 2010-01-13  Richard Guenther  <rguenther@suse.de>
23029
23030         PR lto/42678
23031         * tree-pass.h (PROP_gimple_lcx): New.
23032         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
23033         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
23034         before the final cleanup_eh.
23035         (dump_properties): Dump PROP_gimple_lcx.
23036         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
23037         (tree_lower_complex_O0): Remove.
23038         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
23039         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
23040         tree_lower_complex, schedule TODO_update_ssa.
23041         * lto-streamer-out.c (output_function): Stream the functions
23042         properties.
23043         * lto-streamer-in.c (input_function): Likewise.
23044         (lto_read_body): Do not override them here.
23045
23046 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
23047
23048         PR c/42708
23049         * c-typeck.c (build_c_cast): Fold value cast to union type before
23050         wrapping it in a CONSTRUCTOR.
23051
23052 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
23053
23054         PR rtl-optimization/42699
23055         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
23056         involved.
23057
23058 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23059
23060         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
23061         SUBTARGET_WARN_UNUSED_SPEC): Move ...
23062         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
23063         SUBTARGET_WARN_UNUSED_SPEC): ... here
23064         * config/mips/iris5.h (LIBGCC_SPEC): Define.
23065
23066 2010-01-12  Julian Brown  <julian@codesourcery.com>
23067
23068         * config/arm/neon-schedgen.ml (Utils): Don't try to
23069         open missing module.
23070         (find_with_result): New.
23071
23072 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
23073
23074         PR debug/42662
23075         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
23076         sharing when canonicalizing ({lt,ge}u (plus a b) b).
23077
23078         PR tree-optimization/42645
23079         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
23080         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
23081         decl_map, set processing_debug_stmt to -1 and return name without
23082         any remapping.
23083
23084 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
23085
23086         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
23087         binutils version, and reword target configuration description.
23088
23089 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
23090
23091         * config/avr/avr.h (LINKER_NAME): Remove.
23092
23093 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
23094
23095         PR target/42416
23096         * config/rs6000/rs6000.c (rs6000_override_options): On targets
23097         that support VSX, warn for -mno-altivec if vsx is not disabled,
23098         and disable vsx.
23099
23100 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
23101             Shujing Zhao  <pearly.zhao@oracle.com>
23102
23103         PR translation/42469
23104         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
23105         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
23106         character between option name and help text.
23107         * c.opt (imultilib): Likewise.
23108
23109 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
23110
23111         * lto-streamer-out.c (output_unreferenced_globals): Output static
23112         variables.
23113
23114 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
23115
23116         PR rtl-optimization/42621
23117         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
23118         optimizing for size.
23119         (duplicate_computed_gotos): Remove now-redundant check.
23120
23121 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
23122
23123         PR target/37454
23124         * configure.ac: Save and restore LDFLAGS and LIBS
23125         * configure: Regenerate.
23126
23127 2010-01-10  Richard Guenther  <rguenther@suse.de>
23128
23129         PR middle-end/42667
23130         * builtins.c (fold_builtin_strlen): Add type argument and
23131         convert the resulting length to it.
23132         (fold_builtin_1): Adjust.
23133
23134 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
23135
23136         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
23137         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
23138         1 insn.
23139         (num_insns_constant_wide): Adjust for that change.
23140
23141 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23142
23143         PR debug/42631
23144         * web.c (union_defs): Add used argument, to combine uses of
23145         uninitialized regs.
23146         (entry_register): Adjust type and tests of used argument.
23147         (web_main): Widen used for new use.  Pass it to union_defs.
23148         * df.h (union_defs): Adjust prototype.
23149
23150 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23151
23152         PR debug/42630
23153         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
23154         uses in new incoming argument.  Free body.
23155         (reset_debug_uses_in_loop): New.
23156         (analyze_insn_to_expand_var): Call the latter if the former found
23157         anything.  Fix whitespace.  Reject invalid dest overlaps before
23158         going through all insns in the loop.
23159
23160 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23161
23162         PR debug/42629
23163         * haifa-sched.c (dying_use_p): Debug insns don't count.
23164
23165 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23166
23167         PR middle-end/42363
23168         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
23169         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
23170         (verify_gimple_call): Reject LHS in noreturn calls.
23171
23172 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23173
23174         PR debug/42604
23175         PR debug/42395
23176         * tree-vect-loop-manip.c (adjust_info): New type.
23177         (adjust_vec): New pointer to vector.
23178         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
23179         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
23180         (slpeel_update_phis_for_duplicate_loop): Use them.
23181         (slpeel_update_phi_nodes_for_guard1): Likewise.
23182         (slpeel_update_phi_nodes_for_guard2): Likewise.
23183         (slpeel_tree_peel_loop_to_edge): Likewise.
23184         (vect_update_ivs_after_vectorizer): Likewise.
23185
23186 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23187
23188         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
23189         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
23190
23191 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23192
23193         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
23194         bogus uninitialized warning.
23195
23196 2010-01-09  Richard Guenther  <rguenther@suse.de>
23197
23198         PR middle-end/42512
23199         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
23200         the evolution is compatible with the initial condition.
23201
23202 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
23203
23204         * gcc.c (process_command): Update copyright notice dates.
23205         * gcov.c (print_version): Likewise.
23206         * gcov-dump.c (print_version): Likewise.
23207         * mips-tfile.c (main): Likewise.
23208         * mips-tdump.c (main): Likewise.
23209
23210 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
23211
23212         PR target/41885
23213         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
23214         (rotlhi3): Delete.
23215         (rotlhi3_8): Delete.
23216         (rotlsi3): Delete.
23217         (rotlsi3_8): Delete.
23218         (rotlsi3_16): Delete.
23219         (rotlsi3_24): Delete.
23220         (rotl<mode>3): New.
23221         (*rotw<mode>3): New.
23222         (*rotb<mode>3): New.
23223         * config/avr/avr.c (avr_rotate_bytes): New function.
23224         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
23225
23226 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
23227
23228         PR target/37454
23229         * configure.ac: Modify -rdynamic check.
23230         * configure: Regenerate.
23231
23232 2010-01-08  DJ Delorie  <dj@redhat.com>
23233
23234         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
23235         register popping order.
23236
23237 2010-01-08  Richard Guenther  <rguenther@suse.de>
23238
23239         PR lto/42528
23240         * c.opt (fsigned-char): Also let LTO handle this option.
23241         (funsigned-char): Likewise.
23242
23243 2010-01-07  Richard Guenther  <rguenther@suse.de>
23244
23245         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
23246         (gimple_op): Likewise.
23247         (gimple_op_ptr): Likewise.
23248         (gimple_assign_set_lhs): Remove gcc_assert.
23249         (gimple_assign_set_rhs1): Likewise.
23250         (gimple_assign_set_rhs2): Likewise.
23251         (gimple_call_set_lhs): Likewise.
23252         (gimple_call_set_fn): Likewise.
23253         (gimple_call_set_fndecl): Likewise.
23254         (gimple_call_fndecl): Likewise.
23255         (gimple_call_return_type): Likewise.
23256         (gimple_call_set_chain): Likewise.
23257         (gimple_call_num_args): Likewise.
23258         (gimple_call_set_arg): Likewise.
23259         (gimple_cond_set_code): Likewise.
23260         (gimple_cond_set_lhs): Likewise.
23261         (gimple_cond_set_rhs): Likewise.
23262         (gimple_cond_set_true_label): Likewise.
23263         (gimple_cond_set_false_label): Likewise.
23264         (gimple_label_set_label): Likewise.
23265         (gimple_goto_set_dest): Likewise.
23266         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
23267         (gimple_debug_bind_get_value): Likewise.
23268         (gimple_debug_bind_get_value_ptr): Likewise.
23269         (gimple_debug_bind_set_var): Likewise.
23270         (gimple_debug_bind_set_value): Likewise.
23271         (gimple_debug_bind_reset_value): Likewise.
23272         (gimple_debug_bind_has_value_p): Likewise.
23273         (gimple_return_retval_ptr): Remove gcc_assert.
23274         (gimple_return_retval): Likewise.
23275         (gimple_return_set_retval): Likewise.
23276         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
23277         (safe_referenced_var_iterator): Remove.
23278         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
23279         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
23280         (fill_referenced_var_vec): Remove.
23281         (first_readonly_imm_use): Remove redundant gcc_assert.
23282         (phi_arg_index_from_use): Combine gcc_asserts.
23283         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
23284         (first_imm_use_stmt): Remove redundant gcc_assert.
23285         * tree-cfg.c (verify_gimple_call): Verify function and chain
23286         operands.  Verify arguments.
23287         (verify_types_in_gimple_stmt): Verify condition code and labels.
23288
23289 2010-01-07  Richard Guenther  <rguenther@suse.de>
23290
23291         PR tree-optimization/42641
23292         * sese.c (rename_map_elt_info): Use the SSA name version, do
23293         not hash pointers.
23294
23295 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
23296
23297         PR tree-optimization/42625
23298         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
23299         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
23300
23301 2010-01-07  Duncan Sands  <baldrick@free.fr>
23302
23303         * Makefile.in (PLUGIN_HEADERS): Add version.h.
23304
23305 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
23306
23307         PR target/42511
23308         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
23309         note itself is not function_invariant_p.
23310
23311 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
23312
23313         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
23314         Do not add the DF_NOTE problem.
23315         * store-motion.c (execute_rtl_store_motion): Likewise.
23316
23317 2010-01-07  Martin Jambor  <mjambor@suse.cz>
23318
23319         PR tree-optimization/42157
23320         * tree-sra.c (compare_access_positions): Stabilize sort if both
23321         accesses have integer types, return zero immediately if they are the
23322         same.
23323
23324 2010-01-06  Richard Henderson  <rth@redhat.com>
23325
23326         PR middle-end/41883
23327         * haifa-sched.c (add_to_note_list): Merge into ...
23328         (concat_note_lists): ... here, and ...
23329         (unlink_other_notes, rm_other_notes): Merge into...
23330         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
23331         NOTE_INSN_EPILOGUE_BEG.
23332
23333 2010-01-06  Richard Guenther  <rguenther@suse.de>
23334
23335         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
23336         not inline regular functions into always-inline functions.
23337
23338 2010-01-06  Nick Clifton  <nickc@redhat.com>
23339
23340         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
23341         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
23342         used together.
23343         (OVERRIDE_OPTIONS): Delete.
23344         (OPTIMIZATION_OPTIONS): Define.
23345         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
23346         * config/rx/rx.c (rx_handle_option): Issue an error message if
23347         -mcpu=rx200 and -fpu are used together.
23348         (rx_set_optimization_options): New function.  Issue an error
23349         message if an optimization attribute attempts to reset the FPU/
23350         math optimization pairing.
23351         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
23352         * config/rx/rx.opt: Set the default to 32-bit doubles.
23353         * config/rx/t-rx: Add multilibs for -nofpu option.
23354         * doc/invoke.texi: Update documentation of RX options.
23355
23356 2010-01-06  Richard Guenther  <rguenther@suse.de>
23357
23358         * tree-ssa-pre.c (name_to_id): New global.
23359         (alloc_expression_id): Simplify SSA name handling.
23360         (lookup_expression_id): Likewise.
23361         (init_pre): Zero name_to_id.
23362         (fini_pre): Free it.
23363
23364 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
23365
23366         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
23367
23368 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
23369
23370         PR target/42542
23371         * config/i386/sse.md (smaxv2di3): New.
23372         (umaxv2di3): Likewise.
23373         (sminv2di3): Likewise.
23374         (uminv2di3): Likewise.
23375
23376 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
23377
23378         PR target/42564
23379         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
23380         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
23381         (legitimize_tls_address): Likewise.
23382         (sparc_tls_referenced_p): Likewise.
23383         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
23384         and adjust calls to legitimize_pic_address.
23385         (legitimate_constant_p) Use sparc_tls_referenced_p.
23386         (legitimate_pic_operand_p): Likewise.
23387         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
23388         (sparc_tls_symbol_ref_1): Delete.
23389         (sparc_tls_referenced_p): Make static, recognize specific patterns.
23390         (legitimize_tls_address): Make static, handle CONST patterns.
23391         (legitimize_pic_address): Make static, remove unused parameter and
23392         adjust recursive calls.
23393         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
23394         and adjust call to legitimize_pic_address.
23395         (sparc_output_mi_thunk): Likewise.
23396
23397 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
23398             H.J. Lu  <hongjiu.lu@intel.com>
23399
23400         PR target/42542
23401         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
23402         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
23403         operands to make them signed.
23404
23405         Revert:
23406         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
23407
23408         PR target/42542
23409         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
23410         GTU to GT for V4SI and V2DI.
23411
23412         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
23413         (umin<mode>3): Removed.
23414         (uminv8hi3): New.
23415         (uminv4si3): Likewise.
23416
23417 2010-01-05  Martin Jambor  <mjambor@suse.cz>
23418
23419         PR tree-optimization/42462
23420         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
23421         current_function_decl to helper functions and macros.
23422
23423 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23424
23425         PR bootstrap/41771
23426         * flags.h: Don't include real.h.
23427         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
23428         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
23429         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
23430         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
23431         * dominance.c: Update copyright.
23432         * gimple.c (walk_gimple_op): Remove inline.
23433         * tree-ssa-reassoc.c: Include real.h.
23434         * Makefile.in (FLAGS_H): Remove $(REAL_H).
23435         (tree-ssa-reassoc.o): Depend on $(REAL_H).
23436
23437 2010-01-05  Nick Clifton  <nickc@redhat.com>
23438
23439         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
23440         register to push into the stack frame when the accumulator has to
23441         be saved during interrupts.
23442
23443 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
23444
23445         * doc/invoke.texi: Remove the documentation about option
23446         -Wunreachable-code.
23447         * common.opt (Wunreachable-code):  Preserved for backward
23448         compatibility.
23449         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
23450         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
23451         the backward compatibility flag section.
23452
23453 2010-01-05  Richard Guenther  <rguenther@suse.de>
23454
23455         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
23456
23457 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
23458
23459         PR other/42611
23460         * cfgexpand.c (expand_one_var): Diagnose too large variables.
23461
23462         PR tree-optimization/42508
23463         * tree-sra.c (convert_callers): Check for recursive call
23464         by comparing cgraph nodes instead of decls.
23465         (modify_function): Call ipa_modify_formal_parameters also
23466         on all same_body aliases.
23467
23468         * cgraphunit.c (cgraph_materialize_all_clones): Compare
23469         cgraph nodes when checking for same_body aliases.
23470
23471 2010-01-05  Richard Guenther  <rguenther@suse.de>
23472
23473         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
23474         allocation and lookup.
23475         (get_or_alloc_expr_for_constant): Likewise.
23476         (phi_translate): Sink allocation.
23477
23478 2010-01-04  Richard Guenther  <rguenther@suse.de>
23479
23480         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
23481         a new entry only if needed.
23482         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
23483         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
23484         hashtable lookup.
23485         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
23486         the result array.
23487         (phi_translate): Handle CONSTANTs early.
23488
23489 2010-01-04  Martin Jambor  <mjambor@suse.cz>
23490
23491         PR tree-optimization/42398
23492         * tree-sra.c (struct access): Removed flag grp_different_types.
23493         (dump_access): Do not dump the removed flag.
23494         (sort_and_splice_var_accesses): Do not set the removed flag.
23495         (sra_modify_expr): Check for type compatibility directly.
23496
23497 2010-01-04  Martin Jambor  <mjambor@suse.cz>
23498
23499         PR tree-optimization/42366
23500         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
23501         edges with variable number of parameters.
23502         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
23503         flag instead of asserting it.
23504         (ipa_read_node_info): Read uses_analysis_done flag.
23505
23506 2010-01-04  Richard Guenther  <rguenther@suse.de>
23507
23508         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
23509         iterative_hash_* as intended.
23510         (vn_reference_compute_hash): Likewise.  Simplify hashing
23511         SSA names.
23512         (vn_reference_lookup_2): Likewise.
23513         (vn_nary_op_compute_hash): Likewise.
23514         (vn_phi_compute_hash): Likewise.
23515         (expressions_equal_p): Remove strange code.
23516         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
23517         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
23518         (bitmap_insert_into_set_1): Take value-id as parameter.
23519         (add_to_value): Pass it.
23520         (bitmap_insert_into_set): Likewise.
23521         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
23522
23523 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
23524
23525         PR driver/42442
23526         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
23527         (do_self_spec): For switches with SWITCH_IGNORE set set also
23528         SWITCH_IGNORE_PERMANENTLY.
23529         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
23530         of SWITCH_IGNORE.
23531
23532 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
23533
23534         * lto-streamer-out.c (output_unreferenced_globals): Output the full
23535         tree of an unreferenced global var.
23536
23537 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
23538
23539         PR target/42542
23540         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
23541         GTU to GT for V4SI and V2DI.
23542
23543         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
23544         (umin<mode>3): Removed.
23545         (uminv8hi3): New.
23546         (uminv4si3): Likewise.
23547
23548 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
23549
23550         PR lto/42581
23551         * collect2.c (main): Turn on trace in collect2 if -v is passed
23552         to gcc with LTO.
23553
23554 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
23555
23556         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
23557         description of expression operand.
23558
23559 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
23560
23561         * configure.ac: Add install-html to target_list for Make-hooks.
23562         * configure: Regenerate.
23563         * fortran/Make-lang.in (F95_HTMLFILES): New.
23564         (fortran.html): Use it.
23565         (fortran.install-html): New.
23566         * Makefile.in (install-html): Add lang.install-html.
23567         * java/Make-lang.in (JAVA_HTMLFILES): New.
23568         (java.html): Use it.
23569         (java.install-html): New.
23570         * objc/Make-lang.in (objc.install-html): New.
23571         * objcp/Make-lang.in (obj-c++.install-html): New.
23572         * cp/Make-lang.in (c++.install-html): New.
23573         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
23574         * lto/Make-lang.in (lto.install-html): New.
23575
23576 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
23577
23578         PR lto/42520
23579         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
23580
23581 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
23582
23583         PR rtl-optimization/41862
23584         * store-motion.c (store_killed_in_insn, compute_store_table,
23585         remove_reachable_equiv_notes, replace_store_insn,
23586         build_store_vectors): Ignore all DEBUG_INSNs.
23587
23588 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
23589
23590         PR lto/41564
23591         * common.opt: Add dumpdir.
23592
23593         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
23594         isn't specified.
23595         (option_map): Add --dumpdir.
23596
23597         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
23598
23599         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
23600
23601         * opts.c (decode_options): Try dump_dir_name first if
23602         dump_base_name isn't an absolute path.
23603         (common_handle_option): Handle OPT_dumpdir.
23604
23605         * toplev.c (dump_dir_name): New.
23606         (print_switch_values): Also ignore -dumpdir.
23607
23608         * toplev.h (dump_dir_name): New.
23609
23610 2010-01-03  Richard Guenther  <rguenther@suse.de>
23611
23612         PR tree-optimization/42589
23613         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
23614         double-word expansion of bswap32.
23615
23616 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
23617
23618         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
23619         with BLOCK_FOR_INSN.
23620         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
23621         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
23622         noce_process_if_block): Likewise.
23623         * gcse.c (compute_local_properties, insert_expr_in_table,
23624         insert_set_in_table, canon_list_insert, find_avail_set,
23625         pre_insert_copy_insn): Likewise.
23626
23627         * basic-block.h (BLOCK_NUM): Move from here...
23628         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
23629
23630 2010-01-03  Richard Guenther  <rguenther@suse.de>
23631
23632         PR tree-optimization/42438
23633         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
23634         contains_may_not_return_call flag.
23635         (BB_MAY_NOTRETURN): New.
23636         (valid_in_sets): Trapping nary operations are not valid
23637         in blocks that may not return.
23638         (insert_into_preds_of_block): Remove check for trapping expressions.
23639         (compute_avail): Compute also BB_MAY_NOTRETURN.
23640
23641 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
23642
23643         * doc/invoke.texi: Add 2010 to copyright years.
23644
23645 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
23646
23647         * config/sparc/sparc.c: Fix formatting nits.
23648
23649 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
23650             Alexander Monakov  <amonakov@ispras.ru>
23651
23652         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
23653
23654 2010-01-02  Richard Guenther  <rguenther@suse.de>
23655
23656         PR middle-end/42577
23657         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
23658         (simplify_switch_using_ranges): Mark to be removed edges
23659         as non-executable.
23660
23661 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23662
23663         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
23664
23665         * collect2.c (scan_libraries): Add missing argument in call to
23666         scan_prog_file.
23667
23668 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
23669
23670         PR target/42448
23671         * config/alpha/predicates.md (aligned_memory_operand): Return false
23672         for CQImode.
23673         (unaligned_memory_operand): Return true for CQImode.
23674         * config/alpha/alpha.c (get_aligned_mem): Assert that location
23675         doesn not cross aligned SImode word boundary.
23676
23677 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
23678
23679         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
23680         Remove.
23681         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
23682         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
23683
23684 2010-01-02  Richard Guenther  <rguenther@suse.de>
23685
23686         PR lto/41597
23687         * toplev.c (compile_file): Emit LTO marker properly.  Change
23688         it to __gnu_lto_v1.
23689         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
23690
23691 2010-01-01  Richard Guenther  <rguenther@suse.de>
23692
23693         PR debug/42455
23694         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
23695
23696 2010-01-01  Richard Guenther  <rguenther@suse.de>
23697
23698         PR c/42570
23699         * c-decl.c (grokdeclarator): For zero-size arrays force
23700         structural equality checks as layout_type does.
23701
23702 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
23703
23704         * builtins.c: Update copyright to 2010.
23705
23706 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
23707
23708         PR lto/42531
23709         * lto-streamer-out.c (produce_asm): Revert the last change.
23710         (copy_function): Likewise.
23711
23712         * lto-streamer.c (lto_get_section_name): Skip any leading
23713         asterisk in name.
23714
23715 2010-01-01  Richard Guenther  <rguenther@suse.de>
23716
23717         PR middle-end/42559
23718         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
23719         for LABEL_DECLs.
23720
23721 \f
23722 Copyright (C) 2010 Free Software Foundation, Inc.
23723
23724 Copying and distribution of this file, with or without modification,
23725 are permitted in any medium without royalty provided the copyright
23726 notice and this notice are preserved.