OSDN Git Service

* config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-08-20  Olivier Hainque  <hainque@adacore.com>
2
3         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
4         an extra nop past a sibling call at the very end.
5
6 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
7
8         PR bootstrap/45350
9         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
10         a comment.
11
12 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
13
14         * target.def (function_arg, function_incoming_arg): Remove const
15         qualifier on CUMULATIVE_ARGS parameter.
16         * targhooks.h (default_function_arg, default_function_incoming_arg):
17         Likewise.
18         * targhooks.c (default_function_arg, default_function_incoming_arg):
19         Likewise.
20         * config/i386/i386.c (ix86_function_arg): Likewise.
21
22 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
23
24         PR target/45336
25         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
26         SIGN_EXTENDs or ZERO_EXTENDs.
27
28 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
29
30         PR target/42172
31         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
32         Take its cost into account if nonnull.
33         (insn_a_feeds_b): New static function.
34         (combine_instructions): Look for four-insn combinations.
35         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
36         them into account when computing all_adjacent and looking for other
37         uses.
38         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
39         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
40         (try_combine): New arg I0.  Handle four-insn combinations.
41         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
42         like ELIM_I1.
43
44 2010-08-19  Jason Merrill  <jason@redhat.com>
45
46         PR c++/45307
47         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
48         if ctor is empty.
49         (gimplify_modify_expr_rhs): Adjust.
50
51 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
52
53         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
54         bitmap_bit_p.
55         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
56         * dominance.c (iterate_fix_dominators): Likewise.
57         * dse.c (set_usage_bits): Likewise.
58         (set_position_unneeded, record_store): Likewise.
59         * gimple-fold.c (get_maxval_strlen): Likewise.
60         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
61         * ipa-inline.c (update_caller_keys): Likewise.
62         * ipa-split.c (verify_non_ssa_vars): Likewise.
63         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
64         (close_type_exposed_parameter, close_type_full_escape): Likewise.
65         (close_addressof_down): Likewise.
66         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
67         (setup_allocno_left_conflicts_size): Likewise.
68         (ira_reassign_conflict_allocnos): Likewise.
69         (ira_reassign_pseudos): Likewise.
70         * ira-emit.c (change_loop): Likewise.
71         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
72         * lto-streamer-out.c (write_symbol): Likewise.
73         * predict.c (expr_expected_value_1): Likewise.
74         * regstat.c (regstat_bb_compute_ri): Likewise.
75         * sel-sched.c (create_block_for_bookkeeping): Likewise.
76         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
77         * stmt.c (expand_case): Likewise.
78         * tree-eh.c (emit_eh_dispatch): Likewise.
79         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
80         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
81         Likewise.
82         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
83         (rdg_build_components): Likewise.
84         * tree-object-size.c (collect_object_sizes_for): Likewise.
85         * tree-sra.c (convert_callers): Likewise.
86         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
87         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
88         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
89
90 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
91
92         * config/i386/i386.md (*lea_1): Use P mode iterator.
93         (lea add splitter): Also handle DImode operands.
94         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
95         predicate.  Do not use ix86_lea_for_add_ok.
96         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
97         (lea ashift splitter): Also handle DImode operands.
98         (DImode lea ashift splitter): Remove splitter.
99
100 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
101
102         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
103         ix86_binary_operator_ok.
104
105 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
106
107         PR rtl-optimization/44691
108         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
109         is not a register.
110
111 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
112
113         PR target/45070
114         * config/arm/arm.c (arm_output_epilogue): Ensure that return
115          value of size 1-3 is handled correctly.
116
117 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
118
119         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
120         type for the conditional has wide enough range.
121
122 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
123
124         PR target/45327
125         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
126         ix86_binary_operator_ok.
127
128 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
129
130         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
131         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
132         code to output insn mnemonic.  Fix comment.
133         (*addsi_1_zext): Add r-r-0 alternative 1.
134         <TYPE_LEA>: Split insn to lea.
135         <default>: Handle alternative 1.
136         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
137         multi-level if_then_else RTX to set "type" attribute.
138         <default>: Handle alternative 2.
139         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
140         Use cond RTX instead of multi-level if_then_else RTX to set
141         "type" attribute.
142         <default>: Handle alternatives 2 and 4.
143         (lea splitters): Update calls to ix86_lea_for_add_ok.
144
145         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
146         argument.
147         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
148
149 2010-08-18  Richard Guenther  <rguenther@suse.de>
150
151         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
152         use operand helpers.
153
154 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
155
156         PR middle-end/45292
157         * optabs.c (expand_bool_compare_and_swap): Expand pending
158         pops before trying the optab.
159
160 2010-08-18  Yao Qi  <yao@codesourcery.com>
161
162         PR target/45094
163         * config/arm/arm.c (output_move_double): Fix typo generating
164         instructions ('ldr'->'str').
165
166 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
167
168         PR rtl-optimization/42575
169         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
170         live ranges.
171
172 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
173
174         * config/arm/arm-protos.h (arm_expand_sync): New.
175         (arm_output_memory_barrier, arm_output_sync_insn): New.
176         (arm_sync_loop_insns): New.
177         * config/arm/arm.c (FL_ARCH7): New.
178         (FL_FOR_ARCH7): Include FL_ARCH7.
179         (arm_arch7): New.
180         (arm_print_operand): Support %C markup.
181         (arm_legitimize_sync_memory): New.
182         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
183         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
184         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
185         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
186         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
187         (arm_process_output_sync_insn, arm_output_sync_insn): New.
188         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
189         * config/arm/arm.h (struct arm_sync_generator): New.
190         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
191         (TARGET_HAVE_MEMORY_BARRIER): New.
192         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
193         * config/arm/arm.md: Include sync.md.
194         (UNSPEC_MEMORY_BARRIER): New.
195         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
196         (VUNSPEC_SYNC_OP):New.
197         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
198         (sync_result, sync_memory, sync_required_value): New attributes.
199         (sync_new_value, sync_t1, sync_t2): Likewise.
200         (sync_release_barrier, sync_op): Likewise.
201         (length): Add logic to length attribute defintion to call
202         arm_sync_loop_insns when appropriate.
203         * config/arm/sync.md: New file.
204
205 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
206
207         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
208         ENABLE_TREE_CHECKING.
209         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
210         and GCC >= 4.3.
211
212 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
213
214         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
215         or optimizing for size, always avoid lea if possible.
216
217         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
218
219 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
220
221         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
222         Dunmmy function with NULL return unless the target is
223         OSX >= 10.6 (Darwin10).
224
225 2010-08-17  Jack Howarth <howarth@bromo.med.uc.edu>
226
227         * gcc.c (spec_function): Add remove-outfile.
228         (remove_outfile_spec_function): New function.
229         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
230         * invoke.texi (replace-outfile): Document.
231
232 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
233
234         PR target/45296
235         * reginfo.c (globalize_reg): Reject stack registers.
236
237 2010-08-17  Richard Guenther  <rguenther@suse.de>
238
239         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
240         list of conditional equivalences.
241         (free_all_edge_infos): Adjust.
242         (record_equivalences_from_incoming_edge): Likewise.
243         (record_cond): Likewise.
244         (build_and_record_new_cond): Likewise.
245         (record_conditions): Likewise.
246         (dom_opt_leave_block): Likewise.
247
248 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
249
250         * doc/invoke.texi (ms-extension): Add documentation.
251
252 2010-08-17  Richard Guenther  <rguenther@suse.de>
253
254         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
255
256 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
257
258         PR c/40563
259         * c-decl.c (diagnose_uninitialized_cst_member): New function.
260         (finish_decl): Use it to issue a -Wc++-compat warning about
261         uninitialized const field in struct or union.
262
263         (finish_struct): Use strip_array_types.
264
265 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
266
267         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
268         functions.
269         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
270         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
271         call block_nreverse here.
272         (blocks_nreverse): Rename decl temporary to block.
273
274 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
275
276         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
277         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
278         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
279         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
280         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
281         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
282         thumb2_iorsi3): Delete.
283         (orsi_notsi_si): No longer a named pattern.
284         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
285         * config/arm/predicates.md (shift_amount_operand): New.
286         (mult_operator): New.
287         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
288         attr enabled): New.
289         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
290         arch matches t2.
291         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
292         (not_shiftsi_compare0): Likewise, renamed from
293         arm_notsi_shiftsi_compare0.
294         (not_shiftsi_compare0_scratch): Likweise, renamed from
295         arm_notsi_shiftsi_compare0_scratch.
296         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
297         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
298         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
299         so that the register alternative is disabled when the shift_operator
300         is MULT.  Use "M" as the constraint for constants.
301         (arith_shiftsi splitter): Enable for TARGET_32BIT.
302         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
303         constraint for constants.
304         (arith_shiftsi_compare0_scratch): Likewise.
305         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
306         Handle Thumb2 alternative.
307
308 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
309
310         * doc/options.texi (NoDriverArg): Document.
311         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
312         -MDX and -MMDX.
313         * opt-functions.awk (switch_flags): Handle NoDriverArg.
314         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
315         marking for CL_NO_DRIVER_ARG options when in the driver.
316         * opts.h (CL_NO_DRIVER_ARG): Define.
317         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
318         CL_COMMON): Update values.
319
320 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
321
322         * common.opt: Add driver options.
323         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
324         * doc/options.texi (Driver, RejectDriver): Document.
325         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
326         print_prog_name, print_multi_directory, print_sysroot,
327         print_multi_os_directory, print_multi_lib,
328         print_sysroot_headers_suffix, report_times, combine_flag,
329         use_pipes, wrapper_string): Remove.
330         (save_switch, driver_unknown_option_callback,
331         driver_wrong_lang_callback, driver_post_handling_callback,
332         driver_handle_option): New.
333         (spec_lang, last_language_n_infiles): Make file-scope static
334         instead of local to process_command.
335         (process_command): Use decode_cmdline_options_to_array and
336         read_cmdline_option for option processing.  Compute have_c in
337         prescan of decoded options.
338         * opt-functions.awk (switch_flags): Handle Driver and
339         RejectDriver.
340         (var_type, var_type_struct): Handle Separate options as generating
341         const char * variables.
342         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
343         CL_TARGET to be passed by caller if required.
344         (decode_cmdline_options_to_array): Update comment.
345         * opts.c (complain_wrong_lang): Handle options only valid for the
346         driver.
347         (decode_options): Update call to decode_cmdline_options_to_array.
348         (print_filtered_help): Ignore driver-only options.
349         (print_specific_help): Ignore CL_DRIVER.
350         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
351         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
352         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
353         Update values.
354
355 2010-08-16  Richard Guenther  <rguenther@suse.de>
356
357         * tree-cfg.c (verify_types_in_gimple_reference): Verify
358         TARGET_MEM_REF a bit.
359         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
360         (create_mem_ref_raw): Always create TMR_OFFSET, store the
361         alias pointer type via it.
362         (copy_mem_ref_info): Adjust.
363         (maybe_fold_tmr): Likewise.
364         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
365         (reference_alias_ptr_type): Likewise.
366         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
367         adjust documentation of TMR_OFFSET operand.
368         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
369         use the alias pointer type.
370         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
371         initialize mem attrs but the TMR itself.
372         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
373         similar to MEM_REF.
374         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
375         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
376         (unshare_and_remove_ssa_names): Likewise.
377         (copy_ref_info): Adjust.
378         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
379         TARGET_MEM_REF case.
380         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
381         at TMR_ORIGINAL.
382         * tree.h (TMR_ORIGINAL): Remove.
383         * gimple.c (get_base_address): For TARGET_MEM_REF with a
384         symbol return that.
385         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
386         with a symbol.
387         (get_addr_base_and_unit_offset): Likewise.
388         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
389         TARGET_MEM_REFs.
390         (indirect_ref_may_alias_decl_p): Likewise.
391         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
392
393 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
394
395         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
396         with GCC version 4.6, the default setting (when not optimizing
397         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
398         been changed to -fomit-frame-pointer.
399
400 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
401
402         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
403         Darwin10.  Do not link libgcc.a for Darwin >= 9.
404
405 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
406
407         * doc/invoke.texi (Warning Options): Fix terminology and markup
408         in the description of how unknown warning options are handled.
409
410 2010-08-15  Ira Rosen  <irar@il.ibm.com>
411
412         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
413         in basic blocks.
414         (vect_supportable_dr_alignment): Check alignment for basic blocks.
415         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
416         data references.
417         (vect_bb_vectorization_profitable_p): New function.
418         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
419         check if it's worthwhile to vectorize the basic block.
420
421 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
422
423         * reload.h (register_move_cost, memory_move_secondary_cost,
424         secondary_reload_class): Adjust prototype.
425         * rtl.h (reg_class_subset_p): Adjust prototype.
426         * reload.c (secondary_reload_class): Change arguments type from
427         enum reg_class to reg_class_t. Change result type to reg_class_t.
428         * reginfo.c (register_move_cost, reg_class_subset_p): Change
429         arguments type from enum reg_class to reg_class_t.
430         (memory_move_secondary_cost): Change arguments type from
431         enum reg_class to reg_class_t. Change type of saved_flags to
432         reg_class_t.
433
434         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
435         Remove macros.
436         (mips_cost): Remove.
437         (struct mips_rtx_cost_data): Moved to mips.c.
438         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
439         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
440         (mips_cost): Make static.
441         (mips_canonicalize_move_class): Change argument type to reg_class_t.
442         Change result type to reg_class_t.
443         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
444         type from enum reg_class to reg_class_t.
445         (mips_register_move_cost): Make static. Change arguments
446         type from enum reg_class to reg_class_t.
447         (mips_memory_move_cost): New function.
448         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
449
450 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
451
452         PR rtl-optimization/43358
453         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
454         of a single hard register, using simplify_subreg_regno to decide
455         what that register should be.
456
457 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
458
459         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
460         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
461         (loongson_pmull<V_suffix>): Rename to...
462         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
463
464 2010-08-13  Jack Howarth <howarth@bromo.med.uc.edu>
465
466         * gcc/configure.ac: Enable -fomit-frame-pointer on darwin
467         which support dwarf2.
468         * config/i386/i386.c (override_options): Same.
469
470 2010-08-13  Jie Zhang  <jie@codesourcery.com>
471
472         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
473
474 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
475
476         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
477         -MMD.
478
479 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
480
481         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
482         up dot_prod pattern searching if a stmt is outside the loop.
483
484 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
485             Uros Bizjak  <ubizjak@gmail.com>
486
487         * config.gcc: Handle --enable-frame-pointer.
488
489         * configure.ac: Add --enable-frame-pointer.
490         * configure: Regenerated.
491
492         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
493         (override_options): If not configured with --enable-frame-pointer,
494         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
495         optimizing for size), -fasynchronous-unwind-tables and
496         -maccumulate-outgoing-args by default.
497
498 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
499
500         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
501
502         PR middle-end/45262
503         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
504         -a overflows.  Normalize the range.
505
506 2010-08-12  Richard Guenther  <rguenther@suse.de>
507
508         PR tree-optimization/45232
509         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
510         for types with undefined overflow.
511         (reassociate_bb): Allow re-associating of bit and min/max
512         operations for types with undefined overflow.
513         * tree-ssa-forwprop.c (associate_plusminus): New function.
514         (tree_ssa_forward_propagate_single_use_vars): Call it.
515
516 2010-08-12  Richard Guenther  <rguenther@suse.de>
517
518         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
519         * tree-ssa-alias.c (get_ptr_info): Move ...
520         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
521         align and misalign fields conservatively.
522         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
523         derive alignment information.
524         (evaluate_stmt): Derive alignment information from memory
525         allocation functions.
526         * tree.h (get_pointer_alignment): Make unsigned.
527         * builtins.c (get_object_alignment): Use alignment information we
528         have computed for pointers.
529         (get_pointer_alignment): Likewise.  Make conservative, return
530         and unsigned value.
531         (expand_builtin_strlen): Adjust.
532         (expand_builtin_memcmp): Likewise.
533         (expand_builtin_strcmp): Likewise.
534         (expand_builtin_strncmp): Likewise.
535         (get_builtin_sync_mem): Use at least mode alignment.
536         (fold_builtin_memset): Adjust.
537         (fold_builtin_memory_op): Likewise.
538         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
539         information also dump pointer alignment knowledge.
540         (dump_gimple_stmt): Likewise.
541
542 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
543
544         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
545         (EMPTY_FIELD_BOUNDARY): Remove.
546         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
547
548 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
549
550         PR debug/45259
551         * caller-save.c (save_call_clobbered_regs): Only swap notes with
552         DEBUG_INSNs if n_regs_saved.
553
554 2010-08-12  Wei Guozhi  <carrot@google.com>
555
556         PR target/44999
557         * config/arm/arm.md (andsi3): Change to zero extension if possible.
558         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
559
560 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
561
562         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
563
564         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
565
566 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
567
568         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
569         the case removed in the previous patch, when the only phi argument
570         is defined in the same loop as the phi node itself.  Handle it
571         separately from the invariant case by both propagating it outside
572         the region and replacing the phi node with an assign.
573
574 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
575
576         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
577         constant phi nodes with one argument are is_gimple_min_invariant
578         and SSA_NAME_IS_DEFAULT_DEF.
579
580 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
581
582         * graphite-cloog-util.c (oppose_constraint):
583         Extend loop counter's value range (CLOOG_ORG).
584         (cloog_matrix_to_ppl_constraint): Same.
585         (new_Constraint_System_from_Cloog_matrix): Same.
586         * graphite-cloog-compat.h (matrix_num_type): New.
587
588 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
589
590         * graphite.c (graphite_initialize): Do not initialize
591         CLooG and initialize the Parma Polyhedra Library
592         manually when using CLOOG_ORG.
593         (graphite_finalize): Do not finalize CLooG and finalize
594         the Parma Polyhedra Library manually when using CLOOG_ORG.
595         * graphite-cloog-compat.h (cloog_initialize): Hide function
596         when using CLOOG_ORG.
597         (cloog_finalize): Same.
598
599 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
600
601         * graphite-clast-to-gimple.c (free_scattering): Change
602         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
603         (CLOOG_ORG).
604         (build_cloog_prog): Same.
605         * graphite-cloog-compat.h (cloog_domain): Removed.
606         (cloog_scattering): New.
607         (cloog_set_domain): Removed.
608         (cloog_set_scattering): New.
609         (cloog_next_domain): Removed.
610         (cloog_next_scattering): New.
611         (cloog_set_next_domain): Removed.
612         (cloog_set_next_scattering): New.
613         (CloogScatteringList): New.
614         (CloogScattering): New.
615         (cloog_scattering_free): New.
616         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
617         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
618         New.
619
620 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
621
622         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
623         CloogState.
624         (set_cloog_options): Same.
625         (print_clast_stmt): Same.
626         (scop_to_clast): Same.
627         (print_generated_program): Same.
628         (gloog): Same.
629         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
630         (scop_to_clast): Extend with CloogState.
631         * graphite-cloog-util.c: Include graphite-cloog-compat.h
632         (new_Cloog_Domain_from_ppl_Polyhedron):
633         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
634         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
635         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
636         * graphite-cloog-util.h (build_cloog_prog): Same.
637         * graphite-cloog-copat.h (build_cloog_prog): New.
638         (CloogState): New.
639         (cloog_state_malloc): New.
640         (cloog_state_free): New.
641         (cloog_loop_malloc): New.
642         (cloog_options_malloc): New.
643         (cloog_statement_alloc): New.
644         (cloog_domain_from_cloog_matrix): New.
645         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
646         (new_Cloog_Domain_from_ppl_Polyhedron): New.
647
648 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
649
650         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
651         type of NAME now depends on used CLooG version.
652         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
653         (gcc_type_for_clast_expr): Same.
654         (print_clast_stmt): Replace pprint with clast_pprint.
655         * graphite-cloog-compat.h: Provide compatibility macros for
656         CLooG Legacy.
657         (clast_name_p): New.
658         (clast_expr_term): New.
659         (clast_expr_red): New.
660         (clast_expr_bin): New.
661         (clast_pprint): New.
662
663 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
664
665         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
666         compatible to newer CLooG releases (CLOOG_ORG).
667         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
668         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
669         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
670         (build_cloog_prog) : New.
671         (cloog_program_extract_scalars): New.
672         (cloog_program_scatter): New.
673
674 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
675
676         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
677         conditionally (CLOOG_ORG).
678         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
679         (cloog_statement_usr): New.
680         (cloog_domain): Same.
681         (cloog_set_domain): Same.
682         (cloog_next_domain): Same.
683         (cloog_set_next_domain): Same.
684         (cloog_program_nb_scattdims): Same.
685         (cloog_program_set_nb_scattdims): Same.
686         (cloog_program_names): Same.
687         (cloog_program_set_names): Same.
688         (cloog_program_set_context): Same.
689         (cloog_program_set_loop): Same.
690         (cloog_program_blocklist): Same.
691         (cloog_program_set_blocklist): Same.
692         (cloog_program_scaldims): Same.
693         (cloog_program_set_scaldims): Same.
694         (cloog_names_nb_parameters): Same.
695         (cloog_names_set_nb_parameters): Same.
696         (cloog_names_parameters): Same.
697         (cloog_names_set_parameters): Same.
698         (cloog_names_set_nb_iterators): Same.
699         (cloog_names_set_iterators): Same.
700         (cloog_names_set_nb_scattering): Same.
701         (cloog_names_set_scattering): Same.
702         (cloog_statement_set_usr): Same.
703         (cloog_loop_set_next): Same.
704         (cloog_loop_set_domain): Same.
705         (cloog_loop_set_block): Same.
706         (cloog_block_list_next): Same.
707         (cloog_block_list_set_next):
708         (cloog_block_list_set_block): Same.
709
710 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
711
712         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
713         a bool.
714         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
715         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
716         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
717         when something has been changed.
718         (rewrite_commutative_reductions_out_of_ssa): Same.
719
720 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
721
722         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
723         handle the case when def is in the sese region.
724         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
725         for invariant expressions.
726         (rewrite_cross_bb_phi_deps): Removed.
727         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
728         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
729         rewrite_cross_bb_phi_deps.
730
731 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
732
733         * graphite-sese-to-poly.c
734         (rewrite_commutative_reductions_out_of_ssa_loop): Call
735         scev_analyzable_p only on is_gimple_reg
736
737 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
738
739         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
740         (rewrite_close_phi_out_of_ssa): Propagate constant values or
741         parametric expressions outside the scop region.
742         (rewrite_cross_bb_scalar_deps): Same.
743         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
744
745 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
746
747         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
748         SSA_NAME_DEF_STMT only on SSA_NAMEs.
749
750 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
751
752         * tree-scalar-evolution.c (instantiate_scev_name): Do not
753         instantiate default definitions.
754
755 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
756             Sebastian Pop  <sebastian.pop@amd.com>
757
758         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
759         (loop_exits_from_bb_p): New.
760         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
761         (loop_exits_from_bb_p): Declared.
762         * graphite-scop-detection.c (scopdet_basic_block_info): Call
763         loop_exits_to_bb_p.
764
765 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
766
767         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
768         extra parameter for the region.  Call scev_analyzable_p.
769         (rewrite_reductions_out_of_ssa): Update call to
770         rewrite_close_phi_out_of_ssa.
771         (rewrite_cross_bb_phi_deps): Same.
772         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
773         parameter for the region.  Call scev_analyzable_p.
774         (rewrite_commutative_reductions_out_of_ssa): Update call to
775         rewrite_commutative_reductions_out_of_ssa_loop.
776
777 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
778
779         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
780
781 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
782
783         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
784         SSA scalar phi nodes that can be scev_analyzable_p.
785
786 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
787
788         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
789         handle SSA_NAME_IS_DEFAULT_DEF.
790
791 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
792
793         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
794
795 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
796
797         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
798         case non close-phi nodes with one argument.
799
800 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
801
802         * sese.h (scev_analyzable_p): Scevs could be expressions without
803         chrecs and still be scev_analyzable_p.
804
805 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
806
807         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
808
809 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
810
811         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
812         * cfgloop.h (struct loop): Remove single_iv field.
813         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
814         (scop_canonicalize_loops): Removed.
815         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
816         over all the loop phi nodes in loop->header.
817         (build_poly_scop): Remove use of scop_canonicalize_loops.
818
819 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
820
821         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
822         handle GIMPLE_CALL.
823
824 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
825
826         * tree-chrec.c (chrec_apply): Should only apply to the specified
827         variable.  Also handle multivariate chains of recurrences that
828         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
829
830 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
831
832         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
833         (debug_clast_name_indexes_1): Removed.
834         (debug_clast_name_indexes): Removed.
835         (pbb_to_depth_to_oldiv): Removed.
836         (build_iv_mapping): Replace the use of rename_map with iv_map.
837         (translate_clast_user): Remove uses of rename_map.  Allocate and
838         free iv_map.
839         (translate_clast_for_loop): Remove uses of rename_map.
840         (translate_clast_for): Same.
841         (translate_clast_guard): Same.
842         (translate_clast): Same.
843         (gloog): Same.
844         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
845         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
846         * sese.c (set_rename): Now static.
847         (rename_variables_in_stmt): Removed.
848         (rename_uses): New.
849         (is_parameter): Removed.
850         (is_iv): Removed.
851         (expand_scalar_variables_call): Removed.
852         (expand_scalar_variables_ssa_name): Removed.
853         (expand_scalar_variables_expr): Removed.
854         (expand_scalar_variables_stmt): Removed.
855         (expand_scalar_variables): Removed.
856         (rename_variables): Removed.
857         (remove_condition): Removed.
858         (get_true_edge_from_guard_bb): Removed.
859         (get_false_edge_from_guard_bb): Removed.
860         (struct igp): Removed.
861         (default_before_guard): Removed.
862         (convert_for_phi_arg): Removed.
863         (add_guard_exit_phis): Removed.
864         (insert_guard_phis): Removed.
865         (graphite_copy_stmts_from_block): Now also uses iv_map and a
866         region.  Do not copy conditions.  Do not copy induction variables.
867         Call rename_uses.
868         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
869         the translated statement.  Use the iv_map for the induction
870         variable renaming.
871         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
872         (set_rename): Removed declaration.
873         (scev_analyzable_p): ...here.
874         * tree-chrec.c (chrec_apply_map): New.
875         * tree-chrec.h (chrec_apply_map): Declared.
876
877 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
878
879         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
880         insert_loop_close_phis.
881         * sese.c (name_defined_in_loop_p): Removed.
882         (expr_defined_in_loop_p): Removed.
883         (alive_after_loop): Removed.
884         (close_phi_not_yet_inserted_p): Removed.
885         (struct alep): Removed.
886         (add_loop_exit_phis): Removed.
887         (insert_loop_close_phis): Removed.
888
889 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
890
891         * graphite-cloog-util.c
892         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
893         * graphite-poly.c
894         (psct_scattering_dim_for_loop_depth): Same.
895
896 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
897
898         * graphite-cloog-util.h: Added cloog.h.
899         * graphite-blocking.c: Removed cloog.h.
900         * graphite-dependences.c: Same.
901         * graphite-interchange.c: Same.
902         * graphite-poly.c: Same.
903         * graphite-ppl.c: Same.
904         * graphite-scop-detection.c: Same.
905         * graphite-sese-to-poly.c:
906         Removed cloog.h.
907         Removed graphite-clast-to-gimple.h.
908         (check_poly_representation): Removed (unused).
909         * graphite-sese-to-poly.h
910         (check_poly_representation): Removed (unused).
911
912 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
913
914         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
915         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
916         (graphite-cloog-util.o): New.
917         (graphite-ppl.o): Added graphite-cloog-util.h.
918         * graphite-clast-to-gimple.c:
919         Added graphite-cloog-util.h to include statements.
920         * graphite-cloog-util.c: New.
921         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
922         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
923         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
924         (new_C_Polyhedron_from_Cloog_Matrix): Same.
925         (insert_constraint_into_matrix): Same.
926         (ppl_Constrain_System_number_of_constraints): Same.
927         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
928         (oppose_constraint): Same.
929         (cloog_matrix_to_ppl_constraint): Same.
930         (new_Constraint_System_from_Cloog_Matrix): Same.
931         * graphite-cloog-util.h: New.
932         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
933         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
934         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
935         (new_C_Polyhedron_from_Cloog_Matrix): Same.
936         (insert_constraint_into_matrix): Same.
937         * graphite-ppl.c:
938         Added graphite-cloog-util.h to include statements.
939         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
940         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
941         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
942         (new_C_Polyhedron_from_Cloog_Matrix): Same.
943         (insert_constraint_into_matrix): Same.
944         (ppl_Constrain_System_number_of_constraints): Same.
945         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
946         (oppose_constraint): Same.
947         (cloog_matrix_to_ppl_constraint): Same.
948         (new_Constraint_System_from_Cloog_Matrix): Same.
949         * graphite-ppl.h:
950         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
951         graphite-cloog-util.h.
952         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
953         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
954         (new_C_Polyhedron_from_Cloog_Matrix): Same.
955         (insert_constraint_into_matrix): Same.
956
957 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
958
959         * graphite-clast-to-gimple.c
960         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
961         (precision_for_interval): Same.
962         (gcc_type_for_interval): Same.
963         (compute_type_for_level): Same.
964         * graphite-interchange.c
965         (lst_interchange_profitable_p): Same.
966         * graphite-poly.c
967         (psct_scattering_dim_for_loop_depth): Same.
968         * graphite-ppl.c
969         (ppl_max_for_le_pointset): Same.
970         (ppl_min_for_le_pointset): Same.
971
972 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
973
974         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
975         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
976
977 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
978
979         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
980         rewrite_close_phi_out_of_ssa.
981
982 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
983
984         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
985
986 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
987
988         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
989         rename_map.
990         * sese.c (debug_rename_map): Same.
991         (get_rename): Same.
992         (set_rename): Same.
993         (rename_variables_in_stmt): Same.
994         (expand_scalar_variables_call): Same.
995         (expand_scalar_variables_ssa_name): Same.
996         (expand_scalar_variables_expr): Same.
997         (expand_scalar_variables_stmt): Same.
998         (expand_scalar_variables): Same.
999         (rename_variables): Same.
1000         (graphite_copy_stmts_from_block): Same.
1001         (copy_bb_and_scalar_dependences): Same.
1002
1003 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1004
1005         * graphite-clast-to-gimple.c (copy_renames): Removed.
1006         (translate_clast_for): Do not call copy_renames.
1007         (translate_clast_guard): Same.
1008
1009 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1010
1011         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
1012         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
1013         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
1014         before rewrite_cross_bb_scalar_deps.
1015
1016 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1017
1018         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
1019         Early return in when flag_associative_math is not set.
1020
1021 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1022
1023         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
1024         of SSA copies on edges except for loop->latch.
1025
1026 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1027
1028         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
1029         Split out of rewrite_reductions_out_of_ssa.
1030         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
1031         Declared.
1032         * graphite.c (graphite_transform_loops): Call it.
1033
1034 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1035
1036         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
1037
1038 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
1039
1040         * dbgcnt.def (graphite_scop): New counter.
1041         * graphite.c: Include dbgcnt.h.
1042         (graphite_transform_loops): Use new counter to limit transformations.
1043         * Makefile.in (graphite.o): Depend on DBGCNT_H.
1044
1045 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1046
1047         * passes.c (init_optimization_passes): Add pass_graphite.
1048         Schedule a pass_copy_prop before pass_graphite_transforms.
1049         * timevar.def (TV_GRAPHITE): Declared.
1050         * tree-pass.h (pass_graphite): Declared.
1051         * tree-ssa-loop.c (pass_graphite): New.
1052
1053 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1054
1055         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
1056         Remove calls to rename_nb_iterations and rename_sese_parameters.
1057         * graphite-clast-to-gimple.h (gloog): Update declaration.
1058         * graphite.c (graphite_transform_loops): Update call to gloog.
1059         * sese.c (rename_variables_in_expr): Removed.
1060         (rename_nb_iterations): Removed.
1061         (rename_sese_parameters): Removed.
1062         * sese.h (rename_nb_iterations): Removed.
1063         (rename_sese_parameters): Removed.
1064
1065 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1066
1067         * graphite-clast-to-gimple.c (gloog): Remove call to
1068         sese_adjust_liveout_phis.
1069         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
1070         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
1071         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
1072         rewrite_phi_out_of_ssa.
1073         * sese.c (get_vdef_before_sese): Removed.
1074         (sese_adjust_vphi): Removed.
1075         (sese_adjust_liveout_phis): Removed.
1076         * sese.h (sese_adjust_liveout_phis): Removed.
1077
1078 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1079
1080         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
1081         argument for the place after which to insert the out of SSA copy.
1082         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
1083         (rewrite_phi_out_of_ssa): Same.
1084         (rewrite_cross_bb_scalar_deps): Same.
1085         (insert_copyout): Removed.
1086         (insert_copyin): Removed.
1087         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
1088         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
1089         insert_copyin.
1090
1091 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1092
1093         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
1094         (rewrite_reductions_out_of_ssa): Same.
1095         (rewrite_commutative_reductions_out_of_ssa): Same.
1096         (build_poly_scop): Do not call these functions.
1097         * graphite-sese-to-poly.h (build_poly_scop): Declared.
1098         (rewrite_reductions_out_of_ssa): Declared.
1099         (rewrite_commutative_reductions_out_of_ssa): Declared.
1100         * graphite.c (graphite_transform_loops): Call on every scop
1101         rewrite_commutative_reductions_out_of_ssa before calling
1102         rewrite_reductions_out_of_ssa and build_scop_bbs.
1103
1104 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1105
1106         * graphite-dependences.c (dot_deps): Make system call to dotty run
1107         in background.
1108         (dot_deps_stmt): Same.
1109         * graphite-poly.c (dot_lst): Same.
1110
1111 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1112
1113         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
1114         phi_arg_in_outermost_loop.
1115         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
1116         (remove_invariant_phi): Same.
1117
1118 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
1119
1120         * target.def (output_addr_const_extra): New hook.
1121         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
1122         * doc/tm.texi: Regenerate.
1123         * targhooks.c (default_asm_output_addr_const_extra): New function.
1124         * targhooks.h (default_asm_output_addr_const_extra): Declare.
1125         * final.c: (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
1126         target hook.
1127
1128         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1129         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
1130         * config/i386/i386.h (output_addr_const_extra): Rename to...
1131         (i386_asm_output_addr_const_extra): ...this. Make static.
1132         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1133
1134 2010-08-11  Richard Henderson  <rth@redhat.com>
1135
1136         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
1137
1138 2010-08-11  Nick Clifton  <nickc@redhat.com>
1139
1140         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
1141         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
1142         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
1143         stormy16-lib2-cmpsi.c.
1144
1145         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
1146         -O2.
1147
1148 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
1149
1150         * opts.h (struct cl_option_handler_func): Make handler take
1151         cl_decoded_option structure as parameter, not individual elements.
1152         (struct cl_option_handlers): Make callbacks take cl_decoded_option
1153         structure as parameter, not individual elements.
1154         (handle_option): Take cl_decoded_option structure as parameter,
1155         not individual elements.
1156         (handle_generated_option): Declare.
1157         * opts-common.c (handle_option): Take cl_decoded_option structure
1158         as parameter, not individual elements.  Update calls to callback
1159         and handler functions.
1160         (handle_generated_option): New.
1161         (read_cmdline_option): Update calls to callback functions and
1162         handle_option.
1163         * opts.c (common_handle_option, complain_wrong_lang,
1164         unknown_option_callback, post_handling_callback,
1165         lang_handle_option, target_handle_option): Take cl_decoded_option
1166         structure as parameter, not individual elements.
1167         (lang_handle_option, target_handle_option, common_handle_option):
1168         Assert option has at most one argument.
1169         (enable_warning_as_error): Call handle_generated_option instead of
1170         handle_option.  Do not pass -Werror argument as argument of
1171         generated option.
1172
1173 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1174
1175         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
1176         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
1177         (SUBWORD_BOOL_CAS): Likewise.
1178         (SUBWORD_SYNC_OP): Likewise.
1179         (SUBWORD_TEST_AND_SET): Likewise.
1180         (FETCH_AND_OP_WORD): Parenthesise INF_OP
1181         (SUBWORD_SYNC_OP): Likewise.
1182         (OP_AND_FETCH_WORD): Likewise.
1183
1184 2010-08-10  Xinliang David Li  <davidxl@google.com>
1185
1186         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
1187         compute max/min offset in address.
1188
1189 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
1190
1191         * ira-live.c: Include sbitmap.h.
1192         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
1193         Compress live ranges even more.
1194
1195 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1196
1197         * coverage.c (ctr_labels): Delete.
1198
1199 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
1200
1201         PR bootstrap/45177
1202         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
1203         test here from arm_gen_load_multiple_1.
1204         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
1205         multiple_operation_profitable_p.
1206
1207 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1208
1209         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
1210         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
1211
1212 2010-08-10  Richard Henderson  <rth@redhat.com>
1213
1214         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
1215         after saving registers.  Assert that SSE registers are only saved
1216         with a sufficiently aligned frame.
1217         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
1218         remove stack_realign_fp handling.
1219         (ix86_expand_prologue): Save int registers before stack_realign_fp,
1220         and do not mark the stack alignment as frame related.
1221         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
1222
1223         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
1224         saves when re-aligning the stack.
1225
1226 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1227
1228         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
1229         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
1230         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
1231
1232 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1233
1234         * dwarf2out.c (struct die_struct): Move die_tag to the end.
1235
1236 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
1237
1238         * config/arm/iterators.md: New file.
1239         * config/arm/arm.md: Include iterators.md.
1240         (QHSI): Move to new file.
1241         (LTUGEU, cnb, optab, ior_xor): Likewise.
1242         * config/arm/iwmmxt.md (VMMX): Move to new file.
1243         (VSHFT, MMX_char): Likewise.
1244         * config/arm/neon.md (VD): Move to new file.
1245         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
1246         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
1247         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
1248         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
1249         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
1250         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
1251         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
1252         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
1253         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
1254         (Is_d_reg, V_mode_nunits): Likewise.
1255         * config/arm/vec-common.md (VALL): Move to new file.
1256         (VALLW, VINT, VINTW): Likewise.
1257
1258 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
1259
1260         PR middle-end/45182
1261         * combine.c (make_compound_operation): Don't try to convert
1262         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
1263
1264 2010-08-10  Richard Guenther  <rguenther@suse.de>
1265
1266         * tree.h (get_object_alignment): Adjust prototype.
1267         * builtins.c (get_object_alignment): Return unsigned int,
1268         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
1269         and TARGET_MEM_REF properly.
1270         (get_pointer_alignment): Adjust.
1271         * emit-rtl.c (get_mem_align_offset): Adjust comment.
1272         (set_mem_attributes_minus_bitpos): Adjust.
1273         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
1274
1275 2010-08-10  Richard Guenther  <rguenther@suse.de>
1276
1277         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
1278         (copy_prop_visit_assignment): Simplify.
1279         (copy_prop_visit_stmt): Also visit assignments from
1280         constants.
1281         (copy_prop_visit_phi_node): Use operand_equal_p.
1282
1283 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
1284
1285         * ipa-split.c (find_split_points): Free stack.
1286
1287 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
1288
1289         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
1290         * tree.c (tree_node_kind): Delete corresponding entries.
1291
1292 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1293
1294         * alias.c (may_alias_p): Remove unused ret.
1295
1296 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
1297
1298         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
1299         alias_sets_conflict_p.
1300         (walk_mems_1): Moved from alias.c.
1301         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
1302         in alias.c.
1303         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
1304         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
1305         * alias.c (walk_mems_2): Moved to ddg.c.
1306         (walk_mems_1): Ditto.
1307         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
1308         to ddg.c.
1309         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
1310         disambiguation.
1311         *(may_alias_p): New function to check whether two memory expression
1312         may alias or not. Currently used in buidling inter-iteration memory
1313         dependence.
1314         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
1315         (insn_alias_sets_conflict_p): Removed
1316         *rtl.h (may_alias_p): New function prototype.
1317
1318 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
1319
1320         * tree.c (nreverse): Assert that we don't have a BLOCK.
1321
1322 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
1323
1324         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
1325         * config/arm/arm.c (arm_get_pcs_model): Likewise.
1326         * config/avr/avr.c (init_cumulative_args): Likewise.
1327         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1328         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1329         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
1330         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
1331         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
1332         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1333         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
1334         * dwarf2out.c (gen_subprogram_die): Likewise.
1335         * function.c (allocate_struct_function): Likewise.
1336         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
1337         (deserves_ellipsis): Delete.
1338
1339 2010-08-09  Richard Guenther  <rguenther@suse.de>
1340
1341         * tree-ssa-copy.c (cached_last_copy_of): Remove.
1342         (valueize_val): New function.
1343         (get_last_copy_of): Remove.
1344         (set_copy_of_val): Simplify.
1345         (dump_copy_of): Likewise.
1346         (copy_prop_visit_cond_stmt): Use valueize_val.
1347         (copy_prop_visit_phi_node): Properly handle unvisited names.
1348         Drop code managing copy-of chains.
1349         (init_copy_prop): Adjust.
1350         (fini_copy_prop): Likewise.
1351         (execute_copy_prop): Remove obsolete comment.
1352
1353 2010-08-09  Richard Guenther  <rguenther@suse.de>
1354
1355         PR middle-end/44632
1356         * function.c (gimplify_parameters): Do not clear addressable
1357         bit of the original parameter.
1358
1359 2010-08-09  Richard Guenther  <rguenther@suse.de>
1360
1361         PR middle-end/45212
1362         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
1363         alignment from MEM_REF offset only if we took it from the
1364         base object.
1365
1366 2010-08-09  Eric Fisher <joefoxreal@gmail.com>
1367
1368         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
1369
1370 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
1371
1372         * c-tree.h (build_arg_info): Declare.
1373         * c-decl.c (build_arg_info): Define.
1374         (get_parm_info): Call it.  Delete initialization code.
1375         * c-parser.c (c_parser_parms_declarator): Likewise.
1376         (c_parser_parms_list_declaractor): Likewise.
1377
1378 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
1379
1380         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
1381         (struct c_arg_info): Change type of tags field.
1382         * c-decl.c (grokdeclarator): Update for changed type of tags field.
1383         (get_parm_info): Likewise.
1384         (store_parm_decls_newstyle): Likewise.
1385
1386 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
1387
1388         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
1389         (branch_island_list): Delete.
1390         (branch_islands): Declare.
1391         (add_compiler_branch_island): Adjust for branch_islands instead of
1392         branch_island_list.
1393         (macho_branch_islands): Likewise.
1394         (no_previous_def): Likewise.
1395         (get_prev_label): Likewise.
1396
1397 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1398
1399         PR boehm-gc/34544
1400         * gthr-posix.h (__gthread_start): Delete.
1401         (__gthread_active_init): Use pthread_default_stacksize_np instead of
1402         pthread_create to determine if hpux pthreads are active.
1403         * gthr-posix95.h (__gthread_start): Delete.
1404         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
1405
1406 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
1407
1408         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
1409         _WIN64 not expanded.
1410
1411 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
1412             H.J. Lu  <hongjiu.lu@intel.com>
1413
1414         PR target/45213
1415         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
1416         to output 32bit SFmode immediate as 8 byte sign extended value.
1417
1418 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1419
1420         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
1421         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
1422         (SUBWORD_BOOL_CAS): Likewise.
1423         (SUBWORD_SYNC_OP): Likewise.
1424         (SUBWORD_TEST_AND_SET): Likewise.
1425         (FETCH_AND_OP_WORD): Parenthesise INF_OP
1426         (SUBWORD_SYNC_OP): Likewise.
1427         (OP_AND_FETCH_WORD): Likewise.
1428
1429 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1430
1431         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
1432         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
1433         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
1434         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
1435         generic part.
1436         (cortex_a9_sched_adjust_cost): New function.
1437         (xscale_sched_adjust_cost): New function.
1438         * config/arm/arm-protos.h (struct tune_params): New field
1439         sched_adjust_cost.
1440         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
1441
1442 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
1443
1444         PR target/44942
1445         * config/sparc/sparc.c (function_arg_advance): Always take into account
1446         the padding, if any.
1447
1448 2010-08-06  Richard Guenther  <rguenther@suse.de>
1449
1450         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
1451         (dump_lattice_value): Dump it.
1452         (get_default_value): Adjust.
1453         (get_constant_value): Likewise.
1454         (set_value_varying): Likewise.
1455         (set_lattice_value): Make sure to not go up the lattice
1456         with bitwise constant values.
1457         (get_value_for_expr): Handle ADDR_EXPRs.
1458         (value_to_double_int): New function.
1459         (get_value_from_alignment): Likewise.
1460         (do_dbg_cnt): Adjust.
1461         (ccp_lattice_meet): Handle partially constant values.
1462         (bit_value_unop_1): New function.
1463         (bit_value_binop_1): Likewise.
1464         (bit_value_unop): Likewise.
1465         (bit_value_binop): Likewise.
1466         (evaluate_stmt): Track partially constant values if
1467         flag_tree_bit_ccp is set.
1468         (ccp_fold_stmt): Dump if we folded a predicate.
1469         (ccp_visit_stmt): Adjust.
1470         * common.opt (ftree-bit-ccp): New flag.
1471         * doc/invoke.texi (ftree-bit-ccp): Document.
1472         * opts.c (decode_options): Enable bit-CCP at -O1.
1473
1474 2010-08-06  Alan Modra  <amodra@gmail.com>
1475
1476         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
1477         and -mrelocatable-lib description.
1478
1479 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
1480
1481         From Martin Thuresson  <martint@google.com>
1482         * postreload.c (reload_cse_simplify_operands): Use
1483         SET_REGNO_RAW instead of SET_REGNO.
1484         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
1485         SET_REGNO.
1486         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
1487         instead of SET_REGNO.
1488         * rtl.h (SET_REGNO_RAW): New macro.
1489
1490 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
1491
1492         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
1493         computations.  Fix formatting issues.
1494         (num_sign_bit_copies1): Likewise.
1495         (canonicalize_condition): Likewise.
1496
1497 2010-08-05  Richard Henderson  <rth@redhat.com>
1498
1499         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
1500         (floor_log2): Use clz_hwi.
1501         (exact_log2): Use ctz_hwi.
1502         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
1503         * builtins.c (fold_builtin_bitop): Use them.
1504         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1505         * combine.c (get_pos_from_mask): Use ctz_hwi.
1506         * double-int.c (double_int_ctz): Likewise.
1507         * explow.c (force_reg): Likewise.
1508         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
1509
1510 2010-08-05  Richard Henderson  <rth@redhat.com>
1511
1512         PR target/45189
1513         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
1514         the alignment constant is properly sign-extended.
1515
1516 2010-08-05  Richard Guenther  <rguenther@suse.de>
1517
1518         * expr.c (store_expr): Use emit_block_move only if both
1519         source and target are MEMs.  Use store_bit_field if only
1520         the target is a MEM.
1521
1522 2010-08-05  Richard Henderson  <rth@redhat.com>
1523
1524         PR debug/45188
1525         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
1526         (INCOMING_RETURN_ADDR_RTX): Likewise.
1527         (dwarf2out_do_frame): Remove conditional compilation.
1528         (dwarf2out_frame_init): Likewise.
1529
1530 2010-08-05  Nicolas Setton  <setton@adacore.com>
1531
1532         * gcov.c (flag_display_progress): New static variable.
1533         (main): Display progress info on standard output if requested.
1534         (options): Add -d/--display-progress.
1535         (print_usage): Print them.
1536         (process_args): Handle them.
1537         * doc/gcov.texi: Document them.
1538
1539 2010-08-05  Martin Jambor  <mjambor@suse.cz>
1540
1541         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
1542         (ipcp_insert_stage): Redirect only edges not flagged with
1543         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
1544         discovered constants.
1545
1546 2010-08-05  Martin Jambor  <mjambor@suse.cz>
1547
1548         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
1549         (struct ipa_param_descriptor): New fields types and
1550         cannot_devirtualize.
1551         (ipa_param_cannot_devirtualize_p): New function.
1552         (ipa_param_types_vec_empty): Likewise.
1553         (ipa_make_edge_direct_to_target): Declare.
1554         * ipa-cp.c: Fixed first stage driver name in initial comment,
1555         described devirtualization there too.
1556         (ipcp_analyze_node): Call ipa_analyze_params_uses.
1557         (ipcp_print_all_lattices): Print devirtualization info.
1558         (ipa_set_param_cannot_devirtualize): New function.
1559         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
1560         lattice to BOTTOM.
1561         (ipcp_init_stage): Merged into...
1562         (ipcp_generate_summary): ...its caller.
1563         (ipcp_change_tops_to_bottom): Also process type lists.
1564         (ipcp_add_param_type): New function.
1565         (ipcp_copy_types): Likewise.
1566         (ipcp_propagate_types): Likewise.
1567         (ipcp_propagate_stage): Also propagate types.
1568         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
1569         Also return true if propagated types require it.
1570         (ipcp_update_callgraph): Dump redirection info.
1571         (ipcp_process_devirtualization_opportunities): New function.
1572         (ipcp_const_param_count): Include known type information.
1573         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
1574         on new node.  Fixed formatting.
1575         * ipa-prop.c (make_edge_direct_to_target): Renamed to
1576         ipa_make_edge_direct_to_target and changed all callers.  Made
1577         externally visible.
1578         (ipa_node_duplication_hook): Duplicate types vector.
1579         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
1580         redirect outgoing calls for which we can't get a decl from the
1581         statement.  Check that we can get a decl from the call statement.
1582         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
1583         ipa_analyze_params_uses only when ipa-cp is disabled.
1584         * tree-inline.c (get_indirect_callee_fndecl): Removed.
1585         (expand_call_inline): Do not call get_indirect_callee_fndecl.
1586         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
1587         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
1588
1589 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
1590
1591         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
1592         temporary. Emit move from temporary to accum, so REG_EQUAL note will
1593         be attached to this insn in correct mode.
1594
1595 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
1596
1597         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
1598         using REGNO of base_reg directly.
1599
1600 2010-08-05  Jie Zhang  <jie@codesourcery.com>
1601
1602         PR tree-optimization/45144
1603         * tree-sra.c (type_consists_of_records_p): Return false
1604         if the record contains bit-field.
1605
1606 2010-08-04  Richard Henderson  <rth@redhat.com>
1607
1608         * config/i386/i386.c (struct ix86_frame): Remove padding and
1609         to_allocate members.
1610         (ix86_compute_frame_layout): Don't store them.
1611         (ix86_can_use_return_insn_p): Use a more direct and more obviously
1612         correct condition for the position of the stack pointer.
1613         (ix86_expand_prologue): Compute remaining stack allocation based
1614         on the ultimate stack pointer offset.
1615         (ix86_expand_epilogue): Use more obvious expressions testing for
1616         the stack pointer already pointing to the saved registers.
1617
1618         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
1619         duplication deconstructing the frame pointer.  Simplify
1620         deallocation of the local stack frame.
1621
1622         * reg-notes.def (CFA_EXPRESSION): New.
1623         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
1624         (dwarf2out_frame_debug_cfa_expression): New.
1625         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
1626
1627         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
1628         * config/i386/i386.c (ix86_expand_prologue): Set it.
1629         (ix86_expand_epilogue): Clear it.
1630         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
1631         context, add REG_CFA_EXPRESSION notes.
1632
1633         * config/i386/i386.h (struct machine_frame_state): Rename from
1634         machine_cfa_state.  Add members tracking SP and FP regardless
1635         of the current CFA register.
1636         (ix86_cfa_state): Remove.
1637         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
1638         and sse_reg_save_offset members.
1639         (ix86_compute_frame_layout): Set them.
1640         (gen_push): Increment sp_offset too.
1641         (choose_baseaddr_len, choose_baseaddr): New.
1642         (ix86_emit_save_reg_using_mov): New.
1643         (ix86_emit_save_regs_using_mov): Use it.
1644         (ix86_emit_save_sse_regs_using_mov): Likewise.
1645         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
1646         compare vs the saved red_zone_offset.
1647         (pro_epilogue_adjust_stack): Adjust sp_offset.
1648         (ix86_adjust_stack_and_probe): Likewise.
1649         (ix86_expand_prologue): Set up, use, and validate the new
1650         frame_state_info members.  Use gen_frame_mem.
1651         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
1652         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
1653         new frame_state_info members.
1654         (ix86_emit_leave): Likewise.
1655         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
1656         out-of-range stack pointer offsets here.
1657         (ix86_emit_restore_sse_regs_using_mov): Likewise.
1658         (ix86_expand_epilogue): Use and validate the new frame_state_info
1659         members.  Break up and simplify the logic selecting the
1660         restore_regs_via_mov code path.  Ensure that there will be no
1661         out-of-range stack pointer offsets.
1662
1663         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
1664
1665         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
1666         argument name to reflect the expected tree; fix indentation.
1667         (ix86_asm_output_function_label): Output the entire 32-bit
1668         ms_hook here as bytes ...
1669         (ix86_expand_prologue): ... not here as insns.  Attach the
1670         unwind info for the ms_hook to a blockage insn.
1671         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
1672         (ix86_ms_bitfield_layout_p): Fix indentation.
1673         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
1674
1675         * config/i386/i386.c (ix86_using_red_zone): New.
1676         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
1677         ix86_expand_prologue, ix86_force_to_memory): Use it.
1678
1679         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
1680         saving the int registers.
1681
1682         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
1683         and DWARF2_UNWIND_INFO conditional compilation.
1684
1685 2010-08-04  Richard Henderson  <rth@redhat.com>
1686
1687         PR debug/45171
1688         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
1689         an is_naming_typedef_decl.
1690
1691 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
1692
1693         PR rtl-optimization/45162
1694         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
1695         * dce.c (word_dce_process_block): Likewise.
1696
1697 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
1698
1699         PR target/44583
1700         * config/ia64/constraints.md (Z): New.
1701         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
1702         (xfreg_or_signed_fp01_operand): New.
1703         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
1704         with fr_reg_or_signed_fp01_operand and constraint G with Z.
1705         (subsf3): Ditto.
1706         (*maddsf4): Ditto.
1707         (*msubsf4): Ditto.
1708         (adddf3): Ditto.
1709         (adddf3_trunc): Ditto.
1710         (subdf3): Ditto.
1711         (*subdf3_trunc): Ditto.
1712         (*madddf4): Ditto.
1713         (*madddf4_trunc): Ditto.
1714         (*msubdf4): Ditto.
1715         (*msubdf4_trunc): Ditto.
1716         (addxf3): Replace xfreg_or_fp01_operand with
1717         xfreg_or_signed_fp01_operand and constraint G with Z.
1718         (*addxf3_truncsf): Ditto.
1719         (*addxf3_truncdf): Ditto.
1720         (subxf3): Ditto.
1721         (*subxf3_truncsf): Ditto.
1722         (*subxf3_truncdf): Ditto.
1723         (*maddxf4): Ditto.
1724         (*maddxf4_truncsf): Ditto.
1725         (*maddxf4_truncdf): Ditto.
1726         (*msubxf4): Ditto.
1727         (*msubxf4_truncsf): Ditto.
1728         (*msubxf4_truncdf): Ditto.
1729
1730 2010-08-04  Richard Guenther  <rguenther@suse.de>
1731
1732         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
1733         if either alias-set is zero.
1734
1735 2010-08-04  Richard Guenther  <rguenther@suse.de>
1736
1737         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
1738         * tree-ssa-ccp.c: ... here.
1739         * tree-ssa-copy.c: ... and here.
1740         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
1741         value_range_t): Move ...
1742         * tree-vrp.c: ... here.
1743         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
1744         (substitute_and_fold): Adjust prototype.
1745         * tree-ssa-propagate.c (replace_uses_in): Adjust.
1746         (replace_phi_args_in): Likewise.
1747         (substitute_and_fold): Take callback to query lattice instead
1748         of pointer to lattice.  Replace SSA name defs with lattice
1749         values first.
1750         * tree-ssa-ccp.c (ccp_finalize): Adjust.
1751         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
1752         (get_value): New function.
1753         (fini_copy_prop): Adjust.
1754         * tree-vrp.c (vrp_finalize): Adjust.
1755
1756 2010-08-04  Richard Guenther  <rguenther@suse.de>
1757
1758         PR middle-end/45176
1759         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
1760         points-to set for original MEM_REF.
1761
1762 2010-08-04  Richard Guenther  <rguenther@suse.de>
1763
1764         * tree-ssa-ccp.c (get_constant_value): New function.
1765         (get_rhs_assign_op_for_ccp): Remove.
1766         (valueize_op): New function.
1767         (ccp_fold): Use get_constant_value and valueize_op.
1768         (fold_const_aggregate_ref): Likewise.
1769         (ccp_fold_stmt): Likewise.
1770         (visit_assignment): Simplify.
1771
1772 2010-08-04  Richard Guenther  <rguenther@suse.de>
1773
1774         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
1775         * double-int.h (double_int_ctz): Declare.
1776         * double-int.c (double_int_ctz): New function.
1777
1778 2010-08-04  Hariharan Sandanagobalane <hariharan@picochip.com>
1779
1780         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
1781         Define.
1782         picochip_expand_movmemhi : Expand movmem pattern.
1783         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
1784         Declare.
1785         * config/picochip/picochip.md (movmemhi) : New pattern.
1786
1787 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
1788
1789         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
1790
1791 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
1792
1793         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
1794         NEG as operand of a MULT by merging it with the other operand.
1795         * combine.c (make_compound_operation): Use trunc_int_for_mode when
1796         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
1797         MULT.
1798         * config/arm/constraints.md (M): Examine only 32 bits of a
1799         HOST_WIDE_INT.
1800         * config/arm/predicates.md (power_of_two_operand): Likewise.
1801
1802 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1803
1804         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
1805         non-NOTE insns.
1806
1807 2010-08-03  Jan Hubicka  <jh@suse.cz>
1808
1809         * ipa-split.c (struct split_point): Add split_part_set_retval.
1810         (find_retval): Forward declare.
1811         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
1812         (consider_split): Compute current->split_part_set_retval.
1813         (visit_bb): Do not look into return value.
1814         (split_function): Handle !split_part_set_retval
1815
1816 2010-08-03  Martin Jambor  <mjambor@suse.cz>
1817
1818         * tree-sra.c (completely_scalarize_record): New parameter REF, create
1819         its own access->expr intead of using build_ref_for_offset.
1820
1821 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
1822
1823         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
1824         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
1825         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
1826         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
1827         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
1828         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
1829         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
1830         DEFAULT_SWITCH_TAKES_ARG.
1831         * config/rx/rx.opt (-patch=): Remove option.
1832         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
1833         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
1834         * doc/invoke.texi (RX Options): Remove -patch=.
1835         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
1836         (option_map): Remove --profile-blocks, --quiet and --silent.
1837
1838 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
1839
1840         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
1841         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
1842         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
1843         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
1844         Update calls to ix86_expand_compare and ix86_expand_branch.
1845         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
1846         ix86_expand_compare.
1847         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
1848         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
1849         Make static.
1850         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
1851         and ix86_compare_op1.  Update calls to ix86_expand_compare.
1852         (ix86_expand_int_movcc): Ditto.
1853         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
1854         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
1855         (ix86_expand_setcc): Ditto.
1856         (ix86_expand_compare): Remove prototype.
1857         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
1858         ix86_compare_op0 and ix86_compare_op1.  Update calls
1859         to ix86_expand_branch to directly pass operands[1] and operands[2].
1860         (cbranchxf4): Ditto.
1861         (cbranch<MODEF:mode>4): Ditto.
1862         (cbranchcc4): Ditto.
1863         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
1864         Update calls to ix86_expand_setcc to directly pass operands[2] and
1865         operands[3].
1866         (cstorexf4): Ditto.
1867         (cstore<MODEF:mode>4): Ditto.
1868         (cstorecc4): Ditto.
1869
1870 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
1871
1872         PR target/45063
1873         * caller-save.c (save_call_clobbered_regs): Remove regs from
1874         hard_regs_saved when they are set.
1875
1876 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
1877
1878         PR target/41089
1879         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
1880         as volatile.
1881
1882 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
1883
1884         * common.opt (ftree-loop-distribute-patterns): New.
1885         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
1886         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
1887         at -O3.
1888         * tree-data-ref.c (stores_zero_from_loop): New.
1889         * tree-data-ref.h (stores_zero_from_loop): Declared.
1890         * tree-loop-distribution.c (tree_loop_distribution): Call
1891         stores_zero_from_loop.
1892         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
1893
1894 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
1895
1896         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
1897         into account.
1898
1899         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
1900         * config/arm/arm.c (thumb1_code): New variable.
1901         (arm_override_options): Set it.
1902         (thumb1_final_prescan_insn): Keep track of condition code status.
1903         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
1904         jumps that depend on them.
1905         * config/arm/arm.h (thumb1_code): Declare variable.
1906         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
1907         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
1908         thumb1_cc_mode.
1909         (CC_STATUS_INIT): New macro.
1910         * config/arm/constraints.md (Pd): New constraint.
1911         * config/arm/predicates.md (noov_comparison_operator): New predicate.
1912         * config/arm/arm.md (is_thumb1): New define_attr.
1913         (conds): Set default to "clob" when generating Thumb1 code.
1914         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
1915         code are set.  Use two-operand assembly syntax.
1916         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
1917         pattern.
1918         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
1919         codes are set.  Use two-operand assembly syntax.
1920         (zero_extendhisi splitter): Remove constraints.
1921         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
1922         thumb1_movsf_insn): Set conds attribute as appropriate.
1923         (cbranchsi4_insn): Use condition code status from struct
1924         machine_function to determine whether the comparison can be eliminated.
1925         Discourage the alternative using high registers.
1926         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
1927         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
1928         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
1929         subsi3_cbranch): Delete.
1930         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
1931         one subtract and one cbranch insn.
1932
1933         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
1934         thumb2_movdf_soft_insn): Delete patterns.
1935         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
1936         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
1937         (pool_range, neg_pool_range): Use them to define defaults.
1938         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
1939         and allow for TARGET_32BIT.
1940
1941         PR target/40457
1942         * config/arm/arm.h (arm_regs_in_sequence): Declare.
1943         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
1944         load_multiple_sequence, store_multiple_sequence): Delete
1945         declarations.
1946         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
1947         declarations.
1948         * config/arm/ldmstm.md: New file.
1949         * config/arm/arm.c (arm_regs_in_sequence): New array.
1950         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
1951         CHECK_REGS.  All callers changed.
1952         If SAVED_ORDER is nonnull, copy the computed order into it.
1953         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
1954         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
1955         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
1956         If SAVED_ORDER is nonnull, copy the computed order into it.
1957         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
1958         like REGS.  Handle Thumb mode.
1959         (arm_gen_load_multiple_1): New function, broken out of
1960         arm_gen_load_multiple.
1961         (arm_gen_store_multiple_1): New function, broken out of
1962         arm_gen_store_multiple.
1963         (arm_gen_multiple_op): New function, with code from
1964         arm_gen_load_multiple and arm_gen_store_multiple moved here.
1965         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
1966         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
1967         changed.
1968         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
1969         * config/arm/predicates.md (commutative_binary_operator): New.
1970         (load_multiple_operation, store_multiple_operation): Handle more
1971         variants of these patterns with different starting offsets.  Handle
1972         Thumb-1.
1973         * config/arm/arm.md: Include "ldmstm.md".
1974         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
1975         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
1976         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
1977         peepholes): Delete.
1978         * config/arm/ldmstm.md: New file.
1979         * config/arm/arm-ldmstm.ml: New file.
1980
1981         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
1982         if statement which adds extra costs to frame-related expressions.
1983
1984 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1985
1986         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
1987
1988 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
1989
1990         PR target/45142
1991         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
1992         alternative 2.
1993         (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
1994         split V4SI operands.
1995
1996 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
1997
1998         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
1999         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
2000         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
2001         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
2002
2003 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
2004
2005         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
2006         LOCAL_INCLUDE_DIR.
2007
2008 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
2009
2010         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
2011         used in the call to optab_for_tree_code.  Fix the second
2012         is_widening_mult_p call.  Check that both unwidened operands
2013         have the same sign.
2014
2015 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
2016
2017         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
2018
2019 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
2020
2021         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
2022
2023 2010-07-30  DJ Delorie  <dj@redhat.com>
2024
2025         * config/rx/predicates.md (rx_constshift_operand): New.
2026         * config/rx/rx.md (zs_cond): New.
2027         (cbranchsi4): Remove mode.
2028         (*cbranchsi4_<code>): Likewise.
2029         (*tstbranchsi4_<code>): New.
2030         (*tstbranchsi4r_<code>): New.
2031         (*tstbranchsi4m_eq): New.
2032         (*tstbranchsi4m_ne): New.
2033         (cbranchsf4): Remove mode.
2034         (*cbranchsf4_<code>): Likewise.
2035
2036 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
2037
2038         * rtlanal.c (simplify_subreg_regno): Don't treat
2039         HARD_FRAME_POINTER_REGNUM specially.
2040
2041 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
2042
2043         * common.opt (-G): Don't define option here.
2044         * config/g.opt: New.
2045         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
2046         rs6000/powerpc and score targets.
2047         * opts.c (common_handle_option): Don't handle -G here.
2048         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
2049         * config/frv/frv.c (frv_handle_option): Handle -G.
2050         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
2051         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
2052         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
2053         * config/mips/mips.c (mips_handle_option): Handle -G.
2054         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
2055         * config/score/score.c (score_handle_option): Handle -G.
2056
2057 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
2058
2059         * config/mmix/mmix.c: Include basic-block.h.
2060
2061 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
2062
2063         PR debug/45055
2064         PR rtl-optimization/45137
2065         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
2066         prototypes.
2067         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
2068         New functions.
2069         * combine.c (next_nonnote_nondebug_insn): Removed.
2070         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
2071         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
2072         * sched-deps.c (sched_analyze_insn): Likewise.
2073         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
2074         * rtlanal.c (canonicalize_condition): Likewise.
2075         * postreload.c (reload_combine_recognize_pattern): Likewise.
2076         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
2077
2078 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
2079
2080         * config/i386/i386.md (int_cond): Remove code iterator.
2081         (fp_cond): Ditto.
2082         (cbranch<mode>4): Use ordered_comparison_operator predicate
2083         for operator0.
2084         (cstore<mode>4): Ditto for operator1.
2085         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
2086         (add<mode>cc): ditto.
2087
2088 2010-07-30  Richard Guenther  <rguenther@suse.de>
2089
2090         PR middle-end/45141
2091         * expr.c (expand_expr_real_1): Check for not handled base address.
2092
2093 2010-07-30  Richard Guenther  <rguenther@suse.de>
2094
2095         * ipa-prop.c (ipa_modify_formal_parameters): Use
2096         build_distinct_type_copy.
2097
2098 2010-07-30  Anthony Green  <green@moxielogic.com>
2099
2100         * config/moxie/rtems.h: New file.
2101         * config.gcc: Add moxie-rtems support.
2102
2103 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
2104
2105         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
2106         df flags as in run_fast_df_dce.
2107
2108 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
2109
2110         Revert:
2111         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
2112
2113         * rtl.def (NOTE): Swap operands 4 and 5.
2114         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
2115         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
2116         Adjust accordingly.
2117         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
2118
2119 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
2120
2121         PR debug/45110
2122         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
2123         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
2124         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
2125         formal parameters.
2126         (gen_decl_die): Change return type to dw_die_ref, return what
2127         gen_formal_parameter_die returned.
2128
2129 2010-07-29  Martin Jambor  <mjambor@suse.cz>
2130
2131         * dbgcnt.def (eipa_sra): New counter.
2132         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
2133
2134 2010-07-29  Xinliang David Li  <davidxl@google.com>
2135
2136         PR bootstrap/45119
2137         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
2138         in revision 162652.
2139
2140 2010-07-29  Richard Guenther  <rguenther@suse.de>
2141
2142         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
2143         (TV_TREE_STORE_CCP): Likewise.
2144         (TV_TREE_REDPHI): Likewise.
2145
2146 2010-07-29  Richard Guenther  <rguenther@suse.de>
2147
2148         * double-int.h (double_int_and_not): New function.
2149         * combine.c (try_combine): Use it.
2150         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
2151
2152 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
2153
2154         PR rtl-optimization/42575
2155         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
2156         Argument AU removed.  All callers changed.  Ignore artificial refs.
2157         Use return value of df_word_lr_simulate_defs to decide whether an insn
2158         is necessary.
2159         (fast_dce): Rename arg to WORD_LEVEL.
2160         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
2161         static.
2162         (pass_fast_rtl_byte_dce): Delete.
2163         * dce.h (run_word_dce): Declare.
2164         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
2165         All callers changed.  Simplify code to only deal with two-word regs.
2166         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
2167         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
2168         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
2169         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
2170         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
2171         (df_word_lr_mark_ref): Declare.
2172         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
2173         df_word_lr_simulate_uses): Declare or rename from byte variants.
2174         (df_byte_lr_simulate_artificial_refs_at_top,
2175         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
2176         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
2177         declarations.
2178         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
2179         (enum df_mm): Delete.
2180         * df-byte-scan.c: Delete file.
2181         * df-problems.c (df_word_lr_problem_data): Renamed from
2182         df_byte_lr_problem_data, all members deleted except for
2183         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
2184         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
2185         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
2186         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
2187         df_byte_lr_confluence_0): Delete functions.
2188         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
2189         callers changed.
2190         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
2191         Don't initialize members that were deleted, don't try to discover data
2192         about registers.  Ignore hard regs.
2193         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
2194         (df_word_lr_mark_ref): New function.
2195         (df_word_lr_bb_local_compute): Renamed from
2196         df_byte_bb_lr_local_compute; all callers changed.  Use
2197         df_word_lr_mark_ref.  Assert that artificial refs don't include
2198         pseudos.  Ignore hard registers.
2199         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
2200         Assert that exit block uses don't contain pseudos.
2201         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
2202         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
2203         callers changed.  Ignore hard regs.
2204         (df_word_lr_transfer_function): Renamed from
2205         df_byte_lr_transfer_function; all callers changed.
2206         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
2207         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
2208         changed.
2209         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
2210         callers changed.
2211         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
2212         confluence operator 0 set to NULL.
2213         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
2214         callers changed.
2215         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
2216         Return bool, true if bitmap changed or insn otherwise necessary.
2217         All callers changed.  Simplify using df_word_lr_mark_ref.
2218         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
2219         all callers changed.  Simplify using df_word_lr_mark_ref.
2220         * lower-subreg.c: Include "dce.h"
2221         (decompose_multiword_subregs): Call run_word_dce if df available.
2222         * Makefile.in (lower-subreg.o): Adjust dependencies.
2223         (df-byte-scan.o): Delete.
2224         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
2225
2226 2010-07-29  Richard Guenther  <rguenther@suse.de>
2227
2228         * tree.c (build_vector): Assert that the vector constant
2229         has enough elements.
2230         (build_vector_from_ctor): Pad with trailing zeros.
2231
2232 2010-07-29  Richard Guenther  <rguenther@suse.de>
2233
2234         PR tree-optimization/45120
2235         * tree-ssa-structalias.c (get_constraint_for_component_ref):
2236         Handle offset in DEREFs properly.
2237         (get_constraint_for_1): Handle MEM_REF offset properly.
2238
2239 2010-07-29  Richard Guenther  <rguenther@suse.de>
2240
2241         PR middle-end/45034
2242         * convert.c (convert_to_integer): Always use an unsigned
2243         type for narrowed negate and bitwise not.
2244
2245 2010-07-29  Ira Rosen  <irar@il.ibm.com>
2246
2247         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
2248         to outer loop when creating reduction epilogue for double reduction,
2249         and switch back to the inner loop when updating the phi nodes.
2250         Update uses of outer loop exit phi nodes in double reduction (instead
2251         of uses of reduction).
2252
2253 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
2254
2255         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
2256         popcount on power7 and parity on power6 systems.
2257         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
2258         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
2259         instructions.
2260
2261         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
2262         (UNSPEC_PARITY): Ditto.
2263         (SFDF): New iterator for SF/DF.
2264         (rreg2): New mode attribute for floating register constraint.
2265         (TARGET_FLOAT): New mode attribute for whether single/double float
2266         is supported.
2267         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
2268         pattern.
2269         (parity<mode>2_cmpb): New insn for parity on power6 and newer
2270         machines.
2271         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
2272         pattern.  Add support for fcpsgn instruction added in power6.
2273         (copysignsf3): Delete.
2274         (copysigndf3): Delete.
2275         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
2276         instead of if_then_else in RTL to avoid problems with -0.
2277
2278         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
2279         of if_then_else to mirror scalar code.
2280         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
2281         rs6000.md.
2282
2283         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
2284         instead of if_then_else.
2285
2286 2010-07-28  Xinliang David Li  <davidxl@google.com>
2287
2288         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
2289         (dump_cand): Dump var_before/after.
2290         (htab_inv_expr_eq): New function.
2291         (htab_inv_expr_hash): New function.
2292         (tree_ssa_iv_optimize_init): Support pseudo invariants.
2293         (add_candidate_1): consider base type precision.
2294         (set_use_iv_cost): New parameter.
2295         (adjust_setup_cost): Use profile information.
2296         (get_address_cost): Do not hard code width in computing address
2297         offset limits.
2298         (compare_aff_trees): New function.
2299         (get_loop_invariant_expr_id): New function.
2300         (get_computation_cost_at): New parameter and use profile information.
2301         (get_computation_cost): New parameter.
2302         (determine_use_iv_cost_generic): Pass new parameter.
2303         (determine_use_iv_cost_address): Ditto.
2304         (determine_use_iv_cost_condition): Ditto.
2305         (autoinc_possible_for_pair): Ditto.
2306         (determine_use_iv_costs): More dumps.
2307         (iv_ca_get_num_inv_exprs): New function.
2308         (iv_ca_recount_cost): Consider loop invariants in register pressure
2309         cost.
2310         (iv_ca_add_use): New parameter.
2311         (iv_ca_dump): Better dumping.
2312         (iv_ca_extend): New parameter.
2313         (try_add_cand_for): Attempt to get better partial solution.
2314         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
2315         (create_new-ivs): More dumps.
2316         (rewrite_use_compare): Ditto.
2317         (free_loop_data): More cleanup.
2318         (treee_ssa_iv_optimize_finalize): Ditto.
2319
2320 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
2321
2322         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
2323         * config/i386/i386.c (ix86_profile_before_prologue): New.
2324         (override_options): Add special handling for -mfentry.
2325         (ix86_function_regparm): Likewise.
2326         (ix86_function_sseregparm): Likewise.
2327         (ix86_frame_pointer_required): Likewise.
2328         (ix86_expand_prologue): Check for ms_hook_prologue.
2329         (x86_function_profiler): Adjust mcount output.
2330         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
2331         * config/i386/i386.opt (mfentry): New.
2332         * doc/invoke.texi (mfentry): Add documentation.
2333         * doc/tm.texi: Regenerated..
2334         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
2335         * final.c (final_start_function): Replace macro
2336         PROFILE_BEFORE_PROLOGUE by target hook.
2337         * function.c (thread_prologue_and_epilogue_insns): Likewise.
2338         * target.def (profile_before_prologue): New hook.
2339         * targhooks.c (default_profile_before_prologue): New.
2340         * targhooks.h (default_profile_before_prologue): New.
2341
2342 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
2343
2344         PR debug/45105
2345         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
2346
2347         PR debug/45103
2348         * dwarf2out.c (dwarf2out_var_location): Always consider
2349         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
2350
2351 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
2352
2353         PR rtl-optimization/45107
2354         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
2355
2356 2010-07-28  Richard Guenther  <rguenther@suse.de>
2357
2358         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
2359         (set_lattice_value): Do not query an old default value.
2360         (get_value_for_expr): New function.  Properly canonicalize
2361         float values.
2362         (ccp_visit_phi_node): Use it.
2363
2364 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
2365
2366         * config/arm/arm.c (arm_pcs_default): Remove static.
2367         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
2368         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
2369         (arm_pcs_default): Declare.
2370
2371 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
2372
2373         * config/rs6000/rs6000.c (rs6000_override_options):
2374         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
2375         ... to darwin_rs6000_override_options.
2376         (rs6000_return_in_memory): Update preceding comment for darwin
2377         64 bit ABI.  Use TARGET_MACHO inline.
2378         (rs6000_darwin64_struct_check_p): New.
2379         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
2380         (function_arg): Likewise.
2381         (rs6000_arg_partial_bytes): Likewise.
2382         (rs6000_function_value): Likewise.
2383
2384 2010-07-28  Andi Kleen <ak@linux.intel.com>
2385
2386         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
2387
2388 2010-07-28  Richard Guenther  <rguenther@suse.de>
2389
2390         PR middle-end/44903
2391         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
2392         targets try harder to not generate unaligned accesses.
2393
2394 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
2395
2396         PR rtl-optimization/45101
2397         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
2398         for gcse-las.
2399
2400 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
2401
2402         PR tree-optimization/44885
2403         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
2404         with non-aliased component.
2405
2406 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
2407
2408         * config/darwin-driver.c (SWITCH_TAKES_ARG,
2409         WORD_SWITCH_TAKES_ARG): Remove.
2410         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
2411         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
2412         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
2413         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
2414         definitions from gcc.c.
2415         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
2416         defaults.h.
2417         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
2418         Move to defaults.h.
2419         * opts-common.c: Include tm.h.
2420         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
2421         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
2422         Handle more than one argument.  Set canonical_option_num_elements.
2423         (decode_cmdline_options_to_array): Set
2424         canonical_option_num_elements and trailing elements of
2425         canonical_option.
2426         * opts.h (struct cl_decoded_option): Allow four elements in
2427         canonical_option.  Add field canonical_option_num_elements.
2428         * Makefile.in (opts-common.o): Update dependencies.
2429
2430 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
2431
2432         PR middle-end/44790
2433         PR middle-end/44993
2434         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
2435         sure the base has address_mode before adding the offset.
2436
2437 2010-07-27  Xinliang David Li <davidxl@google.com>
2438
2439         * tree-flow.h (create_mem_ref): Add one new parameter.
2440         * tree-ssa-address.c (create_mem_ref): New parameter.
2441         (addr_to_parts): Ditto.
2442         (move_variant_to_index): New function.
2443         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
2444
2445 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
2446
2447         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
2448         4 and 5.
2449         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
2450         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
2451         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
2452         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
2453         CODE_LABELs and NOTEs.
2454         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
2455         * combine.c (try_combine): Likewise.
2456         * ira.c (setup_prohibited_mode_move_regs): Likewise.
2457         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
2458
2459 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
2460
2461         * coretypes.h (struct cl_option_handlers): Declare.
2462         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
2463         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
2464         * langhooks-def.h (lhd_handle_option): Declare.
2465         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
2466         * langhooks.c (lhd_handle_option): New.
2467         * langhooks.h (struct lang_hooks): Update prototype and return
2468         value type of handle_option hook.
2469         * optc-gen.awk: Generate target_flags_explicit definition for the
2470         driver.
2471         * opts-common.c: Include diagnostic.h.
2472         (handle_option): Move from opts.c.  Update prototype and return
2473         value type.  Use handlers structure.
2474         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
2475         handlers structure.
2476         (set_option): Move from opts.c.
2477         * opts.c (common_handle_option): Update prototype and return value
2478         type.  Update calls to handle_option and enable_warning_as_error.
2479         (unknown_option_callback, post_handling_callback,
2480         lang_handle_option, target_handle_option): New.
2481         (handle_option, read_cmdline_option): Move to opts-common.c.
2482         (read_cmdline_options): Update prototype.  Update call to
2483         read_cmdline_option.
2484         (decode_options): Initialize and use handlers structure.
2485         (set_option): Move to opts-common.c.
2486         (enable_warning_as_error): Update prototype.  Update call to
2487         handle_option.
2488         * opts.h (struct cl_option_handler_func, struct
2489         cl_option_handlers): New.
2490         (handle_option, enable_warning_as_error): Update prototypes.
2491         (read_cmdline_option): Declare.
2492         * Makefile.in (opts-common.o): Update dependencies.
2493
2494 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2495
2496         * config/arm/arm.c (params.h): Include.
2497         (arm_override_options): Tune gcse-unrestricted-cost.
2498         * config/arm/t-arm (arm.o): Define dependencies.
2499
2500 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2501
2502         PR target/42495
2503         PR middle-end/42574
2504         * basic-block.h (get_dominated_to_depth): Declare.
2505         * dominance.c (get_dominated_to_depth): New function, use
2506         get_all_dominated_blocks as a base.
2507         (get_all_dominated_blocks): Use get_dominated_to_depth.
2508
2509         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
2510         (hoist_exprs): Remove.
2511         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
2512         (compute_code_hoist_vbeinout): Add debug print outs.
2513         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
2514
2515         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
2516         quadratic behavior.
2517         * params.h (MAX_HOIST_DEPTH): New macro.
2518         * doc/invoke.texi (max-hoist-depth): Document.
2519
2520 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2521
2522         PR rtl-optimization/40956
2523         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
2524         constants.
2525
2526 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2527
2528         PR target/42495
2529         PR middle-end/42574
2530         * config/arm/arm.c (legitimize_pic_address): Use
2531         gen_calculate_pic_address pattern to emit calculation of PIC address.
2532         (will_be_in_index_register): New function.
2533         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
2534         (thumb1_legitimate_address_p): Use it provided !strict_p.
2535         * config/arm/arm.md (calculate_pic_address): New expand and split.
2536
2537 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2538
2539         PR target/42495
2540         PR middle-end/42574
2541         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
2542         * config/arm/arm.md (define_split "J", define_split "K"): Make
2543         IRA/reload friendly.
2544
2545 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2546
2547         * gcse.c (insert_insn_end_basic_block): Update signature, remove
2548         unused checks.
2549         (pre_edge_insert, hoist_code): Update.
2550
2551 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2552
2553         PR target/42495
2554         PR middle-end/42574
2555         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
2556
2557 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2558
2559         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
2560
2561 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2562
2563         PR rtl-optimization/40956
2564         PR target/42495
2565         PR middle-end/42574
2566         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
2567         for hoisting.
2568         (hoist_code): Count occurences in current block too.
2569
2570 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2571
2572         * gcse.c (struct expr:max_distance): New field.
2573         (doing_code_hoisting_p): New static variable.
2574         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
2575         simple expressions, don't change behavior for PRE.  Set max_distance.
2576         (insert_expr_in_table): Set new max_distance field.
2577         (hash_scan_set): Update.
2578         (hoist_expr_reaches_here_p): Stop search after max_distance
2579         instructions.
2580         (find_occr_in_bb): New static function.  Use it in ...
2581         (hoist_code): Calculate sizes of basic block before any changes are
2582         done.  Pass max_distance to hoist_expr_reaches_here_p.
2583         (one_code_hoisting_pass): Set doing_code_hoisting_p.
2584
2585         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
2586         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
2587         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
2588         macros.
2589         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
2590         Document.
2591
2592 2010-07-27  Jeff Law  <law@redhat.com>
2593             Maxim Kuvyrkov  <maxim@codesourcery.com>
2594
2595         * gcse.c (compute_transpout, transpout): Remove, move logic
2596         to prune_expressions.
2597         (compute_pre_data): Move pruning of trapping expressions ...
2598         (prune_expressions): ... here.  New static function.
2599         (compute_code_hoist_data): Use it.
2600         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
2601
2602 2010-07-27  Xinliang David Li  <davidxl@google.com>
2603
2604         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
2605         (rewrite_use_address): Adjust iv update position when needed.
2606
2607 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2608
2609         * dbgcnt.def (hoist_insn): New debug counter.
2610         * gcse.c (hoist_code): Use it.
2611
2612 2010-07-27  Xinliang David Li  <davidxl@google.com>
2613
2614         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
2615         (niter_for_single_dom_exit): Passes additional parameter.
2616         (iv_period): Fix comments.
2617         (may_eliminate_iv): Handles multiple exit loops properly.
2618         (free_tree_niter_desc): New function.
2619         (free_loop_data): Frees up loop iteration descriptors.
2620
2621 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
2622
2623         PR target/44542
2624         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
2625         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
2626         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
2627         (expand_one_var): Don't consider DECL_ALIGN for variables for
2628         which expand_one_stack_var_at has been already called.
2629
2630         PR testsuite/44701
2631         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
2632         constraints on IA-64.
2633
2634 2010-07-27  Jie Zhang  <jie@codesourcery.com>
2635
2636         PR target/44290
2637         Revert:
2638         2010-07-23  Jie Zhang  <jie@codesourcery.com>
2639
2640         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
2641         false if ! tree_versionable_function_p.
2642
2643 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
2644
2645         * dwarf2out.c (add_data_member_location_attribute): Use
2646         add_AT_unsigned instead of add_AT_int if offset is non-negative.
2647
2648 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
2649
2650         * postreload.c (try_replace_in_use): New static function.
2651         (reload_combine_recognize_const_pattern): Use it here.  Allow
2652         substituting into a final add insn, and substituting into a memory
2653         reference in an insn that sets the reg.
2654
2655 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
2656
2657         * common.opt (o): Add MissingArgError.
2658         * doc/options.texi (MissingArgError): Document.
2659         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
2660         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
2661         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2662         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
2663         * langhooks.h (struct lang_hooks): Remove missing_argument.
2664         * optc-gen.awk: Handle MissingArgError and output new structure
2665         field initializers.
2666         * opts.c (read_cmdline_option): Use missing_argument_error field
2667         instead of missing_argument langhook.
2668         * opts.h (struct cl_option): Add missing_argument_error field.
2669         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
2670
2671 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
2672
2673         PR target/29090
2674         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
2675         Darwin64 ABI, for zero-sized objects.
2676
2677 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
2678
2679         PR target/35491
2680         PR target/29090
2681
2682         Merge from Apple local 4.2.1.
2683         2005-05-11  Stan Shebs  <shebs@apple.com>
2684         Fix 64-bit varargs for Darwin (Radar 4028089).
2685         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
2686         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
2687         Add argument, add case for 8-byte register half-filled with a float.
2688         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
2689         single-precision floats specially.
2690
2691 2010-07-27  Ira Rosen  <irar@il.ibm.com>
2692
2693         PR tree-optimization/44152
2694         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
2695         complex numbers for further check.
2696         (vect_supported_load_permutation_p): Check nodes with
2697         complex numbers.
2698
2699 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
2700
2701         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
2702         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
2703         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
2704         (LANG_HOOKS_INITIALIZER): Add new hooks.
2705         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
2706         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
2707         and complain_wrong_lang_p.  Update init_options prototype.
2708         * c-objc-common.c (c_initialize_diagnostics): First call
2709         c_common_initialize_diagnostics.
2710         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
2711         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
2712         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
2713         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
2714         (hook_uint_void_0): New.
2715         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
2716         (hook_uint_void_0): New.
2717         * opts-common.c (decode_cmdline_option,
2718         decode_cmdline_options_to_array): Also fill in canonical_option field.
2719         * opts.c (complain_wrong_lang): Use langhook to determine whether
2720         to complain instead of special-casing LTO.
2721         (decode_options): Separate lang_mask determination with
2722         option_lang_mask hook from call of init_options hook.
2723         * opts.h (struct cl_decoded_option): Add canonical_option.
2724
2725 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
2726
2727         PR tree-optimization/45083
2728         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
2729
2730 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
2731
2732         * postreload.c (reload_combine_recognize_const_pattern): Move test
2733         for limiting the insn movement to the right scope.
2734
2735         PR rtl-optimization/45051
2736         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
2737         than reg_mentioned_p.
2738
2739 2010-07-26  Richard Henderson  <rth@redhat.com>
2740
2741         PR target/44132
2742         * tree-emutls.c: New file.
2743         * Makefile.in (OBJS-common): Add it.
2744         * tree-pass.h (pass_ipa_lower_emutls): Declare.
2745         * passes.c (init_optimization_passes): Add it.
2746
2747         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
2748         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
2749         * expr.c (emutls_var_address): Delete.
2750         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
2751         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
2752         (emutls_finish): Delete.
2753         * toplev.c (compile_file): Don't call it.
2754         * tree.h (emutls_decl): Delete.
2755         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
2756         (emutls_finish, emutls_finalize_control_var): Delete.
2757         (emutls_object_type): Move to tree-emutls.c.
2758         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
2759         default_emutls_var_fields, get_emutls_object_type,
2760         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
2761         default_emutls_var_init): Likewise.
2762         (get_variable_section): Don't special case emutls.
2763         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
2764         default_elf_select_section, default_unique_section,
2765         default_encode_section_info): Likewise.
2766         * varpool.c (decide_is_variable_needed): Likewise.
2767         * gimple-iterator.c (update_call_edge_frequencies): New
2768         (gsi_insert_on_edge_immediate): Use it.
2769         (gsi_insert_seq_on_edge_immediate): Likewise.
2770         (gsi_commit_one_edge_insert): Likewise.
2771
2772         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
2773         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
2774         (x86_64_elf_unique_section): Likewise.
2775
2776 2010-07-26  Jan Hubicka  <jh@suse.cz>
2777
2778         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
2779         GTY((skip)).
2780
2781 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
2782
2783         * target.def (output_source_filename): New hook.
2784         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
2785         * doc/tm.texi: Regenerate.
2786         * toplev.c (output_file_directive) Remove function.
2787         * toplev.h (output_file_directive) Remove.
2788         * output.h (default_asm_output_source_filename,
2789         output_file_directive): Declare.
2790         * varasm.h (default_asm_output_source_filename,
2791         output_file_directive): New functions.
2792
2793         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
2794         * config/mips/mips-protos.h (mips_output_filename): Remove.
2795         * config/mips/mips.c (mips_output_filename): Make Static.
2796         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
2797
2798 2010-07-26  Richard Guenther  <rguenther@suse.de>
2799
2800         PR tree-optimization/43784
2801         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
2802         if the destination is used by the call.
2803
2804 2010-07-26  Richard Guenther  <rguenther@suse.de>
2805
2806         PR middle-end/45073
2807         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
2808         SSA updating on being in SSA form.
2809
2810 2010-07-26  Richard Guenther  <rguenther@suse.de>
2811
2812         PR middle-end/45056
2813         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
2814
2815 2010-07-26  Richard Guenther  <rguenther@suse.de>
2816
2817         PR tree-optimization/45071
2818         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
2819         adjust op->opcode.
2820
2821 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
2822
2823         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
2824         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
2825         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
2826         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
2827         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
2828         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
2829         save_r31, return_r31, save_interrupt, return_interrupt,
2830         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
2831         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
2832         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
2833         new ABI requirements.
2834         (save_r6_r9, L_callt_save_r6_r9): Remove.
2835         * config/v850/predicates.md (even_reg_operand, disp23_operand,
2836         const_float_1_operand const_float_0_operand): New Predicates.
2837         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
2838         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
2839         * config/v850/t-v850: Update multilibs for new target variants.
2840         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
2841         * config/v850/t-v850e: Likewise.
2842         * config/v850/v850.c (v850_issue_rate): New.
2843         (v850_strict_argument_naming): New.
2844         (function_arg): Modify to generate a different ABI.
2845         (print_operand): Update case 'z' to support float modes.
2846         (output_move_single): Modify to generate appropriate and better
2847         assembly.
2848         (v850_float_z_comparison_operator, v850_select_cc_mode,
2849         v850_float_nz_comparison_operator,  v850_gen_float_compare,
2850         v850_gen_compare): New functions to support comparison of float values.
2851         (ep_memory_offset): Add support for V850E2 targets.
2852         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
2853         (INTERRUPT_REGPARM_NUM): Remove.
2854         (compute_register_save_size): Add extra case to save/restore long call.
2855         (use_prolog_function): New function to support prologue.
2856         (expand_prologue): Add support for V850E2 targets and modified
2857         as per the current ABI requirements.
2858         (expand_epilogue): Likewise.
2859         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
2860         (construct_save_jarl): Likewise.
2861         (construct_dispose_instruction): Update as per the current ABI
2862         requirements.
2863         (construct_prepare_instruction): Likewise.
2864         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
2865         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
2866         (CPP_SPEC): Updated to support v850e2 targets.
2867         (STRICT_ALIGNMENT): Modified.
2868         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
2869         (FIXED_REGISTERS): Likewise.
2870         (CALL_USED_REGISTERS): Likewise.
2871         (CONDITIONAL_REGISTER_USAGE): Updated.
2872         (HARD_REGNO_MODE_OK): Updated.
2873         (reg_class): Updated to add even registers.
2874         (REG_CLASS_NAMES): Likewise.
2875         (REG_CLASS_CONTENTS): Likewise.
2876         (REGNO_REG_CLASS): Updated for CC registers.
2877         (REG_CLASS_FROM_LETTER): Added support for even registers.
2878         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
2879         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
2880         ARG_POINTER_REGNUM): Updated.
2881         (FUNCTION_ARG_ADVANCE): Define.
2882         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
2883         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
2884         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
2885         (GO_IF_LEGITIMATE_ADDRESS): Updated.
2886         (SELECT_CC_MODE): Define.
2887         (REGISTER_NAMES): Updated to add psw and fcc registers.
2888         (ADDITIONAL_REGISTER_NAMES): Updated.
2889         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
2890         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
2891         * config/v850/v850.md (define_constants): Define new constants.
2892         (type): Update store,bit1,macc,div,fpu and single attributes.
2893         (cpu): New attribute.
2894         (cc): Add set_z attribute.
2895         (unsign23byte_load, sign23byte_load, unsign23hword_load,
2896         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
2897         23word_store): New instructions for 23-bit displacement load and store.
2898         (movqi_internal, movhi_internal): Update the attributes.
2899         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
2900         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
2901         the attributes.
2902         (v850_tst1): Modified using CC_REGNUM.
2903         (tstsi): Remove.
2904         (cmpsi): Modified as define_expand from define_insn.
2905         (cmpsi_insn, cmpsf, cmpdf): New instructions.
2906         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
2907         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
2908         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
2909         one_cmplsi2): Clobber the CC_REGNUM register.
2910         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
2911         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
2912         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
2913         (setf_insn, set_z_insn, set_nz_insn): New instructions for
2914         v850e2v3 target.
2915         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
2916         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
2917         targets.
2918         (sasf_1, sasf_2): Remove.
2919         (sasf): New instruction.
2920         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
2921         targets. CC_REGNUM register is clobbered and attributes are
2922         updated.
2923         (branch_z_normal, branch_z_invert, branch_nz_normal,
2924         branch_nz_invert): New branch related instructions.
2925         (jump): Updated the attributes.
2926         (switch): Update to support new targets. CC_REGNUM register is
2927         clobbered and attributes are updated.
2928         (call_internal_short, call_internal_long, call_value_internal_short,
2929         call_value_internal_long): Updated the attributes.
2930         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
2931         clobbered and attributes are updated.
2932         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
2933         Update to support new targets. CC_REGNUM register is clobbered.
2934         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
2935         instructions.
2936         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
2937         are updated.
2938         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
2939         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
2940         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
2941         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
2942         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
2943         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
2944         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
2945         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
2946         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
2947         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
2948         point instructions defined for V850e2v3 target.
2949         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
2950         Add support for V850E2 targets and CC_REGNUM register is clobbered.
2951         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
2952         support for new targets.
2953         * config/v850/v850-modes.def: New file.
2954         * config/v850/v850.opt(mstrict-align): Remove.
2955         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
2956         mv850e2v3): New command line options for V850.
2957         * config.gcc: Update the newly added files.
2958         * doc/invoke.texi: Update the newly added command line options for
2959         V850 target.
2960
2961 2010-07-26  Richard Guenther  <rguenther@suse.de>
2962
2963         PR tree-optimization/45052
2964         * ipa-pure-const.c (check_stmt): Check volatileness.
2965
2966 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
2967
2968         PR target/44707
2969         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
2970         * config/sparc/sparc.c: Include reload.h.
2971         (legitimize_tls_address): Rename into...
2972         (sparc_legitimize_tls_address): ...this.
2973         (legitimize_pic_address): Rename into...
2974         (sparc_legitimize_pic_address): ...this.
2975         (sparc_expand_move): Adjust to above renaming.
2976         (sparc_tls_referenced_p): Likewise.
2977         (sparc_legitimize_tls_address): Likewise.
2978         (sparc_legitimize_pic_address): Likewise.
2979         (sparc_legitimize_address): Likewise.
2980         (sparc_output_mi_thunk): Likewise.
2981         (sparc_legitimize_reload_address): New global function.  Recognize
2982         (lo_sum (high ...) ...) patterns generated by earlier passes.
2983         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
2984
2985 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
2986
2987         PR target/44484
2988         * config/sparc/predicates.md (memory_reg_operand): Delete.
2989         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
2990         (*sync_compare_and_swap): Encode the address form in the pattern.
2991         (*sync_compare_and_swapdi_v8plus): Likewise.
2992
2993 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
2994
2995         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
2996         Streamline paragraph on compatibility with the system compiler.
2997
2998 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
2999
3000         PR middle-end/45035
3001         * alias.c (true_dependence_1): Fix thinko in merge of old
3002         true_dependence and canon_true_dependence.
3003
3004 2010-07-23  Jan Hubicka  <jh@suse.cz>
3005
3006         * lto-streamer-out.c (write_symbol): Fix visibilities of external
3007         references.
3008
3009 2010-07-23  Le-Chun Wu  <lcwu@google.com>
3010
3011         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
3012         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
3013         and an unnecessary assignment.
3014         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
3015         self-assign warning.
3016         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
3017         unnecessary self-init.
3018
3019 2010-07-23  Richard Guenther  <rguenther@suse.de>
3020
3021         PR lto/43071
3022         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
3023         for -flto and -fwhopr.
3024
3025 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
3026
3027         PR target/41943
3028         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
3029         (stmp-int-hdrs): Prefix/postfix headers by include_next.
3030         * config.gcc (user_headers_inc_next_pre): New.
3031         (user_headers_inc_next_post): Likewise.
3032         (*-w64-mingw*): Use for float.h post-fixing, and for
3033         stddef.h/stdarg.h pre-fixing by include_next.
3034         * configure.ac (user_headers_inc_next_post): New.
3035         (user_headers_inc_next_pre): New.
3036         * configure: Regenerated.
3037
3038 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3039
3040         * configure.ac: Don't disable TLS on Solaris 8/9 by default
3041         Set tga_func for Solaris 2/x86 resp. SPARC.
3042         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
3043         (LIB_THREAD_LDFLAGS_SPEC): Define.
3044         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
3045         * configure: Regenerate.
3046         * config.in: Regenerate.
3047         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
3048         -pthread, -threads, LIB_TLS_SPEC with -pthread.
3049         * doc/install.texi (Specific, *-*-solaris2*): Document use of
3050         alternate thread libraries on Solaris 8.
3051         Document TLS patch requirements.
3052         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
3053         Document tls.
3054
3055         PR target/18788
3056         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
3057         -shared.
3058
3059 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
3060
3061         * tree.h (struct tree_base): Add nameless_flag bitfield.
3062         (TYPE_NAMELESS, DECL_NAMELESS): Define.
3063         * omp-low.c (create_omp_child_function, scan_omp_parallel,
3064         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
3065         DECL_ARTIFICIAL where needed.
3066         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
3067         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
3068         has DECL_NAMELESS set.
3069
3070 2010-07-23  Martin Jambor  <mjambor@suse.cz>
3071
3072         PR tree-optimization/44915
3073         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
3074         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
3075         (analyze_function): Likewise.
3076
3077 2010-07-23  Martin Jambor  <mjambor@suse.cz>
3078
3079         PR tree-optimization/44914
3080         * tree-sra.c (sra_modify_function_body): Return true if CFG was
3081         changed, add purging dead eh edges.
3082         (ipa_sra_modify_function_body): Return true if CFG was changed,
3083         simplify purging dead eh edges.
3084         (modify_function): Return true if CFG was changed.
3085         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
3086         was changed.
3087         (ipa_early_sra): Likewise.
3088
3089 2010-07-23  Jie Zhang  <jie@codesourcery.com>
3090
3091         PR target/44290
3092         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
3093         if "naked".
3094         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
3095         false if ! tree_versionable_function_p.
3096
3097 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
3098
3099         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
3100         * ipa-pure-const.c (special_builtlin_state): Remove
3101         BUILT_IN_ARGS_INFO case.
3102         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
3103         * builtins.c (expand_builtin): Likewise.
3104         (expand_builtin_args_info): Remove.
3105         * doc/tm.texi (__builtin_args_info): Remove.
3106         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
3107         * doc/tm.text.in: Likewise.
3108
3109 2010-07-23  Richard Guenther  <rguenther@suse.de>
3110
3111         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
3112         (lto_symtab_merge_decls_2): Likewise.
3113         * tree-ssa.c (useless_type_conversion_p): Likewise.
3114         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3115         * gimple.c (gtc_visited2, gtc_ob2): Remove.
3116         (struct type_pair_d): Make same_p an array indexed by mode.
3117         Update comment.
3118         (lookup_type_pair): Update initialization.
3119         (struct sccs): Adjust same_p type.
3120         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
3121         Adjust.
3122         (print_gimple_types_stats): Likewise.
3123         * gimple.h (enum gtc_mode): New.
3124         (gimple_types_compatible_p): Adjust prototype.
3125
3126 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
3127
3128         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
3129         again after processing insn.
3130
3131 2010-07-23  Jie Zhang  <jie@codesourcery.com>
3132
3133         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
3134         proper words when !tree_versionable_function_p.
3135
3136 2010-07-23  Richard Guenther  <rguenther@suse.de>
3137
3138         PR tree-optimization/45037
3139         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
3140
3141 2010-07-23  Jie Zhang  <jie@codesourcery.com>
3142
3143         * doc/extend.texi: Remove IP2K from the description of naked attribute.
3144         Add MCORE instead.
3145
3146 2010-07-10  Andi Kleen  <ak@linux.intel.com>
3147
3148         PR lto/44992
3149         * lto-opts.c (lto_write_options): Add NULL file_data argument to
3150         lto_get_section_name.
3151         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
3152         * lto-streamer-out.c (produce_asm): Likewise.
3153         (copy_function): Likewise.
3154         (produce_symtab): Likewise.
3155         (produce_asm_for_decls): Likewise.
3156         * lto-streamer.c (lto_get_section_name): Add file_data argument.
3157         Rewrite to add random postfix to LTO sections.
3158         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
3159         (lto_get_section_name): Add file_data argument to prototype.
3160
3161 2010-07-10  Andi Kleen  <ak@linux.intel.com>
3162
3163         * lto-section-in.c (lto_section_name): Synchronize names
3164         with lto_get_section_name.
3165
3166 2010-07-10  Andi Kleen  <ak@linux.intel.com>
3167
3168         * lto-opts.c (lto_read_file_options): Check for missing section.
3169
3170 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
3171
3172         * ira.c (check_allocation): Correctly handle the case where an allocno
3173         with two objects was allocated to a single reg.
3174
3175 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
3176
3177         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
3178         (is_widening_mult_p): Likewise.
3179         (convert_to_widen): Use them.
3180         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
3181         well as integer ones.
3182
3183 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
3184
3185         * alias.c (true_dependence_1): New function, merged version of
3186         true_dependence and canon_true_dependence.
3187         (true_dependence): Simplify.
3188         (canon_true_dependence): Simplify.
3189
3190 2010-07-22  Richard Henderson  <rth@redhat.com>
3191
3192         PR target/45027
3193         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
3194         of V4SFmode for the SSE saves; increase stack alignment if needed.
3195         (ix86_gimplify_va_arg): Don't increase stack alignment here.
3196
3197 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
3198
3199         PR bootstrap/45028
3200         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
3201         call cprop_find_used_regs again via note_uses.
3202
3203 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
3204
3205         * alias.c (get_alias_set): Fix formatting issues.
3206
3207 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
3208
3209         PR middle-end/44878
3210         * stmt.c (expand_value_return):  Call promote_function_mode with
3211         a for_return argument of 2 when returning by reference.
3212
3213 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
3214
3215         PR debug/45024
3216         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
3217         unit DIE if we can find the scope DIE.
3218
3219 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
3220
3221         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
3222         changed.  Initialize OBJECT_SUBWORD.
3223         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
3224         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
3225         all callers changed.
3226         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
3227         (finish_allocno): Likewise.
3228         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
3229         (remove_low_level_allocnos): Likewise.
3230         (update_bad_spill_attribute): Likewise.
3231         (setup_min_max_allocno_live_range_point): Likewise.
3232         (sort_conflict_id_map): Likewise.
3233         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
3234         (ior_hard_reg_conflicts): New function.
3235         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
3236         (compress_conflict_vecs): Iterate over objects, not allocnos.
3237         (ira_add_live_range_to_object): New function.
3238         (object_range_compare_func): Renamed from allocno_range_compare_func.
3239         All callers changed.
3240         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
3241         subobjects, widen the min/max range of the lowest-order object to
3242         potentially include all other such low-order objects.
3243         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
3244         (check_allocation): Likewise.  Use more fine-grained tests for register
3245         conflicts.
3246         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
3247         allocno subobjects.
3248         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
3249         choices about which bits to set in each set.  Don't use
3250         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
3251         using the multiple sets we computed.
3252         (push_allocno_to_stack): Iterate over allocno subobjects.
3253         (all_conflicting_hard_regs_coalesced): New static function.
3254         (setup_allocno_available_regs_num): Use it.
3255         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
3256         subobjects.
3257         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
3258         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
3259         by ALLOCNO_NUM_OBJECTS.
3260         (calculate_spill_cost): Likewise.
3261         (color_pass): Express if statement in a more normal way.
3262         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
3263         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
3264         (setup_slot_coalesced_allocno_live_ranges): Likewise.
3265         (allocno_reload_assign): Likewise.
3266         (ira_reassign_pseudos): Likewise.
3267         (fast_allocation): Likewise.
3268         * ira-conflicts.c (build_conflict_bit_table): Likewise.
3269         (print_allocno_conflicts): Likewise.
3270         (ira_build_conflicts): Likewise.
3271         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
3272         callers changed.  Test subword 0 of each allocno for conflicts.
3273         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
3274         callers changed.  Iterate over allocno subobjects.
3275         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
3276         * ira-int.h (struct ira_allocno): New member: num_objects.
3277         Rename object to objects and change it into an array.
3278         (ALLOCNO_OBJECT): Add new argument N.
3279         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
3280         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
3281         (ior_hard_reg_conflicts): Declare.
3282         (ira_add_live_range_to_object): Declare.
3283         (ira_allocno_object_iterator): New.
3284         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
3285         (FOR_EACH_ALLOCNO_OBJECT): New macro.
3286         * ira-lives.c (objects_live): Renamed from allocnos_live; all
3287         uses changed.
3288         (allocnos_processed): New sparseset.
3289         (make_object_born): Renamed from make_allocno_born; take an
3290         ira_object_t argument.  All callers changed.
3291         (make_object_dead): Renamed from make_allocno_dead; take an
3292         ira_object_t argument.  All callers changed.
3293         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
3294         All callers changed.
3295         (mark_pseudo_regno_live): Iterate over allocno subobjects.
3296         (mark_pseudo_regno_dead): Likewise.
3297         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
3298         functions.
3299         (mark_ref_live): Detect subword accesses and call
3300         mark_pseudo_regno_subword_live as appropriate.
3301         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
3302         (process_bb_nodes_live): Deal with object-related updates first; set
3303         and test bits in allocnos_processed to avoid computing allocno
3304         statistics more than once.
3305         (create_start_finish_chains): Iterate over objects, not allocnos.
3306         (print_object_live_ranges): New function.
3307         (print_allocno_live_ranges): Use it.
3308         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
3309         and objects_live.
3310
3311 2010-07-22  Richard Guenther  <rguenther@suse.de>
3312
3313         PR lto/42451
3314         * gimple.c (gtc_next_dfs_num): New global.
3315         (struct sccs): Make value a union, add integer same_p member.
3316         (gtc_visit): New function.
3317         (gimple_types_compatible_p_1): New function, split out from ...
3318         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
3319         (iterative_hash_gimple_type): Adjust for sccs change.
3320
3321 2010-07-22  Martin Jambor  <mjambor@suse.cz>
3322
3323         PR tree-optimization/44891
3324         * tree-sra.c: Include gimple-pretty-print.h.
3325         (replace_uses_with_default_def_ssa_name): Renamed to
3326         get_repl_default_def_ssa_name, return the new SSA name instead of
3327         replacing the old one.
3328         (sra_modify_assign): Dump a message when removing a load, if the LHS
3329         is an SSA_NAME, do not do any propagation, just set the RHS to a
3330         default definition SSA NAME, type convert if necessary.
3331         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
3332
3333 2010-07-22  Richard Guenther  <rguenther@suse.de>
3334
3335         PR tree-optimization/45017
3336         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
3337         TYPE_PRECISION of integral types in addition to size.
3338
3339 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
3340
3341         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
3342         when no C library is specified.
3343
3344 2010-07-22  Martin Jambor  <mjambor@suse.cz>
3345
3346         * ipa-prop.h (struct ipa_node_params): Updated comment.
3347         (struct ipa_edge_args): Likewise.
3348         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
3349
3350 2010-07-22  Martin Jambor  <mjambor@suse.cz>
3351
3352         * cgraphunit.c (verify_edge_count_and_frequency): New function.
3353         (verify_cgraph_node): Verify frequencies of indirect edges.
3354         * tree-inline.c (tree_function_versioning): Update frequencies of
3355         indirect edges.
3356
3357 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3358
3359         PR target/43698
3360         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
3361         Set *arm_rev to be predicable.
3362
3363 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
3364
3365         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
3366         (LINK_COMMAND_SPEC_A): New.
3367         (DSYMUTIL): New.
3368         (DSYMUTIL_SPEC): New.
3369         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
3370         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
3371
3372 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
3373
3374         * calls.c (load_register_parameters): Move check for zero
3375         sized items so that only the call to
3376         mem_overlaps_already_clobbered_arg_p () is protected.
3377
3378 2010-07-22  Jan Hubicka  <jh@suse.cz>
3379
3380         * ipa-pure-const.c (varying_state): Break out from ...
3381         (get_function_state): ... here; always return varying_state
3382         when state would be NULL otherwise.
3383         (remove_node_data): Do not free varying state.
3384
3385 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
3386
3387         PR bootstrap/44970
3388         PR middle-end/45009
3389         * postreload.c: Include "target.h".
3390         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
3391         into account.
3392         (fixup_debug_insns): Don't copy the rtx.
3393         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
3394         Don't copy when replacing.  Call fixup_debug_insns in the case where
3395         we merged one add with another.
3396         (reload_combine_recognize_pattern): Fail if there aren't any uses.
3397         Try harder to determine whether we're picking a valid index register.
3398         Don't set store_ruid for an insn we're going to scan in the
3399         next iteration.
3400         (reload_combine): Remove unused code.
3401         (reload_combine_note_use): When updating use information for
3402         an old insn, ignore a use that occurs after store_ruid.
3403         * Makefile.in (postreload.o): Update dependencies.
3404
3405         * function.c (record_hard_reg_sets): Restrict the previous change
3406         to cases where the incoming nominal mode is the same as the
3407         incoming promoted mode and everything happens in MODE_INT.
3408
3409 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
3410
3411         PR debug/45015
3412         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
3413         ASM_OPERANDS_OUTPUT_IDX.
3414         (adjust_insn): For inline asm with multiple sets ensure first
3415         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
3416         the insn.
3417
3418 2010-07-21  Richard Henderson  <rth@redhat.com>
3419
3420         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
3421         comparison for avoiding xmm register saves.  Emit the xmm register
3422         saves explicitly.
3423         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
3424         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
3425         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
3426         Remove patterns and the associated splitters.
3427
3428 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
3429
3430         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
3431         and imagine parts of a complex, so that they can have the same
3432         base and fall into the same group.
3433
3434 2010-07-21  Richard Guenther  <rguenther@suse.de>
3435
3436         PR lto/45018
3437         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
3438         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
3439         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
3440
3441 2010-07-21  Martin Jambor  <mjambor@suse.cz>
3442
3443         PR tree-optimization/44900
3444         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
3445         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
3446
3447 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
3448
3449         PR middle-end/44738
3450         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
3451
3452 2010-07-21  Richard Guenther  <rguenther@suse.de>
3453
3454         PR middle-end/45013
3455         * tree-ssa.c (useless_type_conversion_p): Dispatch to
3456         gimple_types_compatible_p only when in lto.
3457         * gimple.c (gimple_types_compatible_p): Use canonical types
3458         to speed up comparison.
3459
3460 2010-07-21  Richard Guenther  <rguenther@suse.de>
3461
3462         * tree-flow.h (referenced_var): Move define ...
3463         * tree-flow-inline.h (referenced_var): ... here as an inline
3464         function.  Assert here ...
3465         * tree-dfa.c (referenced_var_lookup): ... instead of here.
3466         * tree-ssa.c (maybe_optimize_var): Check if the variable
3467         is in referenced vars.
3468         (execute_update_addresses_taken): Remove old broken check.
3469         * gimple-pretty-print.c (pp_points_to_solution): Use
3470         referenced_var_lookup.
3471         * tree-into-ssa.c (dump_decl_set): Likewise.
3472
3473 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
3474
3475         PR debug/45003
3476         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
3477         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
3478         ZERO_EXTEND here.
3479
3480 2010-07-20  Richard Henderson  <rth@redhat.com>
3481
3482         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
3483
3484 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
3485
3486         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
3487         computing the sum of the stack pointer and a large constant.
3488         * config/arm/constraints.md (M): Remove superfluous parentheses.
3489         (Pc): New constraint.
3490
3491 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
3492
3493         PR debug/45006
3494         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
3495         operand's type if exp is tcc_unary class tree.
3496
3497 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
3498
3499         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
3500         Reverse sense of if_then_else condition.
3501
3502 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
3503
3504         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
3505         * config/rs6000/rs6000.c (rs6000_override_options): Set
3506         rs6000_block_move_inline_limit appropriately.
3507         (expand_block_move): Use rs6000_block_move_inline_limit.
3508         * doc/invoke.texi (mblock-move-inline-limit): Document.
3509
3510 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
3511
3512         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
3513         FROM and TO.  All callers changed.  Don't look for tracked uses,
3514         just scan the RTL for DEBUG_INSNs and substitute.
3515         (reload_combine_recognize_pattern): Call fixup_debug_insns.
3516         (reload_combine): Ignore DEBUG_INSNs.
3517
3518 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
3519
3520         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
3521         depth to 8 from 5.
3522
3523         PR debug/45003
3524         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
3525         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
3526         instead of the result's type.
3527
3528 2010-07-20  Richard Guenther  <rguenther@suse.de>
3529
3530         PR tree-optimization/44977
3531         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
3532         SSA form.
3533
3534 2010-07-20  Richard Guenther  <rguenther@suse.de>
3535
3536         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
3537         (lto_symtab_merge_decls_2): Likewise.
3538         * gimple.h (gimple_types_compatible_p): Declare.
3539         * gimple.c (gimple_queue_type_fixup): Remove.
3540         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
3541         (gimple_compatible_complete_and_incomplete_type_p): New function.
3542         (gimple_types_compatible_p): Adjust.
3543         (gimple_register_type): Remove type fixup code.
3544         (print_gimple_types_stats): Adjust.
3545         (free_gimple_type_tables): Likewise.
3546         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
3547         * tree-ssa.c (useless_type_conversion_p): Likewise.
3548
3549 2010-07-20  Richard Guenther  <rguenther@suse.de>
3550
3551         PR middle-end/44971
3552         PR middle-end/44988
3553         * tree-ssa.c (maybe_optimize_var): New function split out from ...
3554         (execute_update_addresses_taken): ... here.
3555         (non_rewritable_mem_ref_base): Likewise.
3556         (execute_update_addresses_taken): Do not iterate over all referenced
3557         vars but just all local decls and parms.
3558         Properly check call and asm arguments and rewrite call arguments.
3559
3560 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
3561
3562         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
3563         to top level.
3564         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
3565         definitions ...
3566         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
3567         New macro.
3568         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
3569
3570 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
3571
3572         * gengtype.c (start_root_entry): New function, split out from
3573         write_root.  Check whether V is null and raise an error if so.
3574         (write_field_root): Check for V being null.  Don't raise an error here;
3575         set V to null instead.
3576         (write_root): Update comment above function.  Use start_root_entry.
3577
3578 2010-07-19  Xinliang David Li  <davidxl@google.com>
3579
3580         PR testsuite/44932
3581         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
3582         def edges.
3583         (find_uninit_use): Add dump.
3584         (is_use_properly_guarded): Ditto.
3585         (warn_uninitialized_phi): Ditto.
3586         (execute_late_warn_uninitialized): Ditto.
3587
3588 2010-07-19  Richard Guenther  <rguenther@suse.de>
3589
3590         PR middle-end/44941
3591         * expr.c (emit_block_move_hints): Move zero size check first.
3592         Move asserts to more useful places.
3593         * calls.c (load_register_parameters): Check for zero size.
3594
3595 2010-07-19  Richard Henderson  <rth@redhat.com>
3596
3597         * tree-optimize.c (execute_all_early_local_passes): New.  Change
3598         cgraph_state here ...
3599         (execute_early_local_optimizations): ... not here.  Remove.
3600         (pass_early_local_passes, pass_all_early_optimizations): Update.
3601
3602 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
3603
3604         * postreload.c (reload_combine_closest_single_use): Ignore the
3605         number of uses for DEBUG_INSNs.
3606         (fixup_debug_insns): New static function.
3607         (reload_combine_recognize_const_pattern): Use it.  Don't let the
3608         main loop be affected by DEBUG_INSNs.
3609         Really disallow moving adds past a jump insn.
3610         (reload_combine_recognize_pattern): Don't update use_ruid here.
3611         (reload_combine_note_use): Do it here.
3612         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
3613
3614 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
3615
3616         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
3617         of a loop.
3618         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
3619
3620 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
3621
3622         * config/i386/darwin.h: Define darwin_emit_branch_islands.
3623         (TARGET_MACHO_BRANCH_ISLANDS): New.
3624         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
3625         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
3626         default value.
3627         * config/i386/i386.c (output_pic_addr_const): Do not emit
3628         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
3629         (x86_output_mi_thunk): Adjust symbol creation.
3630         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
3631         Remove out of date comment.
3632         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
3633         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
3634         (DARWIN_GENERATE_ISLANDS): Ditto.
3635         (output_call):  Do not emit branch islands unless
3636         darwin_emit_branch_islands is set.
3637         * config/darwin.c: Declare darwin_emit_branch_islands.
3638         (machopic_indirect_data_reference): Do not emit unless
3639         darwin_emit_branch_islands is set.
3640         (darwin_override_options): Set darwin_emit_branch_islands
3641         where it is needed.
3642         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
3643
3644 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3645
3646         * doc/sourcebuild.texi (Effective-Target Keywords): Document
3647         sse_runtime, sse2_runtime.
3648
3649 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
3650
3651         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
3652         low half of a single-register SCmode return value before ORing
3653         it with the high half.
3654         * config/mips/mips16.S (MERGE_GPRf): Likewise.
3655
3656 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3657
3658         PR target/44805
3659         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
3660         on all targets.
3661
3662 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
3663
3664         PR target/42235
3665         * postreload.c (reload_cse_move2add): Return bool, true if anything.
3666         changed.  All callers changed.
3667         (move2add_use_add2_insn): Likewise.
3668         (move2add_use_add3_insn): Likewise.
3669         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
3670         reload_combine.
3671         (RELOAD_COMBINE_MAX_USES): Bump to 16.
3672         (last_jump_ruid): New static variable.
3673         (struct reg_use): New members CONTAINING_MEM and RUID.
3674         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
3675         (reload_combine_split_one_ruid, reload_combine_split_ruids,
3676         reload_combine_purge_insn_uses, reload_combine_closest_single_use
3677         reload_combine_purge_reg_uses_after_ruid,
3678         reload_combine_recognize_const_pattern): New static functions.
3679         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
3680         is true for our reg and that we have available index regs.
3681         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
3682         callers changed.  Use them to initialize fields in struct reg_use.
3683         (reload_combine): Initialize last_jump_ruid.  Be careful when to
3684         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
3685         Call reload_combine_recognize_const_pattern.
3686         (reload_combine_note_store): Update REAL_STORE_RUID field.
3687
3688 2010-07-16  Jason Merrill  <jason@redhat.com>
3689
3690         * Makefile.in (opts-common.o): Depend on options.h.
3691
3692 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
3693
3694         * tree.c (build_common_builtin_nodes): Use build_function_type_list
3695         instead of build_function_type.
3696         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
3697         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
3698
3699 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
3700
3701         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
3702         do all the work.
3703         (rs6000_emit_int_cmove): Use function pointers for insn generation.
3704         Don't force values into registers unnecessarily.
3705         (output_isel): Assert that we're not given conditions we can't handle.
3706         Delete corresponding code.
3707         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
3708         scc_comparison_operator constraint.  Permit 0 for the consequent
3709         operand.  Permit any GPR for the alternative operand.
3710         (isel_unsigned_<mode>): Likewise.
3711
3712 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
3713
3714         PR target/44942
3715         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
3716         argument to const_tree.
3717         * config/i386/i386.c (function_arg_advance): If padding needs to be
3718         inserted before argument, increment cum->words by number of padding
3719         words as well.
3720         (contains_aligned_value_p): Change argument to const_tree.
3721         (ix86_function_arg_boundary): Change second argument to const_tree.
3722
3723 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
3724
3725         PR target/42235
3726         * function.c (record_hard_reg_sets): New static function.
3727         (assign_parm_setup_reg): If an optab for extending exists and the
3728         generated code clobbbers no hard regs, emit the insn directly and
3729         create a REG_EQUIV note.
3730
3731 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
3732
3733         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
3734         TREE_CHAIN.
3735         * c-typeck.c (push_init_level): Likewise.
3736         (process_init_element): Likewise.
3737
3738 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
3739
3740         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
3741         (integer_three_node): Add.
3742         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
3743         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
3744         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
3745         of call build_int_cst.
3746         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
3747         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
3748         (find_interesting_uses_address): Ditto.
3749         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
3750         * tree-eh.c (lower_eh_constructs_2): Ditto.
3751         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
3752         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
3753         * expmed.c (expand_divmod): Ditto.
3754         * tree-mudflap.c (mx_register_decls): Ditto.
3755         * varasm.c (array_size_for_constructor): Ditto.
3756         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
3757         * c-parser.c (c_parser_postfix_expression): Ditto.
3758
3759 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
3760
3761         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
3762         New static variables.
3763         (reload_combine_recognize_pattern): New static function, broken out
3764         of reload_combine.
3765         (reload_combine): Use it.  Only initialize first_index_reg and
3766         last_index_reg once.
3767
3768 2010-07-15  Richard Henderson  <rth@redhat.com>
3769
3770         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
3771         when done.
3772
3773 2010-07-15  Jan Hubicka  <jh@suse.cz>
3774
3775         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
3776         comdats for broken gold.
3777         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
3778
3779 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
3780
3781         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
3782
3783 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
3784
3785         * tree.h (DECL_CHAIN): Define.
3786         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3787         * c-decl.c: Likewise.
3788         * c-parser.c: Likewise.
3789         * c-typeck.c: Likewise.
3790         * cfgexpand.c: Likewise.
3791         * cgraph.c: Likewise.
3792         * cgraphunit.c: Likewise.
3793         * combine.c: Likewise.
3794         * config/alpha/alpha.c: Likewise.
3795         * config/arm/arm.c: Likewise.
3796         * config/frv/frv.c: Likewise.
3797         * config/i386/i386.c: Likewise.
3798         * config/i386/winnt-cxx.c: Likewise.
3799         * config/ia64/ia64.c: Likewise.
3800         * config/iq2000/iq2000.c: Likewise.
3801         * config/mep/mep.c: Likewise.
3802         * config/mips/mips.c: Likewise.
3803         * config/pa/som.h: Likewise.
3804         * config/rs6000/rs6000.c: Likewise.
3805         * config/s390/s390.c: Likewise.
3806         * config/sh/sh.c: Likewise.
3807         * config/sh/symbian-cxx.c: Likewise.
3808         * config/sparc/sparc.c: Likewise.
3809         * config/spu/spu.c: Likewise.
3810         * config/stormy16/stormy16.c: Likewise.
3811         * config/vxworks.c: Likewise.
3812         * config/xtensa/xtensa.c: Likewise.
3813         * coverage.c: Likewise.
3814         * dbxout.c: Likewise.
3815         * dwarf2out.c: Likewise.
3816         * emit-rtl.c: Likewise.
3817         * expr.c: Likewise.
3818         * function.c: Likewise.
3819         * gimple-low.c: Likewise.
3820         * gimple-pretty-print.c: Likewise.
3821         * gimplify.c: Likewise.
3822         * integrate.c: Likewise.
3823         * ipa-inline.c: Likewise.
3824         * ipa-prop.c: Likewise.
3825         * ipa-split.c: Likewise.
3826         * ipa-struct-reorg.c: Likewise.
3827         * ipa-type-escape.c: Likewise.
3828         * langhooks.c: Likewise.
3829         * lto-cgraph.c: Likewise.
3830         * omp-low.c: Likewise.
3831         * stor-layout.c: Likewise.
3832         * tree-cfg.c: Likewise.
3833         * tree-complex.c: Likewise.
3834         * tree-dfa.c: Likewise.
3835         * tree-dump.c: Likewise.
3836         * tree-inline.c: Likewise.
3837         * tree-mudflap.c: Likewise.
3838         * tree-nested.c: Likewise.
3839         * tree-object-size.c: Likewise.
3840         * tree-pretty-print.c: Likewise.
3841         * tree-sra.c: Likewise.
3842         * tree-ssa-live.c: Likewise.
3843         * tree-ssa-loop-niter.c: Likewise.
3844         * tree-ssa-math-opts.c: Likewise.
3845         * tree-ssa-reassoc.c: Likewise.
3846         * tree-ssa-sccvn.c: Likewise.
3847         * tree-ssa-structalias.c: Likewise.
3848         * tree-tailcall.c: Likewise.
3849         * tree-vrp.c: Likewise.
3850         * tree.c: Likewise.
3851         * var-tracking.c: Likewise.
3852         * varasm.c: Likewise.
3853
3854 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3855
3856         PR target/44877
3857         * config/spu/spu.c (spu_expand_builtin_1): Allow references
3858         (as well as pointers) as argument to mask_for_load builtins.
3859
3860 2010-07-15  Richard Guenther  <rguenther@suse.de>
3861
3862         PR tree-optimization/44946
3863         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
3864         with accessing only padding properly.
3865
3866 2010-07-15  Jan Hubicka  <jh@suse.cz>
3867
3868         * ipa.c (function_and_variable_visibility): Variables marked as used
3869         should not be localized.
3870
3871 2010-07-15  Jan Hubicka  <jh@suse.cz>
3872
3873         * cgraph.c: Include lto-streamer.h
3874         (change_decl_assembler_name): Work when assembler name hash is at place.
3875         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
3876         be sure to rename it to avoid name clash.
3877         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
3878         Localize hidden symbols only when locally defined.
3879
3880 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
3881
3882         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
3883
3884 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
3885             Kevin F. Quinn  <kevquinn@gentoo.org>
3886
3887         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
3888         * common.opt: Add -Wtrampolines.
3889         * doc/invoke.texi: Add -Wtrampolines.
3890
3891 2010-07-15  Jie Zhang  <jie@codesourcery.com>
3892
3893         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
3894         cortex_a8_issue_ls.
3895
3896 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
3897
3898         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
3899         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
3900
3901 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3902
3903         * config/spu/spu.c (reg_names): Remove prototype.
3904         (call_used_regs): Likewise.
3905
3906 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
3907
3908         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
3909         "unused" with attribute "used".
3910         (__JCR_END__): Likewise.
3911         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
3912         "used" attribute.
3913         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
3914
3915 2010-07-14  Richard Guenther  <rguenther@suse.de>
3916
3917         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
3918         (maybe_fixup_decls): Likewise.
3919         (input_gimple_stmt): Do not fixup anything.
3920         * lto-streamer-out.c (output_gimple_stmt): Make sure all
3921         non-automatic variable uses are wrapped inside a MEM_REF.
3922
3923 2010-07-14  Richard Henderson  <rth@redhat.com>
3924
3925         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
3926         for functions.
3927         * varasm.c (assemble_variable): Remove early exit for functions;
3928         assert that we're given a variable.
3929
3930 2010-07-14  Jie Zhang  <jie@codesourcery.com>
3931
3932         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
3933         cortex_a8_default when neon_type is not none.
3934
3935 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
3936
3937         * lower-subreg.c (subreg_context): New static bitmap.
3938         (decompose_multiword_subregs): Allocate and free it.
3939         (find_decomposable_subregs): Set a bit in it for a register that
3940         occurs in a subreg that changes mode but not size.
3941         (can_decompose_p): Test it instead of non_decomposable_context.
3942
3943 2010-07-14  Richard Guenther  <rguenther@suse.de>
3944
3945         PR tree-optimization/44824
3946         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
3947         is_gimple_mem_ref_addr.
3948         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
3949         non-decl_address_invariant_p addresses.
3950
3951 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
3952
3953         * reload.c (find_reloads): Revert code to penalize small register
3954         classes that was brought in with the IRA merge.
3955
3956 2010-07-14  Richard Guenther  <rguenther@suse.de>
3957
3958         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
3959         as base of ARRAY_REFs.
3960
3961 2010-07-14  Richard Guenther  <rguenther@suse.de>
3962
3963         PR middle-end/44930
3964         * tree-pretty-print.c (do_niy): Do not print a newline.
3965
3966 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
3967
3968         * ira-int.h (struct ira_object): New.
3969         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
3970         (struct ira_allocno): Remove members min, max,
3971         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
3972         conflict_allocnos_num and conflict_vec_p.  Add new member object.
3973         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
3974         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
3975         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
3976         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
3977         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
3978         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
3979         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
3980         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
3981         an ira_object_t rather than ira_allocno_t.  All uses changed.
3982         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
3983         contains a vector of ira_object_t; all uses changed.
3984         (ira_objects_num): Declare variable.
3985         (ira_create_allocno_object): Declare function.
3986         (ira_conflict_vector_profitable_p): Adjust prototype.
3987         (ira_allocate_conflict_vec): Renamed from
3988         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
3989         (ira_allocate_object_conflicts): Renamed from
3990         ira_allocate_allocno_conflicts; first arg now ira_object_t.
3991         (struct ira_object_iterator): New.
3992         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
3993         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
3994         to conflict_vec_p.  All uses changed.
3995         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
3996         Changed to take into account that conflicts are now tracked for
3997         objects.
3998         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
3999         Args changed to accept ira_object_t.  All uses changed.
4000         (allocnos_conflict_p): New static function.
4001         (collected_conflict_objects): Renamed from collected_allocno_objects;
4002         now a vector of ira_object_t.  All uses changed.
4003         (build_conflict_bit_table): Changed to take into account that
4004         conflicts are now tracked for objects.
4005         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
4006         (print_allocno_conflicts, ira_build_conflicts): Likewise.
4007         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
4008         setup_allocno_left_conflicts_size, allocno_reload_assign,
4009         fast_allocation): Likewise.
4010         * ira-lives.c (make_hard_regno_born, make_allocno_born)
4011         process_single_reg_class_operands, process_bb_node_lives): Likewise.
4012         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
4013         Likewise.
4014         * ira-build.c (ira_objects_num): New variable.
4015         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
4016         contains a vector of ira_object_t; all uses changed.
4017         (ira_object_id_map_vec): Corresponding change.
4018         (object_pool): New static variable.
4019         (initiate_allocnos): Initialize it.
4020         (finish_allocnos): Free it.
4021         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
4022         New functions.
4023         (ira_create_allocno): Don't set members that were removed.
4024         (ira_set_allocno_cover_class): Don't change conflict hard regs.
4025         (merge_hard_reg_conflicts): Changed to take into account that
4026         conflicts are now tracked for objects.
4027         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
4028         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
4029         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
4030         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
4031         setup_min_max_conflict_allocno_ids, ):  Likewise.
4032         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
4033         to ira_object_t; all callers changed.
4034         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
4035         to ira_object_t, all callers changed.
4036         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
4037         to ira_object_t, all callers changed.
4038         (conflict_check, curr_conflict_check_tick): Renamed from
4039         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
4040         changed.
4041         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
4042         arg changed to ira_object_t, all callers changed.
4043         (create_cap_allocno): Call ira_create_allocno_object.
4044         (finish_allocno): Free the corresponding object.
4045         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
4046         callers changed.  Adjusted for dealing with objects.
4047         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
4048         dealing with objects.
4049         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
4050
4051         * ira-int.h (struct live_range): Rename allocno member to object
4052         and change type to ira_object_t.
4053         (struct ira_object): New member live_ranges.
4054         (struct ira_allocno): Remove member live_ranges.
4055         (ALLOCNO_LIVE_RANGES): Remove.
4056         (OBJECT_LIVE_RANGES): New macro.
4057         (ira_create_live_range, ira_copy_live_range_list,
4058         ira_merge_live_range_list, ira_live_ranges_intersect_p,
4059         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
4060         * ira-build.c (ira_create_object): Initialize live ranges here.
4061         (ira_create_allocno): Not here.
4062         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
4063         changed to ira_object_t, all callers changed.
4064         (copy_live_range): Rename from copy_allocno_live_range, all callers
4065         changed.
4066         (ira_copy_live_range_list): Rename from
4067         ira_copy_allocno_live_range_list, all callers changed.
4068         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
4069         all callers changed.
4070         (ira_live_ranges_intersect_p): Rename from
4071         ira_allocno_live_ranges_intersect_p, all callers changed.
4072         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
4073         callers changed.
4074         (ira_finish_live_range_list): Rename from
4075         ira_finish_allocno_live_range_list, all callers changed.
4076         (change_object_in_range_list): Rename from change_allocno_in_range_list,
4077         last arg changed to ira_object_t, all callers changed.
4078         (finish_allocno): Changed to expect live ranges in the allocno's object.
4079         (move_allocno_live_ranges, copy_allocno_live_ranges,
4080         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
4081         ira_flattening, ira_build): Likewise.
4082         * ira-color.c (allocnos_have_intersected_live_ranges_p,
4083         slot_coalesced_allocno_live_ranges_intersect,
4084         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
4085         * ira-conflicts.c (build_conflict_bit_table): Likewise.
4086         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4087         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
4088         make_allocno_dead, create_start_finish_chains,
4089         remove_some_program_points_and_update_live_ranges,
4090         ira_debug_live_range_list): Likewise.
4091
4092         * ira-int.h (ira_object_conflict_iterator): Rename from
4093         ira_allocno_conflict_iterator.
4094         (ira_object_conflict_iter_init): Rename from
4095         ira_allocno_conflict_iter_init, second arg changed to
4096         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
4097         FOR_EACH_ALLOCNO_CONFLICT.
4098         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
4099         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
4100         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
4101         * ira-conflicts.c (print_allocno_conflicts): Likewise.
4102
4103 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
4104
4105         PR other/44874
4106         * tree-dump.c (dump_options): Add enumerate_locals entry.
4107         Add TDF_NOID exclusion to all entry.
4108         * tree-dump.h (dump_enumerated_decls): Declare.
4109         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
4110         Don't display type uid.
4111         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
4112         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
4113         * tree-ssa-live.c: Include gimple.h.
4114         (numbered_tree_d): New struct.
4115         (numbered_tree): New typedef.
4116         (DEF_VEC_O (numbered_tree): New.
4117         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
4118         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
4119         (dump_enumerated_decls): Likewise.
4120         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
4121         debug info and flag_dump_final_insns, call dump_enumerated_decls.
4122         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
4123         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
4124
4125 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
4126
4127         * expmed.h (MAX_BITS_PER_WORD): Move to...
4128         * defaults.h (MAX_BITS_PER_WORD): ...here.
4129
4130 2010-07-13  DJ Delorie  <dj@redhat.com>
4131
4132         * config/h8300/h8300.c (h8300_init_once): Default to
4133         -fstrict_volatile_bitfields.
4134
4135         * config/sh/sh.c (sh_override_options): Default to
4136         -fstrict_volatile_bitfields.
4137
4138         * config/rx/rx.c (rx_option_override): New.
4139
4140         * config/m32c/m32c.c (m32c_override_options): Default to
4141         -fstrict_volatile_bitfields.
4142
4143 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
4144
4145         * tree.h (build_function_call_expr): Delete.
4146         (build_call_expr_loc_array): New function.
4147         (build_call_expr_loc_vec): New function.
4148         * tree-flow.h (struct omp_region): Change type of ws_args field
4149         to a VEC.
4150         * builtins.c (build_function_call_expr): Delete.
4151         (build_call_expr_loc_array): New function.
4152         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
4153         (build_call_expr): Likewise.
4154         (build_call_expr_loc_vec): New function.
4155         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
4156         build_function_call_expr.
4157         * expr.c (emutls_var_address): Likewise.
4158         * varasm.c (emutls_common_1): Likewise.
4159         * omp-low.c (expand_omp_atomic_mutex): Likewise.
4160         (expand_omp_taskreg): Adjust for new type of region->ws_args.
4161         (get_ws_args_for): Return a VEC instead of a tree.
4162         (expand_parallel_call): Call build_call_expr_loc_vec instead of
4163         build_function_call_expr.
4164         * stor-layout.c (self_referential_size): Likewise.
4165
4166 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
4167
4168         PR testsuite/44701
4169         * recog.c (constrain_operands): Allow side-effects in memory
4170         operands if either < or > constraint is used, rather than if
4171         both < and > is used.
4172
4173 2010-07-13  Richard Guenther  <rguenther@suse.de>
4174
4175         PR middle-end/44911
4176         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
4177         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
4178         without name.
4179
4180 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
4181
4182         PR target/44761
4183         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
4184         to variable emited.
4185         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
4186         * config/sh/sh.md (symGOT_load): Likewise.
4187         (symDTPOFF2reg): Likewise.
4188         (symTPOFF2reg): Likewise.
4189
4190 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4191
4192         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
4193         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
4194
4195 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4196
4197         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
4198         explanation.
4199         Find ucontext_t * on Solaris 11.
4200         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
4201         Handle new Solaris 11 __sighndlr patterns.
4202
4203 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
4204
4205         PR debug/44901
4206         * vec.h (VEC_block_remove): Fix comment.
4207         * tree-ssa-live.c (remove_unused_locals): Don't use
4208         VEC_unordered_remove on local_decls, instead replace a single
4209         vector element in each iteration if at least one element had
4210         to be removed and VEC_truncate at the end.
4211         * omp-low.c (expand_omp_taskreg): Likewise.
4212
4213 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4214
4215         * c-decl.c (finish_function): Fix typo in comment.
4216
4217 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
4218
4219         PR bootstrap/44921
4220         * postreload.c (move2add_use_add3_insn): Silence gcc warning
4221         on min_regno.
4222
4223 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
4224
4225         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
4226         (simplify_stmt_using_ranges): Use it.
4227
4228 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4229
4230         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
4231         member.  Do not mark as GTY(()).
4232         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
4233         (spu_builtin_decls): New static variable.
4234         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
4235         (spu_init_builtins): Likewise.
4236         (spu_builtin_mul_widen_even): Likewise.
4237         (spu_builtin_mul_widen_odd): Likewise.
4238         (spu_builtin_mask_for_load): Likewise.
4239         (spu_builtin_vec_perm): Likewise.
4240         * config/spu/spu-c.c: Include "target.h".
4241         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
4242         of using spu_builtins[].fndecl.
4243
4244 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4245
4246         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
4247         imply -minterlink-mips16.
4248
4249 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4250
4251         * config/mips/mips.h (mips16_globals): Declare.
4252         (SWITCHABLE_TARGET): Define.
4253         * config/mips/mips.c: Include target-globals.h.
4254         (mips16_globals): New variable.
4255         (mips_set_mips16_mode): Use save_target_globals and
4256         restore_target_globals instead of target_reinit.
4257
4258 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4259
4260         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
4261         to say that the function can be called more than once.
4262         * target-globals.c (save_target_globals): Call init_reg_sets.
4263
4264 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4265
4266         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
4267         * bb-reorder.h: New file.
4268         * bb-reorder.c (default_target_bb_reorder): New variable.
4269         (this_target_bb_reorder): New conditional variable.
4270         (uncond_jump_length): Redefine as a macro.
4271         * target-globals.h (this_target_bb_reorder): Declare.
4272         (target_globals): Add a bb_reorder field.
4273         (restore_target_globals): Copy the bb_reorder field to
4274         this_target_bb-reorder.
4275         * target-globals.c: Include bb-reorder.h.
4276         (default_target_globals): Initialize the bb_reorder field.
4277         (save_target_globals): Likewise.
4278
4279 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4280
4281         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
4282         * gcse.h: New file.
4283         * gcse.c: Include gcse.h.
4284         (default_target_gcse): New variable.
4285         (this_target_gcse): New conditional variable.
4286         (can_copy): Redefine as a macro.
4287         (can_copy_init_p): New macro.
4288         (can_copy_p): Remove can_copy_init_p.
4289         * target-globals.h (this_target_gcse): Declare.
4290         (target_globals): Add a gcse field.
4291         (restore_target_globals): Copy the gcse field to this_target_gcse.
4292         * target-globals.c: Include gcse.h.
4293         (default_target_globals): Initialize the gcse field.
4294         (save_target_globals): Likewise.
4295
4296 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4297
4298         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
4299         and x_ira_prohibited_mode_move_regs_initialized_p.
4300         (ira_prohibited_mode_move_regs): Redefine as a macro.
4301         * ira.c (ira_prohibited_mode_move_regs): Delete.
4302         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
4303
4304 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4305
4306         * reload.h (target_reload): Add x_cached_reg_save_code and
4307         x_cached_reg_restore_code.
4308         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
4309         Redefine as macros.
4310
4311 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4312
4313         * Makefile.in (target-globals.o): Depend on builtins.h.
4314         * builtins.h: New file.
4315         * builtins.c: Include builtins.h.
4316         (default_target_builtins): New variable.
4317         (this_target_builtins): New conditional variable.
4318         (apply_args_mode, apply_result_mode): Redefine as macros.
4319         * target-globals.h (this_target_builtins): Declare.
4320         (target_globals): Add a builtins field.
4321         (restore_target_globals): Copy the builtins field to
4322         this_target_builtins.
4323         * target-globals.c: Include builtins.h.
4324         (default_target_globals): Initialize the builtins field.
4325         (save_target_globals): Likewise.
4326
4327 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4328
4329         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
4330         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
4331         from expmed.c.
4332         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
4333         (alg_hash, alg_hash_used_p): New macros.
4334         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
4335         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
4336         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
4337
4338 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4339
4340         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
4341         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
4342         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
4343         (this_op_costs, costs_classes): Redefine as macros.
4344         (record_reg_classes): Don't take op_costs as a parameter.
4345         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
4346         (scan_one_insn): Update call to record_operand_costs.
4347
4348 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4349
4350         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
4351         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
4352         (target_ira_int): New structure.
4353         (default_target_ira_int): Declare.
4354         (this_target_ira_int): Declare as a variable or define as a macro.
4355         (ira_reg_mode_hard_regset, ira_register_move_cost)
4356         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
4357         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
4358         (prohibited_class_mode_regs, ira_important_classes_num)
4359         (ira_important_classes, ira_reg_class_intersect)
4360         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
4361         (ira_reg_class_union): Redefine as macros.
4362         * ira.h (target_ira): New structure.
4363         (default_target_ira): Declare.
4364         (this_target_ira): Declare as a variable or define as a macro.
4365         (ira_available_class_regs, ira_hard_regno_cover_class)
4366         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
4367         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
4368         (ira_class_hard_regs_num): Redefine as macros.
4369         * ira.c (default_target_ira, default_target_ira_int): New variables.
4370         (this_target_ira, this_target_ira_int): New conditional variables.
4371         (ira_reg_mode_hard_regset, ira_memory_move_cost)
4372         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
4373         (ira_class_subset_p): Delete.
4374         (no_unit_alloc_regs): Redefine as a macro.
4375         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
4376         (ira_class_hard_regs_num, ira_class_hard_reg_index)
4377         (ira_available_class_regs): Delete.
4378         (alloc_reg_class_subclasses): Redefine as a macro.
4379         (ira_reg_class_cover_size, ira_reg_class_cover)
4380         (ira_important_classes_num, ira_important_classes)
4381         (ira_important_class_nums, ira_class_translate): Delete.
4382         (cover_class_order): Document the variable's lifetime.
4383         (reorder_important_classes): Don't set ira_important_class_nums.
4384         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
4385         (ira_reg_class_super_classes, ira_reg_class_union)
4386         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
4387         Delete.
4388         (setup_reg_class_nregs): Don't set ira_max_regs.
4389         (prohibited_class_mode_regs): Delete.
4390         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
4391         (target_globals): Add ira and ira_int fields.
4392         (restore_target_globals): Copy the ira field to this_target_ira
4393         and the ira_int field to this_target_ira_int.
4394         * target-globals.c: Include ira-int.h.
4395         (default_target_globals): Initialize the ira and ira_int fields.
4396         (save_target_globals): Likewise.
4397
4398 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4399
4400         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
4401         * cfgloop.h (target_cfgloop): New structure.
4402         (default_target_cfgloop): Declare.
4403         (this_target_cfgloop): Declare as a variable or define as a macro.
4404         (target_avail_regs, target_clobbered_regs, target_res_regs)
4405         (target_reg_cost, target_spill_cost): Redefine as macros.
4406         * cfgloopanal.c (default_target_cfgloop): New variable.
4407         (this_target_cfgloop): New conditional variable.
4408         (target_avail_regs, target_clobbered_regs, target_res_regs)
4409         (target_reg_cost, target_spill_cost): Delete.
4410         * target-globals.h (this_target_cfgloop): Declare.
4411         (target_globals): Add a cfgloop field.
4412         (restore_target_globals): Copy the cfgloop field to
4413         this_target_cfgloop.
4414         * target-globals.c: Include cfgloop.h.
4415         (default_target_globals): Initialize the cfgloop field.
4416         (save_target_globals): Likewise.
4417
4418 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4419
4420         * regs.h (target_regs): Add x_direct_load, x_direct_store and
4421         x_float_extend_from_mem.
4422         (direct_load, direct_store, float_extend_from_mem): New macros.
4423         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
4424
4425 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4426
4427         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
4428         (target-globals.o): Depend on $(LIBFUNCS_H).
4429         * libfuncs.h: Include hashtab.h.
4430         (libfunc_entry): Moved from optabs.c.
4431         (target_libfuncs): New structure.
4432         (default_target_libfuncs): Declare.
4433         (this_target_libfuncs): Declare as a variable or define as a macro.
4434         (libfunc_table): Redefine as a macro.
4435         * optabs.c (default_target_libfuncs): New variable.
4436         (this_target_libfuncs): New conditional variable.
4437         (libfunc_table): Delete.
4438         (libfunc_entry): Moved to optabs.h.
4439         (libfunc_hash): Redefine as a macro.
4440         (hash_libfunc, eq_libfunc): Fix comments.
4441         (init_optabs): Use libfunc_hash to detect cases where the function
4442         has already been called.  Clear the hash table instead of
4443         recreating it.
4444         * target-globals.h (this_target_libfuncs): Declare.
4445         (target_globals): Add a libfuncs field.
4446         (restore_target_globals): Copy the libfuncs field to
4447         this_target_libfuncs.
4448         * target-globals.c: Include libfuncs.h.
4449         (default_target_globals): Initialize the libfuncs field.
4450         (save_target_globals): Likewise.
4451
4452 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4453
4454         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
4455         in all dependency lists.
4456
4457 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4458
4459         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
4460         * optabs.h (target_optabs): New structure.
4461         (default_target_optabs): Declare.
4462         (this_target_optabs): Declare as a variable or define as a macro.
4463         (optab_table, convert_optab_table, direct_optab_table): Redefine
4464         as macros.
4465         * optabs.c (default_target_optabs): New variable.
4466         (this_target_optabs): New conditional variable.
4467         (optab_table, convert_optab_table, direct_optab_table): Delete.
4468         * target-globals.h (this_target_optabs): Declare.
4469         (target_globals): Add a optabs field.
4470         (restore_target_globals): Copy the optabs field to
4471         this_target_optabs.
4472         * target-globals.c: Include expr.h and optabs.h.
4473         (default_target_globals): Initialize the optabs field.
4474         (save_target_globals): Likewise.
4475
4476 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4477
4478         * flags.h (target_flagstate): Add x_flag_excess_precision.
4479         (flag_excess_precision): Redefine as a macro.
4480         * toplev.c (flag_excess_precision): Delete.
4481
4482 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4483
4484         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
4485         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
4486         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
4487         (no_caller_save_reg_set): Redefine as a macro.
4488         * reload.h (target_reload): Add x_caller_save_initialized_p and
4489         x_regno_save_mode.
4490         (caller_save_initialized_p): Redefine as a macro.
4491         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
4492         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
4493         (regno_save_mode): Redefine as a macro.
4494
4495 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4496
4497         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
4498         * expmed.h: New file.
4499         * expmed.c (default_target_costs): New variable.
4500         (this_target_costs): New conditional variable.
4501         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
4502         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
4503         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
4504         * target-globals.h (this_target_expmed): Declare.
4505         (target_globals): Add a expmed field.
4506         (restore_target_globals): Copy the expmed field to
4507         this_target_expmed.
4508         * target-globals.c: Include expmed.h.
4509         (default_target_globals): Initialize the expmed field.
4510         (save_target_globals): Likewise.
4511
4512 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4513
4514         * Makefile.in (target-globals.o): Depend on reload.h.
4515         * reload.h (target_reload): New structure.
4516         (default_target_reload): Declare.
4517         (this_target_reload): Declare as a variable or define as a macro.
4518         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
4519         * reload1.c (default_target_reload): New variable
4520         (this_target_reload): New conditional variable.
4521         (indirect_symref_ok, double_reg_address_ok): Delete.
4522         (spill_indirect_levels): Redefine as a macro.
4523         * target-globals.h (this_target_reload): Declare.
4524         (target_globals): Add a reload field.
4525         (restore_target_globals): Copy the reload field to
4526         this_target_reload.
4527         * target-globals.c: Include hard-reg-set.h.
4528         (default_target_globals): Initialize the reload field.
4529         (save_target_globals): Likewise.
4530
4531 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4532
4533         * rtl.h (target_rtl): Add x_static_reg_base_value.
4534         * alias.c (static_reg_base_value): Redefine as a macro.
4535
4536 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4537
4538         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
4539         (GTFILES): Remove reginfo.c.
4540         * rtl.h (target_rtl): Add x_top_of_stack.
4541         (top_of_stack): New macro.
4542         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
4543         (top_of_stack): Delete.
4544
4545 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4546
4547         * regs.h (target_regs): Add x_hard_regs_of_mode,
4548         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
4549         x_may_move_out_cost and x_last_mode_for_init_move_cost.
4550         (have_regs_of_mode, contains_reg_of_mode, move_cost)
4551         (may_move_in_cost, may_move_out_cost): Redefine as macros.
4552         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
4553         (may_move_in_cost, may_move_out_cost): Delete.
4554         (last_mode_for_init_move_cost): Redefine as a macro.
4555
4556 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4557
4558         * hard-reg-set.h (target_hard_regs): New structure.
4559         (default_target_hard_regs): Declare.
4560         (this_target_hard_regs): Declare as a variable or define as a macro.
4561         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
4562         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
4563         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
4564         (reg_class_size, reg_class_subclasses, reg_class_subunion)
4565         (reg_class_superunion, reg_names): Redefine as macros.
4566         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
4567         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
4568         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
4569         (reg_class_contents, reg_class_size, reg_class_subclasses)
4570         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
4571         (default_target_hard_regs): New variable
4572         (this_target_hard_regs, initial_call_really_used_regs)
4573         (initial_reg_alloc_order): New conditional variables.
4574         (initial_reg_names): New variable.
4575         (init_reg_sets): Assert that initial_call_really_used_regs,
4576         initial_reg_alloc_order and initial_reg_names
4577         are all the same size as their variable counterparts.  Use them to
4578         initialize those counterparts.
4579         * target-globals.h (this_target_hard_regs): Declare.
4580         (target_globals): Add a hard_regs field.
4581         (restore_target_globals): Copy the hard_regs field to
4582         this_target_hard_regs.
4583         * target-globals.c: Include hard-reg-set.h.
4584         (default_target_globals): Initialize the hard_regs field.
4585         (save_target_globals): Likewise.
4586
4587 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4588
4589         * Makefile.in (target-globals.o): Depend on $(RTL_H).
4590         * rtl.h (target_rtl): New structure.
4591         (default_target_rtl): Declare.
4592         (this_target_rtl): Declare as a variable or define as a macro.
4593         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
4594         Redefine as macros.
4595         * emit-rtl.c (default_target_rtl): New variable.
4596         (this_target_rtl): New conditional variable.
4597         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
4598         (return_address_pointer_rtx): Delete.
4599         (initial_regno_reg_rtx): New macro.
4600         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
4601         (init_emit_regs): Likewise.
4602         * target-globals.h (this_target_rtl): Declare.
4603         (target_globals): Add a rtl field.
4604         (restore_target_globals): Copy the rtl field to this_target_rtl.
4605         * target-globals.c: Include rtl.h.
4606         (default_target_globals): Initialize the rtl field.
4607         (save_target_globals): Likewise.
4608
4609 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4610
4611         * Makefile.in (target-globals.o): Depend on $(REGS_H).
4612         * regs.h (target_reg_modes): New structure.
4613         (default_target_reg_modes): Declare.
4614         (this_target_reg_modes): Declare as a variable or define as a macro.
4615         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
4616         * reginfo.c (default_target_reg_modes): New variable.
4617         (this_target_reg_modes): New conditional variable.
4618         (hard_regno_nregs, reg_raw_mode): Delete.
4619         * target-globals.h (this_target_regs): Declare.
4620         (target_globals): Add a regs field.
4621         (restore_target_globals): Copy the regs field to this_target_regs.
4622         * target-globals.c: Include regs.h.
4623         (default_target_globals): Initialize the regs field.
4624         (save_target_globals): Likewise.
4625
4626 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4627
4628         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
4629         * doc/tm.texi: Regenerate.
4630         * Makefile.in (OBJS-common): Add target-globals.o.
4631         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
4632         and target-globals.h.
4633         (target-globals.o): New rule.
4634         (GTFILES): Include $(srcdir)/target-globals.h.
4635         * defaults.h (SWITCHABLE_TARGET): Define.
4636         * gengtype.c (open_base_files): Add target-globals.h to the
4637         list of includes.
4638         * target-globals.h: New file.
4639         * target-globals.c: Likewise.
4640
4641         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
4642         * flags.h (target_flag_state): New structure.
4643         (default_target_flag_state): Declare.
4644         (this_target_flag_state): Declare as a variable or define as a macro.
4645         (align_loops_log): Redefine as a macro.
4646         (align_loops_max_skip, align_jumps_log): Likewise.
4647         (align_jumps_max_skip, align_labels_log): Likewise.
4648         (align_labels_max_skip, align_functions_log): Likewise.
4649         * toplev.c (default_target_flag_state): New variable.
4650         (this_target_flag_state): New conditional variable.
4651         (align_loops_log): Delete.
4652         (align_loops_max_skip, align_jumps_log): Likewise.
4653         (align_jumps_max_skip, align_labels_log): Likewise.
4654         (align_labels_max_skip, align_functions_log): Likewise.
4655         * target-globals.h (this_target_flag_state): Declare.
4656         (target_globals): Add a flag_state field.
4657         (restore_target_globals): Copy the flag_state field to
4658         this_target_flag_state.
4659         * target-globals.c: Include flags.h.
4660         (default_target_globals): Initialize the flag_state field.
4661         (save_target_globals): Likewise.
4662
4663 2010-07-12  Jie Zhang  <jie@codesourcery.com>
4664
4665         * postreload.c (reg_symbol_ref[]): New.
4666         (move2add_use_add2_insn): New.
4667         (move2add_use_add3_insn): New.
4668         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
4669         (move2add_note_store): Likewise.
4670
4671 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
4672
4673         PR rtl-optimization/44752
4674         * genautomata.c (main): Don't emit an empty file even if there
4675         is no automaton.
4676
4677 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4678
4679         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
4680         ix86_solaris_return_in_memory.
4681         * config/i386-protos.h: Reflect this.
4682         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
4683         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
4684         Move ...
4685         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
4686
4687 2010-07-12  Jie Zhang  <jie@codesourcery.com>
4688
4689         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
4690         align the stack when it's going to be saved.
4691
4692 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4693
4694         PR pch/14940
4695         * config/host-solaris.c (mmap_fixed): New function.
4696         (sol_gt_pch_get_address): Use it.
4697         (sol_gt_pch_use_address): Likewise.
4698
4699 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4700
4701         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
4702         pentiumpro on Solaris 8 and 9/x86.
4703         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
4704         Document SSE/SSE2 support.
4705         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
4706
4707 2010-07-12  Andi Kleen  <ak@linux.intel.com>
4708
4709         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
4710         instead of gcc_assert to print better error message for multiple
4711         prevailing defs.
4712
4713 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
4714
4715         * config/i386/i386.c (ix86_asm_output_function_label): Change format
4716         string placeholder from 0x%x to %#x.
4717         (ix86_code_end): Use putc to output '\n'.
4718         (ix86_print_operand) <case ';'>: Use putc to output ';'.
4719
4720 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
4721
4722         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
4723         in directive -export.
4724
4725 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
4726
4727         * reginfo.h (reg_classes_intersect_p): Change arguments type to
4728         reg_class_t.
4729         * rtl.h (reg_classes_intersect_p): Adjust prototype.
4730
4731         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
4732         Remove macros.
4733         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
4734         rs6000_memory_move_cost): Remove
4735         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
4736         TARGET_MEMORY_MOVE_COST): Define.
4737         (rs6000_register_move_cost): Make static. Change arguments type from
4738         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
4739         (rs6000_memory_move_cost): Make static. Change arguments type from
4740         'enum reg_class' to reg_class_t.
4741
4742 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
4743
4744         PR middle-end/42505
4745         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
4746         lookup code into....
4747         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
4748         new functions.
4749         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
4750         * cfgloopanal.c (target_clobbered_regs): Define.
4751         (init_set_costs): Initialize target_clobbered_regs.
4752         (estimate_reg_pressure_cost): Add call_p argument.  When true,
4753         adjust the number of available registers to exclude the
4754         call-clobbered registers.
4755         * cfgloop.h (target_clobbered_regs): Declare.
4756         (estimate_reg_pressure_cost): Adjust declaration.
4757         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
4758         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
4759         (determine_set_costs): Dump target_clobbered_regs.
4760         (loop_body_includes_call): New function.
4761         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
4762         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
4763         call_p flag through.
4764         (best_gain_for_invariant): Likewise.
4765         (find_invariants_to_move): Likewise.
4766         (move_single_loop_invariants): Likewise, using already-computed
4767         has_call field.
4768
4769 2010-07-10  Richard Guenther  <rguenther@suse.de>
4770             Joern Rennecke  <joern.rennecke@embecosm.com>
4771
4772         PR debug/44832
4773         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
4774         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
4775         unless they have DECL_IGNORED_P set.
4776
4777 2010-07-10  Richard Guenther  <rguenther@suse.de>
4778
4779         PR lto/44889
4780         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
4781         helper function.
4782         (gimple_types_compatible_p): Similar to pointed-to
4783         types allow and merge a mix of complete and incomplete aggregate.
4784         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
4785         (iterative_hash_gimple_type): Adjust for that.
4786
4787 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
4788
4789         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
4790
4791 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
4792
4793         PR objc/44140
4794         * config/darwin.c (output_objc_section_asm_op): Save and restore
4795         section when outputting ObjC section list.
4796
4797 2010-07-09  Jan Hubicka  <jh@suse.cz>
4798
4799         * lto-streamer-out.c (produce_symtab): Do not write alias
4800         cgraph/varpool nodes.
4801
4802 2010-07-09  Jan Hubicka  <jh@suse.cz>
4803
4804         * tree-inline.c (declare_return_variable): Fix ICE while
4805         inlining DECL_BY_VALUE function not in SSA form
4806
4807 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
4808
4809         PR tree-optimization/44576
4810         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
4811         New.  Pull out from is_loop_prefetching_profitable to implement
4812         the trip count to ahead ratio heuristic.
4813         (mem_ref_count_reasonable_p): New.  Pull out from
4814         is_loop_prefetching_profitable to implement the instruction to
4815         memory reference ratio heuristic.  Also consider not reasonable if
4816         the memory reference count is above a threshold (to avoid
4817         explosive compilation time.
4818         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
4819         is_loop_prefetching_profitable to implement the instruction to
4820         prefetch ratio heuristic.
4821         (is_loop_prefetching_profitable): Removed.
4822         (loop_prefetch_arrays): Distribute the cost analysis across the
4823         function to allow early exit of the prefetch analysis.
4824         is_loop_prefetching_profitable is splitted into three functions,
4825         with each one called as early as possible.
4826         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
4827         number of memory references in a loop is considered too many.
4828
4829 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
4830
4831         * reload.c (find_reloads): Don't clear badop if we have a winreg
4832         alternative, but not win, and the class only has fixed regs.
4833         * hard-reg-set.h (class_only_fixed_regs): Declare.
4834         * reginfo.c (class_only_fixed_regs): New array.
4835         (init_reg_sets_1): Initialize it.
4836         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
4837         discourage alternatives using the stack pointer.
4838
4839         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
4840
4841         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
4842
4843         * config/arm/arm.md (cbranchqi4): Fix array size.
4844         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
4845         calculating length.
4846
4847 2010-07-09  Richard Guenther  <rguenther@suse.de>
4848
4849         * gimple.c (struct type_fixup_s): New struct and VEC type.
4850         (gimple_register_type_fixups): New static global.
4851         (gimple_queue_type_fixup): New function.
4852         (gimple_types_compatible_p): Queue type fixups instead of
4853         applying them here.
4854         (gimple_register_type): Apply queued fixups for the
4855         canonical type.  Empty the type fixup queue.
4856
4857 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
4858
4859         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
4860         * configure: Regenerate.
4861         * config.in: Ditto.
4862
4863 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
4864             Denys Vlasenko  <dvlasenk@redhat.com>
4865             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4866
4867         PR tree-optimization/28632
4868         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
4869         (extract_range_from_binary_expr): Further optimize
4870         BIT_AND_EXPR and BIT_IOR_EXPR.
4871
4872 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
4873
4874         * tree-if-conv.c (fold_or_predicates): New.
4875         (add_to_predicate_list): Call it.
4876
4877 2010-07-09  Richard Guenther  <rguenther@suse.de>
4878
4879         PR middle-end/44890
4880         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
4881         if base is a pointer.
4882         * tree-cfg.c (verify_expr): Update MEM_REF checking.
4883
4884 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
4885
4886         PR target/44877
4887         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
4888         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
4889         builtin mask for load/store builtins.
4890
4891 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
4892
4893         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
4894         for "lock addl".
4895         * configure: Regenerate.
4896         * config/i386/i386.c (ix86_print_operand) <case ';'>:
4897         Remove TARGET_MACHO.
4898
4899 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
4900
4901         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
4902         default ISA flags.
4903         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
4904
4905 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
4906
4907         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
4908
4909 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
4910
4911         * config/picochip/picochip.md (commsTestPort): Emit more
4912         efficient sequence for tstport instruction.
4913
4914 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
4915
4916         * config/i386/i386.c (ix86_veclib_handler): Make static.
4917
4918 2010-07-09  Richard Guenther  <rguenther@suse.de>
4919
4920         PR tree-optimization/44852
4921         * tree-ssa-alias.c: Include toplev.h for exact_log2.
4922         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
4923         in MEM_REF.
4924         (indirect_refs_may_alias_p): Likewise.
4925         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
4926
4927 2010-07-09  Richard Guenther  <rguenther@suse.de>
4928
4929         PR tree-optimization/44882
4930         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
4931         sets do conflict.
4932         (vectorizable_load): Likewise.
4933
4934 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
4935
4936         PR target/40657
4937         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
4938         All callers changed.
4939         Handle the case when we're called for the epilogue.
4940         (thumb_unexpanded_epilogue): Use it.
4941         (thumb1_expand_epilogue): Likewise.
4942
4943 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
4944
4945         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
4946         both ranges are range_int_cst_p with non-negative minimum,
4947         try harder to derive smaller range.
4948
4949 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4950
4951         * genrecog.c: Include diagnostic-core.h before toplev.h.
4952         * genoutput.c: Likewise.
4953         * genextract.c: Likewise.
4954         * genautomata.c: Likewise.
4955         * genemit.c: Likewise.
4956         * genpeep.c: Likewise.
4957         * genattrtab.c: Likewise.
4958         * genconditions.c: Likewise.
4959         * genpreds.c: Likewise.
4960
4961 2010-07-08  Andi Kleen  <ak@linux.intel.com>
4962
4963         * lto-section-in.c (lto_section_name): Add missing comma.
4964
4965 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
4966
4967         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
4968         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
4969         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
4970         (ia64_override_options): Rename to...
4971         (ia64_option_override): ... this one. Make static.
4972
4973 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
4974
4975         PR middle-end/44843
4976         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
4977         pointed-to type of the offset in a MEM_REF to compute the alignment.
4978
4979 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
4980
4981         * final.c (final_scan_insn): Replace
4982         TARGET_UNWIND_INFO macro check by unwind_emit
4983         hook NULL check.
4984         * targhooks.c (default_unwind_emit): Removed.
4985         * targhooks.h (default_unwind_emit): Likewise.
4986         * target.def (unwind_emit): Set default value to NULL.
4987
4988         * config/i386/i386-protos.h (ix86_asm_output_function_label):
4989         New prototype.
4990         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
4991         for NULL fntype argument and allow 64-bit targets.
4992         (ix86_asm_output_function_label): New function.
4993         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
4994         (ix86_handle_fndecl_attribute): Likewise.
4995         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
4996         * doc/doc/tm.texi: Regenerated.
4997         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
4998         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
4999         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
5000         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
5001         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
5002         * config/elfos.h: Likewise.
5003         * config/i386/cygming.h: Likewise.
5004         * config/netbsd-aout.h: Likewise.
5005         * config/openbsd.h: Likewise.
5006         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
5007         by ix86_asm_output_function_label function call.
5008         * varasm.c (assemble_start_function): Use
5009         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
5010
5011 2010-07-08  Jan Hubicka  <jh@suse.cz>
5012
5013         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
5014         New function.
5015         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
5016         Declare.
5017         * ipa-cp.c (ipcp_estimate_growth): Use it.
5018         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
5019         Likewise.
5020
5021 2010-07-08  Jan Hubicka  <jh@suse.cz>
5022
5023         * tree-inline.c (declare_return_variable): Allocate annotation for new
5024         temporary.
5025
5026 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
5027
5028         PR tree-optimization/44710
5029         * tree-if-conv.c (parse_predicate): New.
5030         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
5031         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
5032
5033 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
5034
5035         * common.opt (ftree-loop-if-convert): New flag.
5036         * doc/invoke.texi (ftree-loop-if-convert): Documented.
5037         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
5038         when flag_tree_loop_if_convert is set.
5039
5040 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
5041
5042         * config/i386/i386.c: Use short syntax for function calls
5043         through function pointers.
5044         * config/i386/i386.md: Ditto.
5045
5046 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5047
5048         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
5049
5050 2010-07-08  Richard Guenther  <rguenther@suse.de>
5051
5052         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
5053         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
5054
5055 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
5056
5057         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
5058         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
5059         (loc_list_from_tree): Likewise.
5060         (output_loc_operands): Handle outputting DW_OP_const[48]u
5061         with loc->dtprel set.
5062         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
5063
5064 2010-07-08  Jan Hubicka  <jh@suse.cz>
5065
5066         * ipa.c: Include pointer-set.h
5067         (cgraph_externally_visible_p): New attribute ALIASED;
5068         when in LTO, hidden symbols are local unless they are aliased.
5069         (function_and_variable_visibility): Compute aliased nodes;
5070         handle LTO and hidden symbol on functions and vars.
5071         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
5072         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
5073
5074 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5075
5076         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
5077         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5078         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5079         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5080         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5081         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
5082         (ix86_gen_probe_stack_range): Likewise.
5083         (override_options): Set them.
5084         (ix86_target_stack_probe): New function.
5085         (ix86_compute_frame_layout): Force use of push instructions to
5086         save registers if stack checking with probes is enabled.
5087         (get_scratch_register_on_entry): New function.
5088         (release_scratch_register_on_entry): Likewise.
5089         (ix86_adjust_stack_and_probe): Likewise.
5090         (output_adjust_stack_and_probe): Likewise.
5091         (ix86_emit_probe_stack_range): Likewise.
5092         (output_probe_stack_range): Likewise.
5093         (ix86_expand_prologue): Emit stack checking code if static built-in
5094         stack checking is enabled.
5095         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
5096         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
5097         (output_adjust_stack_and_probe): Likewise.
5098         (output_probe_stack_range): Likewise.
5099         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
5100         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
5101         TARGET_STACK_PROBE.
5102         (allocate_stack_worker_64): Likewise.
5103         (allocate_stack): Likewise.
5104         (adjust_stack_and_probe): New insn.
5105         (probe_stack_range): Likewise.
5106
5107 2010-07-08  Richard Guenther  <rguenther@suse.de>
5108
5109         PR tree-optimization/44831
5110         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
5111         a MEM_REF preserving TBAA info of the original dereference.
5112         Dereference the original pointer if the address is not invariant.
5113         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
5114         at least one invariant address that we are going to dereference.
5115
5116 2010-07-08  Richard Guenther  <rguenther@suse.de>
5117
5118         PR tree-optimization/44861
5119         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
5120         information when building MEM_REFs.
5121         (vectorizable_load): Likewise.
5122         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
5123
5124 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5125
5126         * config/sol2-c.c: Do not include diagnostic-core.h.
5127
5128 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5129
5130         PR bootstrap/44768
5131         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
5132         with respect to current_function_decl. Pass decl of the function.
5133         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
5134         * ipa-inline.c (compute_inline_parameters): Pass decl to
5135         estimated_stack_frame_size.
5136
5137 2010-07-08  Richard Guenther  <rguenther@suse.de>
5138
5139         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
5140         New function.
5141         (valueize_refs): Call it.
5142
5143 2010-07-08  Richard Guenther  <rguenther@suse.de>
5144
5145         PR rtl-optimization/44838
5146         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
5147         SSA form do not use pointer equivalence.
5148
5149 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5150
5151         * dwarf2out.c (AT_linkage_name): Delete.
5152         (add_linkage_attr): New function.
5153         (add_linkage_name): Call it to emit the linkage attribute.
5154         (dwarf2out_finish): Likewise.
5155         (move_linkage_attr): Explicitly accept both attribute variants.
5156
5157 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5158
5159         * toplev.h: Do not include diagnostic-core.h.
5160         Include diagnostic-core.h in every file that includes toplev.h.
5161         * c-tree.h: Do not include toplev.h.
5162         * pretty-print.h: Update comment.
5163         * Makefile.in: Update dependencies.
5164         * alias.c: Include diagnostic-core.h in every file that includes
5165         toplev.h.
5166         * attribs.c: Likewise.
5167         * auto-inc-dec.c: Likewise.
5168         * bb-reorder.c: Likewise.
5169         * bt-load.c: Likewise.
5170         * caller-save.c: Likewise.
5171         * calls.c: Likewise.
5172         * cfg.c: Likewise.
5173         * cfganal.c: Likewise.
5174         * cfgbuild.c: Likewise.
5175         * cfgcleanup.c: Likewise.
5176         * cfghooks.c: Likewise.
5177         * cfgloop.c: Likewise.
5178         * combine.c: Likewise.
5179         * config/alpha/alpha.c: Likewise.
5180         * config/arc/arc.c: Likewise.
5181         * config/arm/arm.c: Likewise.
5182         * config/arm/pe.c: Likewise.
5183         * config/avr/avr.c: Likewise.
5184         * config/bfin/bfin.c: Likewise.
5185         * config/cris/cris.c: Likewise.
5186         * config/crx/crx.c: Likewise.
5187         * config/darwin-c.c: Likewise.
5188         * config/darwin.c: Likewise.
5189         * config/fr30/fr30.c: Likewise.
5190         * config/frv/frv.c: Likewise.
5191         * config/h8300/h8300.c: Likewise.
5192         * config/host-darwin.c: Likewise.
5193         * config/i386/i386.c: Likewise.
5194         * config/i386/netware.c: Likewise.
5195         * config/i386/nwld.c: Likewise.
5196         * config/i386/winnt-cxx.c: Likewise.
5197         * config/i386/winnt-stubs.c: Likewise.
5198         * config/i386/winnt.c: Likewise.
5199         * config/ia64/ia64-c.c: Likewise.
5200         * config/ia64/ia64.c: Likewise.
5201         * config/iq2000/iq2000.c: Likewise.
5202         * config/lm32/lm32.c: Likewise.
5203         * config/m32c/m32c-pragma.c: Likewise.
5204         * config/m32c/m32c.c: Likewise.
5205         * config/m32r/m32r.c: Likewise.
5206         * config/m68hc11/m68hc11.c: Likewise.
5207         * config/m68k/m68k.c: Likewise.
5208         * config/mcore/mcore.c: Likewise.
5209         * config/mep/mep-pragma.c: Likewise.
5210         * config/mep/mep.c: Likewise.
5211         * config/mmix/mmix.c: Likewise.
5212         * config/mn10300/mn10300.c: Likewise.
5213         * config/moxie/moxie.c: Likewise.
5214         * config/pa/pa.c: Likewise.
5215         * config/pdp11/pdp11.c: Likewise.
5216         * config/picochip/picochip.c: Likewise.
5217         * config/rs6000/rs6000-c.c: Likewise.
5218         * config/rs6000/rs6000.c: Likewise.
5219         * config/rx/rx.c: Likewise.
5220         * config/s390/s390.c: Likewise.
5221         * config/score/score.c: Likewise.
5222         * config/score/score3.c: Likewise.
5223         * config/score/score7.c: Likewise.
5224         * config/sh/sh.c: Likewise.
5225         * config/sh/symbian-base.c: Likewise.
5226         * config/sh/symbian-c.c: Likewise.
5227         * config/sh/symbian-cxx.c: Likewise.
5228         * config/sol2-c.c: Likewise.
5229         * config/sol2.c: Likewise.
5230         * config/sparc/sparc.c: Likewise.
5231         * config/spu/spu.c: Likewise.
5232         * config/stormy16/stormy16.c: Likewise.
5233         * config/v850/v850-c.c: Likewise.
5234         * config/v850/v850.c: Likewise.
5235         * config/vax/vax.c: Likewise.
5236         * config/vxworks.c: Likewise.
5237         * config/xtensa/xtensa.c: Likewise.
5238         * convert.c: Likewise.
5239         * cse.c: Likewise.
5240         * cselib.c: Likewise.
5241         * dbgcnt.c: Likewise.
5242         * dbxout.c: Likewise.
5243         * ddg.c: Likewise.
5244         * dominance.c: Likewise.
5245         * emit-rtl.c: Likewise.
5246         * explow.c: Likewise.
5247         * expmed.c: Likewise.
5248         * fixed-value.c: Likewise.
5249         * fold-const.c: Likewise.
5250         * fwprop.c: Likewise.
5251         * gcse.c: Likewise.
5252         * ggc-common.c: Likewise.
5253         * ggc-page.c: Likewise.
5254         * ggc-zone.c: Likewise.
5255         * gimple-low.c: Likewise.
5256         * gimplify.c: Likewise.
5257         * graph.c: Likewise.
5258         * haifa-sched.c: Likewise.
5259         * ifcvt.c: Likewise.
5260         * implicit-zee.c: Likewise.
5261         * integrate.c: Likewise.
5262         * ira-build.c: Likewise.
5263         * ira-color.c: Likewise.
5264         * ira-conflicts.c: Likewise.
5265         * ira-costs.c: Likewise.
5266         * ira-lives.c: Likewise.
5267         * ira.c: Likewise.
5268         * lists.c: Likewise.
5269         * loop-doloop.c: Likewise.
5270         * loop-iv.c: Likewise.
5271         * lto-opts.c: Likewise.
5272         * lto-symtab.c: Likewise.
5273         * main.c: Likewise.
5274         * modulo-sched.c: Likewise.
5275         * optabs.c: Likewise.
5276         * params.c: Likewise.
5277         * plugin.c: Likewise.
5278         * postreload-gcse.c: Likewise.
5279         * postreload.c: Likewise.
5280         * predict.c: Likewise.
5281         * profile.c: Likewise.
5282         * real.c: Likewise.
5283         * regcprop.c: Likewise.
5284         * reginfo.c: Likewise.
5285         * regmove.c: Likewise.
5286         * reorg.c: Likewise.
5287         * resource.c: Likewise.
5288         * rtl.c: Likewise.
5289         * rtlanal.c: Likewise.
5290         * sched-deps.c: Likewise.
5291         * sched-ebb.c: Likewise.
5292         * sched-rgn.c: Likewise.
5293         * sdbout.c: Likewise.
5294         * sel-sched-dump.c: Likewise.
5295         * sel-sched-ir.c: Likewise.
5296         * simplify-rtx.c: Likewise.
5297         * stmt.c: Likewise.
5298         * stor-layout.c: Likewise.
5299         * store-motion.c: Likewise.
5300         * targhooks.c: Likewise.
5301         * tree-cfg.c: Likewise.
5302         * tree-cfgcleanup.c: Likewise.
5303         * tree-dump.c: Likewise.
5304         * tree-eh.c: Likewise.
5305         * tree-inline.c: Likewise.
5306         * tree-nomudflap.c: Likewise.
5307         * tree-object-size.c: Likewise.
5308         * tree-optimize.c: Likewise.
5309         * tree-outof-ssa.c: Likewise.
5310         * tree-phinodes.c: Likewise.
5311         * tree-profile.c: Likewise.
5312         * tree-ssa-ccp.c: Likewise.
5313         * tree-ssa-coalesce.c: Likewise.
5314         * tree-ssa-live.c: Likewise.
5315         * tree-ssa-loop-niter.c: Likewise.
5316         * tree-ssa-loop-prefetch.c: Likewise.
5317         * tree-ssa-loop.c: Likewise.
5318         * tree-ssa-structalias.c: Likewise.
5319         * tree-ssa-uninit.c: Likewise.
5320         * tree-ssa.c: Likewise.
5321         * tree-vect-data-refs.c: Likewise.
5322         * tree-vect-loop-manip.c: Likewise.
5323         * tree-vect-loop.c: Likewise.
5324         * tree-vect-patterns.c: Likewise.
5325         * tree-vect-stmts.c: Likewise.
5326         * tree-vrp.c: Likewise.
5327         * varasm.c: Likewise.
5328         * vec.c: Likewise.
5329         * web.c: Likewise.
5330         * xcoffout.c: Likewise.
5331
5332 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
5333
5334         * gengtype.c (write_field_root): New function.
5335         (write_root): Use it.
5336
5337 2010-07-07  Wei Guozhi  <carrot@google.com>
5338
5339         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
5340         of lowest bits to lshift/compare): Add a missing line.
5341
5342 2010-07-07  Wei Guozhi  <carrot@google.com>
5343
5344         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
5345         of lowest bits to lshift/compare): New.
5346
5347 2010-07-07  Tom Tromey  <tromey@redhat.com>
5348
5349         * doc/tm.texi: Update.
5350         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
5351         Add @hook.
5352         * target.def (want_debug_pub_sections): New hook.
5353         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
5354         * dwarf2out.c (add_pubname_string): Check
5355         targetm.want_debug_pub_sections.
5356         (add_pubname): Likewise.
5357         (add_pubtype): Likewise.
5358
5359 2010-07-07  Jie Zhang  <jie@codesourcery.com>
5360
5361         * genautomata.c (output_automata_list_min_issue_delay_code):
5362         Correctly decompress min_issue_delay.
5363
5364 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
5365
5366         PR rtl-optimization/44404
5367         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
5368         possible, use reg_overlap_mentioned_p instead.
5369
5370 2010-07-07  Duncan Sands  <baldrick@free.fr>
5371
5372         PR middle-end/41355
5373         * tree.c (build_function_type_skip_args): Copy the original type using
5374         build_distinct_type_copy rather than copy_node.
5375
5376 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
5377
5378         PR target/44850
5379         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
5380         revision 161876.
5381         (ix86_expand_prologue): Likewise.
5382         (ix86_handle_fndecl_attribute): Likewise.
5383         (ix86_asm_declare_function_name): Likewise.
5384         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5385         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5386         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
5387         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
5388         * doc/extend.texi: Likewise.
5389
5390 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
5391
5392         PR target/44844
5393         * config/i386/i386.md (rdrand<mode>): Changed to expand to
5394         retry if the carry flag isn't valid.
5395         (rdrand<mode>_1): New.
5396
5397 2010-07-07  Richard Guenther  <rguenther@suse.de>
5398
5399         PR middle-end/44790
5400         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
5401         for expanding the constant offset for MEM_REFs.
5402
5403 2010-07-07  Richard Guenther  <rguenther@suse.de>
5404
5405         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
5406         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
5407         * gimple.h (is_gimple_operand): Remove.
5408         * gimple.c (is_gimple_operand): Likewise.
5409         (walk_gimple_op): Fix wi->val_only setting for calls.
5410         * tree-cfg.c (verify_gimple_call): Fix argument validation.
5411         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
5412         invalid gimple calls.
5413
5414 2010-07-06  Jan Hubicka  <jh@suse.cz>
5415
5416         * lto-cgraph.c (output_cgraph): Add missing declaration.
5417
5418 2010-07-06  Jan Hubicka  <jh@suse.cz>
5419
5420         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
5421         partition.
5422
5423 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
5424
5425         * doc/gimple.texi (GIMPLE_DEBUG): Document.
5426         * doc/rtl.texi (Debug Information): New node.
5427         (NOTE_INSN_VAR_LOCATION): Document.
5428         (debug_insn): Likewise.
5429         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
5430
5431 2010-07-07  Jan Hubicka  <jh@suse.cz>
5432
5433         With parts by Richard Guenther.
5434
5435         PR middle-end/44813
5436         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
5437         for functions passed by reference.
5438         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
5439         in memory when passed by reference.
5440         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
5441         beggining.
5442         * ipa-split.c (split_function): Cleanup way return value is passed;
5443         handle SSA DECL_BY_REFERENCE retvals.
5444         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
5445         DECL_BY_REFERENCE is set.
5446         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
5447         find_what_p_points_to): Handle RESULT_DECL.
5448         * tree-inline.c (declare_return_variable): Get new entry_block argument;
5449         when passing by reference ensure that RESULT_DECL is gimple_val.
5450         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
5451         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
5452
5453 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
5454
5455         PR rtl-optimization/44787
5456         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
5457         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
5458
5459 2010-07-06  Jan Hubicka  <jh@suse.cz>
5460
5461         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
5462         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
5463         with body can prevail.
5464         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
5465         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
5466         * cgraph.c (cgraph_get_node_or_alias): New function.
5467         * cgraph.h (cgraph_get_node_or_alias): Declare.
5468
5469 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
5470
5471         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
5472         support.
5473         (ix86_expand_prologue): Likewise.
5474         (ix86_handle_fndecl_attribute): Likewise.
5475         (ix86_asm_declare_function_name): New function for
5476         ASM_DECLARE_FUNCTION_NAME.
5477         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
5478         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
5479         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
5480         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
5481         * doc/extend.texi: Adjust documentation about ms_hook_prologue
5482         attribute.
5483
5484 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
5485
5486         * config/i386/i386.md (immediate_operand): New mode attribute.
5487
5488         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
5489         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
5490         using P mode iterator.
5491         (pro_epilogue_adjust_stack_di_2): Rename from
5492         pro_epilogue_adjust_stack_rex64_2.
5493
5494         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
5495
5496 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
5497
5498         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
5499         through gen_mov_insv_1 function pointer.
5500         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
5501         gen_truncxf<mode>2 through gen_truncxf function pointer.
5502         (remainder<mode>3): Ditto.
5503         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
5504         (allocate_stack): Call gen_allocate_stack_worker_64 or
5505         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
5506         function pointer.
5507         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
5508         function pointer.
5509
5510 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
5511
5512         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
5513         operand constraint instead of <r><i>m.
5514
5515 2010-07-06  Richard Guenther  <rguenther@suse.de>
5516
5517         PR middle-end/44828
5518         * convert.c (convert_to_integer): Watch out for overflowing
5519         MULT_EXPR as well.
5520
5521 2010-07-05  Jan Hubicka  <jh@suse.cz>
5522
5523         * lto-streamer.c (write_symbol_vec): Rename to ...
5524         (write_symbol) ... this one; write only symbol given and when
5525         present in cache. Sanity check that what is defined is present
5526         in cgraph/varpool with body/finalized decl.
5527         (write_symbols_of_kind): Remove.
5528         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
5529         pairs to produce symtab.
5530         (produce_asm_for_decls): Update call of produce_symtab; don't do so
5531         when doing WPA streaming.
5532
5533 2010-07-05  Jan Hubicka  <jh@suse.cz>
5534
5535         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
5536         function is still available to fold into.
5537
5538 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
5539
5540         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
5541         * function.h (struct_function): Change type of local_decls field
5542         to a VEC.
5543         (add_local_decl): New function.
5544         (FOR_EACH_LOCAL_DECL): New macro.
5545         * cfgexpand.c (init_vars_expansion): Adjust for new type of
5546         cfun->local_decls.
5547         (estimated_stack_frame_size): Likewise.
5548         (expand_used_vars): Likewise.
5549         * cgraphbuild.c (build_cgraph_edges): Likewise.
5550         * function.c (instantiate_decls_1): Likewise.
5551         * ipa-struct-reorg.c (build_data_structure): Likewise.
5552         * ipa-type-escape.c (analyze_function): Likewise.
5553         * lto-streamer-in.c (input_function): Likewise.
5554         * lto-streamer-out.c (output_function): Likewise.
5555         * tree-ssa-live.c (remove_unused_locals): Likewise.
5556         * tree.c (free_lang_data_in_decl): Likewise.
5557         (find_decls_types_in_node): Likewise.
5558         * omp-low.c (remove_exit_barrier): Likewise.
5559         (expand_omp_taskreg): Likewise.
5560         (list2chain): Rename to...
5561         (vec2chain): ...this.  Adjust.
5562         * cgraphunit.c (assemble_thunk): Call add_local_decl.
5563         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
5564         * gimple-low.c (record_vars_into): Likewise.
5565         * tree-inline.c (remap_decls): Likewise.
5566         (declare_return_variable): Likewise.
5567         (declare_inline_vars): Likewise.
5568         (copy_forbidden): Adjust for new type of cfun->local_decls.
5569         (add_local_variables): New function.
5570         (expand_call_inline): Call it.
5571         (tree_function_versioning): Likewise.
5572
5573 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
5574
5575         AVX Programming Reference (June, 2010)
5576         * config/i386/cpuid.h (bit_F16C): New.
5577         (bit_RDRND): Likewise.
5578         (bit_FSGSBASE): Likewise.
5579
5580         * config/i386/i386-builtin-types.def: Add
5581         "DEF_FUNCTION_TYPE (UINT16)", function types for
5582         float16 <-> float conversions and
5583         "DEF_FUNCTION_TYPE (VOID, UINT64)".
5584
5585         * config/i386/i386-c.c (ix86_target_macros_internal): Support
5586         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
5587         OPTION_MASK_ISA_F16C.
5588
5589         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
5590         (OPTION_MASK_ISA_RDRND_SET): Likewise.
5591         (OPTION_MASK_ISA_F16C_SET): Likewise.
5592         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
5593         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
5594         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
5595         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
5596         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
5597         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
5598         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
5599         (override_options): Handle them.
5600         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
5601         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
5602         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
5603         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
5604         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
5605         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
5606         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
5607         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
5608         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
5609         (bdesc_args): Likewise.
5610         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
5611         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
5612         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
5613         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
5614         Handle non-memory store.
5615
5616         * config/i386/i386.h (TARGET_FSGSBASE): New.
5617         (TARGET_RDRND): Likewise.
5618         (TARGET_F12C): Likewise.
5619
5620         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
5621         (UNSPEC_VCVTPS2PH): Likewise.
5622         (UNSPECV_RDFSBASE): Likewise.
5623         (UNSPECV_RDGSBASE): Likewise.
5624         (UNSPECV_WRFSBASE): Likewise.
5625         (UNSPECV_WRGSBASE): Likewise.
5626         (UNSPECV_RDRAND): Likewise.
5627         (rdfsbase<mode>): Likewise.
5628         (rdgsbase<mode>): Likewise.
5629         (wrfsbase<mode>): Likewise.
5630         (wrgsbase<mode>): Likewise.
5631         (rdrand<mode>): Likewise.
5632
5633         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
5634
5635         * config/i386/immintrin.h (_rdrand_u16): New.
5636         (_rdrand_u32): Likewise.
5637         (_readfsbase_u32): Likewise.
5638         (_readfsbase_u64): Likewise.
5639         (_readgsbase_u32): Likewise.
5640         (_readgsbase_u64): Likewise.
5641         (_writefsbase_u32): Likewise.
5642         (_writefsbase_u64): Likewise.
5643         (_writegsbase_u32): Likewise.
5644         (_writegsbase_u64): Likewise.
5645         (_rdrand_u64): Likewise.
5646         (_cvtsh_ss): Likewise.
5647         (_mm_cvtph_ps): Likewise.
5648         (_mm256_cvtph_ps): Likewise.
5649         (_cvtss_sh): Likewise.
5650         (_mm_cvtps_ph): Likewise.
5651         (_mm256_cvtps_ph): Likewise.
5652
5653         * config/i386/sse.md (vcvtph2ps): New.
5654         (*vcvtph2ps_load): Likewise.
5655         (vcvtph2ps256): Likewise.
5656         (vcvtps2ph): Likewise.
5657         (*vcvtps2ph): Likewise.
5658         (*vcvtps2ph_store): Likewise.
5659         (vcvtps2ph256): Likewise.
5660
5661         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
5662
5663         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
5664
5665 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
5666
5667         PR bootstrap/44512
5668         * genenums.c (main): Output include of insn-constants.h
5669         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
5670
5671 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
5672
5673         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
5674         (override_options): Initialize it.
5675         (ix86_expand_prologue): Use it.
5676
5677 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
5678
5679         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
5680
5681 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
5682
5683         * double-int.h (fit_double_type): Remove declaration.
5684         * double-int.c (fit_double_type): Remove function.
5685         * tree.h (int_fits_type_p): Adjust prototype.
5686         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
5687         instead of fit_double_type.
5688         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
5689         instead of fit_double_type and build_int_cst_wide.
5690         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
5691         instead of fit_double_type and build_int_cst_wide.
5692         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
5693         of fit_double_type.
5694
5695 2010-07-05  Jan Hubicka  <jh@suse.cz>
5696
5697         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
5698         in_other_partition.
5699         * lto-cgraph.c (referenced_from_other_partition_p,
5700         reachable_from_other_partition_p): Use in_other_partition flags.
5701         (output_node, output_varpool_node): COMDAT nodes always have private
5702         copies and thus are never used from other partition.
5703
5704 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
5705
5706         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
5707         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
5708         * config/ia64/ia64.c Include reload.h.
5709         (ia64_memory_move_cost): New function.
5710         (TARGET_MEMORY_MOVE_COST): Define.
5711         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
5712         memory_move_cost.
5713
5714 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
5715
5716         PR middle-end/42505
5717         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
5718         comments about cost model.
5719         (try_add_cand_for):  Add second strategy for choosing initial set
5720         based on original IVs, controlled by ORIGINALP argument.
5721         (get_initial_solution): Add ORIGINALP argument.
5722         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
5723         (find_optimal_iv_set): Try two different strategies for choosing
5724         the IV set, and return the one with lower cost.
5725
5726 2010-07-05  Richard Guenther  <rguenther@suse.de>
5727
5728         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
5729
5730 2010-07-05  Richard Guenther  <rguenther@suse.de>
5731
5732         * tree.c (reference_alias_ptr_type): New function.
5733         * tree.h (reference_alias_ptr_type): Declare.
5734         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
5735         allow non-TARGET_MEM_REF new refs.
5736         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
5737         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
5738         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
5739         (create_mem_ref): Get alias pointer type.  Adjust calls to
5740         create_mem_ref_raw.
5741         (maybe_fold_tmr): Likewise.
5742         * tree-flow.h (create_mem_ref): Adjust prototype.
5743
5744 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
5745
5746         PR c++/44808
5747         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
5748         *from_p is VAR_DECL.
5749
5750 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
5751
5752         * tree.h (build_call_list): Remove.
5753         * tree.c (build_call_list): Remove.
5754
5755 2010-07-05  Richard Guenther  <rguenther@suse.de>
5756
5757         * double-int.h (double_int_sub): Declare.
5758         * double-int.c (double_int_sub): New function.
5759         * dwarf2out.c (field_byte_offset): Use it.
5760         * fixed-value.c (do_fixed_add): Likewise.
5761         (do_fixed_multiply): Likewise.
5762         (do_fixed_divide): Likewise.
5763         * tree-predcom.c (add_ref_to_chain): Likewise.
5764         (determine_roots_comp): Likewise.
5765         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
5766
5767 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
5768
5769         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
5770         implementations.
5771
5772 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
5773
5774         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
5775         * arm-modes.def (CC_NOTB): Don't define.
5776         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
5777         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
5778         (LTUGEU): New code_iterator.
5779         (cnb, optab): New corresponding code_attrs.
5780         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
5781         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
5782         using LTUGEU.
5783         (addsi3_carryin_shift_<optab>): Likewise.
5784         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
5785         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
5786         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
5787         (subsi3_compare): Renamed from subsi3_compare0_c.
5788         Change CC_NOTB to CC.
5789         (arm_subsi3_insn): Allow constants for operand 0.
5790         (compare_scc peephole for eq case): New.
5791         (compare_scc splitters): Change CC_NOTB to CC.
5792
5793 2010-07-05  Richard Guenther  <rguenther@suse.de>
5794
5795         * tree-ssa-loop-im.c (for_each_index): Do not handle
5796         ALIGN_INDIRECT_REF.
5797         (gen_lsm_tmp_name): Likewise.
5798         * tree-dump.c (dequeue_and_dump): Likewise.
5799         * tree-pretty-print.c (dump_generic_node): Likewise.
5800         (op_code_prio): Likewise.
5801         (op_symbol_code): Likewise.
5802         * tree.c (staticp): Likewise.
5803         (build1_stat): Likewise.
5804         * tree.h (INDIRECT_REF_P): Likewise.
5805         * fold-const.c (maybe_lvalue_p): Likewise.
5806         (operand_equal_p): Likewise.
5807         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5808         (ao_ref_init_from_vn_reference): Likewise.
5809         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
5810         (find_interesting_uses_address): Likewise.
5811         * dwarf2out.c (loc_list_from_tree): Likewise.
5812         * gimplify.c (gimplify_expr): Likewise.
5813         * tree-eh.c (tree_could_trap_p): Likewise.
5814         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
5815         * cfgexpand.c (expand_debug_expr): Likewise.
5816         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
5817         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
5818         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
5819         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
5820         * tree-ssa-operands.c (get_expr_operands): Likewise.
5821         * expr.c (safe_from_p): Likewise.
5822         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
5823         * tree-vect-data-refs.c (vect_setup_realignment): Build
5824         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
5825         * tree-vect-stmts.c (vectorizable_load): Likewise.
5826         * tree.def (ALIGN_INDIRECT_REF): Remove.
5827
5828 2010-07-05  Richard Guenther  <rguenther@suse.de>
5829
5830         PR tree-optimization/44784
5831         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
5832         for inserted stmts.
5833         (find_or_generate_expression): Fix SCCVN insertion check.
5834
5835 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
5836
5837         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
5838         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
5839         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
5840         directives.
5841
5842 2010-07-05  Ira Rosen  <irar@il.ibm.com>
5843
5844         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
5845         statements that are not vectorized.
5846         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
5847         in INSIDE_COST.
5848
5849 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
5850
5851         PR bootstrap/44820
5852         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
5853
5854 2010-07-05  Richard Guenther  <rguenther@suse.de>
5855
5856         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
5857         RESULT_DECLs properly.
5858
5859 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
5860
5861         PR rtl-optimization/44695
5862         * config/i386/i386.md (extract_code): Removed.
5863         (<u>divmodqi4): Likewise.
5864         (divmodqi4): New.
5865         (udivmodqi4): Likewise.
5866         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
5867         (udivmodhiqi3): Likewise.
5868
5869 2010-07-04  Jan Hubicka  <jh@suse.cz>
5870
5871         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
5872
5873 2010-07-04  Jan Hubicka  <jh@suse.cz>
5874
5875         * cgraphunit.c (init_cgraph): Only initialize dump file if it
5876         is not already initialized.
5877
5878 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
5879
5880         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
5881         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
5882         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
5883         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
5884         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
5885         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
5886         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
5887         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
5888         (sync_new_nand_optab): Redefine as macros.
5889         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
5890         Delete.
5891         (direct_optab_index): New enum.
5892         (direct_optab_d): New structure.
5893         (direct_optab): New typedef.
5894         (direct_optab_table): Declare.
5895         (direct_optab_handler, set_direct_optab_handler): New functions.
5896         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
5897         (sync_lock_release_optab): New macros.
5898         * optabs.c (direct_optab_table): New variable.
5899         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
5900         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
5901         cmpstr_optab and cmpstrn_optab.
5902         (emit_conditional_move): Likewise for movcc_optab.
5903         (can_conditionally_move_p): Likewise for movcc_gen_code.
5904         (init_insn_codes): Clear direct_optab_table.
5905         (init_optabs): Don't initialize the new "direct optabs" here.
5906         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
5907         vcond_gen_code.
5908         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
5909         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
5910         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
5911         (expand_sync_operation): Likewise other sync_*_optabs.
5912         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
5913         to sync_compare_and_swap_optab.
5914         (expand_sync_lock_test_and_set): Use direct_optab_handler for
5915         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
5916         to the names of both.
5917         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
5918         cmpstr_optab and cmpstrn_optab.
5919         (expand_builtin_lock_release): Likewise sync_lock_release.
5920         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
5921         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
5922         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
5923         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
5924         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
5925         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
5926         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
5927         (sync_lock_test_and_set, sync_lock_release): Delete.
5928         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
5929         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
5930         * genopinit.c (optabs): Use set_direct_optab_handler for the new
5931         macro optabs.
5932         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
5933         the "optab" local variable.  Use direct_optab_handler for optab and
5934         sync_compare_and_swap_optab.
5935         * reload1.c (reload_in_optab, reload_out_optab): Delete.
5936         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
5937         reload_in_optab and reload_out_optab.
5938         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
5939         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
5940         * config/pa/pa.c (pa_secondary_reload): Likewise.
5941         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
5942         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
5943         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
5944         (VMSupportsCS8_builtin): Likewise.
5945
5946 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
5947
5948         * optabs.h (optab_handlers): Change type of insn_code to int.
5949         (optab_handler, set_optab_handler, convert_optab_handler)
5950         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
5951         CODE_FOR_nothing".
5952         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
5953         (init_insn_codes): Zero both the above arrays.
5954         (init_optabs): Never call init_insn_codes first time around.
5955
5956 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
5957
5958         * optabs.h (optab_handler, convert_optab_handler): Turn into
5959         inline functions that return an insn code.
5960         (set_optab_handler, set_convert_optab_handler): New functions.
5961         * builtins.c: Replace optab_handler(X)->insn_code with
5962         optab_handler or set_optab_handler thoughout.  Likewise
5963         convert_optab_handler(X)->insn_code with convert_optab_handler
5964         and set_convert_optab_handler.
5965         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
5966         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
5967         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
5968         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
5969         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
5970         config/spu/spu.c: Likewise.
5971
5972 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
5973
5974         PR target/44531
5975         * config.gcc (sh*-*-*): Use regular expressions instead of
5976         the 'i' modifier for sed substitutions.
5977
5978 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
5979
5980         * gimple.c (gimple_body): Comments added.
5981
5982 2010-07-04  Richard Guenther  <rguenther@suse.de>
5983
5984         PR middle-end/44809
5985         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
5986         of an INDIRECT_REF.
5987
5988 2010-07-04  Richard Guenther  <rguenther@suse.de>
5989
5990         PR tree-optimization/44479
5991         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
5992         extra SSA name copy statements which preserves points-to
5993         information.
5994         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5995         Copy points-to information for all pointers.  Properly handle
5996         MEM_REFs.
5997         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
5998         copy statements.
5999         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
6000         dependency.
6001
6002 2010-07-04  Richard Guenther  <rguenther@suse.de>
6003
6004         PR middle-end/44785
6005         * tree-inline.c (initialize_inlined_parameters): Do not
6006         re-use pointer-map slot over remap_type call.
6007
6008 2010-07-04  Richard Guenther  <rguenther@suse.de>
6009
6010         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
6011
6012 2010-07-04  Richard Guenther  <rguenther@suse.de>
6013
6014         PR tree-optimization/44656
6015         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
6016         again after value-replacing in the defintions lhs.
6017
6018 2010-07-04  Ira Rosen  <irar@il.ibm.com>
6019             Revital Eres  <eres@il.ibm.com>
6020
6021         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
6022         Document new arguments.
6023         * doc/tm.texi: Regenerate.
6024         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
6025         Handle unaligned store.
6026         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
6027         * target.def (builtin_vectorization_cost): Add new arguments.
6028         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
6029         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
6030         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
6031         (vect_vfa_segment_size): Fix indentation.
6032         * tree-vectorizer.h (struct _vect_peel_info): New.
6033         (struct _vect_peel_extended_info): New.
6034         (struct _loop_vec_info): Add new field for peeling hash table and a
6035         macro for its access.
6036         (VECT_MAX_COST): Define.
6037         (vect_get_load_cost): Declare.
6038         (vect_get_store_cost, vect_get_known_peeling_cost,
6039         vect_get_single_scalar_iteraion_cost): Likewise.
6040         (vect_supportable_dr_alignment): Add new argument.
6041         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
6042         field.
6043         (destroy_loop_vec_info): Free peeling hash table.
6044         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
6045         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
6046         vect_analyze_slp. Fix indentation.
6047         (vect_get_single_scalar_iteraion_cost): New function.
6048         (vect_get_known_peeling_cost): Likewise.
6049         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
6050         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
6051         statement. Move outside cost calculation inside unknown peeling case.
6052         Call vect_get_known_peeling_cost for known amount of peeling.
6053         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
6054         reference to the print message of forced alignment.
6055         (vect_verify_datarefs_alignment): Update call to
6056         vect_supportable_dr_alignment.
6057         (vect_get_data_access_cost): New function.
6058         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
6059         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
6060         vect_peeling_hash_choose_best_peeling): Likewise.
6061         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
6062         to store all the accesses in the loop and find best possible access to
6063         align using peeling for known alignment case. For unknown alignment
6064         check if stores are preferred or if peeling is worthy.
6065         (vect_find_same_alignment_drs): Analyze pairs of loads too.
6066         (vect_supportable_dr_alignment): Add new argument and check aligned
6067         accesses according to it.
6068         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
6069         (cost_for_stmt): Call vect_get_stmt_cost.
6070         (vect_model_simple_cost): Likewise.
6071         (vect_model_store_cost): Call vect_get_stmt_cost. Call
6072         vect_get_store_cost to calculate the cost of the statement.
6073         (vect_get_store_cost): New function.
6074         (vect_model_load_cost): Call vect_get_stmt_cost. Call
6075         vect_get_load_cost to calculate the cost of the statement.
6076         (vect_get_load_cost): New function.
6077         (vectorizable_store): Update call to vect_supportable_dr_alignment.
6078         (vectorizable_load): Likewise.
6079         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
6080         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
6081         arguments. Handle unaligned store.
6082         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
6083         (rs6000_builtin_support_vector_misalignment): Return true for word and
6084         double word alignments for VSX.
6085         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
6086         vect_supportable_dr_alignment and builtin_vectorization_cost.
6087
6088 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6089
6090         PR target/44597
6091         * config/pa/predicates.md (prefetch_cc_operand): Remove.
6092         (prefetch_nocc_operand): Likewise.
6093         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
6094         (prefetch_20): New insn.
6095         (prefetch_cc): Remove.
6096         (prefetch_nocc): Likewise.
6097
6098 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6099
6100         * expr.c (vector_mode_valid_p): Move to c-common.c.
6101         * expr.h (vector_mode_valid_p): Do not declare here.
6102         * system.h: Poison GCC_EXPR_H in front-ends.
6103         * Makefile.in: Update dependencies.
6104
6105 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6106
6107         PR target/44705
6108         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
6109
6110 2010-07-03  Jan Hubicka  <jh@suse.cz>
6111
6112         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
6113         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
6114         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
6115         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
6116         Likewise.
6117
6118         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
6119         Update timevars.V
6120         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
6121         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
6122         TV_IPA_LTO_DECL_OUT): New.
6123         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
6124
6125 2010-07-03  Jan Hubicka  <jh@suse.cz>
6126
6127         * ipa-inline.c (update_edge_key): Break out from ...
6128         update_callers_keys): ... here;
6129         (update_callee_keys): Update only the edges from caller to callee.
6130         (update_all_calle_keys): Do what update_calle_keys did.
6131         (decide_inlining_of_small_functions): Avoid recomputing of all
6132         callees when badness increase.
6133
6134 2010-07-03  Jie Zhang  <jie@codesourcery.com>
6135
6136         * config/arm/arm.c (arm_attr_length_move_neon): New.
6137         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
6138         * config/arm/neon.md (define_mode_attr V_slen): Remove.
6139         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
6140         to compute length attribute.
6141
6142 2010-07-03  Jie Zhang  <jie@codesourcery.com>
6143
6144         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
6145         as predicate for operand 1 and remove its constraint.
6146         * config/arm/predicates.md (vfp_register_operand): New.
6147         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
6148         (*push_fp_multi): Likewise.
6149
6150 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
6151
6152         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
6153
6154 2010-07-03  Jan Hubicka  <jh@suse.cz>
6155
6156         * config/i386/i386.c (override_options): Revert accidental commit.
6157
6158 2010-07-02  Le-Chun Wu  <lcwu@google.com>
6159
6160         PR c++/44128
6161         * doc/invoke.texi: Update documentation of -Wshadow.
6162
6163 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
6164             Julian Brown  <julian@codesourcery.com>
6165             Sandra Loosemore <sandra@codesourcery.com>
6166
6167         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
6168         comparisons.  Adjust to take both operands.
6169         (arm_select_cc_mode): Handle DImode comparisons.
6170         (arm_gen_compare_reg): Generate a scratch register for DImode
6171         comparisons which require one.  Use xor for Thumb equality checks.
6172         (arm_const_double_by_immediates): New.
6173         (arm_print_operand): Allow 'Q' and 'R' for constants.
6174         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
6175         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
6176         arm_canonicalize_comparison.
6177         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
6178         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
6179         prototype.
6180         (arm_const_double_by_immediates): Declare.
6181         * config/arm/constraints.md (Di): New constraint.
6182         * config/arm/predicates.md (arm_immediate_di_operand)
6183         (arm_di_operand, cmpdi_operand): New.
6184         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
6185         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
6186         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
6187         (cstoredi4): Handle non-Cirrus also.
6188
6189 2010-07-02  Julian Brown  <julian@codesourcery.com>
6190             Sandra Loosemore <sandra@codesourcery.com>
6191
6192         PR target/43703
6193         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
6194         (smax<mode>3): Disable for NEON float modes when
6195         flag_unsafe_math_optimizations is false.
6196         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
6197         (*mul<mode>3_neon)
6198         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
6199         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
6200         for NEON float modes when flag_unsafe_math_optimizations is false.
6201         (quad_halves_<code>v4sf): Only enable if
6202         flag_unsafe_math_optimizations is true.
6203         * doc/invoke.texi (ARM Options): Add note about floating point
6204         vectorization requiring -funsafe-math-optimizations.
6205
6206 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
6207             Julian Brown  <julian@codesourcery.com>
6208
6209         * config/arm/neon.md (UNSPEC_VABA): Delete.
6210         (UNSPEC_VABAL): Delete.
6211         (UNSPEC_VABS): Delete.
6212         (UNSPEC_VMUL_N): Delete.
6213         (adddi3_neon): New.
6214         (subdi3_neon): New.
6215         (mul<mode>3add<mode>_neon): Make the pattern named.
6216         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
6217         (neon_vadd<mode>): Replace with define_expand, and move the remaining
6218         unspec parts...
6219         (neon_vadd<mode>_unspec): ...to this.
6220         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
6221         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
6222         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
6223         (neon_vaba<mode>): Rewrite in terms of vabd.
6224         (neon_vabal<mode>): Rewrite in terms of vabdl.
6225         (neon_vabs<mode>): Rewrite without unspec.
6226         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
6227         (*arm_subdi3): Likewise.
6228         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
6229         No_op attribute to disable assembly output checks.
6230         * config/arm/arm_neon.h: Regenerated.
6231         * doc/arm-neon-intrinsics.texi: Regenerated.
6232
6233 2010-07-02  Jan Hubicka  <jh@suse.cz>
6234
6235         * ipa-split.c (split_function): For aggregate values, set the return
6236         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
6237         *<retval> = fncall.part ().
6238         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
6239
6240 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
6241
6242         * config/arm/neon.md (UNSPEC_VAND): Delete.
6243         (UNSPEC_VBIC): Delete.
6244         (UNSPEC_VCLZ): Delete.
6245         (UNSPEC_VCNT): Delete.
6246         (UNSPEC_VEOR): Delete.
6247         (UNSPEC_VORN): Delete.
6248         (UNSPEC_VORR): Delete.
6249         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
6250         core registers too.
6251         (anddi3_neon): Likewise.
6252         (orndi3_neon): Likewise.
6253         (bicdi3_neon): Likewise.
6254         (xordi3_neon): Likewise.
6255         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
6256         rid of unspec and handle unused operand.
6257         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
6258         * config/arm/predicates.md (imm_for_neon_logic_operand):
6259         Require TARGET_NEON.
6260         (imm_for_neon_inv_logic_operand): Likewise.
6261         * config/arm/arm.md (define_split for logical_binary_operator):
6262         Disable for NEON registers.
6263         (anddi3): Add new define_expand, and rename the insn.  Disable
6264         this insn for NEON, where anddi3_neon now applies.
6265         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
6266         (iordi3): As for anddi3.
6267         (xordi3): Likewise.
6268         * config/arm/neon.ml (Vand): Split DImode variants and mark them
6269         as No_op to disable testing for exact instruction match.
6270         (Vorr): Likewise.
6271         (Veor): Likewise.
6272         (Vbic): Likewise.
6273         (Vorn): Likewise.
6274         * config/arm/arm_neon.h: Regenerated.
6275         * doc/arm-neon-intrinsics.texi: Regenerated.
6276
6277 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
6278
6279         * expr.h (emit_stack_probe): Declare.
6280         * explow.c (emit_stack_probe): Make global.
6281         (anti_adjust_stack_and_probe): Fix comments.
6282         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
6283         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6284         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6285         * config/sparc/sparc.c: Include except.h.
6286         (sparc_emit_probe_stack_range): New function.
6287         (output_probe_stack_range): Likewise.
6288         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
6289         built-in stack checking is enabled.
6290         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
6291         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
6292         (probe_stack_range): New insn.
6293
6294 2010-07-02  Richard Guenther  <rguenther@suse.de>
6295
6296         PR target/43958
6297         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
6298         for argument alignment.
6299
6300 2010-07-02  Jan Hubicka  <jh@suse.cz>
6301
6302         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
6303         walk backwards from entry_bb to check only those basic block of header
6304         that might lead to execution of split part.
6305         (consider_split) ... here.
6306         (find_return_bb): Allow assignment in return BB.
6307         (find_retval): New.
6308         (split_function): Fix name of cloned function; take care of updating
6309         return value in return_bb containing move.
6310
6311 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
6312
6313         PR target/44771
6314         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
6315         used variable insn.
6316
6317 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
6318
6319         * implicit-zee.c (combine_reaching_defs): Fix long lines.
6320         (is_set_with_extension_DI): Delete.
6321         (struct zero_extend_info): New structure.
6322         (add_removable_zero_extend): New function.
6323         (find_removable_zero_extends): Use note_stores to find SETs.
6324         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
6325
6326 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
6327
6328         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
6329         is_miss_rate_acceptable. Pull total_positions computation
6330         out of the loops.  Early return if miss_positions exceeds
6331         the acceptable threshold.
6332         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
6333         is_miss_rate_acceptable after renaming of compute_miss_rate.
6334
6335 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
6336
6337         PR middle-end/44576
6338         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
6339         of 1000) for miss rate if the address diference is greater than or
6340         equal to the cache line size (the two reference will never hit the
6341         same cache line).
6342
6343 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
6344
6345         PR target/42835
6346         * config/arm/arm-modes.def (CC_NOTB): New mode.
6347         * config/arm/arm.c (get_arm_condition_code): Handle it.
6348         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
6349         * config/arm/arm.md (subsi3_compare0_c): New pattern.
6350         (compare_scc): Now a define_and_split.  Add a number of extra
6351         splitters before it.
6352
6353         PR target/42172
6354         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
6355         and ZERO_EXTEND.
6356         (arm_rtx_costs_1): Likewise.
6357         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
6358         * config/arm/arm.md (is_arch6): New attribute.
6359         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
6360         extendqisi2): Tighten the code somewhat, avoiding invalid
6361         RTL to occur in the expander patterns.
6362         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
6363         (thumb1_zero_extendhisi2_v6): Delete.
6364         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
6365         (thumb1_extendhisi2_v6): Delete.
6366         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
6367         (thumb1_extendqisi2_v6): Delete.
6368         (zero_extendhisi2 for register input splitter): New.
6369         (zero_extendqisi2 for register input splitter): New.
6370         (thumb1_extendhisi2 for register input splitter): New.
6371         (extendhisi2 for register input splitter): New.
6372         (extendqisi2 for register input splitter): New.
6373         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
6374         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
6375         and add support for a register alternative requiring a split.
6376         (thumb1_zero_extendqisi2): Likewise.
6377         (arm_zero_extendqisi2): Likewise.
6378         (arm_extendhisi2): Likewise.
6379         (arm_extendqisi2): Likewise.
6380
6381 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
6382
6383         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
6384         instead of an unspec.
6385         (neon_expand_vector_init): Likewise.
6386         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
6387         (UNSPEC_VDUP_LANE): Delete.
6388         (UNSPEC VDUP_N): Delete.
6389         (UNSPEC_VGET_HIGH): Delete.
6390         (UNSPEC_VGET_LANE): Delete.
6391         (UNSPEC_VGET_LOW): Delete.
6392         (UNSPEC_VMVN): Delete.
6393         (UNSPEC_VSET_LANE): Delete.
6394         (V_double_vector_mode): New.
6395         (vec_set<mode>_internal): Make code emitted match that for the
6396         corresponding intrinsics.
6397         (vec_setv2di_internal): Likewise.
6398         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
6399         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
6400         (neon_vset_lane<mode>): Combine double and quad patterns and
6401         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
6402         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
6403         (neon_vdup_n<mode>): Rewrite RTL without unspec.
6404         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
6405         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
6406         with neon_vdup_lanev2di, adjusting the pattern from the latter
6407         to be predicable for consistency.
6408         (neon_vdup_lane<mode>_internal): New.
6409         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
6410         to avoid using an unspec.
6411         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
6412         (neon_vdup_lanev2di): Turn into a define_expand.
6413         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
6414         (neon_vget_high<mode>): Replace with....
6415         (neon_vget_highv16qi): New pattern using canonical RTL.
6416         (neon_vget_highv8hi): Likewise.
6417         (neon_vget_highv4si): Likewise.
6418         (neon_vget_highv4sf): Likewise.
6419         (neon_vget_highv2di): Likewise.
6420         (neon_vget_low<mode>): Replace with....
6421         (neon_vget_lowv16qi): New pattern using canonical RTL.
6422         (neon_vget_lowv8hi): Likewise.
6423         (neon_vget_lowv4si): Likewise.
6424         (neon_vget_lowv4sf): Likewise.
6425         (neon_vget_lowv2di): Likewise.
6426
6427         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
6428         test for this emitting vmov.
6429         (Vset_lane): Likewise.
6430         (Vdup_n): Likewise.
6431         (Vmov_n): Likewise.
6432
6433         * doc/arm-neon-intrinsics.texi: Regenerated.
6434
6435 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
6436
6437         * config/arm/neon.md (vec_extractv2di): Correct error in register
6438         numbering to reconcile with neon_vget_lanev2di.
6439
6440 2010-07-02  Richard Guenther  <rguenther@suse.de>
6441
6442         * tree-ssa-structalias.c (pt_solution_set_var): New function.
6443         * tree-ssa-alias.h (pt_solution_set_var): Declare.
6444         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
6445         points-to information.
6446
6447 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
6448
6449         * config/s390/s390.c (override_options): Adopt prefetching
6450         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
6451
6452 2010-07-02  Jan Hubicka  <jh@suse.cz>
6453
6454         * df-problems.c (df_kill_notes): Do not collect dead  notes.
6455         (df_set_note): Just call add_reg_note.
6456         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
6457         df_create_unused_note): Do not deal with lists of old notes.
6458         (df_note_bb_compute): Likewise.
6459
6460 2010-07-02  Richard Guenther  <rguenther@suse.de>
6461
6462         * tree-ssa-structalias.c (find_func_aliases): Handle
6463         pointer alignment via BIT_AND_EXPR.
6464         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
6465
6466 2010-07-02  Richard Guenther  <rguenther@suse.de>
6467
6468         * tree-data-ref.c (initialize_data_dependence_relation): Handle
6469         mismatching number of dimensions properly.
6470
6471 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6472
6473         PR target/44707
6474         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
6475         (lo_sum (high ...) ...) patterns generated by earlier passes.
6476
6477 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6478
6479         * doc/install.texi (Prerequisites): Document Perl requirement on
6480         Solaris 2.
6481         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
6482
6483 2010-07-02  Richard Guenther  <rguenther@suse.de>
6484
6485         PR middle-end/44777
6486         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
6487
6488 2010-07-02  Jan Hubicka  <jh@suse.cz>
6489
6490         PR middle-end/44706
6491         * predict.c (predict_paths_for_bb): Handle case when control dependence
6492         BB has only abnormal edges.
6493
6494 2010-07-02  Richard Guenther  <rguenther@suse.de>
6495
6496         PR tree-optimization/44748
6497         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
6498         the embedded conversion in MEM_REFs.
6499
6500 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
6501
6502         * reload.c: Include toplev.h.
6503         * recog.c:  Likewise.
6504         * Makefile.in: Adjust dependencies.
6505
6506 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
6507
6508         PR debug/44694
6509         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
6510         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
6511
6512 2010-07-01  Richard Guenther  <rguenther@suse.de>
6513
6514         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
6515         types for offsets.
6516
6517 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
6518
6519         PR target/44732
6520         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
6521         Fix argument types.
6522
6523 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
6524
6525         PR target/44727
6526         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
6527         Make sure operand 0 dies.
6528
6529 2010-07-01  Richard Guenther  <rguenther@suse.de>
6530
6531         PR middle-end/42834
6532         PR middle-end/44468
6533         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
6534         * doc/generic.texi (References to storage): Document MEM_REF.
6535         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
6536         (print_call_name): Likewise.
6537         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
6538         (build_simple_mem_ref_loc): New function.
6539         (mem_ref_offset): Likewise.
6540         * tree.h (build_simple_mem_ref_loc): Declare.
6541         (build_simple_mem_ref): Define.
6542         (mem_ref_offset): Declare.
6543         * fold-const.c: Include tree-flow.h.
6544         (operand_equal_p): Handle MEM_REF.
6545         (build_fold_addr_expr_with_type_loc): Likewise.
6546         (fold_comparison): Likewise.
6547         (fold_unary_loc): Fold
6548         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
6549         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
6550         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
6551         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
6552         (ptr_deref_may_alias_ref_p_1): Likewise.
6553         (ao_ref_base_alias_set): Properly differentiate base object for
6554         offset and TBAA.
6555         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
6556         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
6557         (indirect_refs_may_alias_p): Likewise.
6558         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
6559         chasing code.
6560         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
6561         (call_may_clobber_ref_p_1): Likewise.
6562         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
6563         * expr.c (expand_assignment): Handle MEM_REF.
6564         (store_expr): Handle MEM_REFs from STRING_CSTs.
6565         (store_field): If expanding a MEM_REF of a non-addressable
6566         decl use bitfield operations.
6567         (get_inner_reference): Handle MEM_REF.
6568         (expand_expr_addr_expr_1): Likewise.
6569         (expand_expr_real_1): Likewise.
6570         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
6571         * alias.c (ao_ref_from_mem): Handle MEM_REF.
6572         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
6573         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
6574         (dr_analyze_indices): Likewise.
6575         (dr_analyze_alias): Likewise.
6576         (object_address_invariant_in_loop_p): Likewise.
6577         * gimplify.c (mark_addressable): Handle MEM_REF.
6578         (gimplify_cond_expr): Build MEM_REFs.
6579         (gimplify_modify_expr_to_memcpy): Likewise.
6580         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
6581         (gimple_fold_indirect_ref): Adjust.
6582         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
6583         * tree.def (MEM_REF): New tree code.
6584         * tree-dfa.c: Include toplev.h.
6585         (get_ref_base_and_extent): Handle MEM_REF.
6586         (get_addr_base_and_unit_offset): New function.
6587         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
6588         * gimple-fold.c (may_propagate_address_into_dereference): Handle
6589         MEM_REF.
6590         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
6591         accesses if the array has just one dimension.  Remove always true
6592         parameter.  Do not require type compatibility here.
6593         (maybe_fold_offset_to_component_ref): Remove.
6594         (maybe_fold_stmt_indirect): Remove.
6595         (maybe_fold_reference): Remove INDIRECT_REF handling.
6596         Fold back to non-MEM_REF.
6597         (maybe_fold_offset_to_address): Simplify.  Deal with type
6598         mismatches here.
6599         (maybe_fold_reference): Likewise.
6600         (maybe_fold_stmt_addition): Likewise.  Also handle
6601         &ARRAY + I in addition to &ARRAY[0] + I.
6602         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
6603         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
6604         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
6605         * tree-ssa.c (useless_type_conversion_p): Make most pointer
6606         conversions useless.
6607         (warn_uninitialized_var): Handle MEM_REF.
6608         (maybe_rewrite_mem_ref_base): New function.
6609         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
6610         to SSA form.
6611         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
6612         INDIRECT_REF handling.
6613         (copy_tree_body_r): Handle MEM_REF.
6614         * gimple.c (is_gimple_addressable): Adjust.
6615         (is_gimple_address): Likewise.
6616         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
6617         invariant base are invariant.
6618         (is_gimple_min_lval): Adjust.
6619         (is_gimple_mem_ref_addr): New function.
6620         (get_base_address): Handle MEM_REF.
6621         (count_ptr_derefs): Likewise.
6622         (get_base_loadstore): Likewise.
6623         * gimple.h (is_gimple_mem_ref_addr): Declare.
6624         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
6625         * tree-cfg.c (verify_address): New function, split out from ...
6626         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
6627         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
6628         INDIRECT_REFs.
6629         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
6630         INDIRECT_REF.  Allow conversions.
6631         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
6632         a register does not change its size.
6633         (verify_types_in_gimple_reference): Verify MEM_REF.
6634         (verify_gimple_assign_single): Disallow INDIRECT_REF.
6635         Handle MEM_REF.
6636         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
6637         New.
6638         (mark_address_taken): Handle MEM_REF.
6639         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
6640         (get_asm_expr_operands): Pass opf_not_non_addressable.
6641         (get_expr_operands): Handle opf_[not_]non_addressable.
6642         Handle MEM_REF.  Remove INDIRECT_REF handling.
6643         * tree-vrp.c (check_array_ref): Handle MEM_REF.
6644         (search_for_addr_array): Likewise.
6645         (check_array_bounds): Likewise.
6646         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
6647         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
6648         (ref_always_accessed_p): Likewise.
6649         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
6650         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
6651         Handle MEM_REF.
6652         * cgraphbuild.c (mark_load): Properly check for NULL result
6653         from get_base_address.
6654         (mark_store): Likewise.
6655         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
6656         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
6657         handling for MEM_REF.
6658         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
6659         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
6660         * builtins.c (stabilize_va_list_loc): Use the function ABI
6661         valist type if we couldn't canonicalize the argument type.
6662         Always dereference with the canonical va-list type.
6663         (maybe_emit_free_warning): Handle MEM_REF.
6664         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
6665         memmove to memcpy.
6666         * builtins.c (fold_builtin_memory_op): Use ref-all types
6667         for all memcpy foldings.
6668         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
6669         (build_outer_var_ref): Likewise.
6670         (scan_omp_1_op): Likewise.
6671         (lower_rec_input_clauses): Likewise.
6672         (lower_lastprivate_clauses): Likewise.
6673         (lower_reduction_clauses): Likewise.
6674         (lower_copyprivate_clauses): Likewise.
6675         (expand_omp_atomic_pipeline): Likewise.
6676         (expand_omp_atomic_mutex): Likewise.
6677         (create_task_copyfn): Likewise.
6678         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
6679         Remove old union trick.  Initialize constant offsets.
6680         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
6681         INDIRECT_REF.  Init base_alias_set properly.
6682         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
6683         (vn_reference_fold_indirect): Adjust for MEM_REFs.
6684         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
6685         for ARRAY_REFs.
6686         (may_insert): Remove.
6687         (visit_reference_op_load): Do not test may_insert.
6688         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
6689         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
6690         a field to store the constant offset this op applies.
6691         (run_scc_vn): Adjust prototype.
6692         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
6693         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
6694         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
6695         bother about volatile qualifiers on pointers.
6696         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
6697         * tree-ssa-loop-ivopts.c
6698         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
6699         (strip_offset_1): Likewise.
6700         (find_interesting_uses_address): Replace INDIRECT_REF handling with
6701         MEM_REF handling.
6702         (get_computation_cost_at): Likewise.
6703         * ipa-pure-const.c (check_op): Handle MEM_REF.
6704         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
6705         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
6706         and constants.
6707         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
6708         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
6709         (eliminate_local_variables_1): Likewise.
6710         (create_call_for_reduction_1): Likewise.
6711         (create_loads_for_reductions): Likewise.
6712         (create_loads_and_stores_for_name): Likewise.
6713         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
6714         (ssa_accessed_in_tree): Handle MEM_REF.
6715         (ssa_accessed_in_assign_rhs): Likewise.
6716         (update_type_size): Likewise.
6717         (analyze_accesses_for_call_stmt): Likewise.
6718         (analyze_accesses_for_assign_stmt): Likewise.
6719         (transform_access_sites): Likewise.
6720         (transform_allocation_sites): Likewise.
6721         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
6722         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
6723         not handle INDIRECT_REF.
6724         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
6725         (cond_store_replacement): Likewise.
6726         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
6727         MEM_REF, no not handle INDIRECT_REFs.
6728         (insert_into_preds_of_block): Properly initialize avail.
6729         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
6730         for ARRAY_REFs.  Properly handle reference lookups that
6731         require a bit re-interpretation.
6732         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
6733         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
6734         (build_ref_for_offset_1): Remove.
6735         (build_ref_for_offset): Build MEM_REFs.
6736         (gate_intra_sra): Disable for now.
6737         (sra_ipa_modify_expr): Handle MEM_REF.
6738         (ipa_early_sra_gate): Disable for now.
6739         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
6740         MEM_REF handling.
6741         (disqualify_base_of_expr): Likewise.
6742         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
6743         MEM_REF handling.
6744         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
6745         Use mem_ref_offset.  Remove bogus folding.
6746         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
6747         (make_fancy_name_1): Add support for MEM_REF.
6748         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
6749         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
6750         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
6751         (compute_complex_ancestor_jump_func): Likewise.
6752         (ipa_analyze_virtual_call_uses): Likewise.
6753         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
6754         INDIRECT_REF folding with more generalized MEM_REF folding.
6755         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
6756         (forward_propagate_addr_into_variable_array_index): Also handle
6757         &ARRAY + I in addition to &ARRAY[0] + I.
6758         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
6759         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
6760         creates assignments with overlap.
6761         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
6762         (get_frame_field): Likewise.
6763         (get_nonlocal_debug_decl): Likewise.
6764         (convert_nonlocal_reference_op): Likewise.
6765         (struct nesting_info): Add mem_refs pointer-set.
6766         (create_nesting_tree): Allocate it.
6767         (convert_local_reference_op): Insert to be folded mem-refs.
6768         (fold_mem_refs): New function.
6769         (finalize_nesting_tree_1): Perform defered folding of mem-refs
6770         (free_nesting_tree): Free the pointer-set.
6771         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
6772         (vectorizable_load): Likewise.
6773         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
6774         (propagate_with_phi): Likewise.
6775         * tree-object-size.c (addr_object_size): Handle MEM_REFs
6776         instead of INDIRECT_REFs.
6777         (compute_object_offset): Handle MEM_REF.
6778         (plus_stmt_object_size): Handle MEM_REF.
6779         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
6780         for &MEM_REF.
6781         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
6782         (symbol_marked_for_renaming): Likewise.
6783         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
6784         (fold-const.o): Add $(TREE_FLOW_H).
6785         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
6786         (find_func_clobbers): Likewise.
6787         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
6788         (decompose_access): Likewise.
6789         (replace_field_acc): Likewise.
6790         (replace_field_access_stmt): Likewise.
6791         (insert_new_var_in_stmt): Likewise.
6792         (get_stmt_accesses): Likewise.
6793         (reorg_structs_drive): Disable.
6794         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
6795         (ix86_canonical_va_list_type): Likewise.
6796
6797 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
6798
6799         PR other/44566
6800         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
6801         * target.def (struct gcc_target): Replace enum reg_class with
6802         reg_class_t in hook argument / return types.
6803         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
6804         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
6805         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
6806         * targhooks.h (default_branch_target_register_class): Likewise.
6807         (default_ira_cover_classes, default_secondary_reload): Likewise.
6808         (default_memory_move_cost, default_register_move_cost): Likewise.
6809         * targhooks.c (default_branch_target_register_class): Likewise.
6810         (default_ira_cover_classes, default_secondary_reload): Likewise.
6811         (default_memory_move_cost, default_register_move_cost): Likewise.
6812         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
6813         * bt-load.c (branch_target_load_optimize): Likewise.
6814         * ira.c (setup_cover_and_important_classes): Likewise.
6815         * ira-costs.c (copy_cost): Likewise.
6816         * reload1.c (emit_input_reload_insns): Likewise.
6817         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
6818         * config/frv/frv.c (frv_secondary_reload): Likewise.
6819         * config/s390/s390.c (s390_secondary_reload): Likewise.
6820         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
6821         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
6822         (ix86_register_move_cost): Likewise.
6823         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
6824         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
6825         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
6826         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
6827         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
6828         (rs6000_ira_cover_classes): Likewise.
6829         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
6830         * config/picochip/picochip-protos.h (picochip_secondary_reload):
6831         Likewise.
6832         * config/pa/pa.c (pa_secondary_reload): Likewise.
6833         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
6834         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
6835         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
6836         * doc/tm.texi: Regenerate.
6837
6838 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
6839
6840         PR bootstrrap/44726
6841         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
6842         use.
6843         (build_alias_set_optimal_p): Likewise.
6844         (build_base_obj_set_for_drs): Likewise.
6845
6846 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
6847
6848         * target.def: Remove comment about licensing problems of function
6849         declarations.
6850
6851         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
6852         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
6853         * doc/tm.texi: Regenerate.
6854
6855         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
6856         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
6857
6858         * target.def (enum_va_list_p): Use DEFHOOK.
6859         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
6860         Rename ptype to ptree.
6861         * doc/tm.texi: Regenerate.
6862
6863         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
6864         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
6865         * doc/tm.texi: Regenerate.
6866
6867         * target.def (memory_move_cost): Use DEFHOOK.
6868         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
6869         Rename regclass AKA class to rclass.
6870         * doc/tm.texi: Regenerate.
6871
6872         * target.def (pragma_parse): Use DEFHOOK.
6873         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
6874         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
6875         * doc/tm.texi: Regenerate.
6876
6877         * target.def (pass_by_reference): Use DEFHOOK.
6878         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
6879         * doc/tm.texi: Regenerate.
6880
6881         * target.def (resolve_overloaded_builtin): Rename params to arglist.
6882         Use DEFHOOK.
6883         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
6884         * doc/tm.texi: Regenerate.
6885
6886         * target.def (return_pops_args): Use DEFHOOK.
6887         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
6888         Rename stack-size to size.
6889         * doc/tm.texi: Regenerate.
6890
6891         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
6892         last-sched_cycle to last_clock, cur_cycle to clock.
6893         * doc/tm.texi.in: Use @hook.
6894         * doc/tm.texi: Regenerate.
6895
6896         * target.def (print_operand, print_operand_address): Update comment.
6897         (print_operand_punct_valid_p): Likewise.
6898
6899 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6900
6901         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
6902         to rtl.h.
6903         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
6904         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
6905         * rtl-error.h: New.
6906         * regrename.c: Do not include toplev.h. Include rtl-error.h.
6907         * rtl-error.c: Likewise.
6908         * reload.c: Likewise.
6909         * recog.c:  Likewise.
6910         * sel-sched.c: Likewise.
6911         * function.c: Likewise.
6912         * reg-stack.c: Likewise.
6913         * cfgrtl.c: Likewise.
6914         * reload1.c: Likewise.
6915         * final.c: Include rtl-error.
6916         * Makefile.in: Adjust dependencies.
6917
6918 2010-06-30  Jan Hubicka  <jh@suse.cz>
6919
6920         PR middle-end/PR44706
6921         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
6922         to return the value.
6923
6924 2010-06-30  Michael Matz  <matz@suse.de>
6925
6926         PR bootstrap/44699
6927         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
6928         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
6929         a gimple reg, attach the original VDEF to the last store in the
6930         sequence.
6931
6932 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
6933
6934         PR other/44034
6935         * config/darwin.c (darwin_override_options): Use renamed
6936         targetm.asm_out.emit_unwind_label.
6937
6938 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
6939
6940         PR tree-optimization/39799
6941         * tree-inline.c (remap_ssa_name): Initialize variable only if
6942         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
6943
6944 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
6945
6946         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
6947
6948 2010-06-30  Richard Guenther  <rguenther@suse.de>
6949
6950         PR target/44722
6951         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
6952         against oscillation with reverse peephole2.
6953
6954 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
6955
6956         PR target/44721
6957         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
6958         Fix last commit.
6959
6960 2010-06-30  Nick Clifton  <nickc@redhat.com>
6961
6962         * config/rx/rx-modes.def: New file.
6963         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
6964         (CC_REGNUM): Define.
6965         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
6966         register.
6967         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
6968         (SELECT_CC_MODE): Define.
6969         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
6970         (reg:CC CC_REG) instead of (cc0).
6971         (attr "cc"): Delete.
6972         (cbranchsi4): Do not split compare and branch here. Instead move
6973         it to...
6974         (cbranchsi4_<code>): ... here.  New patterns.
6975         (cmpsi): Call rx-compare_redundant to find out if it is necessary
6976         to emit the compare instruction.
6977         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
6978         cc_status flags.
6979         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
6980         FIRST_PSEUDO_REGNUM.
6981         (rx_expand_prologue, rx_expand_epilogue): Likewise.
6982         (rx_notice_update_cc): Delete.
6983         (rx_cc_modes_compatible): New function.
6984         (flags_needed_for_conditional): New function.
6985         (flags_from_mode): New function.
6986         (rx_compare_redundant): New function - scans backwards through
6987         insn list to find out if condition flags are already set correctly.
6988         (TARGET_CC_MODES_COMPATIBLE): Define.
6989         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
6990
6991         * config/rx/rx.h (BRANCH_COST): Define.
6992         (REGISTER_MOVE_COST): Define.
6993         * config/rx/predicates (rx_source_operand): Allow all constant types.
6994         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
6995         (tstsi4): New pattern.
6996         * config/rx/rx.c (rx_memory_move_cost): Define.
6997         (TARGET_MEMORY_MOVE_COST): Define.
6998
6999 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7000
7001         * tree.h (block_may_fallthru): Declare here.
7002         * tree-flow.h (block_may_fallthru): Do not declare here.
7003         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
7004         bitmap.h
7005         * Makefile.in (c-typeck.o): Update dependencies.
7006
7007 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
7008
7009         PR debug/44694
7010         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
7011         * cselib.c (cfa_base_preserved_regno): New static variable.
7012         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
7013         of REGNO (cfa_base_preserved_val->locs->loc).
7014         (cselib_preserve_cfa_base_value): Add regno argument, set
7015         cfa_base_preserved_regno to it.
7016         (cselib_invalidate_regno): Allow removal of registers other than
7017         cfa_base_preserved_regno from cfa_base_preserved_val.
7018         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
7019         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
7020         of MEM addresses, if not on LHS.
7021         (reverse_op): Don't add reverse ops for cfa_base_rtx.
7022         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
7023
7024 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
7025
7026         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
7027         static variables.
7028         (peep2_buf_position): New static function.
7029         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
7030         peephole2_optimize): Use it.
7031         (peep2_attempt, peep2_update_life): New static functions, broken out
7032         of peephole2_optimize.
7033         (peep2_fill_buffer): New static function.
7034         (peephole2_optimize): Change the main loop to try to fill the buffer
7035         with the maximum number of insns before matching them against
7036         peepholes.  Use a forward scan.  Remove special case for targets with
7037         conditional execution.
7038         * genrecog.c (change_state): Delete dead code.
7039         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
7040         Rewrite so as not to expect the second insn to have had a peephole
7041         applied yet.
7042
7043 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7044
7045         * genhooks.c (emit_findices): Cast field precision to int.
7046         (emit_documentation): Likewise.
7047
7048 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
7049
7050         PR tree-optimization/43801
7051         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
7052         if old_decl was DECL_ONE_ONLY.
7053
7054         PR debug/44668
7055         * dwarf2out.c (add_accessibility_attribute): New function.
7056         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
7057         instead of adding DW_AT_accessibility manually.
7058         (gen_enumeration_type_die, gen_struct_or_union_type_die,
7059         gen_typedef_die): Use it.
7060
7061 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7062
7063         * vmsdbgout.c (full_name): Just output the file name if not native.
7064
7065 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7066
7067         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
7068         (funcnam_table): New static table.
7069         (funcnum_table): New static table.
7070         (write_rtnbeg): Write value saved in funcnum_table.
7071         (write_rtnend): Write value saved in funcnum_table.
7072         (vmsdbgout_begin_function): Save current function info in
7073         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
7074         (vmsdbgout_finish): Iterate over funcnum_table.
7075
7076 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7077
7078         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
7079         (vmsdbgout_type_decl): Declare
7080         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
7081         (FUNC_EPILOGUE_LABEL): New macro
7082         (vmsdbgout_begin_epilogue): New function.
7083         (vmsdbgout_type_decl): New function.
7084
7085 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7086
7087         * vmsdbg.h: Update copyright.
7088
7089 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7090
7091         * vmsdbg.h (DST_K_TBG): New DST constant.
7092         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
7093         (write_modbeg): Cast module_language to avoid warning.
7094         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
7095
7096 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
7097
7098         PR other/44034
7099         * target.def, doc/tm.texi.in, genhooks.c: New files.
7100         * target.h: Instead of defining individual hook members,
7101         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
7102         include target.def.
7103         * target-def.h: Instead of defining individual hook initializers,
7104         include target-hooks-def.h.
7105         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
7106         targetm.live_on_entry -> targetm.extra_live_on_entry
7107         targetm.sched.md_finish ->targetm.sched.finish
7108         targetm.sched.md_init -> targetm.sched.init
7109         targetm.sched.md_init_global -> targetm.sched.init_global
7110         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
7111         targetm.asm_out.except_table_label ->
7112           targetm.asm_out.emit_except_table_label
7113         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
7114         targetm.target_help -> targetm.help
7115         targetm.vectorize.builtin_support_vector_misalignment ->
7116           targetm.vectorize.support_vector_misalignment
7117         targetm.file_start_app_off -> targetm.asm_file_start_app_off
7118         targetm.file_start_file_directive ->
7119          targetm.asm_file_start_file_directive
7120         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
7121         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
7122         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
7123         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
7124           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
7125         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
7126           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
7127         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
7128         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
7129         * Makefile.in (TARGET_H): Depend on target.def.
7130         (TARGET_DEF_H): Depend on target-hooks-def.h.
7131         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
7132         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
7133         * doc/tm.texi: Regenerate.
7134
7135         * Makefile.in (s-tm-texi): Remove stray tab / rule.
7136
7137         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
7138         (targetm.sched.init): Likewise.
7139
7140 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7141
7142         PR bootstrap/44713
7143         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
7144         (function_arg_advance_32): Const-ify TYPE parameter.
7145         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
7146         (ix86_function_arg_advance): Change type of NAMED to bool.
7147         (function_arg_32): Const-ify CUM and TYPE parameters.
7148         (function_arg_64): Likewise.  Change type of NAMED to bool.
7149         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
7150         to bool.
7151         (ix86_function_arg): Change type of NAMED to bool.
7152         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
7153         last argument as a bool.
7154
7155 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
7156
7157         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
7158         (OVERRIDE_OPTIONS): Add note of obsolescence.
7159         Replace references with references to TARGET_OPTION_OVERRIDE.
7160         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
7161          the macro).
7162         * targhooks.c (default_target_option_override): New function.
7163         * targhooks.h (default_target_option_override): Declare.
7164         * target.h (struct gcc_target): Add override member to
7165         target_option member.
7166         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
7167         targetm.target_option.override call.
7168         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
7169         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
7170
7171 2010-06-29  Jan Hubicka  <jh@suse.cz>
7172
7173         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
7174
7175 2010-06-29  Jan Hubicka  <jh@suse.cz>
7176
7177         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
7178         unreachable.
7179         (rebuild_frequencies): New function.
7180         * predict.h (rebuild_frequencies): Declare.
7181         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
7182         entry block and edge reaching new_entry.
7183         (tree_function_versioning): When doing partial cloning, rebuild
7184         frequencies when done.
7185         * passes.c (execute_function_todo): Use rebild_frequencies.
7186
7187 2010-06-29  Richard Guenther  <rguenther@suse.de>
7188
7189         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
7190         * tree-flow.h (enum noalias_state): Remove.
7191         (struct var_ann_d): Remove noalias_state member.
7192
7193 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
7194
7195         PR target/43902
7196         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
7197         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
7198         (maddhidi4): Likewise.
7199
7200         Revert parts of the change for PR25130.
7201         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
7202         MEM_ALIAS_SET.
7203
7204 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7205
7206         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
7207         targetm.calls.function_incoming_arg, and
7208         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
7209         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
7210         * target.h (struct gcc_target): Add function_arg_advance,
7211         function_arg, and function_incoming_arg fields.
7212         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
7213         (TARGET_FUNCTION_INCOMING_ARG): Define.
7214         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
7215         and TARGET_FUNCTION_INCOMING_ARG.
7216         * targhooks.h (default_function_arg_advance): Declare.
7217         (default_function_arg, default_function_incoming_arg): Declare.
7218         * targhooks.c (default_function_arg_advance): New function.
7219         (default_function_arg, default_function_incoming_arg): New function.
7220         * config/i386/i386.c (function_arg_advance): Rename to...
7221         (ix86_function_arg_advance): ...this.  Make static.
7222         (function_arg): Rename to...
7223         (ix86_function_arg): ...this.  Make static.
7224         (TARGET_FUNCTION_ARG_ADVANCE): Define.
7225         (TARGET_FUNCTION_ARG): Define.
7226         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
7227         (FUNCTION_ARG): Delete.
7228         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
7229         (function_arg): Delete prototype.
7230
7231 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7232
7233         * reginfo.c (init_reg_sets_1): Adjust comments.
7234         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
7235         * calls.c (prepare_call_address): Likewise.
7236         (emit_call_1): Use targetm.calls.return_pops_args.
7237         (expand_call): Likewise.
7238         * function.c (assign_parms): Likewise.
7239         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
7240         * target.h (struct gcc_target) [struct calls]: Add
7241         return_pops_args field.
7242         * targhooks.h (default_return_pops_args): Declare.
7243         * targhooks.c (default_return_pops_args): Define.
7244         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
7245         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
7246         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
7247         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
7248         documentation.
7249         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
7250         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
7251         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
7252         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
7253         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
7254         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
7255         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
7256         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
7257         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
7258         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
7259         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
7260         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
7261         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
7262         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
7263         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
7264         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
7265         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
7266         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
7267         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
7268         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
7269         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
7270         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
7271         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
7272         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
7273         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
7274         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
7275         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
7276         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
7277         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
7278         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
7279         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
7280         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
7281         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
7282         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
7283         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
7284         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
7285         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
7286         * config/i386/i386.c (ix86_return_pops_args): Make static.
7287         Constify arguments.
7288         (TARGET_RETURN_POPS_ARGS): Define.
7289         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
7290         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
7291         (TARGET_RETURN_POPS_ARGS): Define.
7292         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
7293         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
7294         (TARGET_RETURN_POPS_ARGS): Define.
7295
7296 2010-06-29  Richard Guenther  <rguenther@suse.de>
7297
7298         PR middle-end/44667
7299         * tree-inline.c (initialize_inlined_parameters): Make sure
7300         to remap the inlined parameter variable substitutions types.
7301
7302 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
7303
7304         PR rtl-optimization/44659
7305         * combine.c (make_compound_operation) <SUBREG>: Do not return the
7306         result of force_to_mode if it partially re-expanded the compound.
7307
7308 2010-06-28  Jan Hubicka  <jh@suse.cz>
7309
7310         PR middle-end/44671
7311         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
7312         RESULT_DECL.
7313
7314 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
7315
7316         * double-int.h (force_fit_type_double): Remove declaration.
7317         * double-int.c (force_fit_type_double): Move to tree.c.
7318         * tree.h (force_fit_type_double): Declare.
7319         * tree.h (force_fit_type_double): Moved from double-int.c. Use
7320         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
7321         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
7322         * convert.c (convert_to_pointer): Adjust call to
7323         force_fit_type_double.
7324         * tree-vrp.c (extract_range_from_assert,
7325         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
7326         * fold-const.c: Update comment.
7327         (int_const_binop, fold_convert_const_int_from_int,
7328         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
7329         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
7330         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
7331         round_up_loc): Adjust call to force_fit_type_double.
7332
7333 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
7334
7335         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
7336
7337 2010-06-28  Martin Jambor  <mjambor@suse.cz>
7338
7339         * tree-sra.c (convert_callers): New parameter, change fndecls of
7340         recursive calls.
7341         (modify_function): Pass the old decl to convert_callers.
7342
7343 2010-06-28  Martin Jambor  <mjambor@suse.cz>
7344
7345         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
7346         ipa_check_create_node_params and ipa_initialize_node_params with
7347         checking asserts they are not necessary.
7348
7349 2010-06-28  Jan Hubicka  <jh@suse.cz>
7350
7351         PR tree-optimization/44687
7352         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
7353
7354 2010-06-28  Martin Jambor  <mjambor@suse.cz>
7355
7356         PR c++/44535
7357         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
7358         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
7359         instead of BINFO_BASE_BINFO.
7360
7361 2010-06-28  Michael Matz  <matz@suse.de>
7362
7363         PR middle-end/44592
7364         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
7365         proper VDEF chain for intermediate stores in the sequence.
7366
7367 2010-06-28  Jan Hubicka  <jh@suse.cz>
7368
7369         PR tree-optimization/44357
7370         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
7371         uninlinable functions.
7372
7373 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
7374
7375         * config.gcc (powerpc*-*-*): Handle titan.
7376         * config/rs6000/rs6000.c (titan_cost): New costs.
7377         (rs6000_override_options): Add "titan" to processor_target_table.
7378         Add Titan to branch alignment logic.
7379         Correctly set rs6000_cost for titan.
7380         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
7381         * config/rs6000/titan.md: New file.
7382         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
7383
7384 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
7385
7386         * tree-browser.c (TB_history_stack): Convert to a VEC.
7387         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
7388         (TB_history_prev): Likewise.
7389
7390 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
7391
7392         * vec.h (vec_heap_free): Add parentheses around free.
7393
7394 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
7395
7396         * system.h: Poison GCC_EXCEPT_H for front-end files.
7397
7398         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
7399         langhook.
7400         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
7401         Define to NULL by default.
7402         * except.h: Define GCC_EXCEPT_H.
7403         (doing_eh): Remove prototype.
7404         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
7405         (lang_protect_cleanup_actions): Remove.
7406         * except.c (lang_protect_cleanup_actions): Remove.
7407         (doing_eh): Remove.
7408         (gen_eh_region): Don't check doing_eh here.
7409         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
7410         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
7411         instead of lang_protect_cleanup_actions.
7412         * omp-low.c (maybe_catch_exception): Likewise.
7413         * Makefile.in: Update dependencies.
7414
7415 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
7416
7417         * cgraph.h (struct varpool_node): new used_from_object_file flag.
7418         (struct cgraph_local_info): new used_from_object_file flag.
7419         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
7420         (cgraph_clone_node): initialize used_from_object_file.
7421         (cgraph_create_virtual_clone): initialize used_from_object_file.
7422         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
7423         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
7424         when compiling with -fwhole-program.
7425         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
7426         internal resolver.
7427         * ipa.c (function_and_variable_visibility): Set externally_visible
7428         flag of varpool_node if used_from_object_file flag is set.
7429         (cgraph_externally_visible_p): check used_from_object_file flag.
7430         * doc/invoke.texi (-fwhole-program option): Change description of
7431         externally_visible attribute accordingly.
7432         * doc/extend.texi (externally_visible): Ditto.
7433
7434 2010-06-27  Jan Hubicka  <jh@suse.cz>
7435
7436         * params.def (max-inline-insns-auto): Default to 40.
7437         * doc/invoke.texi (max-inline-insns-auto): Document the change.
7438
7439 2010-06-27  Jan Hubicka  <jh@suse.cz>
7440
7441         PR middle-end/44671
7442         PR middle-end/44686
7443         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
7444         signature change.
7445         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
7446         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
7447
7448 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
7449
7450         * target.h (struct gcc_target): Add register_move_cost field.
7451         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
7452         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
7453         * targhooks.c (default_register_move_cost): New function.
7454         * targhooks.h (default_register_move_cost): Declare function.
7455         * defaults.h (REGISTER_MOVE_COST): Delete.
7456         * ira-int.h (ira_register_move_cost): Update comment.
7457         * ira.c (ira_register_move_cost): Update comment.
7458         * reload.h (register_move_cost): Declare.
7459         * reginfo.c (register_move_cost): New function.
7460         (move_cost): Update comment.
7461         (init_move_cost, memory_move_secondary_cost): Replace
7462         REGISTER_MOVE_COST with register_move_cost.
7463         * postreload.c (reload_cse_simplify_set): (Ditto.).
7464         * reload.c (find_valid_class, find_reloads): (Ditto.).
7465         * reload1.c (choose_reload_regs): (Ditto.).
7466         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
7467         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
7468         * doc/md.texi (can_create_pseudo_p): Update documentation.
7469
7470         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
7471         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
7472         * config/i386/i386.h (ix86_memory_move_cost): Make static.
7473         (TARGET_MEMORY_MOVE_COST): Define.
7474
7475         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
7476         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
7477         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
7478         (TARGET_MEMORY_MOVE_COST): Define.
7479
7480 2010-06-27  Richard Guenther  <rguenther@suse.de>
7481
7482         PR tree-optimization/44683
7483         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
7484         false edge from the inverted condition.
7485
7486 2010-06-27  Richard Guenther  <rguenther@suse.de>
7487
7488         PR middle-end/44684
7489         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
7490         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
7491         for register LHS.  Or non-store assignments.
7492
7493 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
7494
7495         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
7496         (sparc_emit_set_const64): Likewise.  Remove disabled code.
7497         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
7498         (sparc_emit_set_const64): Likewise.
7499
7500 2010-06-26  Catherine Moore  <clm@codesourcery.com>
7501
7502         * config/mips/mips.md (alu_type): New attribute.
7503         (type): Infer type from alu_type.
7504         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
7505         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
7506         *subsi3_extended, negsi2, negdi2, *low<mode>,
7507         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
7508         xor<mode>3, *nor<mode>3,
7509         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
7510         *zero_extendhi_truncqi):  Set alu_type instead of type.
7511
7512 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
7513
7514         * config/alpha/alpha.c (alpha_need_linkage): Adjust
7515         splay_tree_new_ggc call.
7516         (alpha_use_linkage): Likewise.
7517
7518 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
7519
7520         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
7521         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
7522         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
7523         (static_specs): Remove switches_need_spaces.
7524         (process_command, do_self_spec): Hardcode handling "-o" instead of
7525         checking switches_need_spaces.
7526         * system.h (SWITCHES_NEED_SPACES): Poison.
7527
7528 2010-06-26  Richard Guenther  <rguenther@suse.de>
7529
7530         PR tree-optimization/44393
7531         * tree-loop-distribution.c (generate_loops_for_partition): Fix
7532         stmt removal and VOP renaming.
7533         (generate_memset_zero): Remove redundant stmt updating.
7534         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
7535         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
7536
7537 2010-06-26  Jan Hubicka  <jh@suse.cz>
7538
7539         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
7540         edges comming from header are equivalent.
7541         (visit_bb): Handle PHIs correctly.
7542         * tree-inline.c (copy_phis_for_bb): Be able to copy
7543         PHI from entry edge.
7544         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
7545
7546 2010-06-26  Richard Guenther  <rguenther@suse.de>
7547
7548         PR middle-end/44674
7549         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
7550         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
7551
7552 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
7553
7554         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
7555         add_infile, alloc_switch): New.
7556         (process_command): Remove variable lang_n_infiles.  Process
7557         options in a single pass.  Use new functions for allocating
7558         infiles and switches arrays.  Properly skip operands of
7559         -Xpreprocessor and -Xassembler.
7560
7561 2010-06-26  Jan Hubicka  <jh@suse.cz>
7562
7563         PR middle-end/44671
7564         * cgraphunit.c (cgraph_function_versioning): Remove wrong
7565         cgraph_make_decl_local call; fix typo copying RTL data.
7566
7567 2010-06-25  DJ Delorie  <dj@redhat.com>
7568
7569         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
7570         (m32c_output_aligned_common): Likewise.
7571         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
7572         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
7573         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
7574         (m32c_register_pragmas): Register it.
7575         * config/m32c/m32c.c (m32c_get_pragma_address): New.
7576         (m32c_insert_attributes): Set #pragma address decls volatile.
7577         (pragma_entry_eq): New.
7578         (pragma_entry_hash): New.
7579         (m32c_note_pragma_address): New.
7580         (m32c_get_pragma_address): New.
7581         (m32c_output_aligned_common): New.
7582         * doc/extend.texi: Document the new pragma.
7583
7584         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
7585         also.
7586         * config/m32c/predicates.md (m32c_any_operand): Check the code
7587         instead of memory_operand so as to allow matching volatile MEMs.
7588         (m32c_nonimmediate_operand): Likewise.
7589         (mra_operand): Allow volatiles.
7590
7591 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
7592
7593         PR debug/44610
7594         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
7595         address if the offset is unknown.
7596
7597 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
7598
7599         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
7600         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
7601         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
7602         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
7603         to ia64_start_function. Invoke it.
7604         * config/ia64/ia64.c (ia64_start_function): Call new function
7605         dwarf2out_vms_debug_main_pointer.
7606
7607 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
7608
7609         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
7610         statements computing the true predicate.
7611
7612 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
7613
7614         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
7615         to boolean_true_node.
7616         (reset_bb_predicate): New.
7617         (predicate_bbs): Call reset_bb_predicate.
7618
7619 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
7620
7621         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
7622         (tree_if_conversion): Returns true when something has been changed.
7623         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
7624         changed something.
7625
7626 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
7627
7628         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
7629         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
7630         * tree-if-conv.c: Include dbgcnt.h.
7631         (tree_if_conversion): Use if_conversion_tree to count the number of
7632         if-convertible loops.
7633
7634 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
7635
7636         * common.opt (fprefetch-loop-arrays): Re-define
7637         -fprefetch-loop-arrays as a tri-state option with the initial
7638         value of -1.
7639         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
7640         pass only when flag_prefetch_loop_arrays > 0.
7641         * toplev.c (process_options): Note that, with tri-states,
7642         flag_prefetch_loop_arrays>0 means prefetching is enabled.
7643         * config/i386/i386.c (override_options): Enable prefetching at -O3
7644         for a set of CPUs that sw prefetching is helpful.
7645         (software_prefetching_beneficial_p): New.  Return TRUE if software
7646         prefetching is beneficial for the given CPU.
7647
7648 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
7649
7650         PR rtl-optimization/44326
7651         * implicit-zee.c (find_removable_zero_extends): Replace
7652         INSN_P with NONDEBUG_INSN_P.
7653
7654 2010-06-25  Martin Jambor  <mjambor@suse.cz>
7655
7656         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
7657         (struct ipa_node_params): Removed the modification_analysis_done flag.
7658         (ipa_is_param_modified): Removed.
7659         (ipa_analyze_node): Declare.
7660         (ipa_compute_jump_functions): Remove declaration.
7661         (ipa_count_arguments): Likewise.
7662         (ipa_detect_param_modifications): Likewise.
7663         (ipa_analyze_params_uses): Likewise.
7664         * ipa-prop.c (struct param_analysis_info): New type.
7665         (visit_store_addr_for_mod_analysis): Removed.
7666         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
7667         moved down in the file.
7668         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
7669         (ipa_count_arguments): Made static.
7670         (mark_modified): New function.
7671         (is_parm_modified_before_call): New function.
7672         (compute_pass_through_member_ptrs): New parameter parms_info, call
7673         is_parm_modified_before_call instead of ipa_is_param_modified.
7674         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
7675         it to compute_pass_through_member_ptrs.
7676         (ipa_compute_jump_functions): New parameter parms_info, pass it to
7677         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
7678         on the callee if it is analyzed.  Made static.
7679         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
7680         is_parm_modified_before_call instead of ipa_is_param_modified.
7681         (ipa_analyze_call_uses): New parameter parms_info, pass it to
7682         ipa_analyze_indirect_call_uses.
7683         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
7684         ipa_analyze_call_uses.
7685         (ipa_analyze_params_uses): New parameter parms_info, pass it to
7686         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
7687         (ipa_analyze_node): New function.
7688         (ipa_print_node_params): Do not dump the modified flag.
7689         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
7690         it.  Do not stream the modified parameter flag.
7691         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
7692         it.  Do not stream the modified parameter flag.
7693         * ipa-cp.c (ipcp_analyze_node): Removed.
7694         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
7695         with only a call to ipa_analyze_node.
7696         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
7697         node with only a call to ipa_analyze_node.
7698
7699 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7700
7701         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
7702
7703 2010-06-25  Jan Hubicka  <jh@suse.cz>
7704
7705         * tree-pass.h (pass_split_functions): Declare.
7706         * opts.c (decode_options): Enable function splitting at -O2
7707         * timevar.def (TV_IPA_FNSPLIT): New macro.
7708         * ipa-split.c: New file.
7709         * common.opt (-fpartial-inlining): New flag.
7710         * Makefile.in (ipa-split.o): New object file.
7711         * passes.c (init_optimization_passes): Add ipa-split.
7712         * params.def (partial-inlining-entry-probability): New parameters.
7713         * doc/invoke.texi (-fpartial-inlining): New.
7714
7715 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7716
7717         PR 44665
7718         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
7719         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
7720         (gimplify_expr): Likewise.
7721
7722 2010-06-25  Martin Jambor  <mjambor@suse.cz>
7723
7724         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
7725         statements instead of bailing out on them.
7726         (ipa_analyze_indirect_call_uses): Do not require that loads from the
7727         parameter are in the same BB as the condition.  Update comments.
7728
7729 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
7730
7731         PR middle-end/43866
7732         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
7733         true or always false, return NULL_TREE.
7734         (tree_unswitch_single_loop): Optimize conditions even when reaching
7735         max-unswitch-level parameter.  If num > 0, optimize first all conditions
7736         using entry checks, then do still reachable block discovery and consider
7737         only conditions in still reachable basic blocks in the loop.
7738
7739         PR tree-optimization/44539
7740         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
7741         the call doesn't have LHS, but has VDEF.
7742
7743 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
7744
7745         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
7746         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
7747         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
7748         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
7749         * system.h (MODIFY_TARGET_NAME): Poison.
7750
7751 2010-06-25  Alan Modra  <amodra@gmail.com>
7752
7753         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
7754         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
7755         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
7756         CMODEL_LARGE as default.
7757         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
7758         (offsettable_ok_by_alignment): Delete.
7759         (rs6000_emit_move): Remove mcmodel=medium optimization.
7760
7761 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
7762
7763         With large parts from Jim Wilson:
7764         PR target/43902
7765         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
7766         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
7767         * optabs.c (optab_for_tree_code): Likewise.
7768         (expand_widen_pattern_expr): Likewise.
7769         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
7770         out of execute_optimize_widening_mul.
7771         (convert_plusminus_to_widen): New function.
7772         (execute_optimize_widening_mul): Use the two new functions.
7773         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
7774         Remove code to generate widening multiply-accumulate.  Add support
7775         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
7776         * gimple-pretty-print.c (dump_ternary_rhs): New function.
7777         (dump_gimple_assign): Call it when appropriate.
7778         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
7779         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
7780         (expand_gimple_stmt_1): Likewise.
7781         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
7782         WIDEN_MULT_MINUS_EXPR.
7783         * tree-ssa-operands.c (get_expr_operands): Likewise.
7784         * tree-inline.c (estimate_operator_cost): Likewise.
7785         * gimple.c (extract_ops_from_tree_1): Renamed from
7786         extract_ops_from_tree.  Add new arg for a third operand; fill it.
7787         (gimple_build_assign_stat): Support operations with three operands.
7788         (gimple_build_assign_with_ops_stat): Likewise.
7789         (gimple_assign_set_rhs_from_tree): Likewise.
7790         (gimple_assign_set_rhs_with_ops_1): Renamed from
7791         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
7792         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
7793         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
7794         WIDEN_MULT_MINUS_EXPR.
7795         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
7796         (extract_ops_from_tree_1): Adjust declaration.
7797         (gimple_assign_set_rhs_with_ops_1): Likewise.
7798         (gimple_build_assign_with_ops): Pass NULL for last operand.
7799         (gimple_build_assign_with_ops3): New macro.
7800         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
7801         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
7802         functions.
7803         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
7804         (verify_gimple_assign): Call it.
7805         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
7806         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
7807         functions for dealing with three-operand statements.
7808         * tree.c (commutative_ternary_tree_code): New function.
7809         * tree.h (commutative_ternary_tree_code): Declare it.
7810         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
7811         ternary statements.
7812         (gimple_assign_nonzero_warnv_p): Likewise.
7813         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
7814         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
7815         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
7816         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
7817         (struct hashtable_expr): New member ternary in the union.
7818         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
7819         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
7820         (iterative_hash_hashable_expr): Likewise.
7821         (print_expr_hash_elt): Handle EXPR_TERNARY.
7822         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
7823         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
7824         statements.  Handle GIMPLE_TERNARY_RHS.
7825
7826 2010-06-25  Jan Hubicka  <jh@suse.cz>
7827
7828         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
7829
7830 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
7831
7832         PR c/44517
7833         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
7834         parameters are not good.
7835         (c_parser_parameter_declaration): Error unknown type name if the type
7836         name can't start declaration specifiers.
7837
7838 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
7839
7840         * gcc.c (translate_options): Don't mention +e in comment.
7841         (process_command): Don't handle +e specially.
7842
7843 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
7844
7845         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
7846
7847         * ira-build.c (merge_hard_reg_conflicts): New function.
7848         (create_cap_allocno, copy_info_to_removed_store_destinations,
7849         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
7850         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
7851         (remove_unnecessary_allocnos, remove_low_level_allocnos)
7852         copy_nifo_to_removed_store_destination): Use them.
7853         * ira-lives.c (make_hard_regno_born): New function, split out of
7854         make_regno_born.
7855         (make_allocno_born): Likewise.
7856         (make_hard_regno_dead): New function, split out of make_regno_dead.
7857         (make_allocno_dead): Likewise.
7858         (inc_register_pressure): New function, split out of set_allocno_live.
7859         (dec_register_pressure): New function, split out of clear_allocno_live.
7860         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
7861         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
7862         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
7863         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
7864         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
7865         mark_pseudo_regno_live.
7866         (process_bb_node_lives): Use mark_pseudo_regno_live,
7867         make_hard_regno_born and make_allocno_dead.
7868         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
7869         set_allocno_live, clear_allocno_live): Delete functions.
7870
7871         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
7872         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
7873         functions.
7874         (ira_flattening): Use ira_parent_allocno.
7875         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
7876         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
7877
7878         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
7879         statement.
7880
7881         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
7882         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
7883         minmax_set_iter_cond, minmax_set_iter_next,
7884         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
7885         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
7886         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
7887         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
7888         uses changed.
7889
7890         * ira-int.h (struct live_range, live_range_t): Renamed from struct
7891         ira_allocno_live_range and allocno_live_range_t; all uses changed.
7892         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
7893         All uses changed.
7894
7895 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
7896
7897         * thumb2.md (thumb2_tlobits_cbranch): Delete.
7898         (peephole2 to convert zero_extract/compare of single bit to
7899          lshift/compare): New.
7900
7901 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
7902
7903         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
7904         recursive call and call to 'int_const_binop'.
7905         (build_range_check, fold_cond_expr_with_comparison, unextend,
7906         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
7907         multiple_of_p): Adjust call to const_binop.
7908
7909 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
7910
7911         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
7912         determine size of XFmode operand.
7913         (XFmode extended DFmode push splitter): Ditto.
7914         (XFmode extended SFmode push splitter): Ditto.
7915
7916 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
7917
7918         PR target/44588
7919         * config/i386/i386.md (extract_code): New.
7920         (<u>divmodqi4): Likewise.
7921         (divmodhiqi3): Likewise.
7922         (udivmodhiqi3): Likewise.
7923         (<u>divqi3): Remvoved.
7924
7925 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
7926
7927         PR middle-end/44492
7928         * recog.h (struct recog_data): Add is_asm field.
7929         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
7930         present in constraints of inline-asm operand and memory operand
7931         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
7932         (extract_insn): Initialize recog_data.is_asm.
7933         * doc/md.texi (Constraints): Document operand side-effect rules.
7934
7935 2010-06-24  Andi Kleen  <ak@linux.intel.com>
7936
7937         * c-parser.c (c_parser_conditional_expression): Call
7938         warn_for_omitted_condop.
7939         * doc/invoke.texi: Document omitted condop warning.
7940
7941 2010-06-24  Nick Clifton<nickc@redhat.com>
7942
7943         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
7944         insn in the sequence is a jump insn before setting its label.
7945
7946 2010-06-24  Alan Modra  <amodra@gmail.com>
7947
7948         * collect2.c (main): Match exactly --version and --help.
7949
7950 2010-06-24  DJ Delorie  <dj@redhat.com>
7951
7952         * config/m32c/m32c-pragma.c: Don't include rtl.h.
7953
7954 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
7955
7956         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
7957         using X87MODEF mode iterator.
7958         (pushsf splitter): Macroize splitter using P mode iterator.
7959         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
7960         mode iterator.
7961
7962         (*movxf_internal): Rename from *movxf_integer.
7963         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
7964         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
7965         (*movdf_internal): Rename from *movdf_integer.
7966         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
7967         (*movsf_internal): Rename from *movdf_1.
7968
7969 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
7970
7971         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
7972         (const_gimple_seq_node): Removed typedefs.
7973
7974         * gimple.h (gimple_seq_node_d, gimple_seq_node)
7975         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
7976
7977 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
7978
7979         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
7980         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
7981         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
7982         and CODE_FOR_vec_extract_lo_v4df.
7983
7984         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
7985         Changed to define_insn_and_split.
7986         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
7987         (vec_extract_lo_v16hi): Likewise.
7988         (vec_extract_lo_v32qi): Likewise.
7989         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
7990         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
7991
7992 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
7993
7994         PR target/44640
7995         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
7996         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
7997         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
7998         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
7999         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
8000
8001         PR target/44640
8002         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
8003
8004         PR other/44644
8005         * df-core.c (struct df): Rename to df_d.
8006         * df.h (struct df): Likewise.
8007         * dse.h (struct df): Remove forward declaration.
8008         * recog.h (struct insn_data): Rename to:
8009         (struct_insn_data_d).  Adjusted all users.
8010
8011 2010-06-23  Arnaud Charlet  <charlet@adacore.com
8012
8013         PR ada/22220
8014         * doc/install.texi: Update requirements to build GNAT.
8015
8016 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
8017
8018         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
8019         enum type.
8020         (m68k_sched_attr_opx_type): Remove unreachable return.
8021         (m68k_sched_attr_opy_type): Likewise.
8022         (m68k_sched_attr_size): Likewise.
8023         (sched_get_opxy_mem_type): Likewise.
8024         (m68k_sched_attr_op_mem): Likewise.
8025
8026 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
8027
8028         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
8029         new statement and adjust VDEF only if necessary.  Remove superfluous
8030         call to maybe_clean_or_replace_eh_stmt.
8031         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
8032         copy the flags.
8033         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
8034         * tree-inline.c (copy_bb): ...and not there.
8035
8036 2010-06-22  Cary Coutant  <ccoutant@google.com>
8037
8038         * dwarf2out.c (is_nested_in_subprogram): New function.
8039         (should_move_die_to_comdat): Use it.
8040         (copy_ancestor_tree): Don't mark DIEs here.
8041         (copy_decls_walk): Start walk from root of newly-added tree;
8042         mark DIEs here instead.
8043
8044 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8045
8046         * config/i386/i386.md (unit): Also check sseishft1.
8047
8048 2010-06-22  Jan Hubicka  <jh@suse.cz>
8049
8050         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
8051         enabled.
8052
8053 2010-06-22  Jan Hubicka  <jh@suse.cz>
8054
8055         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
8056         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
8057         Return true if something changed.
8058         * df.h (df_confluence_function_n): Return bool.
8059         * df-core.c (df_worklist_propagate_forward,
8060         df_worklist_propagate_backward): Track changes and ages.
8061         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
8062         track ages.
8063         * dse.c (dse_confluence_n): Return always true.
8064
8065 2010-06-22  Jan Hubicka  <jh@suse.cz>
8066
8067         * bitmap.c (bitmap_clear_bit): Micro optimize.
8068
8069 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
8070
8071         * config/i386/i386.md (SWI1248x): New mode iterator.
8072         (SWI48x): Ditto.
8073         (SWI12): Ditto.
8074         (SWI24): Ditto.
8075
8076         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
8077         SWI1248x mode iterator.
8078         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
8079         using SWI124 mode iterator.
8080         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
8081         mode iterator.
8082         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
8083         *pushdi2_prologue_rex64 using P mode iterator.
8084         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
8085         using SWI48 mode iterator.
8086         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
8087         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
8088         using SWI1248x mode iterator.
8089         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
8090         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
8091         SWI48 mode iterator.
8092         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
8093         iterator.
8094         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
8095         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
8096         SWI12 mode iterator.
8097         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
8098         SWI12 mode iterator.
8099         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
8100         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
8101         SWI24 mode iterator.
8102         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
8103         SWI48 mode iterator.
8104         (mov<mode>_insn_1): New expander.
8105         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
8106         using SWI48x mode iterator.
8107
8108         (*movoi_internal_avx): Rename from *movoi_internal.
8109         (*movti_internal_rex64): Rename from *movti_rex64.
8110         (*movti_internal_sse): Rename from *movti_sse.
8111         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
8112         (*movdi_internal): Rename from *movdi_2.
8113         (*movsi_internal): Rename from *movsi_1.
8114         (*movhi_internal): Rename from *movhi_1.
8115         (*movqi_internal): Rename from *movqi_1.
8116
8117         (insv): Update the call to gen_movsi_insv_1 for rename.
8118         * config/i386/i386.c (promote_duplicated_reg): Ditto.
8119
8120 2010-06-22  Jan Hubicka  <jh@suse.cz>
8121
8122         * passes.c (execute_function_todo): Move call of statistics_fini_pass
8123         to ...
8124         (execute_todo) ... this one.
8125
8126 2010-06-22  Alan Modra  <amodra@gmail.com>
8127
8128         PR target/44364
8129         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
8130         * caller-save.c (insert_restore, insert_save): Use non-validate
8131         form of adjust_address.
8132
8133 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8134
8135         PR target/39690
8136         * config/pa/pa.c (override_options): Disable
8137         -freorder-blocks-and-partition.
8138
8139 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
8140
8141         PR target/44615
8142         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
8143
8144         * config/i386/i386.md (type): Add sseishft1
8145
8146         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
8147         (ppro_insn_load): Likewise.
8148         (ppro_insn_store): Likewise.
8149         (ppro_insn_both): Likewise.
8150
8151         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
8152         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
8153         for type.
8154         (*vec_extractv2di_1_avx): Likewise.
8155         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
8156         type.  Remove atom_unit.
8157         (*vec_extractv2di_1_sse2): Likewise.
8158
8159 2010-06-21  DJ Delorie  <dj@redhat.com>
8160
8161         * diagnostic.h (diagnostic_classification_change_t): New.
8162         (diagnostic_context): Add history and push/pop list.
8163         (diagnostic_push_diagnostics): Declare.
8164         (diagnostic_pop_diagnostics): Declare.
8165         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
8166         from pragmas in a history chain instead of the global table.
8167         (diagnostic_push_diagnostics): New.
8168         (diagnostic_pop_diagnostics): New.
8169         (diagnostic_report_diagnostic): Scan history chain to find state
8170         of diagnostics as of the diagnostic location.
8171         * opts.c (set_option): Pass UNKNOWN_LOCATION to
8172         diagnostic_classify_diagnostic.
8173         (enable_warning_as_error): Likewise.
8174         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
8175         use in the history chain.
8176         * doc/extend.texi: Document pragma GCC diagnostic changes.
8177
8178 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
8179
8180         * dwarf2out.c (add_linkage_name): New function.  Don't add
8181         anything to DW_TAG_member DIEs.
8182         (add_name_and_src_coords_attributes): Use it.
8183         (gen_variable_die): Call it for C++ static data members if
8184         specification is DW_TAG_member.
8185
8186         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
8187         C++ char16_t and char32_t.
8188
8189         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
8190         * genattrtab.c: Include vecprim.h.
8191         (cached_attrs, cached_attr_count, attrs_seen_once,
8192         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
8193         attrs_cached_after): New variables.
8194         (find_attrs_to_cache): New function.
8195         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
8196         (write_test_expr): Add attrs_cached argument, return it too,
8197         attempt to cache non-const attributes used more than once in
8198         a single case handling.
8199         (write_attr_get): Use find_attrs_to_cache, for caching candidates
8200         emit cached_* variables.  Adjust write_attr_set callers.
8201         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
8202         to find attributes that should be cached in this block.  Adjust
8203         write_test_expr callers.
8204         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
8205         callers.
8206         (make_automaton_attrs): Adjust write_test_expr caller.
8207
8208         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
8209         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
8210         (make_automaton_attrs): If find_tune_attr returns non-NULL,
8211         write separate internal_dfa_insn_code_* and insn_default_latency_*
8212         functions for each attribute's value and emit init_sched_attrs
8213         function and function pointers.
8214         * genattr.c (const_attrs, reservations): New variables.
8215         (gen_attr): Add const attributes to const_attrs vector.
8216         (check_tune_attr, find_tune_attr): New functions.
8217         (main): Add reservations to reservations vector.  If find_tune_attr
8218         returns true, add prototype for init_sched_attrs and make
8219         internal_dfa_insn_code and insn_default_latency function pointers,
8220         otherwise define init_sched_attrs as dummy macro.
8221         * cfgexpand.c: Include insn-attr.h.
8222         (gimple_expand_cfg): Call init_sched_attrs.
8223
8224         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
8225
8226         PR target/44575
8227         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
8228         va_arg from a set of register save slots into a temporary,
8229         if the container is bigger than type size, do the copying
8230         using smaller mode or using memcpy.
8231
8232         PR bootstrap/44426
8233         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
8234         prototype.
8235         (sel_print_to_dot): Remove macro.
8236         (sel_print): Likewise.  New prototype.
8237         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
8238         (sel_print): New function.
8239
8240 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8241
8242         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
8243         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
8244
8245 2010-06-21  Nick Clifton  <nickc@redhat.com>
8246
8247         * config/rx/rx.h (PTRDIFF_TYPE): Define.
8248         (SMALL_REGISTER_CLASS): Define (to zero).
8249         (PRINT_OPERAND): Delete.
8250         (PRINT_OPERAND_ADDRESS): Delete.
8251         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
8252         (rx_print_operand_address): Delete prototype.
8253         * config/rx/rx.c (rx_print_operand): Make static.
8254         Allow %H and %L to handle CONST_DOUBLEs.
8255         (rx_print_operand_address): Make static.
8256         (rx_gen_move_template): Rename local variable 'template' to
8257         out_template.
8258         (rx_function_arg): Do not pass unknown sized objects in registers.
8259         (TARGET_PRINT_OPERAND): Define.
8260         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8261
8262 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8263
8264         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
8265
8266 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
8267
8268         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
8269         stack-alignment for simple leaf-functions.
8270
8271 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
8272
8273         * doc/install.texi: Document bootstrap-lto.
8274
8275 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
8276
8277         PR debug/44248
8278         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
8279         (input_function): Drop them here, if VTA is disabled.
8280
8281 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
8282
8283         PR target/44546
8284         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
8285         New predicate.
8286         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
8287         ix86_swapped_fp_comparsion_operator instead of
8288         ix86_fp_comparison_operator.
8289
8290         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
8291         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
8292         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
8293         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
8294         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
8295         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
8296
8297 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
8298
8299         PR other/32998
8300         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
8301         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
8302         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
8303         (decode_cmdline_option): Update for this return value.  Set
8304         orig_option_with_args_text field.  Set arg field for unknown
8305         options.  Make static.
8306         (decode_cmdline_options_to_array): New.
8307         (prune_options): Update handling of find_opt return value.
8308         * opts.c (read_cmdline_option): Take decoded option.  Return void.
8309         (read_cmdline_options): Take decoded options.
8310         (decode_options): Add parameters for decoded options.  Use
8311         decode_cmdline_options_to_array.  Use decoded options for -O
8312         scan.  Use integral_argument for -O parameters.  Update call to
8313         read_cmdline_options.
8314         (enable_warning_as_error): Update handling of find_opt return value.
8315         * opts.h: Update comment on unknown options.
8316         (struct cl_decoded_option): Update comments on opt_index and arg.
8317         Add orig_option_with_args_text.
8318         (decode_cmdline_option): Remove.
8319         (decode_cmdline_options_to_array): Declare.
8320         (decode_options): Update prototype.
8321         * toplev.c (save_argv): Remove.
8322         (save_decoded_options, save_decoded_options_count): New.
8323         (read_integral_parameter): Remove.
8324         (print_switch_values): Use decoded options.
8325         (toplev_main): Don't set save_argv.  Update call to decode_options.
8326         * toplev.h (read_integral_parameter): Remove.
8327         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
8328
8329 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
8330
8331         PR target/44072
8332         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
8333         immediate.
8334         * constraints.md (Pw, Px): New constraints.
8335         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
8336
8337 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
8338
8339         * config/i386/sse.md (fma4modesuffixf4): Removed.
8340         (ssemodesuffixf2s): Likewise.
8341         (ssemodesuffixf4): Likewise.
8342         (ssemodesuffixf2c): Likewise.
8343         (ssescalarmodesuffix2s): Likewise.
8344         (avxmodesuffixf2c): Likewise.
8345         (ssemodesuffix): New.
8346         (ssescalarmodesuffix): Likewise.
8347         Update patterns with ssemodesuffix and ssescalarmodesuffix.
8348
8349 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
8350
8351         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
8352
8353 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
8354
8355         * stor-layout.c (debug_rli): Remove unused local variables.
8356
8357 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
8358
8359         PR rtl-optimization/40900
8360         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
8361         original expression for later reuse.
8362         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
8363         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
8364
8365 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
8366
8367         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
8368         double_int_fits_in_uhwi_p): Implement as static inline.
8369         (double_int_xor): New inline function.
8370         (double_int_lrotate, double_int_rrotate, double_int_max,
8371         double_int_umax, double_int_smax, double_int_min, double_int_umin,
8372         double_int_smin): Declare.
8373         (lrotate_double, rrotate_double): Remove declaration.
8374         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
8375         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
8376         (double_int_lrotate, double_int_rrotate, double_int_max,
8377         double_int_umax, double_int_smax, double_int_min, double_int_umin,
8378         double_int_smin): New function.
8379         * fold-const.c (int_const_binop): Clean up, use double_int_*
8380         functions.
8381         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
8382         double_int_* and immed_double_int_const functions.
8383
8384 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
8385
8386         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
8387         * function.c (types_used_by_cur_var_decl): Likewise.
8388         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
8389
8390 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
8391
8392         * tree.h (record_layout_info): Change type of pending_statics field
8393         to a VEC.
8394         * stor-layout.c (start_record_layout): Store NULL into
8395         pending_statics.
8396         (debug_rli): Call debug_vec_tree instead of debug_tree.
8397         (place_field): Likewise.
8398         (finish_record_layout): Likewise.
8399
8400 2010-06-18  Alan Modra  <amodra@gmail.com>
8401
8402         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
8403
8404 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8405
8406         PR target/43740
8407         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
8408         for SET source operand from SET destination operand.
8409
8410 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
8411
8412         PR rtl-optimization/39871
8413         * reload1.c (init_eliminable_invariants): For flag_pic, disable
8414         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
8415         (function_invariant_p): Rule out a plus of frame or arg pointer with
8416         a SYMBOL_REF.
8417         * ira.c (find_reg_equiv_invariant_const): Likewise.
8418
8419 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
8420
8421         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
8422         print_operand_address and puts to output the operand for CONST.
8423
8424 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
8425
8426         PR debug/44572
8427         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
8428         hook.
8429
8430 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8431
8432         * v850-protos.h (print_operand): Delete.
8433         (print_operand_address): Delete.
8434         * v850.h (PRINT_OPERAND): Delete.
8435         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8436         (PRINT_OPERAND_ADDRESS): Delete.
8437         * v850.c (print_operand_address): Rename to...
8438         (v850_print_operand_address): ...this.  Make static. Call
8439         v850_print_operand.
8440         (print_operand): Rename to...
8441         (v850_print_operand): ...this.  Make static.  Call
8442         v850_print_operand_address.
8443         (v850_print_operand_punct_valid_p): New function.
8444         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8445         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8446
8447 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8448
8449         * config/sh/sh-protos.h (print_operand): Delete.
8450         (print_operand_address): Delete.
8451         * config/sh/sh.h (PRINT_OPERAND): Delete.
8452         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8453         (PRINT_OPERAND_ADDRESS): Delete.
8454         * config/sh/sh.c (sh_print_operand_address): Make static.
8455         (sh_print_operand): Make static.  Call sh_print_operand_address
8456         and sh_print_operand.
8457         (sh_print_operand_punct_valid_p): New function.
8458         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8459         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8460
8461 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8462
8463         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
8464         (mcore_print_operand_address): Delete.
8465         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
8466         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8467         (PRINT_OPERAND_ADDRESS): Delete.
8468         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
8469         (mcore_print_operand): Make static.
8470         (mcore_print_operand_punct_valid_p): New function.
8471         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
8472         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8473
8474 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8475
8476         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
8477         (print_operand_address): Delete.
8478         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
8479         (PRINT_OPERAND_ADDRESS): Delete.
8480         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
8481         static.
8482         (m68hc11_print_operand): Make static.
8483         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8484
8485 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8486
8487         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
8488         (m32r_print_operand_address): Delete.
8489         * config/m32r/m32r.h (m32r_punct_chars): Delete.
8490         (PRINT_OPERAND): Delete.
8491         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8492         (PRINT_OPERAND_ADDRESS): Delete.
8493         * config/m32r/m32r.c (m32r_punct_chars): Make static.
8494         (m32r_print_operand_address): Make static.
8495         (m32r_print_operand): Make static.
8496         (m32r_print_operand_punct_valid_p): New function.
8497         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8498         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8499
8500 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8501
8502         * config/iq2000/iq2000-protos.h (print_operand): Delete.
8503         (print_operand_address): Delete.
8504         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
8505         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8506         (PRINT_OPERAND_ADDRESS): Delete.
8507         (iq2000_print_operand_punct): Delete.
8508         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
8509         (iq2000_print_operand_address): Make static.
8510         (iq2000_print_operand): Make static.
8511         (iq2000_print_operand_punct_valid_p): New function.
8512         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8513         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8514
8515 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8516
8517         * config/frv/frv-protos.h (frv_print_operand): Delete.
8518         (frv_print_operand_address): Delete.
8519         * config/frv/frv.h (PRINT_OPERAND): Delete.
8520         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8521         (PRINT_OPERAND_ADDRESS): Delete.
8522         * config/frv/frv.c (frv_print_operand_address): Make static.
8523         (frv_print_operand): Make static.
8524         (frv_print_operand_punct_valid_p): New function.
8525         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8526         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8527
8528 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8529
8530         * tree.h (vec_member): Declare.
8531         * tree.c (vec_member): Define.
8532
8533 2010-06-17  Richard Guenther  <rguenther@suse.de>
8534
8535         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
8536         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
8537
8538 2010-06-17  Richard Guenther  <rguenther@suse.de>
8539
8540         * tree-inline.c (declare_return_variable): Remove bogus code.
8541
8542 2010-06-17  Richard Guenther  <rguenther@suse.de>
8543
8544         * gimplify.c (gimplify_bind_expr): Always promote complex
8545         and vector variables to registers if possible.
8546
8547 2010-06-17  Richard Guenther  <rguenther@suse.de>
8548
8549         * expr.c (get_inner_reference): Use double_int for bit_offset
8550         calculation.
8551
8552 2010-06-16  DJ Delorie  <dj@redhat.com>
8553
8554         * common.opt (-fstrict-volatile-bitfields): new.
8555         * doc/invoke.texi: Document it.
8556         * fold-const.c (optimize_bit_field_compare): For volatile
8557         bitfields, use the field's type to determine the mode, not the
8558         field's size.
8559         * expr.c (expand_assignment): Likewise.
8560         (get_inner_reference): Likewise.
8561         (expand_expr_real_1): Likewise.
8562         * expmed.c (store_fixed_bit_field): Likewise.
8563         (extract_bit_field_1): Likewise.
8564         (extract_fixed_bit_field): Likewise.
8565
8566 2010-06-16  Richard Guenther  <rguenther@suse.de>
8567
8568         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
8569
8570 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
8571
8572         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
8573         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
8574         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
8575         * debug.c: Likewise.
8576         * sdbout.c: Likewise.
8577         * vmsdbgout.c: Likewise.
8578         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
8579         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
8580         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
8581         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
8582         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
8583         * dwarf2out.c (dw_fde_struct): New fields
8584         dw_fde_vms_{end,begin}_prologue.
8585         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
8586         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
8587         (dwarf2out_vms_end_prologue): New function.
8588         (dwarf2out_vms_begin_epilogue): New function.
8589         (dw_val_struct): New value dw_val_class_vms_delta.
8590         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
8591         begin_epilogue for VMS.
8592         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
8593         new static functions.
8594         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
8595         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
8596         static functions.
8597         (print_die): New case dw_val_class_vms_delta.
8598         (attr_checksum): Likewise.
8599         (same_dw_val_p: Likewise.
8600         (size_of_die): Likewise.
8601         (value_format): Likewise.
8602         (output_die): Likewise.
8603         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
8604         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
8605         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
8606         dwarf2out_cfi_begin_epilogue
8607         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
8608
8609 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
8610
8611         * config/cris/cris-protos.h (cris_print_operand): Delete.
8612         (cris_print_operand_address): Delete.
8613         * config/cris/cris.h (PRINT_OPERAND): Delete.
8614         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8615         (PRINT_OPERAND_ADDRESS): Delete.
8616         * config/cris/cris.c (cris_print_operand_address): Make static.
8617         (cris_print_operand): Make static.
8618         (cris_print_operand_punct_valid_p): New function.
8619         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8620         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8621
8622 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
8623
8624         * config/arm/arm-protos.h (arm_print_operand): Delete.
8625         (arm_print_operand_address): Delete.
8626         * config/arm/arm.h (PRINT_OPERAND): Delete.
8627         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8628         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
8629         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
8630         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
8631         (arm_print_operand): Make static.
8632         (arm_print_operand_punct_valid_p): New function.
8633         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8634         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8635
8636 2010-06-16  Nick Clifton  <nickc@redhat.com>
8637
8638         * config/rx/constraints.md (NEGint4): New constraint.
8639         * config/rx/rx.md (attr cc): Add set_zsc.
8640         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
8641         initialised.
8642         (cmpsf): Likewise.
8643         (call_internal): Clobber the cc0 register.
8644         (call_value_internal): Likewise.
8645         (cstoresi4): Likewise.
8646         (movsieq): Likewise.
8647         (movsine): Likewise.
8648         (addsi3): Add alternative to handle small negative constants.
8649         (sunsi3): Likewise.
8650         (addsi3): Do not set the O bit in the cc0 register.
8651         (adddi3): Likewise.
8652         (subsi3): Likewise.
8653         (subdi3): Likewise.
8654         (andsi3): Reorder alternatives to prefer shorter forms.
8655         (mulsi3): Likewise.
8656         (iorsi3): Likewise.
8657         (negsi2): Note that the cc0 flags are set.
8658         (rotlsi3): Note that only the Z and S bits are set in cc0.
8659         (lshrsi3): Likewise.
8660         (ashlsi3): Likewise.
8661         (subsf3): Use %Q for the MEM operand.
8662         (fix_truncsfsi2): Likewise.
8663         (floatsisf2): Likewise.
8664         (bitset): Remove early clobber from destination.
8665         (bitset_in_memory): Likewise.
8666         (lrintsf2): Clobber the cc0 register.
8667         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
8668         (rx_print_operand): Handle %N.
8669
8670 2010-06-16  Jan Hubicka  <jh@suse.cz>
8671
8672         * df-core.c (df_compact_blocks): Free problem_temps vector.
8673
8674 2010-06-16  Martin Jambor  <mjambor@suse.cz>
8675
8676         PR tree-optimization/43905
8677         * tree-sra.c: Include tree-inline.h.
8678         (create_abstract_origin): Removed.
8679         (modify_function): Version the call graph node instead of creating
8680         abstract origins and dealing with same_body aliases.
8681         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
8682         function is versionable.
8683         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
8684
8685 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
8686
8687         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
8688         (CHOOSE_DYNAMIC_LINKER): Update.
8689
8690 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
8691
8692         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
8693         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
8694         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
8695         *prefetch_3dnow_rex.
8696
8697 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
8698
8699         * target.h (struct asm_out):Add declare_constant_name field.
8700         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
8701         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
8702         * output.h (default_asm_declare_constant_name): Declare.
8703         (assemble_label): Update prototype.
8704         * varasm.c (assemble_constant_contents): Use
8705         targetm.asm_out.declare_constant_name target hook.
8706         (assemble_label): Add 'file' argument.
8707         (default_asm_declare_constant_name): New function.
8708         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
8709         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
8710         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
8711
8712         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
8713         * config/darwin.c (darwin_asm_declare_constant_name): New function.
8714         (machopic_output_indirection): Update assemble_label argument list.
8715         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
8716         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
8717
8718 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
8719
8720         PR middle-end/44391
8721         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
8722         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
8723
8724 2010-06-15  Richard Guenther  <rguenther@suse.de>
8725
8726         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
8727
8728 2010-06-15  Paul Brook  <paul@codesourcery.com>
8729
8730         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
8731         hard-float ABI.
8732
8733 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
8734
8735         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
8736         don't get a vector type for output.
8737
8738 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
8739
8740         PR fortran/44536
8741         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
8742         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
8743         (LANG_HOOKS_DECLS): Add it.
8744         * gimplify.c (omp_notice_variable): Call
8745         lang_hooks.decls.omp_report_decl.
8746
8747 2010-06-15  Martin Jambor  <mjambor@suse.cz>
8748
8749         PR lto/44464
8750         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
8751         on the newly dead SSA name.
8752
8753 2010-06-15  Alan Modra  <amodra@gmail.com>
8754
8755         * doc/invoke.texi: Add mcmodel to powerpc options.
8756         * configure.ac: Add HAVE_LD_LARGE_TOC test.
8757         * configure: Regenerate.
8758         * config.in: Regenerate.
8759         * config/rs6000/linux64.opt (mcmodel): New.
8760         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
8761         (TARGET_CMODEL, SET_CMODEL): Define.
8762         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
8763         select CMODEL_MEDIUM default.
8764         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
8765         (TARGET_CMODEL): Define default.
8766         * config/rs6000/rs6000.c (cmodel): New variable.
8767         (rs6000_explicit_options): Add cmodel field.
8768         (rs6000_handle_option): Handle -mcmodel.
8769         (create_TOC_reference): Add largetoc_reg param.  Generate high,
8770         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
8771         (rs6000_delegitimize_address): Recognise new toc reference rtl
8772         and minimal-toc rtl.
8773         (rs6000_legitimize_reload_address): Handle new toc references.
8774         (print_operand_address): Handle legitimate_constant_pool_address_p
8775         match before lo_sum.
8776         (rs6000_eliminate_indexed_memrefs): Tidy.
8777         (rs6000_emit_move): Tweak threshold for inlining constants.
8778         Keep rs6000_emit_allocate_stack large stack frame offsets
8779         loaded into r0 inline.
8780         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
8781         (tocrel_base, tocrel_offset): New variables.
8782         (toc_relative_expr_p): Set them here.
8783         (print_operand_address): Skip over any offset on constant pool address.
8784         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
8785         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
8786         (offsettable_ok_by_alignment): New function.
8787         (rs6000_emit_move): Address suitably aligned local symbol_refs
8788         relative to the toc pointer for -mcmodel=medium.
8789         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
8790         strict param.  Allow lo_sum version of addressing.  Verify reg
8791         used for -mminimal-toc and -mcmodel != small.  Update all callers.
8792         * config/rs6000/constraints.md: Update for above change.
8793         * config/rs6000/predicates.md: Likewise.
8794         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
8795         code.
8796         (tls_gd): Split for -mcmodel=medium/large.
8797         (tls_gd_high, tls_gd_low): New.
8798         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
8799         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
8800         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
8801         (largetoc_high, largetoc_low): New.
8802         (cmptf_internal2): Add clobber.
8803         * config/rs6000/rs6000-protos.h: Update.
8804
8805 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
8806
8807         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
8808         true if no prefetch is going to be generated for a given group.
8809         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
8810         estimate the prefetch_count.
8811         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
8812         prefetch count by considering the unroll_factor and prefetch_mod
8813         for is_loop_prefetching_profitable.
8814
8815 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
8816
8817         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
8818         anything if the argument is not a MEM.
8819
8820 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
8821
8822         PR debug/43650
8823         PR debug/44181
8824         PR debug/44247
8825         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
8826         debug stmts.
8827         (canonicalize_loop_ivs): Likewise.
8828
8829 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
8830
8831         PR debug/43656
8832         * haifa-sched.c (setup_insn_reg_pressure_info,
8833         update_register_pressure): Reject debug insns.
8834         (ready_sort): Don't setup reg pressure for debug insns.
8835         (schedule_insn): Don't update reg pressure for debug insns.
8836
8837 2010-06-14  Richard Guenther  <rguenther@suse.de>
8838
8839         * lto-streamer.c (cached_bp): Remove.
8840         (bitpack_delete): Likewise.
8841         (bitpack_create): Likewise.
8842         (bp_get_next_word): Likewise.
8843         (bp_pack_value, bp_unpack_value): Move ...
8844         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
8845         Re-implement.
8846         (struct bitpack_d): Likewise.
8847         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
8848         New inline functions.
8849         * lto-streamer-out.c (lto_output_bitpack): Remove.
8850         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
8851         (pack_value_fields): Adjust.
8852         (lto_write_tree): Likewise.
8853         (output_gimple_stmt): Likewise.
8854         (output_function): Likewise.
8855         * lto-streamer-in.c (input_gimple_stmt): Adjust.
8856         (input_function): Likewise.
8857         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
8858         (lto_input_bitpack): Remove.
8859         (lto_materialize_tree): Adjust.
8860         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
8861         * lto-cgraph.c (lto_output_edge): Adjust.
8862         (lto_output_node): Likewise.
8863         (lto_output_varpool_node): Likewise.
8864         (lto_output_ref): Likewise.
8865         (input_node): Likewise.
8866         (input_varpool_node): Likewise.
8867         (input_ref): Likewise.
8868         (input_edge): Likewise.
8869         (output_node_opt_summary): Likewise.
8870         (input_node_opt_summary): Likewise.
8871         * ipa-pure-const.c (pure_const_write_summary): Likewise.
8872         (pure_const_read_summary): Likewise.
8873         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
8874         (ipa_read_indirect_edge_info): Likewise.
8875         (ipa_write_node_info): Likewise.
8876         (ipa_read_node_info): Likewise.
8877
8878 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
8879
8880         PR target/44534
8881         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
8882         (vec_extract_lo_v16hi): Likewise.
8883         (vec_extract_lo_v32qi): Likewise.
8884
8885 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
8886
8887         PR bootstrap/44426
8888         * tree.h (build_call_expr): Don't define as vararg macro, instead
8889         add a prototype.
8890         * builtins.c (build_call_nofold): Remove.
8891         (expand_builtin_int_roundingfn, expand_builtin_pow,
8892         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
8893         expand_builtin_memset_args, expand_builtin_strcmp,
8894         expand_builtin_strncmp, expand_builtin_memory_chk): Use
8895         build_call_nofold_loc instead of build_call_nofold.
8896         (build_call_expr): New function.
8897
8898         PR tree-optimization/44508
8899         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
8900         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
8901         don't eliminate trivially dead stmts.
8902         * tree-vrp.c (vrp_finalize): Pass false as last argument
8903         to substitute_and_fold.
8904         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
8905         to substitute_and_fold.
8906         * tree-ssa-ccp.c (ccp_finalize): Likewise.
8907
8908         PR bootstrap/44509
8909         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
8910
8911 2010-06-14  Ira Rosen  <irar@il.ibm.com>
8912
8913         PR tree-optimization/44507
8914         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
8915         to build initial vector for BIT_AND_EXPR.
8916         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
8917
8918 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
8919
8920         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
8921         adjust z10prop set_attr.
8922
8923 2010-06-13  Jan Hubicka  <jh@suse.cz>
8924
8925         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
8926         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
8927         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
8928         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
8929         datastructure checks into checking asserts.
8930         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
8931         * tree-ssa-sccvn.c (VN_INFO): Likewise.
8932         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
8933         df_ref_create_structure): Likewise.
8934         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
8935         pool_free): Use gcc_checking_assert.
8936         * alias.c (get_alias_set): Likewise.
8937         * var-tracking.c (variable_htab_free, shared_hash_copy,
8938         canonicalize_values_mark, variable_merge_over_cur): Likewise.
8939         * lto-streamer.c (bp_unpack_value): Likewise.
8940
8941 2010-06-13  Richard Guenther  <rguenther@suse.de>
8942
8943         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
8944         Do not stream but initialize TYPE_CANONICAL to NULL.
8945         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
8946         * gimple.c (gimple_types_compatible_p): Disregard
8947         TYPE_STRUCTURAL_EQUALITY_P.
8948         (gimple_register_type): Use TYPE_CANONICAL as cache.
8949         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
8950         before registering common types.
8951         * config/i386/i386.c (ix86_function_arg_boundary): Do not
8952         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
8953         * tree.h (TYPE_CANONICAL): Clarify documentation.
8954
8955 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
8956
8957         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8958         LIBCALL_VALUE): Remove macros.
8959         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
8960         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8961         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8962         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
8963         (ia64_function_value): Make static. Handle receiving the function
8964         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
8965
8966 2010-06-12  Jan Hubicka  <jh@suse.cz>
8967
8968         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
8969         at correct place.
8970
8971 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
8972
8973         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
8974
8975 2010-06-12  Jan Hubicka  <jh@suse.cz>
8976
8977         * df-core.c (df_clear_bb_info): New function.
8978         (df_set_blocks): bb_info is always allocated.
8979         (df_get_bb_info): Use block_info_elt_size.
8980         (df_set_bb_info): Likewise.
8981         (df_compact_blocks): Update for new block_info.
8982         (grow_bb_info): New function.
8983         * df-problems.c (df_grow_bb_info): Move to df-core.c
8984         (df_rd_set_bb_info): Remove.
8985         (df_rd_free_bb_info): Do not free block pool.
8986         (df_rd_alloc): Do not create pool, use check for
8987         obstack presence instead of NULL pointer for new blocks.
8988         (df_rd_free): DO not free alloc pool; clear block_info.
8989         (problem_RD): Add size of block info structure.
8990         (df_lr_set_bb_info): Remove.
8991         (df_lr_free_bb_info): Do not free block pool.
8992         (df_lr_alloc): Do not create pool, use check for
8993         obstack presence instead of NULL pointer for new blocks.
8994         (df_lr_free): DO not free alloc pool; clear block_info.
8995         (problem_LR): Add size of block info structure.
8996         (df_live_set_bb_info): Remove.
8997         (df_live_free_bb_info): Do not free block pool.
8998         (df_live_alloc): Do not create pool, use check for
8999         obstack presence instead of NULL pointer for new blocks.
9000         (df_live_free): DO not free alloc pool; clear block_info.
9001         (problem_LIVE): Add size of block info structure.
9002         (problem_CHAIN): Add size of block info structure.
9003         (df_byte_lr_set_bb_info): Remove.
9004         (df_byte_lr_free_bb_info): Do not free block pool.
9005         (df_byte_lr_alloc): Do not create pool, use check for
9006         obstack presence instead of NULL pointer for new blocks.
9007         (df_byte_lr_free): DO not free alloc pool; clear block_info.
9008         (problem_BYTE_LR): Add size of block info structure.
9009         (problem_NOTE): Add size of block info structure.
9010         (df_byte_MD_set_bb_info): Remove.
9011         (df_byte_MD_free_bb_info): Do not free block pool.
9012         (df_byte_MD_alloc): Do not create pool, use check for
9013         obstack presence instead of NULL pointer for new blocks.
9014         (df_byte_MD_free): DO not free alloc pool; clear block_info.
9015         (problem_BD): Add size of block info structure.
9016         * df-scan.c (df_scan_free_internal): Free block pool.
9017         (df_scan_set_bb_info): Remove.
9018         (df_scan_free_bb_info): Check for artificial_defs instead
9019         of bb_info being non-NULL.
9020         (df_scan_alloc): DO not create df_scan_block pool.
9021         (problem_SCAN): Set size of block info.
9022         (df_bb_refs_record): Do not allocate bb_info.
9023         * df.h (df_problem): Add block_info_elt_size.
9024         (struct dataflow): Change block_info to void *.
9025         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
9026         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
9027         in-line structures.
9028
9029 2010-06-12  Jan Hubicka  <jh@suse.cz>
9030
9031         PR tree-optimize/44485
9032         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
9033         containing use of return value of noreturn function.
9034
9035 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
9036
9037         * targhooks.c (default_function_value): Don't use
9038         FUNCTION_OUTGOING_VALUE.
9039         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
9040         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
9041
9042 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
9043
9044         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
9045         Add crtfastmath.o to extra_parts.
9046         * config/mips/crtfastmath.c: New.
9047         * config/mips/linux.h (ENDFILE_SPEC): New.
9048
9049 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
9050
9051         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
9052         old_type in parameter.
9053         (gcc_type_for_value): Update call to gcc_type_for_interval.
9054         (compute_type_for_level_1): Renamed compute_type_for_level.
9055         Update call to gcc_type_for_interval.
9056
9057 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
9058
9059         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
9060         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
9061
9062 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
9063
9064         * opts-common.c: Include options.h.
9065         (integral_argument): Move from opts.c.
9066         (decode_cmdline_option): New.  Based on read_cmdline_option.
9067         * opts.c (integral_argument): Move to opts-common.c.
9068         (read_cmdline_option): Move most contents to
9069         decode_cmdline_option.  Use %qs in diagnostics.
9070         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
9071         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
9072         decode_cmdline_option): New.
9073
9074 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
9075
9076         PR target/44481
9077         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
9078         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
9079         (partiysi2_cmp): Ditto.
9080         (*partiyhi2_cmp): Ditto.
9081         (*parityqi2_cmp): Remove.
9082
9083 2010-06-11  Jan Hubicka  <jh@suse.cz>
9084
9085         * bitmap.h (bmp_iter_next_bit): New.
9086         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
9087
9088 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
9089             Eric Botcazou  <ebotcazou@adacore.com>
9090
9091         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
9092         computed cost.
9093
9094 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
9095
9096         * config/i386/i386.md (unspec): New define_c_enum.
9097         (unspecv): Ditto.
9098
9099 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
9100
9101         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
9102
9103 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
9104
9105         PR middle-end/44483
9106         * tree-if-conv.c (bb_predicate_s): New struct.
9107         (bb_predicate_p): New.
9108         (bb_has_predicate): New.
9109         (bb_predicate): New.
9110         (set_bb_predicate): New.
9111         (bb_predicate_gimplified_stmts): New.
9112         (set_bb_predicate_gimplified_stmts): New.
9113         (add_bb_predicate_gimplified_stmts): New.
9114         (init_bb_predicate): New.
9115         (free_bb_predicate): New.
9116         (is_predicated): Use bb_predicate.
9117         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
9118         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
9119         before processing their successors.
9120         (clean_predicate_lists): Removed.
9121         (find_phi_replacement_condition): Use bb_predicate.
9122         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
9123         computations.
9124         (insert_gimplified_predicates): New.
9125         (combine_blocks): Call insert_gimplified_predicates.
9126         (tree_if_conversion): Call free_bb_predicate instead of
9127         clean_predicate_lists.
9128
9129 2010-10-11  Paul Brook  <paul@codesourcery.com>
9130
9131         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
9132         * config/arm/arm.c (all_architectures): Change v7e-m default to
9133         cortexm4.
9134         * config/arm/arm-cores.def: Add cortex-m4.
9135         * config/arm/arm-tune.md: Regenerate.
9136
9137 2010-06-11  Jan Hubicka  <jh@suse.cz>
9138
9139         * ipa-pure-const.c (special_builtlin_state): New function.
9140         (check_call): Use it instead of special casign BUILT_IN_RETURN.
9141         (propagate_pure_const): Use it.
9142
9143 2010-06-11  Jan Hubicka  <jh@suse.cz>
9144
9145         * df-problems.c (df_live_scratch): Convert to bitmap_head.
9146         (df_live_alloc): Initialize df_live_scratch when initializing
9147         problem_data.
9148         (df_live_transfer_function): Update uses of df_live_scratch.
9149         (df_live_free): Free problem_data; clear df_live_scratch before
9150         releasing the obstack.
9151         (df_md_free): Free problem data.
9152
9153 2010-06-11  Jan Hubicka  <jh@suse.cz>
9154
9155         * doc/invoke.texi (Wsuggest-attribute): Document.
9156         (Wmissing-noreturn): Remove.
9157         * ipa-pure-const.c (warn_function_noreturn): New function.
9158         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
9159         warn_missing_noreturn.
9160         * common.opt (Wsuggest-attribute=noreturn): New.
9161         * tree-flow.h (warn_function_noreturn): Declare.
9162         * tree-cfg.c (execute_warn_function_noreturn): Use
9163         warn_function_noreturn.
9164         (gate_warn_function_noreturn): New.
9165         (pass_warn_function_noreturn): Update.
9166
9167 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9168
9169         * c-typeck.c (handle_warn_cast_qual): Add loc
9170         parameter. Improve warning message.
9171         (build_c_cast): Pass location to handle_warn_cast_qual.
9172
9173 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
9174
9175         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
9176         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
9177         insn mnemonic.
9178         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
9179
9180 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
9181
9182         Fix bootstap on mips
9183         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
9184         be naming typedefs.
9185
9186 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
9187
9188         * system.h (helper_const_non_const_cast): New inline for
9189         gcc version <= 4.0.
9190         (CONST_CAST2): For gcc version <= 4.0 use
9191         new helper to do const/non-const casting.
9192
9193 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9194
9195         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
9196         * Makefile.in (OBJS-common): Include insn-enums.o.
9197         (insn-enums.o): New rule.
9198         (simple_generated_c): Add insn-enums.c.
9199         (build/genenums.o): New rule.
9200         (genprogmd): Add "enums".
9201         * genconstants.c (print_enum_type): Declare a C string array
9202         for each enum.
9203         * genenums.c: New file.
9204         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
9205         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
9206         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
9207
9208 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9209
9210         * doc/md.texi (define_enum_attr): Document.
9211         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
9212         * read-md.h (lookup_enum_type): Declare.
9213         * read-md.c (lookup_enum_type): New function.
9214         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
9215         * genattrtab.c (attr_desc): Add an enum_name field.
9216         (evaluate_eq_attr): Take the associated attribute as argument.
9217         Get the enum prefix from the enum_name field, if defined.
9218         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
9219         (simplify_test_exp): Pass attr to evaluate_eq_attr.
9220         (add_attr_value): New function, split out from...
9221         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
9222         (write_test_expr): Pass attr to evaluate_eq_attr.
9223         (write_attr_get): Use the enum_name as the enum tag, if defined.
9224         (write_attr_valueq): Use the enum_name as a prefix, if defined.
9225         (find_attr): Initialize enum_name.
9226         (main): Handle DEFINE_ENUM_ATTR.
9227         * gensupport.c (process_rtx): Likewise.
9228         * config/mips/mips.h (mips_tune_attr): Delete.
9229         * config/mips/mips.md (cpu): Use define_attr_enum.
9230
9231 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9232
9233         * doc/md.texi (define_c_enum, define_enum): Document.
9234         * read-md.h (md_constant): Add a parent_enum field.
9235         (enum_value, enum_type): New structures.
9236         (upcase_string, traverse_enum_types): Declare.
9237         * read-md.c (enum_types): New variable.
9238         (upcase_string, add_constant): New functions.
9239         (handle_constants): Don't create the hash table here.
9240         Use add_constant.
9241         (traverse_md_constants): Don't check for a null md_constants.
9242         (decimal_string, handle_enum, traverse_enum_types): New functions.
9243         (read_md_files): Initialize md_constants and md_enums.
9244         * genconstants.c (print_md_constant): Ignore info argument.
9245         Only print constants that belong to no enum.
9246         (print_enum_type): New function.
9247         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
9248         for each defined enum type.
9249         * config/mips/mips.md (processor): New define_enum.
9250         (unspec): New define_c_enum.
9251         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
9252         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
9253         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
9254         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
9255         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
9256         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
9257         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
9258         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
9259         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
9260         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
9261         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
9262         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
9263         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
9264         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
9265         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
9266         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
9267         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
9268         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
9269         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
9270         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
9271         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
9272         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
9273         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
9274         (UNSPEC_RDDSP): Move to mips-dsp.md.
9275         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
9276         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
9277         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
9278         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
9279         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
9280         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
9281         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
9282         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
9283         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
9284         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
9285         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
9286         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
9287         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
9288         Moved to mips-dspr2.md.
9289         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
9290         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
9291         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
9292         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
9293         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
9294         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
9295         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
9296         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
9297         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
9298         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
9299         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
9300         UNSPEC_LOONGSON_PSADBH)
9301         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
9302         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
9303         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
9304         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
9305         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
9306         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
9307         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
9308         (cpu): Update comment.
9309         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
9310         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
9311         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
9312         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
9313         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
9314         UNSPEC_LOONGSON_PCMPEQ)
9315         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
9316         UNSPEC_LOONGSON_PINSR_0)
9317         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
9318         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
9319         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
9320         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
9321         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
9322         UNSPEC_LOONGSON_PSADBH)
9323         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
9324         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
9325         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
9326         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
9327         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
9328         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
9329         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
9330         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
9331         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
9332         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
9333         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
9334         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
9335         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
9336         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
9337         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
9338         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
9339         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
9340         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
9341         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
9342         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
9343         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
9344         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
9345         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
9346         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
9347         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
9348         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
9349         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
9350         (UNSPEC_RDDSP): Moved from mips.md.
9351         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
9352         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
9353         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
9354         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
9355         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
9356         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
9357         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
9358         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
9359         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
9360         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
9361         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
9362         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
9363         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
9364         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
9365         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
9366         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
9367         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
9368         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
9369         (UNSPEC_SCC): Moved from mips.md.
9370         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
9371         "processor_type" to "processor".
9372         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
9373         * config/mips/mips.h (processor_type): Delete.
9374         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
9375         "processor_type" to "processor".
9376
9377 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9378
9379         * configure.ac (tm_include_list): Add insn-constants.h.
9380         * configure: Regenerate.
9381         * Makefile.in (GTM_H): Move insn-constants.h here from...
9382         (TM_H): ...here.
9383         * mkconfig.sh: Remove special handling for insn-constants.h.
9384
9385 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9386
9387         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
9388         (BUILD_MD): ...this new variable.
9389         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
9390         that include the old contents of simple_generated_h and
9391         simple_generated_c.
9392         (simple_generated_h, simple_generated_c): Include them.  Add
9393         insn-constants.h.
9394         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
9395         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
9396         Remove these dependencies from the main rule and include
9397         insn-conditions.md in the command line only if it appears
9398         in the dependency list.
9399         (insn-constants.h, s-constants): Delete.
9400         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
9401         or gensupport.h.
9402         (build/genmddeps.o): Likewise.
9403         (genprogrtl): New variable that contains everything from genprogmd
9404         except mddeps and constants.
9405         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
9406         depend on $(BUILD_MD)
9407         (genprog): New variable.  Make these programs depend on
9408         $(BUILD_ERRORS).
9409         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
9410         (main): Use read_md_files instead of init_rtx_reader_args.
9411         * genconstants.c: As for genmddeps.c.
9412         * read-md.h (read_skip_construct): Declare.
9413         * read-md.c (read_skip_construct): New function.
9414         (handle_file): Allow a null handle_directive, skipping the
9415         construct if so.
9416         (parse_include): Update the comment accordingly.
9417
9418 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9419
9420         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
9421         * genmddeps.c: Include read-md.h.
9422         (main): Call init_rtx_reader_args instead of init_md_reader_args.
9423         * genattr.c (main): Likewise.
9424         * genattrtab.c (main): Likewise.
9425         * genautomata.c (main): Likewise.
9426         * gencodes.c (main): Likewise.
9427         * genconditions.c (main): Likewise.
9428         * genconfig.c (main): Likewise.
9429         * genconstants.c (main): Likewise.
9430         * genemit.c (main): Likewise.
9431         * genextract.c (main): Likewise.
9432         * genflags.c (main): Likewise.
9433         * genopinit.c (main): Likewise.
9434         * genoutput.c (main): Likewise.
9435         * genpeep.c (main): Likewise.
9436         * genrecog.c (main): Likewise.
9437         * genpreds.c (main): Likewise.
9438         * gensupport.h (in_fname): Move to read-md.h.
9439         (init_md_reader_args_cb): Rename to...
9440         (init_rtx_reader_args_cb): ...this and return a bool.
9441         (init_md_reader_args): Rename to...
9442         (init_rtx_reader_args): ...this and return a bool.
9443         (include_callback): Move to read-md.h.
9444         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
9445         (file_name_list, first_dir_md_include): Move to read-md.c
9446         (first_bracket_include): Delete unused variable.
9447         (last_dir_md_include): Move to read-md.c.
9448         (process_include): Delete, moving code to read-md.c:handle_include.
9449         (process_rtx): Don't handle INCLUDE.
9450         (save_string): Delete.
9451         (rtx_handle_directive): New function.
9452         (init_md_reader_args_cb): Rename to...
9453         (init_rtx_reader_args_cb): ...this and return a boolean success value.
9454         Use read_md_args.
9455         (init_md_reader_args): Rename to...
9456         (init_rtx_reader_args): ...this and return a boolean success value.
9457         * rtl.def (INCLUDE): Delete.
9458         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
9459         argument.
9460         * read-rtl.c (read_conditions): Don't gobble ')' here.
9461         (read_mapping): Likewise.
9462         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
9463         Handle top-level non-rtx constructs here rather than in read_rtx_1.
9464         Store the whole queue in *X.  Remove call to init_md_reader.
9465         (read_rtx_1): Rename to...
9466         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
9467         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
9468         here.
9469         (read_nested_rtx): New function.  Handle (nil) here rather than
9470         in read_rtx_code.
9471         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
9472         gobble ')' here.
9473         * read-md.h (directive_handler_t): New type.
9474         (in_fname, include_callback): Moved from read-md.h.
9475         (read_constants, init_md_reader): Delete.
9476         (read_md_files): Declare.
9477         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
9478         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
9479         from gensupport.c.
9480         (read_constants): Rename to...
9481         (handle_constants): ...this.  Don't gobble ')' here.
9482         (handle_include, handle_file, handle_toplevel_file)
9483         (parse_include): New functions, mostly taken from gensupport.c.
9484         (init_md_reader): Subsume into...
9485         (read_md_files): ...this new function.
9486
9487 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9488
9489         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
9490         (unread_char): Decrement read_md_lineno after putting back '\n'.
9491         * read-md.c (fatal_with_file_and_line): Push back any characters
9492         that we decide not to add to the context.
9493         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
9494         fatal_expected_char in cases where '/' ends a line (for example).
9495         (read_name): Don't increment read_md_lineno here.
9496         (read_escape): Likewise.
9497         (read_quoted_string): Likewise.
9498         (read_braced_string): Likewise.
9499
9500 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9501
9502         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
9503         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
9504         * genconstants.c: Include read-md.h.
9505         * read-rtl.c (md_constants): Move to read-md.c.
9506         (md_name): Move to read-md.h.
9507         (initialize_iterators): Use leading_string_hash instead of def_hash
9508         and leading_string_eq_p instead of def_name_eq_p.
9509         (read_name): Move to read-md.c.
9510         (def_hash, def_name_eq_p): Delete.
9511         (read_constants, traverse_md_constants): Move to read-md.c.
9512         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
9513         * read-md.h: Include hashtab.h.
9514         (md_name): Moved from read-rtl.c.
9515         (md_constant): Moved from read-md.h.
9516         (leading_string_hash, leading_string_eq_p, read_name)
9517         (read_constants, traverse_md_constants): Declare.
9518         * read-md.c (md_constants): Moved from read-rtl.c.
9519         (leading_string_hash, leading_string_eq_p): New functions.
9520         (read_name, read_constants, traverse_md_constants): Moved from
9521         read-rtl.c.
9522
9523 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9524
9525         * read-rtl.c (md_name): New structure.
9526         (read_name): Take an md_name instead of a buffer pointer.
9527         Use the "string" field instead of strcpy when expanding constants.
9528         (read_constants): Remove the tmp_char argument.  Update the calls
9529         to read_name, using two local name buffers instead of the tmp_char
9530         argument.  Merge the constant-creation code.
9531         (read_conditions): Remove the tmp_char argument.  Update the calls
9532         to read_name, using a local name buffer instead of the tmp_char
9533         argument.
9534         (read_mapping): Replace tmp_char variable with a local name buffer.
9535         Update the calls to read_name.
9536         (read_rtx_1): Likewise.  Update the calls to read_constants and
9537         read_conditions.
9538
9539 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9540
9541         * Makefile.in (build/read-md.o): Depend on errors.h.
9542         * read-md.h (error_with_line): Declare.
9543         * read-md.c: Include errors.h.
9544         (message_with_line_1): New function, extracted from...
9545         (message_with_line): ...here.
9546         (error_with_line): New function.
9547         * genattrtab.c: If a call to message_with_line is followed by
9548         "have_error = 1;", replace both statements with a call to
9549         error_with_line.
9550         * genoutput.c: Likewise.
9551         * genpreds.c: Likewise.
9552         * genrecog.c: If a call to message_with_line is followed by
9553         "error_count++;", replace both statements with a call to
9554         error_with_line.
9555         (errorcount): Delete.
9556         (main): Don't check it.
9557         * gensupport.c: If a call to message_with_line is followed by
9558         "errors = 1;", replace both statements with a call to error_with_line.
9559         (errors): Delete.
9560         (process_define_cond_exec): Check have_error instead of errors.
9561         (init_md_reader_args_cb): Likewise.  Don't set errors.
9562
9563 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9564
9565         * read-md.h (read_md_file): Declare.
9566         (read_char, unread_char): New functions.
9567         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
9568         (read_quoted_string, read_string): Remove FILE * argument.
9569         * read-md.c (read_md_file): New variable.
9570         (read_md_filename, read_md_lineno): Update comments and remove
9571         unnecessary initialization.
9572         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
9573         (read_escape, read_quoted_string, read_braced_string, read_string):
9574         Remove FILE * argument.  Update calls accordingly, using read_char
9575         and unread_char instead of getc and ungetc.
9576         * rtl.h (read_rtx): Remove FILE * argument.
9577         * read-rtl.c (iterator_group): Remove FILE * argument from
9578         "find_builtin".
9579         (iterator_traverse_data): Remove "infile" field.
9580         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
9581         (add_mapping, read_name, read_constants, read_conditions)
9582         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
9583         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
9584         Remove file arguments from all calls, using read_char and unread_char
9585         instead of getc and ungetc.
9586         * gensupport.c (process_include): Preserve read_md_file around
9587         the include.  Set read_md_file to the handle of the included file.
9588         Update call to read_rtx.
9589         (init_md_reader_args_cb): Set read_md_file to the handle of the file
9590         and remove local FILE *.  Update calls to read_rtx.
9591
9592 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9593
9594         * read-md.h (read_rtx_lineno): Rename to...
9595         (read_md_lineno): ...this.
9596         (read_rtx_filename): Rename to...
9597         (read_md_filename): ...this.
9598         (copy_rtx_ptr_loc): Rename to...
9599         (copy_md_ptr_loc): ...this.
9600         (print_rtx_ptr_loc): Rename to...
9601         (print_md_ptr_loc): ...this.
9602         * read-md.c: Likewise.  Update references after renaming.
9603         (string_obstack): Replace RTL with MD in comment.
9604         (set_rtx_ptr_loc): Rename to...
9605         (set_md_ptr_loc): ...this.
9606         (get_rtx_ptr_loc): Rename to...
9607         (get_md_ptr_loc): ...this.
9608         * genconditions.c: Update references after renaming.
9609         * genemit.c: Likewise.
9610         * genoutput.c: Likewise.
9611         * genpreds.c: Likewise.
9612         * gensupport.c: Likewise.
9613         * read-rtl.c: Likewise.
9614
9615 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9616
9617         * Makefile.in (READ_MD_H): New variable.
9618         (BUILD_RTL): Add build/read-md.o.
9619         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
9620         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
9621         (build/genattrtab.o, build/genconditions.o build/genemit.o)
9622         (build/genextract.o, build/genflags.o, build/genoutput.o)
9623         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
9624         (build/read-md.o): New rule.
9625         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
9626         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
9627         * coretypes.h: ...here.
9628         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
9629         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
9630         * genattr.c: Include read-md.h.
9631         * genattrtab.c: Likewise.
9632         * genconditions.c: Likewise.
9633         * genemit.c: Likewise.
9634         * genextract.c: Likewise.
9635         * genflags.c: Likewise.
9636         * genoutput.c: Likewise.
9637         * genpreds.c: Likewise.
9638         * genrecog.c: Likewise.
9639         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
9640         (join_c_conditions, print_c_condition, read_rtx_filename)
9641         (read_rtx_lineno): Move to read-md.h.
9642         * read-rtl.c: Include read-md.h.
9643         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
9644         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
9645         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
9646         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
9647         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
9648         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
9649         (read_braced_string, read_string): Move to read-md.c.
9650         (read_rtx): Move some initialization to init_md_reader and call
9651         init_md_reader here.
9652         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
9653         Move to read-md.h.
9654         * gensupport.c: Include read-md.h.
9655         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
9656         * read-md.h, read-md.c: New files.
9657
9658 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
9659
9660         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9661         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9662         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
9663         * config/moxie/moxie.c (moxie_function_value): Make static.
9664         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
9665         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9666
9667 2010-06-10  Martin Jambor  <mjambor@suse.cz>
9668
9669         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
9670         * dbgcnt.def (tree_sra): New counter.
9671         * tree-sra.c: Include dbgcnt.h.
9672         (gate_intra_sra): Check tree_sra debug counter.
9673
9674 2010-06-10  Martin Jambor  <mjambor@suse.cz>
9675
9676         PR tree-optimization/44258
9677         * tree-sra.c (build_access_subtree): Return false iff there is a
9678         partial overlap.
9679         (build_access_trees): Likewise.
9680         (analyze_all_variable_accesses): Disqualify candidates if
9681         build_access_trees returns true for them.
9682
9683 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
9684
9685         PR debug/41371
9686         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
9687         tail-recurse into canonical node.  Fast-forward over
9688         non-canonical VALUEs.
9689
9690 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
9691
9692         PR boostrap/44470
9693         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
9694         (*addsi_1_zext) <TYPE_LEA>: Likewise.
9695         (add lea splitter): Likewise.
9696         (add_zext lea splitter): Likewise.
9697
9698 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
9699
9700         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
9701
9702 2010-06-10  Jan Hubicka  <jh@suse.cz>
9703
9704         * df-problems.c (df_live_problem_data): Add live_bitmaps.
9705         (df_live_alloc): Initialize problem data and live_osbtacks.
9706         (df_live_finalize): Remove obstack, problem data; do not
9707         clear all bitmaps.
9708         (df_live_top_dump, df_live_bottom_dump): Do not dump old
9709         data when not allocated.
9710         (df_live_verify_solution_start): Do not allocate problem data.
9711         (df_live_verify_solution_end): Check if out is allocated.
9712         (struct df_md_problem_data): New structure.
9713         (df_md_alloc): Allocate problem data.
9714         (df_md_free): Free problem data; do not clear bitmaps.
9715
9716 2010-06-10  Jan Beulich  <jbeulich@novell.com>
9717
9718         PR bootstrap/37304
9719         * configure.ac: Replace $() with ${} when intending to expand
9720         variables rather than invoking commands.
9721         * configure: Re-generate.
9722
9723 2010-06-10  Jan Hubicka  <jh@suse.cz>
9724
9725         PR rtl-optimization/44460
9726         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
9727         TYPE_NEEDS_CONSTRUCTING sanity check.
9728
9729 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
9730
9731         * doc/include/fdl.texi: Move to GFDL version 1.3.
9732
9733         * doc/cpp.texi: Move to GFDL version 1.3.
9734         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
9735         * doc/gccint.texi: Move to GFDL version 1.3.
9736         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
9737         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
9738         * doc/invoke.texi: Move to GFDL version 1.3.
9739
9740 2010-06-09  Jan Hubicka  <jh@suse.cz>
9741
9742         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
9743         Break out from ...
9744         (propagate) ... here; swap the order.
9745
9746 2010-06-09  Jan Hubicka  <jh@suse.cz>
9747
9748         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
9749         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
9750         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
9751         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
9752
9753 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
9754
9755         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
9756         Do not the gather memory reference in the outer loop if the step
9757         is not a constant.
9758
9759 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
9760
9761         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
9762         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
9763         8 to 4.  Minor change of the related comments.
9764
9765 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
9766
9767         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
9768         the scev analysis when the variable is not used outside the loop
9769         in a close phi node: call compute_overall_effect_of_inner_loop.
9770
9771 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
9772
9773         * graphite-sese-to-poly.c (single_pred_cond): Renamed
9774         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
9775         (build_sese_conditions_before): Renamed call to single_pred_cond.
9776         (build_sese_conditions_after): Same.
9777
9778 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
9779
9780         * graphite-poly.h: Fix comments and indentation.
9781         * graphite-sese-to-poly.c: Same.
9782         (build_sese_conditions_before): Compute stmt and gbb only when needed.
9783         * tree-chrec.c: Fix comments and indentation.
9784         (tree-ssa-loop-niter.c): Same.
9785
9786 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
9787
9788         PR rtl-optimization/42461
9789         * dce.c (deletable_insn_p): Return true for const or pure calls again.
9790         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
9791
9792 2010-06-09  Jan Hubicka  <jh@suse.cz>
9793
9794         * bitmap.c (bitmap_and): Walk array forward.
9795         (bitmap_and_compl_into): Likewise.
9796         (bitmap_xor): Likewise.
9797         (bitmap_xor_into):  Likewise.
9798         (bitmap_equal_p): Likewise.
9799         (bitmap_intersect_p): Likewise.
9800         (bitmap_intersect_compl_p): Likewise.
9801         (bitmap_ior_and_into): Likewise.
9802         (bitmap_elt_copy): Likewise.
9803         (bitmap_and_compl): Likewise.
9804         (bitmap_elt_ior): Likewise.
9805
9806 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
9807
9808         * opts-common.c (prune_options): Ensure replacement argv array
9809         is correctly terminated by a NULL entry.
9810
9811 2010-06-09  Jan Hubicka  <jh@suse.cz>
9812
9813         * cgraph.h (varpool_first_static_initializer,
9814         varpool_next_static_initializer): Make checking only when
9815         checking enabled.
9816         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
9817         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
9818         gcc_assert to gcc_checking_assert.
9819         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
9820         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
9821         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
9822         op_iter_init_phiuse, op_iter_init_phidef,
9823         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
9824         gcc_checking_assert.
9825         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
9826         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
9827         partition_is_global, live_on_entry, live_on_exit,
9828         live_merge_and_clear): Likewise.
9829         * system.h (gcc_checking_assert): New macro.
9830         * gimple.h (set_bb_seq): Use gcc_checking_assert.
9831
9832 2010-06-09  Jason Merrill  <jason@redhat.com>
9833
9834         * Makefile.in (TAGS): Collect tags info from c-family.
9835
9836 2010-06-09  Jan Hubicka  <jh@suse.cz>
9837
9838         * gimple.h (gcc_gimple_checking_assert): New macro.
9839         (gimple_set_def_ops, gimple_set_use_ops,
9840         gimple_set_vuse, gimple_set_vdef,
9841         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
9842         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
9843         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
9844         gimple_asm_output_op, gimple_asm_output_op_ptr,
9845         gimple_asm_set_output_op, gimple_asm_clobber_op,
9846         gimple_asm_set_clobber_op, gimple_asm_label_op,
9847         gimple_asm_set_label_op, gimple_try_set_kind,
9848         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
9849         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
9850         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
9851         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
9852         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
9853         gimple_omp_for_set_initial, gimple_omp_for_final,
9854         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
9855         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
9856         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
9857         conditional with ENABLE_GIMPLE_CHECKING.
9858         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
9859
9860 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
9861
9862         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
9863         (get_computation_cost_at): Use it.
9864         (determine_use_iv_cost_condition): Likewise.
9865         (determine_iv_cost): Likewise.
9866
9867 2010-06-09  Richard Guenther  <rguenther@suse.de>
9868
9869         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
9870         replace constants.
9871
9872 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
9873
9874         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
9875
9876 2010-06-09  Martin Jambor  <mjambor@suse.cz>
9877
9878         PR tree-optimization/44423
9879         * tree-sra.c (dump_access): Dump also grp_assignment_read.
9880         (analyze_access_subtree): Pass negative allow_replacements to children
9881         if the current type is scalar.
9882
9883 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
9884
9885         PR testsuite/42843
9886         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
9887         * doc/plugins.texi (Plugin license check): Update information
9888         on type of plugin_is_GPL_compatible.
9889         * Makefile.in (PLUGINCC): Define as $(COMPILER).
9890         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
9891
9892 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
9893
9894         * config/arm/arm.c (thumb2_reorg): New function.
9895         (arm_reorg): Call it.
9896         * config/arm/thumb2.md (define_peephole2 for flag clobbering
9897         arithmetic operations): Delete.
9898
9899 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
9900
9901         PR target/44067
9902         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
9903         e500v2 target.
9904
9905 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
9906
9907         PR plugins/44459
9908         * gcc-plugin.h: Encapsulate all declarations in extern "C".
9909
9910 2010-06-08  Jan Hubicka  <jh@suse.cz>
9911
9912         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
9913         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
9914
9915 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
9916
9917         PR tree-optimization/39874
9918         PR middle-end/28685
9919         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
9920         Declare.
9921         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
9922         same_bool_result_p): New.
9923         (and_var_with_comparison, and_var_with_comparison_1,
9924         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
9925         (or_var_with_comparison, or_var_with_comparison_1,
9926         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
9927         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
9928         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
9929         of combine_comparisons.
9930         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
9931
9932 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
9933
9934         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9935         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9936         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
9937         pdp11_function_value_regno_p): New functions.
9938         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9939         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9940
9941 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
9942
9943         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
9944         Thumb-2 in the MINUS case.
9945
9946 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9947
9948         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
9949
9950         * doc/gty.texi (GTY Options): Document typed GC allocation and
9951         variable_size GTY option.
9952
9953         * ggc-internal.h: New.
9954
9955         * ggc.h: Update copyright year.
9956         (digit_string): Move to stringpool.c.
9957         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
9958         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
9959         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
9960         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
9961         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
9962         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
9963         (ggc_force_collect, ggc_get_size, ggc_statistics)
9964         (ggc_print_common_statistics): Move to ggc-internal.h.
9965         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
9966         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
9967         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
9968         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
9969         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
9970         (ggc_alloc_zone_pass_stat): Remove.
9971         (ggc_internal_alloc_stat, ggc_internal_alloc)
9972         (ggc_internal_cleared_alloc_stat): New.
9973         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
9974         (ggc_internal_vec_alloc_stat)
9975         (ggc_internal_cleared_vec_alloc_stat)
9976         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
9977         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
9978         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
9979         (ggc_cleared_alloc_ptr_array_two_args): New.
9980         (htab_create_ggc, splay_tree_new_ggc): Redefine.
9981         (ggc_splay_alloc): Change the type of the first argument to
9982         enum gt_types_enum.
9983         (ggc_alloc_string): Make macro.
9984         (ggc_alloc_string_stat): New.
9985         (ggc_strdup): Redefine.
9986         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
9987         (ggc_alloc_rtvec_sized): New.
9988         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
9989         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
9990         (ggc_internal_cleared_alloc_zone_stat)
9991         (ggc_internal_zone_alloc_stat)
9992         (ggc_internal_zone_cleared_alloc_stat)
9993         (ggc_internal_zone_vec_alloc_stat)
9994         (ggc_alloc_zone_rtx_def_stat)
9995         (ggc_alloc_zone_tree_node_stat)
9996         (ggc_alloc_zone_cleared_tree_node_stat)
9997         (ggc_alloc_cleared_gimple_statement_d_stat): New.
9998
9999         * ggc-common.c: Include ggc-internal.h.
10000         (ggc_internal_cleared_alloc_stat): Rename from
10001         ggc_alloc_cleared_stat.
10002         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
10003         (ggc_calloc): Remove.
10004         (ggc_cleared_alloc_htab_ignore_args): New.
10005         (ggc_cleared_alloc_ptr_array_two_args): New.
10006         (ggc_splay_alloc): Add obj_type parameter.
10007         (init_ggc_heuristics): Formatting fixes.
10008
10009         * ggc-none.c: Update copyright year.
10010         (ggc_alloc_stat): Rename to ggc_alloc_stat.
10011         (ggc_alloc_cleared_stat): Rename to
10012         ggc_internal_cleared_alloc_stat.
10013         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
10014
10015         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
10016         Remove references to ggc_alloc in comments.
10017         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
10018         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
10019         (new_ggc_zone, destroy_ggc_zone): Remove.
10020         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
10021
10022         * ggc-zone.c: Include ggc-internal.h.  Remove references to
10023         ggc_alloc in comments.
10024         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
10025         (ggc_internal_alloc_zone_pass_stat): New.
10026         (ggc_internal_cleared_alloc_zone_stat): New.
10027         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
10028         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
10029         (new_ggc_zone, destroy_ggc_zone): Remove.
10030
10031         * stringpool.c: Update copyright year.  Include ggc-internal.h
10032         (digit_vector): Make static.
10033         (digit_string): Moved from ggc.h.
10034         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
10035         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
10036
10037         * Makefile.in (GGC_INTERNAL_H): New.
10038         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
10039         $(GGC_INTERNAL_H) to dependencies.
10040
10041         * gentype.c: Update copyright year.
10042         (walk_type): Accept variable_size GTY option.
10043         (USED_BY_TYPED_GC_P): New macro.
10044         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
10045         whitespace at the end of strings.
10046         (get_type_specifier, variable_size_p): New functions.
10047         (alloc_quantity, alloc_zone): New enums.
10048         (write_typed_alloc_def): New function.
10049         (write_typed_struct_alloc_def): Likewise.
10050         (write_typed_typed_typedef_alloc_def): Likewise.
10051         (write_typed_alloc_defns): Likewise.
10052         (output_typename, write_splay_tree_allocator_def): Likewise.
10053         (write_splay_tree_allocators): Likewise.
10054         (main): Call write_typed_alloc_defns and
10055         write_splay_tree_allocators.
10056
10057         * lto-streamer.h (lto_file_decl_data_ptr): New.
10058
10059         * passes.c (order): Define using cgraph_node_ptr.
10060
10061         * strinpool.c (struct string_pool_data): Declare nested_ptr using
10062         ht_identifier_ptr.
10063
10064         * gimple.h (union gimple_statement_d): Likewise.
10065
10066         * rtl.h (struct rtx_def): Likewise.
10067         (struct rtvec_def): Likewise.
10068
10069         * tree.h (union tree_node): Likewise.
10070
10071         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
10072
10073         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
10074
10075         * tree-scalar-evolution.c (scev_initialize): Likewise.
10076
10077         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
10078
10079         * dwarf2asm.c (dw2_force_const_mem): Likewise.
10080
10081         * omp-low.c (lower_omp_critical): Likewise.
10082
10083         * bitmap.h (struct bitmap_head_def): Update comment to not
10084         reference ggc_alloc.
10085
10086         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
10087
10088         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
10089
10090         * ipa-prop.c (duplicate_ggc_array): Rename to
10091         duplicate_ipa_jump_func_array.  Use typed GC allocation.
10092         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
10093
10094         * gimple.c (gimple_alloc_stat): Use
10095         ggc_alloc_cleared_gimple_statement_d_stat.
10096
10097         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
10098
10099         * tree.c (make_node_stat): Use
10100         ggc_alloc_zone_cleared_tree_node_stat.
10101         (make_tree_vec_stat): Likewise.
10102         (build_vl_exp_stat): Likewise.
10103         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
10104         (make_tree_binfo_stat): Likewise.
10105         (tree_cons_stat): Likewise.
10106
10107         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
10108         (shallow_copy_rtx_stat): Likewise.
10109         (make_node_stat): Likewise.
10110
10111         * lto-symtab.c: Fix comment.
10112
10113         * tree-cfg.c (create_bb): Update comment to not reference
10114         ggc_alloc_cleared.
10115         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
10116
10117         * varpool.c (varpool_node): Use typed GC allocation.
10118         (varpool_extra_name_alias): Likewise.
10119
10120         * varasm.c (emutls_decl): Likewise.
10121         (get_unnamed_section): Likewise.
10122         (get_noswitch_section): Likewise.
10123         (get_section): Likewise.
10124         (get_block_for_section): Likewise.
10125         (build_constant_desc): Likewise.
10126         (create_constant_pool): Likewise.
10127         (force_const_mem): Likewise.
10128
10129         * tree.c (build_vl_exp_stat): Likewise.
10130         (build_real): Likewise.
10131         (build_string): Likewise.
10132         (decl_debug_expr_insert): Likewise.
10133         (decl_value_expr_insert): Likewise.
10134         (type_hash_add): Likewise.
10135         (build_omp_clause): Likewise.
10136
10137         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
10138
10139         * tree-ssa.c (init_tree_ssa): Likewise.
10140
10141         * tree-ssa-structalias.c (heapvar_insert): Likewise.
10142
10143         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
10144
10145         * tree-ssa-loop-niter.c (record_estimate): Likewise.
10146
10147         * tree-ssa-alias.c (get_ptr_info): Likewise.
10148
10149         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
10150
10151         * tree-phinodes.c (allocate_phi_node): Likewise.
10152
10153         * tree-iterator.c (tsi_link_before): Likewise.
10154         (tsi_link_after): Likewise.
10155
10156         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
10157
10158         * tree-dfa.c (create_var_ann): Likewise.
10159
10160         * tree-cfg.c (create_bb): Likewise.
10161
10162         * toplev.c (alloc_for_identifier_to_locale): Likewise.
10163         (general_init): Likewise.
10164
10165         * stringpool.c (stringpool_ggc_alloc): Likewise.
10166         (gt_pch_save_stringpool): Likewise.
10167
10168         * sese.c (if_region_set_false_region): Likewise.
10169
10170         * passes.c (do_per_function_toporder): Likewise.
10171
10172         * optabs.c (set_optab_libfunc): Likewise.
10173         (set_conv_libfunc): Likewise.
10174
10175         * lto-symtab.c (lto_symtab_register_decl): Likewise.
10176
10177         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
10178         (input_eh_region): Likewise.
10179         (input_eh_lp): Likewise.
10180         (make_new_block): Likewise.
10181         (unpack_ts_real_cst_value_fields): Likewise.
10182
10183         * lto-section-in.c (lto_new_in_decl_state): Likewise.
10184
10185         * lto-cgraph.c (input_node_opt_summary): Likewise.
10186
10187         * loop-init.c (loop_optimizer_init): Likewise.
10188
10189         * lambda.h (lambda_vector_new): Likewise.
10190
10191         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
10192
10193         * ira.c (update_equiv_regs): Likewise.
10194
10195         * ipa.c (cgraph_node_set_new): Likewise.
10196         (cgraph_node_set_add): Likewise.
10197         (varpool_node_set_new): Likewise.
10198         (varpool_node_set_add): Likewise.
10199
10200         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
10201         (duplicate_ipa_jump_func_array): Likewise.
10202         (ipa_read_node_info): Likewise.
10203
10204         * ipa-cp.c (ipcp_create_replace_map): Likewise.
10205
10206         * integrate.c (get_hard_reg_initial_val): Likewise.
10207
10208         * gimple.c (gimple_alloc_stat): Likewise.
10209         (gimple_build_omp_for): Likewise.
10210         (gimple_seq_alloc): Likewise.
10211         (gimple_copy): Likewise.
10212
10213         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
10214         (gsi_insert_after_without_update): Likewise.
10215
10216         * function.c (add_frame_space): Likewise.
10217         (insert_temp_slot_address): Likewise.
10218         (assign_stack_temp_for_type): Likewise.
10219         (allocate_struct_function): Likewise.
10220         (types_used_by_var_decl_insert): Likewise.
10221
10222         * except.c (init_eh_for_function): Likewise.
10223         (gen_eh_region): Likewise.
10224         (gen_eh_region_catch): Likewise.
10225         (gen_eh_landing_pad): Likewise.
10226         (add_call_site): Likewise.
10227
10228         * emit-rtl.c (get_mem_attrs): Likewise.
10229         (get_reg_attrs): Likewise.
10230         (start_sequence): Likewise.
10231         (init_emit): Likewise.
10232
10233         * dwarf2out.c (new_cfi): Likewise.
10234         (queue_reg_save): Likewise.
10235         (dwarf2out_frame_init): Likewise.
10236         (new_loc_descr): Likewise.
10237         (find_AT_string): Likewise.
10238         (new_die): Likewise.
10239         (add_var_loc_to_decl): Likewise.
10240         (clone_die): Likewise.
10241         (clone_as_declaration): Likewise.
10242         (break_out_comdat_types): Likewise.
10243         (new_loc_list): Likewise.
10244         (loc_descriptor): Likewise.
10245         (add_loc_descr_to_each): Likewise.
10246         (add_const_value_attribute): Likewise.
10247         (tree_add_const_value_attribute): Likewise.
10248         (add_comp_dir_attribute): Likewise.
10249         (add_name_and_src_coords_attributes): Likewise.
10250         (lookup_filename): Likewise.
10251         (store_vcall_insn): Likewise.
10252         (dwarf2out_init): Likewise.
10253
10254         * dbxout.c (dbxout_init): Likewise.
10255
10256         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10257
10258         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
10259
10260         * config/score/score7.c (score7_output_external): Likewise.
10261
10262         * config/score/score3.c (score3_output_external): Likewise.
10263
10264         * config/s390/s390.c (s390_init_machine_status): Likewise.
10265
10266         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
10267         (rs6000_init_machine_status): Likewise.
10268         (output_toc): Likewise.
10269
10270         * config/pa/pa.c (pa_init_machine_status): Likewise.
10271         (get_deferred_plabel): Likewise.
10272
10273         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
10274
10275         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
10276
10277         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
10278
10279         * config/mep/mep.c (mep_init_machine_status): Likewise.
10280         (mep_note_pragma_flag): Likewise.
10281
10282         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
10283
10284         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
10285
10286         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
10287
10288         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
10289         (i386_pe_maybe_record_exported_symbol): Likewise.
10290
10291         * config/i386/i386.c (get_dllimport_decl): Likewise.
10292         (ix86_init_machine_status): Likewise.
10293         (assign_386_stack_local): Likewise.
10294
10295         * config/frv/frv.c (frv_init_machine_status): Likewise.
10296
10297         * config/darwin.c (machopic_indirection_name): Likewise.
10298
10299         * config/cris/cris.c (cris_init_machine_status): Likewise.
10300
10301         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
10302
10303         * config/avr/avr.c (avr_init_machine_status): Likewise.
10304
10305         * config/arm/arm.c (arm_init_machine_status): Likewise.
10306
10307         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
10308         (alpha_need_linkage): Likewise.
10309         (alpha_use_linkage): Likewise.
10310
10311         * cgraph.c (cgraph_allocate_node): Likewise.
10312         (cgraph_create_edge_1): Likewise.
10313         (cgraph_create_indirect_edge): Likewise.
10314         (cgraph_add_asm_node): Likewise.
10315
10316         * cfgrtl.c (init_rtl_bb_info): Likewise.
10317
10318         * cfgloop.c (alloc_loop): Likewise.
10319         (rescan_loop_exit): Likewise.
10320
10321         * cfg.c (init_flow): Likewise.
10322         (alloc_block): Likewise.
10323         (unchecked_make_edge): Likewise.
10324
10325         * c-parser.c (c_parse_init): Likewise.
10326         (c_parse_file): Likewise.
10327
10328         * c-decl.c (bind): Likewise.
10329         (record_inline_static): Likewise.
10330         (push_scope): Likewise.
10331         (make_label): Likewise.
10332         (lookup_label_for_goto): Likewise.
10333         (finish_struct): Likewise.
10334         (finish_enum): Likewise.
10335         (c_push_function_context): Likewise.
10336
10337         * bitmap.c (bitmap_element_allocate): Likewise.
10338         (bitmap_gc_alloc_stat): Likewise.
10339
10340         * alias.c (record_alias_subset): Likewise.
10341         (init_alias_analysis): Likewise.
10342
10343 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
10344
10345         * fold-const.c (fold_comparison): Remove redundant parenthesis.
10346         * tree-inline.c (expand_call_inline): Pass translated return value of
10347         cgraph_inline_failed_string to diagnostic function.
10348
10349 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
10350             Shujing Zhao  <pearly.zhao@oracle.com>
10351
10352         PR c/37724
10353         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
10354         implicit bad conversions is initialization.
10355         (error_init): Use gmsgid instead of msgid for argument name and change
10356         the call for error.
10357         (pedwarn_init): Use gmsgid instead of msgid for argument name and
10358         change the call for pedwarn.
10359         (warning_init): Use gmsgid instead of msgid for argument name and
10360         change the call for warning.
10361
10362 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
10363
10364         * config/mips/mips-protos.h (mips_print_operand): Delete.
10365         (mips_print_operand_address): Delete.
10366         * config/mips/mips.h (mips_print_operand_punct): Delete.
10367         (PRINT_OPERAND): Delete.
10368         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10369         (PRINT_OPERAND_ADDRESS): Delete.
10370         * config/mips/mips.c (mips_print_operand_punct): Make static.
10371         (mips_print_operand_address): Make static.
10372         (mips_print_operand): Make static.  Call
10373         mips_print_operand_punct_valid_p.
10374         (mips_print_operand_punct_valid_p): New function.
10375         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10376         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10377
10378 2010-06-07  Jan Hubicka  <jh@suse.cz>
10379
10380         PR middle-end/44454
10381         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
10382         are allocated.
10383
10384 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
10385
10386         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
10387         name of RECORD.
10388
10389 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10390
10391         * doc/sourcebuild.texi (Effective-Target Keywords, Other
10392         attributes): Document gas.
10393
10394 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
10395
10396         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
10397         <TYPE_LEA>: Split instruction.
10398         <default>: Remove alternative 2 handling.
10399         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
10400         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
10401         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
10402
10403         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
10404         (ashift_zext lea splitter): Use DImode for multiplication.
10405
10406         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
10407         to generate addition.
10408
10409 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
10410
10411         * common.opt (fira-verbose): Use Var.
10412         (fpcc-struct-return): Use Init instead of VarExists.
10413         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
10414         toplev.c.
10415         * flags.h (flag_signed_char, flag_short_enums,
10416         flag_pcc_struct_return, flag_ira_verbose,
10417         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
10418         * toplev.c (flag_detailed_statistics, flag_signed_char,
10419         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
10420         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
10421         * toplev.h (flag_crossjumping, flag_if_conversion,
10422         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
10423         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
10424         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
10425         flag_cprop_registers, time_report, flag_ira_loop_pressure,
10426         flag_ira_coalesce, flag_ira_move_spills,
10427         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
10428
10429 2010-06-07  Jan Hubicka  <jh@suse.cz>
10430
10431         * df-core.c (df_analyze_problem): Do verification after allocation.
10432
10433         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
10434         (df_lr_alloc): Initialize problem data; move bitmaps to
10435         lr_bitmaps obstack.
10436         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
10437         (df_lr_verify_solution_start): Do not initialize problem data;
10438         allocate bitmaps in lr_bitmaps.
10439         (df_lr_verify_solution_end): Do not free problem data.
10440
10441 2010-06-07  Jan Hubicka  <jh@suse.cz>
10442
10443         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
10444         if caller is noreturn.
10445         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
10446         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
10447         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
10448         * ipa-pure-const.c (check_decl): Add IPA parameter.
10449         (state_from_flags): New function.
10450         (better_state, worse_state): New functions.
10451         (check_call): When in IPA mode, do not care about callees.
10452         (check_load, check_store): Update.
10453         (check_ipa_load, check_ipa_store): New.
10454         (check_stmt): When in IPA mode, use IPA checkers.
10455         (analyze_function): Use state_from_flags.
10456         (propagate): Check indirect edges and references.
10457
10458 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
10459
10460         PR rtl-optimization/44404
10461         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
10462         of count_occurrences to see if it's safe to modify mem_insn.
10463
10464 2010-06-07  Richard Guenther  <rguenther@suse.de>
10465
10466         * gimplify.c (gimplify_cleanup_point_expr): For empty body
10467         and EH-only cleanup drop the cleanup instead of inserting it
10468         unconditionally.
10469
10470 2010-06-07  Ira Rosen  <irar@il.ibm.com>
10471
10472         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
10473         documentation.
10474         * targhooks.c (default_builtin_vectorization_cost): New function.
10475         * targhooks.h (default_builtin_vectorization_cost): Declare.
10476         * target.h (enum vect_cost_for_stmt): Define.
10477         (builtin_vectorization_cost): Change argument and comment.
10478         * tree-vectorizer.h: Remove cost model macros.
10479         * tree-vect-loop.c: Include target.h.
10480         (vect_get_cost): New function.
10481         (vect_estimate_min_profitable_iters): Replace cost model macros with
10482         calls to vect_get_cost.
10483         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
10484         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
10485         default implementation.
10486         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
10487         calls to target hook builtin_vectorization_cost.
10488         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
10489         Likewise.
10490         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
10491         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
10492         implementation to return costs.
10493         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
10494         * config/spu/spu.h: Remove vectorizer cost model macros.
10495         * config/i386/i386.h: Likewise.
10496         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
10497         a call to target hook builtin_vectorization_cost.
10498
10499 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
10500
10501         PR target/44319
10502         * config/i386/i386.c (override_options): Turn zee pass on for level 2
10503         and above and defer till target is known.
10504         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
10505         turn off otherwise.
10506
10507 2010-05-25  Jan Hubicka  <jh@suse.cz>
10508
10509         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
10510         (df_compact_blocks): Likewise.
10511         * df.h (struct df): Turn hardware_regs_used,
10512         regular_block_artificial_uses, eh_block_artificial_uses,
10513         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
10514         bitmap_head.
10515         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
10516         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
10517         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
10518         df_scan_blocks, df_insn_delete, df_insn_rescan,
10519         df_insn_rescan_debug_internal, df_insn_rescan_all,
10520         df_process_deferred_rescans, df_process_deferred_rescans,
10521         df_notes_rescan, df_get_call_refs, df_get_call_refs,
10522         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
10523         df_record_entry_block_defs, df_record_exit_block_uses,
10524         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
10525         df_scan_verify): Update.
10526
10527 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
10528
10529         PR c++/44188
10530         * c-common.c (is_typedef_decl): Move this definition ...
10531         * tree.c (is_typedef_decl): ... here.
10532         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
10533         * c-common.h (is_typedef_decl): Move this declaration ...
10534         * tree.h (is_typedef_decl): ... here.
10535         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
10536         * dwarf2out.c (is_naming_typedef_decl): New function.
10537         (gen_tagged_type_die): Split out of ...
10538         (gen_type_die_with_usage): ... this function. When an anonymous
10539         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
10540         is emitted for the typedef.
10541         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
10542         anonymous tagged types.
10543
10544 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10545
10546         PR c/20000
10547         * c-decl.c (grokdeclarator): Delete warning.
10548
10549 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
10550
10551         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
10552         newly built CALL_EXPR.
10553         * tree-profile.c (tree_profiling): Don't profile functions produced
10554         for built-in stuff.
10555
10556 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
10557
10558         PR bootstrap/44427
10559         PR bootstrap/44428
10560         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
10561         endianness-independent.
10562
10563 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
10564
10565         * c-common.c: Move to c-family/.
10566         * c-common.def: Likewise.
10567         * c-common.h: Likewise.
10568         * c-cppbuiltin.c: Likewise.
10569         * c-dump.c: Likewise.
10570         * c-format.c: Likewise.
10571         * c-format.h : Likewise.
10572         * c-gimplify.c: Likewise.
10573         * c-lex.c: Likewise.
10574         * c-omp.c: Likewise.
10575         * c.opt: Likewise.
10576         * c-opts.c: Likewise.
10577         * c-pch.c: Likewise.
10578         * c-ppoutput.c: Likewise.
10579         * c-pragma.c: Likewise.
10580         * c-pragma.h: Likewise.
10581         * c-pretty-print.c: Likewise.
10582         * c-pretty-print.h: Likewise.
10583         * c-semantics.c: Likewise.
10584         * stub-objc.c: Likewise.
10585
10586         * gengtype.c (get_file_langdir): Special-case files in c-family/.
10587         (get_output_file_with_visibility): Fix name for c-common.h.
10588         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
10589
10590         * c-tree.h: Update include path for moved files.
10591         * c-lang.c: Likewise.
10592         * c-lang.h: Likewise.
10593         * c-parser.c: Likewise.
10594         * c-convert.c: Likewise.
10595         * c-decl.c: Likewise.
10596         * c-objc-common.c: Likewise.
10597         * configure.ac: Make sure c-family/ exists in the build directory.
10598         * configure: Regenerate.
10599         * Makefile.in: Update paths for moved files.  Regroup files per
10600         location and update dependencies.  Move generated_files down after
10601         ALL_GTFILES_H.
10602
10603         * config/spu/spu-c.c: Update paths for moved files.
10604         * config/mep/mep-pragma.c: Likewise.
10605         * config/darwin-c.c: Likewise.
10606         * config/i386/msformat-c.c: Likewise.
10607         * config/i386/i386-c.c: Likewise.
10608         * config/avr/avr-c.c: Likewise.
10609         * config/sol2-c.c: Likewise.
10610         * config/ia64/ia64-c.c: Likewise.
10611         * config/rs6000/rs6000-c.c: Likewise.
10612         * config/arm/arm.c: Likewise.
10613         * config/arm/arm-c.c: Likewise.
10614         * config/h8300/h8300.c: Likewise.
10615         * config/v850/v850-c.c: Likewise.
10616
10617         * config/t-darwin: Fix dependencies for moved files.
10618         * config/t-sol2: Fix dependencies for moved files.
10619         * config/mep/t-mep: Fix dependencies for moved files.
10620         * config/ia64/t-ia64: Fix dependencies for moved files.
10621         * config/rs6000/t-rs6000: Fix dependencies for moved files.
10622         * config/v850/t-v850: Fix dependencies for moved files.
10623         * config/v850/t-v850e: Fix dependencies for moved files.
10624
10625         * config/m32c/m32c-pragma.c
10626
10627         * po/exgettext: Look in c-family/ also.
10628
10629 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
10630
10631         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
10632         (mark_control_dependent_edges_necessary): Call it instead of marking
10633         the last statement manually.
10634         (propagate_necessity): Likewise.
10635
10636 2010-06-05  Jan Hubicka  <jh@suse.cz>
10637
10638         * basic-block.h (compute_dominance_frontiers): Updated.
10639         (compute_idf): Likewise.
10640
10641         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
10642         for dominance frontiers.
10643         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
10644         (insert_updated_phi_nodes_for): Likewise.
10645         (update_ssa): Likewise.
10646         * cfganal.c (compute_dominance_frontiers_1): Likewise.
10647         (compute_dominance_frontiers): Likewise.
10648         (compute_idf): Likewise.
10649         * df-problems.c (df_md_local_compute): Likewise.
10650
10651 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
10652
10653         * target.h (struct gcc_target): Add memory_move_cost field.
10654         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
10655         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
10656         * targhooks.c (default_memory_move_cost): New function.
10657         * targhooks.h (default_memory_move_cost): Declare function.
10658         * reload.h (memory_move_cost): Declare.
10659         (memory_move_secondary_cost): Change type of 'in' argument to bool.
10660         * reginfo.c (memory_move_cost): New function.
10661         (memory_move_secondary_cost): Change type of 'in' argument to bool.
10662         * ira.h (ira_memory_move_cost): Update comment.
10663         * ira.c (ira_memory_move_cost): Update comment.
10664         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
10665         with memory_move_cost.
10666         * postreload.c (reload_cse_simplify_set): (Ditto.).
10667         * reload1.c (choose_reload_regs): (Ditto.).
10668         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
10669         (MEMORY_MOVE_COST):  Revise documentation.
10670
10671         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
10672         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
10673         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
10674         type of 'in' argument to bool.
10675         (TARGET_MEMORY_MOVE_COST): Define.
10676
10677 2010-06-05  Jan Hubicka  <jh@suse.cz>
10678
10679         * ipa-pure-const.c (propagate): Fix typo in handling of functions
10680         that cannot return.  Be more careful when merging the results with
10681         previously known ones.
10682
10683 2010-06-05  Matthias Klose  <doko@ubuntu.com>
10684
10685         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
10686         function to add the -iplugindir option.
10687         (find_plugindir_spec_function): Add new declaration and function.
10688         (static_spec_func): Use it for "find-plugindir".
10689
10690 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
10691
10692         PR c++/44361
10693         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
10694         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
10695         statement expression.
10696
10697 2010-06-05  Jan Hubicka  <jh@suse.cz>
10698
10699         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
10700         (df_rd_problem_data): Convert sparse_invalidated_by_call,
10701         dense_invalidated_by_call to bitmap head.
10702         (df_rd_alloc, df_rd_bb_local_compute_process_def,
10703         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
10704         df_rd_start_dump, df_lr_verify_transfer_functions,
10705         df_live_verify_transfer_functions, df_chain_create_bb,
10706         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
10707         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
10708         df_simulate_one_insn_forwards, df_md_alloc,
10709         df_md_bb_local_compute_process_def,
10710         df_md_bb_local_compute_process_def, df_md_local_compute,
10711         df_md_transfer_function df_md_free): Update.
10712
10713 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
10714
10715         PR c/44322
10716         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
10717         target type for ADDR_EXPR; require no changes to qualifiers except
10718         for function types.
10719         * c-tree.h (c_build_type_variant): Remove.
10720
10721 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
10722
10723         * genautomata.c (get_excl_set): Do work per element, not per char.
10724         (check_presence_pattern_sets): Similar.
10725         (check_absence_pattern_sets): Similar.
10726
10727 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
10728
10729         * genautomata.c (curr_state_pass_num): Delete.
10730         (min_issue_delay_pass_states): Delete.
10731         (min_issue_delay): Delete.
10732         (initiate_min_issue_delay_pass_states): Delete.
10733         (output_min_issue_delay_table): Compute min_issue_delay_vect
10734         using a breadth-first search variant.
10735         (output_tables): Don't call initiate_min_issue_delay_pass_states.
10736
10737 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
10738
10739         PR boostrap/44421
10740         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
10741         (df_byte_lr_bb_local_compute): Likewise.
10742
10743 2010-06-03  Jason Merrill  <jason@redhat.com>
10744
10745         Implement noexcept operator (5.3.7)
10746         * c-common.c (c_common_reswords): Add noexcept.
10747         * c-common.h (enum rid): Add RID_NOEXCEPT.
10748
10749 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
10750
10751         * config/darwin-driver.c (darwin_default_min_version): Use
10752         GCC-specific formats in diagnostics.
10753         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
10754         diagnostics.
10755         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
10756         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
10757         eval_spec_function, handle_braces, process_brace_body, main,
10758         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
10759         getenv_spec_function, compare_version_strings,
10760         version_compare_spec_function): Use GCC-specific formats in
10761         diagnostics.
10762
10763 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
10764
10765         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
10766         that operand 0 and operand 1 are equal.
10767         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
10768         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
10769         and operand 1 are equal.
10770         <default>: Ditto.  Remove ??? comment.
10771         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
10772         and operand 1 are equal.
10773         <default>: Ditto.  Remove ??? comment.
10774         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
10775         are equal.
10776         (*add<mode>_4) <default>: Ditto.
10777         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
10778
10779 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
10780
10781         * config/i386/i386-protos.h (ix86_print_operand): Declare.
10782         * config/i386/i386.c (ix86_print_operand): Make non-static.
10783         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
10784         * output.h (output_operand): Declare.
10785         * final.c (output_operand): Make non-static.
10786
10787 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
10788
10789         PR rtl-optimization/44013
10790         * sched-deps.c (add_dependence_list_and_free): Don't free lists
10791         when processing debug insns.
10792
10793         PR debug/41371
10794         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
10795         recursing.  Check that recursion is bounded.  Rename inner var
10796         to avoid hiding incoming argument.
10797
10798 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
10799
10800         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
10801         operands[2] == 255.
10802         (*addqi_3): Ditto.
10803         (*addqi_4): Ditto.
10804         (*addqi_5): Ditto.
10805         (*addqi_ext_1_rex64): Ditto.
10806         (*addqi_ext_1): Ditto.
10807
10808         (*addqi_4): Check for incdec_operand in QImode.
10809
10810         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
10811         using SWI mode iterator.
10812         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
10813         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
10814         mode iterator.
10815         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
10816         using SWI mode iterator.
10817
10818 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10819
10820         PR c/25880
10821         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
10822         * c-format.c (gcc_diag_flag_specs): Add hash.
10823         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
10824         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
10825         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
10826         pp_c_cv_qualifiers. Handle qualifiers spelling here.
10827         (pp_c_type_qualifier_list): Call the function above.
10828         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
10829         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
10830         (WARN_FOR_QUALIFIERS): New macro.
10831         (convert_for_assignment): Use it.
10832
10833 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
10834
10835         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
10836
10837 2010-06-04  Jan Hubicka  <jh@suse.cz>
10838
10839         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
10840         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
10841         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
10842         DF_BYTE_LR_OUT): Update for embedded bitmaps.
10843         * fwprop.c (single_def_use_enter_block): Likewise.
10844         * ddg.c (create_ddg_dep_from_intra_loop_link,
10845         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
10846         * loop-iv.c (latch_dominating_def): Likewise.
10847         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
10848         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
10849         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
10850         df_rd_transfer_function, df_rd_top_dump,
10851         df_rd_bottom_dump): Update.
10852         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
10853         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
10854         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
10855         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
10856         df_lr_verify_solution_start, df_lr_verify_solution_end,
10857         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
10858         df_live_free_bb_info, df_live_alloc, df_live_reset,
10859         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
10860         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
10861         df_live_verify_solution_start, df_live_verify_solution_end,
10862         df_live_verify_transfer_functions, df_chain_create_bb,
10863         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
10864         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
10865         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
10866         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
10867         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
10868         df_byte_lr_transfer_function, df_byte_lr_top_dump,
10869         df_byte_lr_bottom_dump, df_create_unused_note,
10870         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
10871         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
10872         df_md_transfer_function, df_md_init, df_md_confluence_0,
10873         df_md_confluence_n,
10874         df_md_top_dump, df_md_bottom_dump): Update.
10875         (struct df_lr_problem_data): Embedd bitmap headers.
10876
10877 2010-06-04  Jan Hubicka  <jh@suse.cz>
10878
10879         * dce.c (dce_process_block): Do not re-scan already marked
10880         instructions.
10881
10882 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
10883
10884         PR rtl-optimization/39871
10885         PR rtl-optimization/40615
10886         PR rtl-optimization/42500
10887         PR rtl-optimization/42502
10888         * ira.c (init_reg_equiv_memory_loc: New function.
10889         (ira): Call it twice.
10890         * reload.h (calculate_elim_costs_all_insns): Declare.
10891         * ira-costs.c: Include "reload.h".
10892         (regno_equiv_gains): New static variable.
10893         (init_costs): Allocate it.
10894         (finish_costs): Free it.
10895         (ira_costs): Call calculate_elim_costs_all_insns.
10896         (find_costs_and_classes): Take estimated elimination costs
10897         into account.
10898         (ira_adjust_equiv_reg_cost): New function.
10899         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
10900         * reload1.c (init_eliminable_invariants, free_reg_equiv,
10901         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
10902         (elim_bb): New static variable.
10903         (reload): Move code out of here into init_eliminable_invariants and
10904         free_reg_equiv.  Call them.
10905         (calculate_elim_costs_all_insns): New function.
10906         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
10907         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
10908         but call note_reg_elim_costly if we turned a valid memory address
10909         into an invalid one.
10910         * Makefile.in (ira-costs.o): Depend on reload.h.
10911
10912 2010-06-04  Julian Brown  <julian@codesourcery.com>
10913
10914         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
10915         for pool ranges.
10916
10917 2010-06-04  Richard Guenther  <rguenther@suse.de>
10918
10919         PR lto/41584
10920         * cgraph.h (struct varpool_node): Add lto_file_data field.
10921         * lto-cgraph.c (input_varpool_node): Initialize it.
10922
10923 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
10924
10925         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
10926         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
10927         predicate in "type" attribute calculation.
10928         (*addsi_1_zext): Ditto.
10929         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
10930         (*addsi_2_zext): Ditto.
10931         (*add<mode>_3): Ditto.
10932         (*addsi_3_zext): Ditto.
10933         (*add<mode>_5): Ditto.
10934
10935 2010-06-03  Jan Hubicka  <jh@suse.cz>
10936
10937         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
10938         of bitmap_bit_p.
10939         * cfganal.c (compute_dominance_frontiers_1): Likewise.
10940
10941 2010-06-03  Jan Hubicka  <jh@suse.cz>
10942
10943         * df-problems.c (df_create_unused_note, df_note_bb_compute):
10944         micro-optimize the checks when to add new note.
10945
10946 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
10947
10948         * final.c (output_asm_insn): Call
10949         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
10950         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
10951         (output_address): Call targetm.asm_out.print_operand_address.
10952         Update comments.
10953         * target.h (struct gcc_target): Add print_operand,
10954         print_operand_address, and print_operand_punct_valid_p fields.
10955         * targhooks.h (default_print_operand): Declare.
10956         (default_print_operand_address): Declare.
10957         (default_print_operand_punct_valid_p): Declare.
10958         * targhooks.c (default_print_operand): Define.
10959         (default_print_operand_address): Define.
10960         (default_print_operand_punct_valid_p): Define.
10961         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
10962         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
10963         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
10964         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
10965         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
10966         * vmsdbgout.c (addr_const_to_string): Update comment.
10967         * config/i386/i386.c (print_operand): Rename to...
10968         (ix86_print_operand): ...this.  Make static.
10969         (print_operand_address): Rename to...
10970         (ix86_print_operand_address): ...this.  Make static.  Call
10971         ix86_print_operand instead of PRINT_OPERAND.
10972         (ix86_print_operand_punct_valid_p): New function.
10973         (TARGET_PRINT_OPERAND): Define.
10974         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10975         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10976         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
10977         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10978         (PRINT_OPERAND): Delete.
10979         (PRINT_OPERAND_ADDRESS): Delete.
10980         * config/i386/i386-protos.h (print_operand): Delete prototype.
10981         (print_operand_address): Delete prototype.
10982
10983 2010-06-03  Richard Guenther  <rguenther@suse.de>
10984
10985         PR tree-optimization/44403
10986         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
10987         Preserve pointer qualifiers.
10988         (vect_create_data_ref_ptr): Likewise.
10989
10990 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
10991
10992         PR c++/44294
10993         * defaults.h (MAX_FIXED_MODE_SIZE): New.
10994
10995         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
10996
10997 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
10998
10999         PR debug/44375
11000         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
11001         return false if merging the bbs would lead to goto_locus
11002         location being lost from the IL.
11003
11004 2010-06-03  Jan Hubicka  <jh@suse.cz>
11005             Jakub Jelinek  <jakub@redhat.com>
11006
11007         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
11008         set->regs[i] is NULL or has just one entry.
11009
11010 2010-06-03  Jan Hubicka  <jh@suse.cz>
11011
11012         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
11013         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
11014
11015 2010-06-03  Paul Brook  <paul@codesourcery.com>
11016
11017         * config/arm/arm.c (FL_TUNE): Define.
11018         (arm_default_cpu, arm_cpu_select): Remove.
11019         (all_cores): Populate core field.
11020         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
11021         (arm_find_cpu): New function.
11022         (arm_handle_option): Lookup cpu/architecture names.
11023         (arm_override_options): Cleanup mcpu/march/mtune handling.
11024         (arm_file_start): Ditto.
11025
11026 2010-06-03  Alan Modra  <amodra@gmail.com>
11027
11028         PR target/44169
11029         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
11030         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
11031         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
11032         (rs6000_emit_load_toc_table): Likewise.
11033
11034 2010-06-02  Jan Hubicka  <jh@suse.cz>
11035
11036         * passes.c (init_optimization_passes): Put ipa reference
11037         after ipa pure-const.
11038
11039 2010-06-02  Jan Hubicka  <jh@suse.cz>
11040
11041         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
11042         calls_read_all and calls_write_all.
11043         (get_reference_optimization_summary): Fix formatting.
11044         (is_proper_for_analysis): Check that decl is not readonly.
11045         (propagate_bits): Check CONST/PURE/noreturn flags.
11046         (ipa_init): Move all_module_statics to optimization_summary_obstack.
11047         (analyze_function): Ignore indirect edges.
11048         (copy_global_bitmap): For all module statics, do nothing.
11049         (generate_summary): Do not print calls_read_all/calls_write_all.
11050         (read_write_all_from_decl): Take node as argument; check
11051         cgraph_node_cannot_return.
11052         (propagate): Reorganize read_all/write_all computation;
11053         check indirect edges; check ecf flags; use all_module_statics
11054         in the results; do not free all_module_statics.
11055         (stream_out_bitmap): Handle all_module_statics.
11056         (ipa_reference_write_optimization_summary): Likewise; use
11057         varpool/cgraph encoders to get boundaries.
11058         (ipa_reference_read_optimization_summary): Read in all_module_statics;
11059         use it when possible.
11060
11061 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11062
11063         PR target/44218
11064         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
11065         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
11066
11067         * doc/extend.texi (powerpc builtins): Document vec_recip,
11068         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
11069
11070         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
11071         (rs6000_emit_swrsqrt): Ditto.
11072         (rs6000_emit_swdivsf): Delete.
11073         (rs6000_emit_swdivdf): Ditto.
11074         (rs6000_emit_swrsqrtsf): Ditto.
11075
11076         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
11077         describe the reciprocal estimate support for each type.
11078         (recip_options): Map -mrecip=<opt> into option bits.
11079         (gen_2arg_fn_t): New typedef for binary rtx gen function.
11080         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
11081         reciprocal estimate instructions.
11082         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
11083         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
11084         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
11085         cost information if -mdebug=cost or -mdebug=reg.
11086         (rs6000_override_options): Set -mrecip-precision for power6, and
11087         power7 machines.  If -mvsx or -mdfp, enable various options that
11088         came in previous instruction set ISAs, unless the option was
11089         explicitly disabled by the command line option.  Parse
11090         -mrecip=<opt> options.
11091         (rs6000_builtin_vectorized_function): Add support for vectorizing
11092         the reciprocal estimate builtins and expansions.
11093         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
11094         (bdesc_2arg): Add reciprocal estimate builtins.
11095         (bdesc_1arg): Add reciprocal square root estimate builtins.
11096         (rs6000_expand_builtin): Rewrite to use a switch statement,
11097         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
11098         (rs6000_init_builtins): Create declarations for reciprocal
11099         estimate builtins.
11100         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
11101         sized, prefer traditional floating point registers, if integer
11102         vector types, prefer altivec registers.  Don't actually look at
11103         the memory address any more.
11104         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
11105         builtins.
11106         (rs6000_load_constant_and_splat): New helper function to load up
11107         the constant for reciprocal estimate instructions.
11108         (rs6000_emit_madd): New helper function for generating
11109         multiply/add type instructions, based on the current switches.
11110         (rs6000_emit_msub): Ditto.
11111         (rs6000_emit_mnsub): Ditto.
11112         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
11113         replace a divide with a reciprocal estimate and fixup, adding
11114         support for machines with high precision and vectors.
11115         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
11116         low precision machines.
11117         (rs6000_emit_swdiv): New common function to be called to replace a
11118         division with reciprocal estimate and fixup.
11119         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
11120         for double and vector types.  Add support for high precision machines.
11121
11122         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
11123         the reciprocal estimate instructions can be generated.
11124         (TARGET_FRE): Ditto.
11125         (TARGET_FRSQRTES): Ditto.
11126         (TARGET_FRSQRTE): Ditto.
11127         (RS6000_RECIP_*): New macros for reciprocal estimate support.
11128
11129         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
11130         square root estimate on vectors.
11131         (re<mode>2): New insn for reciprocal division estimate on vectors.
11132
11133         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
11134         New builtin.
11135         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
11136         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
11137         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
11138         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
11139         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
11140         (RS6000_BUILTIN_RSQRT): Ditto.
11141         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
11142         floating point builtin.
11143
11144         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
11145         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
11146         __RECIP_PRECISION__ based on the command line switches.
11147         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
11148
11149         * config/rs6000/rs6000.opt (-mrecip): Document add support for
11150         replacing division instructions with reciprocal estimate and fixup.
11151         (-mrecip=<opt>): New option.
11152         (-mrecip-precision): Ditto.
11153
11154         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
11155         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
11156         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
11157         precision scalar.
11158
11159         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
11160         (UNSPEC_VREFP): Ditto.
11161         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
11162         conterparts with regard to support of -mno-fused-madd and -ffast-math.
11163         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
11164         reciprocal estimate instructions to be generated.
11165         (altivec_vrefp): Ditto.
11166
11167         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
11168         estimate support.
11169         (rreg): New mode attribute for reciprocal estimate support.
11170         (recip<mode>3): New insn for division using reciprocal estimate
11171         and fixup builtins.
11172         (divide define_split): New define_split to convert floating point
11173         division to use reciprocal estimate if the user used the
11174         appropriate options and the split is run when we can add new
11175         pseudo registers for the fixup.
11176         (rsqrt<mode>2): New insn for reciprocal square root support.
11177         (recipsf3): Move into recip<mode>3.
11178         (recipdf3): Ditto.
11179         (fres): Use TARGET_FRES.
11180         (rsqrtsf2): Move into rsqrt<mode>2.
11181         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
11182         (copysignsf3): Add support for VSX.
11183         (fred): Use TARGET_FRE.
11184         (fred_fpr): Ditto.
11185         (rsqrtdf_internal1): New function for frsqrte instruciton.
11186
11187         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
11188         (vec_rsqrt): Ditto.
11189
11190 2010-06-03  Richard Guenther  <rguenther@suse.de>
11191
11192         PR middle-end/44291
11193         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
11194         (set_user_assembler_libfunc): Likewise.
11195
11196 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
11197
11198         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
11199         defaults.h.
11200         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
11201         to defaults.h
11202         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
11203         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
11204         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
11205         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
11206         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
11207         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
11208         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
11209         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
11210         * defaults.h: Updated for above mentioned changes.
11211
11212 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
11213
11214         * c-common.c: Remove header include of tm_p.h.
11215         * Makefile.in (c-common.o): Remove TM_P_H dependency.
11216
11217 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
11218
11219         * tree.h (struct tree_decl_map): New type.
11220         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
11221         (tree_decl_map_hash): New prototype.
11222         (debug_expr_for_decl, value_expr_for_decl): Change into
11223         tree_decl_map hashtab from tree_map.
11224         (init_ttree): Adjust initialization.
11225         (tree_decl_map_hash): New function.
11226         (decl_debug_expr_lookup, decl_debug_expr_insert,
11227         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
11228
11229 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11230
11231         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
11232         linker emulations.
11233         * configure: Regenerate.
11234         * config.in: Regenerate.
11235
11236         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
11237         (X86_64_EMULATION): Define.
11238         (TARGET_LD_EMULATION): Use them.
11239
11240         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
11241         (SPARC64_EMULATION): Define.
11242         (LINK_ARCH_SPEC): Use them.
11243
11244 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
11245
11246         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
11247         smallest_mode_for_size for computing the precision types of new
11248         graphite IVs.  Do not call lang_hooks.types.type_for_size.
11249
11250 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
11251
11252         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
11253         information.
11254         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
11255
11256 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
11257
11258         PR middle-end/44363
11259         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
11260         return false instead.
11261
11262 2010-06-02  Jan Hubicka  <jh@suse.cz>
11263
11264         PR middle-end/44295
11265         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
11266         create new cgraph node to check callee.
11267
11268 2010-06-02  Richard Guenther  <rguenther@suse.de>
11269
11270         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
11271
11272 2010-06-02  Richard Guenther  <rguenther@suse.de>
11273
11274         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
11275         (lto_wrapper_cleanup): ... this.  Do not exit.
11276         (fatal): Adjust.  Exit here.
11277         (fatal_perror): Likewise.
11278         (fatal_signal): New function.
11279         (main): Set up signal handlers to cleanup temporary files.
11280         * Makefile.in (lto-wrapper.o): Adjust dependencies.
11281
11282 2010-06-02  Richard Guenther  <rguenther@suse.de>
11283
11284         PR tree-optimization/44377
11285         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
11286
11287 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11288
11289         * config/s390/2097.md (z10_fhex): Remove insn reservation.
11290         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
11291         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
11292         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
11293         instruction.
11294         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
11295
11296 2010-06-02  Jan Hubicka  <jh@suse.cz>
11297
11298         * bitmap.c (bitmap_descriptor): Add search_iter.
11299         (bitmap_find_bit): Increment it.
11300         (print_statistics): Print it.
11301
11302 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
11303
11304         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
11305         instead of gimple_build_call_vec.  Delete unnecessary local variable.
11306
11307 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
11308
11309         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
11310         change from yesterday.
11311
11312 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
11313
11314         * c-ada-spec.c: Clean up redundant includes.
11315
11316 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
11317
11318         * gimplify.c: Do not include except.h and optabs.h.
11319         (gimplify_body): Do not initialize RTL profiling.
11320         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
11321         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
11322         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
11323         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
11324         langhooks.h.
11325
11326         * tree-pretty-print.h: Include pretty-print.h.
11327         * gimple-pretty-print.h: Include pretty-print.h.
11328
11329         * tree-pretty-print.c: Do not include diagnostic.h.
11330         * tree-vrp.c: Likewise.
11331         * tree-tailcall.c: Likewise
11332         * tree-scalar-evolution.c: Likewise
11333         * tree-ssa-dse.c: Likewise
11334         * tree-chrec.c: Likewise
11335         * tree-ssa-sccvn.c: Likewise
11336         * tree-ssa-copyrename.c: Likewise
11337         * tree-nomudflap.c: Likewise
11338         * tree-call-cdce.c: Likewise
11339         * tree-stdarg.c: Likewise
11340         * tree-ssa-math-opts.c: Likewise
11341         * tree-nrv.c: Likewise
11342         * tree-ssa-sink.c: Likewise
11343         * tree-browser.c: Likewise
11344         * tree-ssa-loop-ivcanon.c: Likewise
11345         * tree-ssa-loop.c: Likewise
11346         * tree-parloops.c: Likewise
11347         * tree-ssa-address.c: Likewise
11348         * tree-ssa-ifcombine.c: Likewise
11349         * tree-if-conv.c: Likewise
11350         * tree-data-ref.c: Likewise
11351         * tree-affine.c: Likewise
11352         * tree-ssa-phiopt.c: Likewise
11353         * tree-ssa-coalesce.c: Likewise
11354         * tree-ssa-pre.c: Likewise
11355         * tree-ssa-live.c: Likewise
11356         * tree-predcom.c: Likewise
11357         * tree-ssa-forwprop.c: Likewise
11358         * tree-ssa-dce.c: Likewise
11359         * tree-ssa-ter.c: Likewise
11360         * tree-ssa-loop-prefetch.c: Likewise
11361         * tree-optimize.c: Likewise
11362         * tree-ssa-phiprop.c: Likewise
11363         * tree-object-size.c: Likewise
11364         * tree-outof-ssa.c: Likewise
11365         * tree-ssa-structalias.c: Likewise
11366         * tree-switch-conversion.c: Likewise
11367         * tree-ssa-reassoc.c: Likewise
11368         * tree-ssa-operands.c: Likewise
11369         * tree-vectorizer.c: Likewise
11370         * tree-vect-data-refs.c: Likewise
11371         * tree-vect-generic.c: Likewise
11372         * tree-vect-stmts.c: Likewise
11373         * tree-vect-patterns.c: Likewise
11374         * tree-vect-slp.c: Likewise
11375         * tree-vect-loop.c: Likewise
11376         * tree-ssa-loop-ivopts.c: Likewise
11377         * tree-ssa-loop-im.c: Likewise
11378         * tree-ssa-loop-niter.c: Likewise
11379         * tree-ssa-loop-unswitch.c: Likewise
11380         * tree-ssa-loop-manip.c: Likewise
11381         * tree-ssa-loop-ch.c: Likewise
11382         * tree-dump.c: Likewise
11383         * tree-complex.c: Likewise
11384
11385         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
11386         * tree-ssa-uninit.c: Likewise
11387         * tree-ssa-threadupdate.c: Likewise
11388         * tree-ssa-uncprop.c: Likewise
11389         * tree-ssa-ccp.c: Likewise
11390         * tree-ssa-dom.c: Likewise
11391         * tree-ssa-propagate.c: Likewise
11392         * tree-ssa-alias.c: Likewise
11393         * tree-dfa.c: Likewise
11394         * tree-cfgcleanup.c: Likewise
11395         * tree-sra.c: Likewise
11396         * tree-ssa-copy.c: Likewise
11397         * tree-ssa.c: Likewise
11398         * tree-profile.c: Likewise
11399         * tree-cfg.c: Likewise
11400         * tree-ssa-threadedge.c: Likewise
11401         * tree-vect-loop-manip.c: Likewise
11402
11403         * tree-inline.c: Do not include diagnostic.h and expr.h.
11404         Include rtl.h.
11405         (copy_decl_for_dup_finish): Do not use NULL_RTX.
11406
11407         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
11408         * tree-loop-distribution.c: Likewise.
11409
11410 2010-06-01  Jan Hubicka  <jh@suse.cz>
11411
11412         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
11413
11414 2010-06-01  Jan Hubicka  <jh@suse.cz>
11415
11416         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
11417         remove return value.
11418         (split_bbs_on_noreturn_calls) .... here.
11419         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
11420         * tree-flow.h (fixup_noreturn_call): New.
11421
11422 2010-06-01  Jan Hubicka  <jh@suse.cz>
11423
11424         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
11425
11426 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
11427
11428         * tree.h (build_nt_call_list): Delete.
11429         * tree.c (build_nt_call_list): Delete.
11430
11431 2010-06-01  Jan Hubicka  <jh@suse.cz>
11432
11433         * fwprop.c: Make emit-rtl.h include last.
11434         * rtlanal.c: Include emit-rtl.h.
11435         * genautomata.c: Output emit-rtl include into insn-automata.c
11436         * df-scan.c: Include emit-rtl.h.
11437         * haifa-sched.c: Indlude emit-rtl.h.
11438         * mode-switching.c: Indlude emit-rtl.h.
11439         * graph.c: Indlude emit-rtl.h.
11440         * sel-sched.c: Include emit-rtl.h.
11441         * sel-sched-ir.c: Include emit-rtl.h.
11442         * ira-build.c: Include emit-rtl.h.
11443         * emit-rtl.c (first_insn, last_insn): Remove defines.
11444         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
11445         Move to emit-rtl.h.
11446         (set_new_first_and_last_insn, get_last_insn_anywhere,
11447         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
11448         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
11449         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
11450         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
11451         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
11452         Use accessor functions.
11453         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
11454          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
11455         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
11456         mem_expr_equal_p): Move here from rtl.h.
11457         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
11458         Move here from emit-rtl.c; make inline.
11459         * cfglayout.h: Include emit-rtl.h.
11460         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
11461          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
11462         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
11463         mem_expr_equal_p, get_insns, set_first-insn,
11464         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
11465         * reg-stack.c: Include emit-rtl.h.
11466         * dce.c: Likewise.
11467
11468 2010-06-01  Jan Hubicka  <jh@suse.cz>
11469
11470         * cgraph.h (tree_function_versioning): Update prototype.
11471         (cgraph_function_versioning): Update prototype.
11472         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
11473         bitmap.
11474         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
11475         (cgraph_materialize_clone, save_inline_function_body): Update use of
11476         tree_function_versioning.
11477         * tree-inline.c (copy_bb): Look for previous copied block to link
11478         after; fix debug output.
11479         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
11480         (copy_body): Likewise.
11481         (expand_call_inline): Update use of copy_body.
11482         (tree_function_versioning): Update use of copy body; accept
11483         blocks_to_copy and new_entry.
11484
11485 2010-06-01  Jan Hubicka  <jh@suse.cz>
11486
11487         * gegenrtl.c: Remove unnecesary prototypes.
11488         (gendecl): Remove.
11489         (gendef): Produce static inline.
11490         (gencode): Remove.
11491         (main): Do not decode parameters; generate header only.
11492         * Makefile.in (genrtl.c): Remove.
11493
11494 2010-06-01  Jan Hubicka  <jh@suse.cz>
11495
11496         * tree-switch-conversion.c (build_one_array): Make it readonly.
11497
11498 2010-06-01  Richard Guenther  <rguenther@suse.de>
11499
11500         * optabs.c (init_optabs): Guard all accesses to reinit.
11501         * ipa-pure-const.c (propagate): Fix another typo.
11502         * opts.c (common_handle_option): Split assignment to bool.
11503         * c-opts.c (c_common_handle_option): Likewise.
11504
11505 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
11506             Matthew Gingell  <gingell@adacore.com>
11507
11508         * doc/invoke.texi: Mention -fdump-ada-spec.
11509         * tree-dump.c (dump_files): Add ada-spec.
11510         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
11511         * tree-pass.h (tree_dump_index): Add TDI_ada.
11512         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
11513         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
11514         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
11515         * c-decl.c: Include c-ada-spec.h.
11516         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
11517         functions.
11518         (c_write_global_declarations): Add handling of -fdump-ada-spec.
11519         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
11520         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
11521         * c-ada-spec.h, c-ada-spec.c: New files.
11522
11523 2010-06-01  Richard Guenther  <rguenther@suse.de>
11524
11525         PR lto/43853
11526         * ipa-pure-const.c (get_function_state): Hand back varying state
11527         if we do not have one.
11528         (has_function_state): New function.
11529         (duplicate_node_data): Adjust.
11530         (remove_node_data): Likewise.
11531         (pure_const_write_summary): Likewise.
11532         (propagate): Likewise.  Fix typo.
11533
11534 2010-06-01  Jan Hubicka  <jh@suse.cz>
11535
11536         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
11537         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
11538         (execute_all_ipa_transforms): Do not play with the states.
11539
11540 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
11541
11542         * config/arm/t-linux-androideabi: New.
11543         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
11544
11545 2010-06-01  Jan Hubicka  <jh@suse.cz>
11546
11547         * tree-inline.c (estimate_num_insns): For stdarg functions look
11548         into call statement to count cost of argument passing.
11549
11550 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
11551
11552         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
11553         argument for fprintf.
11554         (ix86_output_addr_diff_elt): Likewise.
11555         (x86_function_profiler): Likewise.
11556         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
11557         (LPREFIX): Likewise.
11558         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
11559
11560 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
11561
11562         PR target/44338
11563         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
11564         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
11565         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
11566         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
11567         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
11568         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
11569         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
11570         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
11571         TARGET_FUSED_MADD.
11572
11573 2010-05-31  Jan Hubicka  <jh@suse.cz>
11574
11575         * tree.h (tree_range_check_failed): Declare noreturn.
11576
11577 2010-05-31  Jan Hubicka  <jh@suse.cz>
11578
11579         * gimple.c (gimple_call_builtin_p): New function.
11580         * gimple.h (gimple_call_builtin_p): Declare.
11581         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
11582         to exit.
11583         (execute_warn_function_return): BUILT_IN_RETURN is return.
11584         (split_critical_edges): Return edges are not critical.
11585         (is_ctrl_altering_stmt): Builtin_in_return is altering.
11586         (gimple_verify_flow_info): Handle built_in_return.
11587         (execute_warn_function_return): Handle built_in_return.
11588         * ipa-pure-const.c (check_call): Ignore builtin_return.
11589
11590 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
11591
11592         PR middle-end/44337
11593         * expr.c (expand_assignment): Don't store anything for out-of-bounds
11594         array accesses with non-MEM.
11595
11596         PR tree-optimization/44182
11597         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
11598         newly needs to end a bb is followed by debug stmts, instead return
11599         true from the function at the end.
11600         (maybe_move_debug_stmts_to_successors): New function.
11601         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
11602
11603 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
11604
11605         PR target/44161
11606         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
11607
11608 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
11609
11610         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
11611         for nested functions in non-optimized compilation.
11612
11613 2010-05-31  Richard Guenther  <rguenther@suse.de>
11614
11615         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
11616
11617 2010-05-30  Jan Hubicka  <jh@suse.cz>
11618
11619         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
11620
11621 2010-05-30  Richard Guenther  <rguenther@suse.de>
11622
11623         PR lto/42975
11624         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
11625         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
11626         no longer needed.
11627
11628 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
11629
11630         * config/darwin.c (output_objc_section_asm_op): Add comment.
11631         (name_needs_quotes): Add '_' to list of valid comment chars.
11632         (machopic_output_function_base_name): Remove unneeded quotes.
11633         (darwin_encode_section_info): Adjust asm whitespace.
11634         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
11635         (ASM_OUTPUT_LOCAL): Ditto.
11636         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
11637         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
11638         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
11639
11640 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
11641
11642         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
11643         RS6000_OUTPUT_BASENAME unconditionally.
11644         (rs6000_output_function_epilogue): Likewise.
11645
11646 2010-05-30  Jan Hubicka  <jh@suse.cz>
11647
11648         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
11649         nodes.
11650
11651 2010-05-30  Richard Guenther  <rguenther@suse.de>
11652
11653         * tree-cfg.c (verify_gimple_assign_single): Implement
11654         verification for COND_EXPR rhs.
11655
11656 2010-05-30  Jan Hubicka  <jh@suse.cz>
11657
11658         * cgraph.h (cgraph_dump_file): Declare.
11659         * cgraphunit.c (cgraph_dump_file): Export.
11660         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
11661
11662 2010-05-30  Jan Hubicka  <jh@suse.cz>
11663
11664         * dwarf2out.c (reference_to_unused,
11665         premark_types_used_by_global_vars_helper): Avoid creation of new
11666         varpool nodes.
11667
11668 2010-05-30  Jan Hubicka  <jh@suse.cz>
11669
11670         * cgraph.h (cgraph_node_cannot_return,
11671         cgraph_edge_cannot_lead_to_return): New functions.
11672         * cgraph.c (cgraph_node_cannot_return,
11673         cgraph_edge_cannot_lead_to_return): Use them.
11674         * ipa-pure-const.c (pure_const_names): New static var.
11675         (check_call): Handle calls not leading to return.
11676         (pure_const_read_summary): Dump info read.
11677         (propagate): Dump info about propagation process; ignore side effects
11678         of functions not leading to exit; fix handling of pure functions.
11679
11680 2010-05-30  Jan Hubicka  <jh@suse.cz>
11681
11682         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
11683         for tail call epilogues.
11684
11685 2010-05-30  Jan Hubicka  <jh@suse.cz>
11686
11687         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
11688         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
11689         dump files.
11690
11691 2010-05-29  Jan Hubicka  <jh@suse.cz>
11692
11693         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
11694         node; remove references in node we no longer keep in cgrpah but need
11695         body of.
11696
11697 2010-05-29  Jan Hubicka  <jh@suse.cz>
11698
11699         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
11700
11701 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11702
11703         PR target/44165
11704         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
11705
11706 2010-05-29  Jan Hubicka  <jh@suse.cz>
11707
11708         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
11709         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
11710         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
11711         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
11712         debug_names_replaced_by, debug_update_ssa): Likewise.
11713         * sbitmap.c (debug_sbitmap): Likewise.
11714         * genrecog.c (debug_decision, debug_decision_list): Likewise.
11715         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
11716         debug_tree_chain): Likewise.
11717         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
11718         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
11719         * optabs.c (debug_optab_libfuncs): Likewise.
11720         (verify_loop_closed_ssa): Likewise.
11721         * value-prof.c (verify_histograms): Likewise.
11722         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
11723         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
11724         * cfghooks.c (verify_flow_info): Likewise.
11725         * fold-const.c (debug_fold_checksum): Likewise.
11726         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
11727         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
11728         Likewise.
11729         * omega.c (debug_omega_problem): Likewise.
11730         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
11731         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
11732         * dominance.c (verify_dominators, debug_dominance_info,
11733         debug_dominance_tree): Likewise.
11734         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
11735         * df_regno_debug, df_ref_debug,
11736         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
11737         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
11738         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
11739         * sel-sched.c (debug_state): Likewise.
11740         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
11741         Likewise.
11742         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
11743         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
11744         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
11745         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
11746         Likewise.
11747         * c-pretty-print.c (debug_c_tree): Likewise.
11748         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
11749         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
11750         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
11751         * ebitmap.c (debug_ebitmap): Likewise.
11752         * function.c (debug_find_var_in_block_tree): Likewise.
11753         * print-rtl.c (debug_rtx): Likewise.
11754         (debug_rtx_count): Likewise.
11755         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
11756         * stor-layout.c (debug_rli): Likewise.
11757         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
11758         * tree-data-ref.c (debug_data_references,
11759         debug_data_dependence_relations, debug_data_reference,
11760         debug_data_dependence_relation, debug_rdg_vertex,
11761         debug_rdg_component, debug_rdg): Likewise.
11762         * tree-affine.c (debug_aff): Likewise.
11763         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
11764         Likewise.
11765         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
11766         * emit-rtl.c (verify_rtl_sharing): Likewise.
11767         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
11768         debug_value_expressions): Likewise.
11769         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
11770         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
11771         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
11772         * cfglayout.c (verify_insn_chain): Likewise.
11773         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
11774         debug_clast_stmt, debug_generated_program): Likewise.
11775         * ggc-page.c (debug_print_page_list): Likewise.
11776         * tree-ssa-ter.c (debug_ter): Likewise.
11777         * graphite-dependences.c (debug_pddr): Likewise.
11778         * sched-deps.c (debug_ds): Likewise.
11779         * tree-ssa.c (verify_ssa): Likewise.
11780         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
11781         debug_scattering_functions, debug_iteration_domains, debug_pdr,
11782         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
11783         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
11784         * tree-inline.c (debug_find_tree): Likewise.
11785         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
11786         debug_ppl_powerset_matrix): Likewise.
11787         * var-tracking.c (debug_dv): Likewise.
11788         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
11789         * cfgloop.c (verify_loop_structure): Likewise.
11790         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
11791         * c-common.c (verify_sequence_points): Likewise.
11792         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
11793         debug_candidates, debug_rgn_dependencies): Likewise.
11794         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
11795         * debug_constraint_graph, debug_solution_for_var,
11796         debug_sa_points_to_info): Likewise.
11797         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
11798         Likewie.
11799         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
11800         debug_loops, debug_loop, debug_loop_num): Likewise.
11801         * passes.c (debug_pass): Likewise.
11802         (dump_properties): Likewise; add cfglayout property.
11803         (debug_properties): Likewise.
11804         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
11805         * varpool.c (debug_varpool): Likewise.
11806         * regcprop.c (debug_value_data): Likewise.
11807         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
11808         debug_immediate_uses_for): Likewise.
11809
11810 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
11811
11812         PR bootstrap/44315
11813         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
11814         Filter out insn-flags.h.
11815
11816 2010-05-29  Jan Hubicka  <jh@suse.cz>
11817
11818         * cgraph.h (struct varpool_node_set_def,
11819         struct cgraph_node_set_def): Remove unused AUX pointer.
11820         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
11821         VEC_empty macro.
11822
11823 2010-05-29  Jan Hubicka  <jh@suse.cz>
11824
11825         PR middle-end/44324
11826         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
11827
11828 2010-05-29  Richard Guenther  <rguenther@suse.de>
11829
11830         * lto-streamer.c (cached_bp): New global variable.
11831         (bitpack_create): Return the cached bitpack, if available.
11832         (bitpack_delete): Clear and cache the bitpack, if appropriate.
11833         (bp_pack_value): Remove redundant asserts.
11834
11835 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
11836
11837         PR middle-end/44306
11838         * tree-if-conv.c (is_true_predicate): New.
11839         (is_predicated): Use is_true_predicate.
11840         (add_to_predicate_list): Same.  Do not use unshare_expr.
11841         (add_to_dst_predicate_list): Same.
11842
11843 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
11844
11845         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
11846         field on edges.
11847         (predicate_bbs): Same.
11848         (clean_predicate_lists): Same.
11849         (find_phi_replacement_condition): Do not AND the predicate from
11850         edge->aux.
11851
11852 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
11853
11854         PR bootstrap/44315
11855         * Makefile.in (build/gencondmd.o): Add a missing `\'.
11856
11857 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11858
11859         PR target/44261
11860         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
11861         (negdf2): Adjust expander pattern and use negdf2_slow.
11862         (negsf2): Likewise.
11863
11864 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
11865
11866         * basic-block.h (struct control_flow_graph): Move last_label_uid field
11867         up.
11868         * df.h (struct df_base_ref): Move regno field up.
11869         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
11870         * expr.h (struct separate_ops): Move location field up.
11871         * optabs.h (struct optab_d): Move libcall_basename field down.
11872         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
11873         * config/i386/i386.h (struct machine_function): Convert call_abi field
11874         into a bitfield.  Move cfa field to the end of the structure.
11875
11876 2010-05-29  Jan Hubicka  <jh@suse.cz>
11877
11878         * varpool.c (varpool_get_node): Fix lookup.
11879
11880 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
11881
11882         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
11883         RTL specific prototypes with #ifdef RTX_CODE.
11884         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
11885         * config/spu/t-spu-elf: Fix dependencies.
11886
11887         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
11888
11889 2010-05-29  Mike Stump  <mikestump@comcast.net>
11890
11891         PR bootstrap/44315
11892         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
11893         TM_H when building to avoid dependency loops.
11894
11895 2010-05-29  Jan Hubicka  <jh@suse.cz>
11896
11897         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
11898         refs and body; not the whole node for masters of materialized clones.
11899
11900 2010-05-29  Mike Stump  <mikestump@comcast.net>
11901
11902         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
11903
11904 2010-05-29  Jan Hubicka  <jh@suse.cz>
11905
11906         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
11907         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
11908         use of clone_function_name.
11909         * cgraph.h (cgraph_create_virtual_clone,
11910         cgraph_function_versioning): update prototypes.
11911         (clone_function_name): Declare.
11912         * ipa-cp.c (ipcp_insert_stage): Update call of
11913         cgraph_create_virtual_clone.
11914         * omp-low.c (create_omp_child_function_name): Use
11915         cgraph_create_virtual_clone.
11916         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
11917         (cgraph_function_versioning): Take SUFFIX argument; produce new name
11918         and make decl local.
11919
11920 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
11921
11922         * vec.h: Include statistics.h
11923         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
11924         with VEC_H.
11925
11926 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
11927
11928         * c-lex.c: Do not include c-tree.h.
11929         * c-pretty-print.c: Likewise.
11930         * c-opts.c: Likewise.
11931         * c-gimplify.c: Likewise.
11932         * c-common.c: Likewise.
11933         * c-dump.c: Likewise.  Include c-common.h.
11934
11935 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
11936
11937         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
11938         before including diagnostic-core.h.
11939         (c_cpp_error): New prototype moved from c-tree.h.
11940         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
11941         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
11942         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
11943         (c_cpp_error): Prototype moved to c-common.h.
11944         * Makefile.in: Update dependency for C_COMMON_H.
11945
11946 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
11947
11948         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
11949         * c-common.c (c_register_addr_space): Remove here.
11950         * c-decl.c (c_register_addr_space): Re-add here.
11951
11952 2010-05-28  Mike Stump  <mikestump@comcast.net>
11953
11954         * config/darwin-c.c: Remove c-tree.h include.
11955
11956 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
11957
11958         * gcc.c: Include diagnostic.h.
11959         (error_count): Remove.  All users changed to use errorcount.
11960         (programname): Remove.  All users changed to use progname.
11961         (fancy_abort, internal_error, fatal_error, error, warning, inform,
11962         fnotice): Remove.
11963         (execute): Don't include "Internal error" and bug reporting
11964         information in argument of internal_error call.
11965         (process_command): Don't increment error_count after calling
11966         perror_with_name.
11967         (input_filename): Rename to gcc_input_filename.  All users
11968         changed.
11969         (main): Call diagnostic_initialize.  Register delete_temp_files
11970         with atexit.  Use seen_error to test for errors.
11971         * gcc.h: Include diagnostic-core.h.
11972         (fatal_error, error, warning): Remove.
11973         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
11974         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
11975         (gcc.o): Update dependencies.
11976
11977 2010-05-28  Jeff Law  <law@redhat.com>
11978
11979         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
11980         functions.
11981         * ira.h (ira_bad_reload_regno): Declare
11982         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
11983
11984         * ira-color.c (update_curr_costs): Free updated hard reg costs.
11985         (ira_reassign_conflict_allocnos): Remove bogus asserts.
11986         (allocno_reload_assign): Likewise.
11987
11988 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
11989
11990         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
11991         build1_stat.
11992
11993 2010-05-28  Richard Guenther  <rguenther@suse.de>
11994
11995         PR lto/44312
11996         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
11997         Stream fixed-point constants mode.
11998         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
11999         and TYPE_PRECISION.
12000         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
12001         Stream fixed-point constants mode.
12002         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
12003         and TYPE_PRECISION.
12004
12005 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
12006
12007         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
12008         only place it was called from.
12009         (number_of_latch_executions): Do not return chrec_dont_know when the
12010         may_be_zero is a runtime condition: instead, return a COND_EXPR
12011         including the may_be_zero condition.
12012         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
12013         of nb_iterations.
12014         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
12015         COND_EXPRs.
12016
12017 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
12018
12019         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
12020         generate COND_EXPRs for degenerate_phi_result.
12021
12022 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
12023
12024         PR middle-end/44293
12025         * tree-if-conv.c (if_convertible_loop_p): Check the
12026         if-convertibility of phi nodes in non predicated BBs.
12027
12028 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12029
12030         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
12031
12032 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12033
12034         PR driver/15303
12035         * gcc.c (inform, warning, inform): New functions.
12036         (fatal_ice): Rename to internal_error; change cmsgid parameter to
12037         gmsgid.  All callers changed.
12038         (notice): Rename to fnotice; add parameter fp.  All callers changed.
12039         (fatal_error): Rename to fatal_signal.  All users changed.
12040         (fatal): Rename to fatal_error; change cmsgid parameter to
12041         gmsgid.  All callers changed.
12042         (process_command): Use warning instead of error for warnings.
12043         (end_going_arg): Don't use _() around argument of error.
12044         (do_spec_1): Use inform for message from %n specs.  Use warning
12045         instead of error for warnings.
12046         (main): Use inform for comparison messages.  Use warning for
12047         message about unused linker input.
12048         (error): Increment error_count.  Print "error: ".
12049         * gcc.h (fatal): Change to fatal_error.
12050         (warning): Declare.
12051         * config/darwin-driver.c (darwin_default_min_version): Use warning
12052         instead of fprintf for warnings.
12053         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
12054
12055 2010-05-28  Julian Brown  <julian@codesourcery.com>
12056
12057         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
12058         (*thumb2_addsi3_compare0_scratch): New.
12059         * config/arm/constraints.md (Pv): New.
12060         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
12061         for ARM mode only.
12062         (*addsi3_compare0_scratch): Likewise.
12063
12064 2010-05-28  Jan Hubicka  <jh@suse.cz>
12065
12066         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
12067         check.
12068         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
12069         only on local statics.
12070
12071 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
12072
12073         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
12074
12075 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
12076
12077         PR bootstrap/44314
12078         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
12079         (OPTION_GLIBC): Define.
12080
12081 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
12082
12083         PR debug/41048
12084         * dwarf2out.c (double_int_type_size_in_bits): New function.
12085         (round_up_to_align): Change first argument and return value to
12086         double_int.
12087         (field_byte_offset): Work internally on double_ints.
12088
12089         PR target/43636
12090         * builtins.c (expand_movstr): Use a temporary pseudo instead
12091         of target even when target is not NULL and not const0_rtx, but
12092         fails movstr predicate.
12093         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
12094
12095 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12096
12097         * final.c (rest_of_clean_state): Use %m in errors instead of
12098         strerror (errno).
12099         * gengtype.c (read_input_list, close_output_files): Use xstrerror
12100         instead of strerror.
12101         * toplev.c (process_options): Use %m in errors instead of strerror
12102         (errno).
12103         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
12104         (errno).
12105
12106 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
12107
12108         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
12109         (ix86_canonical_va_list_type): Make static.  Add declaration.
12110         (ix86_enum_va_list): Make static.  Reindent.
12111         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
12112         (ix86_canonical_va_list_type): Ditto.
12113         (ix86_enum_va_list): Ditto.
12114
12115 2010-05-28  Richard Guenther  <rguenther@suse.de>
12116
12117         * lto-wrapper.c (run_gcc): With -save-temps generate a
12118         user-visible ltrans filename.  Fixup ltrans unit numbering.
12119
12120 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
12121
12122         * c-common.c (c_common_nodes_and_builtins): Replace use
12123         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
12124         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
12125         to ix86_enum_va_list.
12126         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
12127         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
12128         (TARGET_ENUM_VA_LIST_P): Add hook description.
12129         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
12130         * target.h (gcc_target): Add enum_va_list hook.
12131
12132         PR bootstrap/44299
12133         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
12134         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
12135         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
12136
12137 2010-05-28  Alan Modra  <amodra@gmail.com>
12138
12139         PR target/44266
12140         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
12141         emit_library_call machinery to set up __tls_get_addr calls.
12142
12143 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12144
12145         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
12146
12147 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
12148
12149         Revert fix for PR c++/44188
12150         * c-common.c (is_typedef_decl): Revert the moving of  this
12151         definition ...
12152         * tree.c (is_typedef_decl): ... here.
12153         (typdef_variant_p): Revert the moving of this  definition
12154         here from gcc/cp/tree.c.
12155         * c-common.h (is_typedef_decl): Revert the moving of this
12156         declaration ...
12157         * tree.h (is_typedef_decl): ... here.
12158         (typedef_variant_p): Revert the moving of this  declaration here
12159         from gcc/cp/cp-tree.h
12160         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
12161         (gen_tagged_type_die): Revert the splitting out of ...
12162         (gen_type_die_with_usage): ... this function. Revert the anonymous
12163         tagged type handling.
12164         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
12165         typedefs naming anonymous tagged types.
12166
12167 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
12168
12169         * config/rs6000/rs6000-modes.def (PSImode): Delete.
12170
12171 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
12172
12173         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
12174         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
12175         throughout.
12176         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
12177         "xer" to "ca".
12178         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
12179         XER_REGS to CA_REGS throughout.
12180         * config/rs6000/rs6000.h: Same.
12181         (ADDITIONAL_REGISTER_NAMES): Add "xer".
12182         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
12183         that mode_iterator "P" is the size for arithmetic carries as well.
12184         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
12185
12186 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
12187
12188         PR bootstrap/44255
12189         * combine.c (struct rtx_subst_pair): Define unconditionally.
12190         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
12191         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
12192         Call make_compound_operation on pair->to.
12193         (propagate_for_debug): Don't call make_compound_operation here.
12194         Always use simplify_replace_fn_rtx.
12195
12196 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
12197
12198         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
12199         * config/xtensa/xtensa.c (override_options): Check
12200           TARGET_FORCE_NO_PIC and set flag_pic.
12201         * config/xtensa/xtensa.opt: Document -mforce-no-pic
12202
12203 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
12204
12205         PR bootstrap/44299
12206         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
12207         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
12208
12209 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
12210
12211         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
12212         toplev.h.
12213         * diagnostic.c: Don't include toplev.h.
12214         (progname): Define.  Moved from toplev.c.
12215         (seen_error): New function.
12216         * diagnostic.h: Include diagnostic-core.h.
12217         (diagnostic_t, emit_diagnostic): Don't declare here.
12218         * toplev.c (progname): Move to toplev.c.
12219         (emit_debug_global_declarations, compile_file, finalize,
12220         do_compile, toplev_main): Use seen_error.
12221         * toplev.h: Include diagnostic-core.h.
12222         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
12223         internal_error, warning, warning_at, error, error_n, error_at,
12224         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
12225         verbatim, fnotice, progname): Move to diagnostic-core.h.
12226         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
12227         (expand_builtin_expect): Use seen_error.
12228         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
12229         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
12230         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
12231         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
12232         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
12233         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
12234         errorcount for errors.
12235         * c-opts.c (c_common_finish): Use seen_error.
12236         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
12237         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
12238         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
12239         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
12240         (get_coverage_counts): Use seen_error.
12241         * dwarf2out.c (dwarf2out_finish): Use seen_error.
12242         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
12243         gimplify_body): Use seen_error.
12244         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
12245         * ipa-pure-const.c (gate_pure_const): Use seen_error.
12246         * ipa-reference.c (gate_reference): Use seen_error.
12247         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
12248         * lambda-code.c: Include diagnostic-core.h instead of
12249         diagnostic.h.
12250         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
12251         * lto-compress.c: Include diagnostic-core.h instead of
12252         diagnostic.h.
12253         * lto-section-in.c: Include diagnostic-core.h instead of
12254         diagnostic.h.
12255         * lto-streamer-out.c: Include diagnostic-core.h instead of
12256         diagnostic.h.
12257         * lto-streamer.c: Include diagnostic-core.h instead of
12258         diagnostic.h.
12259         (gate_lto_out): Use seen_error.
12260         * matrix-reorg.c: Include diagnostic-core.h instead of
12261         diagnostic.h.
12262         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
12263         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
12264         (gate_expand_omp, lower_omp_1): Use seen_error.
12265         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
12266         (rest_of_decl_compilation, rest_of_type_compilation,
12267         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
12268         * tree-cfg.c (label_to_block_fn): Use seen_error.
12269         * tree-inline.c (optimize_inline_calls): Use seen_error.
12270         * tree-mudflap.c (mudflap_finish_file): Use
12271         seen_error.
12272         * tree-optimize.c (gate_all_optimizations,
12273         gate_all_early_local_passes, gate_all_early_optimizations): Use
12274         seen_error.
12275         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
12276         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
12277         (varpool_remove_unreferenced_decls,
12278         varpool_assemble_pending_decls): Use seen_error.
12279         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
12280         (TOPLEV_H, DIAGNOSTIC_H): Update.
12281         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
12282         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
12283         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
12284         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
12285         coverage.o, lambda-code.o): Update dependencies.
12286
12287 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
12288
12289         PR c++/44188
12290         * c-common.c (is_typedef_decl): Move this definition ...
12291         * tree.c (is_typedef_decl): ... here.
12292         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
12293         * c-common.h (is_typedef_decl): Move this declaration ...
12294         * tree.h (is_typedef_decl): ... here.
12295         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
12296         * dwarf2out.c (is_naming_typedef_decl): New function.
12297         (gen_tagged_type_die): Split out of ...
12298         (gen_type_die_with_usage): ... this function. When an anonymous
12299         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
12300         is emitted for the typedef.
12301         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
12302         anonymous tagged types.
12303
12304 2010-05-27  Jason Merrill  <jason@redhat.com>
12305
12306         * print-tree.c (debug_vec_tree): New fn.
12307         (print_vec_tree): New fn.
12308         * tree.h: Declare them.
12309         * gdbinit.in (pvt): New command.
12310
12311         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
12312
12313         * gdbinit.in (pdd): New command.
12314
12315 2010-05-27  Jan Hubicka  <jh@suse.cz>
12316
12317         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
12318         (update_caller_keys): Return early if there are no callers;
12319         only update fibheap when decresing the key.
12320         (update_callee_keys): Avoid recursion.
12321         (decide_inlining_of_small_functions): When badness does not match;
12322         re-insert into fibheap.
12323
12324 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
12325
12326         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
12327         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
12328         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
12329         (ALL_HOST_OBJS): Now a union of the above two.
12330         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
12331         all files in ALL_HOST_FRONTEND_OBJS.
12332         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
12333
12334         * c-common.c: Pretend to be a backend file by undefining
12335         IN_GCC_FRONTEND (still need rtl.h here).
12336
12337 2010-05-27  Jan Hubicka  <jh@suse.cz>
12338
12339         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
12340         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
12341
12342 2010-05-27  Jan Hubicka  <jh@suse.cz>
12343
12344         * sched-ebb.c: Rename struct deps to struct deps_desc.
12345         * ddg.c: Likewise.
12346         * sel-sched-ir.c: Likewise.
12347         * sched-deps.c: Likewise.
12348         * sched-int.h: Likewise.
12349         * sched-rgn.c: Likewise.
12350
12351 2010-05-27  Jon Beniston  <jon@beniston.com>
12352
12353         PR 43726
12354         * config/lm32/lm32.h: Remove definition of
12355         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
12356
12357 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
12358
12359         PR lto/44230
12360         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
12361
12362 2010-05-27  Richard Guenther  <rguenther@suse.de>
12363
12364         PR tree-optimization/44284
12365         * tree-vect-stmts.c (vectorizable_assignment): Handle
12366         sign-changing conversions as simple copy.
12367
12368 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12369
12370         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
12371         Bionic C library.
12372         (__gthread_active_p): Check for pthread_create if compiling against
12373         Bionic C library.
12374
12375 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12376
12377         Support compilation for Android platform.  Reimplement -mandroid.
12378
12379         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
12380         (*android*): Set ANDROID_DEFAULT.
12381         (arm*-*-linux*): Include linux-android.h.
12382         (arm*-*-eabi*): Don't include previous -mandroid implementation.
12383         * config/arm/eabi.h: Remove, move Android-specific parts ...
12384         * config/linux-android.h: ... here.  New file.
12385         * config/arm/eabi.opt: Rename to ...
12386         * config/linux-android.opt: ... this.
12387         (mandroid): Allow -mno-android option.  Initialize based on
12388         ANDROID_DEFAULT.
12389         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
12390         Move logic to corresponding LINUX_TARGET_* macros.
12391         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
12392         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
12393         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
12394         Android definitions.
12395         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
12396         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
12397         Document.
12398
12399 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12400
12401         Add support for Bionic C library
12402
12403         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
12404         macro.
12405         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
12406         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
12407
12408         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
12409         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
12410         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
12411         to support multiple C libraries.  Handle Bionic.
12412         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
12413         (BIONIC_DYNAMIC_LINKER64): Define.
12414         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
12415         Update.
12416         (TARGET_HAS_SINCOS): Enable for Bionic.
12417
12418         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
12419         the last option specified on command line take effect.
12420         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
12421         (mbionic): New.
12422         (mglibc, muclibc): Update.
12423
12424         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
12425         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
12426         DEFAULT_LIBC.
12427
12428         * doc/invoke.texi (-mglibc, -muclibc): Update.
12429         (-mbionic): Document.
12430
12431 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12432
12433         * c-common.h (c_register_addr_space): Add prototype.
12434         (ADDR_SPACE_KEYWORD): Remove.
12435         * c-common.c (c_register_addr_space): New function.
12436         (c_addr_space_name): Reimplement.
12437         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
12438
12439         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
12440         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
12441
12442         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
12443         Remove TARGET_ADDR_SPACE_KEYWORDS.
12444
12445 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
12446
12447         * input.c: New file.
12448         * input.h (main_input_filename): Move declaration to toplev.h.
12449         * toplev.c (input_location, line_table): Move to input.c
12450         * toplev.h (main_input_filename): Move declaration from input.h.
12451         * tree.c (expand_location): Move to input.c.
12452         * Makefile.in (OBJS-common): Add input.o.
12453         (input.o): Add dependencies.
12454
12455 2010-05-27  Richard Guenther  <rguenther@suse.de>
12456
12457         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
12458         for non-existant files.
12459         (fork_execute): Mark args_name file as deleted.
12460
12461 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
12462
12463         PR bootstrp/44287
12464         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
12465         (narrow_signed_type): Likewise.
12466
12467 2010-05-26  Jan Hubicka  <jh@suse.cz>
12468
12469         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
12470         edge only when checking is enabled; check using former_clone_of;
12471         check inline clones too.
12472         (cgraph_materialize_clone): Record former_clone_of pointer.
12473         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
12474         combining redirections; dump args_to_skip bitmap
12475         (cgraph_materialize_all_clones): Do no redirection here.
12476         * ipa-inline.c (inline_transform): Do redirection here.
12477         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
12478         cheking only).
12479
12480 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12481
12482         * config/avr/avr-c.c: Do not include regs.h.
12483         Include cpplib.h for cpp_define and tree.h for c-common.h.
12484         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
12485         * config/avr/t-avr: Fix dependencies for avr-c.o.
12486
12487 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12488
12489         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
12490         string instead of SYMBOL_REF rtx.
12491         * rtl.h (set_stack_check_libfunc): Move prototype from here...
12492         * libfuncs.h: ...to here.  Adjust for explow.c change.
12493
12494 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
12495
12496         * pretty-print.c: Don't include ggc.h.
12497         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
12498         (identifier_to_locale): Use them for allocation.
12499         * pretty-print.h (identifier_to_locale_alloc,
12500         identifier_to_locale_free): Declare.
12501         * toplev.c (alloc_for_identifier_to_locale): New.
12502         (general_init): Set identifier_to_locale_alloc and
12503         identifier_to_locale_free.
12504         * Makefile.in (pretty-print.o): Update dependencies.
12505
12506 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
12507
12508         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
12509         pointer types if they have different alignment or mode.
12510
12511 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
12512
12513         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
12514         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12515         * config/sparc/sparc-protos.h (function_value): Remove declaration.
12516         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
12517         sparc_function_value_regno_p): New functions.
12518         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12519         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12520         (function_value): Rename to...
12521         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
12522         argument to 'outgoing'.
12523         (function_arg_record_value, function_arg_union_value,
12524         function_arg_vector_value): Update comment.
12525
12526 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
12527
12528         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
12529         (fde_needed_for_eh_p): New predicate.
12530         (output_call_frame_info): Use it throughout to decide whether FDEs
12531         are needed for EH purpose.
12532         (dwarf2out_begin_prologue): Reorder assignments.
12533
12534 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12535
12536         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
12537         special case loop->header.
12538         (is_predicated): New.
12539         (if_convertible_loop_p): Call it.
12540
12541 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12542
12543         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
12544         iterator in parameter.  Do not generate code during the analysis.
12545         (tree_if_convert_cond_stmt): Removed.
12546         (tree_if_convert_stmt): Removed.
12547         (predicate_bbs): New.
12548         (if_convertible_loop_p): Call predicate_bbs.
12549         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
12550         now contains all the analysis part.
12551
12552 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12553
12554         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
12555         statements in the analysis part.
12556         (tree_if_convert_stmt): Update comment.
12557         (remove_conditions_and_labels): New.
12558         (combine_blocks): Call remove_conditions_and_labels.
12559         (tree_if_conversion): Update comment.
12560
12561 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12562
12563         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
12564         than 2 predecessors or more than 2 successors.
12565
12566 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12567
12568         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
12569         of loops in which the data dependence analysis fails.
12570
12571 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12572
12573         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
12574         CDI_POST_DOMINATORS.
12575         (tree_if_conversion): Same.
12576
12577 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12578
12579         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
12580
12581 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12582
12583         * tree-if-conv.c: Update copyright years.  Fix comments.
12584         Fix indentation.
12585
12586 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
12587
12588         * builtin-types.def (BT_INT128): New primitive type.
12589         (BT_UINT128): Likewise.
12590         * c-common.c (c_common_r): Add __int128 keyword.
12591         (c_common_type_for_size): Handle __int128.
12592         (c_common_type_for_mode): Likewise.
12593         (c_common_signed_or_unsigned_type): Likewise.
12594         (c_common_nodes_and_builtins): Add builtin type
12595         if target supports 128-bit integer scalar.
12596         * c-common.h (enum rid): Add RID_INT128.
12597         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
12598         if target supports 128-bit integer scalar.
12599         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
12600         (finish_declspecs): Likewise.
12601         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
12602         (c_token_starts_declspecs): Likewise.
12603         (c_parser_declspecs): Likewise.
12604         (c_parser_attributes): Likewise.
12605         (c_parser_objc_selector): Likewise.
12606         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
12607         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
12608         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
12609         * tree.c (make_or_reuse_type): Likewise.
12610         (make_unsigned_type): Likewise.
12611         (build_common_tree_nodes_2): Likewise.
12612         * tree.h (enum integer_type_kind): Add itk_int128 and
12613         itk_unsigned_int128.
12614         (int128_integer_type_node): New define.
12615         (int128_unsigned_type_node): New define.
12616         * doc/extend.texi: Add documentation about __int128 type.
12617
12618 2010-05-26  Richard Guenther  <rguenther@suse.de>
12619
12620         * tree-ssa-sccvn.c (copy_nary): Adjust.
12621         (copy_phis): Rename to ...
12622         (copy_phi): ... this.  Adjust.
12623         (copy_references): Rename to ...
12624         (copy_reference): ... this.  Adjust.
12625         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
12626         result into the valid table.
12627
12628 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12629
12630         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
12631         insn-config.h, insn-codes.h, recog.h, and optabs.h.
12632
12633 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12634
12635         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
12636
12637 2010-05-26  Richard Guenther  <rguenther@suse.de>
12638
12639         * opts.c (common_handle_option): Handle OPT_Ofast.
12640
12641 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
12642
12643         * diagnostic.c: Don't include opts.h.
12644         (permissive_error_option): Define.
12645         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
12646         for classify_diagnostic.  Don't use memset for
12647         classify_diagnostic.  Initialize new and recently added fields.
12648         (diagnostic_classify_diagnostic): Use context->n_opts instead of
12649         N_OPTS.
12650         (diagnostic_report_diagnostic): Pass context parameter to
12651         diagnostic_report_warnings_p.  Use option_enabled and option_name
12652         hooks from context.
12653         (emit_diagnostic): Use permissive_error_option.
12654         (permerror): Likewise.
12655         * diagnostic.h: Don't include options.h.
12656         (struct diagnostic_context): Add n_opts, opt_permissive,
12657         inhibit_warnings, warn_system_headers, option_enabled and
12658         option_name fields.  Change classify_diagnostic to a pointer.
12659         * opts-diagnostic.h: New file.
12660         * opts.c: Include opts-diagnostic.h.
12661         (common_handle_option): Set global_dc fields for -Wfatal-errors,
12662         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
12663         (option_name): New function.
12664         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
12665         (c_common_handle_option): Set global_dc->permissive for
12666         -fpermissive.
12667         * c-common.c (c_cpp_error): Save and restore
12668         global_dc->warn_system_headers, not variable warn_system_headers.
12669         * toplev.c: Include opts-diagnostic.h.
12670         (general_init): Update call to diagnostic_initialize.  Set
12671         global_dc->show_column, global_dc->option_enabled and
12672         global_dc->option_name.
12673         (process_options): Don't set global_dc fields here.
12674         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
12675         (diagnostic.o, opts.o, toplev.o): Update dependencies.
12676
12677 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
12678
12679         * config/picochip/picochip.md (movsi): Split a movsi from a
12680         const after reload.
12681
12682 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12683
12684         * ggc-zone.c: Update copyright year.
12685         (poison_region): Mark memory for Valgrind as undefined before
12686         memset () call and inaccessible afterwards.
12687         (ggc_pch_total_size): Change type of i to int.
12688
12689 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12690
12691         * ggc-common.c (ggc_free_overhead): Allow empty slot.
12692
12693 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12694
12695         * ggc-common.c: Update copyright year.
12696         (ggc_rlimit_bound): Remove prototype.  Compile only if
12697         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
12698         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
12699         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
12700         (ggc_min_heapsize_heuristic): Likewise.
12701
12702 2010-05-26  Richard Guenther  <rguenther@suse.de>
12703
12704         PR rtl-optimization/44164
12705         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
12706         no-common access-path disambiguation.
12707         (indirect_ref_may_alias_decl_p): Adjust.
12708         (indirect_refs_may_alias_p): Likewise.
12709         (refs_may_alias_p_1): Likewise.
12710
12711 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12712
12713         * c-typeck.c: Do not include expr.h.
12714
12715 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12716
12717         * rtl.h (decl_default_tls_model): Move prototype from here...
12718         * output.h: ...to here.
12719         * c-decl.c: Do not include rtl.h.
12720         * c-pragma.c: Likewise.
12721         * c-parser.c: Likewise.
12722         * c-gimplify.c: Likewise.  And also not hard-reg-set.
12723         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
12724         FIXME note for it.  Add a FIXME note for expr.h.
12725         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
12726         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
12727         defined.
12728
12729 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
12730
12731         PR target/44199
12732         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
12733         or total_size is larger than red zone size for non-V4 ABI, emit a
12734         stack_tie resp. frame_tie insn before stack pointer restore.
12735         * config/rs6000/rs6000.md (frame_tie): New insn.
12736
12737 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
12738
12739         * function.h (struct function): Add can_throw_non_call_exceptions bit.
12740         * lto-streamer-in.c (input_function): Stream it in.
12741         * lto-streamer-out.c (output_function): Stream it out.
12742         * function.c (allocate_struct_function): Set it.
12743         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
12744         for flag_non_call_exceptions.
12745         * cfgbuild.c (control_flow_insn_p): Likewise.
12746         (make_edges): Likewise.
12747         * cfgexpand.c (expand_stack_alignment): Likewise.
12748         * combine.c (distribute_notes): Likewise.
12749         * cse.c (cse_extended_basic_block): Likewise.
12750         * except.c (insn_could_throw_p): Likewise.
12751         * gcse.c (simple_mem): Likewise.
12752         * ipa-pure-const.c (check_call): Likewise.
12753         (check_stmt ): Likewise.
12754         * lower-subreg.c (lower-subreg.c): Likewise.
12755         * optabs.c (emit_libcall_block): Likewise.
12756         (prepare_cmp_insn): Likewise.
12757         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
12758         * postreload.c (rest_of_handle_postreload): Likewise.
12759         * reload1.c (reload_as_needed): Likewise.
12760         (emit_input_reload_insns): Likewise.
12761         (emit_output_reload_insns): Likewise.
12762         (fixup_abnormal_edges): Likewise.
12763         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
12764         * store-motion.c (find_moveable_store): Likewise.
12765         * tree-eh.c (stmt_could_throw_p): Likewise.
12766         (tree_could_throw_p): Likewise.
12767         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
12768         * config/arm/arm.c (arm_expand_prologue): Likewise.
12769         (thumb1_expand_prologue): Likewise.
12770         * config/rx/rx.md (cbranchsf4): Likewise.
12771         (cmpsf): Likewise.
12772         * config/s390/s390.c (s390_emit_prologue): Likewise.
12773         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
12774         (inline_forbidden_into_p): New predicate.
12775         (expand_call_inline): Use it to forbid inlining.
12776         (tree_can_inline_p): Likewise.
12777
12778 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
12779
12780         * config/i386/i386-c.c: Do not include rtl.h.
12781         * config/i386/t-i386: Update dependencies.
12782
12783 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
12784
12785         * attribs.c: Do not include rtl.h.
12786         * Makefile.in: Update dependencies.
12787
12788 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
12789
12790         * double-int.h (double_int_and): New.
12791         * combine.c (try_combine): Clean up, use double_int_* and
12792         immed_double_int_const functions.
12793
12794 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12795
12796         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
12797         stderr to /dev/null instead of grep -q.
12798         * configure: Regenerate.
12799
12800 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
12801
12802         * Makefile.in (EXCEPT_H): Fix typo.
12803
12804 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
12805
12806         * ira-build.c (update_conflict_hard_reg_costs): New.
12807         (ira_build): Call update_conflict_hard_reg_costs.
12808
12809 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
12810
12811         PR debug/41371
12812         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
12813         ENABLE_CHECKING.
12814         (intersect_loc_chains): Walk the s2var's loc_chain together
12815         with s1node chain as long as the locations are equal, don't
12816         call find_loc_in_1pdv in that case.
12817
12818         PR debug/42801
12819         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
12820         (copy_bind_expr): ... instead of here.
12821         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
12822         if the block hasn't been remapped.
12823         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
12824         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
12825
12826 2010-05-25  Richard Guenther  <rguenther@suse.de>
12827
12828         PR middle-end/44069
12829         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
12830         out-of-bounds array accesses.
12831
12832 2010-05-25  Richard Guenther  <rguenther@suse.de>
12833
12834         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
12835         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
12836         (run_gcc): Re-organize to make cleanup easier.
12837
12838 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12839
12840         * config/s390/s390.c (optimization_options): Fix and move the
12841         flag_prefetch_loop_arrays override ...
12842         (override_options): ... here.
12843
12844 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
12845
12846         * diagnostic.c: Don't include plugin.h.
12847         (diagnostic_report_diagnostic): Don't handle plugins specially
12848         here.  Pass context to internal_error callback.
12849         * diagnostic.h (struct diagnostic_context): Add context parameter
12850         to internal_error callback.
12851         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
12852         * plugin.h (struct diagnostic_context): Declare.
12853         (warn_if_plugins, plugins_internal_error_function): Declare.
12854         * toplev.c (general_init): Set global_dc->internal_error.
12855         * Makefile.in (diagnostic.o): Update dependencies.
12856
12857 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
12858
12859         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
12860         * config/rs6000/t-darwin64: New.
12861         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
12862         build crt2.
12863
12864 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
12865
12866         PR 44203
12867         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
12868         match the original (and intended) behaviour before r159557.  This
12869         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
12870         in two ways.
12871
12872 2010-05-25  Richard Guenther  <rguenther@suse.de>
12873
12874         * doc/invoke.texi: Document -Ofast.
12875         * target.h (struct gcc_target): Add handle_ofast.
12876         * target-def.h (TARGET_HANDLE_OFAST): Add.
12877         (TARGET_INITIALIZER): Adjust.
12878         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
12879         * common.opt (Ofast): Add.
12880
12881 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
12882
12883         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
12884         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
12885
12886 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
12887
12888         PR target/43610
12889         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
12890         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
12891         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
12892         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
12893
12894 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
12895
12896         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
12897         DW_OP_minus with negated offset instead of DW_OP_plus.
12898         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
12899
12900 2010-05-25  Wei Guozhi  <carrot@google.com>
12901
12902         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
12903         tst instruction and a new alternative.
12904         * config/arm/constraints.md (Pu): New constraint.
12905
12906 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
12907
12908         * function.c (assign_stack_local_1): Initialize variable
12909         to avoid warning when bootstrapping at -O3.
12910
12911 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
12912
12913         * configure.ac (all_lang_makefiles): Remove everything related to it.
12914         * configure: Regenerate.
12915         * Makefile.in: Fix reference to ada Make-lang.in.
12916         Remove support for LANG_MAKEFILES.
12917
12918 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
12919             Sandra Loosemore  <sandra@codesourcery.com>
12920
12921         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
12922         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
12923         description.  Add arm_neon_fp16_ok.
12924         (Add Options): Add arm_neon and arm_neon_fp16.
12925
12926 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
12927
12928         * diagnostic.c: Don't include flags.h.
12929         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
12930         context parameters.  Check flags in the context passed as a parameter.
12931         (diagnostic_build_prefix): Add context parameter.  Check
12932         show_column flag in context.
12933         (diagnostic_action_after_output): Check fatal_errors flag in context.
12934         (diagnostic_report_current_module): Check show_column flag in context.
12935         (default_diagnostic_starter): Update call to
12936         diagnostic_build_prefix.
12937         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
12938         (emit_diagnostic): Pass context to permissive_error_kind.
12939         (permerror): Pass context to permissive_error_kind.
12940         * diagnostic.h (struct diagnostic_context): Add show_column,
12941         pedantic_errors, permissive and fatal_errors fields.
12942         (diagnostic_build_prefix): Update prototype.
12943         * langhooks.c
12944         * toplev.c (process_options): Set flags in global_dc from
12945         flag_show_column, flag_pedantic_errors, flag_permissive,
12946         flag_fatal_errors.
12947         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
12948         to diagnostic_build_prefix.
12949         * Makefile.in (diagnostic.o): Update dependencies.
12950
12951 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
12952
12953         * config/i386/ia32intrin.h (__crc32q): Define only if
12954         __SSE4_2__ is defined.
12955
12956 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
12957
12958         PR target/44132
12959         PR middle-end/43602
12960         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
12961         DECL_VISIBILITY_SPECIFIED.
12962         (emutls_decl): Set DECL_PRESERVE_P and copy
12963         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
12964         (emutls_finalize_control_var): New callback.
12965         (emutls_finish): Finalize emutls control variables.
12966         * toplev.c (compile_file): Move the call to emutls_finish ()
12967         before varpool_assemble_pending_decls ().
12968
12969 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
12970
12971         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
12972         added to the preprocessor condition.
12973
12974 2010-05-24  Paul Brook  <paul@codesourcery.com>
12975
12976         * gengtype-lex.l: Add HARD_REG_SET.
12977         * expr.c (expand_expr_real_1): Record writes to hard registers.
12978         * function.c (rtl_data): Add asm_clobbers.
12979         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
12980         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
12981         Use crtl->asm_clobbers.
12982
12983 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12984
12985         * doc/makefile.texi (Makefile): Mention stages 'profile'
12986         and 'feedback' for profiledbootstrap.
12987
12988 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
12989
12990         PR target/44245
12991         * config/i386/i386.c (def_builtin): Properly check
12992         OPTION_MASK_ISA_64BIT.
12993
12994 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
12995
12996         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
12997         typedefs with different but compatible types.  Allow duplicate
12998         typedefs with the same type except for pedantic non-C1X, but give
12999         warning for variably modified types.
13000         * c-typeck.c (tagged_types_tu_compatible_p,
13001         function_types_compatible_p, type_lists_compatible_p,
13002         comptypes_internal): Add parameter different_types_p; set
13003         *different_types_p for different but compatible types.  All
13004         callers changed.
13005         (comptypes_check_different_types): New.
13006         * c-tree.h (comptypes_check_different_types): Declare.
13007
13008 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
13009
13010         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
13011         * jump.c: Include basic-block.h.
13012         * profile.c: Likewise.
13013         * tree-profile.c: Likewise.
13014         * coverage.c: Likewise.
13015         * basic-block.h (optimize_function_for_size_p): Move to function.h.
13016         (optimize_function_for_speed_p): Likewise.
13017         * function.h (optimize_function_for_size_p,
13018         optimize_function_for_speed_p): Moved here from basic-block.h.
13019         * Makefile.in: Update dependencies.
13020
13021 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13022
13023         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
13024         before calling make; allow override through $MAKE.
13025         * doc/invoke.texi (Optimize Options): Document override.
13026
13027 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
13028
13029         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
13030         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13031         (rs6000_mode_dependent_address_ptr): Make static.
13032         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13033         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
13034         Remove.
13035
13036 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
13037
13038         PR target/43869
13039         * config/i386/i386.c: Make sure that the correct regparm is passed.
13040
13041 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
13042
13043         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
13044         * sbitmap.c: ...to here to internalize sbitmap element access.
13045         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
13046         Explain why basic-block.h is included.
13047         * function.h: Include tm.h for CUMULATIVE_ARGS.
13048         * Makefile.in: Update dependencies.
13049
13050 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
13051
13052         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
13053         New core types.
13054         * sbitmap.h (struct sbitmap_def): Do not typedef here.
13055         * sbitmap.c: Include sbitmap.h.
13056         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
13057         hard-reg-set.h.  Split everything related to regsets out from here...
13058         * regset.h: ...to here.  New file.
13059         * df.h: Include regset.h and sbitmap.h.
13060         * tree-flow.h: Likewise.
13061         * cfgloop.h: Likewise.
13062         * except.h: Do not include sbitmap.h.  Include hashtab.h.
13063         * cgraph.h: Include vec.h and function.h.
13064         * reload.h (struct insn_chain): Change types of live_throughout
13065         and dead_or_set from regset_head to bitmap_head.
13066         (compute_use_by_pseudos): Be defined also if regset.h is not included.
13067         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
13068         spilled_regs from regset_head to bitmap_head to avoid dependency
13069         in regset.h.
13070         * sel-sched-ir.h: Include regset.h.
13071         * reload.c: Include df.h before reload.h.
13072         * caller-save.c: Likewise.
13073         * reload1.c: Likewise.
13074         * ira.c: Likewise.
13075         (mark_elimination): Update type of r to bitmap, consistent with
13076         DF_LR_IN.
13077         * dominance.c: Include bitmap.h.
13078         * modulo-sched.c: Include df.h.
13079         * cfganal.c: Include bitmap.h and sbitmap.h.
13080         * cfgbuild.c: Include sbitmap.h.
13081         * lcm.c: Include sbitmap.h.
13082         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
13083         * domwalk.c: Include sbitmap.h, exclude ggc.h.
13084         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
13085         * cselib.c: Include bitmap.h.
13086         * tree-optimize.c: Include regset.h.
13087         * stmt.c: Include bitmap.h.
13088         * Makefile.in: Update dependencies.
13089
13090 2010-05-22  Jan Hubicka  <jh@suse.cz>
13091
13092         * cgraph.h (struct varpool_node): Add same_comdat_group.
13093         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
13094         pointer.
13095         (output_varpool): Update call of lto_output_varpool_node.
13096         (input_varpool): Read same_comdat_group pointer.
13097         (input_varpool_1): Fixup same_comdat_group pointer.
13098         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
13099         group is needed, all are.
13100         * varpool.c (varpool_remove_node): Remove node from same comdat group
13101         linklist too.
13102         (varpool_analyze_pending_decls): Walk same comdat groups.
13103
13104 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
13105
13106         * rtl.h (union rtunion_def): Remove rt_bit member.
13107         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
13108         * print-rtl (print_rtx): Do not print the member.
13109         * gengtype.c (adjust_field_rtx_def): Do not handle it.
13110         * gengenrtl.c (type_from_format): Likewise.
13111         (accessor_from_format): Likewise.
13112
13113 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
13114
13115         * dbgcnt.c: Include toplev.h instead of errors.h.
13116         * ira-emit.c: Don't include errors.h.
13117         * ira.c: Include toplev.h instead of errors.h.
13118         * lto-compress.c: Include toplev.h instead of errors.h.
13119         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
13120         ira.o, dbgcnt.o): Update dependencies.
13121
13122 2010-05-22  Richard Guenther  <rguenther@suse.de>
13123
13124         * gimple.c (gimple_types_compatible_p): Check type qualifications
13125         before merging pointer to complete and pointer to incomplete type.
13126         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
13127         we use our own resolution algorithm.  The gold linker plugin
13128         doesn't do the job we want it to do here.
13129
13130 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
13131
13132         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13133         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13134         (sparc_mode_dependent_address_p): New function.
13135
13136 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
13137
13138         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
13139
13140         * timevar.c: Do not include any core headers.
13141         (timevar_print): De-i18n-ize.
13142         (print_time): Likewise.
13143         * timevar.h (timevar_push, timevar_pop): Make inline functions.
13144
13145 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
13146
13147         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
13148         langhooks-def.h.
13149         (diagnostic_initialize): Initialize x_data not last_function.
13150         (diagnostic_report_current_function): Move to tree-diagnostic.c.
13151         (default_diagnostic_starter): Call
13152         diagnostic_report_current_module not
13153         diagnostic_report_current_function.
13154         (diagnostic_report_diagnostic): Initialize x_data not
13155         abstract_origin.
13156         (verbatim): Likewise.
13157         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
13158         x_data.
13159         (struct diagnostic_context): Change last_function to x_data.
13160         (diagnostic_auxiliary_data): Replace with
13161         diagnostic_context_auxiliary_data and
13162         diagnostic_info_auxiliary_data.
13163         (diagnostic_last_function_changed, diagnostic_set_last_function,
13164         diagnostic_report_current_function): Move to tree-diagnostic.h.
13165         (print_declaration, dump_generic_node, print_generic_stmt,
13166         print_generic_stmt_indented, print_generic_expr,
13167         print_generic_decl, debug_c_tree, dump_omp_clauses,
13168         print_call_name, debug_generic_expr, debug_generic_stmt,
13169         debug_tree_chain, default_tree_printer): Move to
13170         tree-pretty-print.h.
13171         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
13172         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
13173         gimple-pretty-print.h.
13174         * pretty-print.c: Don't include tree.h
13175         (pp_base_format): Don't handle %K here.
13176         (pp_base_tree_identifier): Move to tree-pretty-print.c.
13177         * pretty-print.h (text_info): Change abstract_origin to x_data.
13178         (pp_tree_identifier, pp_unsupported_tree,
13179         pp_base_tree_identifier): Move to tree-pretty-print.h.
13180         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
13181         tree-pretty-print.h: New files.
13182         * tree-pretty-print.c: Include tree-pretty-print.h.
13183         (percent_K_format): New.  Moved from pretty-print.c.
13184         (pp_base_tree_identifier): Move from pretty-print.c.
13185         * c-objc-common.c: Include tree-pretty-print.h.
13186         (c_tree_printer): Handle %K here.
13187         * langhooks.c: Include tree-diagnostic.h.
13188         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
13189         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
13190         (default_tree_printer): Handle %K using percent_K_format.
13191         (general_init): Use default_tree_diagnostic_starter.
13192         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
13193         (free_lang_data): Use default_tree_diagnostic_starter.
13194         * c-pretty-print.c: Include tree-pretty-print.h.
13195         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13196         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13197         * dwarf2out.c: Include tree-pretty-print.h.
13198         * except.c: Include tree-pretty-print.h.
13199         * gimple-pretty-print.c: Include tree-pretty-print.h and
13200         gimple-pretty-print.h.
13201         * gimplify.c: Include tree-pretty-print.h.
13202         * graphite-poly.c: Include tree-pretty-print.h and
13203         gimple-pretty-print.h.
13204         * ipa-cp.c: Include tree-pretty-print.h.
13205         * ipa-inline.c: Include gimple-pretty-print.h.
13206         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13207         * ipa-pure-const.c: Include gimple-pretty-print.h.
13208         * ipa-struct-reorg.c: Include tree-pretty-print.h and
13209         gimple-pretty-print.h.
13210         * ipa-type-escape.c: Include tree-pretty-print.h.
13211         * print-rtl.c: Include tree-pretty-print.h.
13212         * print-tree.c: Include gimple-pretty-print.h.
13213         * sese.c: Include tree-pretty-print.h.
13214         * tree-affine.c: Include tree-pretty-print.h.
13215         * tree-browser.c: Include tree-pretty-print.h.
13216         * tree-call-cdce.c: Include gimple-pretty-print.h.
13217         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13218         * tree-chrec.c: Include tree-pretty-print.h.
13219         * tree-data-ref.c: Include tree-pretty-print.h and
13220         gimple-pretty-print.h.
13221         * tree-dfa.c: Include tree-pretty-print.h.
13222         * tree-if-conv.c: Include tree-pretty-print.h and
13223         gimple-pretty-print.h.
13224         * tree-inline.c: Include tree-pretty-print.h.
13225         * tree-into-ssa.c: Include tree-pretty-print.h and
13226         gimple-pretty-print.h.
13227         * tree-nrv.c: Include tree-pretty-print.h.
13228         * tree-object-size.c: Include tree-pretty-print.h and
13229         gimple-pretty-print.h.
13230         * tree-outof-ssa.c: Include tree-pretty-print.h and
13231         gimple-pretty-print.h.
13232         * tree-parloops.c: Include tree-pretty-print.h and
13233         gimple-pretty-print.h.
13234         * tree-predcom.c: Include tree-pretty-print.h and
13235         gimple-pretty-print.h.
13236         * tree-scalar-evolution.c: Include tree-pretty-print.h and
13237         gimple-pretty-print.h.
13238         * tree-sra.c: Include tree-pretty-print.h.
13239         * tree-ssa-address.c: Include tree-pretty-print.h.
13240         * tree-ssa-alias.c: Include tree-pretty-print.h.
13241         * tree-ssa-ccp.c: Include tree-pretty-print.h and
13242         gimple-pretty-print.h.
13243         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
13244         * tree-ssa-copy.c: Include tree-pretty-print.h and
13245         gimple-pretty-print.h.
13246         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
13247         * tree-ssa-dce.c: Include tree-pretty-print.h and
13248         gimple-pretty-print.h.
13249         * tree-ssa-dom.c: Include tree-pretty-print.h and
13250         gimple-pretty-print.h.
13251         * tree-ssa-dse.c: Include gimple-pretty-print.h.
13252         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
13253         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
13254         * tree-ssa-live.c: Include tree-pretty-print.h and
13255         gimple-pretty-print.h.
13256         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
13257         gimple-pretty-print.h.
13258         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
13259         gimple-pretty-print.h.
13260         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
13261         gimple-pretty-print.h.
13262         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
13263         gimple-pretty-print.h.
13264         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
13265         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
13266         * tree-ssa-operands.c: Include tree-pretty-print.h and
13267         gimple-pretty-print.h.
13268         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
13269         gimple-pretty-print.h.
13270         * tree-ssa-pre.c: Include tree-pretty-print.h and
13271         gimple-pretty-print.h.
13272         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
13273         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
13274         gimple-pretty-print.h.
13275         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
13276         gimple-pretty-print.h.
13277         * tree-ssa-sink.c: Include gimple-pretty-print.h.
13278         * tree-ssa-ter.c: Include tree-pretty-print.h and
13279         gimple-pretty-print.h.
13280         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
13281         * tree-ssa.c: Include tree-pretty-print.h and
13282         gimple-pretty-print.h.
13283         * tree-stdarg.c: Include gimple-pretty-print.h.
13284         * tree-switch-conversion.c: Include gimple-pretty-print.h.
13285         * tree-tailcall.c: Include tree-pretty-print.h and
13286         gimple-pretty-print.h.
13287         * tree-vect-data-refs.c: Include tree-pretty-print.h and
13288         gimple-pretty-print.h.
13289         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
13290         gimple-pretty-print.h.
13291         * tree-vect-loop.c: Include tree-pretty-print.h and
13292         gimple-pretty-print.h.
13293         * tree-vect-patterns.c: Include gimple-pretty-print.h.
13294         * tree-vect-slp.c: Include tree-pretty-print.h and
13295         gimple-pretty-print.h.
13296         * tree-vect-stmts.c: Include tree-pretty-print.h and
13297         gimple-pretty-print.h.
13298         * tree-vectorizer.c: Include tree-pretty-print.h.
13299         * tree-vrp.c: Include tree-pretty-print.h and
13300         gimple-pretty-print.h.
13301         * value-prof.c: Include tree-pretty-print.h and
13302         gimple-pretty-print.h.
13303         * var-tracking.c: Include tree-pretty-print.h.
13304         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
13305         (tree-diagnostic.o): New dependencies.
13306         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
13307         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
13308         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
13309         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
13310         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
13311         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
13312         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
13313         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
13314         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
13315         tree-ssa-address.o, tree-ssa-loop-niter.o,
13316         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
13317         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
13318         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
13319         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
13320         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
13321         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
13322         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
13323         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
13324         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
13325         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
13326         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
13327         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
13328         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
13329         tree-switch-conversion.o, var-tracking.o, value-prof.o,
13330         cfgexpand.o, pretty-print.o): Update dependencies.
13331
13332 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
13333
13334         * tree-ssa-structalias.c: Remove tm_p.h from include.
13335
13336 2010-05-21  Jeff Law  <law@redhat.com>
13337
13338         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
13339
13340 2010-05-21  Jason Merrill  <jason@redhat.com>
13341
13342         * tree-eh.c (cleanup_is_dead_in): New.
13343         (lower_try_finally): Don't generate a dead cleanup region.
13344         (lower_cleanup): Likewise.
13345
13346 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
13347
13348         PR debug/44223
13349         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
13350         unchain each use from the cyclic next_regno_use chain first.
13351
13352 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
13353
13354         * real: Do not include gmp.h, mpfr.h, and mpc.h.
13355         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
13356         (real_value_negate, real_value_abs): New prototypes.
13357         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
13358         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
13359         new include file for interface between MPFR and REAL_VALUE_TYPE.
13360         * real.c: Include realmpfr.h.
13361         (real_arithmetic2): Remove legacy function.
13362         (real_value_negate): New.
13363         (real_value_abs): New.
13364         (mfpr_from_real, real_from_mpfr): Move from here...
13365         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
13366         * builtins.c: Include realmpfr.h.
13367         * fold-const.c: Include realmpfr.h.
13368         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
13369         (fold_negate_const): Likewise.
13370         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
13371         * toplev.c: Include realmpfr.h.
13372         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
13373         and real_value_negate.
13374         * fixed-value.c (check_real_for_fixed_mode): Likewise.
13375         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
13376         (vfp3_const_double_index): Likewise.
13377         (arm_print_operand): Likewise.
13378         * Makefile.in: Update dependencies.
13379
13380 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13381
13382         * config/s390/s390.c (override_options): Increase the default
13383         of max-completely-peel-times.
13384
13385 2010-05-21  Julian Brown  <julian@codesourcery.com>
13386             Mark Mitchell  <mark@codesourcery.com>
13387
13388         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
13389         sibling calls for Thumb-1.
13390         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
13391         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
13392         Thumb-2.
13393         (*call_insn, *call_value_insn): Don't use for Thumb-2.
13394         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
13395         for Thumb-2.
13396         (return): New expander.
13397         (*arm_return): New name for ARM return insn.
13398         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
13399
13400 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
13401
13402         * config.gcc (sparc64-*-rtems*): New target.
13403
13404 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
13405
13406         * tree.c (build_function_decl_skip_args): Fix grammar.
13407         (build_function_type_list_1): Fix typos, adjust formatting.
13408
13409 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
13410
13411         * tree.h: Include real.h and fixed-value.h as basic datatypes.
13412         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
13413         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
13414         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
13415         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
13416         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
13417         tree-pretty-print.c, tree-loop-distribution.c,
13418         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
13419         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
13420         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
13421         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
13422         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
13423         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
13424         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
13425         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
13426         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
13427         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
13428         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
13429         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
13430         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
13431         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
13432         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
13433         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
13434         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
13435         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
13436         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
13437         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
13438         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
13439         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
13440         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
13441         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
13442         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
13443         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
13444         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
13445         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
13446         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
13447         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
13448         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
13449         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
13450         config/score/score7.c, config/score/score.c, config/arm/arm.c,
13451         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
13452         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
13453         config/bfin/bfin.c: Clean up redundant includes.
13454         * Makefile.in: Update accordingly.
13455
13456 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
13457
13458         PR middle-end/44204
13459         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
13460         statement has no arguments.
13461
13462 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
13463
13464         PR/44139
13465         * varasm.c (emutls_decl): Merge attributes to new decl.
13466
13467 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
13468
13469         PR middle-end/44101
13470         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
13471         around the uniquized constructor if its type requires a conversion.
13472
13473 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
13474
13475         PR debug/44205
13476         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
13477         at -O0 goto_locus of any of the incoming edges differs from
13478         goto_locus of outgoing edge, or gimple_location of any of the
13479         labels differs.
13480
13481 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
13482
13483         * ira.c (ira_non_ordered_class_hard_regs): Define.
13484         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
13485         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
13486         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
13487         cost of unaligned hard regs when allocating multi-reg pseudos.
13488
13489 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
13490
13491         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
13492         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
13493         for TARGET_NO_FLOAT.
13494         * config/mips/mips.c (mips_file_start): Expand conditional expression
13495         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
13496         (mips_override_options): Move -mno-float override -msoft-float and
13497         -mhard-float.
13498         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
13499         Condition(TARGET_SUPPORTS_NO_FLOAT).
13500         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
13501         __mips_no_float here.
13502         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
13503         (TARGET_SUPPORTS_NO_FLOAT): Define.
13504         * config/mips/sdemtk.opt: Delete.
13505
13506 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
13507
13508         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
13509
13510 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
13511
13512         PR target/43733
13513         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
13514         * configure: Regenerate.
13515         * config.in: Regenerate.
13516         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
13517         instead of sahf only for 64bit targets.
13518
13519 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
13520
13521         PR debug/44178
13522         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
13523         setup_ref_regs for DEBUG_INSNs.
13524
13525 2010-05-20  Jan Hubicka  <jh@suse.cz>
13526
13527         PR middle-end/44197
13528         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
13529
13530 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
13531
13532         PR bootstrap/43870
13533         * df-scan.c (df_ref_compare): Stabilize sort.
13534
13535 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
13536
13537         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
13538         argument.  Don't use DW_OP_piece if offset is non-zero,
13539         put offset into second DW_OP_bit_piece argument.
13540         (dw_sra_loc_expr): Adjust callers.  For memory expressions
13541         compute offset.
13542
13543 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
13544
13545         PR target/44202
13546         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
13547         settings for 16-bit-constant "addo" alternative.
13548
13549 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
13550
13551         * config/mips/mips-dsp.md (add<DSPV:mode>3,
13552         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
13553
13554         PR target/43764
13555         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
13556         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
13557         Use it.
13558
13559 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
13560
13561         * diagnostic.c (FLOAT, FFS): Don't undefine.
13562         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
13563         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
13564         include ordering.
13565
13566 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
13567
13568         * combine.c (propagate_for_debug): Call make_compound_operation
13569         on the source value.
13570         (try_combine): When implementing a split chosen by find_split_point,
13571         either copy i2src or set it to null.  Assert that i2src is not null
13572         before substituting into CALL_INSN_FUNCTION_USAGE.
13573
13574 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
13575
13576         * double-int.h (double_int_ior): New function.
13577         * tree.h (build_int_cst_wide_type): Remove.
13578         * tree.c (build_int_cst_wide_type): Remove.
13579         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
13580         of build_int_cst_wide_type.
13581         * stor-layout.c (set_sizetype): (Ditto.).
13582         * dojump.c (do_jump): Use build_int_cstu instead of
13583         build_int_cst_wide_type.
13584
13585 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
13586
13587         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
13588         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
13589         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
13590         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
13591         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
13592         propagate the 'data' argument to copy_tree_r.
13593         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
13594         Propagate 'data' argument to walk_tree.
13595         (copy_if_shared): New function.
13596         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
13597         (unmark_visited): New function.
13598         (unshare_body): Call copy_if_shared instead of doing it manually.
13599         (unvisit_body): Call unmark_visited instead of doing it manually.
13600
13601 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
13602
13603         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
13604         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
13605         * hooks.c: Likewise.
13606         * target-def.h (TARGET_FOLD_BUILTIN): Define to
13607         hook_tree_tree_int_treep_bool_null.
13608         * target.h (struct gcc_target): Update signature of fold_builtin
13609         field.
13610         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
13611         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
13612         instead of the call expression.
13613         (fold_builtin_call_array): Pass n and argarray directly.
13614         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
13615         consing a list.
13616         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
13617         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
13618         `i' and use it in place of `arity'.
13619         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
13620         Dereference `args' directly.
13621         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
13622
13623 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13624
13625         * doc/sourcebuild.texi (Effective-Target Keywords): Document
13626         3dnow, sse3, sse2.
13627         (Directives): Document optional dg-require-effective-target
13628         selector.
13629
13630 2010-05-19  Richard Guenther  <rguenther@suse.de>
13631
13632         PR lto/44196
13633         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
13634
13635 2010-05-19  Richard Guenther  <rguenther@suse.de>
13636
13637         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
13638         * common.opt (fwhopr=): New.
13639         * opts.c (common_handle_option): Handle OPT_fwhopr.
13640         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
13641         * collect2.c (main): Match -fwhopr*.
13642         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
13643         Execute ltrans stage in parallel when jobs is bigger than 1.
13644
13645 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13646
13647         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
13648         pentiumpro on Solaris 8/x86 with Sun as.
13649         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
13650         hidden alias bug.
13651         (gcc_cv_as_ix86_quad): Check for .quad directive.
13652         * configure: Regenerate.
13653         * config.in: Regenerate.
13654         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
13655
13656 2010-05-19  Martin Jambor  <mjambor@suse.cz>
13657
13658         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
13659         also for indirect edges.  Actual printing moved...
13660         (ipa_print_node_jump_functions_for_edge): ...here.
13661         (ipa_compute_jump_functions): Renamed to
13662         ipa_compute_jump_functions_for_edge and made static.
13663         (ipa_compute_jump_functions): New function.
13664         (make_edge_direct_to_target): Check if the number of arguments on
13665         the newly direct edge is the same as the number of parametrs of
13666         the callee.
13667         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
13668         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
13669         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
13670         analysis functions unconditionally, call the new
13671         ipa_analyze_params_uses on the node instead of every edge.
13672
13673 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
13674
13675         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
13676         to tree.
13677         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
13678         also checks for a constant int vs.  non-constant but
13679         loop-invariant steps.
13680         (find_or_create_group): Change the sort algorithm to only consider
13681         steps that are constant ints.
13682         (idx_analyze_ref): Adopt code to handle a tree instead of a
13683         HOST_WIDE_INT for step.
13684         (gather_memory_references_ref): Handle tree instead of int and be
13685         prepared to see a NULL_TREE.
13686         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
13687         prefetches if the step cannot be calculated at compile time.
13688         (issue_prefetch_ref): Issue prefetches for non-constant but
13689         loop-invariant steps.
13690
13691 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
13692
13693         Revert:
13694         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
13695
13696         * tree.h (build_call_list): Remove.
13697         * tree.c (build_call_list): Remove.
13698
13699 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
13700
13701         * tree.h (build_call_list): Remove.
13702         * tree.c (build_call_list): Remove.
13703
13704 2010-05-18  Jan Hubicka  <jh@suse.cz>
13705
13706         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
13707
13708 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
13709
13710         PR rtl-optimization/43332
13711         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
13712
13713 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
13714
13715         * tree.h (build_int_cstu): Implement as static inline.
13716         * tree.c (build_int_cstu): Remove function.
13717         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
13718         sign extended.
13719
13720 2010-05-18  Richard Guenther  <rguenther@suse.de>
13721
13722         PR lto/44143
13723         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
13724         (debug): Initialize from -save-temps.
13725         (collect_execute): Print command-line when verbose.
13726         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
13727         for ltrans invocation.  Produce -dumpbase flag again.
13728         (process_args): Remove.
13729         (main): Simplify.
13730         * collect2.c (maybe_run_lto_and_relink): Only pass object
13731         files to lto-wrapper.
13732         * gcc.c (LINK_COMMAND_SPEC): Likewise.
13733
13734 2010-05-18  Jan Hubicka  <jh@suse.cz>
13735
13736         * opts.c (decode_options): Do not disable whopr at ipa_cp.
13737         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
13738
13739 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
13740
13741         PR lto/44184
13742         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
13743         in a GIMPLE_ASM.
13744         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
13745         in a GIMPLE_ASM.
13746
13747 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
13748
13749         PR debug/41371
13750         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
13751         rtx_equal_p inline.
13752
13753 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
13754
13755         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
13756         lto-macho as lto_binary_reader.
13757
13758         * darwin.c (darwin_asm_named_section): Do not add assembler comment
13759         after .section directive; just print it before the directive instead.
13760
13761 2010-05-17  Jan Hubicka  <jh@suse.cz>
13762
13763         * cgraph.c (cgraph_create_virtual_clone): Only check
13764         versionable_function_p when not in wpa and checking is enabled.
13765         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
13766         there are no more functions to materialize.
13767
13768 2010-05-17  Jan Hubicka  <jh@suse.cz>
13769
13770         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
13771         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
13772         New functions.
13773         (output_cgraph): Call output_cgraph_opt_summary.
13774         (input_cgrpah): Call input_cgraph_opt_summary.
13775         (output_cgraph_opt_summary_p, output_node_opt_summary,
13776         input_node_opt_summary, input_cgraph_opt_section): New functions.
13777         * lto-section-in.c (lto_section_name): Add cgraphopt.
13778         * tree-inline.c (tree_function_versioning): Handle parm_num.
13779         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
13780         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
13781
13782 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
13783
13784         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
13785         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
13786         the insn to prefetch ratio heuristic to loops with known trip count.
13787
13788 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
13789
13790         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
13791         (schedule_prefetches): Do not generate a prefetch if the unroll factor
13792         is far from what is required by the prefetch.
13793
13794 2010-05-17  Jan Hubicka  <jh@suse.cz>
13795
13796         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
13797         (ipcp_estimate_growth): Likewise.
13798         (ipcp_const_param_count): Likewise.
13799         (ipcp_insert_stage): Likewise.
13800         * ipa-prop.c (visit_load_for_mod_analysis): New function.
13801         (visit_store_addr_for_mod_analysis): Set used flag.
13802         (ipa_detect_param_modifications): Set used flag for SSE params;
13803         update use of walk_stmt_load_store_addr_ops.
13804         (ipa_print_node_params): Print used flag.
13805         (ipa_write_node_info): Stream used flag.
13806         (ipa_read_node_info): Likewise.
13807         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
13808         (ipa_is_param_used): New function.
13809         (lto_ipa_fixup_call_notes): Remove unused declaration.
13810
13811 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13812
13813         PR target/44074
13814         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
13815         * configure: Regenerate.
13816         * config.in: Regenerate.
13817         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
13818         !HAVE_AS_IX86_REP_LOCK_PREFIX.
13819         Don't emit whitespace.
13820         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
13821         (*rep_movsi): Likewise.
13822         (*rep_movsi_rex64): Likewise.
13823         (*rep_movqi): Likewise.
13824         (*rep_movqi_rex64): Likewise.
13825         (*rep_stosdi_rex64): Likewise.
13826         (*rep_stossi): Likewise.
13827         (*rep_stossi_rex64): Likewise.
13828         (*rep_stosqi): Likewise.
13829         (*rep_stosqi_rex64): Likewise.
13830         (*cmpstrnqi_nz_1): Use {%;} after repz.
13831         (*cmpstrnqi_nz_rex_1): Likewise.
13832         (*cmpstrnqi_1): Likewise.
13833         (*cmpstrnqi_rex_1): Likewise.
13834         (*strlenqi_1): Use {%;} after repnz.
13835         (*strlenqi_rex_1): Likewise.
13836         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
13837         (*sync_compare_and_swap<mode>): Likewise.
13838         (sync_double_compare_and_swap<mode>): Likewise.
13839         (*sync_double_compare_and_swapdi_pic): Likewise.
13840         (sync_old_add<mode>): Likewise.
13841         (sync_add<mode>): Likewise.
13842         (sync_sub<mode>): Likewise.
13843         (sync_<code><mode>): Likewise.
13844
13845 2010-05-17  Martin Jambor  <mjambor@suse.cz>
13846
13847         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
13848         otr_token and polymorphic.
13849         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
13850         (cgraph_clone_edge): Copy the above fields.
13851         * tree.c (get_binfo_at_offset): New function.
13852         * tree.h (get_binfo_at_offset): Declare.
13853         * ipa-prop.h (enum jump_func_type): Added known_type jump function
13854         type, reordered items, updated comments.
13855         (union jump_func_value): Added base_type field, reordered fields.
13856         (enum ipa_lattice_type): Moved down in the file.
13857         (struct ipa_param_descriptor): New field polymorphic.
13858         (ipa_is_param_polymorphic): New function.
13859         * ipa-prop.c: Include gimple.h and gimple-fold.h.
13860         (ipa_print_node_jump_functions): Print known type jump functions.
13861         (compute_complex_pass_through): Renamed to...
13862         (compute_complex_assign_jump_func): this.
13863         (compute_complex_ancestor_jump_func): New function.
13864         (compute_known_type_jump_func): Likewise.
13865         (compute_scalar_jump_functions): Create known type and complex ancestor
13866         jump functions.
13867         (ipa_note_param_call): New parameter polymorphic, set the corresponding
13868         flag in the call note accordingly.
13869         (ipa_analyze_call_uses): Renamed to...
13870         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
13871         variable var only in the block where it is used.
13872         (ipa_analyze_virtual_call_uses): New function.
13873         (ipa_analyze_call_uses): Likewise.
13874         (combine_known_type_and_ancestor_jfs): Likewise.
13875         (update_jump_functions_after_inlining): Implemented handling of a
13876         number of new jump function types combination.
13877         (print_edge_addition_message): Removed.
13878         (make_edge_direct_to_target): New function.
13879         (try_make_edge_direct_simple_call): Likewise.
13880         (try_make_edge_direct_virtual_call): Likewise.
13881         (update_call_notes_after_inlining): Renamed to...
13882         (update_indirect_edges_after_inlining): this.  Moved edge creation for
13883         indirect calls to try_make_edge_direct_simple_call, also calls
13884         try_make_edge_direct_virtual_call for virtual calls.
13885         (ipa_print_node_params): Changed the header message.
13886         (ipa_write_jump_function): Stream also known type jump functions.
13887         (ipa_read_jump_function): Likewise.
13888         (ipa_write_indirect_edge_info): Stream new fields in
13889         cgraph_indirect_call_info.
13890         (ipa_read_indirect_edge_info): Likewise.
13891         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
13892         GIMPLE_FOLD_H.
13893
13894 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13895
13896         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
13897
13898 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
13899
13900         * tree.h (CALL_EXPR_ARGS): Delete.
13901         (call_expr_arglist): Delete.
13902         * tree.c (call_expr_arglist): Delete.
13903         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
13904         targetm.fold_builtin.
13905         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
13906         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
13907         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
13908         arglist parameter.  Use CALL_EXPR_ARG.
13909         (picochip_expand_builtin_3op): Likewise.
13910         (picochip_expand_builtin_2opvoid): Likewise.
13911         (picochip_expand_array_get): Likewise.
13912         (picochip_expand_array_put): Likewise.
13913         (picochip_expand_array_testport): Likewise.
13914         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
13915         rather than arglist.
13916         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
13917         CALL_EXPR_ARGS.
13918         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
13919         than TREE_VALUE and TREE_CHAIN.
13920         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
13921         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
13922         the arglist.
13923
13924 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
13925
13926         PR bootstrap/42347
13927         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
13928         to have no fallthru edge.
13929
13930         PR middle-end/44102
13931         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
13932         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
13933         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
13934         add BARRIER after previous bb if needed.
13935
13936 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
13937
13938         * tree.c (build_function_type_list_1): Remove bogus assert condition.
13939
13940 2010-05-17  Alan Modra  <amodra@gmail.com>
13941
13942         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
13943         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
13944         with copy_reg rtx param.
13945         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
13946         Correct cases where code for ABI_V4 did not initialise the reg
13947         used to access frame.  Also leave frame_reg_rtx as sp for large
13948         frames that save no regs.
13949
13950 2010-05-17  Martin Jambor  <mjambor@suse.cz>
13951
13952         PR middle-end/44133
13953         * tree-sra.c (create_access_replacement): New parameter rename, mark
13954         the replaement for renaming only when it is true.
13955         (get_access_replacement): Pass true in the rename parameter of
13956         create_access_replacement.
13957         (get_unrenamed_access_replacement): New function.
13958         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
13959         replacement declaration from it.
13960
13961 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
13962
13963         * function.c (try_fit_stack_local, add_frame_space): New static
13964         functions.
13965         (assign_stack_local_1): Use them.  Look for opportunities to use
13966         space previously wasted on alignment.
13967         * function.h (struct frame_space): New.
13968         (struct rtl_data): Add FRAME_SPACE_LIST member.
13969         * reload1.c (something_was_spilled): New static variable.
13970         (alter_reg): Set it.
13971         (reload): Test it in addition to testing if the frame size changed.
13972
13973 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
13974
13975         * config/s390/s390.c: Define sane prefetch settings and activate
13976         flag_prefetch_loop_arrays on -O3.
13977         * config/s390/s390.h: Declare that read can use write prefetch.
13978
13979 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
13980
13981         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
13982         build.
13983
13984 2010-05-16  Jan Hubicka  <jh@suse.cz>
13985
13986         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
13987         function body; do not check stdarg field of struct function.
13988
13989 2010-05-16  Jan Hubicka  <jh@suse.cz>
13990
13991         * cgraph.c (dump_cgraph_node): Dump versionable flag.
13992         * cgraph.h (cgraph_local_info): Add versionable flag.
13993         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
13994         (ipcp_versionable_function_p): Use it.
13995         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
13996         versionable flag.
13997
13998 2010-05-16  Jan Hubicka  <jh@suse.cz>
13999
14000         * cgraph.c (cgraph_clone_node): Take decl argument and insert
14001         clone into hash when it is different from orig.
14002         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
14003         * cgraph.h (cgraph_clone_node): Update prototype.
14004         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
14005         (lto_cgraph_encoder_delete): Delete body map.
14006         (lto_cgraph_encoder_size): Move to header.
14007         (lto_cgraph_encoder_encode_body_p,
14008         lto_set_cgraph_encoder_encode_body): New.
14009         (lto_output_node): Do not take written_decls argument; output clone_of
14010         pointer.
14011         (add_node_to): Add include_body_argument; call
14012         lto_set_cgraph_encoder_encode_body on master of the clone.
14013         (add_references): Update use of add_node_to.
14014         (compute_ltrans_boundary): Likewise.
14015         (output_cgraph): Do not create written_decls bitmap.
14016         (input_node): Take nodes argument; stream in clone_of correctly.
14017         (input_cgraph_1): Update use of input_node.
14018         * lto-streamer-out.c (lto_output): Use encoder info to decide
14019         what bodies to output.
14020         * ipa-inline.c (cgraph_clone_inlined_nodes,
14021         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
14022         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
14023         (lto_cgraph_encoder_size): Define here.
14024         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
14025         Declare.
14026
14027 2010-05-16  Richard Guenther  <rguenther@suse.de>
14028
14029         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
14030         -fipa-type-escape.
14031         * ipa-type-escape.c (gate_type_escape_vars): Run when
14032         -fipa-struct-reorg runs.
14033         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
14034         * common.opt (fipa-type-escape): Remove.
14035
14036 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
14037
14038         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
14039         (decode_options): Likewise.
14040         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
14041
14042 2010-05-16  Jan Hubicka  <jh@suse.cz>
14043
14044         * ipa.c (function_and_variable_visibility): Also bring local all
14045         aliases.
14046
14047 2010-05-16  Richard Guenther  <rguenther@suse.de>
14048
14049         * alias.c (nonoverlapping_memrefs_p): Remove use of
14050         IPA type-escape information.
14051
14052 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
14053
14054         * c-common.c (c_common_reswords): Add _Static_assert for C.
14055         * c-parser.c (c_token_starts_declaration,
14056         c_parser_next_token_starts_declaration,
14057         c_parser_static_assert_declaration_no_semi,
14058         c_parser_static_assert_declaration): New.
14059         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
14060         Handle static assertions if static_assert_ok.
14061         (c_parser_external_declaration, c_parser_declaration_or_fndef,
14062         c_parser_compound_statement_nostart, c_parser_label,
14063         c_parser_for_statement, c_parser_objc_methodprotolist,
14064         c_parser_omp_for_loop): All callers of
14065         c_parser_declaration_or_fndef changed.
14066         (c_parser_struct_declaration): Handle static assertions.
14067         (c_parser_compound_statement_nostart): Use
14068         c_parser_next_token_starts_declaration and
14069         c_token_starts_declaration to detect start of declarations.
14070         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
14071         Likewise.
14072
14073 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
14074
14075         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
14076         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14077         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14078         TARGET_FUNCTION_VALUE_REGNO_P): Define.
14079         (mmix_function_outgoing_value): Rename to...
14080         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
14081         (mmix_function_value_regno_p): Make static.
14082         (mmix_libcall_value): New function.
14083         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
14084         mmix_function_value_regno_p): Remove declaration.
14085
14086 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
14087
14088         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
14089         BUILT_IN_ALLOCA if stack checking is enabled.
14090
14091 2010-05-16  Richard Guenther  <rguenther@suse.de>
14092
14093         * var-tracking.c (vars_copy_1): Inline ...
14094         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
14095         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
14096         (variable_merge_over_cur): Adjust.  Merge asserts.
14097         (variable_merge_over_src): Likewise.
14098         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
14099         (variable_post_merge_new_vals): Merge asserts.
14100         (variable_post_merge_perm_vals): Likewise.
14101         (find_mem_expr_in_1pdv): Likewise.
14102         (dataflow_set_different_value): Remove.
14103         (onepart_variable_different_p): Merge asserts.
14104         (variable_different_p): Likewise.
14105         (dataflow_set_different_1): Inline ...
14106         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
14107         (emit_notes_for_differences_1): Merge asserts.
14108
14109 2010-05-16  Richard Guenther  <rguenther@suse.de>
14110
14111         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
14112         * optabs.c (libfunc_decl_hash): Likewise.
14113         * varasm.c (emutls_decl): Likewise.
14114
14115 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
14116
14117         * c-decl.c: Don't include gimple.h.
14118         (merge_decls): Do not copy gimple_body.
14119
14120 2010-05-15  Jason Merrill  <jason@redhat.com>
14121
14122         * c.opt: Add -fnothrow-opt.
14123
14124 2010-05-15  Jan Hubicka  <jh@suse.cz>
14125
14126         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
14127         analyzed.
14128         * passes.c (ipa_write_summaries): Write all analyzed nodes.
14129
14130 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
14131
14132         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
14133         * Makefile.in: Add it.
14134         Fix all other Makefile dependencies for changes below.
14135         * tree.h: Include it instead of defining VEC primitives here.
14136         * gimple.h: Likewise.
14137         * rtl.h: Likewise.
14138         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
14139         * except.h: Include vecir.h, break dependence on tree.h.
14140
14141         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
14142         Move from here...
14143         * tree-iterator.c: ...to here.
14144         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
14145
14146         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
14147         tm_p.h.
14148         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
14149         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
14150         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
14151         tree-mudflap.h, and target.h.
14152         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
14153         predict.h, tree-inline.h, gimple.h, and langhooks.h.
14154         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
14155         Add FIXME for why gimple.h is still included (should be unnecessary
14156         since GCC 4.5 gimplification unit-at-a-time).
14157         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
14158         * c-pragma.c: Add FIXME for why function.h needs to be included just
14159         for cfun, at front-end level.
14160         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
14161         Do not include ggc.h, but include vecprim.h for VEC(char).
14162         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
14163         Explain why target.h is included.
14164         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
14165         Explain why gimple.h is included.
14166         * c-ppoutput.c: Do not include tm.h.
14167         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
14168         * c-parses.c: Explain why rtl.h is included, and that this (and only
14169         this) is also why tm.h must be included.
14170         Do not include except.h.
14171         * c-lang.c: Do not include ggc.h.
14172
14173 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
14174
14175         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
14176
14177 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
14178
14179         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
14180         unions by default if those structs and unions have no tags.  Do
14181         not condition anonymous struct and unions handling on flag_iso.
14182         Allow anonymous structs and unions for C1X.
14183         (finish_struct): Do not diagnose lack of named fields when
14184         anonymous structs and unions present for C1X.  Accept flexible
14185         array members in structure with anonymous structs or unions but no
14186         directly named fields.
14187         * doc/extend.texi (Unnamed Fields): Update.
14188
14189 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
14190
14191         * gimple.h (compare_field_offset): Rename into...
14192         (gimple_compare_field_offset): ...this.
14193         * gimple.c (compare_field_offset): Rename into...
14194         (gimple_compare_field_offset): ...this.  Compare the full access if
14195         the offset is self-referential.
14196         (gimple_types_compatible_p): Adjust for above renaming.
14197         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
14198         DECL_NONADDRESSABLE_P flag of fields before merging them.
14199
14200 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
14201
14202         * tree.h (ctor_to_list): Delete.
14203         * tree.c (ctor_to_list): Delete.
14204
14205 2010-05-15  Jan Hubicka  <jh@suse.cz>
14206
14207         * ipa-reference.c: Include toplev.h
14208         (is_proper_for_analysis): Only add to all_module_statics
14209         if it is allocated.
14210         (write_node_summary_p, stream_out_bitmap,
14211         ipa_reference_write_optimization_summary,
14212         ipa_reference_read_optimization_summary): New.
14213         (struct ipa_opt_pass_d pass_ipa_reference): Add
14214         optimization summary streaming.
14215         * lto-cgraph.c (referenced_from_this_partition_p,
14216         reachable_from_this_partition_p): New functions.
14217         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
14218         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
14219         * opts.c (decode_options): Enable ipa_reference.
14220         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
14221         * lto-streamer.h (referenced_from_this_partition_p,
14222         reachable_from_this_partition_p): Declare.
14223
14224 2010-05-15  Richard Guenther  <rguenther@suse.de>
14225
14226         PR tree-optimization/44038
14227         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
14228         taking the address of a V_C_E of a constant.
14229
14230 2010-05-14  Jan Hubicka  <jh@suse.cz>
14231
14232         * tree.h (memory_identifier_string): Remove.
14233         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
14234         (ipa_reference_global_vars_info_d): Remove statics_not_read and
14235         statics_not_written.
14236         (ipa_reference_optimization_summary_d): New structure.
14237         (ipa_reference_optimization_summary_t): New type and vector.
14238         (ipa_reference_vars_info_d): Embedd structures instead of using
14239         pointers.
14240         (reference_vars_to_consider): Remove out of GGC space.
14241         (module_statics_escape): Remove.
14242         (global_info_obstack): Rename to ...
14243         (optimization_summary_obstack): ... this one.
14244         (initialization_status_t): Remove.
14245         (memory_identifier_string): Remove.
14246         (get_reference_vars_info): Fix indenting.
14247         (set_reference_vars_info): Likewise.
14248         (get_reference_optimization_summary): New.
14249         (set_reference_optimization_summary): New.
14250         (get_global_reference_vars_info): Remove.
14251         (ipa_reference_get_read_global): Remove.
14252         (ipa_reference_get_written_global): Remove.
14253         (ipa_reference_get_not_read_global): Update.
14254         (ipa_reference_get_not_written_global): Update.
14255         (is_proper_for_analysis): Outlaw addressable.
14256         (propagate_bits): Update for new datastructures.
14257         (analyze_variable): Remove.
14258         (init_function_info): Update for new datastructures.
14259         (clean_function_local_data): Remove.
14260         (clean_function): Remove.
14261         (copy_global_bitmap): Use optimizations_summary_obstack.
14262         (duplicate_node_data): Duplicate optimization summary only.
14263         (remove_node_data): Remove optimization summary only.
14264         (generate_summary): Do not analyze variables; do not compute
14265         module_statics_escape; do not prune solutions by it.
14266         (read_write_all_from_decl): Fix typos in comments.
14267         (propagate): Doscover readonly and nonaddressable first;
14268         update for new datastructures; share global bitmaps.
14269         * ipa-reference.h (ipa_reference_get_read_global,
14270         ipa_reference_get_written_global): Remove.
14271         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
14272         * Makefile.in: Remove ipa-refereference from GT files.
14273
14274 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
14275
14276         PR debug/44112
14277         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
14278         for all SYMBOL_REF_DECLs.
14279
14280 2010-05-14  Jan Hubicka  <jh@suse.cz>
14281
14282         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
14283         (varpool_all_refs_explicit_p): New inline function.
14284         * ipa-reference.c: Update comment.
14285         (module_statics_written): Remove.
14286         (get_static_decl): Remove.
14287         (ipa_init): Do not initialize module_statics_written.
14288         (analyze_function): Likewise.
14289         (generate_summary): Likewise; do not compute module_statics_readonly
14290         and do not update variable flags.
14291         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
14292         * ipa.c: Inlucde flags.h
14293         (cgraph_local_node_p): New.
14294         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
14295         promote functions to local.
14296         (ipa_discover_readonly_nonaddressable_vars): New function.
14297         (function_and_variable_visibility): Use cgraph_local_node_p.
14298         * varpool.c (varpool_finalize_decl): Set force_output for
14299         DECL_PRESERVE_P vars.
14300
14301 2010-05-14  Jan Hubicka  <jh@suse.cz>
14302
14303         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
14304
14305 2010-05-14  Richard Guenther  <rguenther@suse.de>
14306
14307         PR tree-optimization/44119
14308         * tree-ssa-pre.c (eliminate): Properly mark replacement of
14309         a PHI node necessary.
14310
14311 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
14312
14313         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
14314
14315 2010-05-14  Jason Merrill  <jason@redhat.com>
14316
14317         PR c++/44127
14318         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
14319         (gimple_call_set_nothrow): New.
14320         * gimple.c (gimple_build_call_from_tree): Call it.
14321         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
14322
14323         PR c++/44127
14324         * gimplify.c (gimplify_seq_add_stmt): No longer static.
14325         * gimple.h: Declare it.
14326         * gimple.c (gimple_build_eh_filter): No ops.
14327
14328 2010-05-14  Jan Hubicka  <jh@suse.cz>
14329
14330         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
14331         nodes already in queue.
14332         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
14333         re-enqueueing node.
14334
14335 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
14336
14337         PR debug/44136
14338         * cfgexpand.c (expand_debug_expr): If non-memory op0
14339         has BLKmode, return NULL.
14340
14341 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
14342
14343         * config.gcc: Add support for --with-cpu option for bdver1.
14344         * config/i386/i386.h (TARGET_BDVER1): New macro.
14345         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
14346         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
14347         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
14348         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
14349         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
14350         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
14351         (processor_type): Add PROCESSOR_BDVER1.
14352         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
14353         processor_type in config/i386/i386.h.
14354         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
14355         movaps <reg, reg> instead of movapd <reg, reg> when replacing
14356         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
14357         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
14358         to emit packed xor instead of packed double/packed integer
14359         xor for SSE and AVX when moving a zero value.
14360         * config/i386/sse.md: Add check for
14361         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
14362         movapd/movdqa for SSE and AVX.
14363         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
14364         single logical operations i.e and, or and xor instead of packed double
14365         logical operations for SSE and AVX.
14366         * config/i386/i386-c.c (ix86_target_macros_internal):
14367         Add PROCESSOR_BDVER1.
14368         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
14369         (has_fma4, has_xop): New.
14370         * config/i386/i386.c (bdver1_cost): New variable.
14371         (m_BDVER1): New macro.
14372         (m_AMD_MULTIPLE): Add m_BDVER1.
14373         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
14374         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
14375         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
14376         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
14377         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
14378         x86_tune_sse_partial_reg_dependency,
14379         x86_tune_sse_unaligned_load_optimal,
14380         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
14381         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
14382         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
14383         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
14384         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
14385         Enable/disable for bdver1.
14386         (processor_target_table): Add bdver1_cost.
14387         (cpu_names): Add bdver1.
14388         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
14389          processor_alias_table.
14390         (ix86_expand_vector_move_misalign): Change.
14391         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
14392         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
14393         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
14394         of movupd/movdqu for SSE and AVX.
14395         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
14396         (ix86_tune_adjust_cost): Add code for bdver1.
14397         (standard_sse_constant_opcode): Add check for
14398         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
14399         of packed double xor for SSE and AVX.
14400
14401 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
14402
14403         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
14404         result to unsigned.
14405
14406 2010-05-14  Tristan Gingold  <gingold@adacore.com>
14407
14408         * toplev.c (default_debug_hooks): Remove this variable.
14409         (process_options): Remove assignments to default_debug_hooks.
14410
14411 2010-05-14  Martin Jambor  <mjambor@suse.cz>
14412
14413         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
14414         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
14415         * langhooks.h (struct lang_hooks_for_decls): Removed field
14416         fold_obj_type_ref.
14417         * tree.c (free_lang_data): Remove assignment to
14418         lang_hooks.fold_obj_type_ref.
14419         * tree.def (OBJ_TYPE_REF): Update comment.
14420
14421 2010-05-14  Richard Guenther  <rguenther@suse.de>
14422
14423         PR tree-optimization/44124
14424         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
14425
14426 2010-05-14  Alan Modra  <amodra@gmail.com>
14427
14428         PR target/44075
14429         * config/rs6000/rs6000.c (struct machine_function): Reorder
14430         fields for better packing.  Add lr_save_state.
14431         (rs6000_ra_ever_killed): Return lr_save_state if set.
14432         (rs6000_emit_eh_reg_restore): Set lr_save_state.
14433
14434 2010-05-13  Jan Hubicka  <jh@suse.cz>
14435
14436         * varpool.c (decide_is_variable_needed): Drop code checking
14437         TREE_SYMBOL_REFERENCED.
14438
14439 2010-05-13  Jan Hubicka  <jh@suse.cz>
14440
14441         * final.c (output_addr_const): Do not call mark_decl_referenced.
14442         * cgraphunit.c (process_function_and_variable_attributes): Use
14443         mark_needed_node dirrectly.
14444         (assemble_thunk): Do not call mark_decl_referenced.
14445
14446 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
14447
14448         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
14449
14450 2010-05-13  Jeff Law  <law@redhat.com>
14451
14452         * ira-conflicts.c (print_allocno_conflicts): New function broken out
14453         from...
14454         (print_conflicts): Call print_allocno_conflicts.
14455
14456 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
14457
14458         PR debug/44104
14459         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
14460         if it is NULL.
14461
14462 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
14463
14464         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
14465         t-mingw-w64 or t-mingw-w32 for multilib configuration.
14466         * config/i386/t-mingw-w32: New.
14467         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
14468
14469 2010-05-13  Martin Jambor  <mjambor@suse.cz>
14470
14471         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
14472         gimple-fold.c).
14473         * gimple-fold.c (get_base_binfo_for_type): New function.
14474         (gimple_get_relevant_ref_binfo): Likewise.
14475         (gimple_fold_obj_type_ref_known_binfo): Likewise.
14476         (gimple_fold_obj_type_ref): Likewise.
14477         (fold_gimple_call): Simplify condition for folding virtual calls
14478         and call gimple_fold_obj_type_ref.
14479         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
14480         (gimple_fold_obj_type_ref_known_binfo): Likewise.
14481
14482 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
14483
14484         * config/rs6000/rs6000-protos.h
14485         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
14486         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
14487         (rs6000_debug_mode_dependent_address)
14488         (rs6000_mode_dependent_address_ptr): Likewise.
14489
14490 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
14491
14492         PR debug/43983
14493         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
14494         by SRA.
14495         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
14496         * tree-sra.c (create_access_replacement): Call unshare_expr before
14497         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
14498         * dwarf2out.c: Include tree-flow.h.
14499         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
14500         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
14501         Handle DW_OP_bit_piece.
14502         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
14503         construct_piece_list, adjust_piece_list): New functions.
14504         (add_var_loc_to_decl): Handle SRA optimized variables.
14505         Adjust for var_loc_note to loc field renaming.
14506         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
14507         in VAR_LOCATION note.
14508         (new_loc_descr_op_bit_piece): New function.
14509         (dw_sra_loc_expr): New function.
14510         (dw_loc_list): Use it.  Don't handle the last range after the
14511         loop, handle it inside of the loop.  Adjust for var_loc_note
14512         to loc field renaming.
14513         (add_location_or_const_value_attribute): Only special case
14514         single entry loc lists if loc is NOTE_P.  Adjust for
14515         var_loc_note to loc field renaming.
14516         (dwarf2out_var_location): Don't set newloc->var_loc_note
14517         and newloc->next here.
14518
14519 2010-05-12  Jan Hubicka  <jh@suse.cz>
14520
14521         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
14522         flag.
14523         * cgraph.h (cgraph_only_called_directly_p,
14524         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
14525         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
14526         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
14527         (assemble
14528         * ipa.c (cgraph_remove_unreachable_nodes): Use
14529         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
14530         flags.
14531         * tree-inline.c (copy_bb): Check address_taken flag.
14532         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
14533         externally_visible flag.
14534
14535 2010-05-12  Jason Merrill  <jason@redhat.com>
14536
14537         PR bootstrap/44048
14538         PR target/44099
14539         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
14540         * sdbout.c (plain_type_1): Likewise.
14541         * dwarf2out.c (is_base_type): Likewise.
14542         (gen_type_die_with_usage): Likewise.  Generate
14543         DW_TAG_unspecified_type for any LANG_TYPE.
14544
14545 2010-05-12  Jan Hubicka  <jh@suse.cz>
14546
14547         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
14548         indrect edges too.
14549         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
14550         (cgraph_clone_edge): Update.
14551         (cgraph_node_remove_callees): Remove indirect calls too.
14552         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
14553         (cgraph_create_indirect_edge): Update prototype.
14554         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
14555         is_proper_for_analysis.
14556         (add_new_function, visited_nodes, function_insertion_hook_holder,
14557         get_local_reference_vars_info, mark_address_taken, mark_address,
14558         mark_load, mark_store, check_asm_memory_clobber, check_call,
14559         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
14560         (ipa_init): Do not initialize visited_nodes;
14561         function_insertion_hook_holder.
14562         (analyze_variable): Rewrite.
14563         (analyze_function): Rewrite.
14564         (copy_local_bitmap): Remove.
14565         (duplicate_node_dat): Do not duplicate local info.
14566         (generate_summary): Simplify to only walk cgraph.
14567         (write_node_summary_p, ipa_reference_write_summary,
14568         ipa_reference_read_summary): Remove.
14569         (propagate): Do not remove function insertion;
14570         generate summary.
14571         (pass_ipa_reference): NULLify summary handling fields.
14572         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
14573         (input_edge): Input ecf_flags.
14574         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
14575         (update_indirect_edges_after_inlining): Ignore edges with unknown
14576         param.
14577
14578 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
14579
14580         * implicit-zee.c: New file.
14581         * tree-pass.h (pass_implicit_zee): Declare.
14582         * passes.c (init_optimization_passes): Add zee pass.
14583         * common.opt (fzee): New flag.
14584         * timevar.def (TV_ZEE): Define.
14585         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
14586         and beyond.
14587         * Makefile.in (implicit-zee.o): Add new build file.
14588
14589 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
14590             Nathan Froyd  <froydnj@codesourcery.com>
14591
14592         * c-common.c (sync_resolve_params): Remove write-only variable.
14593
14594 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
14595
14596         * target.h (struct gcc_target): Add mode_dependent_address_p field.
14597         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
14598         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
14599         * targhooks.c (default_mode_dependent_address_p): New function.
14600         * targhooks.h (default_mode_dependent_address_p): Declare function.
14601         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
14602         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
14603         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
14604         target hook. Change return type to bool.
14605         * recog.h (mode_dependent_address_p): Change return type to bool.
14606
14607 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
14608             Nathan Froyd  <froydnj@codesourcery.com>
14609
14610         * tree-mudflap.c (build_function_type_0, build_function_type_1,
14611         build_function_type_2, build_function_type_3): Remove.
14612         (mudflap_init): Use build_function_type_list.
14613
14614 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
14615             Nathan Froyd  <froydnj@codesourcery.com>
14616
14617         * coverage.c (build_fn_info_value): Call build_constructor instead of
14618         build_constructor_from_list.
14619         (build_ctr_info_value): Likewise.
14620         (build_gcov_info): Likewise.
14621
14622 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
14623
14624         * tree.c (build_constructor): Compute TREE_CONSTANT for the
14625         resultant constructor.
14626         (build_constructor_single): Don't set TREE_CONSTANT.
14627         (build_constructor_from_list): Don't compute TREE_CONSTANT.
14628
14629 2010-05-12  Jan Hubicka  <jh@suse.cz>
14630
14631         * cgraph.h (struct varpool_node): Add aux.
14632         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
14633         * varpool.c (varpool_remove_node): Do not remove initializer.
14634         (varpool_reset_queue): Export.
14635         (varpool_finalize_decl): Volatile vars are forced to be output.
14636         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
14637         replaced decl.
14638         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
14639         process_references, varpool_can_remove_if_no_refs): New functions.
14640         (cgraph_remove_unreachable_nodes): Handle variables too.
14641
14642 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
14643
14644         PR target/44088
14645         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
14646
14647 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
14648
14649         PR middle-end/44085
14650         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
14651         change value of ORT_TASK.
14652         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
14653         (omp_notice_threadprivate_variable): New function.
14654         (omp_notice_variable): Call it for threadprivate variables.
14655         If enclosing ctx is a task, print enclosing task rather than
14656         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
14657         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
14658         if task has untied clause.
14659
14660         PR debug/42278
14661         * dwarf2out.c (base_type_die): Don't add name attribute here.
14662         (modified_type_die): Instead of sizetype use
14663         its underlying original type.  If a DW_TAG_base_type doesn't
14664         have name added, add __unknown__.
14665         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
14666         always call force_type_die instead.
14667
14668 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
14669
14670         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
14671         for __stack_chk_guard.
14672
14673 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
14674
14675         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
14676         don't call start_source_file debug hook here...
14677         (finish_options): ... but here, after outputting predefined and
14678         command line defines and undefs.
14679
14680         PR middle-end/44071
14681         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
14682         no fallthru edge.
14683         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
14684         optimizing away empty bb with no successors, move over its
14685         footer chain to fallthru predecessor.
14686         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
14687         (rtl_split_edge): For asm goto call patch_jump_insn even if
14688         splitting fallthru edge.
14689
14690         PR c++/44059
14691         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
14692         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
14693         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
14694         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
14695         on DW.ref.* decls.
14696
14697         PR c++/44062
14698         * c-parser.c (c_parser_expression): Mark LHS of a comma
14699         expression as read if it is a decl, handled component or
14700         COMPOUND_EXPR with that on the RHS.
14701         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
14702         if it is a decl or handled component.
14703
14704 2010-05-11  Jan Hubicka  <jh@suse.cz>
14705
14706         * lto-symtab.c (lto_symtab_free): New function.
14707         * lto-streamer.h (lto_symtab_free): Declare.
14708
14709 2010-05-11  Jan Hubicka  <jh@suse.cz>
14710
14711         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
14712         that if function is needed it is reachable.
14713         (lto_output_node): See if it the function is reachable or referenced.
14714         (output_cgraph): Update call of lto_output_node.
14715         * lto-streamer.h (reachable_from_other_partition_p): Declare.
14716
14717 2010-05-11  Jan Hubicka  <jh@suse.cz>
14718
14719         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
14720         Mark as used.
14721
14722 2010-05-11  Jan Hubicka  <jh@suse.cz>
14723
14724         PR tree-optimize/44063
14725         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
14726         queue.
14727         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
14728         limits.
14729         (estimate_function_body_sizes): Compute sizes even when disregarding.
14730
14731 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
14732
14733         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
14734
14735 2010-05-11  Jan Hubicka  <jh@suse.cz>
14736
14737         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
14738         into every boundary.
14739
14740 2010-05-11  Jan Hubicka  <jh@suse.cz>
14741
14742         * matrix-reorg.c (matrix_reorg): Rebuild edges.
14743
14744 2010-05-11  Jan Hubicka  <jh@suse.cz>
14745
14746         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
14747         lto_streamer_cache_delete): Put nodes into heap.
14748         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
14749         heap.
14750
14751 2010-05-11  Jan Hubicka  <jh@suse.cz>
14752
14753         * cgraphbuild.c (cgraph_rebuild_references): New.
14754         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
14755         out extern inlines.
14756         * cgraph.h (cgraph_rebuild_references): Declare.
14757         * tree-inline.c (tree_function_versioning): Use it.
14758         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
14759
14760 2010-05-11  Jan Hubicka  <jh@suse.cz>
14761
14762         * cgraph.c: Include ipa-utils.h
14763         (cgraph_create_virtual_clone): Update references.
14764         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
14765
14766 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
14767
14768         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
14769         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
14770         cache size.
14771
14772 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
14773
14774         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
14775
14776 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
14777
14778         * gcc.c (execute): For -### don't quote arguments that
14779         contain just alphanumerics and _/-. characters.
14780         * doc/invoke.texi: Document that change for -###.
14781
14782         PR debug/44023
14783         * df-problems.c (struct dead_debug): Add to_rescan field.
14784         (dead_debug_init): Clear to_rescan field.
14785         (dead_debug_finish): Rescan all debug insns in to_rescan
14786         bitmap and free the bitmap.
14787         (dead_debug_insert_before): Instead of rescanning debug insns
14788         immediately queue their rescanning until dead_debug_finish.
14789         (df_note_bb_compute): After dead_debug_add do continue instead
14790         of break.
14791
14792 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
14793
14794         PR debug/44028
14795         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
14796         clear also INSN_REG_USE_LIST.
14797
14798 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14799
14800         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
14801
14802 2010-05-10  Jan Hubicka  <jh@suse.cz>
14803
14804         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
14805         commited change.
14806
14807 2010-05-10  Jan Hubicka  <jh@suse.cz>
14808
14809         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
14810         Allocate encoders.
14811         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
14812         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
14813         (lto_streamer_cache_create): Init alloc pool.
14814         (lto_streamer_cache_delete): Free alloc pool.
14815         * lto-streamer.h: Include alloc pool.
14816         (lto_streamer_cache_d): Use alloc pool.
14817         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
14818
14819 2010-05-10  Jan Hubicka  <jh@suse.cz>
14820
14821         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
14822         * cgraphbuild.c: Include except.h
14823         (record_type_list, record_eh_tables): New function.
14824         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
14825
14826 2010-05-10  Jan Hubicka  <jh@suse.cz>
14827
14828         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
14829         __frame_dummy_init_array_entry, force_to_data): Attribute as used
14830         rather than unused.
14831
14832 2010-05-10  Michael Matz  <matz@suse.de>
14833
14834         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
14835         (can_reassociate_p): Use FLOAT_TYPE_P.
14836         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
14837         (vect_force_simple_reduction): ... this.
14838         * tree-parloops.c (gather_scalar_reductions): Use
14839         vect_force_simple_reduction.
14840         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
14841         vect_is_simple_reduction, add modify argument, if true rewrite
14842         "a-b" into "a+(-b)".
14843         (vect_is_simple_reduction, vect_force_simple_reduction): New
14844         functions.
14845         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
14846
14847 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
14848             Vladimir Makarov  <vmakarov@redhat.com>
14849
14850         PR rtl-optimization/44012
14851         * ira-build.c (remove_unnecessary_allocnos): Nullify
14852         regno_allocno_map of the removed allocno.
14853
14854 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14855
14856         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
14857         to /dev/null.
14858         * configure: Regenerate.
14859
14860 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14861
14862         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
14863         unused.
14864         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
14865         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
14866         support in Sun ld.
14867         * configure: Regenerate.
14868
14869 2010-05-10  Richard Guenther  <rguenther@suse.de>
14870
14871         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
14872         marked if the entry identifier is marked.
14873
14874 2010-05-10  Richard Guenther  <rguenther@suse.de>
14875
14876         * c-common.c (struct c_common_attributes): Add fnspec attribute.
14877         (handle_fnspec_attribute): New function.
14878         * gimple.h (gimple_call_return_flags): Declare.
14879         (gimple_call_arg_flags): Likewise.
14880         * gimple.c (gimple_call_arg_flags): New function.
14881         (gimple_call_return_flags): Likewise.
14882         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
14883         New argument flags.
14884         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
14885         return value flags.
14886         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
14887         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
14888         main work to ...
14889         (make_heapvar_for): ... this new function.
14890         (handle_rhs_call): Handle fnspec attribute argument specifiers.
14891         (handle_lhs_call): Likewise.
14892         (find_func_aliases): Adjust.
14893
14894 2010-05-10  Richard Guenther  <rguenther@suse.de>
14895
14896         PR tree-optimization/44050
14897         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
14898
14899 2010-05-10  Wei Guozhi  <carrot@google.com>
14900
14901         PR target/42879
14902         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
14903
14904 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
14905
14906         PR c/10676
14907         * c-typeck.c (lookup_field): Take a type directly.  Update
14908         recursive calls.
14909         (build_component_ref): Update call to lookup_field.
14910         (set_init_label): Use lookup_field to find initialized field.
14911         Handle returned list of fields like a sequence of designators.
14912
14913 2010-05-09  Richard Guenther  <rguenther@suse.de>
14914
14915         PR middle-end/44024
14916         * fold-const.c (tree_single_nonzero_warnv_p): Properly
14917         handle &FUNCTION_DECL.
14918
14919 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
14920
14921         PR c/4784
14922         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
14923         structures and unions recursively.
14924         (detect_field_duplicates): Move duplicate detection with a hash to
14925         detect_field_duplicates_hash.  Always use a hash if anonymous
14926         structures or unions are present.
14927         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
14928         give errors.
14929
14930 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
14931
14932         PR target/44046
14933         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
14934         detect Atom, Core 2 and Core i7.
14935
14936 2010-05-09  Richard Guenther  <rguenther@suse.de>
14937
14938         * gcc.c (store_arg): Handle temporary file deletion for
14939         joined arguments.
14940
14941 2010-05-09  Richard Guenther  <rguenther@suse.de>
14942
14943         PR middle-end/44043
14944         * ipa-inline.c (estimate_function_body_sizes): Return after
14945         disregarding inline limits.
14946
14947 2010-05-09  Richard Guenther  <rguenther@suse.de>
14948
14949         * gcc.c (store_arg): Revert last change.
14950
14951 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
14952
14953         PR middle-end/28685
14954         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
14955         (optimize_ops_list): Call it.
14956
14957 2010-05-08  Richard Guenther  <rguenther@suse.de>
14958
14959         PR tree-optimization/44030
14960         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
14961         NECESSARY flag if we propagate from a inserted expression.
14962
14963 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
14964
14965         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
14966         domain types as equal if they are both PLACEHOLDER_EXPRs.
14967
14968 2010-05-08  Richard Guenther  <rguenther@suse.de>
14969
14970         * lto-wrapper.c (run_gcc): Remove linker output from
14971         command line for LTRANS invocation.
14972
14973 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
14974
14975         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
14976         lto-macho as lto_binary_reader.
14977         * target.h (struct gcc_target): New hooks lto_start and lto_end.
14978         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
14979         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
14980         in lto_start and lto_end calls.
14981         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
14982         magic numbers.
14983         (scan_prog_file): Update is_elf_or_coff call.
14984         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
14985
14986         * collect2.c (main): Fix enum comparison.
14987
14988         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
14989         Add prototypes.
14990         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
14991         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
14992         and TARGET_ASM_LTO_END.
14993         * darwin.c: Include obstack.h and lto-streamer.h.
14994         (lto_section_names_offset, lto_section_names_obstack,
14995         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
14996         global variables.
14997         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
14998         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
14999         to a temporary file.
15000         (darwin_asm_lto_end): New function.  Restore asm_out_file.
15001         (darwin_asm_named_section): For LTO sections, replace the name with
15002         the offset of the section name in a string table, and build this
15003         table.
15004         (darwin_file_start): Initialize global vars for LTO support.
15005         (darwin_file_end): If output to asm_out_file was redirected, append it
15006         to the proper asm_out_file here.  Add the section names section.
15007
15008 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
15009
15010         * c-pragma.c (pending_weak_d, pending_weak): New.
15011         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
15012         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
15013         handle_pragma_weak): Update the uses of pending_weaks.
15014
15015 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15016
15017         PR documentation/44016
15018         * doc/standards.texi (Standards): Link to unversioned
15019         cxx0x_status.html page.
15020
15021 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
15022
15023         PR target/43708
15024         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
15025         in addition to TREE_USED, to avoid "set but unused" warnings.
15026
15027 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
15028
15029         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
15030         (is_loop_prefetching_profitable): Do not insert prefetches
15031         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
15032         times the prefetch ahead distance.
15033
15034 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
15035
15036         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
15037         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
15038         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
15039         the unroll_factor.
15040
15041 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
15042
15043         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
15044         a diagnostic info when the insn-to-mem ratio is too small.
15045
15046 2010-05-07  Richard Guenther  <rguenther@suse.de>
15047
15048         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
15049         the linker plugin.
15050         (store_arg): Queue temp_filename for deletion instead of
15051         the whole argument.
15052
15053 2010-05-07  Richard Guenther  <rguenther@suse.de>
15054
15055         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
15056         (run_gcc): Handle LTRANS phase invocation.
15057         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
15058
15059 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
15060
15061         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
15062         this is also meaningful on PARM_DECLs and RESULT_DECLs.
15063
15064 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15065
15066         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
15067
15068 2010-05-07  Richard Guenther  <rguenther@suse.de>
15069
15070         PR tree-optimization/44020
15071         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
15072         code when PRE is not yet initialized.
15073
15074 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15075
15076         * config/mips/dbxmdebug.h: Remove.
15077         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
15078
15079 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
15080
15081         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
15082         with null pointer and also warn about ordered comparison of zero with
15083         pointer if -Wextra.
15084
15085 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15086
15087         * graphite-blocking.c
15088         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
15089         * graphite-clast-to-gimple.c
15090         (clast_to_gcc_expression): Same.
15091         (precision_for_value): Same.
15092         (precision_for_interval): Same.
15093         (gcc_type_for_interval): Same.
15094         (graphite_create_new_guard): Same.
15095         (compute_bounds_for_level): Same.
15096         (graphite_create_new_loop_guard): Same.
15097         * graphite-interchange.c
15098         (build_linearized_memory_access): Same.
15099         (pdr_stride_in_loop): Same.
15100         (memory_strides_in_loop_1): Same.
15101         (memory_strides_in_loop): Same.
15102         (extend_scattering): Same.
15103         (psct_scattering_dim_for_loop_depth): Same.
15104         (pbb_number_of_iterations): Same.
15105         * graphite-poly.h
15106         (debug_iteration_domains): Same.
15107         * graphite-ppl.c
15108         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
15109         (ppl_set_inhomogeneous_gmp): Same.
15110         (ppl_strip_loop): Same.
15111         (ppl_lexico_compare_linear_expressions): Same.
15112         (ppl_read_polyhedron_matrix): Same.
15113         (ppl_max_for_le_pointset): Same.
15114         * graphite-ppl.h
15115         (ppl_read_polyhedron_matrix): Same.
15116         (tree_int_to_gmp): Same.
15117         (gmp_cst_to_tree): Same.
15118         (ppl_set_inhomogeneous): Same.
15119         (ppl_set_inhomogeneous_tree): Same.
15120         (ppl_set_coef): Same.
15121         (ppl_set_coef_tree): Same.
15122         * graphite-sese-to-poly.c
15123         (build_pbb_scattering_polyhedrons): Same.
15124         (build_scop_scattering): Same.
15125         (scan_tree_for_params_right_scev): Same.
15126         (scan_tree_for_params): Same.
15127         (find_params_in_bb): Same.
15128         (find_scop_parameters): Same.
15129         (add_upper_bounds_from_estimated_nit): Same.
15130         (build_loop_iteration_domains): Same.
15131         (add_condition_to_domain): Same.
15132         (pdr_add_memory_accesses): Same.
15133
15134 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15135
15136         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
15137         CLooG's value_* macros to their respective mpz_* counterparts.
15138         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
15139         (graphite_create_new_loop_guard): Same.
15140         * graphite-interchange.c (build_linearized_memory_access): Same.
15141         (pdr_stride_in_loop): Same.
15142         (memory_strides_in_loop_1): Same.
15143         (1st_interchange_profitable_p): Same.
15144         * graphite-poly.c (extend_scattering): Same.
15145         (psct_scattering_dim_for_loop_depth): Same.
15146         (pbb_number_of_iterations): Same.
15147         (pbb_number_of_iterations_at_time): Same.
15148         * graphite-poly.h (new_1st_loop): Same.
15149         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
15150         (oppose_constraint): Same.
15151         (insert_constraint_into_matrix): Same.
15152         (ppl_set_inhomogeneous_gmp): Same.
15153         (ppl_set_coef_gmp): Same.
15154         (ppl_strip_loop): Same.
15155         (ppl_lexico_compare_linear_expressions): Same.
15156         (ppl_max_for_le_pointset): Same.
15157         (ppl_min_for_le_pointset): Same.
15158         (ppl_build_realtion): Same.
15159         * graphite-ppl.h (gmp_cst_to_tree): Same.
15160         (ppl_set_inhomogeneous): Same.
15161         (ppl_set_inhomogeneous_tree): Same.
15162         (ppl_set_coef): Same.
15163         (ppl_set_coef_tree): Same.
15164         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
15165         (build_scop_scattering): Same.
15166         (add_value_to_dim): Same.
15167         (scan_tree_for_params_right_scev): Same.
15168         (scan_tree_for_params_int): Same.
15169         (scan_tree_for_params): Same.
15170         (find_params_in_bb): Same.
15171         (find_scop_parameters): Same.
15172         (add_upper_bounds_from_estimated_nit): Same.
15173         (build_loop_iteration_domains): Same.
15174         (create_linear_expr_from_tree): Same.
15175         (add_condition_to_domain): Same.
15176         (pdr_add_memory_accesses): Same.
15177
15178 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
15179             Jason Merrill  <jason@redhat.com>
15180
15181         * c-common.c (c_common_reswords): Add nullptr.
15182         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
15183         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
15184         (gen_type_die_with_usage): Likewise.
15185         * dbxout.c (dbxout_type): Likewise.
15186         * sdbout.c (plain_type_1): Likewise.
15187
15188 2010-05-06  Jason Merrill  <jason@redhat.com>
15189
15190         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
15191         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
15192         ret appropriately.
15193         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
15194
15195         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
15196         stripping WITH_SIZE_EXPR.
15197         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
15198         change.
15199
15200 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15201
15202         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
15203         list of obsolete configurations.
15204         Disabled check for obsolete configurations.
15205         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
15206         Removed support for previous versions.
15207         * config/mips/iris.h: Removed.
15208         * config/mips/iris5.h: Removed.
15209         * config/mips/iris6.h: Merged old iris.h contents.
15210         (TARGET_IRIX): Removed.
15211         (DRIVER_SELF_SPECS): Removed mabi=32.
15212         (IDENT_ASM_OP): Removed undef.
15213         (STARTFILE_SPEC): Removed mabi=32.
15214         (ENDFILE_SPEC): Likewise.
15215         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
15216         (MACHINE_TYPE): Update for IRIX 6.5.
15217         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
15218         TARGET_IRIX by TARGET_IRIX6.
15219         (mips_file_start): Likewise.
15220         (mips_output_external): Remove IRIX 5/6 O32 support.
15221         (mips_output_function_prologue): Likewise.
15222         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
15223         TARGET_IRIX6.
15224         (TARGET_CPU_CPP_BUILTINS): Likewise.
15225         (TARGET_IRIX): Removed.
15226         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
15227         (MULTILIB_DIRNAMES): Removed 32.
15228         (MULTILIB_OSDIRNAMES): Removed ../lib.
15229         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
15230         (Specific, mips-sgi-irix5): Document removal.
15231         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
15232         Remove references to older IRIX 6 releases and the O32 ABI.
15233
15234 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
15235
15236         PR bootstrap/43994
15237         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
15238         instead of DF_REF_REAL_REG.
15239
15240 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
15241
15242         PR target/43888
15243         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
15244         handling to still return true for x64 targets.
15245
15246 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
15247
15248         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
15249
15250 2010-05-06  Jan Hubicka  <jh@suse.cz>
15251
15252         PR tree-optimization/43791
15253         * ipa-inline.c (update_caller_keys): Remove bogus
15254         disregard_inline_limits check.
15255
15256 2010-05-06  Michael Matz  <matz@suse.de>
15257
15258         PR tree-optimization/43984
15259         * tree-ssa-pre.c (inserted_phi_names): Remove.
15260         (inserted_exprs): Change to bitmap.
15261         (create_expression_by_pieces): Set bits, don't append to vector.
15262         (insert_into_preds_of_block): Don't handle inserted_phi_names.
15263         (eliminate): Don't look at inserted_phi_names, remove deleted
15264         insns from inserted_exprs.
15265         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
15266         (init_pre, fini_pre): Allocate and free bitmaps.
15267         (execute_pre): Insert insns on edges before elimination.
15268
15269 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
15270
15271         * tree.c (initializer_zerop): Handle STRING_CST.
15272
15273 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15274
15275         PR 40989
15276         * doc/invoke.texi (Wimplicit): Document as C only.
15277         * opts.c (common_handle_option): Add argument kind.
15278         (handle_option): Rename as read_cmdline_option. Factor out code to...
15279         (handle_option): ... here. New.
15280         (handle_options): Rename as read_cmdline_options.
15281         (decode_options): Update call.
15282         (set_option): Use option index instead of option pointer. Classify
15283         diagnostics correctly.
15284         (enable_warning_as_error): Call handle_option.
15285         * opts.h (set_option): Update declaration.
15286         (handle_option): Declare.
15287         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
15288         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
15289         * c-opts.c (set_Wimplicit): Delete.
15290         (c_family_lang_mask): New static constant.
15291         (c_common_handle_option): Add argument kind. Use handle_option
15292         instead of set_Wimplicit.
15293         (c_common_post_options): warn_implicit and warn_implicit_int
15294         are disabled by default.
15295         * c-common.c (warn_implicit): Do not define here.
15296         * c-common.h (warn_implicit): Do not declare here.
15297         (c_common_handle_option): Update declaration.
15298         * lto-opts.c (lto_reissue_options): Update call to set_option.
15299
15300 2010-05-06  Richard Guenther  <rguenther@suse.de>
15301
15302         PR tree-optimization/43571
15303         * domwalk.c (walk_dominator_tree): Walk the dominator
15304         sons in more optimal order.
15305
15306 2010-05-06  Richard Guenther  <rguenther@suse.de>
15307
15308         PR tree-optimization/43934
15309         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
15310         (stmt_cost): Likewise.
15311         (extract_true_false_args_from_phi): New helper.
15312         (determine_max_movement): For PHI nodes verify we can hoist them
15313         and compute their cost.
15314         (determine_invariantness_stmt): Handle PHI nodes.
15315         (move_computations_stmt): Likewise.  Hoist PHI nodes in
15316         if-converted form using COND_EXPRs.
15317         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
15318         (tree_ssa_lim): Likewise.
15319         * tree-flow.h (tree_ssa_lim): Adjust prototype.
15320         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
15321
15322 2010-05-06  Richard Guenther  <rguenther@suse.de>
15323
15324         PR tree-optimization/43987
15325         * tree-ssa-structalias.c (could_have_pointers): For possibly
15326         address-taken variables force pointers to be recorded.
15327         (create_variable_info_for_1): Likewise.
15328         (push_fields_onto_fieldstack): Pass in wheter all fields
15329         must have pointers.
15330         (find_func_aliases): Query types instead of vars whether
15331         they contain pointers where appropriate.
15332
15333 2010-05-06  Jan Hubicka  <jh@suse.cz>
15334
15335         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
15336         (record_reference, mark_address, mark_load, mark_store): Record
15337         references.
15338         (record_references_in_initializer): Update call of record_references.
15339         (rebuild_cgraph_edges): Remove all references before rebuiding.
15340         * cgraph.c (cgraph_create_node): Clear ref list.
15341         (cgraph_remove_node): Remove references.
15342         (dump_cgraph_node): Dump references.
15343         (cgraph_clone_node): Clone references.
15344         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
15345         (struct cgraph_node, varpool_node): Add ref_lst.
15346         * ipa-ref.c: New file.
15347         * ipa-ref.h: New file.
15348         * ipa-ref-inline.h: New file.
15349         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
15350         (referenced_from_other_partition_p): New function.
15351         (lto_output_varpool_node): Take set arugment; call
15352         referenced_from_other_partition.
15353         (lto_output_ref): New.
15354         (add_references): New.
15355         (output_refs): New.
15356         (output_cgraph): Compute boundary based on references; output refs.
15357         (output_varpool): Accept cgraph_node_set argument.
15358         (input_ref): New.
15359         (input_refs): New.
15360         (input_cgraph): Call input_refs.
15361         * lto-section-in.c (lto_section_name): Add refs.
15362         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
15363         (ipa-ref.o): New file.
15364         * varpool.c (varpool_node): Clear ipa ref list.
15365         (varpool_remove_node): Remove references.
15366         (dump_varpool_node): Dump references.
15367         (varpool_assemble_decl): Only compile finalized ones.
15368         (varpool_extra_name_alias): Initialize ref list.
15369         * lto-streamer.c (lto-get_section_name): Add .refs section.
15370         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
15371         (referenced_from_other_partition_p): Declared.
15372
15373 2010-05-06  Ira Rosen  <irar@il.ibm.com>
15374
15375         PR tree-optimization/43901
15376         * tree-vect-stmts.c (vectorizable_call): Assert that vector
15377         type is not NULL if it's transformation phase, and return
15378         FALSE if it's analysis.
15379         (vectorizable_conversion, vectorizable_operation,
15380         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
15381
15382 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
15383
15384         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
15385         Delete.
15386         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
15387         New define.
15388         * config/mips/mips-protos.h
15389         (mips_small_register_classes_for_mode_p): Delete prototype.
15390
15391 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
15392
15393         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
15394         * config/arm/arm.c (multiple_operation_profitable_p,
15395         compute_offset_order): New static functions.
15396         (load_multiple_sequence, store_multiple_sequence): Use them.
15397         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
15398         memory offsets, not register numbers.
15399         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
15400
15401 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
15402
15403         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
15404         (get_pending_sizes, put_pending_size, put_pending_sizes):
15405         Update the uses of pending_sizes.
15406         * c-decl.c (store_parm_decls): Likewise.
15407         * c-tree.h (struct c_arg_info): Likewise.
15408         * tree.h: Update the prototype for get_pending_sizes and
15409         put_pending_sizes.
15410
15411 2010-05-05  Jason Merrill  <jason@redhat.com>
15412
15413         PR debug/43370
15414         * c-common.c (handle_aligned_attribute): Respect
15415         ATTR_FLAG_TYPE_IN_PLACE.
15416
15417         PR testsuite/43758
15418         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
15419         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
15420         (TARGET_INITIALIZER): Use it.
15421         * c-common.c (attribute_takes_identifier_p): Call it.
15422         * c-common.h: Update prototype.
15423         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
15424         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
15425
15426 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
15427
15428         PR debug/43950
15429         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
15430         DW_ID_down_case for Fortran compilation units.
15431
15432 2010-05-05  Jan Hubicka  <jh@suse.cz>
15433
15434         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
15435         handle aliases.
15436
15437 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
15438
15439         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
15440         a variable-sized RESULT_DECL.
15441
15442 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
15443
15444         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
15445
15446 2010-05-05  Jason Merrill  <jason@redhat.com>
15447
15448         PR c++/43787
15449         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
15450         returns GS_OK.
15451         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
15452
15453 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
15454             Jakub Jelinek  <jakub@redhat.com>
15455
15456         PR debug/43478
15457         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
15458         (dead_debug_init, dead_debug_finish): New functions.
15459         (dead_debug_add, dead_debug_insert_before): Likewise.
15460         (df_note_bb_compute): Initialize a dead_debug object, add dead
15461         debug uses to it, insert debug bind insns before death insns,
15462         reset debug insns that refer to pending uses at the end.
15463         * rtl.h (make_debug_expr_from_rtl): New prototype.
15464         * varasm.c (make_debug_expr_from_rtl): New function.
15465
15466 2010-05-05  Jan Hubicka  <jh@suse.cz>
15467
15468         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
15469         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
15470         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
15471         lto_varpool_encoder_deref, lto_varpool_encoder_size,
15472         lto_varpool_encoder_encode_initializer_p,
15473         lto_set_varpool_encoder_encode_initializer): New functions.
15474         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
15475         call output_varpool.
15476         (input_varpool_node): Do not always set analyzed.
15477         (input_cgraph_1): Return vector of cgraph nodes.
15478         (input_varpool_1): Return vector of varpools.
15479         (input_cgraph): Free the vectors.
15480         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15481         output only initializers needed.
15482         (lto_output): Only call output_cgraph.
15483         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
15484         * lto-section-out.c (lto_new_out_decl_state): Initialize
15485         state->varpool_node_encoder.
15486         * lto-streamer.h (lto_varpool_encoder_d): New.
15487         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
15488         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
15489         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
15490         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
15491         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
15492         Declare.
15493         (output_varpool, input_varpool): Remove declarations.
15494
15495 2010-05-05  Jan Hubicka  <jh@suse.cz>
15496
15497         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
15498         with body can prevail.
15499
15500 2010-05-05  Jan Hubicka  <jh@suse.cz>
15501
15502         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
15503         size.
15504
15505 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15506
15507         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
15508
15509         * gengtype.h (erro_at_line): Constify pos argument.
15510
15511         * gengtype.c: Include hashtab.h.
15512         (enum gc_used): Document GC_MAYBE_POINTED_TO.
15513         (error_at_line): Constify pos argument.
15514         (do_typedef): Initialize p->opt field.
15515         (get_file_gtfilename): Fix comment typo.
15516         (struct walk_type_data): Constify line field.
15517         (get_output_file_for_structure): New function.
15518         (write_local_func_for_structure): Constify orig_s argument.
15519         Use get_output_file_for_structure.
15520         (write_func_for_structure): Use get_output_file_for_structure.
15521         (INDENT): New define.
15522         (dump_pair, dump_type, dump_type_list, dump_typekind)
15523         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
15524         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
15525         functions.
15526         (seen_types): New variable.
15527         (main): New variable do_dump.  Process "-d" command line option.
15528         Call dump_everything if dump requested.
15529
15530 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
15531
15532         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
15533         in a temporary instead of invoking the macro multiple times.
15534         (track_expr_p): Likewise.
15535
15536 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
15537
15538         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
15539         per new semantics.
15540         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
15541         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
15542         conditions for printing notes.
15543         * common.opt (-Wcoverage-mismatch): Allow negative, default to
15544         true, update documentation.
15545         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
15546
15547 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
15548
15549         PR c/43981
15550         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
15551         on dimen.
15552
15553 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
15554
15555         PR target/43799
15556         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
15557         (*sse_prologue_save_insn1): Likewise.
15558         (SSE prologue save splitter): Likewise.
15559
15560 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
15561
15562         * tree.c (free_lang_data_in_one_sizepos): New inline function.
15563         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
15564         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
15565         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
15566         all decls.  Call it on DECL_FIELD_OFFSET of fields.
15567         (find_decls_types_r): Follow DECL_VALUE_EXPR.
15568         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
15569
15570 2010-05-04  Martin Jambor  <mjambor@suse.cz>
15571
15572         * tree-sra.c (build_access_from_expr_1): The first parameter type
15573         changed to simple tree.
15574         (build_access_from_expr): Likewise, gsi parameter was eliminated.
15575         (scan_assign_result): Renamed to assignment_mod_result, enum elements
15576         renamed as well.
15577         (build_accesses_from_assign): Removed all parameters except for a
15578         simple gimple statement.  Now returns a simple bool.
15579         (scan_function): All non-analysis parts moved to separate functions
15580         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
15581         parameters and updated both callers.
15582         (sra_modify_expr): Removed parameter data.
15583         (sra_modify_function_body): New function.
15584         (perform_intra_sra): Call sra_modify_function_body to modify the
15585         function body.
15586         (replace_removed_params_ssa_names): Parameter data changed into
15587         adjustments vector.
15588         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
15589         changed the parameter dont_convert to convert with the opposite
15590         meaning.
15591         (sra_ipa_modify_assign): Parameter data changed into adjustments
15592         vector, return value changed to bool.
15593         (ipa_sra_modify_function_body): New function.
15594         (sra_ipa_reset_debug_stmts): Updated a comment.
15595         (modify_function): Use ipa_sra_modify_function_body to modify function
15596         body.
15597
15598 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
15599
15600         PR middle-end/43671
15601         * alias.c (true_dependence): Handle the same VALUE in x and mem.
15602         (canon_true_dependence): Likewise.
15603         (write_dependence_p): Likewise.
15604
15605 2010-05-04  Jan Hubicka  <jh@suse.cz>
15606
15607         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
15608         * cgraphbuild.c: Include ipa-utils.h
15609         (record_reference_ctx): New struct.
15610         (record_reference): Simplify to work on initializers; not statements.
15611         (mark_address, mark_load, mark_store): New.
15612         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
15613         walk PHI nodes too.
15614         (record_references_in_initializer): Update use of record_reference.
15615         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
15616         walk PHI nodes too.
15617
15618 2010-05-04  Jan Hubicka  <jh@suse.cz>
15619
15620         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
15621         node will be removed anyway.
15622         (lto_varpool_replace_node): Allow also unanalyzed nodes;
15623         relink aliases of node into prevailing node.
15624         * varpool.c (varpool_remove_node): Remove aliases properly;
15625         when removing node, remove all its aliases too; remove DECL_INITIAL
15626         of removed node; ggc_free the varpool node.
15627
15628 2010-05-04  Richard Guenther  <rguenther@suse.de>
15629
15630         PR tree-optimization/43879
15631         * tree-ssa-structalias.c (alias_get_name): Use
15632         DECL_ASSEMBLER_NAME if available.
15633         (create_function_info_for): Return the varinfo node.
15634         (ipa_pta_execute): Associate same-body aliases and extra names
15635         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
15636
15637 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
15638
15639         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
15640
15641 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
15642
15643         PR bootstrap/43964
15644         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
15645         only if HONOR_REG_ALLOC_ORDER is not defined.
15646
15647 2010-05-04  Richard Guenther  <rguenther@suse.de>
15648
15649         PR tree-optimization/43949
15650         * tree-vrp.c (extract_range_from_binary_expr): Only handle
15651         TRUNC_MOD_EXPR.
15652
15653 2010-04-26  Jason Merrill  <jason@redhat.com>
15654
15655         * c.opt (-fstrict-enums): New.
15656         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
15657
15658 2010-05-03  David Ung  <davidu@mips.com>
15659             James E. Wilson  <wilson@codesourcery.com>
15660
15661         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
15662         emit the trap instruction before the divide for TUNE_74K.
15663
15664 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
15665
15666         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
15667         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
15668         based on the above, for new target hook.
15669
15670         * hooks.c (hook_bool_mode_true): New generic hook.
15671         * hooks.h (hook_bool_mode_true): Add prototype.
15672
15673         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
15674         target hook.
15675         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
15676         target hook, set to hook_bool_mode_false.
15677         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
15678         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
15679         with targetm.small_register_classes_for_mode_p.
15680         (find_reusable_reload): Likewise.
15681         (combine_reloads): Likewise.
15682         * reload1.c (reload_as_needed): Likewise.
15683         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
15684         * ifcvt.c (noce_process_if_block, check_cond_move_block,
15685         dead_or_predicable): Likewise.
15686         * regmove.c (optimize_reg_copy_1): Likewise.
15687         * calls.c (prepare_call_address): Likewise.
15688         (precompute_register_parameters): Likewise.
15689
15690         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
15691         hook definition.
15692         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
15693         implementation of the hook that considers all register classes
15694         small except for SH64.
15695         (sh_override_options): Use the new hook.
15696         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
15697         Add prototype.
15698
15699         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
15700         hook definition.
15701         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
15702         implementation of the hook that considers all register classes
15703         small for THUMB1.
15704         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
15705         Add prototype.
15706
15707         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
15708         hook definition.
15709         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
15710         implementation of the hook that considers all register classes
15711         small for MIPS16.
15712         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
15713         Add prototype.
15714
15715         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
15716         hook definition.
15717         * config/m32c/m32c.h: Likewise.
15718         * config/pdp11/pdp11.h: Likewise.
15719         * config/avr/avr.h: Likewise.
15720         * config/xtensa/xtensa.h: Likewise.
15721         * config/m68hc11/m68hc11.h: Likewise.
15722         * config/mn10300/mn10300.h: Likewise.
15723         * config/mcore/mcore.h: Likewise.
15724         * config/h8300/h8300.h: Likewise.
15725         * config/bfin/bfin.h: Likewise.
15726
15727         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
15728         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
15729
15730 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
15731
15732         * double-int.h (tree_to_double_int): Remove macro.
15733         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
15734         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
15735         (tree_to_double_int): New function.
15736         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
15737         Move ...
15738         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
15739
15740 2010-05-03  Richard Guenther  <rguenther@suse.de>
15741
15742         PR tree-optimization/43971
15743         * tree-ssa-structalias.c (get_constraint_for_1): Fix
15744         constraints in the !flag_delete_null_pointer_checks case.
15745
15746 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
15747
15748         PR debug/43972
15749         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
15750         result mode matches original rtl mode.
15751
15752 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
15753
15754         PR target/43888
15755         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
15756
15757 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
15758
15759         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
15760         when processing flag options.
15761
15762 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
15763
15764         * gcov-iov.c (main): Change format string placeholder
15765         from %#08x to 0x%08x.
15766         * genchecksum.c (dosum): Change format string placeholder
15767         from %#02x to 0x%02x.
15768
15769 2010-05-02  Richard Guenther  <rguenther@suse.de>
15770
15771         PR tree-optimization/43879
15772         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
15773
15774 2010-05-02  Bruno Haible  <bruno@clisp.org>
15775
15776         * doc/extend.texi (Function Attributes): Fix a typo.
15777
15778 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
15779
15780         Revert:
15781         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
15782         placeholder from 0x%x to %#x.
15783         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
15784         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
15785         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
15786         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
15787         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
15788         * config/i386/i386.c (ix86_target_string): Ditto.
15789         * config/i386/i386.c (output_pic_addr_const): Ditto.
15790         (print_operand): Ditto.
15791
15792 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
15793
15794         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
15795         placeholder from 0x%x to %#x.
15796         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
15797         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
15798         (ASM_OUTPUT_DEBUG_DATA): Ditto.
15799         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
15800         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
15801         * optc-gen.awk: Ditto.
15802         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
15803         (HOST_WIDE_INT_PRINT_HEX): Ditto.
15804         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
15805         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
15806
15807 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
15808
15809         * target.h (struct calls): Add function_value_regno_p field.
15810         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
15811         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
15812         * targhooks.c (default_function_value_regno_p): New function.
15813         * targhooks.h (default_function_value_regno_p): Declare function.
15814         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
15815         * builtins.c. (apply_result_size): (Ditto.).
15816         * combine.c. (likely_spilled_retval_p): (Ditto.).
15817         * mode-switching.c. Include 'target.h'.
15818         (create_pre_exit): Use function_value_regno_p hook.
15819         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
15820         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
15821         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
15822
15823         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
15824         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
15825         (ix86_function_value_regno_p): Declare as static, change argument
15826         type to const unsigned int.
15827         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
15828
15829 2010-05-01  Richard Guenther  <rguenther@suse.de>
15830
15831         PR tree-optimization/43949
15832         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
15833         types.
15834         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
15835
15836 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
15837
15838         * rtl.h (CONST_DOUBLE_P): Define.
15839         (rtx_to_double_int): Declare.
15840         * emit-rtl.c (rtx_to_double_int): New function.
15841         * dwarf2out.c (insert_double): New function.
15842         (loc_descriptor, add_const_value_attribute): Clean up, use
15843         rtx_to_double_int and insert_double functions.
15844
15845 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
15846
15847         * doc/extend.texi (Inline): Add missing return keyword to examples.
15848         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
15849         "command-line".
15850
15851 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
15852
15853         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
15854         the variable part of the offset as well.  Use highest_pow2_factor for
15855         all alignment checks.
15856
15857 2010-04-30  Richard Guenther  <rguenther@suse.de>
15858
15859         PR tree-optimization/43879
15860         * tree-ssa-structalias.c (type_could_have_pointers): Functions
15861         can have pointers.
15862
15863 2010-04-30  Jan Hubicka  <jh@suse.cz>
15864
15865         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
15866         varpool.
15867         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
15868
15869 2010-04-30  Jan Hubicka  <jh@suse.cz>
15870
15871         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
15872         New.
15873         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
15874         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
15875         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
15876         cgraph_node_set_needs_ltrans_p): Remove.
15877
15878 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
15879
15880         * sdbout.c: Include vec.h, do not include varray.h.
15881         (deferred_global_decls, sdbout_global_decl,
15882         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
15883         * toplev.c: Do not include varray.h.
15884         (dump_memory_report): Do not dump VARRAY statistics.
15885         * gengtype.c (open_base_file): Ignore varray.h.
15886         * Makefile.in: Update for abovementioned changes.
15887         Remove all traces of varray.c and varray.h.
15888         * varray.c: Remove file.
15889         * varray.h: Remove file.
15890
15891 2010-04-30  Jan Hubicka  <jh@suse.cz>
15892
15893         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
15894         references.
15895
15896 2010-04-30  Jan Hubicka  <jh@suse.cz>
15897
15898         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
15899         needed.
15900
15901 2010-04-30  Richard Guenther  <rguenther@suse.de>
15902
15903         * tree-ssa-structalias.c (get_constraint_for_1): Generate
15904         constraints for CONSTRUCTOR.
15905
15906 2010-04-30  Richard Guenther  <rguenther@suse.de>
15907
15908         PR lto/43946
15909         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
15910         first after all lowering passes.
15911
15912 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
15913
15914         * toplev.c: Include varray.h for statistics dumping.
15915         * tree.h: Do not declare varray_head_tag.
15916         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
15917         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
15918         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
15919         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
15920         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
15921         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
15922         c-common.c, c-common.h, reg-stack.c, basic-block.h,
15923         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
15924         include varray.h.
15925         * Makefile.in: Update for abovementioned changes.
15926
15927 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
15928
15929         PR debug/43942
15930         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
15931
15932 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
15933
15934         * config/picochip/picochip.c (picochip_legitimize_address): Define.
15935         Use this function to do machine-specific conversion.
15936         (picochip_legitimize_reload_address): Likewise.
15937         (picochip_legitimate_address_p): Check valid base register only if
15938         strict.
15939         (picochip_check_conditional_copy): Check for modw only if opnd is
15940         register.
15941         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
15942         to call the function in c.
15943         * config/picochip/picochip-protos.h
15944         (picochip_legitimize_reload_address): Define.
15945         * config/picochip/picochip.md (supported_compare1): Define.
15946
15947 2010-04-30  Jan Hubicka  <jh@suse.cz>
15948
15949         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
15950         (cgraph_global_info): Remove inlined.
15951         (LTO_cgraph_tag_names): Remove.
15952         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
15953         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
15954         simplify cgraph tags and document.
15955         (lto_output_node): Use only LTO_cgraph_unavail_node and
15956         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
15957         for_functions_valid, global info, process and output flags.
15958         (input_overwrite_node): Initialize estimated stack size and
15959         estimated growth.  Do not read flags we no longer store.
15960         (input_node): Likewise do not read info no longer stored.
15961         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
15962         flag.
15963
15964 2010-04-30  Richard Guenther  <rguenther@suse.de>
15965
15966         PR tree-optimization/43879
15967         * tree-ssa-structalias.c (get_constraint_for_1): Properly
15968         handle non-zero initializers.
15969
15970 2010-04-30  Richard Guenther  <rguenther@suse.de>
15971
15972         * builtins.c (fold_builtin_1): Delete free (0).
15973
15974 2010-04-29  Jan Hubicka  <jh@suse.cz>
15975
15976         * gengtype.c (open_base_files): Add lto-streamer.h
15977         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
15978         (pass_ipa_cp): GGC collect.
15979         * toplev. (compile_file): Do not output symbols.
15980         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
15981         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
15982         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
15983         * lto-section-in.c: Include ggc.h
15984         (lto_new_in_decl_state): Alloc in GGC.
15985         (lto_delete_in_decl_state): Likewise.
15986         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
15987         Collect.
15988
15989 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
15990
15991         PR target/42895
15992         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
15993         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
15994         (HONOR_REG_ALLOC_ORDER): Describe new macro.
15995         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
15996         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
15997         account only if HONOR_REG_ALLOC_ORDER is not defined.
15998         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
15999         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
16000
16001 2010-04-29  Jon Grant  <04@jguk.org>
16002
16003         * collect2.c (vflag): Change type from int to bool.
16004         (debug): Likewise.
16005         (helpflag): New global bool.
16006         (main): Set vflag and debug with boolean, not integer truth values.
16007         Accept new "--help" option and output usage text if found.
16008         * collect2.h (vflag): Update prototype.
16009         (debug): Likewise.
16010
16011 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
16012
16013         PR bootstrap/43936
16014         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
16015
16016 2010-04-29  Richard Guenther  <rguenther@suse.de>
16017
16018         PR bootstrap/43935
16019         * plugin.h (invoke_plugin_callbacks): Annotate arguments
16020         with ATTRIBUTE_UNUSED.
16021
16022 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
16023
16024         PR target/43921
16025         * config/i386/i386.c (get_some_local_dynamic_name): Replace
16026         INSN_P with NONDEBUG_INSN_P.
16027         (distance_non_agu_define): Likewise.
16028         (distance_agu_use): Likewise.
16029
16030 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
16031
16032         From Dominique d'Humieres  <dominiq@lps.ens.fr>
16033         PR bootstrap/43858
16034         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
16035         test_set.
16036
16037 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
16038
16039         * plugin.h (invoke_plugin_callbacks): New inline function.
16040         * plugin.c (flag_plugin_added): New global flag.
16041         (add_new_plugin): Initialize above flag.
16042         (invoke_plugin_callbacks): Rename to ...
16043         (invoke_plugin_callbacks_full): ... this.
16044
16045 2010-04-28  Jan Hubicka  <jh@suse.cz>
16046
16047         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
16048         (lto_varpool_replace_node): New.
16049         (lto_symtab_resolve_symbols): Resolve varpool nodes.
16050         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
16051         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
16052         * cgraph.h (varpool_node_ptr): New type.
16053         (varpool_node_ptr): New vector.
16054         (varpool_node_set_def): New structure.
16055         (varpool_node_set): New type.
16056         (varpool_node_set): New vector.
16057         (varpool_node_set_element_def): New structure.
16058         (varpool_node_set_element, const_varpool_node_set_element): New types.
16059         (varpool_node_set_iterator): New type.
16060         (varpool_node): Add prev pointers, add used_from_other_partition,
16061         in_other_partition.
16062         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
16063         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
16064         varpool_get_node, varpool_remove_node): Declare.
16065         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
16066         varpool_node_set_size): New inlines.
16067         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
16068         * tree-pass.h (varpool_node_set_def): Forward declare.
16069         (ipa_opt_pass_d): Summary writting takes vnode sets too.
16070         (ipa_write_optimization_summaries): Update prototype.
16071         * ipa-cp.c (ipcp_write_summary): Update.
16072         * ipa-reference.c (ipa_reference_write_summary): Update.
16073         * lto-cgraph.c (lto_output_varpool_node): New static function.
16074         (output_varpool): New function.
16075         (input_varpool_node): New static function.
16076         (input_varpool_1): New function.
16077         (input_cgraph): Input varpool.
16078         * ipa-pure-const.c (pure_const_write_summary): Update.
16079         * lto-streamer-out.c (lto_output): Update, output varpool too.
16080         (write_global_stream): Kill WPA hack.
16081         (produce_asm_for_decls): Update.
16082         (output_alias_pair_p): Handle variables.
16083         (output_unreferenced_globals): Output only needed partition of varpool.
16084         * ipa-inline.c (inline_write_summary): Update.
16085         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
16086         cgraph.
16087         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
16088         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
16089         varpool_node_set_new, varpool_node_set_add,
16090         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
16091         debug_varpool_node_set): New functions.
16092         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
16093         (execute_one_pass): Process new decls too.
16094         (ipa_write_summaries_2): Pass around vsets.
16095         (ipa_write_summaries_1): Likewise.
16096         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
16097         to add.
16098         (ipa_write_optimization_summaries_1): Pass around vsets.
16099         (ipa_write_optimization_summaries): Likewise.
16100         * varpool.c (varpool_get_node): New.
16101         (varpool_node): Update doubly linked lists.
16102         (varpool_remove_node): New.
16103         (dump_varpool_node): More dumping.
16104         (varpool_enqueue_needed_node): Update doubly linked lists.
16105         (decide_is_variable_needed): Kill ltrans hack.
16106         (varpool_finalize_decl): Kill lto hack.
16107         (varpool_assemble_decl): Skip decls in other partitions.
16108         (varpool_assemble_pending_decls): Update doubly linkes lists.
16109         (varpool_empty_needed_queue): Likewise.
16110         (varpool_extra_name_alias): Likewise.
16111         * lto-streamer.c (lto_get_section_name): Add vars section.
16112         * lto-streamer.h (lto_section_type): Update.
16113         (output_varpool, input_varpool): Declare.
16114
16115 2010-04-28  Mike Stump  <mikestump@comcast.net>
16116
16117         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
16118
16119 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
16120
16121         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
16122         record or union type with RECORD_OR_UNION_TYPE_P predicate.
16123         (lto_input_ts_type_tree_pointers): Likewise.
16124         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
16125         (lto_output_ts_type_tree_pointers): Likewise.
16126
16127 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
16128
16129         Uniquization of constants at the Tree level
16130         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
16131         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
16132         bit to the end.
16133         (tree_output_constant_def): Declare.
16134         * gimplify.c (gimplify_init_constructor): When using block copy, first
16135         uniquize the constant constructor on the RHS.
16136         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
16137         DECL_IN_CONSTANT_POOL flag.
16138         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
16139         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
16140         constant pool.
16141         (assemble_variable): Deal with symbols belonging to the tree constant
16142         pool.
16143         (get_constant_section): Add ALIGN parameter and simplify.
16144         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
16145         (assemble_constant_contents): Use the expression of the VAR_DECL.
16146         (output_constant_def_contents): Use the alignment of the VAR_DECL.
16147         (tree_output_constant_def): New global function.
16148         (mark_constant): Use the expression of the VAR_DECL.
16149         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
16150         its expression.
16151         (output_object_block): Likewise and assemble the expression.
16152
16153 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
16154
16155         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
16156         hash_tree, eq_tree): New tree hash table.
16157         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
16158         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
16159         lto_orig_address_remove): Reimplement.
16160
16161 2010-04-28  Xinliang David Li  <davidxl@google.com>
16162
16163         PR c/42643
16164         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
16165         (compute_uninit_opnds_pos): New function.
16166         (is_non_loop_exit_postdominating): New function.
16167         (compute_control_dep_chain): New function.
16168         (find_pdom): New function.
16169         (convert_control_dep_chain_into_preds): New function.
16170         (find_predicates): New function.
16171         (find_control_equiv_block): New function.
16172         (collect_phi_def_edges): New function.
16173         (find_def_preds): New function.
16174         (find_dom): New function.
16175         (dump_predicates): New function.
16176         (get_cmp_code): New function.
16177         (is_value_included_in): New function.
16178         (find_matching_predicate_in_rest_chains): New function.
16179         (use_pred_not_overlap_with_undef_path_pred): New function.
16180         (is_use_properly_guarded): New function.
16181         (normalize_cond_1): New function.
16182         (is_and_or_or): New function.
16183         (normalize_cond): New function.
16184         (is_gcond_subset_of): New function.
16185         (is_subset_of_any): New function.
16186         (is_or_set_subset_of): New function.
16187         (is_and_set_subset_of): New function.
16188         (is_norm_cond_subset_of): New function.
16189         (is_pred_expr_subset_of): New function.
16190         (is_pred_chain_subset_of): New function.
16191         (is_included_in): New function.
16192         (is_superset_of): New function.
16193         (find_uninit_use): New function.
16194         (warn_uninitialized_phi): New function.
16195         (compute_possibly_undefined_names): New function.
16196         (ssa_undefined_value_p): New function.
16197         (execute_late_warn_uninitialized): New function.
16198         * tree-ssa.c (ssa_undefined_value_p): Removed.
16199         (warn_uninit): Changed to extern.
16200         (warn_uninitialized_phi): Removed.
16201         (warn_uninitialized_vars): Changed to extern.
16202         (execute_late_warn_uninitialized): Removed
16203         * tree-flow.h: Add new prototypes.
16204         * timevar.def: Add new time variable.
16205         * Makefile.in: Add new build file.
16206
16207 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
16208
16209         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
16210         type if available.
16211
16212 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16213
16214         PR target/22224
16215         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
16216
16217 2010-04-28  Martin Jambor  <mjambor@suse.cz>
16218
16219         * cgraph.h (struct cgraph_node): New field indirect_calls.
16220         (struct cgraph_indirect_call_info): New type.
16221         (struct cgraph_edge): Removed field indirect_call. New fields
16222         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
16223         (cgraph_create_indirect_edge): Declare.
16224         (cgraph_make_edge_direct): Likewise.
16225         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
16226         * ipa-prop.h (struct ipa_param_call_note): Removed.
16227         (struct ipa_node_params): Removed field param_calls.
16228         (ipa_create_all_structures_for_iinln): Declare.
16229         * cgraph.c: Described indirect edges and uids in initial comment.
16230         (cgraph_add_edge_to_call_site_hash): New function.
16231         (cgraph_edge): Search also among the indirect edges, use
16232         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
16233         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
16234         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
16235         site hash.
16236         (initialize_inline_failed): Assign a reason to indirect edges.
16237         (cgraph_create_edge_1): New function.
16238         (cgraph_create_edge): Moved some functionality to
16239         cgraph_create_edge_1.
16240         (cgraph_create_indirect_edge): New function.
16241         (cgraph_edge_remove_callee): Add an assert checking for
16242         non-indirectness.
16243         (cgraph_edge_remove_caller): Special-case indirect edges.
16244         (cgraph_remove_edge): Likewise.
16245         (cgraph_set_edge_callee): New function.
16246         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
16247         (cgraph_make_edge_direct): New function.
16248         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
16249         the declaration of the call statement matches.
16250         (cgraph_node_remove_callees): Special-case indirect edges.
16251         (cgraph_clone_edge): Likewise.
16252         (cgraph_clone_node): Clone also the indirect edges.
16253         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
16254         indirect_call, dump count of indirect_calls edges.
16255         * ipa-prop.c (iinlining_processed_edges): New variable.
16256         (ipa_note_param_call): Create indirect edges instead of
16257         creating notes.  New parameter node.
16258         (ipa_analyze_call_uses): New parameter node, pass it on to
16259         ipa_note_param_call.
16260         (ipa_analyze_stmt_uses): Likewise.
16261         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
16262         (print_edge_addition_message): Work on edges rather than on notes.
16263         (update_call_notes_after_inlining): Likewise, renamed to
16264         update_indirect_edges_after_inlining.
16265         (ipa_create_all_structures_for_iinln): New function.
16266         (ipa_free_node_params_substructures): Do not free notes.
16267         (ipa_edge_duplication_hook): Propagate bits within
16268         iinlining_processed_edges bitmap.
16269         (ipa_node_duplication_hook): Do not duplicate notes.
16270         (free_all_ipa_structures_after_ipa_cp): Renamed to
16271         ipa_free_all_structures_after_ipa_cp.
16272         (free_all_ipa_structures_after_iinln): Renamed to
16273         ipa_free_all_structures_after_iinln.
16274         (ipa_write_param_call_note): Removed.
16275         (ipa_read_param_call_note): Removed.
16276         (ipa_write_indirect_edge_info): New function.
16277         (ipa_read_indirect_edge_info): Likewise.
16278         (ipa_write_node_info): Do not stream notes, do stream information
16279         in indirect edges.
16280         (ipa_read_node_info): Likewise.
16281         (lto_ipa_fixup_call_notes): Removed.
16282         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
16283         * ipa-inline.c (pass_ipa_inline): Likewise.
16284         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
16285         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
16286         * tree-inline.c (copy_bb): Removed an unnecessary double check for
16287         is_gimple_call.
16288         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
16289         edges.
16290         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
16291         (output_cgraph): Stream also indirect edges.
16292         (lto_output_edge): Added capability to stream indirect edges.
16293         (input_edge): Likewise.
16294         (input_cgraph_1): Likewise.
16295         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
16296         of indirect edges.
16297
16298 2010-04-28  Richard Guenther  <rguenther@suse.de>
16299
16300         PR tree-optimization/43879
16301         PR tree-optimization/43909
16302         * tree-ssa-structalias.c (struct variable_info): Add
16303         only_restrict_pointers flag.
16304         (new_var_info): Initialize it.  Increment stats.total_vars here.
16305         (create_function_info_for): Do not increment stats.total_vars here.
16306         (get_function_part_constraint): Fix build with C++.
16307         (insert_into_field_list): Remove.
16308         (push_fields_onto_fieldstack): Properly merge fields.
16309         (create_variable_info_for): Split and simplify.
16310         (create_variable_info_for_1): New piece.
16311         (intra_create_variable_infos): Properly make restrict constraints
16312         from parameters.
16313
16314 2010-04-28  Richard Guenther  <rguenther@suse.de>
16315
16316         PR c++/43880
16317         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
16318
16319 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16320             Jan Hubicka  <hubicka@ucw.cz>
16321
16322         * doc/invoke.texi (-Wsuggest-attribute=const,
16323         -Wsuggest-attribute=pure): Document.
16324         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
16325         (function_always_visible_to_compiler_p,
16326         suggest_attribute, warn_function_pure, warn_function_const):
16327         New functions.
16328         (check_call): Improve debug info.
16329         (analyze_function): Do not check availability.
16330         (add_new_function): Check availability.
16331         (propagate): Output warnings.
16332         (skip_function_for_local_pure_const): New function.
16333         (local_pure_const): Use it; output warnings.
16334         * common.opt (Wsuggest-attribute=const,
16335         Wsuggest-attribute=pure): New.
16336
16337 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
16338
16339         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
16340         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
16341         or DW_CFA_def_cfa_offset{,_sf}.
16342
16343 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
16344
16345         * tree.h: Fix truncated long macros.
16346
16347 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
16348
16349         * collect2.c (TARGET_64BIT): Redefine to target's default.
16350         * tlink.c: Likewise.
16351         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
16352         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
16353         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
16354         for underscoring __USER_LABEL_PREFIX__.
16355         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
16356         (SUB_LINK_ENTRY32): New.
16357         (SUB_LINK_ENTRY64): New.
16358         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
16359         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
16360         (SUB_LINK_ENTRY64): New.
16361         (SUB_LINK_ENTRY): New.
16362         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
16363         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
16364         x64 target is choosen.
16365         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
16366         * configure: Regenerated.
16367         * configure.ac (leading-mingw64-underscores): Option added.
16368
16369 2010-04-27  Jan Hubicka  <jh@suse.cz>
16370
16371         * doc/invoke.texi (-fipa-profile): Document.
16372         * opts.c (decode_options): Enable ipa-profile at -O1.
16373         * timevar.def (TV_IPA_PROFILE): Define.
16374         * common.opt (fipa-profile): Add.
16375         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
16376         flag for clones.
16377         (cgraph_propagate_frequency): Handle only local ones.
16378         * tree-pass.h (pass_ipa_profile): Declare.
16379         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
16380         (pass_ipa_profile): Use TV_IPA_PROFILE.
16381         * ipa.c (ipa_profile): New function.
16382         (gate_ipa_profile): Likewise.
16383         (pass_ipa_profile): New global variable.
16384         * passes.c (pass_ipa_profile): New.
16385
16386 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
16387
16388         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
16389
16390 2010-04-27  Martin Jambor  <mjambor@suse.cz>
16391
16392         PR middle-end/43812
16393         * ipa.c (dissolve_same_comdat_group_list): New function.
16394         (function_and_variable_visibility): Call
16395         dissolve_same_comdat_group_list when comdat group contains external or
16396         newly local nodes.
16397         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
16398         lists are circular and that they contain only DECL_ONE_ONLY nodes.
16399
16400 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
16401
16402         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
16403         (const_hash_1) <VECTOR_CST>: New case.
16404         (compare_constant) <VECTOR_CST>: Likewise.
16405         <ADDR_EXPR>: Deal with LABEL_REFs.
16406         (copy_constant) <VECTOR_CST>: New case.
16407
16408 2010-04-27  Jan Hubicka  <jh@suse.cz>
16409
16410         * cgraph.c (cgraph_propagate_frequency): New function.
16411         * cgraph.h (cgraph_propagate_frequency): Declare.
16412         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
16413         cgraph_propagate_frequency.
16414
16415 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
16416
16417         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
16418
16419 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
16420
16421         PR target/40657
16422         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
16423         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
16424         here to determine which regs to push and how much stack to reserve.
16425
16426 2010-04-27  Jie Zhang  <jie@codesourcery.com>
16427
16428         * doc/gimple.texi (gimple_statement_with_ops): Remove
16429         addresses_taken field.
16430         (gimple_statement_with_memory_ops): Likewise.
16431
16432 2010-04-27  Jan Hubicka  <jh@suse.cz>
16433
16434         * tree-inline.c (eni_inlining_weights): Remove.
16435         (estimate_num_insns): Special case more builtins.
16436
16437 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
16438
16439         PR c/32207
16440         * c-typeck.c (build_binary_op): Move forward check for comparison
16441         pointer with null pointer constant and adjust the diagnostic message.
16442
16443 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
16444
16445         PR lto/42776
16446         * configure.ac (gcc_cv_as_section_has_align): Set if installed
16447         binutils supports extended .section directive needed by LTO, or
16448         warn if older binutils found.
16449         (LTO_BINARY_READER): New AC_SUBST'd variable.
16450         (LTO_USE_LIBELF): Likewise.
16451         * gcc/config.gcc (lto_binary_reader): New target-specific configure
16452         variable.
16453         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
16454         (LTO_USE_LIBELF): Likewise.
16455         * configure: Regenerate.
16456
16457         * collect2.c (is_elf): Rename from this ...
16458         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
16459          object files in addition to ELF-formatted ones.
16460         (scan_prog_file): Caller updated.  Also allow for LTO info marker
16461         symbol to be prefixed or not by an extra underscore.
16462
16463         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
16464         * config/i386/winnt.c: Also #include lto-streamer.h
16465         (i386_pe_asm_named_section): Specify 1-byte section alignment for
16466         LTO named sections.
16467         (i386_pe_asm_output_aligned_decl_common): Add comment.
16468         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
16469
16470 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
16471
16472         PR target/43889
16473         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
16474         Add missing earlyclobber for second alternative.
16475
16476 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
16477
16478         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
16479         bits for artificial defs at the top of the block.
16480         * fwprop.c (single_def_use_enter_block): Don't call it.
16481
16482 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
16483
16484         PR 43715
16485         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
16486         instead of "$gcc_cv_objdump -T".
16487         Use "-undefined dynamic_lookup" on darwin.
16488         * gcc/configure: Regenerate.
16489
16490 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
16491
16492         PR c/43893
16493         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
16494
16495 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
16496
16497         * c-parser.c (struct c_token): Move location field up.
16498         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
16499         (struct c_declspecs): Convert typespec_word, storage_class, and
16500         default_int_p into bitfields.
16501         (struct c_declarator): Move loc field up.
16502
16503 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
16504
16505         * cfgloop.h (struct loop): Move can_be_parallel field up.
16506         * ipa-prop.h (struct ip_node_params): Move bitfields up.
16507         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
16508         down.
16509         (struct iv_cand): Convert pos field into a bitfield.
16510         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
16511         field up.
16512         (struct _stmt_vec_info): Shuffle fields for better packing.
16513
16514 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
16515
16516         * varasm.c (IN_NAMED_SECTION): Remove guard.
16517         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
16518         (IN_NAMED_SECTION_P): ...this.
16519         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
16520         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
16521
16522 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
16523
16524         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
16525         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
16526         of shadowing it.  Fix comments.
16527
16528 2010-04-26  Jan Hubicka  <jh@suse.cz>
16529
16530         * cgraph.c (cgraph_create_node): Set node frequency to normal.
16531         (cgraph_clone_node): Copy function frequency.
16532         * cgraph.h (node_frequency): New enum
16533         (struct cgraph_node): Add.
16534         * final.c (rest_of_clean_state): Update.
16535         * lto-cgraph.c (lto_output_node): Output node frequency.
16536         (input_overwrite_node): Input node frequency.
16537         * tre-ssa-loop-ivopts (computation_cost): Update.
16538         * lto-streamer-out.c (output_function): Do not output function
16539         frequency.
16540         * predict.c (maybe_hot_frequency_p): Update and handle functions
16541         executed once.
16542         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
16543         attribute lookup.
16544         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
16545         (compute_function_frequency): Set noreturn functions to be executed
16546         once.
16547         (choose_function_section): Update.
16548         * lto-streamer-in.c (input_function): Do not input function frequency.
16549         * function.c (allocate_struct_function): Do not initialize function
16550         frequency.
16551         * function.h (function_frequency): Remove.
16552         (struct function): Remove function frequency.
16553         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
16554         (try_update): Update.
16555         * tree-inline.c (initialize_cfun): Do not update function frequency.
16556         * passes.c (pass_init_dump_file): Update.
16557         * i386.c (ix86_compute_frame_layout): Update.
16558         (ix86_pad_returns): Update.
16559
16560 2010-04-26  Jie Zhang  <jie@codesourcery.com>
16561
16562         PR tree-optimization/43833
16563         * tree-vrp.c (range_int_cst_p): New.
16564         (range_int_cst_singleton_p): New.
16565         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
16566         when both operands are constants.  Use range_int_cst_p in
16567         BIT_IOR_EXPR case.
16568
16569 2010-04-26  Jan Hubicka  <jh@suse.cz>
16570
16571         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
16572
16573 2010-04-26  Richard Guenther  <rguenther@suse.de>
16574
16575         PR lto/43080
16576         * gimple.c (gimple_decl_printable_name): Deal gracefully
16577         with a NULL DECL_NAME.
16578
16579 2010-04-26  Richard Guenther  <rguenther@suse.de>
16580
16581         PR lto/42425
16582         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
16583         if emitting debug information and it is either a function
16584         or a namespace decl.
16585
16586 2010-04-26  Ira Rosen  <irar@il.ibm.com>
16587
16588         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
16589         determine if the statement is vectorizable, and a macro to access it.
16590         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
16591         Skip statements that can't be vectorized. If the analysis fails,
16592         mark the statement as unvectorizable if vectorizing basic block.
16593         (vect_compute_data_refs_alignment): Likewise.
16594         (vect_verify_datarefs_alignment): Skip statements marked as
16595         unvectorizable. Add print.
16596         (vect_analyze_group_access): Skip statements that can't be
16597         vectorized. If the analysis fails, mark the statement as
16598         unvectorizable if vectorizing basic block.
16599         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
16600         * tree-vect-stmts.c (vectorizable_store): Fix the number of
16601         generated stmts for SLP.
16602         (new_stmt_vec_info): Initialize the new field.
16603         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
16604         statements marked as unvectorizable.
16605
16606 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
16607
16608         * c-common.c (flag_isoc1x): New.
16609         (flag_isoc99): Update comment.
16610         * c-common.h (flag_isoc1x): New.
16611         (flag_isoc99): Update comment.
16612         * c-cppbuiltin.c (builtin_define_float_constants): Also define
16613         __<type>_DECIMAL_DIG__.
16614         * c-opts.c (set_std_c1x): New.
16615         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
16616         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
16617         * c.opt (-std=c1x, -std=gnu1x): New options.
16618         * doc/cpp.texi: Mention -std=c1x.
16619         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
16620         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
16621         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
16622         * doc/standards.texi: Mention C1X.
16623         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
16624         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
16625         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
16626         Define for C1X.
16627
16628 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
16629
16630         * config/i386/gmon-sol2.c (_mcleanup): Change format string
16631         placeholder from 0x%x to %#x.
16632         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
16633         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
16634         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
16635         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
16636         * config/i386/i386.c (ix86_target_string): Ditto.
16637         (output_pic_addr_const): Ditto.
16638         (print_operand): Ditto.
16639
16640 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
16641
16642         * combine.c (find_split_point): Add third argument.  Use it
16643         to find nested multiply-accumulate instructions.  Adjust calls.
16644         (try_combine): Adjust call to find_split_point.
16645
16646 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
16647
16648         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
16649
16650 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
16651
16652         PR tree-optimization/41442
16653         * fold-const.c (merge_truthop_with_opposite_arm): New function.
16654         (fold_binary_loc): Call it.
16655
16656 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16657
16658         * toplev.c (general_init): Set default for fdiagnostics-show-option.
16659         * opts.c (common_handle_option): Allow disabling it.
16660         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
16661
16662 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
16663
16664         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
16665         between modes if both types are integral.
16666
16667 2010-04-23  Richard Guenther  <rguenther@suse.de>
16668
16669         PR tree-optimization/43572
16670         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
16671
16672 2010-04-23  Richard Guenther  <rguenther@suse.de>
16673
16674         PR lto/43455
16675         * tree-inline.c (tree_can_inline_p): Also check compatibility
16676         of return types.
16677
16678 2010-04-23  Martin Jambor  <mjambor@suse.cz>
16679
16680         PR tree-optimization/43846
16681         * tree-sra.c (struct access): New flag grp_assignment_read.
16682         (build_accesses_from_assign): Set grp_assignment_read.
16683         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
16684         (enum mark_read_status): New type.
16685         (analyze_access_subtree): Propagate grp_assignment_read, create
16686         accesses also if both direct_read and root->grp_assignment_read.
16687
16688 2010-04-23  Martin Jambor  <mjambor@suse.cz>
16689
16690         PR middle-end/43835
16691         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
16692         function does not have type attributes.
16693
16694 2010-04-23  Richard Guenther  <rguenther@suse.de>
16695
16696         PR lto/42653
16697         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
16698         of FUNCTION_DECLs.
16699
16700 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16701
16702         * sese.h (create_if_region_on_edge): Remove.
16703
16704         * sese.c (create_if_region_on_edge): Make static.
16705
16706         * tree-inline.c: Do not include ggc.h.
16707
16708         * expr.c: Do not include ggc.h.
16709
16710         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
16711         dependencies.
16712
16713 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
16714
16715         PR target/43744
16716         * config/sh/sh.c (find_barrier): Don't emit a constant pool
16717         in the middle of insns for casesi_worker_2.
16718
16719 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
16720
16721         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
16722
16723 2010-04-22  Ira Rosen  <irar@il.ibm.com>
16724
16725         PR tree-optimization/43842
16726         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
16727         loop unrolling in update of exit phis. Fix comment.
16728         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
16729         least two reduction statements in the loop before starting SLP
16730         analysis.
16731
16732 2010-04-22  Nick Clifton  <nickc@redhat.com>
16733
16734         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
16735
16736 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
16737
16738         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
16739         to simplify a + ~a.
16740
16741 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16742
16743         * tree-parloops.c (loop_parallel_p): New argument
16744         parloop_obstack.  Pass it down.
16745         (parallelize_loops): New variable parloop_obstack.  Initialize it,
16746         pass it down, free it.
16747
16748         * tree-loop-linear.c (linear_transform_loops): Pass down
16749         lambda_obstack.
16750
16751         * tree-data-ref.h (lambda_compute_access_matrices): New argument
16752         of type struct obstack *.
16753
16754         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
16755         scratch_obstack.  Initialize it, pass down, free it.
16756
16757         * lambda.h (lambda_loop_new): Remove.
16758         (lambda_matrix_new, lambda_matrix_inverse)
16759         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
16760         argument of type struct obstack *.
16761
16762         * lambda-trans.c (lambda_trans_matrix_new): New argument
16763         lambda_obstack.  Pass it down, use obstack allocation for ret.
16764         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
16765         it down.
16766
16767         * lambda-mat.c (lambda_matrix_get_column)
16768         (lambda_matrix_project_to_null): Remove.
16769         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
16770         allocation for mat.
16771         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
16772         lambda_obstack.
16773
16774         * lambda-code.c (lambda_loop_new): New function.
16775         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
16776         (lambda_compute_auxillary_space, lambda_compute_target_space)
16777         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
16778         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
16779         (build_access_matrix): New argument lambda_obstack.  Use obstack
16780         allocation for am.
16781         (lambda_compute_step_signs, lambda_compute_access_matrices): New
16782         argument lambda_obstack.  Pass it down.
16783
16784 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
16785
16786         * optabs.h (expand_widening_mult): Declare.
16787
16788 2010-04-22  Richard Guenther  <rguenther@suse.de>
16789
16790         PR tree-optimization/43845
16791         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
16792         lookup the CALL_EXPR function and arguments.
16793
16794 2010-04-22  Nick Clifton  <nickc@redhat.com>
16795
16796         * config/stormy16/stormy16.c
16797         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
16798         * config/stormy16/stormy16.h: Tidy up formatting.
16799         (DONT_USE_BUILTIN_SETJMP): Remove definition.
16800         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
16801         (ineqbranchsi): Delete pattern.
16802         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
16803         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
16804         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
16805         stormy16-lib2-ucmpsi2.c.
16806
16807 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
16808
16809         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
16810         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
16811         extra set merge_set_noclobber, and use it to relax the final test
16812         slightly.
16813         * df.h (df_simulate_find_noclobber_defs): Declare.
16814         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
16815         conditional defs.
16816         (df_simulate_find_noclobber_defs): New function.
16817
16818 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
16819
16820         * config/i386/i386.md: Use {} around multi-line preparation statements.
16821
16822 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16823
16824         * c-tree.h (push_init_level, pop_init_level, set_init_index)
16825         (process_init_element): New argument of type struct obstack *.
16826
16827         * c-typeck.c (push_init_level, pop_init_level, set_designator)
16828         (set_init_index, set_init_label, set_nonincremental_init)
16829         (set_nonincremental_init_from_string, find_init_member)
16830         (output_init_element, output_pending_init_elements)
16831         (process_init_element): New argument braced_init_obstack.  Pass it
16832         down.
16833         (push_range_stack, add_pending_init): New argument
16834         braced_init_obstack.  Use obstack allocation.
16835
16836         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
16837         braced_init_obstack.  Pass it down.
16838         (c_parser_braced_init): New variables ret, braced_init_obstack.
16839         Initialize obstack, pass it down and finally free it.
16840
16841 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
16842
16843         PR middle-end/29274
16844         * tree-pass.h (pass_optimize_widening_mul): Declare.
16845         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
16846         gate_optimize_widening_mul): New static functions.
16847         (pass_optimize_widening_mul): New.
16848         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
16849         <case MULT_EXPR>: Remove support for widening multiplies.
16850         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
16851         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
16852         simplify_gen_unary rather than directly building extensions.
16853         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
16854         WIDEN_MULT_EXPR.
16855         * expmed.c (expand_widening_mult): New function.
16856         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
16857
16858 2010-04-21  Jan Hubicka  <jh@suse.cz>
16859
16860         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
16861         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
16862         * lto-wpa-fixup.c: Remove.
16863         * Makefile.in (lto-wpa-fixup.o): Remove.
16864         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
16865         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
16866         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
16867
16868 2010-04-21  Jan Hubicka  <jh@suse.cz>
16869
16870         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
16871         add write_optimization_summary, read_optimization_summary.
16872         (ipa_write_summaries_of_cgraph_node_set): Remove.
16873         (ipa_write_optimization_summaries): Declare.
16874         (ipa_read_optimization_summaries): Declare.
16875         * ipa-cp.c (pass_ipa_cp): Update.
16876         * ipa-reference.c (pass_ipa_reference): Update.
16877         * ipa-pure-const.c (pass_ipa_pure_const): Update.
16878         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
16879         Update.
16880         * ipa-inline.c (pass_ipa_inline): Update.
16881         * ipa.c (pass_ipa_whole_program): Update.
16882         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
16883         * passes.c (ipa_write_summaries_1): Do not test wpa.
16884         (ipa_write_optimization_summaries_1): New.
16885         (ipa_write_optimization_summaries): New.
16886         (ipa_read_summaries): Do not test ltrans.
16887         (ipa_read_optimization_summaries_1): New.
16888         (ipa_read_optimization_summaries): New.
16889
16890 2010-04-21  Jan Hubicka  <jh@suse.cz>
16891
16892         * lto-cgraph.c (lto_output_node): Do not output comdat groups
16893         for boundary nodes.
16894         (output_cgraph): Do not arrange comdat groups for boundary nodes.
16895
16896 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
16897
16898         PR debug/40040
16899         * dwarf2out.c (add_name_and_src_coords_attributes): Add
16900         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
16901
16902 2010-04-21  Jan Hubicka  <jh@suse.cz>
16903
16904         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
16905
16906 2010-04-21  Jan Hubicka  <jh@suse.cz>
16907
16908         * varpool.c (decide_is_variable_needed): Variable is always needed
16909         during ltrans.
16910
16911 2010-04-21  Jan Hubicka  <jh@suse.cz>
16912
16913         * opts.c (decode_options): Enable pure-const pass for whopr.
16914
16915 2010-04-21  Jan Hubicka  <jh@suse.cz>
16916
16917         * cgraph.c (dump_cgraph_node): Dump also assembler name.
16918         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
16919         at WPA dumping.
16920         (cgraph_decide_inlining): Do not expect callee to be removed in all
16921         cases.
16922
16923 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
16924
16925         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
16926
16927 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
16928
16929         * config/i386/i386.md (x86_shrd): Add athlon_decode and
16930         amdfam10_decode attributes.
16931
16932 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
16933
16934         PR middle-end/43570
16935         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
16936         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
16937         (lower_copyprivate_clauses): Use private var in outer
16938         context instead of original var.  Make sure the types
16939         are correct for VLAs.
16940
16941 2010-04-21  Richard Guenther  <rguenther@suse.de>
16942
16943         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
16944         to non-pointer objects.
16945
16946 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
16947
16948         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
16949         last chain entry if it starts with the still current label.
16950         (add_location_or_const_value_attribute): Check that
16951         loc_list->first->next is NULL instead of comparing ->first with ->last.
16952         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
16953         to add_var_loc_to_decl.
16954
16955         * dwarf2out.c (output_call_frame_info): For dw_cie_version
16956         >= 4 add also address size and segment size fields into CIE header.
16957
16958         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
16959         long as address size is the same as sizeof (void *) and
16960         segment size is 0.
16961         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
16962         address size or segment size is unexpected, return DW_EH_PE_omit.
16963         (classify_object_over_fdes): If get_cie_encoding returned
16964         DW_EH_PE_omit, return -1.
16965         (init_object): If classify_object_over_fdes returned -1,
16966         pretend there were no FDEs at all.
16967
16968 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
16969
16970         * config/i386/i386.md (bswap<mode>2): Macroize expander from
16971         bswap{si,di}2 using SWI48 mode iterator.
16972         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
16973         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
16974         set modrm attribute of bswap insn to 0 and remove length attribute.
16975         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
16976         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
16977         set mode attribute to <MODE> and remove length attribute.
16978
16979 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
16980
16981         PR rtl-optimization/43520
16982         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
16983         zero available registers.
16984
16985 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16986
16987         * builtins.c (fold_builtin_cproj): Fold more cases.
16988
16989 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16990
16991         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
16992         (fold_builtin_1): Fold builtin cproj.
16993         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
16994         Use ATTR_CONST_NOTHROW_LIST.
16995
16996 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
16997
16998         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
16999         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
17000         ffsi2_no_cmove for !TARGET_CMOVE.
17001         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
17002         (ffssi2): Remove expander.
17003         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
17004         mode iterator.
17005         (ctz<mode>2): Ditto from ctz{si,di}2.
17006         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
17007         mode iterator.
17008         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
17009         mode iterator.
17010
17011 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
17012
17013         * dwarf2out.c (AT_linkage_name): Define.
17014         (clone_as_declaration): Handle DW_AT_linkage_name.
17015         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
17016         of DW_AT_MIPS_linkage_name.
17017         (move_linkage_attr): Likewise.
17018         (dwarf2out_finish): Likewise.
17019
17020 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
17021
17022         PR middle-end/41952
17023         * fold-const.c (fold_comparison): New folding rule.
17024
17025 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
17026
17027         * double-int.h (double_int_setbit): Declare.
17028         * double-int.c (double_int_setbit): New function.
17029         * rtl.h (immed_double_int_const): Declare.
17030         * emit-rtl.c (immed_double_int_const): New function.
17031         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
17032         and immed_double_int_const functions.
17033         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
17034         expand_copysign_bit): (Ditto.).
17035         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
17036         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
17037         * dojump.c (prefer_and_bit_test): (Ditto.).
17038         * expr.c (convert_modes, reduce_to_bit_field_precision,
17039         const_vector_from_tree): (Ditto.).
17040         * expmed.c (mask_rtx, lshift_value): (Ditto.).
17041
17042 2010-04-20  Jan Hubicka  <jh@suse.cz>
17043
17044         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
17045         (dump_cgraph_node): Dump new flags.
17046         * cgraph.h (struct cgraph_node): Add flags
17047         reachable_from_other_partition and in_other_partition.
17048         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
17049         other partition can not be removed.
17050         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
17051         the other partition must be output; silence sanity checking on
17052         leaking functions bodies from other paritition.
17053         * lto-cgraph.c (reachable_from_other_partition_p): New function.
17054         (lto_output_node): Output new flags; do not sanity check that inline
17055         clones are output; drop lto_forced_extern_inline_p code; do not mock
17056         visibility flags at partition boundaries.
17057         (add_node_to): New function.
17058         (output_cgraph): Use it to sort functions so masters appear before
17059         clones.
17060         (input_overwrite_node): Input new flags.
17061         * passes.c (ipa_write_summaries): Do not call
17062         lto_new_extern_inline_states.
17063         * lto-section-out.c (forced_extern_inline,
17064         lto_new_extern_inline_states lto_delete_extern_inline_states,
17065         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
17066         * lto-streamer.h (lto_new_extern_inline_states,
17067         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
17068         lto_forced_extern_inline_p): Kill.
17069
17070 2010-04-20  Richard Guenther  <rguenther@suse.de>
17071
17072         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
17073         from vars that can have pointers.
17074         (process_constraint): Dump useless constraints.
17075
17076 2010-04-20  Richard Guenther  <rguenther@suse.de>
17077
17078         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
17079         (dump_sa_points_to_info): Remove asserts.
17080         (init_base_vars): nothing_id isn't an escape point nor does it
17081         have pointers.
17082
17083 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
17084
17085         * tree.h (TYPE_REF_IS_RVALUE): Define.
17086         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
17087         should_move_die_to_comdat, prune_unused_types_walk): Handle
17088         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
17089         (modified_type_die, gen_reference_type_die): Emit
17090         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
17091         if TYPE_REF_IS_RVALUE and -gdwarf-4.
17092
17093 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17094
17095         PR target/43635
17096         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
17097         calls for -fpic -m31 if they have been sibcall optimized.
17098
17099 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
17100
17101         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
17102         ar.lc fixed and call-used.
17103
17104         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
17105
17106 2010-04-19  Jan Hubicka  <jh@suse.cz>
17107
17108         * opts.c (decode_options): Disable whpr incompatible passes.
17109         * lto/lto.c (lto_1_to_1_map): Skip clones.
17110         (read_cgraph_and_symbols): Do not mark everything as needed.
17111         (do_whole_program_analysis): Do map only after optimizing;
17112         set proper cgraph_state; use passmanager.
17113
17114 2010-04-19  DJ Delorie  <dj@redhat.com>
17115
17116         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
17117         POINTER_PLUS_EXPR and fix them.
17118
17119 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
17120
17121         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
17122         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
17123         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
17124         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
17125         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
17126         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
17127         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
17128         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
17129         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
17130         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
17131         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
17132
17133 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
17134
17135         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
17136         (check_cond_move_block): Likewise.
17137         (cond_move_process_if_block): Likewise.
17138         (noce_find_if_block): Improve formatting.
17139         (find_if_header): Pass 0 to memset and tweak conditions.
17140         (cond_exec_find_if_block): Fix long lines and tweak conditions.
17141
17142 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
17143
17144         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
17145         for -gdwarf-4.
17146
17147         PR middle-end/43337
17148         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
17149         with non-local decl doesn't need chain.
17150
17151 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
17152
17153         * ira-color.c (allocno_reload_assign): Avoid accumulating
17154         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
17155
17156 2010-04-19  Martin Jambor  <mjambor@suse.cz>
17157
17158         * gimple.h (create_tmp_reg): Declare.
17159         * gimplify.c (create_tmp_reg): New function.
17160         (gimplify_return_expr): Use create_tmp_reg.
17161         (gimplify_omp_atomic): Likewise.
17162         (gimple_regimplify_operands): Likewise.
17163         * tree-dfa.c (make_rename_temp): Likewise.
17164         * tree-predcom.c (predcom_tmp_var): Likewise.
17165         (reassociate_to_the_same_stmt): Likewise.
17166         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
17167         (get_replaced_param_substitute): Likewise.
17168         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
17169         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
17170         * tree-ssa-pre.c (get_representative_for): Likewise.
17171         (create_expression_by_pieces): Likewise.
17172         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
17173         (create_tailcall_accumulator): Likewise.
17174
17175 2010-04-19  Martin Jambor  <mjambor@suse.cz>
17176
17177         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
17178         new_stmt.
17179         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
17180
17181 2010-04-19  Richard Guenther  <rguenther@suse.de>
17182
17183         PR tree-optimization/43796
17184         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
17185         from SCEV in the lattice.
17186         (vrp_visit_phi_node): Dump change.
17187
17188 2010-04-19  Richard Guenther  <rguenther@suse.de>
17189
17190         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
17191         * configure: Re-generated.
17192
17193 2010-04-19  Richard Guenther  <rguenther@suse.de>
17194
17195         PR tree-optimization/43783
17196         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
17197         constant ARRAY_REF operands two and three if possible.
17198
17199 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
17200
17201         PR target/43766
17202         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
17203
17204 2010-04-19  Jie Zhang  <jie@codesourcery.com>
17205
17206         PR target/43662
17207         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
17208
17209 2010-04-19  Ira Rosen  <irar@il.ibm.com>
17210
17211         PR tree-optimization/37027
17212         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
17213         and macro to access it.
17214         (vectorizable_reduction): Add argument.
17215         (vect_get_slp_defs): Likewise.
17216         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
17217         statements for possible use in SLP.
17218         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
17219         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
17220         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
17221         add new argument.
17222         (vectorizable_reduction): Likewise.
17223         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
17224         vect_get_slp_defs.
17225         (vectorizable_type_demotion, vectorizable_type_promotion,
17226         vectorizable_store): Likewise.
17227         (vect_analyze_stmt): Update call to vectorizable_reduction.
17228         (vect_transform_stmt): Likewise.
17229         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
17230         (vect_build_slp_tree): Fix indentation. Check that there are no loads
17231         from different interleaving chains in same node.
17232         (vect_slp_rearrange_stmts): New function.
17233         (vect_supported_load_permutation_p): Allow load permutations for
17234         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
17235         inside SLP nodes if necessary.
17236         (vect_analyze_slp_instance): Handle reductions.
17237         (vect_analyze_slp): Try to build SLP instances originating from groups
17238         of reductions.
17239         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
17240         (vect_get_constant_vectors): Create initial vectors for reductions
17241         according to reduction code. Add new argument.
17242         (vect_get_slp_defs): Add new argument, pass it to
17243         vect_get_constant_vectors.
17244         (vect_schedule_slp_instance): Remove SLP tree root statements.
17245
17246 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
17247
17248         * tree.h (ENUM_IS_SCOPED): Define.
17249         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
17250         for ENUM_IS_SCOPED enums.
17251
17252 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
17253
17254         * fold-const.c (fold_comparison): Use ssizetype.
17255         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
17256         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
17257         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
17258         * tree-object-size.c (compute_object_sizes): Use size_type_node.
17259
17260         * tree.h (initialize_sizetypes): Remove parameter.
17261         (build_common_tree_nodes): Remove second parameter.
17262         * stor-layout.c (initialize_sizetypes): Remove parameter.
17263         Always create an unsigned type.
17264         (set_sizetype): Assert that the passed type is unsigned and simplify.
17265         * tree.c (build_common_tree_nodes): Remove second parameter.
17266         Adjust call to initialize_sizetypes.
17267         * c-decl.c (c_init_decl_processing): Remove second argument in call to
17268         build_common_tree_nodes.
17269
17270 2010-04-18  Matthias Klose  <doko@ubuntu.com>
17271
17272         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
17273
17274 2010-04-18  Ira Rosen  <irar@il.ibm.com>
17275
17276         PR tree-optimization/43771
17277         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
17278         load permutation doesn't have gaps.
17279
17280 2010-04-18  Jan Hubicka  <jh@suse.cz>
17281
17282         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
17283         (sse_prologue_save_insn expander): Use new pattern.
17284         (sse_prologue_save_insn1): New pattern and splitter.
17285         (sse_prologue_save_insn): Update to deal also with 64bit aligned
17286         blocks.
17287         * i386.c (setup_incoming_varargs_64): Do not compute jump
17288         destination here.
17289         (ix86_gimplify_va_arg): Update alignment needed.
17290         (ix86_local_alignment): Do not align all local arrays to 128bit.
17291
17292 2010-04-17  Jan Hubicka  <jh@suse.cz>
17293
17294         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
17295
17296 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
17297
17298         * arm.md (negdi2): Remove redundant code to force values into a
17299         register.
17300
17301 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
17302
17303         * arm/bpabi.S: Add EABI alignment attributes to objects.
17304         * arm/bpabi-v6m.S: Likewise.
17305         * arm/crti.asm: Likewise.
17306         * arm/crtn.asm: Likewise.
17307         * arm/lib1funcs.asm: Likewise.
17308         * arm/libunwind.S: Likewise.
17309
17310 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
17311
17312         * arm-protos.h (tune_params): New structure.
17313         * arm.c (current_tune): New variable.
17314         (arm_constant_limit): Delete.
17315         (struct processors): Add pointer to the tune parameters.
17316         (arm_slowmul_tune): New tuning option.
17317         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
17318         (all_cores): Adjust to pick up the tuning model.
17319         (arm_constant_limit): New function.
17320         (arm_override_options): Select the appropriate tuning model.  Delete
17321         initialization of arm_const_limit.
17322         (arm_split_constant): Use the new constant-limit model.
17323         (arm_rtx_costs): Pick up the current tuning model.
17324         * arm.md (is_strongarm, is_xscale): Delete.
17325         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
17326         for Xscale variant architectures.
17327         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
17328
17329 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17330
17331         * config/arm/arm.c (arm_gen_constant): Remove unused variable
17332         can_shift.
17333         (arm_rtx_costs_1): Remove unused variable extra_cost.
17334         (arm_unwind_emit_set): Use variable offset.
17335         (thumb1_output_casesi): Remove unused variable flags.
17336
17337 2010-04-16  Jeff Law  <law@redhat.com>
17338
17339         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
17340         needing assignment rather than doing a two-phase assignment.  Remove
17341         unused variable 'm'.
17342
17343 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
17344
17345         PR bootstrap/43767
17346         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
17347
17348 2010-04-16  Doug Kwan  <dougkwan@google.com>
17349
17350         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
17351         (next_operand_entry_id): New static variable.
17352         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
17353         (add_to_ops_vec): Assigned unique ID to operand entry.
17354         (struct oecount_s): New field ID.
17355         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
17356         (undistribute_ops_list): Assign unique IDs to oecounts.
17357         (init_reassoc): reset next_operand_entry_id.
17358
17359 2010-04-16  Doug Kwan  <dougkwan@google.com>
17360
17361         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
17362         missing left parenthesis.
17363
17364 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
17365
17366         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
17367         *btdi_rex64 using SWI48 mode iterator.
17368         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
17369         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
17370         *jcc_btdi_mask_rex64.
17371
17372 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
17373
17374         * double-int.h (tree_to_double_int): Convert to macro.
17375         * double-int.c (tree_to_double_int): Remove.
17376
17377 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
17378
17379         PR debug/43762
17380         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
17381         with want_address 2 and in case a single element list might be
17382         possible, call it again with want_address 0.
17383
17384 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
17385
17386         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
17387         case 'W' print operands for HI mode.
17388         * config/h8300/h8300.h (Y0, Y2) : New constraints.
17389         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
17390         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
17391         * config/h8300/predicate.md (bit_register_indirect_operand): New.
17392
17393         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
17394
17395         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
17396         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
17397         #xx:3 and #xx:4 mode.
17398
17399         * config/h8300/h8300.md (inverted load with HImode dest): Add
17400         support for H8300SX.
17401
17402         * config/h8300/predicate.md (bit_operand): Allow immediate values that
17403         satisfy 'U' constraint.
17404
17405 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17406
17407         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
17408         * configure: Regenerate.
17409         * config.in: Regenerate.
17410         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
17411         works.
17412
17413 2010-04-16  Richard Guenther  <rguenther@suse.de>
17414
17415         * tree.h (struct tree_decl_minimal): Move pt_uid ...
17416         (struct tree_decl_common): ... here.
17417         (DECL_PT_UID): Adjust.
17418         (SET_DECL_PT_UID): Likewise.
17419         (DECL_PT_UID_SET_P): Likewise.
17420
17421 2010-04-16  Richard Guenther  <rguenther@suse.de>
17422
17423         PR tree-optimization/43572
17424         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
17425         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
17426         * tree-flow.h (is_call_clobbered): Remove.
17427         * tree-flow-inline.h (is_call_clobbered): Likewise.
17428         * tree-dfa.c (dump_variable): Do not dump call clobber state.
17429         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
17430         (execute_return_slot_opt): Adjust.
17431         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
17432         check for call clobbered vars here.
17433         (find_tail_calls): Move tailcall verification to the
17434         proper place.
17435
17436 2010-04-16  Diego Novillo  <dnovillo@google.com>
17437
17438         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
17439
17440 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
17441
17442         PR target/40603
17443         * config/arm/arm.md (cbranchqi4): New pattern.
17444         * config/arm/predicates.md (const0_operand,
17445         cbranchqi4_comparison_operator): New predicates.
17446
17447 2010-04-16  Richard Guenther  <rguenther@suse.de>
17448
17449         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
17450         (dump_gimple_stmt): Likewise.
17451
17452 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
17453
17454         * recog.h (struct recog_data): New field is_operator.
17455         (struct insn_operand_data): New field is_operator.
17456         * recog.c (extract_insn): Set recog_data.is_operator.
17457         * genoutput.c (output_operand_data): Emit code to set the
17458         is_operator field.
17459         * reload.c (find_reloads): Use it rather than testing for an
17460         empty constraint string.
17461
17462         PR target/41514
17463         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
17464         If the previous insn is a cbranchsi4_insn with the same arguments,
17465         omit the compare instruction.
17466
17467         * config/arm/arm.md (addsi3_cbranch): If destination is a high
17468         register, inputs must be low registers and we need a low register
17469         scratch.  Handle alternative 2 like alternative 3.
17470
17471 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
17472
17473         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
17474         don't call get_addr on both.  If one expression is a VALUE and
17475         the other a REG, check VALUE's locs if the REG isn't among them.
17476
17477 2010-04-16  Christian Bruel  <christian.bruel@st.com>
17478
17479         * config/sh/sh.h (sh_frame_pointer_required): New function.
17480         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
17481         (flag_omit_frame_pointer) Set.
17482         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
17483         (rounded_frame_size): Adjust size with outgoing_args_size.
17484         (sh_set_return_address): Must return from stack pointer.
17485         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
17486         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
17487         (ACCUMULATE_OUTGOING_ARGS): Define.
17488         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
17489         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
17490
17491 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
17492
17493         PR target/43471
17494         * config/sh/sh.c (sh_legitimize_reload_address): Use
17495         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
17496         Remove a unneeded check for offset_base.
17497
17498 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
17499
17500         * configure: Regenerated.
17501
17502 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17503
17504         * config/s390/s390.c (s390_call_save_register_used): Switch back
17505         to HARD_REGNO_NREGS.
17506
17507 2010-04-15  Richard Guenther  <rguenther@suse.de>
17508
17509         * alias.c (alias_set_subset_of): Handle alias-set zero
17510         child properly.
17511
17512 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
17513             Julian Brown  <julian@codesourcery.com>
17514
17515         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
17516         alternatives according to use of high and low regs.
17517         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17518         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
17519         optimizing for size on Thumb-2.
17520
17521 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
17522
17523         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
17524
17525 2010-04-15  Richard Guenther  <rguenther@suse.de>
17526
17527         * tree-ssa-structalias.c (struct variable_info): Add
17528         is_fn_info flag.
17529         (new_var_info): Initialize it.
17530         (dump_constraints): Support printing last added constraints.
17531         (debug_constraints): Adjust.
17532         (dump_constraint_graph): Likewise.
17533         (make_heapvar_for): Check for NULL cfun.
17534         (get_function_part_constraint): New function.
17535         (get_fi_for_callee): Likewise.
17536         (find_func_aliases): Properly implement IPA PTA constraints.
17537         (process_ipa_clobber): New function.
17538         (find_func_clobbers): Likewise.
17539         (insert_into_field_list_sorted): Remove.
17540         (create_function_info_for): Properly allocate vars for IPA mode.
17541         Do not use insert_into_field_list_sorted.
17542         (create_variable_info_for): Properly generate constraints for
17543         global vars in IPA mode.
17544         (dump_solution_for_var): Always dump the solution.
17545         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
17546         (find_what_var_points_to): Adjust.
17547         (pt_solution_set): Change.
17548         (pt_solution_ior_into): New function.
17549         (pt_solution_empty_p): Export.
17550         (pt_solution_includes_global): Adjust.
17551         (pt_solution_includes_1): Likewise.
17552         (pt_solutions_intersect_1): Likewise.
17553         (dump_sa_points_to_info): Check some invariants.
17554         (solve_constraints): Move constraint dumping ...
17555         (compute_points_to_sets): ... here.
17556         (ipa_pta_execute): ... and here.
17557         (compute_may_aliases): Do not re-compute points-to info
17558         locally if IPA info is available.
17559         (ipa_escaped_pt): New global var.
17560         (ipa_pta_execute): Properly implement IPA PTA.
17561         * tree-into-ssa.c (dump_decl_set): Support dumping
17562         decls not in referenced-vars.
17563         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
17564         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
17565         (dump_points_to_solution): Likewise.
17566         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
17567         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
17568         (remap_gimple_stmt): Reset call clobber/use information if necessary.
17569         (copy_decl_to_var): Copy DECL_PT_UID.
17570         (copy_result_decl_to_var): Likewise.
17571         * tree.c (make_node_stat): Initialize DECL_PT_UID.
17572         (copy_node_stat): Copy it.
17573         * tree.h (DECL_PT_UID): New macro.
17574         (SET_DECL_PT_UID): Likewise.
17575         (DECL_PT_UID_SET_P): Likewise.
17576         (struct tree_decl_minimal): Add pt_uid member.
17577         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
17578         (pt_solution_empty_p): Declare.
17579         (pt_solution_set): Adjust.
17580         (ipa_escaped_pt): Declare.
17581         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
17582         * gimple-pretty-print.c (pp_points_to_solution): New function.
17583         (dump_gimple_call): Dump call clobber/use information.
17584         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
17585         * tree-pass.h (TDF_ALIAS): New dump option.
17586         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
17587         * doc/invoke.texi (-fipa-pta): Update documentation.
17588
17589 2010-04-15  Richard Guenther  <rguenther@suse.de>
17590
17591         * Makefile.in (OBJS-common): Add gimple-fold.o.
17592         (gimple-fold.o): New rule.
17593         * tree.h (maybe_fold_offset_to_reference,
17594         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
17595         prototypes ...
17596         * gimple.h: ... here.
17597         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
17598         may_propagate_address_into_dereference): Move prototypes ...
17599         * gimple.h: ... here.
17600         * tree-ssa-ccp.c (get_symbol_constant_value,
17601         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
17602         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
17603         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
17604         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
17605         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
17606         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
17607         gimplify_and_update_call_from_tree): Move ...
17608         * gimple-fold.c: ... here.  New file.
17609         (ccp_fold_builtin): Rename to ...
17610         (gimple_fold_builtin): ... this.
17611         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
17612
17613 2010-04-15  Richard Guenther  <rguenther@suse.de>
17614
17615         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
17616         fit_double_type, force_fit_type_double, add_double_with_sign,
17617         neg_double, mul_double_with_sign, lshift_double, rshift_double,
17618         lrotate_double, rrotate_double, div_and_round_double): Move ...
17619         * double-int.c: ... here.
17620         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
17621         add_double, neg_double, mul_double_with_sign, mul_double,
17622         lshift_double, rshift_double, lrotate_double, rrotate_double,
17623         div_and_round_double): Move prototypes ...
17624         * double-int.h: ... here.
17625
17626 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
17627
17628         PR target/43742
17629         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
17630         matching constraints to ensure inputs match the output.
17631
17632 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
17633
17634         PR target/43742
17635         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
17636         in an input-only operand.
17637
17638 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
17639
17640         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
17641         (double_int_not, double_int_lshift, double_int_rshift): Declare.
17642         (double_int_negative_p): Convert to static inline function.
17643         * double-int.c (double_int_lshift, double_int_lshift): New functions.
17644         (double_int_negative_p): Remove.
17645         * tree.h (lshift_double, rshift_double):
17646         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
17647         * fold-const.c (fold_convert_const_int_from_real,
17648         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
17649         (lshift_double): Change type of arith argument to bool.
17650         (rshift_double): Change type of arith argument to bool. Correct
17651         comment.
17652         * expmed.c (mask_rtx, lshift_value): (Ditto.).
17653
17654 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
17655
17656         PR target/21803
17657         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
17658         at the start and end of the then/else blocks, and omit them from the
17659         conversion.
17660         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
17661         argument; all callers changed.  Pass zero to old_insns_match_p instead.
17662         (flow_find_head_matching_sequence): New function.
17663         (old_insns_match_p): Check REG_EH_REGION notes for calls.
17664         * basic-block.h (flow_find_cross_jump,
17665         flow_find_head_matching_sequence): Declare functions.
17666
17667 2010-04-14  Jason Merrill  <jason@redhat.com>
17668
17669         PR c++/36625
17670         * c-common.c (attribute_takes_identifier_p): New fn.
17671         * c-common.h: Declare it.
17672
17673 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17674
17675         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
17676         splitter condition.
17677         (*udivmod<mode>4): Ditto.
17678
17679 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17680
17681         * config/i386/i386.md (maxmin_int): Rename code attribute from
17682         maxminiprefix and update all users.
17683         (maxmin_float): Ditto from maxminfprefix.
17684         (logic): Ditto from logicprefix.
17685         (absneg_mnemonic): Ditto from absnegprefix.
17686         * config/i386/mmx.md: Update all users of maxminiprefix,
17687         maxminfprefix and logicprefix for rename.
17688         * config/i386/sse.md: Ditto.
17689         * config/i386/sync.md (sync_<code><mode>): Update for
17690         logicprefix rename.
17691
17692 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17693
17694         PR 42966
17695         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
17696         warnings converted to errors.
17697
17698 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17699
17700         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
17701         used insn_type variable.
17702         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
17703         to avoid set-but-not-used warning.
17704
17705 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17706
17707         * df-core.c (df_ref_debug): Change format string placeholder
17708         from 0x%x to %#x.
17709         * dwarf2asm.c (dw2_asm_output_data_raw,
17710         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
17711         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
17712         * dwarf2out.c (output_cfi, output_cfi_directive,
17713         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
17714         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
17715         Ditto.
17716         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
17717         * print-rtl.c (print_rtx): Ditto.
17718
17719 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17720
17721         PR middle-end/42694
17722         * builtins.c (expand_builtin_pow_root): New function to expand pow
17723         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
17724         series of sqrt and cbrt calls under -ffast-math.
17725         (expand_builtin_pow): Call it.
17726
17727 2010-04-14  Michael Matz  <matz@suse.de>
17728
17729         PR tree-optimization/42963
17730         * tree-cfg.c (touched_switch_bbs): New static variable.
17731         (group_case_labels_stmt): New function broken out from ...
17732         (group_case_labels): ... here, use the above.
17733         (start_recording_case_labels): Allocate touched_switch_bbs.
17734         (end_recording_case_labels): Deallocate it, call
17735         group_case_labels_stmt.
17736         (gimple_redirect_edge_and_branch): Remember index of affected BB.
17737
17738 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17739
17740         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
17741         from insn template.
17742
17743 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17744
17745         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
17746
17747 2010-04-13  Jan Hubicka  <jh@suse.cz>
17748
17749         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
17750         of optimized out static functions.
17751         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
17752         cost computation.  Also sanity check for overflows.
17753         (update_caller_keys): Update cgraph_edge_badness call; properly
17754         update fibheap and sanity check that it is up to date.
17755         (add_new_edges_to_heap): Update cgraph_edge_badness.
17756         (cgraph_decide_inlining_of_small_function): Likewise;
17757         add sanity checking that badness in heap is up to date;
17758         improve dumping of reason; Update badness of calls to the
17759         offline copy of function currently inlined; dump badness
17760         of functions not inlined because of unit growth limits.
17761
17762 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
17763
17764         PR middle-end/32628
17765         * c-common.c (pointer_int_sum): Disregard overflow that occured only
17766         because of sign-extension change when converting to sizetype here...
17767         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
17768
17769         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
17770         the folding to constants.  Remove redundant final conversion.
17771         (fold_binary) <associate>: Do not associate if the re-association of
17772         constants alone overflows.
17773         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
17774         to the end of the list.
17775         (multiple_of_p) <COND_EXPR>: New case.
17776
17777 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17778
17779         * opt-functions.awk (opt_sanitized_name): New.
17780         (opt_enum): New.
17781         * optc-gen.awk: Use it
17782         * opth-gen.awk: Use it.
17783
17784 2010-04-13  Martin Jambor  <mjambor@suse.cz>
17785
17786         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
17787         (sra_modify_assign): Delete stmts loading dead data even if racc has no
17788         children.  Call replace_uses_with_default_def_ssa_name to handle
17789         SSA_NAES on lhs.
17790
17791 2010-04-13  Michael Matz  <matz@suse.de>
17792
17793         PR middle-end/43730
17794         * builtins.c (expand_builtin_interclass_mathfn): Also create
17795         a register if the predicate doesn't match.
17796
17797 2010-04-13  Diego Novillo  <dnovillo@google.com>
17798
17799         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
17800         * c-pch.c: Include timevar.h.
17801         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
17802         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
17803         * ggc-common.c: Include timevar.h.
17804         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
17805         * timevar.def (TV_PCH_SAVE): Define.
17806         (TV_PCH_CPP_SAVE): Define.
17807         (TV_PCH_PTR_REALLOC): Define.
17808         (TV_PCH_PTR_SORT): Define.
17809         (TV_PCH_RESTORE): Define.
17810         (TV_PCH_CPP_RESTORE): Define.
17811
17812 2010-04-13  Michael Matz  <matz@suse.de>
17813
17814         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
17815         into MINUS_EXPRs.
17816         (can_reassociate_p): New function.
17817         (break_up_subtract_bb, reassociate_bb): Use it.
17818
17819 2010-04-13  Richard Guenther  <rguenther@suse.de>
17820
17821         PR bootstrap/43737
17822         * builtins.c (c_readstr): Fix assert.
17823
17824 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
17825
17826         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
17827         when generating cltd insn.
17828
17829         (*ashl<mode>3_1): Remove special handling for register operand 2.
17830         (*ashlsi3_1_zext): Ditto.
17831         (*ashlhi3_1): Ditto.
17832         (*ashlhi3_1_lea): Ditto.
17833         (*ashlqi3_1): Ditto.
17834         (*ashlqi3_1_lea): Ditto.
17835         (*<shiftrt_insn><mode>3_1): Ditto.
17836         (*<shiftrt_insn>si3_1_zext): Ditto.
17837         (*<shiftrt_insn>qi3_1_slp): Ditto.
17838         (*<rotate_insn><mode>3_1): Ditto.
17839         (*<rotate_insn>si3_1_zext): Ditto.
17840         (*<rotate_insn>qi3_1_slp): Ditto.
17841
17842 2010-04-13  Richard Guenther  <rguenther@suse.de>
17843
17844         * tree-ssa-structalias.c (callused_id): Remove.
17845         (call_stmt_vars): New.
17846         (get_call_vi): Likewise.
17847         (lookup_call_use_vi): Likewise.
17848         (lookup_call_clobber_vi): Likewise.
17849         (get_call_use_vi): Likewise.
17850         (get_call_clobber_vi): Likewise.
17851         (make_transitive_closure_constraints): Likewise.
17852         (handle_const_call): Adjust to do per-call call-used handling.
17853         (handle_pure_call): Likewise.
17854         (find_what_var_points_to): Remove general callused handling.
17855         (init_base_vars): Likewise.
17856         (init_alias_vars): Initialize call_stmt_vars.
17857         (compute_points_to_sets): Process call-used and call-clobbered
17858         vars for call statements.
17859         (delete_points_to_sets): Free call_stmt_vars.
17860
17861 2010-04-13  Richard Guenther  <rguenther@suse.de>
17862
17863         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
17864         Only add RW dependence for dependence distance zero.
17865         Adjust maximal vectorization factor according to dependences.
17866         Move alignment handling ...
17867         (vect_find_same_alignment_drs): ... here.  New function.
17868         (vect_analyze_data_ref_dependences): Adjust.
17869         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
17870         (vect_analyze_data_refs): Adjust minimal vectorization factor
17871         according to data references.
17872         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
17873         dependences before determining the vectorization factor.
17874         Analyze alignment after determining the vectorization factor.
17875         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
17876         dependences before alignment.
17877         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
17878         Adjust prototype.
17879         (vect_analyze_data_refs): Likewise.
17880         (MAX_VECTORIZATION_FACTOR): New define.
17881
17882 2010-04-13  Duncan Sands  <baldrick@free.fr>
17883
17884         * except.h (lang_eh_type_covers): Remove.
17885         * except.c (lang_eh_type_covers): Likewise.
17886
17887 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17888             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17889
17890         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
17891         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
17892         UNITS_PER_LONG where it is ABI relevant.
17893         (s390_return_addr_rtx): Likewise.
17894         (s390_back_chain_rtx): Likewise.
17895         (s390_frame_area): Likewise.
17896         (s390_frame_info): Likewise.
17897         (s390_initial_elimination_offset): Likewise.
17898         (save_gprs): Likewise.
17899         (s390_emit_prologue): Likewise.
17900         (s390_emit_epilogue): Likewise.
17901         (s390_function_arg_advance): Likewise.
17902         (s390_function_arg): Likewise.
17903         (s390_va_start): Likewise.
17904         (s390_gimplify_va_arg): Likewise.
17905         (s390_function_profiler): Likewise.
17906         (s390_optimize_prologue): Likewise.
17907         (s390_rtx_costs): Likewise.
17908         (s390_secondary_reload): Likewise.
17909         (s390_promote_function_mode): Likewise.
17910         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
17911         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
17912         registers available.
17913         (s390_unwind_word_mode): New function.
17914         (s390_function_value): Split 64 bit values into register pair if
17915         used as return value.
17916         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
17917         function call parameters.  Handle parallels.
17918         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
17919         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
17920         (DWARF_CIE_DATA_ALIGNMENT): New macro.
17921         (s390_expand_setmem): Remove unused variable src_addr.
17922         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
17923         deal with 64 bit registers.
17924         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
17925         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
17926         (UNITS_PER_LONG): New macro.
17927         * libjava/include/s390-signal.h: Define extended ucontext
17928         structure containing the upper halfs of the 64 bit registers.
17929
17930 2010-04-13  Simon Baldwin  <simonb@google.com>
17931
17932         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
17933
17934 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
17935
17936         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
17937         rvalue on the RHS if the LHS is of a non-renamable type.
17938         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
17939
17940 2010-04-13  Matthias Klose  <doko@ubuntu.com>
17941
17942         * gcc.c (cc1_options): Handle -iplugindir before processing
17943         the cc1 spec. Only add -iplugindir once.
17944         (cpp_unique_options): Add -iplugindir option if -fplugin* options
17945         found.
17946         * common.opt (iplugindir): Remove `Separate' property, initialize.
17947         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
17948         option.
17949         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
17950         (distclean): Remove plugin dir.
17951         * doc/invoke.texi: Document -iplugindir.
17952
17953 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
17954
17955         * doc/plugins.texi (Loading Plugins): Document short
17956         -fplugin=foo option.
17957         (Plugin API): Mention default_plugin_dir_name function.
17958
17959         * gcc.c (find_file_spec_function): Add new declaration.
17960         (static_spec_func): Use it for "find-file".
17961         (find_file_spec_function): Add new function.
17962         (cc1_options): Add -iplugindir option if -fplugin* options found.
17963
17964         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
17965
17966         * plugin.c (add_new_plugin): Updated comment, and handle short
17967         plugin name.
17968         (default_plugin_dir_name): Added new function.
17969
17970         * common.opt (iplugindir): New option to set the plugin directory.
17971
17972 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
17973
17974         * config/i386/i386.md (any_rotate): New code iterator.
17975         (rotate_insn): New code attribute.
17976         (rotate): Ditto.
17977         (SWIM124): New mode iterator.
17978         (<rotate_insn>ti3): New expander.
17979         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
17980         any_rotate code iterator.
17981         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
17982         using any_rotate code iterator and SWIM124 mode iterator.
17983         (ix86_rotlti3): New insn_and_split pattern.
17984         (ix86_rotrti3): Ditto.
17985         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
17986         ix86_rotl{di,ti}3 patterns.
17987         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
17988         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
17989         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
17990         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
17991         code iterator and SWI mode iterator.
17992         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
17993         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
17994         code iterator.
17995         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
17996         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
17997         (bswap rotatert splitter): Add splitter.
17998         (bswap splitter): Macroize splitter using any_rotate code iterator.
17999         Add insn predicate to split only for TARGET_USE_XCHGB or when
18000         optimizing function for size.
18001
18002 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
18003
18004         * config/pa/pa.c (emit_move_sequence): Remove use of
18005         deleted variable flag_argument_noalias.
18006
18007 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18008
18009         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
18010         configurations.
18011         Add to unsupported targets list.
18012         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
18013         sparc*-sun-solaris2.[567]* from target lists.
18014         * configure: Regenerate.
18015         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
18016         removal.
18017         Remove Solaris 7 patch references.
18018         (Specific, sparc-sun-solaris2.7): Removed.
18019         (sparc-sun-solaris2*): Update Solaris 7 example.
18020         (sparc64-*-solaris2*): Likewise.
18021
18022 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18023
18024         * config.build (alpha*-dec-osf4*): Remove.
18025         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
18026         of obsolete configurations.
18027         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
18028         support.
18029         * config/alpha/t-osf4: Renamed to ...
18030         * config/alpha/t-osf5: ... this.
18031         * config/alpha/osf.h: Renamed to ...
18032         * config/alpha/osf5.h: ... this.
18033         Merged old osf5.h contents.
18034         Update comments.
18035         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
18036         (EXTRA_SPECS): Removed.
18037         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
18038         reflect removal of Tru64 UNIX V4.0/V5.0 support.
18039         Document that.
18040
18041 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18042
18043         * doc/contrib.texi (Contributors, Rainer Orth): Update.
18044
18045 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
18046
18047         PR/43702
18048         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
18049         __thiscall convention.
18050
18051 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
18052
18053         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
18054         orig_base.
18055         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
18056
18057 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
18058
18059         * function.c (assign_parms_initialize_all): Add unused attribute
18060         to fntype.
18061
18062 2010-04-12  Richard Guenther  <rguenther@suse.de>
18063
18064         * gsstruct.def (GSS_CALL): New.
18065         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
18066         * gimple.h: Include tree-ssa-alias.h.
18067         (struct gimple_statement_call): New.
18068         (union gimple_statement_struct_d): Add gimple_call member.
18069         (gimple_call_reset_alias_info): Declare.
18070         (gimple_call_use_set): New function.
18071         (gimple_call_clobber_set): Likewise.
18072         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
18073         * gimple.c (gimple_call_reset_alias_info): New function.
18074         (gimple_build_call_1): Call it.
18075         * lto-streamer-in.c (input_gimple_stmt): Likewise.
18076         * tree-inline.c (remap_gimple_stmt): Likewise.
18077         (expand_call_inline): Remove callused handling.
18078         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
18079         * tree-dfa.c (dump_variable): Likewise.
18080         * tree-parloops.c (parallelize_loops): Likewise.
18081         * tree-ssa.c (init_tree_ssa): Likewise.
18082         (delete_tree_ssa): Likewise.
18083         * tree-flow-inline.h (is_call_used): Remove.
18084         * tree-flow.h (struct gimple_df): Remove callused member.
18085         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
18086         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
18087         (ref_maybe_used_by_call_p_1): Simplify.
18088         (call_may_clobber_ref_p_1): Likewise.
18089         * tree-ssa-structalias.c (compute_points_to_sets): Set
18090         the call stmt used and clobbered sets.
18091         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
18092         (find_tail_calls): Verify the tail call.
18093
18094 2010-04-12  Richard Guenther  <rguenther@suse.de>
18095
18096         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
18097         single-iteration always-inline inlining.
18098         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
18099         (cgraph_decide_inlining): Do not handle always-inline specially.
18100         (try_inline): Remove always-inline cycle detection special case.
18101         Do not recurse on always-inlines.
18102         (cgraph_early_inlining): Do not iterate if not optimizing.
18103         (cgraph_gate_early_inlining): remove.
18104         (pass_early_inline): Run unconditionally.
18105         (gate_cgraph_decide_inlining): New function.
18106         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
18107         not inlining or optimizing.
18108         (cgraph_decide_inlining_of_small_functions): Also consider
18109         always-inline functions.
18110         (cgraph_default_inline_p): Return true for nodes which should
18111         disregard inline limits.
18112         (estimate_function_body_sizes): Assume zero size and time for
18113         nodes which are marked as disregarding inline limits.
18114         (cgraph_decide_recursive_inlining): Do not perform recursive
18115         inlining on always-inline nodes.
18116
18117 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
18118
18119         PR bootstrap/43699
18120         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
18121         for exprs satisfying handled_component_p.
18122
18123 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
18124
18125         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
18126         non-constant aggregate elements.
18127
18128         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
18129         is a real initialization.
18130
18131 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
18132
18133         PR c/36774
18134         * c-decl.c (start_function): Move forward check for nested function.
18135
18136 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
18137
18138         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
18139         * config/sh/sh.c: Include reload.h.
18140         (sh_legitimize_reload_address): New.
18141         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
18142         sh_legitimize_reload_address.
18143
18144 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
18145
18146         * config/sh/sh.md (*movqi_pop): New insn pattern.
18147         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
18148
18149 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
18150
18151         * config/i386/i386.md (any_shiftrt): New code iterator.
18152         (shiftrt_insn): New code attribute.
18153         (shiftrt): Ditto.
18154         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
18155         using any_shiftrt code iterator.
18156         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
18157         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
18158         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
18159         pattern from corresponding peephole2 patterns.
18160         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
18161         using any_shiftrt code iterator.
18162         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
18163         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
18164         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
18165         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
18166         *{ashr,lshr}<mode>3_cmp_zext.
18167         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
18168
18169 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
18170
18171         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
18172         scratch register.
18173         (*lshr<mode>3_cconly): Ditto.
18174
18175 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
18176
18177         * config/i386/i386.md (lshr<mode>3): Macroize expander from
18178         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
18179         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
18180         pattern from *lshr{di,ti}3_1 and corresponding splitters using
18181         DWI mode iterator.
18182         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
18183         from corresponding peephole2 patterns.
18184         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
18185         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
18186         and *lshrdi3_1_rex64 using SWI mode iterator.
18187         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
18188         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
18189         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
18190         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
18191         and *lshrdi3_cmp_rex64 using SWI mode iterator.
18192         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
18193         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
18194         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
18195         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
18196         SWI mode iterator.
18197
18198 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
18199
18200         * config/i386/i386.md (ashr<mode>3): Macroize expander from
18201         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
18202         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
18203         pattern from *ashr{di,ti}3_1 and corresponding splitters using
18204         DWI mode iterator.
18205         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
18206         from corresponding peephole2 patterns.
18207         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
18208         (ashrsi3_cvt): Rename from ashrsi3_31.
18209         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
18210         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
18211         and x86_64_shift_adj_3 using SWI48 mode iterator.
18212         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
18213         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
18214         and *ashrdi3_1_rex64 using SWI mode iterator.
18215         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
18216         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
18217         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
18218         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
18219         and *ashrdi3_cmp_rex64 using SWI mode iterator.
18220         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
18221         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
18222         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
18223         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
18224         SWI mode iterator.
18225         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
18226         * config/i386/i386.c (ix86_split_ashr): Update for renamed
18227         x86_shift<mode>_adj_3 expanders.
18228
18229 2010-04-10  Wei Guozhi  <carrot@google.com>
18230
18231         PR target/42601
18232         * config/arm/arm.c (arm_pic_static_addr): New function.
18233         (legitimize_pic_address): Call arm_pic_static_addr when it detects
18234         a static symbol.
18235         (arm_output_addr_const_extra): Output expression for new pattern.
18236         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
18237
18238 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
18239
18240         * ira-costs.c (record_reg_classes): Ignore alternatives that are
18241         not enabled.
18242
18243         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
18244         * web.c: Include "insn-config.h" and "recog.h".
18245         (union_match_dups): New function.
18246         (web_main): Call it.
18247         (union_defs): Don't try to recognize match_dups.
18248
18249         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
18250         if doing so would replace the entire pattern.
18251
18252 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
18253
18254         PR target/43707
18255         PR target/43709
18256         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
18257         and splitter pattern.  Change splitter operand 1 predicate to
18258         nonmemory_operand.
18259
18260 2010-04-09  Martin Jambor  <mjambor@suse.cz>
18261
18262         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
18263         lattices are addresses of CONST_DECLs with the same initial value.
18264         (ipcp_print_all_lattices): Print values of CONST_DECLs.
18265         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
18266
18267 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
18268             Bernd Schmidt  <bernds@codesourcery.com>
18269
18270         * loop-invariant.c (replace_uses): New static function.
18271         (move_invariant_reg): Use it to ensure we can replace the uses.
18272
18273 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
18274
18275         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
18276         function template.
18277         (picochip_override_options): Enable section anchors only above -O1.
18278         (picochip_reorg): Fixed a couple of build warnings.
18279
18280 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18281
18282         * configure.ac (plugin -rdynamic test): Log result.
18283         * configure: Regenerate.
18284         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
18285         (RDYNAMIC_SPEC): Define.
18286         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
18287
18288 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18289
18290         * configure.ac: Determine Sun ld version numbers.
18291         (comdat_group): Restrict GNU ld version checks to gld.
18292         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
18293         (enable_comdat): Support --enable-comdat.
18294         * configure: Regenerate.
18295         * doc/install.texi (Configuration): Document --enable-comdat.
18296
18297 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18298
18299         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
18300         * config/sol2-gld.h: ... here.
18301         * config.gcc (sparc*-*-solaris2*): Reflect this.
18302         (i[34567]86-*-solaris2*): Use it.
18303
18304 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
18305
18306         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
18307         setup_clocks_p.
18308         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
18309
18310 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18311
18312         PR 42965
18313         * diagnostic.c (diagnostic_initialize): Initialize
18314         some_warnings_are_errors.
18315         (diagnostic_finish): New.
18316         (diagnostic_action_after_output): Call it before exiting.
18317         (diagnostic_report_diagnostic): Do not print message here. Set
18318         some_warnings_are_errors.
18319         * diagnostic.h (diagnostic_context): Delete
18320         issue_warnings_are_errors_message. Add some_warnings_are_errors.
18321         (diagnostic_finish): Declare.
18322         * toplev.c (toplev_main): Call it before exit.
18323
18324 2010-04-09  Jason Merrill  <jason@redhat.com>
18325
18326         PR c++/42623
18327         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
18328         for incomplete type.
18329
18330         PR c++/41788
18331         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
18332         based on a warning flag.
18333
18334 2010-04-09  Richard Guenther  <rguenther@suse.de>
18335
18336         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
18337
18338 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
18339
18340         PR bootstrap/43684
18341         * varasm.c (default_assemble_visibility): Wrap vars that are
18342         set, but unused, by targets without GAS.
18343         * config/rs6000/rs6000.c (paired_emit_vector_compare):
18344         Remove set, but unused, vars.
18345         (rs6000_legitimize_tls_address): Likewise.
18346         (altivec_expand_dst_builtin): Likewise.
18347         * config/darwin.c (machopic_classify_symbol): Likewise.
18348         (machopic_indirection_name): Likewise.
18349
18350 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
18351
18352         * config/i386/i386.md (DWI): New mode iterator.
18353         (S): New mode attribute.
18354         (shift_operand): Ditto.
18355         (shift_immediate_operand): Ditto.
18356         (ashl_input_operand): Ditto.
18357         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
18358         using SDWIM mode iterator.
18359         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
18360         pattern from *ashl{di,ti}3_1 and corresponding splitters using
18361         DWI mode iterator.
18362         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
18363         from corresponding peephole2 patterns.
18364         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
18365         and x86_64_shift_adj_1 using SWI48 mode iterator.
18366         (x86_shift<mode>_adj_2): Ditto.
18367         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
18368         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
18369         using SWI48 mode iterator.
18370         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
18371         *ashldi3_cmp_rex64 using SWI mode iterator.
18372         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
18373         *ashldi3_cconly_rex64 using SWI mode iterator.
18374         * config/i386/i386.c (ix86_split_ashl): Update for renamed
18375         x86_shift<mode>_adj_{1,2}.
18376         (ix86_split_ashr): Ditto.
18377         (ix86_split_lshr): Ditto.
18378
18379 2010-04-09  Richard Guenther  <rguenther@suse.de>
18380
18381         * target.h (builtin_conversion): Pass in input and output types.
18382         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
18383         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
18384         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
18385         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
18386
18387         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
18388         Handle AVX modes.
18389         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
18390
18391 2010-04-09  Richard Guenther  <rguenther@suse.de>
18392
18393         PR target/43152
18394         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
18395
18396 2010-04-09  Richard Guenther  <rguenther@suse.de>
18397
18398         * tree-vectorizer.h (struct _stmt_vec_info): Document
18399         that vectype is the type of the LHS.
18400         (supportable_widening_operation, supportable_narrowing_operation):
18401         Get both input and output vector types as arguments.
18402         (vect_is_simple_use_1): Declare.
18403         (get_same_sized_vectype): Likewise.
18404         * tree-vect-loop.c (vect_determine_vectorization_factor):
18405         Set STMT_VINFO_VECTYPE to the vector type of the def.
18406         (vectorizable_reduction): Adjust.
18407         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
18408         Adjust.  Specify the output vector type.
18409         (vect_pattern_recog_1): Adjust.
18410         * tree-vect-stmts.c (get_same_sized_vectype): New function.
18411         (vectorizable_call): Adjust.
18412         (vectorizable_conversion): Likewise.
18413         (vectorizable_operation): Likewise.
18414         (vectorizable_type_demotion): Likewise.
18415         (vectorizable_type_promotion): Likewise.
18416         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
18417         the def.
18418         (vect_is_simple_use_1): New function.
18419         (supportable_widening_operation): Get both input and output
18420         vector types.
18421         (supportable_narrowing_operation): Likewise.
18422         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
18423
18424 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
18425
18426         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
18427         __thiscall and _thiscall as predefined macros.
18428         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
18429         thiscall attribute handling.
18430         (ix86_comp_type_attributes): Likewise.
18431         (ix86_function_regparm): Likewise.
18432         (ix86_return_pops_args): Likewise.
18433         (init_cumulative_args): Likewise.
18434         (find_drap_reg): Likewise.
18435         (ix86_static_chain): Likewise.
18436         (x86_this_parameter): Likewise.
18437         (x86_output_mi_thunk): Likewise.
18438         (ix86_attribute_table): Add description for thiscall attribute.
18439         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
18440         * doc/extend.texi: Add documentation for thiscall.
18441
18442 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18443
18444         PR c++/28584
18445         * c.opt (Wint-to-pointer-cast): Available in C++.
18446         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
18447
18448 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
18449
18450         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
18451         * calls.c (expand_call): Pass the function type to aggregate_value_p.
18452         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
18453         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
18454         function type instead.  Reorder and simplify checks.
18455
18456         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
18457
18458 2010-04-08  Jing Yu  <jingyu@google.com>
18459             Zdenek Dvorak  <ook@ucw.cz>
18460
18461         PR tree-optimization/42720
18462         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
18463         loop unswitch conditions here from ...
18464         (tree_unswitch_single_loop): ... here.
18465
18466 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
18467
18468         * tree-if-conv.c: Fix comments and simplify logic.
18469
18470 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
18471
18472         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
18473         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
18474         (main_tree_if_conversion): Update call to tree_if_conversion.
18475
18476 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18477
18478         PR 42485
18479         * doc/invoke.texi (-b,-V): Delete.
18480         * doc/tm.texi: Do not mention -b.
18481         * gcc.c (display_help): Delete -b and -V.
18482         (process_command): Delete -b and -V.
18483         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
18484
18485 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
18486             Wolfgang Gellerich  <gellerich@de.ibm.com>
18487
18488         Implement target hook for loop unrolling
18489         * target.h (loop_unroll_adjust): Add a new target hook function.
18490         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
18491         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
18492         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
18493         (s390_loop_unroll_adjust): Implement the new target hook for s390.
18494         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
18495         target hook.
18496         (decide_unroll_stupid): Likewise.
18497
18498 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18499
18500         PR target/43643
18501         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
18502
18503 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18504
18505         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
18506         (Specific, *-*-solaris2*): Likewise.
18507         Don't prefer Sun as over GNU as.
18508
18509 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
18510
18511         * config/s390/s390.c (override_options): Adjust the z10 defaults
18512         for max-unroll-times, max-completely-peeled-insns
18513         and max-completely-peel-times.
18514
18515 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18516
18517         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
18518         instructions for z10.
18519         (s390_expand_setmem): Likewise.
18520         (s390_expand_cmpmem): Likewise.
18521
18522 2010-04-08  Richard Guenther  <rguenther@suse.de>
18523
18524         PR tree-optimization/43679
18525         * tree-ssa-pre.c (eliminate): Only propagate copies.
18526
18527 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
18528
18529         PR bootstrap/43681
18530         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
18531         set but not used variable warning.
18532
18533 2010-04-08  Wei Guozhi  <carrot@google.com>
18534
18535         PR target/41653
18536         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
18537         (arm_size_rtx_costs): Call the new function when optimized for size.
18538
18539 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
18540
18541         PR debug/43670
18542         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
18543         op0 is not a MEM, just return NULL instead of assertion
18544         failure.
18545         (discover_nonconstant_array_refs): Don't walk debug stmts.
18546
18547 2010-04-08  Doug Kwan  <dougkwan@google.com>
18548
18549         * configure.ac: Recognize gold and do not use its version number
18550         to test ld features.
18551         * configure: Regenerate.
18552
18553 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
18554
18555         PR middle-end/40815
18556         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
18557         (negate_value): Move code to push elements to broken_up_substracts ...
18558         (eliminate_plus_minus_pair): ... here.  Push operands that have no
18559         negative pair to plus_negates.
18560         (repropagate_negates, init_reassoc, fini_reassoc): Update.
18561
18562 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18563
18564         * doc/install.texi (Configuration): Move description of
18565         --enable-lto, --with-libelf*, --enable-gold from Java section to
18566         general section.
18567
18568         * doc/generic.texi (Working with declarations)
18569         (Function Properties, C and C++ Trees): Fix typos.
18570         * doc/sourcebuild.texi (Top Level): Likewise.
18571
18572 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
18573
18574         PR c/18624
18575         * tree.h (DECL_READ_P): Define.
18576         (struct tree_decl_common): Add decl_read_flag.
18577         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
18578         a set but not used warning.
18579         (merge_decls): Merge DECL_READ_P flag.
18580         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
18581         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
18582         * c-common.c (handle_used_attribute, handle_unused_attribute):
18583         Likewise.
18584         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
18585         New prototypes.
18586         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
18587         New functions.
18588         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
18589         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
18590         c_parser_binary_expression, c_parser_cast_expression,
18591         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
18592         Call default_function_array_read_conversion instead of
18593         default_function_array_conversion where needed.
18594         (c_parser_unary_expression, c_parser_conditional_expression,
18595         c_parser_postfix_expression_after_primary, c_parser_initelt):
18596         Likewise.  Call mark_exp_read where needed.
18597         (c_parser_statement_after_labels, c_parser_asm_operands,
18598         c_parser_typeof_specifier, c_parser_sizeof_expression,
18599         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
18600         where needed.
18601         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
18602         New.
18603         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
18604         (warn_unused_but_set_parameter): Default to warn_unused
18605         && extra_warnings.
18606         * doc/invoke.texi: Document -Wunused-but-set-variable and
18607         -Wunused-but-set-parameter.
18608
18609         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
18610         used count variable.
18611         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
18612         when operandN variables aren't used in the body of the expander
18613         or splitter.
18614         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
18615         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
18616         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
18617         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
18618         FOR_EACH_IMM_USE_ON_STMT): Likewise.
18619         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
18620         * tree.c (PROCESS_ARG): Likewise.
18621
18622 2010-04-07  Simon Baldwin  <simonb@google.com>
18623
18624         * diagnostic.h (diagnostic_override_option_index): New macro to
18625         set a diagnostic's option_index.
18626         * c-tree.h (c_cpp_error): Add warning reason argument.
18627         * opts.c (_warning_as_error_callback): New.
18628         (register_warning_as_error_callback): Store callback for
18629         warnings enabled via enable_warning_as_error.
18630         (enable_warning_as_error): Call callback, minor code tidy.
18631         * opts.h (register_warning_as_error_callback): Declare.
18632         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
18633         response to -Werror=.
18634         (c_common_init_options): Register warning_as_error_callback in opts.c.
18635         * common.opt: Add -Wno-cpp option.
18636         * c-common.c (struct reason_option_codes_t): Map cpp warning
18637         reason codes to gcc option indexes.
18638         * (c_option_controlling_cpp_error): New function, lookup the gcc
18639         option index for a cpp warning reason code.
18640         * (c_cpp_error): Add warning reason argument, call
18641         c_option_controlling_cpp_error for diagnostic_override_option_index.
18642         * doc/invoke.texi: Document -Wno-cpp.
18643
18644 2010-04-07  Richard Guenther  <rguenther@suse.de>
18645
18646         * ipa-reference.c (mark_load): Use get_base_address.
18647         (mark_store): Likewise.
18648
18649         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
18650         inserting GIMPLE_NOPs into the IL.
18651         * tree-ssa-structalias.c (get_constraint_for_component_ref):
18652         Explicitly strip handled components and indirect references.
18653
18654         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
18655         folding address expressions.
18656         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
18657         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
18658         operand_equal_p to compare decls.
18659         (ptr_deref_may_alias_decl_p): Likewise.
18660         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
18661         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
18662         Handle reversed comparison ops.
18663         * tree-sra.c (asm_visit_addr): Use get_base_address.
18664         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
18665         * ipa-reference.c (mark_address): Use get_base_address.
18666
18667 2010-04-07  Richard Guenther  <rguenther@suse.de>
18668
18669         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
18670         Propagate constants everywhere.
18671
18672 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
18673
18674         PR debug/43516
18675         * tree.c (MAX_INT_CACHED_PREC): Define.
18676         (nonstandard_integer_type_cache): New array.
18677         (build_nonstandard_integer_type): Cache results for precision
18678         <= MAX_INT_CACHED_PREC.
18679
18680 2010-04-07  Richard Guenther  <rguenther@suse.de>
18681
18682         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
18683         -fargument-noalias-global, -fargument-noalias-anything): Remove.
18684         * common.opt: Likewise.
18685         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
18686         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
18687         (nonoverlapping_memrefs_p): Likewise.
18688         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
18689         * opts.c (common_handle_option): Handle OPT_fargument_alias,
18690         OPT_fargument_noalias, OPT_fargument_noalias_anything and
18691         OPT_fargument_noalias_global for backward compatibility.
18692
18693 2010-04-07  Richard Guenther  <rguenther@suse.de>
18694
18695         PR tree-optimization/43270
18696         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
18697         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
18698         * tree-ssa-pre.c (phi_translate_1): Adjust.
18699         (fully_constant_expression): Split out vn_reference handling to ...
18700         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
18701         Fold reads from constant strings.
18702         (vn_reference_lookup): Handle fully constant references.
18703         (vn_reference_lookup_pieces): Likewise.
18704         * Makefile.in (expmed.o-warn): Add -Wno-error.
18705
18706 2010-04-07  Martin Jambor  <mjambor@suse.cz>
18707
18708         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
18709
18710 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
18711
18712         PR driver/41594
18713         * gcc.c: Add -static-libstdc++ to list of recognized options.
18714
18715 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18716
18717         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
18718
18719 2010-04-07  Richard Guenther  <rguenther@suse.de>
18720
18721         PR middle-end/42617
18722         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
18723         bases build simple mem attributes to retain points-to information.
18724
18725 2010-04-07  Richard Guenther  <rguenther@suse.de>
18726
18727         PR middle-end/42617
18728         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
18729         preserve points-to related information.
18730
18731 2010-04-07  Richard Guenther  <rguenther@suse.de>
18732
18733         PR middle-end/42617
18734         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
18735         discard plain indirect references.
18736         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
18737         * tree.c (tree_nop_conversion): Likewise.
18738
18739 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
18740
18741         PR debug/43628
18742         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
18743
18744 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
18745
18746         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
18747         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
18748
18749 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
18750
18751         * tree-if-conv.c: Fix indentation and comments.
18752
18753 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
18754
18755         * tree-if-conv.c: Sort static functions in topological order.
18756
18757 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
18758
18759         * tree-if-conv.c: Fix indentation and comments.
18760
18761 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18762
18763         PR middle-end/43519
18764         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
18765         lang_hooks.types.type_for_size instead of
18766         build_nonstandard_integer_type.
18767         When converting an unsigned type to signed, double its precision.
18768         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
18769         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
18770         (graphite_create_new_loop_guard): When ub + 1 wraps around,
18771         use lb <= ub.
18772
18773 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18774
18775         PR middle-end/43519
18776         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
18777         POINTER_PLUS_EXPR for pointer types.
18778
18779 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18780
18781         PR middle-end/43519
18782         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
18783         * graphite-clast-to-gimple.c: Include langhooks.h.
18784         (max_signed_precision_type): New.
18785         (max_precision_type): Takes two types as arguments.
18786         (precision_for_value): New.
18787         (precision_for_interval): New.
18788         (gcc_type_for_interval): New.
18789         (gcc_type_for_value): New.
18790         (gcc_type_for_clast_term): New.
18791         (gcc_type_for_clast_red): New.
18792         (gcc_type_for_clast_bin): New.
18793         (gcc_type_for_clast_expr): Split up into several functions.
18794         (gcc_type_for_clast_eq): Rewritten.
18795         (compute_bounds_for_level): New.
18796         (compute_type_for_level_1): New.
18797         (compute_type_for_level): New.
18798         (gcc_type_for_cloog_iv): Removed.
18799         (gcc_type_for_iv_of_clast_loop): Rewritten.
18800         (graphite_create_new_loop): Compute the lower and upper bound types
18801         with gcc_type_for_clast_expr.
18802         (graphite_create_new_loop_guard): Same.
18803         (find_cloog_iv_in_expr): Removed.
18804         (compute_cloog_iv_types_1): Removed.
18805         (compute_cloog_iv_types): Removed.
18806         (gloog): Do not call compute_cloog_iv_types.
18807         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
18808         GBB_CLOOG_IV_TYPES.
18809         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
18810         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
18811         (GBB_CLOOG_IV_TYPES): Removed.
18812
18813 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18814
18815         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
18816         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
18817         (detect_commutative_reduction): Same.
18818
18819 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18820
18821         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
18822         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
18823         argument.
18824         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
18825         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
18826         (rewrite_commutative_reductions_out_of_ssa): Same.
18827         * passes.c (execute_function_todo): Call verify_ssa for every pass
18828         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
18829         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
18830         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
18831         with an extra argument.
18832         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
18833         verify_ssa only when the extra argument is true.
18834         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
18835         with an extra argument.
18836         (tree_transform_and_unroll_loop): Same.
18837
18838 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18839
18840         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
18841         for all the passes of the LNO having LOOP_CLOSED_SSA.
18842         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
18843         * tree-loop-distribution.c (pass_loop_distribution): Same.
18844         * tree-pass.h (TODO_verify_loops): Removed.
18845         * tree-ssa-loop.c (pass_tree_loop_init): Same.
18846         (pass_lim): Same.
18847         (pass_tree_unswitch): Same.
18848         (pass_predcom): Same.
18849         (pass_vectorize): Same.
18850         (pass_linear_transform): Same.
18851         (pass_graphite_transforms): Same.
18852         (pass_iv_canon): Same.
18853         (pass_complete_unroll): Same.
18854         (pass_complete_unrolli): Same.
18855         (pass_parallelize_loops): Same.
18856         (pass_loop_prefetch): Same.
18857         (pass_iv_optimize): Same.
18858
18859 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
18860
18861         PR middle-end/32824
18862         * passes.c (init_optimization_passes): Move pass_lim before
18863         pass_copy_prop and pass_dce_loop.
18864
18865 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
18866
18867         PR target/43667
18868         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
18869         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
18870         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
18871         MULTI_* defines for 4 argument vpermil2p* builtins.
18872
18873 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
18874
18875         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
18876         * config/i386/i386.c (x86_maybe_negate_const_int): New.
18877         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
18878         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
18879         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
18880         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
18881         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
18882         Use x86_maybe_negate_const_int to output insn mnemonic.
18883         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
18884         check from instruction predicate.  Update comments.
18885         * config/i386/sync.md (sync_add<mode>): Use
18886         x86_maybe_negate_const_int to output insn mnemonic.
18887
18888 2010-04-06  Jan Hubicka  <jh@suse.cz>
18889
18890         PR tree-optimization/42906
18891         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
18892         IGNORE_SELF argument.  Set visited_control_parents for fully
18893         processed BBs.
18894         (find_obviously_necessary_stmts): Update call of
18895         mark_control_dependent_edges_necessary.
18896         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
18897
18898 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
18899
18900         * config/i386/i386.md: Remove comment about 'e' and 'E'
18901         operand modifier.
18902
18903 2010-04-06  Richard Guenther  <rguenther@suse.de>
18904
18905         PR tree-optimization/43627
18906         * tree-vrp.c (extract_range_from_unary_expr): Widenings
18907         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
18908         not varying.
18909
18910 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
18911
18912         * BASE-VER: Change to 4.6.0.
18913
18914         PR target/43638
18915         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
18916         handling.
18917
18918 2010-04-06  Richard Guenther  <rguenther@suse.de>
18919
18920         PR middle-end/43661
18921         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
18922
18923 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18924
18925         * doc/invoke.texi (Optimize Options): Document that LTO
18926         won't remove object access purely due to incompatible
18927         declarations.
18928
18929 2010-04-04  Matthias Klose  <doko@ubuntu.com>
18930
18931         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
18932         Initialize variable.
18933
18934 2010-04-03  Richard Guenther  <rguenther@suse.de>
18935
18936         PR middle-end/42509
18937         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
18938         require a non-NULL MEM_OFFSET.
18939
18940 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
18941
18942         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
18943         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
18944         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
18945         config/alpha/predicates.md, config/arm/arm.md,
18946         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
18947         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
18948         config/darwin9.h, config/darwin.c, config/darwin.h,
18949         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
18950         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
18951         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
18952         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
18953         config/mips/mips.md, config/mn10300/mn10300.c,
18954         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
18955         config/rs6000/aix.h, config/rs6000/dfp.md,
18956         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
18957         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
18958         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
18959         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
18960         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
18961         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
18962         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
18963         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
18964         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
18965         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
18966         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
18967         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
18968         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
18969         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
18970         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
18971         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
18972         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
18973         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
18974         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
18975         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
18976         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
18977         opt-functions.awk, opth-gen.awk, params.def, passes.c,
18978         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
18979         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
18980         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
18981         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
18982         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
18983         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
18984         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
18985         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
18986         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
18987         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
18988         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
18989         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
18990         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
18991         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
18992
18993 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18994
18995         PR other/43620
18996         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
18997         * aclocal.m4: Regenerate.
18998
18999 2010-04-02  Richard Guenther  <rguenther@suse.de>
19000
19001         PR tree-optimization/43629
19002         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
19003         if we have seen a constant value.
19004
19005 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
19006
19007         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
19008
19009 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
19010
19011         PR target/43469
19012         * arm.c (legitimize_tls_address): Adjust call to
19013         gen_tls_load_dot_plus_four.
19014         (arm_note_pic_base): New function.
19015         (arm_cannot_copy_insn_p): Use it.
19016         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
19017         constraint.
19018
19019 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19020
19021         PR bootstrap/43531
19022
19023         Revert:
19024         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19025
19026         * Makefile.in ($(out_object_file)): Depend on
19027         gt-$(basename $(notdir $(out_file))).h.
19028
19029 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
19030
19031         * config.gcc (lm32-*-rtems*): Add t-lm32.
19032
19033 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
19034
19035         * config.gcc: Add lm32-*-rtems*.
19036         * config/lm32/rtems.h: New file.
19037
19038 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
19039
19040         PR target/42609
19041         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
19042
19043 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
19044
19045         * dwarf2out.c (output_compilation_unit_header): For
19046         -gdwarf-4 use version 4 instead of version 3.
19047         (output_line_info): For version 4 and above emit additional
19048         maximum ops per insn header field.
19049         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
19050
19051         * dwarf2out.c (is_c_family, is_java): Remove.
19052         (lower_bound_default): New function.
19053         (add_bound_info, gen_descr_array_type_die): Use it.
19054
19055 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
19056
19057         PR debug/43325
19058         * dwarf2out.c (gen_variable_die): Allow debug info for variable
19059         re-declaration when it happens in a function.
19060
19061 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
19062
19063         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
19064         (cgraph_remove_function_insertion_hook): Same.
19065         (cgraph_call_function_insertion_hooks): Same.
19066
19067 2010-04-01  Richard Guenther  <rguenther@suse.de>
19068
19069         PR middle-end/43614
19070         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
19071         and TREE_THIS_VOLATILE.
19072         (copy_ref_info): Likewise.
19073         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
19074         * tree.c (build6_stat): Ignore side-effects of all but arg5
19075         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
19076         TARGET_MEM_REF.
19077
19078 2010-04-01  Richard Guenther  <rguenther@suse.de>
19079
19080         PR tree-optimization/43607
19081         * ipa-type-escape.c (check_call): Do not access non-existing
19082         arguments.
19083
19084 2010-04-01  Richard Guenther  <rguenther@suse.de>
19085
19086         PR middle-end/43602
19087         Revert
19088         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
19089                     Jack Howarth  <howarth@bromo.med.uc.edu>
19090
19091         * tree-profile.c (tree_init_ic_make_global_vars): Make static
19092         variables TLS.
19093
19094 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19095
19096         * doc/install.texi (Prerequisites): Document libelf usability on
19097         IRIX 5/6 and Solaris 2.
19098         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
19099         Update GNU as, GNU ld requirements.
19100         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
19101         Document Sun Studio compiler download.
19102         Update and simplify as, ld recommendations.
19103         (Specific, *-*-solaris2.7): Note obsoletion, removal.
19104
19105 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19106
19107         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
19108         with_tune_32 to pentium4.
19109
19110 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
19111
19112         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
19113
19114 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19115
19116         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
19117         obsoletion, removal.
19118         Update IDO URL.
19119         Document GNU as requirement.
19120         Update configure requirements.
19121         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
19122         Recomment IRIX 6.5.18+.
19123         Document IDF/IDL requirement.
19124         Document GNU as requirement.
19125         Document GNU ld bootstrap failure.
19126         Remove freeware.sgi.com reference.
19127
19128 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19129
19130         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
19131         UNIX V4.0, V5.0 obsoletion, removal.
19132         Remove --with-gc=simple reference.
19133         Update VM requirements during bootstrap.
19134         Remove -oldas bootstrap description.
19135         Update binutils reference.
19136         Remove comparison failure note.
19137
19138 2010-03-31  Richard Guenther  <rguenther@suse.de>
19139             Zdenek Dvorak  <ook@ucw.cz>
19140             Sebastian Pop  <sebastian.pop@amd.com>
19141
19142         PR middle-end/43464
19143         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
19144         with multiple arguments.
19145         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
19146
19147 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19148
19149         * graphite-dependences.c (print_pddr): Call print_pdr with an
19150         extra argument.
19151         * graphite-poly.c (debug_pdr): Add an extra argument for the
19152         verbosity level.
19153         (print_pdr): Same.
19154         (print_pbb_domain): Same.
19155         (print_pbb): Same.
19156         (print_scop_context): Same.
19157         (print_scop): Same.
19158         (print_cloog): Same.
19159         (debug_pbb_domain): Same.
19160         (debug_pbb): Same.
19161         (print_pdrs): Same.
19162         (debug_pdrs): Same.
19163         (debug_scop_context): Same.
19164         (debug_scop): Same.
19165         (debug_cloog): Same.
19166         (print_scop_params): Same.
19167         (debug_scop_params): Same.
19168         (print_iteration_domain): Same.
19169         (print_iteration_domains): Same.
19170         (debug_iteration_domain): Same.
19171         (debug_iteration_domains): Same.
19172         (print_scattering_function): Same.
19173         (print_scattering_functions): Same.
19174         (debug_scattering_function): Same.
19175         (debug_scattering_functions): Same.
19176         * graphite-poly.h (debug_pdr): Update declaration.
19177         (print_pdr): Same.
19178         (print_pbb_domain): Same.
19179         (print_pbb): Same.
19180         (print_scop_context): Same.
19181         (print_scop): Same.
19182         (print_cloog): Same.
19183         (debug_pbb_domain): Same.
19184         (debug_pbb): Same.
19185         (print_pdrs): Same.
19186         (debug_pdrs): Same.
19187         (debug_scop_context): Same.
19188         (debug_scop): Same.
19189         (debug_cloog): Same.
19190         (print_scop_params): Same.
19191         (debug_scop_params): Same.
19192         (print_iteration_domain): Same.
19193         (print_iteration_domains): Same.
19194         (debug_iteration_domain): Same.
19195         (debug_iteration_domains): Same.
19196         (print_scattering_function): Same.
19197         (print_scattering_functions): Same.
19198         (debug_scattering_function): Same.
19199         (debug_scattering_functions): Same.
19200
19201 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19202
19203         * graphite-poly.c (print_scattering_function_1): New.
19204         (print_scattering_function): Call it.
19205         (print_scop_params): Remove spaces at the end of lines.
19206         (print_cloog): New.
19207         (debug_cloog): New.
19208         * graphite-poly.h (print_cloog): Declared.
19209         (debug_cloog): Declared.
19210
19211 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19212
19213         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
19214         in loop->header.
19215         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
19216         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
19217         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
19218         to switch between adding the IV bump in loop->latch or in loop->header.
19219
19220 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19221
19222         * graphite-poly.c (print_scattering_function): Pretty print following
19223         the scoplib format.
19224         (print_pdr): Same.
19225         (print_pbb_domain): Same.
19226         (dump_gbb_cases): Same.
19227         (dump_gbb_conditions): Same.
19228         (print_pdrs): Same.
19229         (print_pbb): Same.
19230         (print_scop_params): Same.
19231         (print_scop_context): Same.
19232         (print_scop): Same.
19233         (print_pbb_body): New.
19234         (lst_indent_to): New.
19235         (print_lst): Start new lines with a #.
19236         * graphite-poly.h (pbb_bb): New.
19237         (pbb_index): Use pbb_bb.
19238         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
19239         disjuncts.
19240         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
19241
19242 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
19243
19244         * dwarf2out.c (size_of_die): For -gdwarf-4 use
19245         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
19246         and 0 instead of 1 for dw_val_class_flag.
19247         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
19248         dw_val_class_range_list, dw_val_class_loc_list,
19249         dw_val_class_lineptr and dw_val_class_macptr, use
19250         DW_FORM_flag_present for dw_val_class_flag and
19251         DW_FORM_exprloc for dw_val_class_loc.
19252         (output_die): For -gdwarf-4 print dw_val_class_loc
19253         size as uleb128 instead of 1 or 2 bytes and don't print
19254         anything for dw_val_class_flag.
19255
19256         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
19257         instead of cselib_lookup following by tweaking locs->setting_insn.
19258
19259         PR bootstrap/43596
19260         * cselib.c (cselib_process_insn): Clear cselib_current_insn
19261         even before returning from label, setjmp call or volatile asm
19262         handling.
19263
19264 2010-03-31  Richard Guenther  <rguenther@suse.de>
19265
19266         PR middle-end/43600
19267         * cgraphunit.c (cgraph_output_in_order): Do not allocate
19268         temporary data on stack.
19269
19270 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19271
19272         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
19273         (PUSHSECTION_ASM_OP): Remove.
19274         (POPSECTION_ASM_OP): Remove.
19275         (PUSHSECTION_FORMAT): Remove.
19276         * config/sol2.h (PUSHSECTION_FORMAT): Define.
19277         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
19278         * config/sol2.c (solaris_output_init_fini): Use it.
19279
19280 2010-03-31  Jie Zhang  <jie@codesourcery.com>
19281
19282         PR 43574
19283         * opt-functions.awk (var_type_struct): Use signed char type
19284         for simple variables.
19285
19286 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19287
19288         * config/sol2.c: Include output.h.
19289         (solaris_assemble_visibility): New function.
19290         * config/t-sol2 (sol2.o): Add output.h dependency.
19291         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
19292         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
19293         Redefine.
19294
19295 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
19296
19297         PR target/43580
19298         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
19299         V2SImode or XFmode on PRE_DEC.
19300
19301         PR debug/43557
19302         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
19303         BLKmode.
19304
19305 2010-03-31  Jie Zhang  <jie@codesourcery.com>
19306
19307         PR 43562
19308         * reload.h (caller_save_initialized_p): Declare.
19309         * toplev.c (backend_init_target): Don't call
19310         init_caller_save but set caller_save_initialized_p to false.
19311         * caller-save.c (caller_save_initialized_p): Define.
19312         (init_caller_save): Check caller_save_initialized_p.
19313         * ira.c (ira): Call init_caller_save if flag_caller_saves.
19314
19315 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19316
19317         PR target/39048
19318         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
19319         and soft-fp/t-softfp to tmake_file.
19320         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
19321         (LIBGCC2_TF_CEXT): Define.
19322         (TF_SIZE): Define.
19323
19324 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
19325
19326         PR debug/42977
19327         * cselib.c (n_useless_values): Document handling of debug locs.
19328         (n_useless_debug_values, n_debug_values): New variables.
19329         (new_elt_loc_list): Don't add to debug values, keep count.
19330         (promote_debug_loc): New.
19331         (cselib_reset_table): Zero new variables.
19332         (entry_and_rtx_equal_p): Promote debug locs.
19333         (discard_useless_locs): Increment n_useless_debug_values for
19334         debug values.
19335         (remove_useless_values): Adjust n_useless_values and n_debug_values
19336         with n_useless_debug_values.
19337         (add_mem_for_addr): Promote debug locs.
19338         (cselib_lookup_mem): Likewise.
19339         (cselib_lookup_addr): Renamed to...
19340         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
19341         (cselib_log_lookup): ... this.  Turn into...
19342         (cselib_lookup_addr): ... new wrapper.
19343         (cselib_lookup_from_insn): New.
19344         (cselib_invalidate_regno): Increment n_useless_debug_values for
19345         debug values.
19346         (cselib_invalidate_mem): Likewise.
19347         (cselib_process_insn): Take n_deleted and n_debug_values into
19348         account to guard remove_useless_value call.
19349         (cselib_finish): Zero n_useless_debug_values.
19350         * cselib.h (cselib_lookup_from_insn): Declare.
19351         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
19352         (sched_analyze_2): Likewise.
19353
19354 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
19355
19356         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
19357         functions.
19358         (adjust_mems): Replace narrowing SUBREG of expression containing
19359         just PLUS, MINUS, MULT and ASHIFT of registers and constants
19360         with operations in the narrower mode.
19361
19362         PR debug/43593
19363         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
19364         regs_invalidated_by_call instead all call_used_reg_set registers.
19365
19366 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
19367
19368         PR middle-end/43430
19369         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
19370         pointer comparisons with types_compatible_p.
19371         * tree-vect-stmts.c (vectorizable_call): Same.
19372         (vectorizable_condition): Same.
19373
19374 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19375
19376         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
19377         stack check if the mask would be zero.
19378
19379 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
19380             Jack Howarth  <howarth@bromo.med.uc.edu>
19381
19382         * tree-profile.c (tree_init_ic_make_global_vars): Make static
19383         variables TLS.
19384
19385 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
19386
19387         PR other/25232
19388         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
19389         and __unordtf2.
19390         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
19391         Include ___unordxf2 and ___unordtf2.
19392         * config/i386/libgcc-glibc.ver: Do not define inheritance from
19393         GCC_4.4.0 here.
19394
19395 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
19396
19397         * config/lm32/t-lm32: New file.
19398         * config.gcc: Use the above file when targetting lm32.
19399
19400 2010-03-28  Duncan Sands  <baldrick@free.fr>
19401
19402         * Makefile.in (PLUGIN_HEADERS): Add except.h.
19403
19404 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
19405
19406         PR middle-end/43431
19407         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
19408         Improve vectorization cost model diagnostic.
19409
19410 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
19411
19412         PR middle-end/43436
19413         * tree-vect-data-refs.c (vect_analyze_data_refs): When
19414         compute_data_dependences_for_loop returns false, early exit
19415         and output an extra diagnostic for the failed data reference
19416         analysis.
19417
19418 2010-03-29  Richard Guenther  <rguenther@suse.de>
19419
19420         PR tree-optimization/43560
19421         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
19422         (can_sm_ref_p): Treat stores to readonly locations as trapping.
19423
19424 2010-03-29  Jie Zhang  <jie@codesourcery.com>
19425
19426         PR 43564
19427         * toplev.c (process_options): Set optimization_default_node
19428         and optimization_current_node.
19429         * opts.c (decode_options): Don't set optimization_default_node
19430         and optimization_current_node.
19431
19432 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
19433
19434         * config/rtems.h: Abandon -qrtems_debug.
19435
19436 2010-03-28  Jan Hubicka  <jh@suse.cz>
19437
19438         PR tree-optimization/43505
19439         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
19440         map should not be copied.
19441
19442 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19443
19444         PR middle-end/41674
19445         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
19446         cdtors, set DECL_PRESERVE_P.
19447         * ipa.c (cgraph_externally_visible_p): Return true if declaration
19448         should be preseved.
19449
19450 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
19451
19452         PR tree-optimization/43528
19453         * stor-layout.c (place_field): Check that constant fits into
19454         unsigned HWI when skipping calculation of MS bitfield layout.
19455
19456 2010-03-27  Jan Hubicka  <jh@suse.cz>
19457
19458         PR middle-end/43391
19459         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
19460         notice_global_symbol work.
19461
19462 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
19463
19464         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
19465         instead of dwarf2out_decl.
19466         (struct var_loc_node): Remove section_label field.
19467         (dwarf2out_function_decl): New function.
19468         (dwarf2out_var_location): Don't set section_label field.
19469         (dwarf2out_begin_function): Don't empty decl_loc_table here.
19470
19471 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
19472
19473         PR tree-optimization/43544
19474         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
19475         First argument for builtin vectorized function hook is now a
19476         tree to be able to distinguish between machine specific and
19477         standard builtins.
19478         * targhooks.c (default_builtin_vectorized_function): Ditto.
19479         * targhooks.h (default_builtin_vectorized_function): Ditto.
19480         * target.h (struct gcc_target): Ditto.
19481         * tree-vect-stmts.c (vectorizable_function): Ditto.
19482         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
19483         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
19484         Ditto.
19485
19486 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
19487
19488         PR c/43381
19489         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
19490         nested binding iff it is a FUNCTION_DECL.
19491         (store_parm_decls_newstyle): Pass nested=true to bind for
19492         FUNCTION_DECLs amongst parameters.
19493
19494 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
19495
19496         * var-tracking.c (vt_expand_loc_callback): Don't run
19497         cselib_expand_value_rtx_cb in dummy mode if
19498         cselib_dummy_expand_value_rtx_cb returned false.
19499
19500         * var-tracking.c (emit_note_insn_var_location): For one part
19501         notes with offset 0, don't add EXPR_LIST around the location.
19502         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
19503         add_location_or_const_value_attribute): Adjust for that change.
19504
19505         PR debug/43540
19506         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
19507         into first operand and location into second.
19508         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
19509         dw_cfi_oprnd_loc for DW_CFA_expression.
19510         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
19511         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
19512         assume first argument is regnum and second argument is location.
19513
19514 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
19515
19516         PR target/42113
19517         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
19518         of scratch register to DImode.  Split to DImode comparison operator.
19519         Use SImode subreg of scratch register in the multiplication.
19520         (*cmp_sadd_sidi): Ditto.
19521         (*cmp_ssub_si): Ditto.
19522         (*cmp_ssub_sidi): Ditto.
19523
19524 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
19525
19526         PR target/43524
19527         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
19528         Remove invalid assert and wrong comment.
19529
19530 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
19531
19532         PR debug/43516
19533         * flags.h (final_insns_dump_p): New extern.
19534         * final.c (final_insns_dump_p): New variable.
19535         (rest_of_clean_state): Set it before -fdump-final-insns=
19536         dumping, clear afterwards.
19537         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
19538         MEM_ALIAS_SET on MEMs.
19539
19540 2010-03-26  David S. Miller  <davem@davemloft.net>
19541
19542         * configure.ac: Fix sparc GOTDATA_OP bug check.
19543         * configure: Rebuild.
19544
19545 2010-03-26  Alan Modra  <amodra@gmail.com>
19546
19547         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
19548
19549 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19550
19551         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
19552         TLS_SECTION_ASM_FLAG.
19553
19554 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
19555
19556         PR bootstrap/43511
19557         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
19558         Clear first_function_block_is_cold.
19559
19560         PR c/43385
19561         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
19562         argument if the argument is truth_value_p.
19563
19564 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
19565
19566         * config/rs6000/constraints.md: Update copyright year for my changes.
19567
19568         PR target/43484
19569         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
19570         used in reg+reg addressing, swap registers.
19571
19572 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
19573
19574         PR debug/43293
19575         * target.h (struct gcc_target): Add code_end hook.
19576         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
19577         if not yet defined.
19578         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
19579         * toplev.c (compile_file): Call targetm.asm_out.code_end
19580         hook before unwind info/debug info output.
19581         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
19582         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
19583         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
19584         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
19585         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
19586         * config/i386/i386.c (ix86_file_end): Renamed to...
19587         (ix86_code_end): ... this.  Make static.  Don't call
19588         file_end_indicate_exec_stack.  Emit unwind info using
19589         final_start_function/final_end_function.
19590         (darwin_x86_file_end): Remove.
19591         (TARGET_ASM_CODE_END): Define.
19592         * config/i386/i386.h (TARGET_ASM_FILE_END,
19593         NEED_INDICATE_EXEC_STACK): Don't define.
19594         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
19595         (TARGET_ASM_FILE_END): Define to darwin_file_end.
19596         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
19597         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
19598
19599         PR target/43498
19600         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
19601         at the beginning and final_end_function at the end.
19602         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
19603
19604 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19605
19606         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
19607         and Sun as TLS syntax.
19608         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
19609         * configure: Regenerate.
19610         * config.in: Regenerate.
19611         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
19612         (default_elf_asm_named_section): Use it.
19613         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
19614         (i386_output_dwarf_dtprel): Likewise.
19615         (output_addr_const_extra): Likewise.
19616         (output_pic_addr_const): Lowercase @GOTTPOFF.
19617         (output_addr_const_extra): Likewise.
19618         (output_pic_addr_const): Lowercase @GOTNTPOFF.
19619         (output_addr_const_extra): Likewise.
19620         (output_pic_addr_const): Lowercase @INDNTPOFF.
19621         (output_addr_const_extra): Likewise.
19622         (output_pic_addr_const): Lowercase @NTPOFF.
19623         (output_addr_const_extra): Likewise.
19624         (output_pic_addr_const): Lowercase @TPOFF.
19625         (output_addr_const_extra): Likewise.
19626         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
19627         (*tls_global_dynamic_64): Likewise.
19628         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
19629         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
19630
19631         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
19632         (ASM_OUTPUT_TLS_COMMON): Use it.
19633         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
19634
19635         PR target/38118
19636         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
19637         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
19638         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
19639         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
19640         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
19641         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
19642
19643 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19644
19645         * config/i386/i386.c (override_options): Don't accept
19646         -mtls-dialect=sun any longer.
19647         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
19648         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
19649         (*tls_local_dynamic_base_32_sun): Likewise.
19650         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
19651
19652 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
19653
19654         PR debug/43508
19655         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
19656         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
19657
19658         PR debug/43479
19659         * ira.c (adjust_cleared_regs): New function.
19660         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
19661
19662         PR debug/19192
19663         PR debug/43479
19664         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
19665         from gimple_block.
19666         * expr.c (expand_expr_real): Restore previous
19667         curr_insn_source_location and curr_insn_block after
19668         expand_expr_real_1 call.
19669         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
19670         instead of expand_expr_real_1.
19671
19672 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
19673
19674         PR rtl-optimization/43413
19675         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
19676         hard regs too.
19677
19678 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
19679
19680         PR target/43348
19681         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
19682         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
19683
19684 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
19685
19686         * config/i386/i386.c (ix86_target_string): Add -mfma.
19687         Fix a typo in comment.
19688
19689 2010-03-22  Mike Stump  <mikestump@comcast.net>
19690
19691         PR target/23071
19692         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
19693         Don't overly align based upon packed packed fields.
19694
19695 2010-03-22  Jason Merrill  <jason@redhat.com>
19696
19697         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
19698         Use () rather than [], and move before the element type.
19699
19700 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19701
19702         * doc/configfiles.texi (Configuration Files): Removed
19703         fixinc/Makefile*, intl/Makefile.*.
19704         * doc/makefile.texi: Fixed markup. Abstract from version
19705         control system used.
19706         (Makefile): Removed obsolete gcc/java/parse.y example.
19707         * doc/sourcebuild.texi: Likewise.
19708         (Top Level): Added config, gnattools, libdecnumber, libgcc,
19709         libgomp, libssp.  Removed fastjar.
19710         (Miscellaneous Docs): Clarify location.
19711         Added COPYING3, COPYING3.LIB.
19712         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
19713
19714 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19715
19716         PR target/38085
19717         * config/i386/i386.c (x86_function_profiler)
19718         [!NO_PROFILE_COUNTERS]: Fix typo.
19719         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
19720         instead of callq.
19721
19722 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
19723             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19724
19725         * doc/sourcebuild.texi (Test Directives): Split into six
19726         subsections, with most of the current text in new subsections
19727         Directives, Selectors, and Final Actions.
19728         (Directives): Split list of test directives into multiple
19729         subsubsections.
19730         (Selectors): Describe use and syntax of selectors.
19731         (Effective-Target Keywords): Describe all existing keywords.
19732         (Add Options): Describe features for dg-add-options.
19733         (Require Support): Describe variants of dg-require-support.
19734         (Final Actions): Describe commands to use in dg-final.
19735
19736 2010-03-22  Michael Matz  <matz@suse.de>
19737
19738         PR middle-end/43475
19739         * recog.c (validate_replace_rtx_group): Replace also in
19740         REG_EQUAL and REG_EQUIV notes.
19741
19742 2010-03-22  Richard Guenther  <rguenther@suse.de>
19743
19744         PR tree-optimization/43390
19745         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
19746         sure vector extracts are type correct.
19747
19748 2010-03-22  Richard Guenther  <rguenther@suse.de>
19749
19750         PR middle-end/40106
19751         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
19752         x * sqrt (x) even when optimizing for size if the target
19753         has native support for sqrt.
19754
19755 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
19756
19757         * varasm.c (make_decl_rtl_for_debug): Also clear
19758         flag_mudflap for the duration of make_decl_rtl call.
19759
19760         PR debug/43443
19761         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
19762         locs from preserved VALUEs.
19763
19764 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19765
19766         PR middle-end/42718
19767         * pa.md (movmemsi): Set align to one if zero.
19768         (movmemdi): Likewise.
19769
19770 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
19771
19772         PR target/42321
19773         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
19774         with their corresponding prologue pushes.
19775
19776 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
19777
19778         PR target/43156
19779         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
19780         at the begining or end.
19781         (spu_expand_epilogue): Likewise.
19782
19783 2010-03-20  Richard Guenther  <rguenther@suse.de>
19784
19785         PR rtl-optimization/43438
19786         * combine.c (make_extraction): Properly zero-/sign-extend an
19787         extraction of the low part of a CONST_INT.  Also handle
19788         CONST_DOUBLE.
19789
19790 2010-03-19  Mike Stump  <mikestump@comcast.net>
19791
19792         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
19793         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
19794         (override_options): Use SUBTARGET32_DEFAULT_CPU.
19795
19796 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
19797
19798         PR c/43211
19799         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
19800         an error.
19801
19802 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
19803
19804         PR rtl-optimization/42258
19805         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
19806         use that may match DEF.
19807
19808         PR target/40697
19809         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
19810         the cost of loading the constant rather than assuming
19811         COSTS_N_INSNS (1).
19812         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
19813         outer code is AND, do the same tests as the andsi3 expander and
19814         return COSTS_N_INSNS (1) if and is cheap.
19815
19816         * optabs.c (avoid_expensive_constant): Fix formatting.
19817
19818 2010-03-19  Michael Matz  <matz@suse.de>
19819
19820         PR c++/43116
19821         * attribs.c (decl_attributes): When rebuilding a function pointer
19822         type use the same qualifiers as the original pointer type.
19823
19824 2010-03-19  Martin Jambor  <mjambor@suse.cz>
19825
19826         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
19827         and is_gimple_ip_invariant_address.
19828
19829 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19830
19831         Revert
19832         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19833
19834         * config/arm/arm.c (arm_override_options): Turn off
19835         flag_dwarf2_cfi_asm for AAPCS variants.
19836
19837 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19838
19839         PR target/43399
19840         * config/arm/arm.c (emit_multi_reg_push): Update comments.
19841         Use PRE_MODIFY instead of PRE_DEC.
19842         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
19843         (vfp_emit_fstmd): Likewise.
19844
19845 2010-03-19  Michael Matz  <matz@suse.de>
19846
19847         PR target/43305
19848         * builtins.c (expand_builtin_interclass_mathfn,
19849         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
19850         if that fails.
19851
19852 2010-03-19  Richard Guenther  <rguenther@suse.de>
19853
19854         PR tree-optimization/43415
19855         * tree-ssa-pre.c (phi_translate): Split out worker to ...
19856         (phi_translate_1): ... this.
19857         (phi_translate): Move all caching here.  Cache all NARY
19858         and REFERENCE translations.
19859
19860 2010-03-19  David S. Miller  <davem@davemloft.net>
19861
19862         With help from Eric Botcazou.
19863         * config/sparc/sparc.c: Include dwarf2out.h.
19864         (emit_pic_helper): Delete.
19865         (pic_helper_symbol_name): Delete.
19866         (pic_helper_emitted_p): Delete.
19867         (pic_helper_needed): New.
19868         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
19869         (get_pc_thunk_name): New.
19870         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
19871         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
19872         Set pic_helper_needed to true.  Don't call emit_pic_helper.
19873         (sparc_expand_prologue): Update load_pic_register call.
19874         (sparc_output_mi_thunk): Likewise.
19875         (sparc_file_end): Emit a hidden comdat symbol for the PIC
19876         thunk if possible.  Output CFI information as needed.
19877
19878 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
19879             Jack Howarth  <howarth@bromo.med.uc.edu>
19880
19881         PR target/36399
19882         * config/i386/i386.h: Fix ABI on darwin x86-32.
19883
19884 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
19885
19886         * tree.h: Declare make_decl_rtl_for_debug.
19887         * varasm.c (make_decl_rtl_for_debug): New.
19888         * dwarf2out.c (rtl_for_decl_location): Call it.
19889         * cfgexpand.c (expand_debug_expr): Call it.
19890
19891 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
19892
19893         PR bootstrap/43399
19894         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
19895         mem_mode.
19896
19897         PR bootstrap/43403
19898         * var-tracking.c (vt_init_cfa_base): Do nothing if
19899         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
19900
19901 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
19902
19903         PR debug/42873
19904         * var-tracking.c (canonicalize_vars_star): New.
19905         (dataflow_post_merge_adjust): Use it.
19906
19907 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
19908
19909         PR debug/43058
19910         * var-tracking.c (non_suitable_const): New function.
19911         (add_uses): For DEBUG_INSNs with constants, don't record any
19912         value, instead just the constant value itself.
19913         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
19914         is not VAR_LOC_UNKNOWN_P, set var to the constant.
19915         (emit_notes_in_bb): Likewise.
19916         (emit_note_insn_var_location): For onepart variables if
19917         cur_loc is a VOIDmode constant, use DECL_MODE.
19918
19919 2010-03-18  Martin Jambor  <mjambor@suse.cz>
19920
19921         PR middle-end/42450
19922         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
19923         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
19924         all non-clones.  Moved call redirection...
19925         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
19926         (cgraph_materialize_all_clones): Dispose of all
19927         combined_args_to_skip bitmaps.
19928         (verify_cgraph_node): Do not check for edges pointing to wrong
19929         nodes in inline clones.
19930         * tree-inline.c (copy_bb): Call
19931         cgraph_redirect_edge_call_stmt_to_callee.
19932         * ipa.c (cgraph_remove_unreachable_nodes): Call
19933         cgraph_node_remove_callees even when there are used clones.
19934
19935 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
19936
19937         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
19938
19939 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
19940
19941         PR target/43383
19942         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
19943         for 32bit.
19944
19945 2010-03-18  Michael Matz  <matz@suse.de>
19946
19947         PR middle-end/43419
19948         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
19949         into sqrt(x) if we need to preserve signed zeros.
19950
19951 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
19952             Eric Botcazou  <ebotcazou@adacore.com>
19953
19954         PR rtl-optimization/43360
19955         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
19956         note if we don't know its invariant status.
19957
19958 2010-03-18  Michael Matz  <matz@suse.de>
19959
19960         PR tree-optimization/43402
19961         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
19962         PHI chains of ssa names registered for update.
19963
19964 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
19965
19966         PR target/42427
19967         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
19968         non-offsettable and pre_modify update addressing.
19969         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
19970         and "2" alternatives "#".
19971         (*movdd_softfloat32): Make all alternatives "#";
19972         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
19973         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
19974         (*movdf_softfloat32): Make all alternatives "#";
19975         (movdi): Use the new DIFD mode iterator to create a common splitter
19976         for movdi, movdf and movdd patterns.
19977
19978 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
19979
19980         * common.opt (dumpdir): Remove redundant tab.
19981
19982 2010-03-17  Martin Jambor  <mjambor@suse.cz>
19983
19984         PR tree-optimization/43347
19985         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
19986         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
19987
19988 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
19989
19990         PR rtl-optimization/42216
19991         * regrename.c (create_new_chain): New function, broken out from...
19992         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
19993         appending a use to an empty chain.
19994         (build_def_use): Remove previous changes that convert OP_INOUT to
19995         OP_OUT operands; instead detect the case where an OP_INOUT operand
19996         uses a previously untracked register and create an empty chain for it.
19997
19998 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19999
20000         * doc/extend.texi (Function Attributes): Rewrite unfinished
20001         sentence in ms_abi documentation.
20002
20003 2010-03-17  Alan Modra  <amodra@gmail.com>
20004
20005         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
20006         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
20007         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
20008         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
20009
20010 2010-03-16  Richard Henderson  <rth@redhat.com>
20011
20012         PR middle-end/43365
20013         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
20014         (lower_try_finally): Save and restore eh_seq around the expansion
20015         of the try-finally.
20016
20017 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
20018
20019         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
20020         statements before splitting block.
20021
20022 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20023
20024         * doc/sourcebuild.texi (Testsuites): Fix markup.
20025         Use pathnames relative to gcc/testsuite.
20026         (Test Directives): Move description of how timeout is determined.
20027         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
20028         (C Tests): Correct gcc.misc-tests directory.
20029         Framework tests now live in gcc.test-framework.
20030
20031 2010-03-16  Richard Guenther  <rguenther@suse.de>
20032
20033         PR middle-end/43379
20034         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
20035         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
20036
20037 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
20038             Alexandre Oliva  <aoliva@redhat.com>
20039
20040         PR tree-optimization/42917
20041         * lambda-code.c (remove_iv): Skip debug statements.
20042         (lambda_loopnest_to_gcc_loopnest): Likewise.
20043         (not_interesting_stmt): Debug statements are not interesting.
20044
20045 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
20046
20047         PR debug/43051
20048         PR debug/43092
20049         * cselib.c (cselib_preserve_constants,
20050         cfa_base_preserved_val): New static variables.
20051         (preserve_only_constants): New function.
20052         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
20053         clear its REG_VALUES.  If cselib_preserve_constants, don't
20054         empty the whole hash table, but preserve there VALUEs with constants,
20055         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
20056         (cselib_preserve_cfa_base_value): New function.
20057         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
20058         (cselib_init): Change argument to int bitfield.  Set
20059         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
20060         is in it.
20061         (cselib_finish): Clear cselib_preserve_constants and
20062         cfa_base_preserved_val.
20063         * cselib.h (enum cselib_record_what): New enum.
20064         (cselib_init): Change argument to int.
20065         (cselib_preserve_cfa_base_value): New prototype.
20066         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
20067         * dse.c (dse_step1): Likewise.
20068         * cfgcleanup.c (thread_jump): Likewise.
20069         * sched-deps.c (sched_analyze): Likewise.
20070         * gcse.c (local_cprop_pass): Likewise.
20071         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
20072         If FN is non-NULL, call the callback always and whenever it returns
20073         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
20074         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
20075         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
20076         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
20077         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
20078         * var-tracking.c: Include recog.h.
20079         (bb_stack_adjust_offset): Remove.
20080         (vt_stack_adjustments): Don't call it, instead just gather the
20081         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
20082         (adjust_stack_reference): Remove.
20083         (compute_cfa_pointer): New function.
20084         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
20085         (struct adjust_mem_data): New type.
20086         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
20087         functions.
20088         (get_address_mode): New function.
20089         (replace_expr_with_values): Use it.
20090         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
20091         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
20092         (adjust_sets): Remove.
20093         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
20094         Use get_address_mode.
20095         (get_adjusted_src): Remove.
20096         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
20097         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
20098         (add_with_sets): Don't call adjust_sets.
20099         (fp_setter, vt_init_cfa_base): New functions.
20100         (vt_initialize): Change return type to bool.  Move most of pool etc.
20101         initialization to the beginning of the function from end.  Pass
20102         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
20103         If !frame_pointer_needed, call vt_stack_adjustment before mos
20104         vector is filled, call vt_init_cfa_base if argp/framep has been
20105         eliminated to sp.  If frame_pointer_needed and argp/framep has
20106         been eliminated to hard frame pointer, set
20107         hard_frame_pointer_adjustment and call vt_init_cfa_base after
20108         encountering fp setter in the prologue.  For MO_ADJUST, call
20109         log_op_type before pusing the op into mos vector, not afterwards.
20110         Call adjust_insn before cselib_process_insn/add_with_sets,
20111         call cancel_changes (0) afterwards.
20112         (variable_tracking_main_1): Adjust for vt_initialize calling
20113         vt_stack_adjustments and returning whether it succeeded or not.
20114
20115 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
20116
20117         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
20118         debug statements.
20119
20120 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
20121
20122         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
20123         has been set.
20124         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
20125         drap_reg has not been set.
20126
20127 2010-03-15  Michael Matz  <matz@suse.de>
20128
20129         PR middle-end/43300
20130         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
20131         use it to expand block copies.
20132         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
20133         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
20134         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
20135
20136 2010-03-15  Richard Guenther  <rguenther@suse.de>
20137
20138         PR tree-optimization/43367
20139         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
20140         elimination check.
20141
20142 2010-03-15  Richard Guenther  <rguenther@suse.de>
20143
20144         PR tree-optimization/43317
20145         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
20146
20147 2010-03-15  Martin Jambor  <mjambor@suse.cz>
20148
20149         PR tree-optimization/43141
20150         * tree-sra.c (create_abstract_origin): New function.
20151         (modify_function): Call create_abstract_origin.
20152
20153 2010-03-15  Chris Demetriou  <cgd@google.com>
20154
20155         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
20156         wasn't copied.
20157
20158 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20159
20160         PR middle-end/43354
20161         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
20162         call insert_out_of_ssa_copy for default definitions.
20163
20164 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20165
20166         * graphite-clast-to-gimple.c (my_long_long): Defined.
20167         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
20168         * graphite-sese-to-poly.c (my_long_long): Defined.
20169         (scop_ivs_can_be_represented): Use it.
20170
20171 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20172
20173         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
20174         graphite-max-bbs-per-function, and loop-block-tile-size.
20175         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
20176         with "maximum".
20177         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
20178
20179 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20180
20181         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
20182         forward declaration.
20183         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
20184         (add_upper_bounds_from_estimated_nit): New.
20185         (build_loop_iteration_domains): Use it.
20186
20187 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20188
20189         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
20190
20191 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20192
20193         PR middle-end/43306
20194         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
20195         should be an INTEGER_CST.  Also handle CASE_CONVERT.
20196
20197 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20198
20199         * graphite.c (graphite_initialize): To bound the number of bbs per
20200         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
20201         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
20202         * doc/invoke.texi: Document it.
20203
20204 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20205
20206         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
20207         * graphite-sese-to-poly.h (build_poly_scop): Same.
20208
20209 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20210
20211         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
20212         the number of parameters in the scop.  Use as an upper bound
20213         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
20214         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
20215         * doc/invoke.texi: Document it.
20216
20217 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
20218
20219         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
20220         * doc/c-tree.texi: Remove.
20221         * doc/generic.texi: Merge c-tree.texi here.
20222         * doc/gccint.texi (Trees): Remove menu entry.
20223         (c-tree.texi): Remove @include.
20224         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
20225         * doc/languages.texi (Reading RTL): Ditto.
20226
20227 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
20228
20229         PR target/42869
20230         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
20231
20232 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
20233
20234         PR middle-end/42431
20235         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
20236         code added to work around reload clobbering CONST insns.
20237
20238 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
20239
20240         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
20241         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
20242         (cselib_preserve_only_values): Remove retain argument, don't
20243         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
20244         * cselib.h (cselib_preserve_only_values): Remove retain argument.
20245         * var-tracking.c (micro_operation): Move insn field before union.
20246         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
20247         (struct variable_tracking_info_def): Remove n_mos field, change
20248         mos into a vector of micro_operations.
20249         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
20250         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
20251         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
20252         changing into a vector.
20253         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
20254         come before all other uops generated by add_stores.
20255         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
20256         argument removal.
20257         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
20258         a vector.  Run just one pass over the bbs instead of separate counting
20259         and computation phase.
20260         (vt_finalize): Free VTI (bb)->mos vector instead of array.
20261
20262         PR debug/43329
20263         * tree-inline.c (remap_decls): Put old_var rather than origin_var
20264         into *nonlocalized_list vector.
20265         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
20266         even if origin is non-NULL.
20267         (gen_variable_die): Likewise.
20268         (process_scope_var): Don't change origin.
20269         (gen_decl_die): Likewise.
20270         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
20271         before adding new edges instead of after it, fix moving over
20272         debug stmts.
20273
20274 2010-03-11  David S. Miller  <davem@davemloft.net>
20275
20276         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
20277         of four.
20278         * configure: Rebuild.
20279
20280 2010-03-11  Martin Jambor  <mjambor@suse.cz>
20281
20282         PR tree-optimization/43257
20283         * tree.c (assign_assembler_name_if_neeeded): New function.
20284         (free_lang_data_in_cgraph): Assembler name assignment moved to the
20285         above new function.
20286         * tree.h (assign_assembler_name_if_neeeded): Declare.
20287         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
20288         the function if needed.
20289
20290 2010-03-11  Chris Demetriou  <cgd@google.com>
20291
20292         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
20293         include/stdint-gcc.h, and include/stdint.h world-readable.
20294
20295 2010-03-11  Richard Guenther  <rguenther@suse.de>
20296
20297         PR tree-optimization/43255
20298         * tree-vrp.c (process_assert_insertions_for): Do not insert
20299         asserts for trivial conditions.
20300
20301 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20302
20303         PR tree-optimization/43280
20304         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
20305         generation.  Move calculation of size out of the if branch.
20306         (find_bswap): Modify compare number generation.
20307
20308 2010-03-11  Richard Guenther  <rguenther@suse.de>
20309
20310         PR lto/43200
20311         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
20312         (input_gimple_stmt): Fixup handled component types during
20313         operand read.  Also fix up decls in ADDR_EXPRs.
20314
20315 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
20316
20317         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
20318         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
20319
20320 2010-03-10  Jan Hubicka  <jh@suse.cz>
20321
20322         PR c/43288
20323         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
20324         * varasm.c (get_variable_section): Don't do that here...
20325         (make_decl_rtl): ... and here.
20326         (do_assemble_alias): Produce decl RTL.
20327         (assemble_alias): Likewise.
20328
20329 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
20330
20331         PR debug/43290
20332         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
20333         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
20334         of fde->vdrap_reg.
20335         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
20336         (based_loc_descr): Only express drap or vdrap regno based expressions
20337         using DW_OP_fbreg when not optimizing.
20338         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
20339         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
20340         REG_CFA_SET_VDRAP note.
20341
20342 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
20343
20344         PR tree-optimization/43236
20345         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
20346         error in calculation of base address in reverse iteration case.
20347         (generate_builtin): Take number of latch executions if the statement
20348         is in the latch.
20349
20350 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
20351
20352         PR middle-end/42859
20353         * tree-eh.c: Include pointer-set.h.
20354         (lower_eh_dispatch): Filter out duplicate case labels and
20355         remove the unneeded edge when the label is unused.  Return
20356         true when some edges are removed.
20357         (execute_lower_eh_dispatch): When any lowering resulted in
20358         removing an edge, also delete unreachable blocks.
20359
20360 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
20361
20362         PR bootstrap/43287
20363         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
20364         UNSPEC_MACHOPIC_OFFSET.
20365
20366 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
20367
20368         PR target/43294
20369         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
20370         (m68k_delegitimize_address): New function.
20371
20372 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
20373
20374         PR debug/43299
20375         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
20376
20377         PR debug/43299
20378         * var-tracking.c (adjust_sets): New function.
20379         (count_with_sets, add_with_sets): Use it.
20380         (get_adjusted_src): New inline function.
20381         (add_stores): Use it.
20382
20383         PR debug/43304
20384         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
20385         call cselib_dummy_expand_value_rtx_cb instead of
20386         cselib_expand_value_rtx_cb.
20387
20388         PR debug/43293
20389         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
20390         * config/i386/i386.c: Include debug.h and dwarf2out.h.
20391         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
20392         and .cfi_endproc around the pic thunks.
20393         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
20394         all queued unwind info register saves are saved before the call.
20395         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
20396         considered as sp-=4 for unwind info and the pop as sp+=4 which
20397         also clobbers dest, but doesn't actually restore it.
20398
20399         PR debug/43290
20400         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
20401         RTX_FRAME_RELATED_P.
20402
20403 2010-03-09  Jie Zhang  <jie@codesourcery.com>
20404
20405         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
20406         whitespaces in output template.
20407
20408 2010-03-09  Jie Zhang  <jie@codesourcery.com>
20409
20410         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
20411         out array boundary.
20412
20413 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
20414
20415         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
20416         builtins.exp in a separate job.
20417
20418 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20419
20420         * graphite-sese-to-poly.c (add_param_constraints): Use
20421         lower_bound_in_type and upper_bound_in_type.
20422
20423 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20424
20425         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
20426         instead of unsigned_type_node.
20427
20428 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20429             Reza Yazdani  <reza.yazdani@amd.com>
20430
20431         PR middle-end/43065
20432         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
20433         on pointer type parameters.
20434
20435 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
20436
20437         PR middle-end/42644
20438         PR middle-end/42130
20439         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
20440         handle conversions from pointer to integers.
20441         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
20442         induction variable, to be able to work with code generated by CLooG.
20443         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
20444         (build_poly_scop): Bail out if we cannot codegen a loop.
20445
20446 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
20447
20448         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
20449         code generation with gloog_error.
20450
20451 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20452
20453         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
20454         Call fold_convert on all the returned values.
20455         (expand_scalar_variables_expr): Pass to
20456         expand_scalar_variables_ssa_name the type of the resulting expression.
20457
20458 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20459
20460         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
20461         ppl_min_for_le_pointset.
20462         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
20463         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
20464
20465 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20466
20467         * graphite-dependences.c (map_into_dep_poly): Removed.
20468         (dependence_polyhedron_1): Use combine_context_id_scat.
20469
20470 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20471
20472         * graphite-poly.h (struct poly_scattering): Add layout documentation.
20473         (struct poly_bb): Same.
20474         (combine_context_id_scat): New.
20475
20476 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20477
20478         PR middle-end/42326
20479         * sese.c (name_defined_in_loop_p): Return false for default
20480         definitions.
20481
20482 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20483
20484         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
20485         and clean up the logic.
20486
20487 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20488
20489         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
20490         early return.
20491
20492 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
20493
20494         * var-tracking.c (remove_cselib_value_chains): Define only for
20495         ENABLE_CHECKING.
20496         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
20497         delete_slot_part, emit_notes_for_differences_1): Don't call
20498         remove_cselib_value_chains here.
20499         (set_slot_part, emit_notes_for_differences_2): Don't call
20500         add_cselib_value_chains here.
20501         (preserved_values): New vector.
20502         (preserve_value): New function.
20503         (add_uses, add_stores, vt_add_function_parameters): Use it
20504         instead of cselib_preserve_value.
20505         (changed_values_stack): New vector.
20506         (check_changed_vars_0): New function.
20507         (check_changed_vars_1, check_changed_vars_2): Use it.
20508         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
20509         changed_values_stack VALUEs.
20510         (vt_emit_notes): For all preserved_values call
20511         add_cselib_value_chains.  If ENABLE_CHECKING call
20512         remove_cselib_value_chains before verifying value_chains is empty.
20513         Initialize and free changed_values_stack.
20514         (vt_initialize): Initialize preserved_values.
20515         (vt_finalize): Free preserved_values.
20516
20517 2010-03-08  Richard Guenther  <rguenther@suse.de>
20518
20519         PR tree-optimization/43269
20520         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
20521         region detection.
20522
20523 2010-03-08  Martin Jambor  <mjambor@suse.cz>
20524
20525         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
20526         (ipa_is_param_called): Removed.
20527         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
20528         (ipa_print_node_params): Do not print the called flag.
20529         (ipa_write_node_info): Do not stream the called flag.
20530         (ipa_read_node_info): Likewise.
20531
20532 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
20533
20534         PR debug/43176
20535         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
20536         * cselib.c (struct expand_value_data): Add dummy field.
20537         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
20538         dummy to false.
20539         (cselib_dummy_expand_value_rtx_cb): New function.
20540         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
20541         any rtl.
20542         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
20543         * var-tracking.c: Include pointer-set.h.
20544         (variable): Change n_var_parts to char from int.  Add
20545         cur_loc_changed and in_changed_variables fields.
20546         (variable_canonicalize): Remove.
20547         (shared_var_p): New inline function.
20548         (unshare_variable): Maintain cur_loc_changed and
20549         in_changed_variables fields.  If var was in changed_variables,
20550         replace it there with new_var.  Just copy cur_loc instead of
20551         resetting it to something else.
20552         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
20553         (dataflow_set_union): Don't call variable_canonicalize.
20554         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
20555         of their DEBUG_EXPR_TREE_DECLs.
20556         (canonicalize_loc_order_check): Verify that cur_loc is NULL
20557         and in_changed_variables and cur_loc_changed is false.
20558         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
20559         and cur_loc_changed.  Don't update cur_loc here.
20560         (variable_merge_over_src): Don't call variable_canonicalize.
20561         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
20562         removing loc that is equal to cur_loc, clear cur_loc,
20563         set cur_loc_changed and ensure variable_was_changed is called.
20564         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
20565         compare pointers in cur_loc check, if it is equal to loc,
20566         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
20567         (variable_different_p): Remove compare_current_location argument,
20568         don't compare cur_loc.
20569         (dataflow_set_different_1): Adjust variable_different_p caller.
20570         (variable_was_changed): If dv had some var in changed_variables
20571         already, reset in_changed_variables flag for it and propagate
20572         cur_loc_changed over to the new variable.  On empty var
20573         always set cur_loc_changed.  Set in_changed_variables on whatever
20574         var is added to changed_variables.
20575         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
20576         Use shared_var_p.  When removing loc that is equal to cur_loc,
20577         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
20578         end, don't set it to something else, just call variable_was_changed.
20579         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
20580         loc being removed, clear cur_loc and set cur_loc_changed.
20581         Set cur_loc_changed if all locations have been removed.
20582         (struct expand_loc_callback_data): New type.
20583         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
20584         allocated.  Always create SUBREGs if simplify_subreg failed.
20585         Prefer to use cur_loc, when that fails and still in
20586         changed_variables (and seen first time) recompute it.  Set
20587         cur_loc_changed of variables which had to change cur_loc and
20588         compute elcd->cur_loc_changed if any of the subexpressions used
20589         had to change cur_loc.
20590         (vt_expand_loc): Adjust to pass arguments in
20591         expand_loc_callback_data structure.
20592         (vt_expand_loc_dummy): New function.
20593         (emitted_notes): New variable.
20594         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
20595         that weren't used for any other decl in current
20596         emit_notes_for_changes call call vt_expand_loc_dummy to update
20597         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
20598         first loc_chain location if NULL before.  Always use just
20599         cur_loc instead of first loc_chain location.  When cur_loc_changed
20600         is false, when not --enable-checking=rtl just don't emit any note.
20601         When rtl checking, compute the note and assert it is the same
20602         as previous note.  Clear cur_loc_changed and in_changed_variables
20603         at the end before removing from changed_variables.
20604         (check_changed_vars_3): New function.
20605         (emit_notes_for_changes): Traverse changed_vars to call
20606         check_changed_vars_3 on each changed var.
20607         (emit_notes_for_differences_1): Clear cur_loc_changed and
20608         in_changed_variables.  Recompute cur_loc of new_var.
20609         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
20610         (vt_emit_notes): Initialize and destroy emitted_notes.
20611
20612 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
20613
20614         PR rtl-optimization/42220
20615         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
20616         Use verify_reg_tracked to determine if we should use OP_OUT rather
20617         than OP_INOUT.
20618         (build_def_use): If we see an in-out operand for a register that we
20619         know nothing about, treat is an output if possible, fail the block if
20620         not.
20621
20622 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
20623
20624         PR debug/42897
20625         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
20626         permanently.
20627
20628 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
20629
20630         PR debug/42897
20631         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
20632         uses of relevant DEFs that are dead outside the loop too.
20633
20634 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
20635
20636         * var-tracking.c (dataflow_set_merge): Swap src and src2.
20637         Reverted:
20638         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
20639         PR debug/41371
20640         * var-tracking.c (values_to_unmark): New variable.
20641         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
20642         values_to_unmark vector.  Moved body to...
20643         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
20644         instead queue it into values_to_unmark vector.
20645         (vt_find_locations): Free values_to_unmark vector.
20646
20647 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
20648
20649         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
20650         (site.exp): Export them when plugins are enabled.
20651
20652 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
20653
20654         PR middle-end/42326
20655         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
20656         that contain scevs.
20657         (chrec_fold_multiply): Same.
20658
20659 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
20660
20661         PR c/43248
20662         * c-decl.c (build_compound_literal): Return early if init is
20663         an error_mark_node.
20664
20665 2010-03-04  Martin Jambor  <mjambor@suse.cz>
20666
20667         PR tree-optimization/43164
20668         PR tree-optimization/43191
20669         * tree-sra.c (type_consists_of_records_p): Reject records with
20670         zero-size bit-fields at the end.
20671
20672 2010-03-04  Mike Stump  <mikestump@comcast.net>
20673
20674         * Makefile.in (TAGS): Remove *.y.
20675
20676 2010-03-04  Richard Guenther  <rguenther@suse.de>
20677
20678         PR tree-optimization/40761
20679         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
20680         in reverse order.
20681         (my_rev_post_order_compute): New function.
20682         (init_pre): Call it.
20683
20684 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
20685
20686         PR middle-end/43209
20687         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
20688         decrease the cost of an IV candidate when the cost is infinite.
20689
20690 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20691
20692         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
20693         Use '3DNow!' for the extension of that name, ensure normal space
20694         after the string.
20695         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
20696
20697 2010-03-03  Jeff Law  <law@redhat.com>
20698
20699         * PR middle-end/32693
20700         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
20701         than gen_rtx_SUBREG.
20702         (extract_bit_field_1): Likewise.
20703
20704 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
20705
20706         * doc/sourcebuild.texi (Test directives): Document that arguments
20707         include-opts and exclude-opts are now optional for dg-skip-if,
20708         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
20709
20710 2010-03-03  Jason Merrill  <jason@redhat.com>
20711
20712         PR c++/12909
20713         * cgraph.h (varpool_node): Add extra_name field.
20714         * varpool.c (varpool_extra_name_alias): New.
20715         (varpool_assemble_decl): Emit extra name aliases.
20716         (varpool_mark_needed_node): Look past an extra name alias.
20717         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
20718         * lto-streamer-in.c (lto_input_tree): Read it.
20719         * lto-streamer-out.c (output_unreferenced_globals): Write it.
20720
20721 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
20722
20723         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
20724         (sparc*-*-solaris2*): ...this.
20725
20726 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
20727
20728         PR debug/43229
20729         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
20730         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
20731         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
20732         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
20733
20734         PR debug/43237
20735         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
20736         fallthrough to default handling, just with want_address 0 instead of 2.
20737         For single element lists, add_AT_loc directly, otherwise create an
20738         artificial variable DIE and stick location list to it.
20739
20740         PR debug/43177
20741         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
20742         (VAL_EXPR_HAS_REVERSE): Define.
20743         (reverse_op): New function.
20744         (add_stores): For reversible operations add an extra MO_VAL_USE.
20745
20746 2010-03-02  Jason Merrill  <jason@redhat.com>
20747
20748         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
20749
20750 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
20751
20752         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
20753         (sparc64-*-linux*): Likewise.
20754         (sparc64-*-solaris2*): Include assembler files before linker ones.
20755         (sparc-*-solaris2*): Simplify and reorder to match previous case.
20756         * config/sparc/gas.h: Delete.
20757         * config/sparc/sol2-64.h: Add copyright notice.
20758         * config/sparc/sol2-gas-bi.h: Likewise.
20759         * config/sparc/sol2-gld.h: Likewise.
20760         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
20761         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
20762         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
20763         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
20764         (sparc_elf_asm_named_section): Rename into...
20765         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
20766
20767 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
20768
20769         * config/alpha/alpha.c (override_options): Fix -mtune error message.
20770
20771 2010-03-02  Jeff Law  <law@redhat.com>
20772
20773         PR middle-end/42431
20774         * reload1.c (rtx_p, substitute_stack): Declare.
20775         (substitute): Record addresses of changed rtxs.
20776         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
20777         Restore the original rtx when complete.
20778         (reload): Free subsitute_stack when complete.
20779
20780 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
20781
20782         * doc/gccint.texi (menu): Add Testsuites as a chapter.
20783         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
20784         new chapter.
20785         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
20786         LTO Testing, gcov Testing, profopt Testing, compat Testing,
20787         Torture Tests): Change from subsection to section.
20788
20789 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
20790             Steven Bosscher  <steven@gcc.gnu.org>
20791
20792         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
20793         instead of bb.
20794
20795 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
20796
20797         PR middle-end/42640
20798         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
20799         the assignment from the new induction variable to the assignment
20800         of the value from the original loop PHI function.
20801
20802 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
20803             Daniel Jacobowitz  <dan@codesourcery.com>
20804
20805         * doc/sourcebuild.texi (Test directives): Clarify options to
20806         dg-skip-if.
20807
20808 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20809
20810         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
20811         Disable cfi directives unless GCC and gas agree on using read-only
20812         .eh_frame sections for 64-bit.
20813         * configure: Regenerate.
20814
20815 2010-03-01  Richard Guenther  <rguenther@suse.de>
20816
20817         PR tree-optimization/43220
20818         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
20819         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
20820
20821 2010-03-01  Richard Guenther  <rguenther@suse.de>
20822             Martin Jambor  <mjambor@suse.cz>
20823
20824         PR middle-end/41250
20825         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
20826         gimplified parameters.
20827
20828 2010-03-01  Christian Bruel  <christian.bruel@st.com>
20829
20830         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
20831
20832 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
20833
20834         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
20835
20836 2010-03-01  Richard Guenther  <rguenther@suse.de>
20837
20838         PR middle-end/43213
20839         * expr.c (expand_assignment): Use the alias-oracle to tell
20840         if the rhs aliases the result decl.
20841
20842 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20843
20844         PR pch/14940
20845         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
20846         to sol_gt_pch_get_address.
20847         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
20848         64-bit, SPARC and x86.
20849         (sol_gt_pch_get_address): New function.
20850
20851 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
20852
20853         * toplev.h (inform_n, error_n): Declare.
20854         * diagnostic.c (inform_n, error_n): New function.
20855
20856 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
20857
20858         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
20859         has no rtl yet when processing local_decls, queue it and recheck
20860         if deferred stack allocation hasn't assigned it rtl.
20861
20862 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
20863
20864         * config/sh/sh.c (unspec_bbr_uid): New.
20865         (gen_block_redirect): Use it instead of INSN_UID.
20866         (gen_far_branch): Likewise.
20867
20868 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
20869
20870         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
20871         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
20872
20873 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20874
20875         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
20876         (Warning Options): -Wno-conversion-null is valid for
20877         Objective-C++ as well.
20878         * doc/tm.texi (Named Address Spaces): Likewise.
20879         * doc/plugins.texi (Plugins): Replace TABs with spaces.
20880         * doc/tree-ssa.texi (Tree SSA): Likewise.
20881
20882 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
20883
20884         PR bootstrap/43202
20885         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
20886         by default.  Don't set the default arch for
20887         i[34567]86-*-darwin*|x86_64-*-darwin*.
20888
20889 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
20890
20891         PR bootstrap/43202
20892         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
20893         default.  Set the default 32bit/64bit archs with $with_arch
20894         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
20895
20896 2010-02-27  Richard Guenther  <rguenther@suse.de>
20897
20898         PR tree-optimization/43186
20899         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
20900         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
20901         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
20902         unroller iterations.
20903
20904 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
20905
20906         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
20907         required and i[34567]86-*-* targets don't support 64bit ISA.
20908
20909 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
20910
20911         PR ada/43096
20912         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
20913         the same alias set.
20914
20915 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
20916
20917         * config.gcc: Set the default arch at least to Prescott for
20918         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
20919         if SSE math is enabled.
20920
20921 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20922
20923         * diagnostic.c (diagnostic_initialize): Update.
20924         (diagnostic_report_diagnostic): Test inhibit_notes_p for
20925         informative notes.
20926         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
20927         (diagnostic_inhibit_notes): New.
20928         * toplev.c (process_options): inhibit notes with -fcompare-debug.
20929
20930 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20931
20932         PR c/20631
20933         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
20934         * doc/standards.texi: Likewise.
20935         * doc/extend.texi: Likewise.
20936         * doc/trouble.texi: Likewise.
20937         * doc/cppopts.texi: Likewise.
20938         * doc/install.texi: Likewise.
20939         * c.opt (std=c90,std=gnu90): New options.
20940         * c-opts.c (c_common_handle_option): Handle them.
20941
20942 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20943
20944         PR c/24577
20945         * c-decl.c (undeclared_variable): Use an informative note.
20946
20947 2010-02-26  Richard Guenther  <rguenther@suse.de>
20948
20949         PR tree-optimization/43186
20950         * gimple.h (gimple_fold): Remove.
20951         * gimple.c (gimple_fold): Remove.  Inline into single user ...
20952         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
20953         Try harder for conditions.
20954
20955 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
20956
20957         PR debug/43190
20958         * function.c (used_types_insert): Don't skip through named pointer
20959         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
20960         and it is different from the main variant's type.
20961
20962 2010-02-26  Nick Clifton  <nickc@redhat.com>
20963
20964         * config/rx/rx.md (sminsi3): Remove bogus alternative.
20965
20966 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
20967
20968         * config.gcc: Support --with-fpmath=sse for x86.
20969
20970         * config/i386/ssemath.h: New.
20971
20972         * doc/install.texi (--with-fpmath=sse): Documented.
20973
20974 2010-02-26  Richard Guenther  <rguenther@suse.de>
20975
20976         PR tree-optimization/43188
20977         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
20978         vector types of over-aligned element type.
20979
20980 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
20981
20982         PR target/43175
20983         * config/i386/i386.c (expand_vec_perm_blend): Use correct
20984         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
20985
20986 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
20987
20988         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
20989
20990 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
20991
20992         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
20993         * var-tracking.c: Include diagnostic.h.
20994         (debug_dv): New function.
20995         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
20996
20997         PR debug/43160
20998         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
20999         (add_value_chain, add_value_chains, remove_value_chain,
21000         remove_value_chains): Handle DEBUG_EXPRs.
21001         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
21002
21003         PR debug/43161
21004         * regcprop.c (struct queued_debug_insn_change): New type.
21005         (struct value_data_entry): Add debug_insn_changes field.
21006         (struct value_data): Add n_debug_insn_changes field.
21007         (debug_insn_changes_pool): New variable.
21008         (free_debug_insn_changes, apply_debug_insn_changes,
21009         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
21010         (kill_value_one_regno): Call free_debug_insn_changes if needed.
21011         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
21012         fields.
21013         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
21014         changes for them.
21015         (copyprop_hardreg_forward_1): Don't call apply_change_group for
21016         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
21017         changes, call cprop_find_used_regs via note_stores.
21018         (copyprop_hardreg_forward): When copying vd from predecessor
21019         which has any queued DEBUG_INSN changes, make sure the pointers are
21020         cleared.  At the end call df_analyze and then if there are any
21021         DEBUG_INSN changes queued at the end of some basic block for still
21022         live registers, apply them.
21023         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
21024
21025 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
21026
21027         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
21028         (arm*-*-*): Ditto.
21029
21030 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
21031
21032         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
21033         targets.  Set the default with_cpu/with_arch from arch/cpu.
21034         Allow x86-64 and native for with_cpu/with_arch.
21035
21036 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
21037
21038         * ebitmap.c: Change calls to verify_popcount with calls to
21039         sbitmap_verify_popcount.
21040         (ebitmap_clear_bit): Fixed map->cacheindex test and
21041         map>cache update when bit clearing results in an empty
21042         element.
21043
21044 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
21045
21046         PR target/43154
21047         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
21048         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
21049         and support both V2DF and V2DI modes.
21050         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
21051         support both V2DF and V2DI modes.
21052         (general): Delete trailing whitespace from a few patterns.
21053
21054         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21055         V2DF/V2DI interleave high/low builtins.
21056
21057         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
21058         new VSX builtins.
21059
21060         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
21061         interleave high/low functions.
21062
21063 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
21064
21065         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
21066         #pragma extern_prefix.
21067
21068 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
21069
21070         PR debug/43166
21071         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
21072         BLKmode, assert op0 is a MEM and just adjust its mode.
21073
21074         PR debug/43165
21075         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
21076         if bitpos isn't multiple of mode's bitsize.
21077
21078 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21079
21080         * c.opt (-ftemplate-depth=): New.
21081         (-ftemplate-depth-): Deprecate.
21082         * optc-gen.awk: Handle -ftemplate-depth=.
21083         * opth-gen.awk: Likewise.
21084         * c-opts.c (c_common_handle_option): Likewise.
21085         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
21086
21087 2010-02-24  Jason Merrill  <jason@redhat.com>
21088
21089         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
21090
21091 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21092
21093         * cfg.c (alloc_aux_for_block): Remove inline.
21094         (alloc_aux_for_edge): Likewise.
21095
21096 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21097
21098         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
21099
21100 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21101
21102         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
21103         * config/i386/sol2-gas.h: New file.
21104         * config.gcc (i[34567]86-*-solaris2*): Use it.
21105
21106 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21107
21108         PR c/43128
21109         * c-typeck.c (ep_convert_and_check): New.
21110         (build_conditional_expr): Use it.
21111         (build_binary_op): Likewise.
21112
21113 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
21114
21115         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
21116
21117         PR debug/43150
21118         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
21119         bounds even for -O+.
21120         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
21121         expr needs to have DECL_NAME set.
21122
21123 2010-02-24  Nick Clifton  <nickc@redhat.com>
21124
21125         * config/mep/mep.c: Include gimple.h.
21126         (mep_function_uses_sp): Delete unused function.
21127         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
21128         parameters.  Use unsigned integers to count args.  Return a
21129         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
21130
21131 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
21132
21133         PR target/43107
21134         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
21135         greater or equal to nelt instead of 2 * nelt.
21136         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
21137         with nelt - 1.
21138
21139 2010-02-23  Jason Merrill  <jason@redhat.com>
21140
21141         PR debug/42800
21142         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
21143         in cfun->local_decls even if they have register types.
21144
21145         PR c++/42837
21146         * stor-layout.c (place_field): Don't warn about unnecessary
21147         DECL_PACKED if the type is packed.
21148
21149 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
21150
21151         PR target/43139
21152         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
21153         GOTOFF relocs, even when the base reg isn't pic pointer.
21154
21155 2010-02-23  Michael Matz  <matz@suse.de>
21156
21157         PR debug/43077
21158         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
21159         (expand_gimple_basic_block): Generate and use debug temps if there
21160         are debug uses left after the last real use of TERed ssa names.
21161         Unlink debug immediate uses when they are expanded.
21162
21163 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21164
21165         PR 43123
21166         * config/i386/i386.c (override_options): Reorganise to provide
21167         better error messages.
21168
21169 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21170
21171         PR middle-end/43083
21172         * graphite-scop-detection.c (create_single_exit_edge): Move
21173         the call to find_single_exit_edge to....
21174         (create_sese_edges): ...here.  Don't handle multiple edges
21175         exiting the function.
21176         (build_graphite_scops): Don't handle multiple edges
21177         exiting the function.
21178
21179 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21180
21181         PR middle-end/43097
21182         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
21183         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
21184
21185 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21186
21187         PR middle-end/43026
21188         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
21189
21190 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21191
21192         PR c++/43126
21193         * c-typeck.c (convert_arguments): Print declaration location.
21194         * c-common.c (validate_nargs): Rename as
21195         builtin_function_validate_nargs.
21196         (check_builtin_function_arguments): Update.
21197
21198 2010-02-22  Richard Guenther  <rguenther@suse.de>
21199
21200         PR lto/43045
21201         * tree-inline.c (declare_return_variable): Use the type of
21202         the call stmt lhs if available.
21203
21204 2010-02-22  Duncan Sands  <baldrick@free.fr>
21205
21206         * passes.c (register_pass): Always consider all pass lists when
21207         ref_pass_instance_number is zero.
21208
21209 2010-02-22  Richard Guenther  <rguenther@suse.de>
21210
21211         PR tree-optimization/42749
21212         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
21213         parameter.  Do arithmetic in the original type.
21214         (update_accumulator_with_ops): Likewise.
21215         (adjust_accumulator_values): Adjust.
21216
21217 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21218
21219         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
21220         (QI to BLKmode splitter): New splitter.
21221
21222 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
21223
21224         * config/i386/i386.c (initial_ix86_tune_features): Turn on
21225         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
21226
21227 2010-02-22  Richard Guenther  <rguenther@suse.de>
21228
21229         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
21230
21231 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
21232
21233         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
21234         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
21235         ($(T)crti.o, $(T)crtn.o): Remove rules.
21236
21237 2010-02-21  Tobias Burnus  <burnus@net-b.de>
21238
21239         PR fortran/35259
21240         * doc/invoke.texi (-fassociative-math): Document that this
21241         option is automatically enabled for Fortran.
21242
21243 2010-02-20  David S. Miller  <davem@davemloft.net>
21244
21245         * configure.ac: Test if linker and assembler properly support
21246         GOTDATA_OP relocations.
21247         * configure: Rebuild.
21248         * config.in: Likewise.
21249         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
21250         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
21251         (movsi_high_pic): Likewise.
21252         (movdi_lo_sum_pic): Likewise.
21253         (movdi_high_pic): Likewise.
21254         (movsi_pic_gotdata_op): New pattern.
21255         (movdi_pic_gotdata_op): Likewise.
21256         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
21257         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
21258
21259 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
21260
21261         PR target/43067
21262         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
21263         attribute to ssemul.
21264         (xop_mulv2div2di3_high): Ditto.
21265
21266 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21267
21268         PR c++/35669
21269         * c.opt (Wconversion-null): New option.
21270         * doc/invoke.texi (Wconversion-null): Document.
21271
21272 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21273
21274         * common.opt (Wlarger-than-): Add Undocumented.
21275
21276 2010-02-19  Mike Stump  <mikestump@comcast.net>
21277
21278         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
21279
21280 2010-02-19  Jason Merrill  <jason@redhat.com>
21281
21282         PR target/40332
21283         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
21284         * configure: Likewise.
21285
21286 2010-02-20  Alan Modra  <amodra@gmail.com>
21287
21288         PR middle-end/42344
21289         * cgraph.h (cgraph_make_decl_local): Declare.
21290         * cgraph.c (cgraph_make_decl_local): New function.
21291         (cgraph_make_node_local): Use it.
21292         * cgraphunit.c (cgraph_function_versioning): Likewise.
21293         * ipa.c (function_and_variable_visibility): Likewise.
21294
21295 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
21296
21297         PR bootstrap/43121
21298         * except.c (sjlj_emit_function_enter): Don't call
21299         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
21300         directly.
21301         * rtl.h (add_reg_br_prob_note): Remove prototype.
21302
21303 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21304
21305         PR 41779
21306         * c-common.c (conversion_warning): Remove widening conversions
21307         before checking the conversion of integers to reals.
21308
21309 2010-02-19  Mike Stump  <mikestump@comcast.net>
21310
21311         PR middle-end/43125
21312         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
21313
21314         PR objc/43061
21315         * cgraphunit.c (process_function_and_variable_attributes): Check
21316         DECL_PRESERVE_P instead of looking up attribute "used".
21317         * ipa-pure-const.c (check_decl): Likewise.
21318         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
21319         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
21320         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
21321         instead of attribute "used".
21322         * config/sol2-c.c (solaris_pragma_init): Likewise.
21323         (solaris_pragma_fini): Likewise.
21324
21325 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
21326
21327         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
21328         Use XCNEW instead of xcalloc.
21329         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
21330         XNEW instead of xmalloc.
21331         (get_fields): Use XNEWVEC instead of xmalloc.
21332
21333         PR debug/43084
21334         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
21335         populate vars array.
21336         (create_new_general_access): For debug stmts just reset value.
21337         (get_stmt_accesses): For accesses within debug stmts just record them
21338         using add_access_to_acc_sites instead of preventing the peeling or
21339         counting them as accesses.
21340
21341         PR middle-end/42233
21342         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
21343
21344 2010-02-19  Richard Guenther  <rguenther@suse.de>
21345
21346         PR tree-optimization/42916
21347         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
21348         instructions.
21349
21350 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
21351
21352         * configure.ac: Replace all uses of changequote in macro arguments
21353         with proper quoting.
21354
21355 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
21356
21357         PR middle-end/42233
21358         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
21359
21360 2010-02-19  Richard Guenther  <rguenther@suse.de>
21361
21362         PR tree-optimization/42944
21363         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
21364         test for aliasing with errno.
21365
21366 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
21367
21368         PR middle-end/42233
21369         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
21370         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
21371         * dojump.c: Include output.h.
21372         (inv): New inline function.
21373         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
21374         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
21375         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
21376         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
21377         argument, pass it down to other calls.
21378         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
21379         add REG_BR_PROB note to the conditional jump.
21380         * cfgexpand.c (add_reg_br_prob_note): Removed.
21381         (expand_gimple_cond): Don't call it, add the probability
21382         as last argument to jumpif_1/jumpifnot_1.
21383         * Makefile.in (dojump.o): Depend on output.h.
21384         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
21385         callers.
21386         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
21387         * stmt.c (do_jump_if_equal): Likewise.
21388         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
21389         * loop-unswitch.c (compare_and_jump_seq): Likewise.
21390         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
21391         Likewise.
21392         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
21393         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
21394         jumpifnot_1 callers.
21395         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
21396         callers.
21397         (store_expr): Adjust jumpifnot caller.
21398         (store_constructor): Adjust jumpif caller.
21399
21400         PR middle-end/42233
21401         * gimplify.c (gimple_boolify): For __builtin_expect call
21402         gimple_boolify also on its first argument.
21403
21404 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
21405
21406         * configure.ac (gnu-unique-object): Wrap regexps using [] in
21407         changequote block.
21408         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
21409         * configure: Regenerated.
21410
21411 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21412
21413         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
21414         lang_hooks.types_compatible_p instead of comptypes.
21415
21416 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
21417
21418         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
21419         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
21420         if __prefer_thumb__ is defined.
21421
21422 2010-02-18  Martin Jambor  <mjambor@suse.cz>
21423
21424         PR tree-optimization/43066
21425         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
21426         array with zero-sized element type.
21427
21428 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
21429
21430         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
21431         rtx, allocate struct var_loc_node here and return it to the
21432         caller, and only if it is actually needed.
21433         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
21434         move it earlier and return immediately if it returns NULL.
21435
21436 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
21437
21438         * config/sparc/gas.h: New file.  Restore
21439         TARGET_ASM_NAMED_SECTION to its ELF default.
21440         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
21441         check !HAVE_GNU_AS.
21442         * config/sparc/sparc.c (sparc_elf_asm_named_section):
21443         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
21444         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
21445         after sparc/sysv4.h.
21446
21447 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
21448
21449         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
21450
21451 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
21452
21453         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
21454         patterns from predicated pattern.
21455
21456 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
21457
21458         PR target/43103
21459         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
21460         for insn mnemonic suffix.
21461
21462 2010-02-17  Richard Guenther  <rguenther@suse.de>
21463
21464         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
21465         to loop PHI nodes.
21466
21467 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
21468
21469         PR debug/42918
21470         * caller-save.c (save_call_clobbered_regs): If BB ends with
21471         a DEBUG_INSN, move any notes in between last real insn and the last
21472         DEBUG_INSN after the last DEBUG_INSN.
21473
21474 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
21475
21476         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
21477         Fix return type.  Fix argument type.  Explain meaning of return value.
21478
21479 2010-02-16  Richard Guenther  <rguenther@suse.de>
21480
21481         PR tree-optimization/41043
21482         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
21483         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
21484         statements ...
21485         (vrp_visit_phi_node): ... but only for loop PHI nodes.
21486
21487 2010-02-16  Ira Rosen  <irar@il.ibm.com>
21488
21489         PR tree-optimization/43074
21490         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
21491         * tree-vect-loop.c (vect_analyze_loop_operations): Add
21492         vectorizable cycles in hybrid SLP check.
21493         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
21494
21495 2010-02-16  Richard Guenther  <rguenther@suse.de>
21496
21497         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
21498         (true_dependence): If memrefs_conflict_p computes must-alias
21499         trust it.  Move TBAA check after offset-based disambiguation.
21500         (canon_true_dependence): Likewise.
21501
21502 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
21503
21504         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
21505         * doc/invoke.texi: Document it.
21506         * var-tracking.c: Include toplev.h and params.h.
21507         (vt_find_locations): Return bool indicating success.  Compute
21508         hash sizes unconditionally.  Check new parameter, report.
21509         (variable_tracking_main_1): Check vt_find_locations results and
21510         retry.  Renamed from...
21511         (variable_tracking_main): ... this.  New wrapper to preserve
21512         flag_var_tracking_assignments.
21513         * Makefile.in (var-tracking.o): Adjust dependencies.
21514
21515 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
21516             Jakub Jelinek  <jakub@redhat.com>
21517
21518         PR target/42854
21519         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
21520         if weak_import attribute is present.
21521         * config/darwin.c (machopic_select_section): Likewise.
21522
21523 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
21524
21525         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
21526         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
21527         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
21528         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
21529
21530         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
21531         types.
21532
21533         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
21534         Fix argument types.
21535
21536         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
21537         Rewrite text to refer to the names.
21538
21539 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
21540
21541         * config/i386/i386-builtin-types.def
21542         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
21543         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
21544         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
21545         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
21546         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
21547         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
21548         IX86_BUILTIN_VPERMIL2PS256.
21549         (MULTI_ARG_4_DF2_DI_I): Defined.
21550         (MULTI_ARG_4_DF2_DI_I1): Defined.
21551         (MULTI_ARG_4_SF2_SI_I): Defined.
21552         (MULTI_ARG_4_SF2_SI_I1): Defined.
21553         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
21554         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
21555         __builtin_ia32_vpermil2ps256.
21556         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
21557         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
21558         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
21559         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
21560         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
21561         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
21562         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
21563         CODE_FOR_xop_vpermil2v8sf3.
21564         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
21565         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
21566         * config/i386/xopintrin.h (_mm_permute2_pd): New.
21567         (_mm256_permute2_pd): New.
21568         (_mm_permute2_ps): New.
21569         (_mm256_permute2_ps): New.
21570
21571 2010-02-15  Nick Clifton  <nickc@redhat.com>
21572
21573         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
21574         boolean parameters.  Use emit_jump_insn when emitting a pop
21575         instruction containing a return insn.
21576         (push): Use 'true' rather than '1' as second parameter to F.
21577         (h8300_expand_prologue): Likewise.
21578         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
21579         (h8300_expand_epilogue): Likewise.
21580
21581 2010-02-15  Richard Guenther  <rguenther@suse.de>
21582
21583         PR middle-end/43068
21584         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
21585         if that is zero.
21586
21587 2010-02-15  Nick Clifton  <nickc@redhat.com>
21588
21589         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
21590         delta.
21591
21592 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
21593
21594         * intl.c (fake_ngettext): New function.
21595         * intl.h (fake_ngettext): Declare.
21596         (ngettext): Define macro.
21597         * collect2.c (notice_translated): New function.
21598         (main): Use notice_translated and ngettext.
21599         * collect2.h (notice_translated): Declare.
21600
21601 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
21602
21603         * reorg.c (delete_computation): Comment fixes.
21604         * caller-save.c (setup_save_areas): Idem.
21605         * sel-sched-dump.c (dump_lv_set): Idem.
21606         * rtl.def: Idem.
21607
21608 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21609
21610         * config/s390/s390.c (s390_sched_init): New function.
21611         (TARGET_SCHED_INIT): Target hook defined.
21612
21613 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
21614             Jack Howarth  <howarth@bromo.med.uc.edu>
21615             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
21616
21617         PR target/42982
21618         Partial revert of unintended change in fix for PR41605.
21619         * config/darwin.h: Fix typo.
21620         * config/darwin9.h: Same.
21621
21622 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
21623
21624         * c-pch.c (pch_init): Clear v.
21625
21626 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
21627
21628         PR middle-end/42930
21629         * graphite-scop-detection.c (graphite_can_represent_scev): Call
21630         graphite_can_represent_init for MULT_EXPR.
21631
21632 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
21633
21634         PR middle-end/42914
21635         PR middle-end/42530
21636         * graphite-sese-to-poly.c (remove_phi): New.
21637         (translate_scalar_reduction_to_array): Call remove_phi.
21638
21639 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
21640
21641         PR middle-end/42771
21642         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
21643         * graphite-clast-to-gimple.h (gloog): Update declaration.
21644         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
21645         * graphite-poly.h (struct poly_bb): Add missing comments.
21646         (struct scop): Add poly_scop_p field.
21647         (POLY_SCOP_P): New.
21648         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
21649         * graphite.c (graphite_transform_loops): Build the polyhedral
21650         representation for each scop before code generation.
21651         * sese.c (rename_variables_in_operand): Removed.
21652         (rename_variables_in_expr): Return the renamed expression.
21653         (rename_sese_parameters): New.
21654         * sese.h (rename_sese_parameters): Declared.
21655
21656 2010-02-11  Richard Guenther  <rguenther@suse.de>
21657
21658         PR tree-optimization/42998
21659         * tree-ssa-pre.c (create_expression_by_pieces): Treat
21660         POINTER_PLUS_EXPR properly.
21661
21662 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
21663             Changpeng Fang  <changpeng.fang@amd.com>
21664
21665         PR middle-end/40886
21666         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
21667         the cost of an IV candidate when the IV is used in a test against zero.
21668
21669         * gcc.dg/tree-ssa/ivopts-3.c: New.
21670
21671 2010-02-11  Richard Guenther  <rguenther@suse.de>
21672
21673         PR lto/41664
21674         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
21675         pointer-vs-decl case by swapping refs.  Handle some cases
21676         of pointer-vs-decl disambiguations more conservatively.
21677         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
21678         to false after expanding.
21679
21680 2010-02-11  Richard Guenther  <rguenther@suse.de>
21681
21682         PR driver/43021
21683         * gcc.c (process_command): Handle LTO file@offset case more
21684         appropriately.
21685
21686 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
21687
21688         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
21689         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
21690         of DEBUG_INSNs.
21691         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
21692
21693         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
21694         if MEM's mode size isn't DWARF2_ADDR_SIZE.
21695         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
21696         Optimize eq/ne comparisons when both arguments are known to be
21697         zero-extended.
21698         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
21699         Don't mask operands unnecessarily if they are known to be already
21700         zero-extended.
21701
21702 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
21703
21704         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
21705         instead of loop.
21706
21707 2010-02-10  Richard Guenther  <rguenther@suse.de>
21708
21709         PR tree-optimization/43017
21710         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
21711         for wrapping signed arithmetic.
21712
21713 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
21714
21715         PR debug/43010
21716         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
21717         if no debug info should be emitted for it.
21718
21719 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
21720
21721         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
21722         note when flag_exceptions is set.
21723
21724 2010-02-10  Duncan Sands  <baldrick@free.fr>
21725
21726         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
21727
21728 2010-02-10  Richard Guenther  <rguenther@suse.de>
21729
21730         PR c/43007
21731         * tree.c (get_unwidened): Handle constants.
21732         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
21733
21734 2010-02-10  Martin Jambor  <mjambor@suse.cz>
21735
21736         PR lto/42985
21737         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
21738         check for variable argument counts independently.
21739
21740 2010-02-10  Christian Bruel  <christian.bruel@st.com>
21741
21742         PR target/42841
21743         * config/sh/sh.c (find_barrier): Increase length for non delayed
21744         conditional branches.
21745
21746 2010-02-10  Christian Bruel  <christian.bruel@st.com>
21747
21748         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
21749
21750 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
21751
21752         * builtins.c (set_builtin_user_assembler_name): Also handle
21753         ffs if int is smaller than word.
21754
21755 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
21756
21757         PR middle-end/42973
21758         * ira-conflicts.c (get_dup): Remove.
21759         (process_reg_shuffles): Add new parameter.  Use it as an
21760         additional guard for copy generation.
21761         (add_insn_allocno_copies): Rewrite.
21762
21763 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
21764
21765         * common.opt (fsched2-use-traces): Preserved for backward
21766         compatibility.
21767         * doc/invoke.texi: Remove the documentation about option
21768         -fsched2-use-traces.
21769         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
21770         flag_sched2_use_traces.
21771         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
21772         the backward compatibility flag section.
21773
21774 2010-02-09  Richard Guenther  <rguenther@suse.de>
21775
21776         PR tree-optimization/43008
21777         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
21778         make HEAP variables initialized from global memory if they
21779         are not known builtin functions.
21780         (find_func_aliases): Adjust.
21781
21782 2010-02-09  Richard Guenther  <rguenther@suse.de>
21783
21784         PR tree-optimization/43000
21785         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
21786         arithmetic manually.
21787
21788 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
21789
21790         PR tree-optimization/42931
21791         * tree-loop-linear.c (try_interchange_loops): Don't call
21792         double_int_mul if estimated_loop_iterations failed.
21793
21794 2010-02-08  Martin Jambor  <mjambor@suse.cz>
21795
21796         PR middle-end/42898
21797         * tree-sra.c (build_accesses_from_assign): Do not mark in
21798         should_scalarize_away_bitmap if stmt has volatile ops.
21799         (sra_modify_assign): Do not process assigns piecemeal if if stmt
21800         has volatile ops.
21801
21802 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
21803
21804         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
21805
21806 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
21807
21808         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
21809         before the pattern.
21810
21811 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
21812
21813         PR middle-end/42946
21814         * df-core.c (df_finish_pass): Change type of saved_flags to int.
21815
21816 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
21817
21818         PR middle-end/42988
21819         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
21820         to unknown_dependence.
21821         (graphite_legal_transform_dr): Handle the unknown_dependence.
21822         (graphite_carried_dependence_level_k): Same.
21823
21824 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
21825
21826         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
21827
21828 2010-02-07  Richard Guenther  <rguenther@suse.de>
21829
21830         PR middle-end/42991
21831         * expr.c (get_inner_reference): Always initialize *pbitsize.
21832
21833 2010-02-07  Richard Guenther  <rguenther@suse.de>
21834
21835         PR middle-end/42956
21836         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
21837         new ARRAY_REFs on variable size element or minimal index arrays.
21838         Complete.
21839         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
21840         gimple_fold_indirect_ref.
21841
21842 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
21843
21844         PR target/42957
21845         * arm.c (arm_override_options): Just return if the user has specified
21846         an invalid fpu name.
21847
21848 2010-02-03  Jason Merrill  <jason@redhat.com>
21849
21850         PR c++/42870
21851         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
21852         i386_pe_maybe_record_exported_symbol.
21853
21854 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
21855
21856         PR target/42924
21857         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
21858         (pa_delegitimize_address): New function.
21859
21860 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
21861
21862         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
21863         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
21864
21865 2010-02-05  Richard Guenther  <rguenther@suse.de>
21866
21867         PR lto/42762
21868         * lto-streamer-in.c (get_resolution): Deal with references
21869         to undefined functions.
21870
21871 2010-02-05  Richard Guenther  <rguenther@suse.de>
21872
21873         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
21874         (fold_const_aggregate_ref): Likewise.
21875         (ccp_fold_stmt): Substitute loads.
21876         (maybe_fold_reference): Verify types before substituting.
21877         Unshare properly.
21878         (fold_gimple_assign): Unshare properly.
21879         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
21880
21881 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
21882
21883         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
21884         for rs6000_gen_cell_microcode.
21885
21886 2010-02-04  Richard Guenther  <rguenther@suse.de>
21887
21888         PR rtl-optimization/42952
21889         * dse.c (const_or_frame_p): Remove MEM handling.
21890
21891 2010-02-04  Nick Clifton  <nickc@redhat.com>
21892
21893         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
21894         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
21895         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
21896         (mn10300_asm_output_mi_thunk): New function.
21897         (mn10300_can_output_mu_thunk): New function.
21898         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
21899         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
21900         (FUNCTION_ARG): Delete incorrect comment.
21901
21902 2010-02-03  Jason Merrill  <jason@redhat.com>
21903
21904         PR c++/40138
21905         * fold-const.c (operand_equal_p): Handle erroneous types.
21906
21907 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
21908
21909         * config/h8300/h8300.md (can_delay): Fix attibute condition.
21910
21911 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
21912
21913         PR rtl-optimization/42941
21914         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
21915         of xmalloc.
21916
21917 2010-02-03  Jason Merrill  <jason@redhat.com>
21918
21919         PR c++/35652
21920         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
21921
21922 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
21923
21924         PR debug/42896
21925         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
21926         (cselib_reset_table): Renamed from...
21927         (cselib_reset_table_with_next_value): ... this.
21928         (cselib_get_next_uid): Renamed from...
21929         (cselib_get_next_unknown_value): ... this.
21930         * cselib.c (next_uid): Renamed from...
21931         (next_unknown_value): ... this.
21932         (cselib_clear_table): Adjust.
21933         (cselib_reset_table): Adjust.  Renamed from...
21934         (cselib_reset_table_with_next_value): ... this.
21935         (cselib_get_next_uid): Adjust.  Renamed from...
21936         (cselib_get_next_unknown_value): ... this.
21937         (get_value_hash): Use hash.
21938         (cselib_hash_rtx): Likewise.
21939         (new_cselib_val): Adjust.  Set and dump uid.
21940         (cselib_lookup_mem): Pass next_uid as hash.
21941         (cselib_subst_to_values): Likewise.
21942         (cselib_log_lookup): Dump uid.
21943         (cselib_lookup): Pass next_uid as hash.  Adjust.
21944         (cselib_process_insn): Adjust.
21945         (cselib_init): Initialize next_uid.
21946         (cselib_finish): Adjust.
21947         (dump_cselib_table): Likewise.
21948         * dse.c (canon_address): Dump value uid.
21949         * print-rtl.c (print_rtx): Print value uid.
21950         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
21951         (dvuid): New type.
21952         (dv_uid): New function, sort of renamed from...
21953         (dv_htab_hash): ... this, reimplemented in terms of it and...
21954         (dv_uid2hash): ... this.  New.
21955         (variable_htab_eq): Drop excess assertions.
21956         (tie_break_pointers): Removed.
21957         (canon_value_cmp): Compare uids.
21958         (variable_post_merge_New_vals): Print uids.
21959         (vt_add_function_parameters): Adjust.
21960         (vt_initialize): Reset table.  Adjust.
21961
21962 2010-02-03  Richard Guenther  <rguenther@suse.de>
21963
21964         PR tree-optimization/42944
21965         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
21966         (call_may_clobber_ref_p_1): Likewise.  Properly handle
21967         malloc and calloc clobbering errno.
21968
21969 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
21970
21971         * doc/invoke.texi: Fix name of sched1 dump.
21972
21973         * opts.c (decode_options): Set flag_tree_switch_conversion
21974         only conditionally on optimize >= 2.
21975
21976         * gcse.c: Assorted comment fixes in pass description.
21977
21978 2010-02-03  Anthony Green  <green@moxielogic.com>
21979
21980         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
21981         nop padding in order to maintain alignment of storage location of
21982         target function address.
21983         (moxie_trampoline_init): Store target function address at newly
21984         aligned location.
21985         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
21986         to 32.
21987         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
21988
21989 2010-02-03  Richard Guenther  <rguenther@suse.de>
21990
21991         PR middle-end/42927
21992         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
21993
21994 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21995
21996         * config.gcc: Reenable check for obsolete targets.
21997         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
21998         mips-sgi-irix6.[0-4]*.
21999
22000 2010-02-02  Nick Clifton  <nickc@redhat.com>
22001
22002         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
22003         constant size of 4 as being the same as 0.
22004         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
22005         can take values in the range 0..4.
22006
22007 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
22008
22009         PR java/41991
22010         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
22011         as _darwin10_Unwind_FindEnclosingFunction().
22012         * libgcc-libsystem.ver: New.
22013
22014 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
22015
22016         PR target/41399
22017         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
22018         implicitly set registers.
22019
22020 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
22021
22022         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
22023         (arm_override_options): Allow automatic selection of the thread
22024         pointer register if thumb2.
22025         (legitimize_pic_address): Improve code sequences for Thumb2.
22026         (arm_call_tls_get_addr): Likewise.
22027         (legitimize_tls_address): Likewise.
22028         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
22029         (pic_load_addr_32bit): ... this.  New named pattern.
22030         * thumb2.md (pic_load_addr_thumb2): Delete.
22031         (pic_load_dot_plus_four): Delete.
22032         (tls_load_dot_plus_four): New named pattern.
22033
22034 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22035
22036         PR libgomp/29986
22037         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
22038         Document fix for TLS bug.
22039
22040 2010-01-31  Richard Guenther  <rguenther@suse.de>
22041
22042         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
22043         conservatively correct.
22044
22045 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22046
22047         PR target/42850
22048         Revert:
22049         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22050
22051         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
22052
22053 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22054
22055         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
22056
22057 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
22058
22059         * config.gcc: Adjust order of makefile fragments for mingw targets.
22060
22061 2010-01-31  Richard Guenther  <rguenther@suse.de>
22062
22063         PR middle-end/42898
22064         * gimplify.c (gimplify_init_constructor): For volatile LHS
22065         initialize a temporary.
22066
22067 2010-01-31  Matthias Klose  <doko@ubuntu.com>
22068
22069         * configure.ac: Fix __stack_chk_fail check for cross builds configured
22070         --with-headers
22071         * configure: Regenerate.
22072
22073 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
22074
22075         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
22076         the same alias set and their sizes different constantness.
22077         (aliasing_component_refs_p): Revert 2009-10-24 change.
22078
22079 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22080
22081         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
22082         unused.
22083
22084 2010-01-29  Richard Guenther  <rguenther@suse.de>
22085
22086         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
22087         Assert we successfully updated the call.
22088
22089 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
22090
22091         PR rtl-optimization/42889
22092         * df.h (df_set_bb_dirty_nonlr): New prototype.
22093         * df-core.c (df_set_bb_dirty_nonlr): New function.
22094         * df-scan.c (df_insn_rescan): Call it instead of
22095         df_set_bb_dirty for DEBUG_INSNs.
22096
22097 2010-01-29  Richard Guenther  <rguenther@suse.de>
22098
22099         PR middle-end/37448
22100         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
22101         quadratic behavior in most cases.
22102
22103 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
22104
22105         PR target/42891
22106         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
22107         in the call to gen_x86_movsicc_0_m1.
22108
22109 2010-01-28  Richard Guenther  <rguenther@suse.de>
22110
22111         PR tree-optimization/42871
22112         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
22113
22114 2010-01-28  Richard Guenther  <rguenther@suse.de>
22115
22116         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
22117         into call arguments.
22118
22119 2010-01-28  Richard Guenther  <rguenther@suse.de>
22120
22121         PR middle-end/42883
22122         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
22123         the forwarder if the destination is an EH landing pad.
22124
22125 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
22126
22127         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
22128         block list passed to gimple_duplicate_sese_tail.
22129         (parallelize_loops): Avoid parallelization when the function
22130         has_nonlocal_label.
22131         Avoid parallelization when the preheader is IRREDUCIBLE.
22132         Try to optimize when estimated_loop_iterations_int is unresolved.
22133         Add the loop's location to the dump file.
22134         * tree-cfg.c (add_phi_args_after_redirect): Remove.
22135         (gimple_duplicate_sese_tail): Remove the check for the latch.
22136         Redirect nexits to the exit block.
22137         Remove handling of the incoming edges to the latch.
22138         Redirect the backedge from the copied latch to the exit bb.
22139
22140 2010-01-28  Michael Matz  <matz@suse.de>
22141
22142         PR target/42881
22143         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
22144         Wrap force_reg into a sequence, emit it before user.
22145
22146 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
22147
22148         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
22149         (arm_rev): New.
22150         (arm_legacy_rev): Likewise.
22151         (thumb_legacy_rev): Likewise.
22152
22153 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
22154
22155         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
22156         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
22157         on MEM's address failed, try avoid_constant_pool_reference and
22158         recurse if it returned something different.
22159         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
22160         address, try avoid_constant_pool_reference and recurse if it
22161         returned something different.
22162         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
22163         address and avoid_constant_pool_reference returned something
22164         different, don't set have_address.
22165
22166 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
22167
22168         PR debug/42861
22169         * var-tracking.c (val_store): Add modified argument, obey it.
22170         Adjust callers.
22171         (count_uses): Move down logging of main.
22172         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
22173         don't need resolution.
22174         (emit_notes_in_bb): Likewise.
22175
22176 2010-01-27  Richard Guenther  <rguenther@suse.de>
22177
22178         PR middle-end/42878
22179         * tree-inline.c (remap_decl): Delay remapping of SSA name
22180         default definitions until we need them.
22181
22182 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
22183
22184         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
22185         (rs6000_delegitimize_address): New function.
22186
22187         * config/s390/s390.c (s390_delegitimize_address): Call
22188         delegitimize_mem_from_attrs.
22189
22190         PR middle-end/42874
22191         * tree-inline.c (cannot_copy_type_1): Removed.
22192         (copy_forbidden): Don't forbid copying of functions containing
22193         records/unions with variable length fields.
22194
22195 2010-01-27  Christian Bruel  <christian.bruel@st.com>
22196
22197         Revert:
22198         PR target/42841
22199         * config/sh/sh.c (find_barrier): Increase length for non delayed
22200         conditional branches.
22201
22202 2010-01-27  Matthias Klose  <doko@ubuntu.com>
22203
22204         * configure.ac (gnu-unique-object): Fix ldd version check.
22205         * configure: Regenerate.
22206
22207 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22208
22209         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
22210         HAVE_GNU_AS value.
22211         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
22212         Test for HAVE_GNU_AS value.
22213
22214 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22215
22216         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
22217         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
22218         INT64_TYPE): Define.
22219         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
22220         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
22221         INT_LEAST64_TYPE): Define.
22222         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
22223         UINT_LEAST64_TYPE): Define.
22224         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
22225         INT_FAST64_TYPE): Define.
22226         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
22227         UINT_FAST64_TYPE): Define.
22228         (INTMAX_TYPE, UINTMAX_TYPE): Define.
22229         (INTPTR_TYPE, UINTPTR_TYPE): Define.
22230         (SIG_ATOMIC_TYPE): Define.
22231
22232 2010-01-26  Richard Guenther  <rguenther@suse.de>
22233
22234         * df-scan.c (df_scan_set_bb_info): Remove assert.
22235         (df_insn_rescan_debug_internal): Merge asserts.
22236         (df_install_ref): Likewise.
22237         (df_mark_reg): Use bitmap_set_range.
22238         (df_hard_reg_used_p): Remove assert.
22239         (df_hard_reg_used_count): Likewise.
22240
22241 2010-01-26  Richard Guenther  <rguenther@suse.de>
22242
22243         PR rtl-optimization/42685
22244         * web.c (web_main): Ignore DEBUG_INSNs.
22245
22246 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
22247
22248         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
22249
22250         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
22251         Fix types of fndecl and arglist parameters.
22252
22253 2010-01-26  Richard Guenther  <rguenther@suse.de>
22254
22255         PR middle-end/42806
22256         * tree-eh.c (unsplit_eh): Skip debug insns.
22257
22258 2010-01-26  Richard Guenther  <rguenther@suse.de>
22259
22260         PR tree-optimization/42250
22261         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
22262
22263 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
22264
22265         PR fortran/42866
22266         * omp-low.c (expand_omp_sections): Only use single_pred if
22267         l2_bb is single_pred_p.
22268
22269 2010-01-25  Christian Bruel  <christian.bruel@st.com>
22270
22271         PR target/42841
22272         * config/sh/sh.c (find_barrier): Increase length for non delayed
22273         conditional branches.
22274         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
22275
22276 2010-01-24  David S. Miller  <davem@davemloft.net>
22277
22278         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
22279         define if not using GAS.
22280         * config/sparc/sparc.c (sparc_elf_asm_named_section):
22281         Likewise.  Delete SECTION_MERGE code, which is only applicable
22282         when using GAS.
22283
22284 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
22285
22286         PR c++/42748
22287         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
22288         mangling of va_list in system headers.
22289
22290 2010-01-23  Toon Moene  <toon@moene.org>
22291
22292         * tree-predcom.c (combine_chains): Return NULL, not false.
22293
22294 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
22295
22296         * tree-loop-distribution.c (distribute_loop): Fix declaration and
22297         initialization of variable res to agree with return type.
22298
22299 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
22300
22301         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
22302         * tree-sra.c: Add include of expr.h.
22303
22304 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
22305
22306         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
22307         insert the debug stmt on the single non-EH edge from the stmt.
22308
22309 2010-01-22  Richard Henderson  <rth@redhat.com>
22310
22311         PR tree-opt/42833
22312         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
22313         the RHS until after generate_subtree_copies has insertted its
22314         code before the current statement.
22315
22316 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
22317
22318         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
22319
22320         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
22321
22322 2010-01-21  Martin Jambor  <mjambor@suse.cz>
22323
22324         PR tree-optimization/42585
22325         * tree-sra.c (struct access): New field grp_total_scalarization.
22326         (dump_access): Dump the new field.
22327         (should_scalarize_away_bitmap): New variable.
22328         (cannot_scalarize_away_bitmap): Likewise.
22329         (sra_initialize): Allocate new bitmaps.
22330         (sra_deinitialize): Free new bitmaps.
22331         (create_access_1): New function.
22332         (create_access): Parts moved to create_access_1.
22333         (type_consists_of_records_p): New function.
22334         (completely_scalarize_record): Likewise.
22335         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
22336         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
22337         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
22338         access.
22339         (analyze_all_variable_accesses): Completely scalarize small eligible
22340         records.
22341
22342 2010-01-21  Martin Jambor  <mjambor@suse.cz>
22343
22344         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
22345
22346 2010-01-21  Andrew Haley  <aph@redhat.com>
22347
22348         * gcc.c (process_command): Move lang_specific_driver before
22349         setting cc_libexec_prefix.
22350
22351 2010-01-21  Richard Guenther  <rguenther@suse.de>
22352
22353         PR middle-end/19988
22354         * fold-const.c (negate_expr_p): Pretend only negative
22355         real constants are easily negatable.
22356
22357 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
22358             Jason Merrill  <jason@redhat.com>
22359
22360         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
22361         (TYPE_TRANSPARENT_AGGR): this, for union and record.
22362         * calls.c (initialize argument_information): Handle it.
22363         * c-common.c (handle_transparent_union_attribute): Use new name.
22364         * c-decl.c (finish_struct): Ditto.
22365         * c-typeck.c (type_lists_compatible_p): Ditto.
22366         (convert_for_assignment): Use new name and also handle record.
22367         * function.c (aggregate_value_p): Handle it.
22368         (pass_by_reference): Ditto.
22369         (assign_parm_data_types): Ditto.
22370         * print-tree.c (print_node): Ditto.
22371         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
22372         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
22373         * tree.c (first_field): New fn.
22374
22375 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
22376
22377         PR target/42818
22378         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
22379         even when linking statically, for now.
22380
22381 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
22382
22383         PR debug/42715
22384         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
22385         without a cselib val.
22386         (count_uses): Accept MO_VAL_SET with no val on stores.
22387         (add_stores): Likewise.
22388
22389 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22390
22391         * var-tracking.c (check_value_val): Add a compile time assertion.
22392         (dv_is_decl_p): Simplify.
22393         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
22394         gcc_assert if ENABLE_CHECKING.
22395
22396 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
22397
22398         PR debug/42782
22399         * var-tracking.c: Include tree-flow.h.
22400         (mem_dies_at_call): New.
22401         (dataflow_set_preserve_mem_locs): Use it.
22402         (dataflow_set_remove_mem_locs): Likewise.
22403         (dump_var): Renamed from dump_variable.  Adjust all callers.
22404         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
22405         * Makefile.in (var-tracking.o): Adjust deps.
22406
22407 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
22408
22409         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
22410
22411 2010-01-20  Richard Guenther  <rguenther@suse.de>
22412
22413         PR tree-optimization/42717
22414         * tree-ssa-dce.c (get_live_post_dom): Remove.
22415         (forward_edge_to_pdom): Take an arbitrary edge to copy
22416         degenerate PHI args from.
22417         (remove_dead_stmt): Use the first post-dominator even if it
22418         does not contain live statements as redirection destination.
22419
22420 2010-01-20  Richard Guenther  <rguenther@suse.de>
22421
22422         * tree-inline.c (estimate_num_insns): Handle EH builtins.
22423
22424 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22425
22426         * sel-sched.c (create_speculation_check): Remove set but not used
22427         variable twin.
22428         (try_transformation_cache): Remove set but not used variable ds.
22429         (calculate_privileged_insns): Remove set but not used variables
22430         cur_insn and min_spec_insn.
22431         (find_best_expr): Remove set but not used variable avail_n.
22432         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
22433         variable e.
22434         * cgraphunit.c (assemble_thunk): Remove set but not used variable
22435         false_label.
22436         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
22437         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
22438         new_scop_exit_edge.
22439
22440 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
22441
22442         PR bootstrap/42786
22443         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
22444         cpu types.  Add support for *-sse3 cpu types.
22445         (x86_64-*-*): Ditto.
22446
22447 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22448
22449         PR middle-end/42803
22450         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
22451         argument, call initializer_constant_valid_p_1 instead of
22452         initializer_constant_valid_p, pass CACHE to it, return NULL
22453         immediately if first call returns NULL.
22454         (initializer_constant_valid_p_1): New function.
22455         (initializer_constant_valid_p): Use it.
22456
22457 2010-01-20  Thomas Quinot  <quinot@adacore.com>
22458
22459         * tree.def (PLACEHOLDER_EXPR): Fix comment.
22460
22461 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22462
22463         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
22464         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
22465         (loc_list_from_tree): Don't handle unsigned division.  Handle
22466         signed modulo using DW_OP_{over,over,div,mul,minus}.
22467         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
22468         modulo instead of signed.
22469
22470 2010-01-20  DJ Delorie  <dj@redhat.com>
22471
22472         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
22473         (Fpa): Pass it
22474         (h8300_emit_stack_adjustment): Propogate it.
22475         (push): Pass it.
22476         (h8300_expand_prologue): Likewise.
22477         (h8300_expand_epilogue): Likewise.
22478
22479 2010-01-19  Michael Matz  <matz@suse.de>
22480
22481         PR tree-optimization/41783
22482         * tree-data-ref.c (toplevel): Include flags.h.
22483         (dump_data_dependence_relation):  Also dump the inputs if the
22484         result will be unknown.
22485         (split_constant_offset_1): Look through some conversions.
22486         * tree-predcom.c (determine_roots_comp): Restart a new chain if
22487         the offset from last element is too large.
22488         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
22489         (reassociate_to_the_same_stmt): Handle vector registers.
22490         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
22491         (e.g. conversions).
22492         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
22493         wide_prolog_niters argument, emit widening instructions.
22494         (vect_do_peeling_for_alignment): Adjust caller, use widened
22495         variant of the iteration cound.
22496         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
22497
22498 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22499
22500         PR target/38697
22501         * config/arm/neon-testgen.m (emit_automatics): New parameter
22502         features. Adjust for Fixed_return_reg feature.
22503         (test_intrinsic): Call emit_automatics with new feature.
22504         * config/arm/neon.ml: Update copyright years.
22505         (features): New Fixed_return_reg feature.
22506         (ops): Update feature for Vget_low.
22507
22508 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
22509
22510         PR tree-optimization/42719
22511         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
22512         stmt uses.
22513
22514         PR debug/42728
22515         * fwprop.c (all_uses_available_at): Return false if def_set dest
22516         is a REG that is used in def_insn.
22517
22518 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
22519
22520         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
22521
22522         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
22523         Add argument names.
22524
22525         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
22526
22527         * target.h (struct gcc_target) <secondary_reload>: Change type
22528         of last argument to secondary_reload_info *.
22529
22530 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
22531
22532         PR target/42774
22533         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
22534         memory references with unaligned offsets.  Remove CQImode handling.
22535         (unaligned_memory_operand): Return 1 for memory references with
22536         unaligned offsets.  Remove CQImode handling.
22537
22538 2010-01-18  Richard Guenther  <rguenther@suse.de>
22539
22540         PR middle-end/39954
22541         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
22542         builtin calls.
22543
22544 2010-01-18  Richard Guenther  <rguenther@suse.de>
22545
22546         PR tree-optimization/42781
22547         * tree-ssa-structalias.c (find_what_var_points_to): Skip
22548         restrict processing only if the original variable was artificial.
22549
22550 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
22551
22552         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
22553         find number of popped argument bytes.
22554
22555         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
22556         Fix the text that describes the return value for invalid insns.
22557
22558         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
22559
22560         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
22561         Clarify what 'cost of the -dependence' is.  Fix quoting.
22562
22563         * toplev.c (default_get_pch_validity): Rename argument to "sz".
22564         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
22565
22566 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
22567
22568         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
22569         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
22570
22571 2010-01-17  Richard Guenther  <rguenther@suse.de>
22572
22573         PR middle-end/42248
22574         * function.c (split_complex_args): Take a VEC to modify.
22575         (assign_parms_augmented_arg_list): Build a VEC instead of
22576         a chain of PARM_DECLs.
22577         (assign_parms_unsplit_complex): Take a VEC of arguments.
22578         Do not fixup unmodified parms.
22579         (assign_parms): Deal with the VEC.
22580         (gimplify_parameters): Likewise.
22581
22582 2010-01-17  Richard Guenther  <rguenther@suse.de>
22583
22584         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
22585         node existence check.
22586         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
22587         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
22588         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
22589         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
22590         (gimple_execute_on_growing_pred): Likewise.
22591
22592 2010-01-17  Richard Guenther  <rguenther@suse.de>
22593
22594         PR tree-optimization/42773
22595         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
22596         (compute_antic_aux): Likewise.
22597         (compute_partial_antic_aux): Likewise.
22598
22599 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
22600
22601         PR debug/42767
22602         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
22603         and US_TRUNCATE.
22604
22605 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
22606
22607         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
22608         appearance.
22609
22610         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
22611         Fix markup for strict argument.
22612
22613         (TARGET_SCHED_REORDER2): Fix argument types.
22614
22615         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
22616         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
22617
22618         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
22619         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
22620
22621         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
22622         Add argument name.
22623
22624         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
22625         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
22626         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
22627         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
22628         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
22629
22630         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
22631
22632         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
22633
22634         (TARGET_ASM_RELOC_RW_MASK): Add return type.
22635         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
22636
22637         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
22638
22639         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
22640         Use prototype.
22641
22642         (TARGET_ASM_NAMED_SECTION): Fix argument list.
22643
22644         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
22645         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
22646
22647         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
22648
22649         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
22650
22651         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
22652         referring to it.  Fix language.
22653
22654         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
22655
22656         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
22657
22658         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
22659
22660         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
22661
22662         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
22663         '@var{stream}.  Remove stray 'and'.
22664
22665         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
22666
22667         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
22668
22669         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
22670
22671         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
22672         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
22673
22674         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
22675         Fix description of return value.
22676         Rename argument "sz" to "len."
22677
22678         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
22679         Clarify meaning of 'true' return value.
22680
22681         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
22682
22683         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
22684         rep_mode versus mode_rep.
22685
22686         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
22687
22688         (TARGET_BUILTIN_DECL): Fix name.
22689
22690         (TARGET_COMMUTATIVE_P): Fix type of first argument.
22691
22692         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
22693
22694         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
22695
22696         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
22697
22698         (TARGET_RELAXED_ORDERING): Use @deftypevr.
22699
22700         (TARGET_GET_DRAP_RTX): Note that this is a hook.
22701         Clarify language.
22702
22703         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
22704         Rename argument tm_fn to md_fn.
22705
22706         (TARGET_OPTION_PRINT): Fix argument list.
22707
22708 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
22709
22710         PR target/42664
22711         * config/i386/i386.c (ix86_fixup_binary_operands):
22712         Revert FMA4 fixup of operands.
22713
22714 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22715
22716         PR gcc/42525
22717         * Makefile.in (write_entries_to_file, install-plugin):
22718         Use \012 instead of \n with tr.
22719
22720 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
22721
22722         * configure.ac (HAVE_AS_REF): New C macro.
22723         * configure: Regenerate.
22724         * config.in: Likewise.
22725         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
22726         if HAVE_AS_REF.
22727         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
22728         if HAVE_AS_REF.
22729
22730 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
22731
22732         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
22733
22734         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
22735
22736         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
22737
22738         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
22739
22740         (TARGET_IN_SMALL_DATA_P): Fix argument type.
22741
22742         (TARGET_BINDS_LOCAL_P): Fix argument type.
22743
22744         (TARGET_ASM_FILE_END): Use prototype.
22745
22746         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
22747
22748         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
22749
22750         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
22751
22752         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
22753
22754         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
22755         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
22756
22757         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
22758         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
22759
22760         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
22761         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
22762         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
22763         (TARGET_ADDR_SPACE_CONVERT): Likewise.
22764
22765         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
22766
22767         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
22768
22769         (TARGET_INIT_BUILTINS): Use prototype.
22770
22771         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
22772         Put 'const char *' in braces.  Fix parameter types.
22773         (TARGET_INVALID_CONVERSION): Fix parameter types.
22774         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
22775         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
22776
22777         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
22778         Fix argument type.
22779
22780         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
22781
22782         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
22783
22784 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
22785
22786         * doc/tm.texi (TARGET_HELP): Fix return type.
22787
22788         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
22789         in braces.  Fix argument types.
22790
22791         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
22792
22793         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
22794
22795         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
22796
22797         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
22798         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
22799
22800         (TARGET_MANGLE_TYPE): Fix argument types.
22801
22802         (TARGET_IRA_COVER_CLASSES): Use prototype.
22803
22804         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
22805
22806         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
22807
22808         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
22809
22810         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
22811
22812         (TARGET_CALLEE_COPIES): Fix argument types.
22813
22814         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
22815
22816         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
22817
22818         (TARGET_FUNCTION_VALUE): Fix argument types.
22819
22820         (TARGET_RETURN_IN_MSB): Fix argument type.
22821
22822         (TARGET_RETURN_IN_MEMORY): Fix argument types.
22823
22824         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
22825
22826         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
22827
22828         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
22829         agree with return type.
22830
22831         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
22832
22833 2010-01-15  Jing Yu  <jingyu@google.com>
22834
22835         PR rtl-optimization/42691
22836         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
22837         a pseudo to a constant and are merged, and adjust comments.
22838
22839 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
22840
22841         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
22842
22843 2010-01-15  Richard Guenther  <rguenther@suse.de>
22844
22845         PR middle-end/42739
22846         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
22847         labels of computed or non-local gotos to the destination.
22848         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
22849         landing pad label is the first label.
22850
22851 2010-01-15  Richard Guenther  <rguenther@suse.de>
22852
22853         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
22854
22855 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
22856
22857         PR target/42747
22858         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
22859         to allow generation of the xssqrtdp instruction on power7.
22860         (sqrtdf2_fpr): Ditto.
22861
22862 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
22863
22864         PR middle-end/42674
22865         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
22866         functions with noreturn attribute.
22867
22868         PR c++/42608
22869         * varasm.c (declare_weak): Add weak attribute to decl if it
22870         doesn't have one already.
22871         (assemble_external): Only add decls to weak_decls if they also
22872         have weak attribute.
22873
22874 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
22875
22876         * var-tracking.c (var_reg_delete): Don't delete the association
22877         between REGs and values or one-part variables if the register
22878         isn't clobbered.
22879
22880 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
22881
22882         PR debug/42657
22883         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
22884         because its first operand is a non-localized variable.
22885
22886 2010-01-14  Martin Jambor  <mjambor@suse.cz>
22887
22888         PR tree-optimization/42706
22889         * tree-sra.c (encountered_recursive_call): New variable.
22890         (encountered_unchangable_recursive_call): Likewise.
22891         (sra_initialize): Initialize both new variables.
22892         (callsite_has_enough_arguments_p): New function.
22893         (scan_function): Call decl and flags check only for IPA-SRA, check
22894         whether there is a recursive call and whether it has enough arguments.
22895         (all_callers_have_enough_arguments_p): New function.
22896         (convert_callers): Look for recursive calls only when
22897         encountered_recursive_call is set.
22898         (ipa_early_sra): Bail out either if
22899         !all_callers_have_enough_arguments_p or
22900         encountered_unchangable_recursive_call.
22901
22902 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
22903
22904         * sel-sched.c: Add 2010 to copyright years.
22905         * sel-sched-ir.c: Likewise.
22906         * sel-sched-ir.h: Likewise.
22907
22908 2010-01-14  Martin Jambor  <mjambor@suse.cz>
22909
22910         PR tree-optimization/42714
22911         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
22912         constructors specially.
22913
22914 2010-01-14  Andi Kleen  <ak@linux.intel.com>
22915
22916         * config/i386/drivers-i386.c (detect_caches_intel):
22917         Add l2sizekb parameter and fill in.
22918         (host_detect_local_cpu): Add l2sizekb, fill in.
22919         Add Atom small cache heuristic.
22920
22921 2010-01-14  Andi Kleen  <ak@linux.intel.com>
22922
22923         * config/i386/drivers-i386.c (detect_caches_cpuid4):
22924         Add level3 parameter and fill in.
22925         (detect_caches_intel): Handle level3 cache.
22926
22927 2010-01-14  Andi Kleen  <ak@linux.intel.com>
22928
22929         * config/i386/drivers-i386.c (host_detect_local_cpu):
22930         Fix core duo detection.
22931
22932 2010-01-14  Andi Kleen  <ak@linux.intel.com>
22933
22934         * config/i386/drivers-i386.c (host_detect_local_cpu):
22935         Fix Atom detection.
22936
22937 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
22938
22939         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
22940         (rs6000_variable_issue_1): this.  Use...
22941         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
22942
22943 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
22944
22945         * sel-sched-ir.c (sel_restore_other_notes): Rename to
22946         sel_restore_notes.  Update all callers.  Call reemit_notes
22947         for all insns.
22948
22949 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
22950
22951         PR rtl-optimization/42246
22952         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
22953         loops.
22954
22955 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
22956
22957         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
22958         all successors is the same as number of successors in current region.
22959
22960 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
22961
22962         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
22963         to rename is not separable.  Otherwise check that its LHS is not NULL.
22964
22965 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
22966
22967         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
22968
22969 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
22970
22971         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
22972         available registers when failed to discover LHS register class.
22973         Fix indentation.  Update comment.
22974
22975 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
22976             Alexander Monakov  <amonakov@ispras.ru>
22977
22978         PR rtl-optimization/42389
22979         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
22980         to can_issue_more.
22981         (advance_state_on_fence): Likewise.
22982         (sel_target_adjust_priority): Print debug output only when
22983         sched_verbose >= 4, not 2.
22984         (get_expr_cost): Do not issue all unique insns on the next cycle.
22985         (fill_insns): Initialize can_issue_more from the value saved
22986         with the fence.
22987         * sel-sched-ir.c (flist_add): New parameter issue_more.
22988         Init FENCE_ISSUE_MORE with it.
22989         (merge_fences): Likewise.
22990         (init_fences): Update call to flist_add.
22991         (add_to_fences, add_clean_fence_to_fences)
22992         (add_dirty_fence_to_fences): Likewise.
22993         (move_fence_to_fences): Update call to merge_fences.
22994         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
22995         sched groups.
22996         * sel-sched-ir.h (struct _fence): New field issue_more.
22997         (FENCE_ISSUE_MORE): New accessor macro.
22998
22999 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23000
23001         PR rtl-optimization/42388
23002         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
23003         that have no predecessors nor successors.  Do not call move_bb_info
23004         for empty blocks outside of current region.
23005
23006 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23007
23008         PR rtl-optimization/42294
23009         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
23010         * sel-sched.c (move_exprs_to_boundary): Transitively add all
23011         originators' originators.
23012
23013 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23014
23015         PR rtl-optimization/39453
23016         PR rtl-optimization/42246
23017         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
23018         for pipelining_p.
23019         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
23020
23021 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23022             Alexander Monakov  <amonakov@ispras.ru>
23023
23024         PR middle-end/42245
23025         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
23026         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
23027         argument.  Update all callers.
23028         (tidy_control_flow): ... and here.  Recompute topological order
23029         of basic blocks in region if necessary.
23030         (sel_redirect_edge_and_branch): Change return type.  Return true
23031         if topological order might have been invalidated.
23032         (purge_empty_blocks): Export and move from...
23033         * sel-sched.c (purge_empty_blocks): ... here.
23034         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
23035         (maybe_tidy_empty_bb): Delete prototype.
23036         (purge_empty_blocks): Declare.
23037
23038 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23039
23040         PR rtl-optimization/42249
23041         * sel-sched.c (try_replace_dest_reg): When chosen register
23042         and original register is the same, do not bail out early, but
23043         still check all original insns for validity of replacing destination
23044         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
23045         in this case.
23046
23047 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
23048
23049         PR c/42721
23050         Port from no-undefined-overflow branch:
23051         2009-03-09  Richard Guenther  <rguenther@suse.de>
23052
23053         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
23054
23055 2010-01-14  Richard Guenther  <rguenther@suse.de>
23056
23057         PR lto/42665
23058         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
23059
23060 2010-01-14  Ira Rosen  <irar@il.ibm.com>
23061
23062         PR tree-optimization/42709
23063         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
23064         as scalar type in creation of constant vector operand.
23065
23066 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23067
23068         PR testsuite/42414
23069         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
23070         (check-parallel-%): Match `testsuite' directory component only
23071         at the end.
23072
23073 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
23074
23075         PR translation/39521
23076         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
23077         strings with _().
23078
23079 2010-01-13  Richard Guenther  <rguenther@suse.de>
23080
23081         PR tree-optimization/42730
23082         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
23083         offset zero.
23084
23085 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
23086
23087         PR target/pr42542
23088         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
23089         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
23090         them signed.
23091
23092 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
23093
23094         * config/bfin/libgcc-bfin.ver: Regenerate based on current
23095         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
23096         ___umulsi3_highpart.
23097
23098         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
23099         rather than schedule_insns if the pass is enabled.
23100
23101 2010-01-13  Martin Jambor  <mjambor@suse.cz>
23102
23103         PR tree-optimization/42704
23104         * tree-sra.c (sra_modify_assign): Do not delete assignments to
23105         SSA_NAMEs.
23106
23107 2010-01-13  Martin Jambor  <mjambor@suse.cz>
23108
23109         PR tree-optimization/42703
23110         * tree-sra.c (analyze_access_subtree): Check that we can build a
23111         reference to the original data within the aggregate.
23112
23113 2010-01-13  Richard Guenther  <rguenther@suse.de>
23114
23115         PR tree-optimization/42705
23116         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
23117
23118 2010-01-13  Richard Guenther  <rguenther@suse.de>
23119
23120         PR middle-end/42716
23121         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
23122
23123 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
23124
23125         PR debug/41371
23126         * var-tracking.c (values_to_unmark): New variable.
23127         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
23128         values_to_unmark vector.  Moved body to...
23129         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
23130         instead queue it into values_to_unmark vector.
23131         (vt_find_locations): Free values_to_unmark vector.
23132
23133 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
23134
23135         * config/s390/s390.c (override_options): Set
23136         default of max-pending-list-length to 256
23137
23138 2010-01-13  Richard Guenther  <rguenther@suse.de>
23139
23140         PR lto/42678
23141         * tree-pass.h (PROP_gimple_lcx): New.
23142         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
23143         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
23144         before the final cleanup_eh.
23145         (dump_properties): Dump PROP_gimple_lcx.
23146         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
23147         (tree_lower_complex_O0): Remove.
23148         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
23149         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
23150         tree_lower_complex, schedule TODO_update_ssa.
23151         * lto-streamer-out.c (output_function): Stream the functions
23152         properties.
23153         * lto-streamer-in.c (input_function): Likewise.
23154         (lto_read_body): Do not override them here.
23155
23156 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
23157
23158         PR c/42708
23159         * c-typeck.c (build_c_cast): Fold value cast to union type before
23160         wrapping it in a CONSTRUCTOR.
23161
23162 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
23163
23164         PR rtl-optimization/42699
23165         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
23166         involved.
23167
23168 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23169
23170         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
23171         SUBTARGET_WARN_UNUSED_SPEC): Move ...
23172         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
23173         SUBTARGET_WARN_UNUSED_SPEC): ... here
23174         * config/mips/iris5.h (LIBGCC_SPEC): Define.
23175
23176 2010-01-12  Julian Brown  <julian@codesourcery.com>
23177
23178         * config/arm/neon-schedgen.ml (Utils): Don't try to
23179         open missing module.
23180         (find_with_result): New.
23181
23182 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
23183
23184         PR debug/42662
23185         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
23186         sharing when canonicalizing ({lt,ge}u (plus a b) b).
23187
23188         PR tree-optimization/42645
23189         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
23190         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
23191         decl_map, set processing_debug_stmt to -1 and return name without
23192         any remapping.
23193
23194 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
23195
23196         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
23197         binutils version, and reword target configuration description.
23198
23199 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
23200
23201         * config/avr/avr.h (LINKER_NAME): Remove.
23202
23203 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
23204
23205         PR target/42416
23206         * config/rs6000/rs6000.c (rs6000_override_options): On targets
23207         that support VSX, warn for -mno-altivec if vsx is not disabled,
23208         and disable vsx.
23209
23210 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
23211             Shujing Zhao  <pearly.zhao@oracle.com>
23212
23213         PR translation/42469
23214         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
23215         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
23216         character between option name and help text.
23217         * c.opt (imultilib): Likewise.
23218
23219 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
23220
23221         * lto-streamer-out.c (output_unreferenced_globals): Output static
23222         variables.
23223
23224 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
23225
23226         PR rtl-optimization/42621
23227         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
23228         optimizing for size.
23229         (duplicate_computed_gotos): Remove now-redundant check.
23230
23231 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
23232
23233         PR target/37454
23234         * configure.ac: Save and restore LDFLAGS and LIBS
23235         * configure: Regenerate.
23236
23237 2010-01-10  Richard Guenther  <rguenther@suse.de>
23238
23239         PR middle-end/42667
23240         * builtins.c (fold_builtin_strlen): Add type argument and
23241         convert the resulting length to it.
23242         (fold_builtin_1): Adjust.
23243
23244 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
23245
23246         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
23247         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
23248         1 insn.
23249         (num_insns_constant_wide): Adjust for that change.
23250
23251 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23252
23253         PR debug/42631
23254         * web.c (union_defs): Add used argument, to combine uses of
23255         uninitialized regs.
23256         (entry_register): Adjust type and tests of used argument.
23257         (web_main): Widen used for new use.  Pass it to union_defs.
23258         * df.h (union_defs): Adjust prototype.
23259
23260 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23261
23262         PR debug/42630
23263         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
23264         uses in new incoming argument.  Free body.
23265         (reset_debug_uses_in_loop): New.
23266         (analyze_insn_to_expand_var): Call the latter if the former found
23267         anything.  Fix whitespace.  Reject invalid dest overlaps before
23268         going through all insns in the loop.
23269
23270 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23271
23272         PR debug/42629
23273         * haifa-sched.c (dying_use_p): Debug insns don't count.
23274
23275 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23276
23277         PR middle-end/42363
23278         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
23279         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
23280         (verify_gimple_call): Reject LHS in noreturn calls.
23281
23282 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23283
23284         PR debug/42604
23285         PR debug/42395
23286         * tree-vect-loop-manip.c (adjust_info): New type.
23287         (adjust_vec): New pointer to vector.
23288         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
23289         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
23290         (slpeel_update_phis_for_duplicate_loop): Use them.
23291         (slpeel_update_phi_nodes_for_guard1): Likewise.
23292         (slpeel_update_phi_nodes_for_guard2): Likewise.
23293         (slpeel_tree_peel_loop_to_edge): Likewise.
23294         (vect_update_ivs_after_vectorizer): Likewise.
23295
23296 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23297
23298         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
23299         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
23300
23301 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23302
23303         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
23304         bogus uninitialized warning.
23305
23306 2010-01-09  Richard Guenther  <rguenther@suse.de>
23307
23308         PR middle-end/42512
23309         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
23310         the evolution is compatible with the initial condition.
23311
23312 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
23313
23314         * gcc.c (process_command): Update copyright notice dates.
23315         * gcov.c (print_version): Likewise.
23316         * gcov-dump.c (print_version): Likewise.
23317         * mips-tfile.c (main): Likewise.
23318         * mips-tdump.c (main): Likewise.
23319
23320 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
23321
23322         PR target/41885
23323         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
23324         (rotlhi3): Delete.
23325         (rotlhi3_8): Delete.
23326         (rotlsi3): Delete.
23327         (rotlsi3_8): Delete.
23328         (rotlsi3_16): Delete.
23329         (rotlsi3_24): Delete.
23330         (rotl<mode>3): New.
23331         (*rotw<mode>3): New.
23332         (*rotb<mode>3): New.
23333         * config/avr/avr.c (avr_rotate_bytes): New function.
23334         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
23335
23336 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
23337
23338         PR target/37454
23339         * configure.ac: Modify -rdynamic check.
23340         * configure: Regenerate.
23341
23342 2010-01-08  DJ Delorie  <dj@redhat.com>
23343
23344         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
23345         register popping order.
23346
23347 2010-01-08  Richard Guenther  <rguenther@suse.de>
23348
23349         PR lto/42528
23350         * c.opt (fsigned-char): Also let LTO handle this option.
23351         (funsigned-char): Likewise.
23352
23353 2010-01-07  Richard Guenther  <rguenther@suse.de>
23354
23355         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
23356         (gimple_op): Likewise.
23357         (gimple_op_ptr): Likewise.
23358         (gimple_assign_set_lhs): Remove gcc_assert.
23359         (gimple_assign_set_rhs1): Likewise.
23360         (gimple_assign_set_rhs2): Likewise.
23361         (gimple_call_set_lhs): Likewise.
23362         (gimple_call_set_fn): Likewise.
23363         (gimple_call_set_fndecl): Likewise.
23364         (gimple_call_fndecl): Likewise.
23365         (gimple_call_return_type): Likewise.
23366         (gimple_call_set_chain): Likewise.
23367         (gimple_call_num_args): Likewise.
23368         (gimple_call_set_arg): Likewise.
23369         (gimple_cond_set_code): Likewise.
23370         (gimple_cond_set_lhs): Likewise.
23371         (gimple_cond_set_rhs): Likewise.
23372         (gimple_cond_set_true_label): Likewise.
23373         (gimple_cond_set_false_label): Likewise.
23374         (gimple_label_set_label): Likewise.
23375         (gimple_goto_set_dest): Likewise.
23376         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
23377         (gimple_debug_bind_get_value): Likewise.
23378         (gimple_debug_bind_get_value_ptr): Likewise.
23379         (gimple_debug_bind_set_var): Likewise.
23380         (gimple_debug_bind_set_value): Likewise.
23381         (gimple_debug_bind_reset_value): Likewise.
23382         (gimple_debug_bind_has_value_p): Likewise.
23383         (gimple_return_retval_ptr): Remove gcc_assert.
23384         (gimple_return_retval): Likewise.
23385         (gimple_return_set_retval): Likewise.
23386         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
23387         (safe_referenced_var_iterator): Remove.
23388         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
23389         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
23390         (fill_referenced_var_vec): Remove.
23391         (first_readonly_imm_use): Remove redundant gcc_assert.
23392         (phi_arg_index_from_use): Combine gcc_asserts.
23393         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
23394         (first_imm_use_stmt): Remove redundant gcc_assert.
23395         * tree-cfg.c (verify_gimple_call): Verify function and chain
23396         operands.  Verify arguments.
23397         (verify_types_in_gimple_stmt): Verify condition code and labels.
23398
23399 2010-01-07  Richard Guenther  <rguenther@suse.de>
23400
23401         PR tree-optimization/42641
23402         * sese.c (rename_map_elt_info): Use the SSA name version, do
23403         not hash pointers.
23404
23405 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
23406
23407         PR tree-optimization/42625
23408         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
23409         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
23410
23411 2010-01-07  Duncan Sands  <baldrick@free.fr>
23412
23413         * Makefile.in (PLUGIN_HEADERS): Add version.h.
23414
23415 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
23416
23417         PR target/42511
23418         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
23419         note itself is not function_invariant_p.
23420
23421 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
23422
23423         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
23424         Do not add the DF_NOTE problem.
23425         * store-motion.c (execute_rtl_store_motion): Likewise.
23426
23427 2010-01-07  Martin Jambor  <mjambor@suse.cz>
23428
23429         PR tree-optimization/42157
23430         * tree-sra.c (compare_access_positions): Stabilize sort if both
23431         accesses have integer types, return zero immediately if they are the
23432         same.
23433
23434 2010-01-06  Richard Henderson  <rth@redhat.com>
23435
23436         PR middle-end/41883
23437         * haifa-sched.c (add_to_note_list): Merge into ...
23438         (concat_note_lists): ... here, and ...
23439         (unlink_other_notes, rm_other_notes): Merge into...
23440         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
23441         NOTE_INSN_EPILOGUE_BEG.
23442
23443 2010-01-06  Richard Guenther  <rguenther@suse.de>
23444
23445         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
23446         not inline regular functions into always-inline functions.
23447
23448 2010-01-06  Nick Clifton  <nickc@redhat.com>
23449
23450         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
23451         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
23452         used together.
23453         (OVERRIDE_OPTIONS): Delete.
23454         (OPTIMIZATION_OPTIONS): Define.
23455         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
23456         * config/rx/rx.c (rx_handle_option): Issue an error message if
23457         -mcpu=rx200 and -fpu are used together.
23458         (rx_set_optimization_options): New function.  Issue an error
23459         message if an optimization attribute attempts to reset the FPU/
23460         math optimization pairing.
23461         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
23462         * config/rx/rx.opt: Set the default to 32-bit doubles.
23463         * config/rx/t-rx: Add multilibs for -nofpu option.
23464         * doc/invoke.texi: Update documentation of RX options.
23465
23466 2010-01-06  Richard Guenther  <rguenther@suse.de>
23467
23468         * tree-ssa-pre.c (name_to_id): New global.
23469         (alloc_expression_id): Simplify SSA name handling.
23470         (lookup_expression_id): Likewise.
23471         (init_pre): Zero name_to_id.
23472         (fini_pre): Free it.
23473
23474 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
23475
23476         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
23477
23478 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
23479
23480         PR target/42542
23481         * config/i386/sse.md (smaxv2di3): New.
23482         (umaxv2di3): Likewise.
23483         (sminv2di3): Likewise.
23484         (uminv2di3): Likewise.
23485
23486 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
23487
23488         PR target/42564
23489         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
23490         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
23491         (legitimize_tls_address): Likewise.
23492         (sparc_tls_referenced_p): Likewise.
23493         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
23494         and adjust calls to legitimize_pic_address.
23495         (legitimate_constant_p) Use sparc_tls_referenced_p.
23496         (legitimate_pic_operand_p): Likewise.
23497         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
23498         (sparc_tls_symbol_ref_1): Delete.
23499         (sparc_tls_referenced_p): Make static, recognize specific patterns.
23500         (legitimize_tls_address): Make static, handle CONST patterns.
23501         (legitimize_pic_address): Make static, remove unused parameter and
23502         adjust recursive calls.
23503         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
23504         and adjust call to legitimize_pic_address.
23505         (sparc_output_mi_thunk): Likewise.
23506
23507 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
23508             H.J. Lu  <hongjiu.lu@intel.com>
23509
23510         PR target/42542
23511         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
23512         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
23513         operands to make them signed.
23514
23515         Revert:
23516         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
23517
23518         PR target/42542
23519         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
23520         GTU to GT for V4SI and V2DI.
23521
23522         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
23523         (umin<mode>3): Removed.
23524         (uminv8hi3): New.
23525         (uminv4si3): Likewise.
23526
23527 2010-01-05  Martin Jambor  <mjambor@suse.cz>
23528
23529         PR tree-optimization/42462
23530         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
23531         current_function_decl to helper functions and macros.
23532
23533 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23534
23535         PR bootstrap/41771
23536         * flags.h: Don't include real.h.
23537         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
23538         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
23539         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
23540         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
23541         * dominance.c: Update copyright.
23542         * gimple.c (walk_gimple_op): Remove inline.
23543         * tree-ssa-reassoc.c: Include real.h.
23544         * Makefile.in (FLAGS_H): Remove $(REAL_H).
23545         (tree-ssa-reassoc.o): Depend on $(REAL_H).
23546
23547 2010-01-05  Nick Clifton  <nickc@redhat.com>
23548
23549         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
23550         register to push into the stack frame when the accumulator has to
23551         be saved during interrupts.
23552
23553 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
23554
23555         * doc/invoke.texi: Remove the documentation about option
23556         -Wunreachable-code.
23557         * common.opt (Wunreachable-code):  Preserved for backward
23558         compatibility.
23559         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
23560         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
23561         the backward compatibility flag section.
23562
23563 2010-01-05  Richard Guenther  <rguenther@suse.de>
23564
23565         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
23566
23567 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
23568
23569         PR other/42611
23570         * cfgexpand.c (expand_one_var): Diagnose too large variables.
23571
23572         PR tree-optimization/42508
23573         * tree-sra.c (convert_callers): Check for recursive call
23574         by comparing cgraph nodes instead of decls.
23575         (modify_function): Call ipa_modify_formal_parameters also
23576         on all same_body aliases.
23577
23578         * cgraphunit.c (cgraph_materialize_all_clones): Compare
23579         cgraph nodes when checking for same_body aliases.
23580
23581 2010-01-05  Richard Guenther  <rguenther@suse.de>
23582
23583         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
23584         allocation and lookup.
23585         (get_or_alloc_expr_for_constant): Likewise.
23586         (phi_translate): Sink allocation.
23587
23588 2010-01-04  Richard Guenther  <rguenther@suse.de>
23589
23590         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
23591         a new entry only if needed.
23592         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
23593         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
23594         hashtable lookup.
23595         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
23596         the result array.
23597         (phi_translate): Handle CONSTANTs early.
23598
23599 2010-01-04  Martin Jambor  <mjambor@suse.cz>
23600
23601         PR tree-optimization/42398
23602         * tree-sra.c (struct access): Removed flag grp_different_types.
23603         (dump_access): Do not dump the removed flag.
23604         (sort_and_splice_var_accesses): Do not set the removed flag.
23605         (sra_modify_expr): Check for type compatibility directly.
23606
23607 2010-01-04  Martin Jambor  <mjambor@suse.cz>
23608
23609         PR tree-optimization/42366
23610         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
23611         edges with variable number of parameters.
23612         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
23613         flag instead of asserting it.
23614         (ipa_read_node_info): Read uses_analysis_done flag.
23615
23616 2010-01-04  Richard Guenther  <rguenther@suse.de>
23617
23618         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
23619         iterative_hash_* as intended.
23620         (vn_reference_compute_hash): Likewise.  Simplify hashing
23621         SSA names.
23622         (vn_reference_lookup_2): Likewise.
23623         (vn_nary_op_compute_hash): Likewise.
23624         (vn_phi_compute_hash): Likewise.
23625         (expressions_equal_p): Remove strange code.
23626         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
23627         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
23628         (bitmap_insert_into_set_1): Take value-id as parameter.
23629         (add_to_value): Pass it.
23630         (bitmap_insert_into_set): Likewise.
23631         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
23632
23633 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
23634
23635         PR driver/42442
23636         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
23637         (do_self_spec): For switches with SWITCH_IGNORE set set also
23638         SWITCH_IGNORE_PERMANENTLY.
23639         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
23640         of SWITCH_IGNORE.
23641
23642 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
23643
23644         * lto-streamer-out.c (output_unreferenced_globals): Output the full
23645         tree of an unreferenced global var.
23646
23647 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
23648
23649         PR target/42542
23650         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
23651         GTU to GT for V4SI and V2DI.
23652
23653         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
23654         (umin<mode>3): Removed.
23655         (uminv8hi3): New.
23656         (uminv4si3): Likewise.
23657
23658 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
23659
23660         PR lto/42581
23661         * collect2.c (main): Turn on trace in collect2 if -v is passed
23662         to gcc with LTO.
23663
23664 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
23665
23666         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
23667         description of expression operand.
23668
23669 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
23670
23671         * configure.ac: Add install-html to target_list for Make-hooks.
23672         * configure: Regenerate.
23673         * fortran/Make-lang.in (F95_HTMLFILES): New.
23674         (fortran.html): Use it.
23675         (fortran.install-html): New.
23676         * Makefile.in (install-html): Add lang.install-html.
23677         * java/Make-lang.in (JAVA_HTMLFILES): New.
23678         (java.html): Use it.
23679         (java.install-html): New.
23680         * objc/Make-lang.in (objc.install-html): New.
23681         * objcp/Make-lang.in (obj-c++.install-html): New.
23682         * cp/Make-lang.in (c++.install-html): New.
23683         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
23684         * lto/Make-lang.in (lto.install-html): New.
23685
23686 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
23687
23688         PR lto/42520
23689         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
23690
23691 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
23692
23693         PR rtl-optimization/41862
23694         * store-motion.c (store_killed_in_insn, compute_store_table,
23695         remove_reachable_equiv_notes, replace_store_insn,
23696         build_store_vectors): Ignore all DEBUG_INSNs.
23697
23698 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
23699
23700         PR lto/41564
23701         * common.opt: Add dumpdir.
23702
23703         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
23704         isn't specified.
23705         (option_map): Add --dumpdir.
23706
23707         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
23708
23709         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
23710
23711         * opts.c (decode_options): Try dump_dir_name first if
23712         dump_base_name isn't an absolute path.
23713         (common_handle_option): Handle OPT_dumpdir.
23714
23715         * toplev.c (dump_dir_name): New.
23716         (print_switch_values): Also ignore -dumpdir.
23717
23718         * toplev.h (dump_dir_name): New.
23719
23720 2010-01-03  Richard Guenther  <rguenther@suse.de>
23721
23722         PR tree-optimization/42589
23723         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
23724         double-word expansion of bswap32.
23725
23726 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
23727
23728         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
23729         with BLOCK_FOR_INSN.
23730         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
23731         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
23732         noce_process_if_block): Likewise.
23733         * gcse.c (compute_local_properties, insert_expr_in_table,
23734         insert_set_in_table, canon_list_insert, find_avail_set,
23735         pre_insert_copy_insn): Likewise.
23736
23737         * basic-block.h (BLOCK_NUM): Move from here...
23738         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
23739
23740 2010-01-03  Richard Guenther  <rguenther@suse.de>
23741
23742         PR tree-optimization/42438
23743         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
23744         contains_may_not_return_call flag.
23745         (BB_MAY_NOTRETURN): New.
23746         (valid_in_sets): Trapping nary operations are not valid
23747         in blocks that may not return.
23748         (insert_into_preds_of_block): Remove check for trapping expressions.
23749         (compute_avail): Compute also BB_MAY_NOTRETURN.
23750
23751 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
23752
23753         * doc/invoke.texi: Add 2010 to copyright years.
23754
23755 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
23756
23757         * config/sparc/sparc.c: Fix formatting nits.
23758
23759 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
23760             Alexander Monakov  <amonakov@ispras.ru>
23761
23762         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
23763
23764 2010-01-02  Richard Guenther  <rguenther@suse.de>
23765
23766         PR middle-end/42577
23767         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
23768         (simplify_switch_using_ranges): Mark to be removed edges
23769         as non-executable.
23770
23771 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23772
23773         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
23774
23775         * collect2.c (scan_libraries): Add missing argument in call to
23776         scan_prog_file.
23777
23778 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
23779
23780         PR target/42448
23781         * config/alpha/predicates.md (aligned_memory_operand): Return false
23782         for CQImode.
23783         (unaligned_memory_operand): Return true for CQImode.
23784         * config/alpha/alpha.c (get_aligned_mem): Assert that location
23785         doesn not cross aligned SImode word boundary.
23786
23787 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
23788
23789         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
23790         Remove.
23791         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
23792         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
23793
23794 2010-01-02  Richard Guenther  <rguenther@suse.de>
23795
23796         PR lto/41597
23797         * toplev.c (compile_file): Emit LTO marker properly.  Change
23798         it to __gnu_lto_v1.
23799         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
23800
23801 2010-01-01  Richard Guenther  <rguenther@suse.de>
23802
23803         PR debug/42455
23804         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
23805
23806 2010-01-01  Richard Guenther  <rguenther@suse.de>
23807
23808         PR c/42570
23809         * c-decl.c (grokdeclarator): For zero-size arrays force
23810         structural equality checks as layout_type does.
23811
23812 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
23813
23814         * builtins.c: Update copyright to 2010.
23815
23816 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
23817
23818         PR lto/42531
23819         * lto-streamer-out.c (produce_asm): Revert the last change.
23820         (copy_function): Likewise.
23821
23822         * lto-streamer.c (lto_get_section_name): Skip any leading
23823         asterisk in name.
23824
23825 2010-01-01  Richard Guenther  <rguenther@suse.de>
23826
23827         PR middle-end/42559
23828         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
23829         for LABEL_DECLs.
23830
23831 \f
23832 Copyright (C) 2010 Free Software Foundation, Inc.
23833
23834 Copying and distribution of this file, with or without modification,
23835 are permitted in any medium without royalty provided the copyright
23836 notice and this notice are preserved.