OSDN Git Service

revert r163410, partially revert r163267.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
2
3         revert r163410, partially revert r163267.
4         * config/rs6000/darwin.h (LIB_SPEC): Remove.
5         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all 
6         Darwin versions.
7         
8 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
9
10         PR middle-end/44974
11         * builtins.c (expand_builtin): Don't optimize away
12         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
13
14 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
15
16         * config/i386/i386.md (ashift RSP splitter): Remove splitter.
17         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
18         alternative 1 of operand 2.
19
20 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
21             Paolo Bonzini  <bonzini@gnu.org>
22
23         * simplify-rtx.c (simplify_unary_operation_1): Optimize
24         (sign_extend (zero_extend (...)) and
25         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
26
27 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
28
29         PR rtl-optimization/45353
30         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
31         after bb_note is a BARRIER.
32
33 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
34
35         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
36         linking libgcc.a.
37
38 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
39             Michael Matz  <matz@suse.de>
40
41         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
42
43 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
44
45         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
46         (ggc_mark_roots): ...here.
47
48 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
49
50         * vec.h (FOR_EACH_VEC_ELT): Define.
51         * c-decl.c: Use it.
52         * cfgloop.c: Likewise.
53         * cfgloopmanip.c: Likewise.
54         * cgraph.c: Likewise.
55         * cgraphunit.c: Likewise.
56         * combine.c: Likewise.
57         * config/bfin/bfin.c: Likewise.
58         * config/mips/mips.c: Likewise.
59         * config/rs6000/rs6000.c: Likewise.
60         * dbxout.c: Likewise.
61         * df-scan.c: Likewise.
62         * dominance.c: Likewise.
63         * dse.c: Likewise.
64         * dwarf2out.c: Likewise.
65         * except.c: Likewise.
66         * expr.c: Likewise.
67         * function.c: Likewise.
68         * gcse.c: Likewise.
69         * genattr.c: Likewise.
70         * ggc-common.c: Likewise.
71         * gimplify.c: Likewise.
72         * graphite-blocking.c: Likewise.
73         * graphite-clast-to-gimple.c: Likewise.
74         * graphite-dependences.c: Likewise.
75         * graphite-interchange.c: Likewise.
76         * graphite-poly.c: Likewise.
77         * graphite-scop-detection.c: Likewise.
78         * graphite-sese-to-poly.c: Likewise.
79         * graphite.c: Likewise.
80         * haifa-sched.c: Likewise.
81         * ifcvt.c: Likewise.
82         * implicit-zee.c: Likewise.
83         * ipa-prop.c: Likewise.
84         * ipa-struct-reorg.c: Likewise.
85         * ipa.c: Likewise.
86         * ira-build.c: Likewise.
87         * ira-color.c: Likewise.
88         * ira-emit.c: Likewise.
89         * lambda-code.c: Likewise.
90         * loop-invariant.c: Likewise.
91         * loop-unroll.c: Likewise.
92         * lower-subreg.c: Likewise.
93         * lto-cgraph.c: Likewise.
94         * lto-opts.c: Likewise.
95         * lto-streamer-in.c: Likewise.
96         * lto-streamer-out.c: Likewise.
97         * lto-streamer.c: Likewise.
98         * lto-symtab.c: Likewise.
99         * matrix-reorg.c: Likewise.
100         * opts.c: Likewise.
101         * predict.c: Likewise.
102         * print-tree.c: Likewise.
103         * sdbout.c: Likewise.
104         * sel-sched-dump.c: Likewise.
105         * sel-sched-ir.c: Likewise.
106         * sel-sched.c: Likewise.
107         * sese.c: Likewise.
108         * stor-layout.c: Likewise.
109         * tree-cfg.c: Likewise.
110         * tree-cfgcleanup.c: Likewise.
111         * tree-chrec.c: Likewise.
112         * tree-data-ref.c: Likewise.
113         * tree-emutls.c: Likewise.
114         * tree-inline.c: Likewise.
115         * tree-into-ssa.c: Likewise.
116         * tree-loop-distribution.c: Likewise.
117         * tree-loop-linear.c: Likewise.
118         * tree-mudflap.c: Likewise.
119         * tree-outof-ssa.c: Likewise.
120         * tree-parloops.c: Likewise.
121         * tree-predcom.c: Likewise.
122         * tree-pretty-print.c: Likewise.
123         * tree-scalar-evolution.c: Likewise.
124         * tree-ssa-live.c: Likewise.
125         * tree-ssa-loop-im.c: Likewise.
126         * tree-ssa-loop-ivcanon.c: Likewise.
127         * tree-ssa-loop-ivopts.c: Likewise.
128         * tree-ssa-loop-manip.c: Likewise.
129         * tree-ssa-loop-niter.c: Likewise.
130         * tree-ssa-loop-prefetch.c: Likewise.
131         * tree-ssa-phiprop.c: Likewise.
132         * tree-ssa-pre.c: Likewise.
133         * tree-ssa-reassoc.c: Likewise.
134         * tree-ssa-sccvn.c: Likewise.
135         * tree-ssa-structalias.c: Likewise.
136         * tree-ssa.c: Likewise.
137         * tree-vect-data-refs.c: Likewise.
138         * tree-vect-loop-manip.c: Likewise.
139         * tree-vect-loop.c: Likewise.
140         * tree-vect-patterns.c: Likewise.
141         * tree-vect-slp.c: Likewise.
142         * tree-vect-stmts.c: Likewise.
143         * tree-vrp.c: Likewise.
144         * tree.c: Likewise.
145         * value-prof.c: Likewise.
146         * var-tracking.c: Likewise.
147         * varasm.c: Likewise.
148         * vmsdbgout.c: Likewise.
149
150 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
151             Richard Guenther  <richard.guenther@gmail.com>
152
153         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
154         copy the src value and return a copy.
155         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
156         (C++ Volatiles): Adjust to describe C++ semantics only.
157
158 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
159
160         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
161         be zero or nonzero.
162         * doc/tm.texi: Regenerate.
163         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
164         * df-scan.c (df_get_exit_block_use_set), reginfo.c
165         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
166         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
167         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
168         to 1.
169
170 2010-08-20  Olivier Hainque  <hainque@adacore.com>
171
172         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
173         an extra nop past a sibling call at the very end.
174
175 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
176
177         PR bootstrap/45350
178         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
179         a comment.
180
181 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
182
183         * target.def (function_arg, function_incoming_arg): Remove const
184         qualifier on CUMULATIVE_ARGS parameter.
185         * targhooks.h (default_function_arg, default_function_incoming_arg):
186         Likewise.
187         * targhooks.c (default_function_arg, default_function_incoming_arg):
188         Likewise.
189         * config/i386/i386.c (ix86_function_arg): Likewise.
190
191 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
192
193         PR target/45336
194         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
195         SIGN_EXTENDs or ZERO_EXTENDs.
196
197 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
198
199         PR target/42172
200         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
201         Take its cost into account if nonnull.
202         (insn_a_feeds_b): New static function.
203         (combine_instructions): Look for four-insn combinations.
204         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
205         them into account when computing all_adjacent and looking for other
206         uses.
207         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
208         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
209         (try_combine): New arg I0.  Handle four-insn combinations.
210         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
211         like ELIM_I1.
212
213 2010-08-19  Jason Merrill  <jason@redhat.com>
214
215         PR c++/45307
216         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
217         if ctor is empty.
218         (gimplify_modify_expr_rhs): Adjust.
219
220 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
221
222         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
223         bitmap_bit_p.
224         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
225         * dominance.c (iterate_fix_dominators): Likewise.
226         * dse.c (set_usage_bits): Likewise.
227         (set_position_unneeded, record_store): Likewise.
228         * gimple-fold.c (get_maxval_strlen): Likewise.
229         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
230         * ipa-inline.c (update_caller_keys): Likewise.
231         * ipa-split.c (verify_non_ssa_vars): Likewise.
232         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
233         (close_type_exposed_parameter, close_type_full_escape): Likewise.
234         (close_addressof_down): Likewise.
235         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
236         (setup_allocno_left_conflicts_size): Likewise.
237         (ira_reassign_conflict_allocnos): Likewise.
238         (ira_reassign_pseudos): Likewise.
239         * ira-emit.c (change_loop): Likewise.
240         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
241         * lto-streamer-out.c (write_symbol): Likewise.
242         * predict.c (expr_expected_value_1): Likewise.
243         * regstat.c (regstat_bb_compute_ri): Likewise.
244         * sel-sched.c (create_block_for_bookkeeping): Likewise.
245         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
246         * stmt.c (expand_case): Likewise.
247         * tree-eh.c (emit_eh_dispatch): Likewise.
248         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
249         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
250         Likewise.
251         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
252         (rdg_build_components): Likewise.
253         * tree-object-size.c (collect_object_sizes_for): Likewise.
254         * tree-sra.c (convert_callers): Likewise.
255         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
256         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
257         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
258
259 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
260
261         * config/i386/i386.md (*lea_1): Use P mode iterator.
262         (lea add splitter): Also handle DImode operands.
263         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
264         predicate.  Do not use ix86_lea_for_add_ok.
265         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
266         (lea ashift splitter): Also handle DImode operands.
267         (DImode lea ashift splitter): Remove splitter.
268
269 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
270
271         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
272         ix86_binary_operator_ok.
273
274 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
275
276         PR rtl-optimization/44691
277         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
278         is not a register.
279
280 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
281
282         PR target/45070
283         * config/arm/arm.c (arm_output_epilogue): Ensure that return
284          value of size 1-3 is handled correctly.
285
286 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
287
288         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
289         type for the conditional has wide enough range.
290
291 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
292
293         PR target/45327
294         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
295         ix86_binary_operator_ok.
296
297 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
298
299         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
300         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
301         code to output insn mnemonic.  Fix comment.
302         (*addsi_1_zext): Add r-r-0 alternative 1.
303         <TYPE_LEA>: Split insn to lea.
304         <default>: Handle alternative 1.
305         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
306         multi-level if_then_else RTX to set "type" attribute.
307         <default>: Handle alternative 2.
308         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
309         Use cond RTX instead of multi-level if_then_else RTX to set
310         "type" attribute.
311         <default>: Handle alternatives 2 and 4.
312         (lea splitters): Update calls to ix86_lea_for_add_ok.
313
314         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
315         argument.
316         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
317
318 2010-08-18  Richard Guenther  <rguenther@suse.de>
319
320         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
321         use operand helpers.
322
323 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
324
325         PR middle-end/45292
326         * optabs.c (expand_bool_compare_and_swap): Expand pending
327         pops before trying the optab.
328
329 2010-08-18  Yao Qi  <yao@codesourcery.com>
330
331         PR target/45094
332         * config/arm/arm.c (output_move_double): Fix typo generating
333         instructions ('ldr'->'str').
334
335 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
336
337         PR rtl-optimization/42575
338         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
339         live ranges.
340
341 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
342
343         * config/arm/arm-protos.h (arm_expand_sync): New.
344         (arm_output_memory_barrier, arm_output_sync_insn): New.
345         (arm_sync_loop_insns): New.
346         * config/arm/arm.c (FL_ARCH7): New.
347         (FL_FOR_ARCH7): Include FL_ARCH7.
348         (arm_arch7): New.
349         (arm_print_operand): Support %C markup.
350         (arm_legitimize_sync_memory): New.
351         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
352         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
353         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
354         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
355         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
356         (arm_process_output_sync_insn, arm_output_sync_insn): New.
357         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
358         * config/arm/arm.h (struct arm_sync_generator): New.
359         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
360         (TARGET_HAVE_MEMORY_BARRIER): New.
361         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
362         * config/arm/arm.md: Include sync.md.
363         (UNSPEC_MEMORY_BARRIER): New.
364         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
365         (VUNSPEC_SYNC_OP):New.
366         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
367         (sync_result, sync_memory, sync_required_value): New attributes.
368         (sync_new_value, sync_t1, sync_t2): Likewise.
369         (sync_release_barrier, sync_op): Likewise.
370         (length): Add logic to length attribute defintion to call
371         arm_sync_loop_insns when appropriate.
372         * config/arm/sync.md: New file.
373
374 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
375
376         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
377         ENABLE_TREE_CHECKING.
378         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
379         and GCC >= 4.3.
380
381 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
382
383         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
384         or optimizing for size, always avoid lea if possible.
385
386         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
387
388 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
389
390         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
391         Dunmmy function with NULL return unless the target is
392         OSX >= 10.6 (Darwin10).
393
394 2010-08-17  Jack Howarth <howarth@bromo.med.uc.edu>
395
396         * gcc.c (spec_function): Add remove-outfile.
397         (remove_outfile_spec_function): New function.
398         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
399         * invoke.texi (replace-outfile): Document.
400
401 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
402
403         PR target/45296
404         * reginfo.c (globalize_reg): Reject stack registers.
405
406 2010-08-17  Richard Guenther  <rguenther@suse.de>
407
408         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
409         list of conditional equivalences.
410         (free_all_edge_infos): Adjust.
411         (record_equivalences_from_incoming_edge): Likewise.
412         (record_cond): Likewise.
413         (build_and_record_new_cond): Likewise.
414         (record_conditions): Likewise.
415         (dom_opt_leave_block): Likewise.
416
417 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
418
419         * doc/invoke.texi (ms-extension): Add documentation.
420
421 2010-08-17  Richard Guenther  <rguenther@suse.de>
422
423         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
424
425 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
426
427         PR c/40563
428         * c-decl.c (diagnose_uninitialized_cst_member): New function.
429         (finish_decl): Use it to issue a -Wc++-compat warning about
430         uninitialized const field in struct or union.
431
432         (finish_struct): Use strip_array_types.
433
434 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
435
436         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
437         functions.
438         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
439         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
440         call block_nreverse here.
441         (blocks_nreverse): Rename decl temporary to block.
442
443 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
444
445         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
446         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
447         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
448         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
449         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
450         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
451         thumb2_iorsi3): Delete.
452         (orsi_notsi_si): No longer a named pattern.
453         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
454         * config/arm/predicates.md (shift_amount_operand): New.
455         (mult_operator): New.
456         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
457         attr enabled): New.
458         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
459         arch matches t2.
460         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
461         (not_shiftsi_compare0): Likewise, renamed from
462         arm_notsi_shiftsi_compare0.
463         (not_shiftsi_compare0_scratch): Likweise, renamed from
464         arm_notsi_shiftsi_compare0_scratch.
465         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
466         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
467         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
468         so that the register alternative is disabled when the shift_operator
469         is MULT.  Use "M" as the constraint for constants.
470         (arith_shiftsi splitter): Enable for TARGET_32BIT.
471         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
472         constraint for constants.
473         (arith_shiftsi_compare0_scratch): Likewise.
474         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
475         Handle Thumb2 alternative.
476
477 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
478
479         * doc/options.texi (NoDriverArg): Document.
480         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
481         -MDX and -MMDX.
482         * opt-functions.awk (switch_flags): Handle NoDriverArg.
483         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
484         marking for CL_NO_DRIVER_ARG options when in the driver.
485         * opts.h (CL_NO_DRIVER_ARG): Define.
486         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
487         CL_COMMON): Update values.
488
489 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
490
491         * common.opt: Add driver options.
492         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
493         * doc/options.texi (Driver, RejectDriver): Document.
494         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
495         print_prog_name, print_multi_directory, print_sysroot,
496         print_multi_os_directory, print_multi_lib,
497         print_sysroot_headers_suffix, report_times, combine_flag,
498         use_pipes, wrapper_string): Remove.
499         (save_switch, driver_unknown_option_callback,
500         driver_wrong_lang_callback, driver_post_handling_callback,
501         driver_handle_option): New.
502         (spec_lang, last_language_n_infiles): Make file-scope static
503         instead of local to process_command.
504         (process_command): Use decode_cmdline_options_to_array and
505         read_cmdline_option for option processing.  Compute have_c in
506         prescan of decoded options.
507         * opt-functions.awk (switch_flags): Handle Driver and
508         RejectDriver.
509         (var_type, var_type_struct): Handle Separate options as generating
510         const char * variables.
511         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
512         CL_TARGET to be passed by caller if required.
513         (decode_cmdline_options_to_array): Update comment.
514         * opts.c (complain_wrong_lang): Handle options only valid for the
515         driver.
516         (decode_options): Update call to decode_cmdline_options_to_array.
517         (print_filtered_help): Ignore driver-only options.
518         (print_specific_help): Ignore CL_DRIVER.
519         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
520         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
521         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
522         Update values.
523
524 2010-08-16  Richard Guenther  <rguenther@suse.de>
525
526         * tree-cfg.c (verify_types_in_gimple_reference): Verify
527         TARGET_MEM_REF a bit.
528         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
529         (create_mem_ref_raw): Always create TMR_OFFSET, store the
530         alias pointer type via it.
531         (copy_mem_ref_info): Adjust.
532         (maybe_fold_tmr): Likewise.
533         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
534         (reference_alias_ptr_type): Likewise.
535         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
536         adjust documentation of TMR_OFFSET operand.
537         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
538         use the alias pointer type.
539         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
540         initialize mem attrs but the TMR itself.
541         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
542         similar to MEM_REF.
543         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
544         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
545         (unshare_and_remove_ssa_names): Likewise.
546         (copy_ref_info): Adjust.
547         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
548         TARGET_MEM_REF case.
549         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
550         at TMR_ORIGINAL.
551         * tree.h (TMR_ORIGINAL): Remove.
552         * gimple.c (get_base_address): For TARGET_MEM_REF with a
553         symbol return that.
554         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
555         with a symbol.
556         (get_addr_base_and_unit_offset): Likewise.
557         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
558         TARGET_MEM_REFs.
559         (indirect_ref_may_alias_decl_p): Likewise.
560         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
561
562 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
563
564         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
565         with GCC version 4.6, the default setting (when not optimizing
566         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
567         been changed to -fomit-frame-pointer.
568
569 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
570
571         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
572         Darwin10.  Do not link libgcc.a for Darwin >= 9.
573
574 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
575
576         * doc/invoke.texi (Warning Options): Fix terminology and markup
577         in the description of how unknown warning options are handled.
578
579 2010-08-15  Ira Rosen  <irar@il.ibm.com>
580
581         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
582         in basic blocks.
583         (vect_supportable_dr_alignment): Check alignment for basic blocks.
584         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
585         data references.
586         (vect_bb_vectorization_profitable_p): New function.
587         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
588         check if it's worthwhile to vectorize the basic block.
589
590 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
591
592         * reload.h (register_move_cost, memory_move_secondary_cost,
593         secondary_reload_class): Adjust prototype.
594         * rtl.h (reg_class_subset_p): Adjust prototype.
595         * reload.c (secondary_reload_class): Change arguments type from
596         enum reg_class to reg_class_t. Change result type to reg_class_t.
597         * reginfo.c (register_move_cost, reg_class_subset_p): Change
598         arguments type from enum reg_class to reg_class_t.
599         (memory_move_secondary_cost): Change arguments type from
600         enum reg_class to reg_class_t. Change type of saved_flags to
601         reg_class_t.
602
603         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
604         Remove macros.
605         (mips_cost): Remove.
606         (struct mips_rtx_cost_data): Moved to mips.c.
607         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
608         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
609         (mips_cost): Make static.
610         (mips_canonicalize_move_class): Change argument type to reg_class_t.
611         Change result type to reg_class_t.
612         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
613         type from enum reg_class to reg_class_t.
614         (mips_register_move_cost): Make static. Change arguments
615         type from enum reg_class to reg_class_t.
616         (mips_memory_move_cost): New function.
617         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
618
619 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
620
621         PR rtl-optimization/43358
622         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
623         of a single hard register, using simplify_subreg_regno to decide
624         what that register should be.
625
626 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
627
628         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
629         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
630         (loongson_pmull<V_suffix>): Rename to...
631         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
632
633 2010-08-13  Jack Howarth <howarth@bromo.med.uc.edu>
634
635         * gcc/configure.ac: Enable -fomit-frame-pointer on darwin
636         which support dwarf2.
637         * config/i386/i386.c (override_options): Same.
638
639 2010-08-13  Jie Zhang  <jie@codesourcery.com>
640
641         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
642
643 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
644
645         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
646         -MMD.
647
648 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
649
650         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
651         up dot_prod pattern searching if a stmt is outside the loop.
652
653 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
654             Uros Bizjak  <ubizjak@gmail.com>
655
656         * config.gcc: Handle --enable-frame-pointer.
657
658         * configure.ac: Add --enable-frame-pointer.
659         * configure: Regenerated.
660
661         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
662         (override_options): If not configured with --enable-frame-pointer,
663         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
664         optimizing for size), -fasynchronous-unwind-tables and
665         -maccumulate-outgoing-args by default.
666
667 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
668
669         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
670
671         PR middle-end/45262
672         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
673         -a overflows.  Normalize the range.
674
675 2010-08-12  Richard Guenther  <rguenther@suse.de>
676
677         PR tree-optimization/45232
678         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
679         for types with undefined overflow.
680         (reassociate_bb): Allow re-associating of bit and min/max
681         operations for types with undefined overflow.
682         * tree-ssa-forwprop.c (associate_plusminus): New function.
683         (tree_ssa_forward_propagate_single_use_vars): Call it.
684
685 2010-08-12  Richard Guenther  <rguenther@suse.de>
686
687         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
688         * tree-ssa-alias.c (get_ptr_info): Move ...
689         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
690         align and misalign fields conservatively.
691         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
692         derive alignment information.
693         (evaluate_stmt): Derive alignment information from memory
694         allocation functions.
695         * tree.h (get_pointer_alignment): Make unsigned.
696         * builtins.c (get_object_alignment): Use alignment information we
697         have computed for pointers.
698         (get_pointer_alignment): Likewise.  Make conservative, return
699         and unsigned value.
700         (expand_builtin_strlen): Adjust.
701         (expand_builtin_memcmp): Likewise.
702         (expand_builtin_strcmp): Likewise.
703         (expand_builtin_strncmp): Likewise.
704         (get_builtin_sync_mem): Use at least mode alignment.
705         (fold_builtin_memset): Adjust.
706         (fold_builtin_memory_op): Likewise.
707         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
708         information also dump pointer alignment knowledge.
709         (dump_gimple_stmt): Likewise.
710
711 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
712
713         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
714         (EMPTY_FIELD_BOUNDARY): Remove.
715         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
716
717 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
718
719         PR debug/45259
720         * caller-save.c (save_call_clobbered_regs): Only swap notes with
721         DEBUG_INSNs if n_regs_saved.
722
723 2010-08-12  Wei Guozhi  <carrot@google.com>
724
725         PR target/44999
726         * config/arm/arm.md (andsi3): Change to zero extension if possible.
727         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
728
729 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
730
731         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
732
733         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
734
735 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
736
737         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
738         the case removed in the previous patch, when the only phi argument
739         is defined in the same loop as the phi node itself.  Handle it
740         separately from the invariant case by both propagating it outside
741         the region and replacing the phi node with an assign.
742
743 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
744
745         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
746         constant phi nodes with one argument are is_gimple_min_invariant
747         and SSA_NAME_IS_DEFAULT_DEF.
748
749 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
750
751         * graphite-cloog-util.c (oppose_constraint):
752         Extend loop counter's value range (CLOOG_ORG).
753         (cloog_matrix_to_ppl_constraint): Same.
754         (new_Constraint_System_from_Cloog_matrix): Same.
755         * graphite-cloog-compat.h (matrix_num_type): New.
756
757 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
758
759         * graphite.c (graphite_initialize): Do not initialize
760         CLooG and initialize the Parma Polyhedra Library
761         manually when using CLOOG_ORG.
762         (graphite_finalize): Do not finalize CLooG and finalize
763         the Parma Polyhedra Library manually when using CLOOG_ORG.
764         * graphite-cloog-compat.h (cloog_initialize): Hide function
765         when using CLOOG_ORG.
766         (cloog_finalize): Same.
767
768 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
769
770         * graphite-clast-to-gimple.c (free_scattering): Change
771         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
772         (CLOOG_ORG).
773         (build_cloog_prog): Same.
774         * graphite-cloog-compat.h (cloog_domain): Removed.
775         (cloog_scattering): New.
776         (cloog_set_domain): Removed.
777         (cloog_set_scattering): New.
778         (cloog_next_domain): Removed.
779         (cloog_next_scattering): New.
780         (cloog_set_next_domain): Removed.
781         (cloog_set_next_scattering): New.
782         (CloogScatteringList): New.
783         (CloogScattering): New.
784         (cloog_scattering_free): New.
785         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
786         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
787         New.
788
789 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
790
791         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
792         CloogState.
793         (set_cloog_options): Same.
794         (print_clast_stmt): Same.
795         (scop_to_clast): Same.
796         (print_generated_program): Same.
797         (gloog): Same.
798         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
799         (scop_to_clast): Extend with CloogState.
800         * graphite-cloog-util.c: Include graphite-cloog-compat.h
801         (new_Cloog_Domain_from_ppl_Polyhedron):
802         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
803         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
804         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
805         * graphite-cloog-util.h (build_cloog_prog): Same.
806         * graphite-cloog-copat.h (build_cloog_prog): New.
807         (CloogState): New.
808         (cloog_state_malloc): New.
809         (cloog_state_free): New.
810         (cloog_loop_malloc): New.
811         (cloog_options_malloc): New.
812         (cloog_statement_alloc): New.
813         (cloog_domain_from_cloog_matrix): New.
814         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
815         (new_Cloog_Domain_from_ppl_Polyhedron): New.
816
817 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
818
819         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
820         type of NAME now depends on used CLooG version.
821         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
822         (gcc_type_for_clast_expr): Same.
823         (print_clast_stmt): Replace pprint with clast_pprint.
824         * graphite-cloog-compat.h: Provide compatibility macros for
825         CLooG Legacy.
826         (clast_name_p): New.
827         (clast_expr_term): New.
828         (clast_expr_red): New.
829         (clast_expr_bin): New.
830         (clast_pprint): New.
831
832 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
833
834         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
835         compatible to newer CLooG releases (CLOOG_ORG).
836         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
837         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
838         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
839         (build_cloog_prog) : New.
840         (cloog_program_extract_scalars): New.
841         (cloog_program_scatter): New.
842
843 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
844
845         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
846         conditionally (CLOOG_ORG).
847         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
848         (cloog_statement_usr): New.
849         (cloog_domain): Same.
850         (cloog_set_domain): Same.
851         (cloog_next_domain): Same.
852         (cloog_set_next_domain): Same.
853         (cloog_program_nb_scattdims): Same.
854         (cloog_program_set_nb_scattdims): Same.
855         (cloog_program_names): Same.
856         (cloog_program_set_names): Same.
857         (cloog_program_set_context): Same.
858         (cloog_program_set_loop): Same.
859         (cloog_program_blocklist): Same.
860         (cloog_program_set_blocklist): Same.
861         (cloog_program_scaldims): Same.
862         (cloog_program_set_scaldims): Same.
863         (cloog_names_nb_parameters): Same.
864         (cloog_names_set_nb_parameters): Same.
865         (cloog_names_parameters): Same.
866         (cloog_names_set_parameters): Same.
867         (cloog_names_set_nb_iterators): Same.
868         (cloog_names_set_iterators): Same.
869         (cloog_names_set_nb_scattering): Same.
870         (cloog_names_set_scattering): Same.
871         (cloog_statement_set_usr): Same.
872         (cloog_loop_set_next): Same.
873         (cloog_loop_set_domain): Same.
874         (cloog_loop_set_block): Same.
875         (cloog_block_list_next): Same.
876         (cloog_block_list_set_next):
877         (cloog_block_list_set_block): Same.
878
879 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
880
881         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
882         a bool.
883         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
884         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
885         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
886         when something has been changed.
887         (rewrite_commutative_reductions_out_of_ssa): Same.
888
889 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
890
891         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
892         handle the case when def is in the sese region.
893         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
894         for invariant expressions.
895         (rewrite_cross_bb_phi_deps): Removed.
896         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
897         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
898         rewrite_cross_bb_phi_deps.
899
900 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
901
902         * graphite-sese-to-poly.c
903         (rewrite_commutative_reductions_out_of_ssa_loop): Call
904         scev_analyzable_p only on is_gimple_reg
905
906 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
907
908         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
909         (rewrite_close_phi_out_of_ssa): Propagate constant values or
910         parametric expressions outside the scop region.
911         (rewrite_cross_bb_scalar_deps): Same.
912         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
913
914 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
915
916         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
917         SSA_NAME_DEF_STMT only on SSA_NAMEs.
918
919 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
920
921         * tree-scalar-evolution.c (instantiate_scev_name): Do not
922         instantiate default definitions.
923
924 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
925             Sebastian Pop  <sebastian.pop@amd.com>
926
927         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
928         (loop_exits_from_bb_p): New.
929         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
930         (loop_exits_from_bb_p): Declared.
931         * graphite-scop-detection.c (scopdet_basic_block_info): Call
932         loop_exits_to_bb_p.
933
934 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
935
936         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
937         extra parameter for the region.  Call scev_analyzable_p.
938         (rewrite_reductions_out_of_ssa): Update call to
939         rewrite_close_phi_out_of_ssa.
940         (rewrite_cross_bb_phi_deps): Same.
941         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
942         parameter for the region.  Call scev_analyzable_p.
943         (rewrite_commutative_reductions_out_of_ssa): Update call to
944         rewrite_commutative_reductions_out_of_ssa_loop.
945
946 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
947
948         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
949
950 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
951
952         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
953         SSA scalar phi nodes that can be scev_analyzable_p.
954
955 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
956
957         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
958         handle SSA_NAME_IS_DEFAULT_DEF.
959
960 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
961
962         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
963
964 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
965
966         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
967         case non close-phi nodes with one argument.
968
969 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
970
971         * sese.h (scev_analyzable_p): Scevs could be expressions without
972         chrecs and still be scev_analyzable_p.
973
974 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
975
976         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
977
978 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
979
980         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
981         * cfgloop.h (struct loop): Remove single_iv field.
982         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
983         (scop_canonicalize_loops): Removed.
984         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
985         over all the loop phi nodes in loop->header.
986         (build_poly_scop): Remove use of scop_canonicalize_loops.
987
988 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
989
990         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
991         handle GIMPLE_CALL.
992
993 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
994
995         * tree-chrec.c (chrec_apply): Should only apply to the specified
996         variable.  Also handle multivariate chains of recurrences that
997         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
998
999 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1000
1001         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
1002         (debug_clast_name_indexes_1): Removed.
1003         (debug_clast_name_indexes): Removed.
1004         (pbb_to_depth_to_oldiv): Removed.
1005         (build_iv_mapping): Replace the use of rename_map with iv_map.
1006         (translate_clast_user): Remove uses of rename_map.  Allocate and
1007         free iv_map.
1008         (translate_clast_for_loop): Remove uses of rename_map.
1009         (translate_clast_for): Same.
1010         (translate_clast_guard): Same.
1011         (translate_clast): Same.
1012         (gloog): Same.
1013         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
1014         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
1015         * sese.c (set_rename): Now static.
1016         (rename_variables_in_stmt): Removed.
1017         (rename_uses): New.
1018         (is_parameter): Removed.
1019         (is_iv): Removed.
1020         (expand_scalar_variables_call): Removed.
1021         (expand_scalar_variables_ssa_name): Removed.
1022         (expand_scalar_variables_expr): Removed.
1023         (expand_scalar_variables_stmt): Removed.
1024         (expand_scalar_variables): Removed.
1025         (rename_variables): Removed.
1026         (remove_condition): Removed.
1027         (get_true_edge_from_guard_bb): Removed.
1028         (get_false_edge_from_guard_bb): Removed.
1029         (struct igp): Removed.
1030         (default_before_guard): Removed.
1031         (convert_for_phi_arg): Removed.
1032         (add_guard_exit_phis): Removed.
1033         (insert_guard_phis): Removed.
1034         (graphite_copy_stmts_from_block): Now also uses iv_map and a
1035         region.  Do not copy conditions.  Do not copy induction variables.
1036         Call rename_uses.
1037         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
1038         the translated statement.  Use the iv_map for the induction
1039         variable renaming.
1040         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
1041         (set_rename): Removed declaration.
1042         (scev_analyzable_p): ...here.
1043         * tree-chrec.c (chrec_apply_map): New.
1044         * tree-chrec.h (chrec_apply_map): Declared.
1045
1046 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1047
1048         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
1049         insert_loop_close_phis.
1050         * sese.c (name_defined_in_loop_p): Removed.
1051         (expr_defined_in_loop_p): Removed.
1052         (alive_after_loop): Removed.
1053         (close_phi_not_yet_inserted_p): Removed.
1054         (struct alep): Removed.
1055         (add_loop_exit_phis): Removed.
1056         (insert_loop_close_phis): Removed.
1057
1058 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1059
1060         * graphite-cloog-util.c
1061         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
1062         * graphite-poly.c
1063         (psct_scattering_dim_for_loop_depth): Same.
1064
1065 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1066
1067         * graphite-cloog-util.h: Added cloog.h.
1068         * graphite-blocking.c: Removed cloog.h.
1069         * graphite-dependences.c: Same.
1070         * graphite-interchange.c: Same.
1071         * graphite-poly.c: Same.
1072         * graphite-ppl.c: Same.
1073         * graphite-scop-detection.c: Same.
1074         * graphite-sese-to-poly.c:
1075         Removed cloog.h.
1076         Removed graphite-clast-to-gimple.h.
1077         (check_poly_representation): Removed (unused).
1078         * graphite-sese-to-poly.h
1079         (check_poly_representation): Removed (unused).
1080
1081 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1082
1083         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
1084         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
1085         (graphite-cloog-util.o): New.
1086         (graphite-ppl.o): Added graphite-cloog-util.h.
1087         * graphite-clast-to-gimple.c:
1088         Added graphite-cloog-util.h to include statements.
1089         * graphite-cloog-util.c: New.
1090         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
1091         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1092         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1093         (new_C_Polyhedron_from_Cloog_Matrix): Same.
1094         (insert_constraint_into_matrix): Same.
1095         (ppl_Constrain_System_number_of_constraints): Same.
1096         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
1097         (oppose_constraint): Same.
1098         (cloog_matrix_to_ppl_constraint): Same.
1099         (new_Constraint_System_from_Cloog_Matrix): Same.
1100         * graphite-cloog-util.h: New.
1101         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
1102         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1103         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1104         (new_C_Polyhedron_from_Cloog_Matrix): Same.
1105         (insert_constraint_into_matrix): Same.
1106         * graphite-ppl.c:
1107         Added graphite-cloog-util.h to include statements.
1108         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
1109         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1110         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1111         (new_C_Polyhedron_from_Cloog_Matrix): Same.
1112         (insert_constraint_into_matrix): Same.
1113         (ppl_Constrain_System_number_of_constraints): Same.
1114         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
1115         (oppose_constraint): Same.
1116         (cloog_matrix_to_ppl_constraint): Same.
1117         (new_Constraint_System_from_Cloog_Matrix): Same.
1118         * graphite-ppl.h:
1119         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
1120         graphite-cloog-util.h.
1121         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1122         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1123         (new_C_Polyhedron_from_Cloog_Matrix): Same.
1124         (insert_constraint_into_matrix): Same.
1125
1126 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1127
1128         * graphite-clast-to-gimple.c
1129         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
1130         (precision_for_interval): Same.
1131         (gcc_type_for_interval): Same.
1132         (compute_type_for_level): Same.
1133         * graphite-interchange.c
1134         (lst_interchange_profitable_p): Same.
1135         * graphite-poly.c
1136         (psct_scattering_dim_for_loop_depth): Same.
1137         * graphite-ppl.c
1138         (ppl_max_for_le_pointset): Same.
1139         (ppl_min_for_le_pointset): Same.
1140
1141 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1142
1143         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
1144         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
1145
1146 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1147
1148         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
1149         rewrite_close_phi_out_of_ssa.
1150
1151 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1152
1153         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
1154
1155 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1156
1157         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
1158         rename_map.
1159         * sese.c (debug_rename_map): Same.
1160         (get_rename): Same.
1161         (set_rename): Same.
1162         (rename_variables_in_stmt): Same.
1163         (expand_scalar_variables_call): Same.
1164         (expand_scalar_variables_ssa_name): Same.
1165         (expand_scalar_variables_expr): Same.
1166         (expand_scalar_variables_stmt): Same.
1167         (expand_scalar_variables): Same.
1168         (rename_variables): Same.
1169         (graphite_copy_stmts_from_block): Same.
1170         (copy_bb_and_scalar_dependences): Same.
1171
1172 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1173
1174         * graphite-clast-to-gimple.c (copy_renames): Removed.
1175         (translate_clast_for): Do not call copy_renames.
1176         (translate_clast_guard): Same.
1177
1178 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1179
1180         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
1181         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
1182         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
1183         before rewrite_cross_bb_scalar_deps.
1184
1185 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1186
1187         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
1188         Early return in when flag_associative_math is not set.
1189
1190 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1191
1192         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
1193         of SSA copies on edges except for loop->latch.
1194
1195 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1196
1197         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
1198         Split out of rewrite_reductions_out_of_ssa.
1199         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
1200         Declared.
1201         * graphite.c (graphite_transform_loops): Call it.
1202
1203 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1204
1205         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
1206
1207 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
1208
1209         * dbgcnt.def (graphite_scop): New counter.
1210         * graphite.c: Include dbgcnt.h.
1211         (graphite_transform_loops): Use new counter to limit transformations.
1212         * Makefile.in (graphite.o): Depend on DBGCNT_H.
1213
1214 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1215
1216         * passes.c (init_optimization_passes): Add pass_graphite.
1217         Schedule a pass_copy_prop before pass_graphite_transforms.
1218         * timevar.def (TV_GRAPHITE): Declared.
1219         * tree-pass.h (pass_graphite): Declared.
1220         * tree-ssa-loop.c (pass_graphite): New.
1221
1222 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1223
1224         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
1225         Remove calls to rename_nb_iterations and rename_sese_parameters.
1226         * graphite-clast-to-gimple.h (gloog): Update declaration.
1227         * graphite.c (graphite_transform_loops): Update call to gloog.
1228         * sese.c (rename_variables_in_expr): Removed.
1229         (rename_nb_iterations): Removed.
1230         (rename_sese_parameters): Removed.
1231         * sese.h (rename_nb_iterations): Removed.
1232         (rename_sese_parameters): Removed.
1233
1234 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1235
1236         * graphite-clast-to-gimple.c (gloog): Remove call to
1237         sese_adjust_liveout_phis.
1238         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
1239         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
1240         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
1241         rewrite_phi_out_of_ssa.
1242         * sese.c (get_vdef_before_sese): Removed.
1243         (sese_adjust_vphi): Removed.
1244         (sese_adjust_liveout_phis): Removed.
1245         * sese.h (sese_adjust_liveout_phis): Removed.
1246
1247 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1248
1249         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
1250         argument for the place after which to insert the out of SSA copy.
1251         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
1252         (rewrite_phi_out_of_ssa): Same.
1253         (rewrite_cross_bb_scalar_deps): Same.
1254         (insert_copyout): Removed.
1255         (insert_copyin): Removed.
1256         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
1257         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
1258         insert_copyin.
1259
1260 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1261
1262         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
1263         (rewrite_reductions_out_of_ssa): Same.
1264         (rewrite_commutative_reductions_out_of_ssa): Same.
1265         (build_poly_scop): Do not call these functions.
1266         * graphite-sese-to-poly.h (build_poly_scop): Declared.
1267         (rewrite_reductions_out_of_ssa): Declared.
1268         (rewrite_commutative_reductions_out_of_ssa): Declared.
1269         * graphite.c (graphite_transform_loops): Call on every scop
1270         rewrite_commutative_reductions_out_of_ssa before calling
1271         rewrite_reductions_out_of_ssa and build_scop_bbs.
1272
1273 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1274
1275         * graphite-dependences.c (dot_deps): Make system call to dotty run
1276         in background.
1277         (dot_deps_stmt): Same.
1278         * graphite-poly.c (dot_lst): Same.
1279
1280 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1281
1282         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
1283         phi_arg_in_outermost_loop.
1284         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
1285         (remove_invariant_phi): Same.
1286
1287 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
1288
1289         * target.def (output_addr_const_extra): New hook.
1290         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
1291         * doc/tm.texi: Regenerate.
1292         * targhooks.c (default_asm_output_addr_const_extra): New function.
1293         * targhooks.h (default_asm_output_addr_const_extra): Declare.
1294         * final.c: (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
1295         target hook.
1296
1297         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1298         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
1299         * config/i386/i386.h (output_addr_const_extra): Rename to...
1300         (i386_asm_output_addr_const_extra): ...this. Make static.
1301         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1302
1303 2010-08-11  Richard Henderson  <rth@redhat.com>
1304
1305         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
1306
1307 2010-08-11  Nick Clifton  <nickc@redhat.com>
1308
1309         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
1310         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
1311         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
1312         stormy16-lib2-cmpsi.c.
1313
1314         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
1315         -O2.
1316
1317 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
1318
1319         * opts.h (struct cl_option_handler_func): Make handler take
1320         cl_decoded_option structure as parameter, not individual elements.
1321         (struct cl_option_handlers): Make callbacks take cl_decoded_option
1322         structure as parameter, not individual elements.
1323         (handle_option): Take cl_decoded_option structure as parameter,
1324         not individual elements.
1325         (handle_generated_option): Declare.
1326         * opts-common.c (handle_option): Take cl_decoded_option structure
1327         as parameter, not individual elements.  Update calls to callback
1328         and handler functions.
1329         (handle_generated_option): New.
1330         (read_cmdline_option): Update calls to callback functions and
1331         handle_option.
1332         * opts.c (common_handle_option, complain_wrong_lang,
1333         unknown_option_callback, post_handling_callback,
1334         lang_handle_option, target_handle_option): Take cl_decoded_option
1335         structure as parameter, not individual elements.
1336         (lang_handle_option, target_handle_option, common_handle_option):
1337         Assert option has at most one argument.
1338         (enable_warning_as_error): Call handle_generated_option instead of
1339         handle_option.  Do not pass -Werror argument as argument of
1340         generated option.
1341
1342 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1343
1344         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
1345         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
1346         (SUBWORD_BOOL_CAS): Likewise.
1347         (SUBWORD_SYNC_OP): Likewise.
1348         (SUBWORD_TEST_AND_SET): Likewise.
1349         (FETCH_AND_OP_WORD): Parenthesise INF_OP
1350         (SUBWORD_SYNC_OP): Likewise.
1351         (OP_AND_FETCH_WORD): Likewise.
1352
1353 2010-08-10  Xinliang David Li  <davidxl@google.com>
1354
1355         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
1356         compute max/min offset in address.
1357
1358 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
1359
1360         * ira-live.c: Include sbitmap.h.
1361         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
1362         Compress live ranges even more.
1363
1364 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1365
1366         * coverage.c (ctr_labels): Delete.
1367
1368 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
1369
1370         PR bootstrap/45177
1371         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
1372         test here from arm_gen_load_multiple_1.
1373         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
1374         multiple_operation_profitable_p.
1375
1376 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1377
1378         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
1379         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
1380
1381 2010-08-10  Richard Henderson  <rth@redhat.com>
1382
1383         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
1384         after saving registers.  Assert that SSE registers are only saved
1385         with a sufficiently aligned frame.
1386         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
1387         remove stack_realign_fp handling.
1388         (ix86_expand_prologue): Save int registers before stack_realign_fp,
1389         and do not mark the stack alignment as frame related.
1390         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
1391
1392         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
1393         saves when re-aligning the stack.
1394
1395 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1396
1397         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
1398         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
1399         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
1400
1401 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1402
1403         * dwarf2out.c (struct die_struct): Move die_tag to the end.
1404
1405 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
1406
1407         * config/arm/iterators.md: New file.
1408         * config/arm/arm.md: Include iterators.md.
1409         (QHSI): Move to new file.
1410         (LTUGEU, cnb, optab, ior_xor): Likewise.
1411         * config/arm/iwmmxt.md (VMMX): Move to new file.
1412         (VSHFT, MMX_char): Likewise.
1413         * config/arm/neon.md (VD): Move to new file.
1414         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
1415         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
1416         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
1417         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
1418         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
1419         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
1420         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
1421         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
1422         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
1423         (Is_d_reg, V_mode_nunits): Likewise.
1424         * config/arm/vec-common.md (VALL): Move to new file.
1425         (VALLW, VINT, VINTW): Likewise.
1426
1427 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
1428
1429         PR middle-end/45182
1430         * combine.c (make_compound_operation): Don't try to convert
1431         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
1432
1433 2010-08-10  Richard Guenther  <rguenther@suse.de>
1434
1435         * tree.h (get_object_alignment): Adjust prototype.
1436         * builtins.c (get_object_alignment): Return unsigned int,
1437         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
1438         and TARGET_MEM_REF properly.
1439         (get_pointer_alignment): Adjust.
1440         * emit-rtl.c (get_mem_align_offset): Adjust comment.
1441         (set_mem_attributes_minus_bitpos): Adjust.
1442         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
1443
1444 2010-08-10  Richard Guenther  <rguenther@suse.de>
1445
1446         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
1447         (copy_prop_visit_assignment): Simplify.
1448         (copy_prop_visit_stmt): Also visit assignments from
1449         constants.
1450         (copy_prop_visit_phi_node): Use operand_equal_p.
1451
1452 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
1453
1454         * ipa-split.c (find_split_points): Free stack.
1455
1456 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
1457
1458         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
1459         * tree.c (tree_node_kind): Delete corresponding entries.
1460
1461 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1462
1463         * alias.c (may_alias_p): Remove unused ret.
1464
1465 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
1466
1467         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
1468         alias_sets_conflict_p.
1469         (walk_mems_1): Moved from alias.c.
1470         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
1471         in alias.c.
1472         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
1473         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
1474         * alias.c (walk_mems_2): Moved to ddg.c.
1475         (walk_mems_1): Ditto.
1476         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
1477         to ddg.c.
1478         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
1479         disambiguation.
1480         *(may_alias_p): New function to check whether two memory expression
1481         may alias or not. Currently used in buidling inter-iteration memory
1482         dependence.
1483         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
1484         (insn_alias_sets_conflict_p): Removed
1485         *rtl.h (may_alias_p): New function prototype.
1486
1487 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
1488
1489         * tree.c (nreverse): Assert that we don't have a BLOCK.
1490
1491 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
1492
1493         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
1494         * config/arm/arm.c (arm_get_pcs_model): Likewise.
1495         * config/avr/avr.c (init_cumulative_args): Likewise.
1496         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1497         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1498         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
1499         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
1500         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
1501         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1502         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
1503         * dwarf2out.c (gen_subprogram_die): Likewise.
1504         * function.c (allocate_struct_function): Likewise.
1505         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
1506         (deserves_ellipsis): Delete.
1507
1508 2010-08-09  Richard Guenther  <rguenther@suse.de>
1509
1510         * tree-ssa-copy.c (cached_last_copy_of): Remove.
1511         (valueize_val): New function.
1512         (get_last_copy_of): Remove.
1513         (set_copy_of_val): Simplify.
1514         (dump_copy_of): Likewise.
1515         (copy_prop_visit_cond_stmt): Use valueize_val.
1516         (copy_prop_visit_phi_node): Properly handle unvisited names.
1517         Drop code managing copy-of chains.
1518         (init_copy_prop): Adjust.
1519         (fini_copy_prop): Likewise.
1520         (execute_copy_prop): Remove obsolete comment.
1521
1522 2010-08-09  Richard Guenther  <rguenther@suse.de>
1523
1524         PR middle-end/44632
1525         * function.c (gimplify_parameters): Do not clear addressable
1526         bit of the original parameter.
1527
1528 2010-08-09  Richard Guenther  <rguenther@suse.de>
1529
1530         PR middle-end/45212
1531         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
1532         alignment from MEM_REF offset only if we took it from the
1533         base object.
1534
1535 2010-08-09  Eric Fisher <joefoxreal@gmail.com>
1536
1537         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
1538
1539 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
1540
1541         * c-tree.h (build_arg_info): Declare.
1542         * c-decl.c (build_arg_info): Define.
1543         (get_parm_info): Call it.  Delete initialization code.
1544         * c-parser.c (c_parser_parms_declarator): Likewise.
1545         (c_parser_parms_list_declaractor): Likewise.
1546
1547 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
1548
1549         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
1550         (struct c_arg_info): Change type of tags field.
1551         * c-decl.c (grokdeclarator): Update for changed type of tags field.
1552         (get_parm_info): Likewise.
1553         (store_parm_decls_newstyle): Likewise.
1554
1555 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
1556
1557         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
1558         (branch_island_list): Delete.
1559         (branch_islands): Declare.
1560         (add_compiler_branch_island): Adjust for branch_islands instead of
1561         branch_island_list.
1562         (macho_branch_islands): Likewise.
1563         (no_previous_def): Likewise.
1564         (get_prev_label): Likewise.
1565
1566 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1567
1568         PR boehm-gc/34544
1569         * gthr-posix.h (__gthread_start): Delete.
1570         (__gthread_active_init): Use pthread_default_stacksize_np instead of
1571         pthread_create to determine if hpux pthreads are active.
1572         * gthr-posix95.h (__gthread_start): Delete.
1573         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
1574
1575 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
1576
1577         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
1578         _WIN64 not expanded.
1579
1580 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
1581             H.J. Lu  <hongjiu.lu@intel.com>
1582
1583         PR target/45213
1584         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
1585         to output 32bit SFmode immediate as 8 byte sign extended value.
1586
1587 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1588
1589         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
1590         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
1591         (SUBWORD_BOOL_CAS): Likewise.
1592         (SUBWORD_SYNC_OP): Likewise.
1593         (SUBWORD_TEST_AND_SET): Likewise.
1594         (FETCH_AND_OP_WORD): Parenthesise INF_OP
1595         (SUBWORD_SYNC_OP): Likewise.
1596         (OP_AND_FETCH_WORD): Likewise.
1597
1598 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1599
1600         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
1601         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
1602         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
1603         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
1604         generic part.
1605         (cortex_a9_sched_adjust_cost): New function.
1606         (xscale_sched_adjust_cost): New function.
1607         * config/arm/arm-protos.h (struct tune_params): New field
1608         sched_adjust_cost.
1609         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
1610
1611 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
1612
1613         PR target/44942
1614         * config/sparc/sparc.c (function_arg_advance): Always take into account
1615         the padding, if any.
1616
1617 2010-08-06  Richard Guenther  <rguenther@suse.de>
1618
1619         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
1620         (dump_lattice_value): Dump it.
1621         (get_default_value): Adjust.
1622         (get_constant_value): Likewise.
1623         (set_value_varying): Likewise.
1624         (set_lattice_value): Make sure to not go up the lattice
1625         with bitwise constant values.
1626         (get_value_for_expr): Handle ADDR_EXPRs.
1627         (value_to_double_int): New function.
1628         (get_value_from_alignment): Likewise.
1629         (do_dbg_cnt): Adjust.
1630         (ccp_lattice_meet): Handle partially constant values.
1631         (bit_value_unop_1): New function.
1632         (bit_value_binop_1): Likewise.
1633         (bit_value_unop): Likewise.
1634         (bit_value_binop): Likewise.
1635         (evaluate_stmt): Track partially constant values if
1636         flag_tree_bit_ccp is set.
1637         (ccp_fold_stmt): Dump if we folded a predicate.
1638         (ccp_visit_stmt): Adjust.
1639         * common.opt (ftree-bit-ccp): New flag.
1640         * doc/invoke.texi (ftree-bit-ccp): Document.
1641         * opts.c (decode_options): Enable bit-CCP at -O1.
1642
1643 2010-08-06  Alan Modra  <amodra@gmail.com>
1644
1645         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
1646         and -mrelocatable-lib description.
1647
1648 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
1649
1650         From Martin Thuresson  <martint@google.com>
1651         * postreload.c (reload_cse_simplify_operands): Use
1652         SET_REGNO_RAW instead of SET_REGNO.
1653         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
1654         SET_REGNO.
1655         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
1656         instead of SET_REGNO.
1657         * rtl.h (SET_REGNO_RAW): New macro.
1658
1659 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
1660
1661         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
1662         computations.  Fix formatting issues.
1663         (num_sign_bit_copies1): Likewise.
1664         (canonicalize_condition): Likewise.
1665
1666 2010-08-05  Richard Henderson  <rth@redhat.com>
1667
1668         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
1669         (floor_log2): Use clz_hwi.
1670         (exact_log2): Use ctz_hwi.
1671         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
1672         * builtins.c (fold_builtin_bitop): Use them.
1673         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1674         * combine.c (get_pos_from_mask): Use ctz_hwi.
1675         * double-int.c (double_int_ctz): Likewise.
1676         * explow.c (force_reg): Likewise.
1677         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
1678
1679 2010-08-05  Richard Henderson  <rth@redhat.com>
1680
1681         PR target/45189
1682         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
1683         the alignment constant is properly sign-extended.
1684
1685 2010-08-05  Richard Guenther  <rguenther@suse.de>
1686
1687         * expr.c (store_expr): Use emit_block_move only if both
1688         source and target are MEMs.  Use store_bit_field if only
1689         the target is a MEM.
1690
1691 2010-08-05  Richard Henderson  <rth@redhat.com>
1692
1693         PR debug/45188
1694         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
1695         (INCOMING_RETURN_ADDR_RTX): Likewise.
1696         (dwarf2out_do_frame): Remove conditional compilation.
1697         (dwarf2out_frame_init): Likewise.
1698
1699 2010-08-05  Nicolas Setton  <setton@adacore.com>
1700
1701         * gcov.c (flag_display_progress): New static variable.
1702         (main): Display progress info on standard output if requested.
1703         (options): Add -d/--display-progress.
1704         (print_usage): Print them.
1705         (process_args): Handle them.
1706         * doc/gcov.texi: Document them.
1707
1708 2010-08-05  Martin Jambor  <mjambor@suse.cz>
1709
1710         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
1711         (ipcp_insert_stage): Redirect only edges not flagged with
1712         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
1713         discovered constants.
1714
1715 2010-08-05  Martin Jambor  <mjambor@suse.cz>
1716
1717         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
1718         (struct ipa_param_descriptor): New fields types and
1719         cannot_devirtualize.
1720         (ipa_param_cannot_devirtualize_p): New function.
1721         (ipa_param_types_vec_empty): Likewise.
1722         (ipa_make_edge_direct_to_target): Declare.
1723         * ipa-cp.c: Fixed first stage driver name in initial comment,
1724         described devirtualization there too.
1725         (ipcp_analyze_node): Call ipa_analyze_params_uses.
1726         (ipcp_print_all_lattices): Print devirtualization info.
1727         (ipa_set_param_cannot_devirtualize): New function.
1728         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
1729         lattice to BOTTOM.
1730         (ipcp_init_stage): Merged into...
1731         (ipcp_generate_summary): ...its caller.
1732         (ipcp_change_tops_to_bottom): Also process type lists.
1733         (ipcp_add_param_type): New function.
1734         (ipcp_copy_types): Likewise.
1735         (ipcp_propagate_types): Likewise.
1736         (ipcp_propagate_stage): Also propagate types.
1737         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
1738         Also return true if propagated types require it.
1739         (ipcp_update_callgraph): Dump redirection info.
1740         (ipcp_process_devirtualization_opportunities): New function.
1741         (ipcp_const_param_count): Include known type information.
1742         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
1743         on new node.  Fixed formatting.
1744         * ipa-prop.c (make_edge_direct_to_target): Renamed to
1745         ipa_make_edge_direct_to_target and changed all callers.  Made
1746         externally visible.
1747         (ipa_node_duplication_hook): Duplicate types vector.
1748         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
1749         redirect outgoing calls for which we can't get a decl from the
1750         statement.  Check that we can get a decl from the call statement.
1751         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
1752         ipa_analyze_params_uses only when ipa-cp is disabled.
1753         * tree-inline.c (get_indirect_callee_fndecl): Removed.
1754         (expand_call_inline): Do not call get_indirect_callee_fndecl.
1755         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
1756         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
1757
1758 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
1759
1760         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
1761         temporary. Emit move from temporary to accum, so REG_EQUAL note will
1762         be attached to this insn in correct mode.
1763
1764 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
1765
1766         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
1767         using REGNO of base_reg directly.
1768
1769 2010-08-05  Jie Zhang  <jie@codesourcery.com>
1770
1771         PR tree-optimization/45144
1772         * tree-sra.c (type_consists_of_records_p): Return false
1773         if the record contains bit-field.
1774
1775 2010-08-04  Richard Henderson  <rth@redhat.com>
1776
1777         * config/i386/i386.c (struct ix86_frame): Remove padding and
1778         to_allocate members.
1779         (ix86_compute_frame_layout): Don't store them.
1780         (ix86_can_use_return_insn_p): Use a more direct and more obviously
1781         correct condition for the position of the stack pointer.
1782         (ix86_expand_prologue): Compute remaining stack allocation based
1783         on the ultimate stack pointer offset.
1784         (ix86_expand_epilogue): Use more obvious expressions testing for
1785         the stack pointer already pointing to the saved registers.
1786
1787         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
1788         duplication deconstructing the frame pointer.  Simplify
1789         deallocation of the local stack frame.
1790
1791         * reg-notes.def (CFA_EXPRESSION): New.
1792         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
1793         (dwarf2out_frame_debug_cfa_expression): New.
1794         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
1795
1796         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
1797         * config/i386/i386.c (ix86_expand_prologue): Set it.
1798         (ix86_expand_epilogue): Clear it.
1799         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
1800         context, add REG_CFA_EXPRESSION notes.
1801
1802         * config/i386/i386.h (struct machine_frame_state): Rename from
1803         machine_cfa_state.  Add members tracking SP and FP regardless
1804         of the current CFA register.
1805         (ix86_cfa_state): Remove.
1806         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
1807         and sse_reg_save_offset members.
1808         (ix86_compute_frame_layout): Set them.
1809         (gen_push): Increment sp_offset too.
1810         (choose_baseaddr_len, choose_baseaddr): New.
1811         (ix86_emit_save_reg_using_mov): New.
1812         (ix86_emit_save_regs_using_mov): Use it.
1813         (ix86_emit_save_sse_regs_using_mov): Likewise.
1814         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
1815         compare vs the saved red_zone_offset.
1816         (pro_epilogue_adjust_stack): Adjust sp_offset.
1817         (ix86_adjust_stack_and_probe): Likewise.
1818         (ix86_expand_prologue): Set up, use, and validate the new
1819         frame_state_info members.  Use gen_frame_mem.
1820         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
1821         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
1822         new frame_state_info members.
1823         (ix86_emit_leave): Likewise.
1824         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
1825         out-of-range stack pointer offsets here.
1826         (ix86_emit_restore_sse_regs_using_mov): Likewise.
1827         (ix86_expand_epilogue): Use and validate the new frame_state_info
1828         members.  Break up and simplify the logic selecting the
1829         restore_regs_via_mov code path.  Ensure that there will be no
1830         out-of-range stack pointer offsets.
1831
1832         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
1833
1834         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
1835         argument name to reflect the expected tree; fix indentation.
1836         (ix86_asm_output_function_label): Output the entire 32-bit
1837         ms_hook here as bytes ...
1838         (ix86_expand_prologue): ... not here as insns.  Attach the
1839         unwind info for the ms_hook to a blockage insn.
1840         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
1841         (ix86_ms_bitfield_layout_p): Fix indentation.
1842         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
1843
1844         * config/i386/i386.c (ix86_using_red_zone): New.
1845         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
1846         ix86_expand_prologue, ix86_force_to_memory): Use it.
1847
1848         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
1849         saving the int registers.
1850
1851         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
1852         and DWARF2_UNWIND_INFO conditional compilation.
1853
1854 2010-08-04  Richard Henderson  <rth@redhat.com>
1855
1856         PR debug/45171
1857         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
1858         an is_naming_typedef_decl.
1859
1860 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
1861
1862         PR rtl-optimization/45162
1863         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
1864         * dce.c (word_dce_process_block): Likewise.
1865
1866 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
1867
1868         PR target/44583
1869         * config/ia64/constraints.md (Z): New.
1870         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
1871         (xfreg_or_signed_fp01_operand): New.
1872         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
1873         with fr_reg_or_signed_fp01_operand and constraint G with Z.
1874         (subsf3): Ditto.
1875         (*maddsf4): Ditto.
1876         (*msubsf4): Ditto.
1877         (adddf3): Ditto.
1878         (adddf3_trunc): Ditto.
1879         (subdf3): Ditto.
1880         (*subdf3_trunc): Ditto.
1881         (*madddf4): Ditto.
1882         (*madddf4_trunc): Ditto.
1883         (*msubdf4): Ditto.
1884         (*msubdf4_trunc): Ditto.
1885         (addxf3): Replace xfreg_or_fp01_operand with
1886         xfreg_or_signed_fp01_operand and constraint G with Z.
1887         (*addxf3_truncsf): Ditto.
1888         (*addxf3_truncdf): Ditto.
1889         (subxf3): Ditto.
1890         (*subxf3_truncsf): Ditto.
1891         (*subxf3_truncdf): Ditto.
1892         (*maddxf4): Ditto.
1893         (*maddxf4_truncsf): Ditto.
1894         (*maddxf4_truncdf): Ditto.
1895         (*msubxf4): Ditto.
1896         (*msubxf4_truncsf): Ditto.
1897         (*msubxf4_truncdf): Ditto.
1898
1899 2010-08-04  Richard Guenther  <rguenther@suse.de>
1900
1901         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
1902         if either alias-set is zero.
1903
1904 2010-08-04  Richard Guenther  <rguenther@suse.de>
1905
1906         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
1907         * tree-ssa-ccp.c: ... here.
1908         * tree-ssa-copy.c: ... and here.
1909         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
1910         value_range_t): Move ...
1911         * tree-vrp.c: ... here.
1912         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
1913         (substitute_and_fold): Adjust prototype.
1914         * tree-ssa-propagate.c (replace_uses_in): Adjust.
1915         (replace_phi_args_in): Likewise.
1916         (substitute_and_fold): Take callback to query lattice instead
1917         of pointer to lattice.  Replace SSA name defs with lattice
1918         values first.
1919         * tree-ssa-ccp.c (ccp_finalize): Adjust.
1920         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
1921         (get_value): New function.
1922         (fini_copy_prop): Adjust.
1923         * tree-vrp.c (vrp_finalize): Adjust.
1924
1925 2010-08-04  Richard Guenther  <rguenther@suse.de>
1926
1927         PR middle-end/45176
1928         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
1929         points-to set for original MEM_REF.
1930
1931 2010-08-04  Richard Guenther  <rguenther@suse.de>
1932
1933         * tree-ssa-ccp.c (get_constant_value): New function.
1934         (get_rhs_assign_op_for_ccp): Remove.
1935         (valueize_op): New function.
1936         (ccp_fold): Use get_constant_value and valueize_op.
1937         (fold_const_aggregate_ref): Likewise.
1938         (ccp_fold_stmt): Likewise.
1939         (visit_assignment): Simplify.
1940
1941 2010-08-04  Richard Guenther  <rguenther@suse.de>
1942
1943         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
1944         * double-int.h (double_int_ctz): Declare.
1945         * double-int.c (double_int_ctz): New function.
1946
1947 2010-08-04  Hariharan Sandanagobalane <hariharan@picochip.com>
1948
1949         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
1950         Define.
1951         picochip_expand_movmemhi : Expand movmem pattern.
1952         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
1953         Declare.
1954         * config/picochip/picochip.md (movmemhi) : New pattern.
1955
1956 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
1957
1958         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
1959
1960 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
1961
1962         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
1963         NEG as operand of a MULT by merging it with the other operand.
1964         * combine.c (make_compound_operation): Use trunc_int_for_mode when
1965         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
1966         MULT.
1967         * config/arm/constraints.md (M): Examine only 32 bits of a
1968         HOST_WIDE_INT.
1969         * config/arm/predicates.md (power_of_two_operand): Likewise.
1970
1971 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1972
1973         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
1974         non-NOTE insns.
1975
1976 2010-08-03  Jan Hubicka  <jh@suse.cz>
1977
1978         * ipa-split.c (struct split_point): Add split_part_set_retval.
1979         (find_retval): Forward declare.
1980         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
1981         (consider_split): Compute current->split_part_set_retval.
1982         (visit_bb): Do not look into return value.
1983         (split_function): Handle !split_part_set_retval
1984
1985 2010-08-03  Martin Jambor  <mjambor@suse.cz>
1986
1987         * tree-sra.c (completely_scalarize_record): New parameter REF, create
1988         its own access->expr intead of using build_ref_for_offset.
1989
1990 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
1991
1992         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
1993         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
1994         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
1995         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
1996         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
1997         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
1998         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
1999         DEFAULT_SWITCH_TAKES_ARG.
2000         * config/rx/rx.opt (-patch=): Remove option.
2001         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
2002         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
2003         * doc/invoke.texi (RX Options): Remove -patch=.
2004         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
2005         (option_map): Remove --profile-blocks, --quiet and --silent.
2006
2007 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
2008
2009         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
2010         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
2011         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
2012         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
2013         Update calls to ix86_expand_compare and ix86_expand_branch.
2014         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
2015         ix86_expand_compare.
2016         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
2017         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
2018         Make static.
2019         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
2020         and ix86_compare_op1.  Update calls to ix86_expand_compare.
2021         (ix86_expand_int_movcc): Ditto.
2022         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
2023         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
2024         (ix86_expand_setcc): Ditto.
2025         (ix86_expand_compare): Remove prototype.
2026         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
2027         ix86_compare_op0 and ix86_compare_op1.  Update calls
2028         to ix86_expand_branch to directly pass operands[1] and operands[2].
2029         (cbranchxf4): Ditto.
2030         (cbranch<MODEF:mode>4): Ditto.
2031         (cbranchcc4): Ditto.
2032         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
2033         Update calls to ix86_expand_setcc to directly pass operands[2] and
2034         operands[3].
2035         (cstorexf4): Ditto.
2036         (cstore<MODEF:mode>4): Ditto.
2037         (cstorecc4): Ditto.
2038
2039 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
2040
2041         PR target/45063
2042         * caller-save.c (save_call_clobbered_regs): Remove regs from
2043         hard_regs_saved when they are set.
2044
2045 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
2046
2047         PR target/41089
2048         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
2049         as volatile.
2050
2051 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
2052
2053         * common.opt (ftree-loop-distribute-patterns): New.
2054         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
2055         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
2056         at -O3.
2057         * tree-data-ref.c (stores_zero_from_loop): New.
2058         * tree-data-ref.h (stores_zero_from_loop): Declared.
2059         * tree-loop-distribution.c (tree_loop_distribution): Call
2060         stores_zero_from_loop.
2061         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
2062
2063 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
2064
2065         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
2066         into account.
2067
2068         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
2069         * config/arm/arm.c (thumb1_code): New variable.
2070         (arm_override_options): Set it.
2071         (thumb1_final_prescan_insn): Keep track of condition code status.
2072         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
2073         jumps that depend on them.
2074         * config/arm/arm.h (thumb1_code): Declare variable.
2075         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
2076         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
2077         thumb1_cc_mode.
2078         (CC_STATUS_INIT): New macro.
2079         * config/arm/constraints.md (Pd): New constraint.
2080         * config/arm/predicates.md (noov_comparison_operator): New predicate.
2081         * config/arm/arm.md (is_thumb1): New define_attr.
2082         (conds): Set default to "clob" when generating Thumb1 code.
2083         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
2084         code are set.  Use two-operand assembly syntax.
2085         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
2086         pattern.
2087         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
2088         codes are set.  Use two-operand assembly syntax.
2089         (zero_extendhisi splitter): Remove constraints.
2090         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
2091         thumb1_movsf_insn): Set conds attribute as appropriate.
2092         (cbranchsi4_insn): Use condition code status from struct
2093         machine_function to determine whether the comparison can be eliminated.
2094         Discourage the alternative using high registers.
2095         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
2096         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
2097         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
2098         subsi3_cbranch): Delete.
2099         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
2100         one subtract and one cbranch insn.
2101
2102         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
2103         thumb2_movdf_soft_insn): Delete patterns.
2104         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
2105         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
2106         (pool_range, neg_pool_range): Use them to define defaults.
2107         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
2108         and allow for TARGET_32BIT.
2109
2110         PR target/40457
2111         * config/arm/arm.h (arm_regs_in_sequence): Declare.
2112         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
2113         load_multiple_sequence, store_multiple_sequence): Delete
2114         declarations.
2115         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
2116         declarations.
2117         * config/arm/ldmstm.md: New file.
2118         * config/arm/arm.c (arm_regs_in_sequence): New array.
2119         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
2120         CHECK_REGS.  All callers changed.
2121         If SAVED_ORDER is nonnull, copy the computed order into it.
2122         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
2123         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
2124         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
2125         If SAVED_ORDER is nonnull, copy the computed order into it.
2126         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
2127         like REGS.  Handle Thumb mode.
2128         (arm_gen_load_multiple_1): New function, broken out of
2129         arm_gen_load_multiple.
2130         (arm_gen_store_multiple_1): New function, broken out of
2131         arm_gen_store_multiple.
2132         (arm_gen_multiple_op): New function, with code from
2133         arm_gen_load_multiple and arm_gen_store_multiple moved here.
2134         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
2135         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
2136         changed.
2137         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
2138         * config/arm/predicates.md (commutative_binary_operator): New.
2139         (load_multiple_operation, store_multiple_operation): Handle more
2140         variants of these patterns with different starting offsets.  Handle
2141         Thumb-1.
2142         * config/arm/arm.md: Include "ldmstm.md".
2143         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
2144         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
2145         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
2146         peepholes): Delete.
2147         * config/arm/ldmstm.md: New file.
2148         * config/arm/arm-ldmstm.ml: New file.
2149
2150         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
2151         if statement which adds extra costs to frame-related expressions.
2152
2153 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2154
2155         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
2156
2157 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
2158
2159         PR target/45142
2160         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
2161         alternative 2.
2162         (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
2163         split V4SI operands.
2164
2165 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
2166
2167         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
2168         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
2169         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
2170         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
2171
2172 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
2173
2174         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
2175         LOCAL_INCLUDE_DIR.
2176
2177 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
2178
2179         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
2180         used in the call to optab_for_tree_code.  Fix the second
2181         is_widening_mult_p call.  Check that both unwidened operands
2182         have the same sign.
2183
2184 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
2185
2186         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
2187
2188 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
2189
2190         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
2191
2192 2010-07-30  DJ Delorie  <dj@redhat.com>
2193
2194         * config/rx/predicates.md (rx_constshift_operand): New.
2195         * config/rx/rx.md (zs_cond): New.
2196         (cbranchsi4): Remove mode.
2197         (*cbranchsi4_<code>): Likewise.
2198         (*tstbranchsi4_<code>): New.
2199         (*tstbranchsi4r_<code>): New.
2200         (*tstbranchsi4m_eq): New.
2201         (*tstbranchsi4m_ne): New.
2202         (cbranchsf4): Remove mode.
2203         (*cbranchsf4_<code>): Likewise.
2204
2205 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
2206
2207         * rtlanal.c (simplify_subreg_regno): Don't treat
2208         HARD_FRAME_POINTER_REGNUM specially.
2209
2210 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
2211
2212         * common.opt (-G): Don't define option here.
2213         * config/g.opt: New.
2214         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
2215         rs6000/powerpc and score targets.
2216         * opts.c (common_handle_option): Don't handle -G here.
2217         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
2218         * config/frv/frv.c (frv_handle_option): Handle -G.
2219         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
2220         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
2221         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
2222         * config/mips/mips.c (mips_handle_option): Handle -G.
2223         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
2224         * config/score/score.c (score_handle_option): Handle -G.
2225
2226 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
2227
2228         * config/mmix/mmix.c: Include basic-block.h.
2229
2230 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
2231
2232         PR debug/45055
2233         PR rtl-optimization/45137
2234         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
2235         prototypes.
2236         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
2237         New functions.
2238         * combine.c (next_nonnote_nondebug_insn): Removed.
2239         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
2240         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
2241         * sched-deps.c (sched_analyze_insn): Likewise.
2242         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
2243         * rtlanal.c (canonicalize_condition): Likewise.
2244         * postreload.c (reload_combine_recognize_pattern): Likewise.
2245         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
2246
2247 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
2248
2249         * config/i386/i386.md (int_cond): Remove code iterator.
2250         (fp_cond): Ditto.
2251         (cbranch<mode>4): Use ordered_comparison_operator predicate
2252         for operator0.
2253         (cstore<mode>4): Ditto for operator1.
2254         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
2255         (add<mode>cc): ditto.
2256
2257 2010-07-30  Richard Guenther  <rguenther@suse.de>
2258
2259         PR middle-end/45141
2260         * expr.c (expand_expr_real_1): Check for not handled base address.
2261
2262 2010-07-30  Richard Guenther  <rguenther@suse.de>
2263
2264         * ipa-prop.c (ipa_modify_formal_parameters): Use
2265         build_distinct_type_copy.
2266
2267 2010-07-30  Anthony Green  <green@moxielogic.com>
2268
2269         * config/moxie/rtems.h: New file.
2270         * config.gcc: Add moxie-rtems support.
2271
2272 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
2273
2274         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
2275         df flags as in run_fast_df_dce.
2276
2277 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
2278
2279         Revert:
2280         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
2281
2282         * rtl.def (NOTE): Swap operands 4 and 5.
2283         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
2284         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
2285         Adjust accordingly.
2286         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
2287
2288 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
2289
2290         PR debug/45110
2291         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
2292         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
2293         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
2294         formal parameters.
2295         (gen_decl_die): Change return type to dw_die_ref, return what
2296         gen_formal_parameter_die returned.
2297
2298 2010-07-29  Martin Jambor  <mjambor@suse.cz>
2299
2300         * dbgcnt.def (eipa_sra): New counter.
2301         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
2302
2303 2010-07-29  Xinliang David Li  <davidxl@google.com>
2304
2305         PR bootstrap/45119
2306         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
2307         in revision 162652.
2308
2309 2010-07-29  Richard Guenther  <rguenther@suse.de>
2310
2311         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
2312         (TV_TREE_STORE_CCP): Likewise.
2313         (TV_TREE_REDPHI): Likewise.
2314
2315 2010-07-29  Richard Guenther  <rguenther@suse.de>
2316
2317         * double-int.h (double_int_and_not): New function.
2318         * combine.c (try_combine): Use it.
2319         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
2320
2321 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
2322
2323         PR rtl-optimization/42575
2324         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
2325         Argument AU removed.  All callers changed.  Ignore artificial refs.
2326         Use return value of df_word_lr_simulate_defs to decide whether an insn
2327         is necessary.
2328         (fast_dce): Rename arg to WORD_LEVEL.
2329         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
2330         static.
2331         (pass_fast_rtl_byte_dce): Delete.
2332         * dce.h (run_word_dce): Declare.
2333         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
2334         All callers changed.  Simplify code to only deal with two-word regs.
2335         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
2336         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
2337         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
2338         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
2339         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
2340         (df_word_lr_mark_ref): Declare.
2341         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
2342         df_word_lr_simulate_uses): Declare or rename from byte variants.
2343         (df_byte_lr_simulate_artificial_refs_at_top,
2344         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
2345         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
2346         declarations.
2347         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
2348         (enum df_mm): Delete.
2349         * df-byte-scan.c: Delete file.
2350         * df-problems.c (df_word_lr_problem_data): Renamed from
2351         df_byte_lr_problem_data, all members deleted except for
2352         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
2353         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
2354         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
2355         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
2356         df_byte_lr_confluence_0): Delete functions.
2357         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
2358         callers changed.
2359         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
2360         Don't initialize members that were deleted, don't try to discover data
2361         about registers.  Ignore hard regs.
2362         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
2363         (df_word_lr_mark_ref): New function.
2364         (df_word_lr_bb_local_compute): Renamed from
2365         df_byte_bb_lr_local_compute; all callers changed.  Use
2366         df_word_lr_mark_ref.  Assert that artificial refs don't include
2367         pseudos.  Ignore hard registers.
2368         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
2369         Assert that exit block uses don't contain pseudos.
2370         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
2371         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
2372         callers changed.  Ignore hard regs.
2373         (df_word_lr_transfer_function): Renamed from
2374         df_byte_lr_transfer_function; all callers changed.
2375         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
2376         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
2377         changed.
2378         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
2379         callers changed.
2380         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
2381         confluence operator 0 set to NULL.
2382         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
2383         callers changed.
2384         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
2385         Return bool, true if bitmap changed or insn otherwise necessary.
2386         All callers changed.  Simplify using df_word_lr_mark_ref.
2387         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
2388         all callers changed.  Simplify using df_word_lr_mark_ref.
2389         * lower-subreg.c: Include "dce.h"
2390         (decompose_multiword_subregs): Call run_word_dce if df available.
2391         * Makefile.in (lower-subreg.o): Adjust dependencies.
2392         (df-byte-scan.o): Delete.
2393         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
2394
2395 2010-07-29  Richard Guenther  <rguenther@suse.de>
2396
2397         * tree.c (build_vector): Assert that the vector constant
2398         has enough elements.
2399         (build_vector_from_ctor): Pad with trailing zeros.
2400
2401 2010-07-29  Richard Guenther  <rguenther@suse.de>
2402
2403         PR tree-optimization/45120
2404         * tree-ssa-structalias.c (get_constraint_for_component_ref):
2405         Handle offset in DEREFs properly.
2406         (get_constraint_for_1): Handle MEM_REF offset properly.
2407
2408 2010-07-29  Richard Guenther  <rguenther@suse.de>
2409
2410         PR middle-end/45034
2411         * convert.c (convert_to_integer): Always use an unsigned
2412         type for narrowed negate and bitwise not.
2413
2414 2010-07-29  Ira Rosen  <irar@il.ibm.com>
2415
2416         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
2417         to outer loop when creating reduction epilogue for double reduction,
2418         and switch back to the inner loop when updating the phi nodes.
2419         Update uses of outer loop exit phi nodes in double reduction (instead
2420         of uses of reduction).
2421
2422 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
2423
2424         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
2425         popcount on power7 and parity on power6 systems.
2426         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
2427         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
2428         instructions.
2429
2430         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
2431         (UNSPEC_PARITY): Ditto.
2432         (SFDF): New iterator for SF/DF.
2433         (rreg2): New mode attribute for floating register constraint.
2434         (TARGET_FLOAT): New mode attribute for whether single/double float
2435         is supported.
2436         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
2437         pattern.
2438         (parity<mode>2_cmpb): New insn for parity on power6 and newer
2439         machines.
2440         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
2441         pattern.  Add support for fcpsgn instruction added in power6.
2442         (copysignsf3): Delete.
2443         (copysigndf3): Delete.
2444         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
2445         instead of if_then_else in RTL to avoid problems with -0.
2446
2447         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
2448         of if_then_else to mirror scalar code.
2449         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
2450         rs6000.md.
2451
2452         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
2453         instead of if_then_else.
2454
2455 2010-07-28  Xinliang David Li  <davidxl@google.com>
2456
2457         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
2458         (dump_cand): Dump var_before/after.
2459         (htab_inv_expr_eq): New function.
2460         (htab_inv_expr_hash): New function.
2461         (tree_ssa_iv_optimize_init): Support pseudo invariants.
2462         (add_candidate_1): consider base type precision.
2463         (set_use_iv_cost): New parameter.
2464         (adjust_setup_cost): Use profile information.
2465         (get_address_cost): Do not hard code width in computing address
2466         offset limits.
2467         (compare_aff_trees): New function.
2468         (get_loop_invariant_expr_id): New function.
2469         (get_computation_cost_at): New parameter and use profile information.
2470         (get_computation_cost): New parameter.
2471         (determine_use_iv_cost_generic): Pass new parameter.
2472         (determine_use_iv_cost_address): Ditto.
2473         (determine_use_iv_cost_condition): Ditto.
2474         (autoinc_possible_for_pair): Ditto.
2475         (determine_use_iv_costs): More dumps.
2476         (iv_ca_get_num_inv_exprs): New function.
2477         (iv_ca_recount_cost): Consider loop invariants in register pressure
2478         cost.
2479         (iv_ca_add_use): New parameter.
2480         (iv_ca_dump): Better dumping.
2481         (iv_ca_extend): New parameter.
2482         (try_add_cand_for): Attempt to get better partial solution.
2483         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
2484         (create_new-ivs): More dumps.
2485         (rewrite_use_compare): Ditto.
2486         (free_loop_data): More cleanup.
2487         (treee_ssa_iv_optimize_finalize): Ditto.
2488
2489 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
2490
2491         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
2492         * config/i386/i386.c (ix86_profile_before_prologue): New.
2493         (override_options): Add special handling for -mfentry.
2494         (ix86_function_regparm): Likewise.
2495         (ix86_function_sseregparm): Likewise.
2496         (ix86_frame_pointer_required): Likewise.
2497         (ix86_expand_prologue): Check for ms_hook_prologue.
2498         (x86_function_profiler): Adjust mcount output.
2499         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
2500         * config/i386/i386.opt (mfentry): New.
2501         * doc/invoke.texi (mfentry): Add documentation.
2502         * doc/tm.texi: Regenerated..
2503         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
2504         * final.c (final_start_function): Replace macro
2505         PROFILE_BEFORE_PROLOGUE by target hook.
2506         * function.c (thread_prologue_and_epilogue_insns): Likewise.
2507         * target.def (profile_before_prologue): New hook.
2508         * targhooks.c (default_profile_before_prologue): New.
2509         * targhooks.h (default_profile_before_prologue): New.
2510
2511 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
2512
2513         PR debug/45105
2514         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
2515
2516         PR debug/45103
2517         * dwarf2out.c (dwarf2out_var_location): Always consider
2518         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
2519
2520 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
2521
2522         PR rtl-optimization/45107
2523         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
2524
2525 2010-07-28  Richard Guenther  <rguenther@suse.de>
2526
2527         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
2528         (set_lattice_value): Do not query an old default value.
2529         (get_value_for_expr): New function.  Properly canonicalize
2530         float values.
2531         (ccp_visit_phi_node): Use it.
2532
2533 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
2534
2535         * config/arm/arm.c (arm_pcs_default): Remove static.
2536         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
2537         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
2538         (arm_pcs_default): Declare.
2539
2540 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
2541
2542         * config/rs6000/rs6000.c (rs6000_override_options):
2543         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
2544         ... to darwin_rs6000_override_options.
2545         (rs6000_return_in_memory): Update preceding comment for darwin
2546         64 bit ABI.  Use TARGET_MACHO inline.
2547         (rs6000_darwin64_struct_check_p): New.
2548         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
2549         (function_arg): Likewise.
2550         (rs6000_arg_partial_bytes): Likewise.
2551         (rs6000_function_value): Likewise.
2552
2553 2010-07-28  Andi Kleen <ak@linux.intel.com>
2554
2555         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
2556
2557 2010-07-28  Richard Guenther  <rguenther@suse.de>
2558
2559         PR middle-end/44903
2560         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
2561         targets try harder to not generate unaligned accesses.
2562
2563 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
2564
2565         PR rtl-optimization/45101
2566         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
2567         for gcse-las.
2568
2569 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
2570
2571         PR tree-optimization/44885
2572         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
2573         with non-aliased component.
2574
2575 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
2576
2577         * config/darwin-driver.c (SWITCH_TAKES_ARG,
2578         WORD_SWITCH_TAKES_ARG): Remove.
2579         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
2580         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
2581         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
2582         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
2583         definitions from gcc.c.
2584         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
2585         defaults.h.
2586         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
2587         Move to defaults.h.
2588         * opts-common.c: Include tm.h.
2589         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
2590         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
2591         Handle more than one argument.  Set canonical_option_num_elements.
2592         (decode_cmdline_options_to_array): Set
2593         canonical_option_num_elements and trailing elements of
2594         canonical_option.
2595         * opts.h (struct cl_decoded_option): Allow four elements in
2596         canonical_option.  Add field canonical_option_num_elements.
2597         * Makefile.in (opts-common.o): Update dependencies.
2598
2599 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
2600
2601         PR middle-end/44790
2602         PR middle-end/44993
2603         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
2604         sure the base has address_mode before adding the offset.
2605
2606 2010-07-27  Xinliang David Li <davidxl@google.com>
2607
2608         * tree-flow.h (create_mem_ref): Add one new parameter.
2609         * tree-ssa-address.c (create_mem_ref): New parameter.
2610         (addr_to_parts): Ditto.
2611         (move_variant_to_index): New function.
2612         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
2613
2614 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
2615
2616         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
2617         4 and 5.
2618         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
2619         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
2620         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
2621         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
2622         CODE_LABELs and NOTEs.
2623         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
2624         * combine.c (try_combine): Likewise.
2625         * ira.c (setup_prohibited_mode_move_regs): Likewise.
2626         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
2627
2628 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
2629
2630         * coretypes.h (struct cl_option_handlers): Declare.
2631         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
2632         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
2633         * langhooks-def.h (lhd_handle_option): Declare.
2634         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
2635         * langhooks.c (lhd_handle_option): New.
2636         * langhooks.h (struct lang_hooks): Update prototype and return
2637         value type of handle_option hook.
2638         * optc-gen.awk: Generate target_flags_explicit definition for the
2639         driver.
2640         * opts-common.c: Include diagnostic.h.
2641         (handle_option): Move from opts.c.  Update prototype and return
2642         value type.  Use handlers structure.
2643         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
2644         handlers structure.
2645         (set_option): Move from opts.c.
2646         * opts.c (common_handle_option): Update prototype and return value
2647         type.  Update calls to handle_option and enable_warning_as_error.
2648         (unknown_option_callback, post_handling_callback,
2649         lang_handle_option, target_handle_option): New.
2650         (handle_option, read_cmdline_option): Move to opts-common.c.
2651         (read_cmdline_options): Update prototype.  Update call to
2652         read_cmdline_option.
2653         (decode_options): Initialize and use handlers structure.
2654         (set_option): Move to opts-common.c.
2655         (enable_warning_as_error): Update prototype.  Update call to
2656         handle_option.
2657         * opts.h (struct cl_option_handler_func, struct
2658         cl_option_handlers): New.
2659         (handle_option, enable_warning_as_error): Update prototypes.
2660         (read_cmdline_option): Declare.
2661         * Makefile.in (opts-common.o): Update dependencies.
2662
2663 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2664
2665         * config/arm/arm.c (params.h): Include.
2666         (arm_override_options): Tune gcse-unrestricted-cost.
2667         * config/arm/t-arm (arm.o): Define dependencies.
2668
2669 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2670
2671         PR target/42495
2672         PR middle-end/42574
2673         * basic-block.h (get_dominated_to_depth): Declare.
2674         * dominance.c (get_dominated_to_depth): New function, use
2675         get_all_dominated_blocks as a base.
2676         (get_all_dominated_blocks): Use get_dominated_to_depth.
2677
2678         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
2679         (hoist_exprs): Remove.
2680         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
2681         (compute_code_hoist_vbeinout): Add debug print outs.
2682         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
2683
2684         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
2685         quadratic behavior.
2686         * params.h (MAX_HOIST_DEPTH): New macro.
2687         * doc/invoke.texi (max-hoist-depth): Document.
2688
2689 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2690
2691         PR rtl-optimization/40956
2692         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
2693         constants.
2694
2695 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2696
2697         PR target/42495
2698         PR middle-end/42574
2699         * config/arm/arm.c (legitimize_pic_address): Use
2700         gen_calculate_pic_address pattern to emit calculation of PIC address.
2701         (will_be_in_index_register): New function.
2702         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
2703         (thumb1_legitimate_address_p): Use it provided !strict_p.
2704         * config/arm/arm.md (calculate_pic_address): New expand and split.
2705
2706 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2707
2708         PR target/42495
2709         PR middle-end/42574
2710         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
2711         * config/arm/arm.md (define_split "J", define_split "K"): Make
2712         IRA/reload friendly.
2713
2714 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2715
2716         * gcse.c (insert_insn_end_basic_block): Update signature, remove
2717         unused checks.
2718         (pre_edge_insert, hoist_code): Update.
2719
2720 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2721
2722         PR target/42495
2723         PR middle-end/42574
2724         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
2725
2726 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2727
2728         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
2729
2730 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2731
2732         PR rtl-optimization/40956
2733         PR target/42495
2734         PR middle-end/42574
2735         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
2736         for hoisting.
2737         (hoist_code): Count occurences in current block too.
2738
2739 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2740
2741         * gcse.c (struct expr:max_distance): New field.
2742         (doing_code_hoisting_p): New static variable.
2743         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
2744         simple expressions, don't change behavior for PRE.  Set max_distance.
2745         (insert_expr_in_table): Set new max_distance field.
2746         (hash_scan_set): Update.
2747         (hoist_expr_reaches_here_p): Stop search after max_distance
2748         instructions.
2749         (find_occr_in_bb): New static function.  Use it in ...
2750         (hoist_code): Calculate sizes of basic block before any changes are
2751         done.  Pass max_distance to hoist_expr_reaches_here_p.
2752         (one_code_hoisting_pass): Set doing_code_hoisting_p.
2753
2754         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
2755         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
2756         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
2757         macros.
2758         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
2759         Document.
2760
2761 2010-07-27  Jeff Law  <law@redhat.com>
2762             Maxim Kuvyrkov  <maxim@codesourcery.com>
2763
2764         * gcse.c (compute_transpout, transpout): Remove, move logic
2765         to prune_expressions.
2766         (compute_pre_data): Move pruning of trapping expressions ...
2767         (prune_expressions): ... here.  New static function.
2768         (compute_code_hoist_data): Use it.
2769         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
2770
2771 2010-07-27  Xinliang David Li  <davidxl@google.com>
2772
2773         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
2774         (rewrite_use_address): Adjust iv update position when needed.
2775
2776 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2777
2778         * dbgcnt.def (hoist_insn): New debug counter.
2779         * gcse.c (hoist_code): Use it.
2780
2781 2010-07-27  Xinliang David Li  <davidxl@google.com>
2782
2783         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
2784         (niter_for_single_dom_exit): Passes additional parameter.
2785         (iv_period): Fix comments.
2786         (may_eliminate_iv): Handles multiple exit loops properly.
2787         (free_tree_niter_desc): New function.
2788         (free_loop_data): Frees up loop iteration descriptors.
2789
2790 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
2791
2792         PR target/44542
2793         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
2794         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
2795         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
2796         (expand_one_var): Don't consider DECL_ALIGN for variables for
2797         which expand_one_stack_var_at has been already called.
2798
2799         PR testsuite/44701
2800         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
2801         constraints on IA-64.
2802
2803 2010-07-27  Jie Zhang  <jie@codesourcery.com>
2804
2805         PR target/44290
2806         Revert:
2807         2010-07-23  Jie Zhang  <jie@codesourcery.com>
2808
2809         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
2810         false if ! tree_versionable_function_p.
2811
2812 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
2813
2814         * dwarf2out.c (add_data_member_location_attribute): Use
2815         add_AT_unsigned instead of add_AT_int if offset is non-negative.
2816
2817 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
2818
2819         * postreload.c (try_replace_in_use): New static function.
2820         (reload_combine_recognize_const_pattern): Use it here.  Allow
2821         substituting into a final add insn, and substituting into a memory
2822         reference in an insn that sets the reg.
2823
2824 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
2825
2826         * common.opt (o): Add MissingArgError.
2827         * doc/options.texi (MissingArgError): Document.
2828         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
2829         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
2830         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2831         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
2832         * langhooks.h (struct lang_hooks): Remove missing_argument.
2833         * optc-gen.awk: Handle MissingArgError and output new structure
2834         field initializers.
2835         * opts.c (read_cmdline_option): Use missing_argument_error field
2836         instead of missing_argument langhook.
2837         * opts.h (struct cl_option): Add missing_argument_error field.
2838         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
2839
2840 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
2841
2842         PR target/29090
2843         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
2844         Darwin64 ABI, for zero-sized objects.
2845
2846 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
2847
2848         PR target/35491
2849         PR target/29090
2850
2851         Merge from Apple local 4.2.1.
2852         2005-05-11  Stan Shebs  <shebs@apple.com>
2853         Fix 64-bit varargs for Darwin (Radar 4028089).
2854         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
2855         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
2856         Add argument, add case for 8-byte register half-filled with a float.
2857         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
2858         single-precision floats specially.
2859
2860 2010-07-27  Ira Rosen  <irar@il.ibm.com>
2861
2862         PR tree-optimization/44152
2863         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
2864         complex numbers for further check.
2865         (vect_supported_load_permutation_p): Check nodes with
2866         complex numbers.
2867
2868 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
2869
2870         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
2871         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
2872         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
2873         (LANG_HOOKS_INITIALIZER): Add new hooks.
2874         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
2875         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
2876         and complain_wrong_lang_p.  Update init_options prototype.
2877         * c-objc-common.c (c_initialize_diagnostics): First call
2878         c_common_initialize_diagnostics.
2879         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
2880         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
2881         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
2882         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
2883         (hook_uint_void_0): New.
2884         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
2885         (hook_uint_void_0): New.
2886         * opts-common.c (decode_cmdline_option,
2887         decode_cmdline_options_to_array): Also fill in canonical_option field.
2888         * opts.c (complain_wrong_lang): Use langhook to determine whether
2889         to complain instead of special-casing LTO.
2890         (decode_options): Separate lang_mask determination with
2891         option_lang_mask hook from call of init_options hook.
2892         * opts.h (struct cl_decoded_option): Add canonical_option.
2893
2894 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
2895
2896         PR tree-optimization/45083
2897         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
2898
2899 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
2900
2901         * postreload.c (reload_combine_recognize_const_pattern): Move test
2902         for limiting the insn movement to the right scope.
2903
2904         PR rtl-optimization/45051
2905         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
2906         than reg_mentioned_p.
2907
2908 2010-07-26  Richard Henderson  <rth@redhat.com>
2909
2910         PR target/44132
2911         * tree-emutls.c: New file.
2912         * Makefile.in (OBJS-common): Add it.
2913         * tree-pass.h (pass_ipa_lower_emutls): Declare.
2914         * passes.c (init_optimization_passes): Add it.
2915
2916         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
2917         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
2918         * expr.c (emutls_var_address): Delete.
2919         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
2920         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
2921         (emutls_finish): Delete.
2922         * toplev.c (compile_file): Don't call it.
2923         * tree.h (emutls_decl): Delete.
2924         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
2925         (emutls_finish, emutls_finalize_control_var): Delete.
2926         (emutls_object_type): Move to tree-emutls.c.
2927         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
2928         default_emutls_var_fields, get_emutls_object_type,
2929         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
2930         default_emutls_var_init): Likewise.
2931         (get_variable_section): Don't special case emutls.
2932         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
2933         default_elf_select_section, default_unique_section,
2934         default_encode_section_info): Likewise.
2935         * varpool.c (decide_is_variable_needed): Likewise.
2936         * gimple-iterator.c (update_call_edge_frequencies): New
2937         (gsi_insert_on_edge_immediate): Use it.
2938         (gsi_insert_seq_on_edge_immediate): Likewise.
2939         (gsi_commit_one_edge_insert): Likewise.
2940
2941         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
2942         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
2943         (x86_64_elf_unique_section): Likewise.
2944
2945 2010-07-26  Jan Hubicka  <jh@suse.cz>
2946
2947         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
2948         GTY((skip)).
2949
2950 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
2951
2952         * target.def (output_source_filename): New hook.
2953         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
2954         * doc/tm.texi: Regenerate.
2955         * toplev.c (output_file_directive) Remove function.
2956         * toplev.h (output_file_directive) Remove.
2957         * output.h (default_asm_output_source_filename,
2958         output_file_directive): Declare.
2959         * varasm.h (default_asm_output_source_filename,
2960         output_file_directive): New functions.
2961
2962         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
2963         * config/mips/mips-protos.h (mips_output_filename): Remove.
2964         * config/mips/mips.c (mips_output_filename): Make Static.
2965         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
2966
2967 2010-07-26  Richard Guenther  <rguenther@suse.de>
2968
2969         PR tree-optimization/43784
2970         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
2971         if the destination is used by the call.
2972
2973 2010-07-26  Richard Guenther  <rguenther@suse.de>
2974
2975         PR middle-end/45073
2976         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
2977         SSA updating on being in SSA form.
2978
2979 2010-07-26  Richard Guenther  <rguenther@suse.de>
2980
2981         PR middle-end/45056
2982         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
2983
2984 2010-07-26  Richard Guenther  <rguenther@suse.de>
2985
2986         PR tree-optimization/45071
2987         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
2988         adjust op->opcode.
2989
2990 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
2991
2992         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
2993         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
2994         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
2995         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
2996         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
2997         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
2998         save_r31, return_r31, save_interrupt, return_interrupt,
2999         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
3000         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
3001         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
3002         new ABI requirements.
3003         (save_r6_r9, L_callt_save_r6_r9): Remove.
3004         * config/v850/predicates.md (even_reg_operand, disp23_operand,
3005         const_float_1_operand const_float_0_operand): New Predicates.
3006         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
3007         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
3008         * config/v850/t-v850: Update multilibs for new target variants.
3009         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
3010         * config/v850/t-v850e: Likewise.
3011         * config/v850/v850.c (v850_issue_rate): New.
3012         (v850_strict_argument_naming): New.
3013         (function_arg): Modify to generate a different ABI.
3014         (print_operand): Update case 'z' to support float modes.
3015         (output_move_single): Modify to generate appropriate and better
3016         assembly.
3017         (v850_float_z_comparison_operator, v850_select_cc_mode,
3018         v850_float_nz_comparison_operator,  v850_gen_float_compare,
3019         v850_gen_compare): New functions to support comparison of float values.
3020         (ep_memory_offset): Add support for V850E2 targets.
3021         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
3022         (INTERRUPT_REGPARM_NUM): Remove.
3023         (compute_register_save_size): Add extra case to save/restore long call.
3024         (use_prolog_function): New function to support prologue.
3025         (expand_prologue): Add support for V850E2 targets and modified
3026         as per the current ABI requirements.
3027         (expand_epilogue): Likewise.
3028         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
3029         (construct_save_jarl): Likewise.
3030         (construct_dispose_instruction): Update as per the current ABI
3031         requirements.
3032         (construct_prepare_instruction): Likewise.
3033         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
3034         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
3035         (CPP_SPEC): Updated to support v850e2 targets.
3036         (STRICT_ALIGNMENT): Modified.
3037         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
3038         (FIXED_REGISTERS): Likewise.
3039         (CALL_USED_REGISTERS): Likewise.
3040         (CONDITIONAL_REGISTER_USAGE): Updated.
3041         (HARD_REGNO_MODE_OK): Updated.
3042         (reg_class): Updated to add even registers.
3043         (REG_CLASS_NAMES): Likewise.
3044         (REG_CLASS_CONTENTS): Likewise.
3045         (REGNO_REG_CLASS): Updated for CC registers.
3046         (REG_CLASS_FROM_LETTER): Added support for even registers.
3047         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
3048         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
3049         ARG_POINTER_REGNUM): Updated.
3050         (FUNCTION_ARG_ADVANCE): Define.
3051         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
3052         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
3053         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
3054         (GO_IF_LEGITIMATE_ADDRESS): Updated.
3055         (SELECT_CC_MODE): Define.
3056         (REGISTER_NAMES): Updated to add psw and fcc registers.
3057         (ADDITIONAL_REGISTER_NAMES): Updated.
3058         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
3059         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
3060         * config/v850/v850.md (define_constants): Define new constants.
3061         (type): Update store,bit1,macc,div,fpu and single attributes.
3062         (cpu): New attribute.
3063         (cc): Add set_z attribute.
3064         (unsign23byte_load, sign23byte_load, unsign23hword_load,
3065         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
3066         23word_store): New instructions for 23-bit displacement load and store.
3067         (movqi_internal, movhi_internal): Update the attributes.
3068         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
3069         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
3070         the attributes.
3071         (v850_tst1): Modified using CC_REGNUM.
3072         (tstsi): Remove.
3073         (cmpsi): Modified as define_expand from define_insn.
3074         (cmpsi_insn, cmpsf, cmpdf): New instructions.
3075         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
3076         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
3077         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
3078         one_cmplsi2): Clobber the CC_REGNUM register.
3079         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
3080         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
3081         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
3082         (setf_insn, set_z_insn, set_nz_insn): New instructions for
3083         v850e2v3 target.
3084         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
3085         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
3086         targets.
3087         (sasf_1, sasf_2): Remove.
3088         (sasf): New instruction.
3089         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
3090         targets. CC_REGNUM register is clobbered and attributes are
3091         updated.
3092         (branch_z_normal, branch_z_invert, branch_nz_normal,
3093         branch_nz_invert): New branch related instructions.
3094         (jump): Updated the attributes.
3095         (switch): Update to support new targets. CC_REGNUM register is
3096         clobbered and attributes are updated.
3097         (call_internal_short, call_internal_long, call_value_internal_short,
3098         call_value_internal_long): Updated the attributes.
3099         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
3100         clobbered and attributes are updated.
3101         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
3102         Update to support new targets. CC_REGNUM register is clobbered.
3103         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
3104         instructions.
3105         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
3106         are updated.
3107         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
3108         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
3109         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
3110         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
3111         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
3112         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
3113         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
3114         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
3115         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
3116         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
3117         point instructions defined for V850e2v3 target.
3118         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
3119         Add support for V850E2 targets and CC_REGNUM register is clobbered.
3120         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
3121         support for new targets.
3122         * config/v850/v850-modes.def: New file.
3123         * config/v850/v850.opt(mstrict-align): Remove.
3124         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
3125         mv850e2v3): New command line options for V850.
3126         * config.gcc: Update the newly added files.
3127         * doc/invoke.texi: Update the newly added command line options for
3128         V850 target.
3129
3130 2010-07-26  Richard Guenther  <rguenther@suse.de>
3131
3132         PR tree-optimization/45052
3133         * ipa-pure-const.c (check_stmt): Check volatileness.
3134
3135 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
3136
3137         PR target/44707
3138         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
3139         * config/sparc/sparc.c: Include reload.h.
3140         (legitimize_tls_address): Rename into...
3141         (sparc_legitimize_tls_address): ...this.
3142         (legitimize_pic_address): Rename into...
3143         (sparc_legitimize_pic_address): ...this.
3144         (sparc_expand_move): Adjust to above renaming.
3145         (sparc_tls_referenced_p): Likewise.
3146         (sparc_legitimize_tls_address): Likewise.
3147         (sparc_legitimize_pic_address): Likewise.
3148         (sparc_legitimize_address): Likewise.
3149         (sparc_output_mi_thunk): Likewise.
3150         (sparc_legitimize_reload_address): New global function.  Recognize
3151         (lo_sum (high ...) ...) patterns generated by earlier passes.
3152         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
3153
3154 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
3155
3156         PR target/44484
3157         * config/sparc/predicates.md (memory_reg_operand): Delete.
3158         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
3159         (*sync_compare_and_swap): Encode the address form in the pattern.
3160         (*sync_compare_and_swapdi_v8plus): Likewise.
3161
3162 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
3163
3164         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
3165         Streamline paragraph on compatibility with the system compiler.
3166
3167 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
3168
3169         PR middle-end/45035
3170         * alias.c (true_dependence_1): Fix thinko in merge of old
3171         true_dependence and canon_true_dependence.
3172
3173 2010-07-23  Jan Hubicka  <jh@suse.cz>
3174
3175         * lto-streamer-out.c (write_symbol): Fix visibilities of external
3176         references.
3177
3178 2010-07-23  Le-Chun Wu  <lcwu@google.com>
3179
3180         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
3181         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
3182         and an unnecessary assignment.
3183         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
3184         self-assign warning.
3185         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
3186         unnecessary self-init.
3187
3188 2010-07-23  Richard Guenther  <rguenther@suse.de>
3189
3190         PR lto/43071
3191         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
3192         for -flto and -fwhopr.
3193
3194 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
3195
3196         PR target/41943
3197         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
3198         (stmp-int-hdrs): Prefix/postfix headers by include_next.
3199         * config.gcc (user_headers_inc_next_pre): New.
3200         (user_headers_inc_next_post): Likewise.
3201         (*-w64-mingw*): Use for float.h post-fixing, and for
3202         stddef.h/stdarg.h pre-fixing by include_next.
3203         * configure.ac (user_headers_inc_next_post): New.
3204         (user_headers_inc_next_pre): New.
3205         * configure: Regenerated.
3206
3207 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3208
3209         * configure.ac: Don't disable TLS on Solaris 8/9 by default
3210         Set tga_func for Solaris 2/x86 resp. SPARC.
3211         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
3212         (LIB_THREAD_LDFLAGS_SPEC): Define.
3213         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
3214         * configure: Regenerate.
3215         * config.in: Regenerate.
3216         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
3217         -pthread, -threads, LIB_TLS_SPEC with -pthread.
3218         * doc/install.texi (Specific, *-*-solaris2*): Document use of
3219         alternate thread libraries on Solaris 8.
3220         Document TLS patch requirements.
3221         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
3222         Document tls.
3223
3224         PR target/18788
3225         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
3226         -shared.
3227
3228 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
3229
3230         * tree.h (struct tree_base): Add nameless_flag bitfield.
3231         (TYPE_NAMELESS, DECL_NAMELESS): Define.
3232         * omp-low.c (create_omp_child_function, scan_omp_parallel,
3233         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
3234         DECL_ARTIFICIAL where needed.
3235         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
3236         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
3237         has DECL_NAMELESS set.
3238
3239 2010-07-23  Martin Jambor  <mjambor@suse.cz>
3240
3241         PR tree-optimization/44915
3242         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
3243         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
3244         (analyze_function): Likewise.
3245
3246 2010-07-23  Martin Jambor  <mjambor@suse.cz>
3247
3248         PR tree-optimization/44914
3249         * tree-sra.c (sra_modify_function_body): Return true if CFG was
3250         changed, add purging dead eh edges.
3251         (ipa_sra_modify_function_body): Return true if CFG was changed,
3252         simplify purging dead eh edges.
3253         (modify_function): Return true if CFG was changed.
3254         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
3255         was changed.
3256         (ipa_early_sra): Likewise.
3257
3258 2010-07-23  Jie Zhang  <jie@codesourcery.com>
3259
3260         PR target/44290
3261         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
3262         if "naked".
3263         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
3264         false if ! tree_versionable_function_p.
3265
3266 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
3267
3268         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
3269         * ipa-pure-const.c (special_builtlin_state): Remove
3270         BUILT_IN_ARGS_INFO case.
3271         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
3272         * builtins.c (expand_builtin): Likewise.
3273         (expand_builtin_args_info): Remove.
3274         * doc/tm.texi (__builtin_args_info): Remove.
3275         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
3276         * doc/tm.text.in: Likewise.
3277
3278 2010-07-23  Richard Guenther  <rguenther@suse.de>
3279
3280         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
3281         (lto_symtab_merge_decls_2): Likewise.
3282         * tree-ssa.c (useless_type_conversion_p): Likewise.
3283         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3284         * gimple.c (gtc_visited2, gtc_ob2): Remove.
3285         (struct type_pair_d): Make same_p an array indexed by mode.
3286         Update comment.
3287         (lookup_type_pair): Update initialization.
3288         (struct sccs): Adjust same_p type.
3289         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
3290         Adjust.
3291         (print_gimple_types_stats): Likewise.
3292         * gimple.h (enum gtc_mode): New.
3293         (gimple_types_compatible_p): Adjust prototype.
3294
3295 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
3296
3297         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
3298         again after processing insn.
3299
3300 2010-07-23  Jie Zhang  <jie@codesourcery.com>
3301
3302         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
3303         proper words when !tree_versionable_function_p.
3304
3305 2010-07-23  Richard Guenther  <rguenther@suse.de>
3306
3307         PR tree-optimization/45037
3308         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
3309
3310 2010-07-23  Jie Zhang  <jie@codesourcery.com>
3311
3312         * doc/extend.texi: Remove IP2K from the description of naked attribute.
3313         Add MCORE instead.
3314
3315 2010-07-10  Andi Kleen  <ak@linux.intel.com>
3316
3317         PR lto/44992
3318         * lto-opts.c (lto_write_options): Add NULL file_data argument to
3319         lto_get_section_name.
3320         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
3321         * lto-streamer-out.c (produce_asm): Likewise.
3322         (copy_function): Likewise.
3323         (produce_symtab): Likewise.
3324         (produce_asm_for_decls): Likewise.
3325         * lto-streamer.c (lto_get_section_name): Add file_data argument.
3326         Rewrite to add random postfix to LTO sections.
3327         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
3328         (lto_get_section_name): Add file_data argument to prototype.
3329
3330 2010-07-10  Andi Kleen  <ak@linux.intel.com>
3331
3332         * lto-section-in.c (lto_section_name): Synchronize names
3333         with lto_get_section_name.
3334
3335 2010-07-10  Andi Kleen  <ak@linux.intel.com>
3336
3337         * lto-opts.c (lto_read_file_options): Check for missing section.
3338
3339 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
3340
3341         * ira.c (check_allocation): Correctly handle the case where an allocno
3342         with two objects was allocated to a single reg.
3343
3344 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
3345
3346         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
3347         (is_widening_mult_p): Likewise.
3348         (convert_to_widen): Use them.
3349         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
3350         well as integer ones.
3351
3352 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
3353
3354         * alias.c (true_dependence_1): New function, merged version of
3355         true_dependence and canon_true_dependence.
3356         (true_dependence): Simplify.
3357         (canon_true_dependence): Simplify.
3358
3359 2010-07-22  Richard Henderson  <rth@redhat.com>
3360
3361         PR target/45027
3362         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
3363         of V4SFmode for the SSE saves; increase stack alignment if needed.
3364         (ix86_gimplify_va_arg): Don't increase stack alignment here.
3365
3366 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
3367
3368         PR bootstrap/45028
3369         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
3370         call cprop_find_used_regs again via note_uses.
3371
3372 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
3373
3374         * alias.c (get_alias_set): Fix formatting issues.
3375
3376 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
3377
3378         PR middle-end/44878
3379         * stmt.c (expand_value_return):  Call promote_function_mode with
3380         a for_return argument of 2 when returning by reference.
3381
3382 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
3383
3384         PR debug/45024
3385         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
3386         unit DIE if we can find the scope DIE.
3387
3388 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
3389
3390         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
3391         changed.  Initialize OBJECT_SUBWORD.
3392         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
3393         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
3394         all callers changed.
3395         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
3396         (finish_allocno): Likewise.
3397         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
3398         (remove_low_level_allocnos): Likewise.
3399         (update_bad_spill_attribute): Likewise.
3400         (setup_min_max_allocno_live_range_point): Likewise.
3401         (sort_conflict_id_map): Likewise.
3402         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
3403         (ior_hard_reg_conflicts): New function.
3404         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
3405         (compress_conflict_vecs): Iterate over objects, not allocnos.
3406         (ira_add_live_range_to_object): New function.
3407         (object_range_compare_func): Renamed from allocno_range_compare_func.
3408         All callers changed.
3409         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
3410         subobjects, widen the min/max range of the lowest-order object to
3411         potentially include all other such low-order objects.
3412         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
3413         (check_allocation): Likewise.  Use more fine-grained tests for register
3414         conflicts.
3415         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
3416         allocno subobjects.
3417         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
3418         choices about which bits to set in each set.  Don't use
3419         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
3420         using the multiple sets we computed.
3421         (push_allocno_to_stack): Iterate over allocno subobjects.
3422         (all_conflicting_hard_regs_coalesced): New static function.
3423         (setup_allocno_available_regs_num): Use it.
3424         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
3425         subobjects.
3426         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
3427         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
3428         by ALLOCNO_NUM_OBJECTS.
3429         (calculate_spill_cost): Likewise.
3430         (color_pass): Express if statement in a more normal way.
3431         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
3432         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
3433         (setup_slot_coalesced_allocno_live_ranges): Likewise.
3434         (allocno_reload_assign): Likewise.
3435         (ira_reassign_pseudos): Likewise.
3436         (fast_allocation): Likewise.
3437         * ira-conflicts.c (build_conflict_bit_table): Likewise.
3438         (print_allocno_conflicts): Likewise.
3439         (ira_build_conflicts): Likewise.
3440         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
3441         callers changed.  Test subword 0 of each allocno for conflicts.
3442         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
3443         callers changed.  Iterate over allocno subobjects.
3444         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
3445         * ira-int.h (struct ira_allocno): New member: num_objects.
3446         Rename object to objects and change it into an array.
3447         (ALLOCNO_OBJECT): Add new argument N.
3448         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
3449         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
3450         (ior_hard_reg_conflicts): Declare.
3451         (ira_add_live_range_to_object): Declare.
3452         (ira_allocno_object_iterator): New.
3453         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
3454         (FOR_EACH_ALLOCNO_OBJECT): New macro.
3455         * ira-lives.c (objects_live): Renamed from allocnos_live; all
3456         uses changed.
3457         (allocnos_processed): New sparseset.
3458         (make_object_born): Renamed from make_allocno_born; take an
3459         ira_object_t argument.  All callers changed.
3460         (make_object_dead): Renamed from make_allocno_dead; take an
3461         ira_object_t argument.  All callers changed.
3462         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
3463         All callers changed.
3464         (mark_pseudo_regno_live): Iterate over allocno subobjects.
3465         (mark_pseudo_regno_dead): Likewise.
3466         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
3467         functions.
3468         (mark_ref_live): Detect subword accesses and call
3469         mark_pseudo_regno_subword_live as appropriate.
3470         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
3471         (process_bb_nodes_live): Deal with object-related updates first; set
3472         and test bits in allocnos_processed to avoid computing allocno
3473         statistics more than once.
3474         (create_start_finish_chains): Iterate over objects, not allocnos.
3475         (print_object_live_ranges): New function.
3476         (print_allocno_live_ranges): Use it.
3477         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
3478         and objects_live.
3479
3480 2010-07-22  Richard Guenther  <rguenther@suse.de>
3481
3482         PR lto/42451
3483         * gimple.c (gtc_next_dfs_num): New global.
3484         (struct sccs): Make value a union, add integer same_p member.
3485         (gtc_visit): New function.
3486         (gimple_types_compatible_p_1): New function, split out from ...
3487         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
3488         (iterative_hash_gimple_type): Adjust for sccs change.
3489
3490 2010-07-22  Martin Jambor  <mjambor@suse.cz>
3491
3492         PR tree-optimization/44891
3493         * tree-sra.c: Include gimple-pretty-print.h.
3494         (replace_uses_with_default_def_ssa_name): Renamed to
3495         get_repl_default_def_ssa_name, return the new SSA name instead of
3496         replacing the old one.
3497         (sra_modify_assign): Dump a message when removing a load, if the LHS
3498         is an SSA_NAME, do not do any propagation, just set the RHS to a
3499         default definition SSA NAME, type convert if necessary.
3500         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
3501
3502 2010-07-22  Richard Guenther  <rguenther@suse.de>
3503
3504         PR tree-optimization/45017
3505         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
3506         TYPE_PRECISION of integral types in addition to size.
3507
3508 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
3509
3510         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
3511         when no C library is specified.
3512
3513 2010-07-22  Martin Jambor  <mjambor@suse.cz>
3514
3515         * ipa-prop.h (struct ipa_node_params): Updated comment.
3516         (struct ipa_edge_args): Likewise.
3517         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
3518
3519 2010-07-22  Martin Jambor  <mjambor@suse.cz>
3520
3521         * cgraphunit.c (verify_edge_count_and_frequency): New function.
3522         (verify_cgraph_node): Verify frequencies of indirect edges.
3523         * tree-inline.c (tree_function_versioning): Update frequencies of
3524         indirect edges.
3525
3526 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3527
3528         PR target/43698
3529         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
3530         Set *arm_rev to be predicable.
3531
3532 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
3533
3534         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
3535         (LINK_COMMAND_SPEC_A): New.
3536         (DSYMUTIL): New.
3537         (DSYMUTIL_SPEC): New.
3538         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
3539         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
3540
3541 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
3542
3543         * calls.c (load_register_parameters): Move check for zero
3544         sized items so that only the call to
3545         mem_overlaps_already_clobbered_arg_p () is protected.
3546
3547 2010-07-22  Jan Hubicka  <jh@suse.cz>
3548
3549         * ipa-pure-const.c (varying_state): Break out from ...
3550         (get_function_state): ... here; always return varying_state
3551         when state would be NULL otherwise.
3552         (remove_node_data): Do not free varying state.
3553
3554 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
3555
3556         PR bootstrap/44970
3557         PR middle-end/45009
3558         * postreload.c: Include "target.h".
3559         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
3560         into account.
3561         (fixup_debug_insns): Don't copy the rtx.
3562         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
3563         Don't copy when replacing.  Call fixup_debug_insns in the case where
3564         we merged one add with another.
3565         (reload_combine_recognize_pattern): Fail if there aren't any uses.
3566         Try harder to determine whether we're picking a valid index register.
3567         Don't set store_ruid for an insn we're going to scan in the
3568         next iteration.
3569         (reload_combine): Remove unused code.
3570         (reload_combine_note_use): When updating use information for
3571         an old insn, ignore a use that occurs after store_ruid.
3572         * Makefile.in (postreload.o): Update dependencies.
3573
3574         * function.c (record_hard_reg_sets): Restrict the previous change
3575         to cases where the incoming nominal mode is the same as the
3576         incoming promoted mode and everything happens in MODE_INT.
3577
3578 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
3579
3580         PR debug/45015
3581         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
3582         ASM_OPERANDS_OUTPUT_IDX.
3583         (adjust_insn): For inline asm with multiple sets ensure first
3584         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
3585         the insn.
3586
3587 2010-07-21  Richard Henderson  <rth@redhat.com>
3588
3589         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
3590         comparison for avoiding xmm register saves.  Emit the xmm register
3591         saves explicitly.
3592         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
3593         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
3594         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
3595         Remove patterns and the associated splitters.
3596
3597 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
3598
3599         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
3600         and imagine parts of a complex, so that they can have the same
3601         base and fall into the same group.
3602
3603 2010-07-21  Richard Guenther  <rguenther@suse.de>
3604
3605         PR lto/45018
3606         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
3607         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
3608         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
3609
3610 2010-07-21  Martin Jambor  <mjambor@suse.cz>
3611
3612         PR tree-optimization/44900
3613         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
3614         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
3615
3616 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
3617
3618         PR middle-end/44738
3619         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
3620
3621 2010-07-21  Richard Guenther  <rguenther@suse.de>
3622
3623         PR middle-end/45013
3624         * tree-ssa.c (useless_type_conversion_p): Dispatch to
3625         gimple_types_compatible_p only when in lto.
3626         * gimple.c (gimple_types_compatible_p): Use canonical types
3627         to speed up comparison.
3628
3629 2010-07-21  Richard Guenther  <rguenther@suse.de>
3630
3631         * tree-flow.h (referenced_var): Move define ...
3632         * tree-flow-inline.h (referenced_var): ... here as an inline
3633         function.  Assert here ...
3634         * tree-dfa.c (referenced_var_lookup): ... instead of here.
3635         * tree-ssa.c (maybe_optimize_var): Check if the variable
3636         is in referenced vars.
3637         (execute_update_addresses_taken): Remove old broken check.
3638         * gimple-pretty-print.c (pp_points_to_solution): Use
3639         referenced_var_lookup.
3640         * tree-into-ssa.c (dump_decl_set): Likewise.
3641
3642 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
3643
3644         PR debug/45003
3645         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
3646         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
3647         ZERO_EXTEND here.
3648
3649 2010-07-20  Richard Henderson  <rth@redhat.com>
3650
3651         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
3652
3653 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
3654
3655         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
3656         computing the sum of the stack pointer and a large constant.
3657         * config/arm/constraints.md (M): Remove superfluous parentheses.
3658         (Pc): New constraint.
3659
3660 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
3661
3662         PR debug/45006
3663         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
3664         operand's type if exp is tcc_unary class tree.
3665
3666 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
3667
3668         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
3669         Reverse sense of if_then_else condition.
3670
3671 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
3672
3673         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
3674         * config/rs6000/rs6000.c (rs6000_override_options): Set
3675         rs6000_block_move_inline_limit appropriately.
3676         (expand_block_move): Use rs6000_block_move_inline_limit.
3677         * doc/invoke.texi (mblock-move-inline-limit): Document.
3678
3679 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
3680
3681         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
3682         FROM and TO.  All callers changed.  Don't look for tracked uses,
3683         just scan the RTL for DEBUG_INSNs and substitute.
3684         (reload_combine_recognize_pattern): Call fixup_debug_insns.
3685         (reload_combine): Ignore DEBUG_INSNs.
3686
3687 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
3688
3689         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
3690         depth to 8 from 5.
3691
3692         PR debug/45003
3693         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
3694         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
3695         instead of the result's type.
3696
3697 2010-07-20  Richard Guenther  <rguenther@suse.de>
3698
3699         PR tree-optimization/44977
3700         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
3701         SSA form.
3702
3703 2010-07-20  Richard Guenther  <rguenther@suse.de>
3704
3705         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
3706         (lto_symtab_merge_decls_2): Likewise.
3707         * gimple.h (gimple_types_compatible_p): Declare.
3708         * gimple.c (gimple_queue_type_fixup): Remove.
3709         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
3710         (gimple_compatible_complete_and_incomplete_type_p): New function.
3711         (gimple_types_compatible_p): Adjust.
3712         (gimple_register_type): Remove type fixup code.
3713         (print_gimple_types_stats): Adjust.
3714         (free_gimple_type_tables): Likewise.
3715         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
3716         * tree-ssa.c (useless_type_conversion_p): Likewise.
3717
3718 2010-07-20  Richard Guenther  <rguenther@suse.de>
3719
3720         PR middle-end/44971
3721         PR middle-end/44988
3722         * tree-ssa.c (maybe_optimize_var): New function split out from ...
3723         (execute_update_addresses_taken): ... here.
3724         (non_rewritable_mem_ref_base): Likewise.
3725         (execute_update_addresses_taken): Do not iterate over all referenced
3726         vars but just all local decls and parms.
3727         Properly check call and asm arguments and rewrite call arguments.
3728
3729 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
3730
3731         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
3732         to top level.
3733         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
3734         definitions ...
3735         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
3736         New macro.
3737         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
3738
3739 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
3740
3741         * gengtype.c (start_root_entry): New function, split out from
3742         write_root.  Check whether V is null and raise an error if so.
3743         (write_field_root): Check for V being null.  Don't raise an error here;
3744         set V to null instead.
3745         (write_root): Update comment above function.  Use start_root_entry.
3746
3747 2010-07-19  Xinliang David Li  <davidxl@google.com>
3748
3749         PR testsuite/44932
3750         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
3751         def edges.
3752         (find_uninit_use): Add dump.
3753         (is_use_properly_guarded): Ditto.
3754         (warn_uninitialized_phi): Ditto.
3755         (execute_late_warn_uninitialized): Ditto.
3756
3757 2010-07-19  Richard Guenther  <rguenther@suse.de>
3758
3759         PR middle-end/44941
3760         * expr.c (emit_block_move_hints): Move zero size check first.
3761         Move asserts to more useful places.
3762         * calls.c (load_register_parameters): Check for zero size.
3763
3764 2010-07-19  Richard Henderson  <rth@redhat.com>
3765
3766         * tree-optimize.c (execute_all_early_local_passes): New.  Change
3767         cgraph_state here ...
3768         (execute_early_local_optimizations): ... not here.  Remove.
3769         (pass_early_local_passes, pass_all_early_optimizations): Update.
3770
3771 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
3772
3773         * postreload.c (reload_combine_closest_single_use): Ignore the
3774         number of uses for DEBUG_INSNs.
3775         (fixup_debug_insns): New static function.
3776         (reload_combine_recognize_const_pattern): Use it.  Don't let the
3777         main loop be affected by DEBUG_INSNs.
3778         Really disallow moving adds past a jump insn.
3779         (reload_combine_recognize_pattern): Don't update use_ruid here.
3780         (reload_combine_note_use): Do it here.
3781         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
3782
3783 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
3784
3785         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
3786         of a loop.
3787         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
3788
3789 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
3790
3791         * config/i386/darwin.h: Define darwin_emit_branch_islands.
3792         (TARGET_MACHO_BRANCH_ISLANDS): New.
3793         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
3794         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
3795         default value.
3796         * config/i386/i386.c (output_pic_addr_const): Do not emit
3797         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
3798         (x86_output_mi_thunk): Adjust symbol creation.
3799         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
3800         Remove out of date comment.
3801         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
3802         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
3803         (DARWIN_GENERATE_ISLANDS): Ditto.
3804         (output_call):  Do not emit branch islands unless
3805         darwin_emit_branch_islands is set.
3806         * config/darwin.c: Declare darwin_emit_branch_islands.
3807         (machopic_indirect_data_reference): Do not emit unless
3808         darwin_emit_branch_islands is set.
3809         (darwin_override_options): Set darwin_emit_branch_islands
3810         where it is needed.
3811         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
3812
3813 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3814
3815         * doc/sourcebuild.texi (Effective-Target Keywords): Document
3816         sse_runtime, sse2_runtime.
3817
3818 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
3819
3820         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
3821         low half of a single-register SCmode return value before ORing
3822         it with the high half.
3823         * config/mips/mips16.S (MERGE_GPRf): Likewise.
3824
3825 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3826
3827         PR target/44805
3828         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
3829         on all targets.
3830
3831 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
3832
3833         PR target/42235
3834         * postreload.c (reload_cse_move2add): Return bool, true if anything.
3835         changed.  All callers changed.
3836         (move2add_use_add2_insn): Likewise.
3837         (move2add_use_add3_insn): Likewise.
3838         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
3839         reload_combine.
3840         (RELOAD_COMBINE_MAX_USES): Bump to 16.
3841         (last_jump_ruid): New static variable.
3842         (struct reg_use): New members CONTAINING_MEM and RUID.
3843         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
3844         (reload_combine_split_one_ruid, reload_combine_split_ruids,
3845         reload_combine_purge_insn_uses, reload_combine_closest_single_use
3846         reload_combine_purge_reg_uses_after_ruid,
3847         reload_combine_recognize_const_pattern): New static functions.
3848         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
3849         is true for our reg and that we have available index regs.
3850         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
3851         callers changed.  Use them to initialize fields in struct reg_use.
3852         (reload_combine): Initialize last_jump_ruid.  Be careful when to
3853         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
3854         Call reload_combine_recognize_const_pattern.
3855         (reload_combine_note_store): Update REAL_STORE_RUID field.
3856
3857 2010-07-16  Jason Merrill  <jason@redhat.com>
3858
3859         * Makefile.in (opts-common.o): Depend on options.h.
3860
3861 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
3862
3863         * tree.c (build_common_builtin_nodes): Use build_function_type_list
3864         instead of build_function_type.
3865         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
3866         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
3867
3868 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
3869
3870         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
3871         do all the work.
3872         (rs6000_emit_int_cmove): Use function pointers for insn generation.
3873         Don't force values into registers unnecessarily.
3874         (output_isel): Assert that we're not given conditions we can't handle.
3875         Delete corresponding code.
3876         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
3877         scc_comparison_operator constraint.  Permit 0 for the consequent
3878         operand.  Permit any GPR for the alternative operand.
3879         (isel_unsigned_<mode>): Likewise.
3880
3881 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
3882
3883         PR target/44942
3884         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
3885         argument to const_tree.
3886         * config/i386/i386.c (function_arg_advance): If padding needs to be
3887         inserted before argument, increment cum->words by number of padding
3888         words as well.
3889         (contains_aligned_value_p): Change argument to const_tree.
3890         (ix86_function_arg_boundary): Change second argument to const_tree.
3891
3892 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
3893
3894         PR target/42235
3895         * function.c (record_hard_reg_sets): New static function.
3896         (assign_parm_setup_reg): If an optab for extending exists and the
3897         generated code clobbbers no hard regs, emit the insn directly and
3898         create a REG_EQUIV note.
3899
3900 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
3901
3902         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
3903         TREE_CHAIN.
3904         * c-typeck.c (push_init_level): Likewise.
3905         (process_init_element): Likewise.
3906
3907 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
3908
3909         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
3910         (integer_three_node): Add.
3911         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
3912         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
3913         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
3914         of call build_int_cst.
3915         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
3916         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
3917         (find_interesting_uses_address): Ditto.
3918         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
3919         * tree-eh.c (lower_eh_constructs_2): Ditto.
3920         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
3921         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
3922         * expmed.c (expand_divmod): Ditto.
3923         * tree-mudflap.c (mx_register_decls): Ditto.
3924         * varasm.c (array_size_for_constructor): Ditto.
3925         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
3926         * c-parser.c (c_parser_postfix_expression): Ditto.
3927
3928 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
3929
3930         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
3931         New static variables.
3932         (reload_combine_recognize_pattern): New static function, broken out
3933         of reload_combine.
3934         (reload_combine): Use it.  Only initialize first_index_reg and
3935         last_index_reg once.
3936
3937 2010-07-15  Richard Henderson  <rth@redhat.com>
3938
3939         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
3940         when done.
3941
3942 2010-07-15  Jan Hubicka  <jh@suse.cz>
3943
3944         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
3945         comdats for broken gold.
3946         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
3947
3948 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
3949
3950         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
3951
3952 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
3953
3954         * tree.h (DECL_CHAIN): Define.
3955         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3956         * c-decl.c: Likewise.
3957         * c-parser.c: Likewise.
3958         * c-typeck.c: Likewise.
3959         * cfgexpand.c: Likewise.
3960         * cgraph.c: Likewise.
3961         * cgraphunit.c: Likewise.
3962         * combine.c: Likewise.
3963         * config/alpha/alpha.c: Likewise.
3964         * config/arm/arm.c: Likewise.
3965         * config/frv/frv.c: Likewise.
3966         * config/i386/i386.c: Likewise.
3967         * config/i386/winnt-cxx.c: Likewise.
3968         * config/ia64/ia64.c: Likewise.
3969         * config/iq2000/iq2000.c: Likewise.
3970         * config/mep/mep.c: Likewise.
3971         * config/mips/mips.c: Likewise.
3972         * config/pa/som.h: Likewise.
3973         * config/rs6000/rs6000.c: Likewise.
3974         * config/s390/s390.c: Likewise.
3975         * config/sh/sh.c: Likewise.
3976         * config/sh/symbian-cxx.c: Likewise.
3977         * config/sparc/sparc.c: Likewise.
3978         * config/spu/spu.c: Likewise.
3979         * config/stormy16/stormy16.c: Likewise.
3980         * config/vxworks.c: Likewise.
3981         * config/xtensa/xtensa.c: Likewise.
3982         * coverage.c: Likewise.
3983         * dbxout.c: Likewise.
3984         * dwarf2out.c: Likewise.
3985         * emit-rtl.c: Likewise.
3986         * expr.c: Likewise.
3987         * function.c: Likewise.
3988         * gimple-low.c: Likewise.
3989         * gimple-pretty-print.c: Likewise.
3990         * gimplify.c: Likewise.
3991         * integrate.c: Likewise.
3992         * ipa-inline.c: Likewise.
3993         * ipa-prop.c: Likewise.
3994         * ipa-split.c: Likewise.
3995         * ipa-struct-reorg.c: Likewise.
3996         * ipa-type-escape.c: Likewise.
3997         * langhooks.c: Likewise.
3998         * lto-cgraph.c: Likewise.
3999         * omp-low.c: Likewise.
4000         * stor-layout.c: Likewise.
4001         * tree-cfg.c: Likewise.
4002         * tree-complex.c: Likewise.
4003         * tree-dfa.c: Likewise.
4004         * tree-dump.c: Likewise.
4005         * tree-inline.c: Likewise.
4006         * tree-mudflap.c: Likewise.
4007         * tree-nested.c: Likewise.
4008         * tree-object-size.c: Likewise.
4009         * tree-pretty-print.c: Likewise.
4010         * tree-sra.c: Likewise.
4011         * tree-ssa-live.c: Likewise.
4012         * tree-ssa-loop-niter.c: Likewise.
4013         * tree-ssa-math-opts.c: Likewise.
4014         * tree-ssa-reassoc.c: Likewise.
4015         * tree-ssa-sccvn.c: Likewise.
4016         * tree-ssa-structalias.c: Likewise.
4017         * tree-tailcall.c: Likewise.
4018         * tree-vrp.c: Likewise.
4019         * tree.c: Likewise.
4020         * var-tracking.c: Likewise.
4021         * varasm.c: Likewise.
4022
4023 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4024
4025         PR target/44877
4026         * config/spu/spu.c (spu_expand_builtin_1): Allow references
4027         (as well as pointers) as argument to mask_for_load builtins.
4028
4029 2010-07-15  Richard Guenther  <rguenther@suse.de>
4030
4031         PR tree-optimization/44946
4032         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
4033         with accessing only padding properly.
4034
4035 2010-07-15  Jan Hubicka  <jh@suse.cz>
4036
4037         * ipa.c (function_and_variable_visibility): Variables marked as used
4038         should not be localized.
4039
4040 2010-07-15  Jan Hubicka  <jh@suse.cz>
4041
4042         * cgraph.c: Include lto-streamer.h
4043         (change_decl_assembler_name): Work when assembler name hash is at place.
4044         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
4045         be sure to rename it to avoid name clash.
4046         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
4047         Localize hidden symbols only when locally defined.
4048
4049 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
4050
4051         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
4052
4053 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
4054             Kevin F. Quinn  <kevquinn@gentoo.org>
4055
4056         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
4057         * common.opt: Add -Wtrampolines.
4058         * doc/invoke.texi: Add -Wtrampolines.
4059
4060 2010-07-15  Jie Zhang  <jie@codesourcery.com>
4061
4062         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
4063         cortex_a8_issue_ls.
4064
4065 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
4066
4067         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
4068         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
4069
4070 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4071
4072         * config/spu/spu.c (reg_names): Remove prototype.
4073         (call_used_regs): Likewise.
4074
4075 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
4076
4077         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
4078         "unused" with attribute "used".
4079         (__JCR_END__): Likewise.
4080         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
4081         "used" attribute.
4082         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
4083
4084 2010-07-14  Richard Guenther  <rguenther@suse.de>
4085
4086         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
4087         (maybe_fixup_decls): Likewise.
4088         (input_gimple_stmt): Do not fixup anything.
4089         * lto-streamer-out.c (output_gimple_stmt): Make sure all
4090         non-automatic variable uses are wrapped inside a MEM_REF.
4091
4092 2010-07-14  Richard Henderson  <rth@redhat.com>
4093
4094         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
4095         for functions.
4096         * varasm.c (assemble_variable): Remove early exit for functions;
4097         assert that we're given a variable.
4098
4099 2010-07-14  Jie Zhang  <jie@codesourcery.com>
4100
4101         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
4102         cortex_a8_default when neon_type is not none.
4103
4104 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
4105
4106         * lower-subreg.c (subreg_context): New static bitmap.
4107         (decompose_multiword_subregs): Allocate and free it.
4108         (find_decomposable_subregs): Set a bit in it for a register that
4109         occurs in a subreg that changes mode but not size.
4110         (can_decompose_p): Test it instead of non_decomposable_context.
4111
4112 2010-07-14  Richard Guenther  <rguenther@suse.de>
4113
4114         PR tree-optimization/44824
4115         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
4116         is_gimple_mem_ref_addr.
4117         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
4118         non-decl_address_invariant_p addresses.
4119
4120 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
4121
4122         * reload.c (find_reloads): Revert code to penalize small register
4123         classes that was brought in with the IRA merge.
4124
4125 2010-07-14  Richard Guenther  <rguenther@suse.de>
4126
4127         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
4128         as base of ARRAY_REFs.
4129
4130 2010-07-14  Richard Guenther  <rguenther@suse.de>
4131
4132         PR middle-end/44930
4133         * tree-pretty-print.c (do_niy): Do not print a newline.
4134
4135 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
4136
4137         * ira-int.h (struct ira_object): New.
4138         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
4139         (struct ira_allocno): Remove members min, max,
4140         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
4141         conflict_allocnos_num and conflict_vec_p.  Add new member object.
4142         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
4143         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
4144         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
4145         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
4146         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
4147         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
4148         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
4149         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
4150         an ira_object_t rather than ira_allocno_t.  All uses changed.
4151         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
4152         contains a vector of ira_object_t; all uses changed.
4153         (ira_objects_num): Declare variable.
4154         (ira_create_allocno_object): Declare function.
4155         (ira_conflict_vector_profitable_p): Adjust prototype.
4156         (ira_allocate_conflict_vec): Renamed from
4157         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
4158         (ira_allocate_object_conflicts): Renamed from
4159         ira_allocate_allocno_conflicts; first arg now ira_object_t.
4160         (struct ira_object_iterator): New.
4161         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
4162         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
4163         to conflict_vec_p.  All uses changed.
4164         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
4165         Changed to take into account that conflicts are now tracked for
4166         objects.
4167         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
4168         Args changed to accept ira_object_t.  All uses changed.
4169         (allocnos_conflict_p): New static function.
4170         (collected_conflict_objects): Renamed from collected_allocno_objects;
4171         now a vector of ira_object_t.  All uses changed.
4172         (build_conflict_bit_table): Changed to take into account that
4173         conflicts are now tracked for objects.
4174         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
4175         (print_allocno_conflicts, ira_build_conflicts): Likewise.
4176         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
4177         setup_allocno_left_conflicts_size, allocno_reload_assign,
4178         fast_allocation): Likewise.
4179         * ira-lives.c (make_hard_regno_born, make_allocno_born)
4180         process_single_reg_class_operands, process_bb_node_lives): Likewise.
4181         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
4182         Likewise.
4183         * ira-build.c (ira_objects_num): New variable.
4184         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
4185         contains a vector of ira_object_t; all uses changed.
4186         (ira_object_id_map_vec): Corresponding change.
4187         (object_pool): New static variable.
4188         (initiate_allocnos): Initialize it.
4189         (finish_allocnos): Free it.
4190         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
4191         New functions.
4192         (ira_create_allocno): Don't set members that were removed.
4193         (ira_set_allocno_cover_class): Don't change conflict hard regs.
4194         (merge_hard_reg_conflicts): Changed to take into account that
4195         conflicts are now tracked for objects.
4196         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
4197         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
4198         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
4199         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
4200         setup_min_max_conflict_allocno_ids, ):  Likewise.
4201         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
4202         to ira_object_t; all callers changed.
4203         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
4204         to ira_object_t, all callers changed.
4205         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
4206         to ira_object_t, all callers changed.
4207         (conflict_check, curr_conflict_check_tick): Renamed from
4208         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
4209         changed.
4210         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
4211         arg changed to ira_object_t, all callers changed.
4212         (create_cap_allocno): Call ira_create_allocno_object.
4213         (finish_allocno): Free the corresponding object.
4214         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
4215         callers changed.  Adjusted for dealing with objects.
4216         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
4217         dealing with objects.
4218         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
4219
4220         * ira-int.h (struct live_range): Rename allocno member to object
4221         and change type to ira_object_t.
4222         (struct ira_object): New member live_ranges.
4223         (struct ira_allocno): Remove member live_ranges.
4224         (ALLOCNO_LIVE_RANGES): Remove.
4225         (OBJECT_LIVE_RANGES): New macro.
4226         (ira_create_live_range, ira_copy_live_range_list,
4227         ira_merge_live_range_list, ira_live_ranges_intersect_p,
4228         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
4229         * ira-build.c (ira_create_object): Initialize live ranges here.
4230         (ira_create_allocno): Not here.
4231         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
4232         changed to ira_object_t, all callers changed.
4233         (copy_live_range): Rename from copy_allocno_live_range, all callers
4234         changed.
4235         (ira_copy_live_range_list): Rename from
4236         ira_copy_allocno_live_range_list, all callers changed.
4237         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
4238         all callers changed.
4239         (ira_live_ranges_intersect_p): Rename from
4240         ira_allocno_live_ranges_intersect_p, all callers changed.
4241         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
4242         callers changed.
4243         (ira_finish_live_range_list): Rename from
4244         ira_finish_allocno_live_range_list, all callers changed.
4245         (change_object_in_range_list): Rename from change_allocno_in_range_list,
4246         last arg changed to ira_object_t, all callers changed.
4247         (finish_allocno): Changed to expect live ranges in the allocno's object.
4248         (move_allocno_live_ranges, copy_allocno_live_ranges,
4249         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
4250         ira_flattening, ira_build): Likewise.
4251         * ira-color.c (allocnos_have_intersected_live_ranges_p,
4252         slot_coalesced_allocno_live_ranges_intersect,
4253         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
4254         * ira-conflicts.c (build_conflict_bit_table): Likewise.
4255         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4256         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
4257         make_allocno_dead, create_start_finish_chains,
4258         remove_some_program_points_and_update_live_ranges,
4259         ira_debug_live_range_list): Likewise.
4260
4261         * ira-int.h (ira_object_conflict_iterator): Rename from
4262         ira_allocno_conflict_iterator.
4263         (ira_object_conflict_iter_init): Rename from
4264         ira_allocno_conflict_iter_init, second arg changed to
4265         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
4266         FOR_EACH_ALLOCNO_CONFLICT.
4267         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
4268         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
4269         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
4270         * ira-conflicts.c (print_allocno_conflicts): Likewise.
4271
4272 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
4273
4274         PR other/44874
4275         * tree-dump.c (dump_options): Add enumerate_locals entry.
4276         Add TDF_NOID exclusion to all entry.
4277         * tree-dump.h (dump_enumerated_decls): Declare.
4278         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
4279         Don't display type uid.
4280         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
4281         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
4282         * tree-ssa-live.c: Include gimple.h.
4283         (numbered_tree_d): New struct.
4284         (numbered_tree): New typedef.
4285         (DEF_VEC_O (numbered_tree): New.
4286         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
4287         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
4288         (dump_enumerated_decls): Likewise.
4289         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
4290         debug info and flag_dump_final_insns, call dump_enumerated_decls.
4291         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
4292         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
4293
4294 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
4295
4296         * expmed.h (MAX_BITS_PER_WORD): Move to...
4297         * defaults.h (MAX_BITS_PER_WORD): ...here.
4298
4299 2010-07-13  DJ Delorie  <dj@redhat.com>
4300
4301         * config/h8300/h8300.c (h8300_init_once): Default to
4302         -fstrict_volatile_bitfields.
4303
4304         * config/sh/sh.c (sh_override_options): Default to
4305         -fstrict_volatile_bitfields.
4306
4307         * config/rx/rx.c (rx_option_override): New.
4308
4309         * config/m32c/m32c.c (m32c_override_options): Default to
4310         -fstrict_volatile_bitfields.
4311
4312 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
4313
4314         * tree.h (build_function_call_expr): Delete.
4315         (build_call_expr_loc_array): New function.
4316         (build_call_expr_loc_vec): New function.
4317         * tree-flow.h (struct omp_region): Change type of ws_args field
4318         to a VEC.
4319         * builtins.c (build_function_call_expr): Delete.
4320         (build_call_expr_loc_array): New function.
4321         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
4322         (build_call_expr): Likewise.
4323         (build_call_expr_loc_vec): New function.
4324         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
4325         build_function_call_expr.
4326         * expr.c (emutls_var_address): Likewise.
4327         * varasm.c (emutls_common_1): Likewise.
4328         * omp-low.c (expand_omp_atomic_mutex): Likewise.
4329         (expand_omp_taskreg): Adjust for new type of region->ws_args.
4330         (get_ws_args_for): Return a VEC instead of a tree.
4331         (expand_parallel_call): Call build_call_expr_loc_vec instead of
4332         build_function_call_expr.
4333         * stor-layout.c (self_referential_size): Likewise.
4334
4335 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
4336
4337         PR testsuite/44701
4338         * recog.c (constrain_operands): Allow side-effects in memory
4339         operands if either < or > constraint is used, rather than if
4340         both < and > is used.
4341
4342 2010-07-13  Richard Guenther  <rguenther@suse.de>
4343
4344         PR middle-end/44911
4345         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
4346         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
4347         without name.
4348
4349 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
4350
4351         PR target/44761
4352         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
4353         to variable emited.
4354         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
4355         * config/sh/sh.md (symGOT_load): Likewise.
4356         (symDTPOFF2reg): Likewise.
4357         (symTPOFF2reg): Likewise.
4358
4359 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4360
4361         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
4362         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
4363
4364 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4365
4366         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
4367         explanation.
4368         Find ucontext_t * on Solaris 11.
4369         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
4370         Handle new Solaris 11 __sighndlr patterns.
4371
4372 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
4373
4374         PR debug/44901
4375         * vec.h (VEC_block_remove): Fix comment.
4376         * tree-ssa-live.c (remove_unused_locals): Don't use
4377         VEC_unordered_remove on local_decls, instead replace a single
4378         vector element in each iteration if at least one element had
4379         to be removed and VEC_truncate at the end.
4380         * omp-low.c (expand_omp_taskreg): Likewise.
4381
4382 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4383
4384         * c-decl.c (finish_function): Fix typo in comment.
4385
4386 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
4387
4388         PR bootstrap/44921
4389         * postreload.c (move2add_use_add3_insn): Silence gcc warning
4390         on min_regno.
4391
4392 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
4393
4394         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
4395         (simplify_stmt_using_ranges): Use it.
4396
4397 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4398
4399         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
4400         member.  Do not mark as GTY(()).
4401         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
4402         (spu_builtin_decls): New static variable.
4403         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
4404         (spu_init_builtins): Likewise.
4405         (spu_builtin_mul_widen_even): Likewise.
4406         (spu_builtin_mul_widen_odd): Likewise.
4407         (spu_builtin_mask_for_load): Likewise.
4408         (spu_builtin_vec_perm): Likewise.
4409         * config/spu/spu-c.c: Include "target.h".
4410         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
4411         of using spu_builtins[].fndecl.
4412
4413 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4414
4415         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
4416         imply -minterlink-mips16.
4417
4418 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4419
4420         * config/mips/mips.h (mips16_globals): Declare.
4421         (SWITCHABLE_TARGET): Define.
4422         * config/mips/mips.c: Include target-globals.h.
4423         (mips16_globals): New variable.
4424         (mips_set_mips16_mode): Use save_target_globals and
4425         restore_target_globals instead of target_reinit.
4426
4427 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4428
4429         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
4430         to say that the function can be called more than once.
4431         * target-globals.c (save_target_globals): Call init_reg_sets.
4432
4433 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4434
4435         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
4436         * bb-reorder.h: New file.
4437         * bb-reorder.c (default_target_bb_reorder): New variable.
4438         (this_target_bb_reorder): New conditional variable.
4439         (uncond_jump_length): Redefine as a macro.
4440         * target-globals.h (this_target_bb_reorder): Declare.
4441         (target_globals): Add a bb_reorder field.
4442         (restore_target_globals): Copy the bb_reorder field to
4443         this_target_bb-reorder.
4444         * target-globals.c: Include bb-reorder.h.
4445         (default_target_globals): Initialize the bb_reorder field.
4446         (save_target_globals): Likewise.
4447
4448 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4449
4450         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
4451         * gcse.h: New file.
4452         * gcse.c: Include gcse.h.
4453         (default_target_gcse): New variable.
4454         (this_target_gcse): New conditional variable.
4455         (can_copy): Redefine as a macro.
4456         (can_copy_init_p): New macro.
4457         (can_copy_p): Remove can_copy_init_p.
4458         * target-globals.h (this_target_gcse): Declare.
4459         (target_globals): Add a gcse field.
4460         (restore_target_globals): Copy the gcse field to this_target_gcse.
4461         * target-globals.c: Include gcse.h.
4462         (default_target_globals): Initialize the gcse field.
4463         (save_target_globals): Likewise.
4464
4465 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4466
4467         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
4468         and x_ira_prohibited_mode_move_regs_initialized_p.
4469         (ira_prohibited_mode_move_regs): Redefine as a macro.
4470         * ira.c (ira_prohibited_mode_move_regs): Delete.
4471         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
4472
4473 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4474
4475         * reload.h (target_reload): Add x_cached_reg_save_code and
4476         x_cached_reg_restore_code.
4477         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
4478         Redefine as macros.
4479
4480 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4481
4482         * Makefile.in (target-globals.o): Depend on builtins.h.
4483         * builtins.h: New file.
4484         * builtins.c: Include builtins.h.
4485         (default_target_builtins): New variable.
4486         (this_target_builtins): New conditional variable.
4487         (apply_args_mode, apply_result_mode): Redefine as macros.
4488         * target-globals.h (this_target_builtins): Declare.
4489         (target_globals): Add a builtins field.
4490         (restore_target_globals): Copy the builtins field to
4491         this_target_builtins.
4492         * target-globals.c: Include builtins.h.
4493         (default_target_globals): Initialize the builtins field.
4494         (save_target_globals): Likewise.
4495
4496 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4497
4498         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
4499         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
4500         from expmed.c.
4501         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
4502         (alg_hash, alg_hash_used_p): New macros.
4503         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
4504         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
4505         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
4506
4507 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4508
4509         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
4510         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
4511         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
4512         (this_op_costs, costs_classes): Redefine as macros.
4513         (record_reg_classes): Don't take op_costs as a parameter.
4514         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
4515         (scan_one_insn): Update call to record_operand_costs.
4516
4517 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4518
4519         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
4520         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
4521         (target_ira_int): New structure.
4522         (default_target_ira_int): Declare.
4523         (this_target_ira_int): Declare as a variable or define as a macro.
4524         (ira_reg_mode_hard_regset, ira_register_move_cost)
4525         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
4526         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
4527         (prohibited_class_mode_regs, ira_important_classes_num)
4528         (ira_important_classes, ira_reg_class_intersect)
4529         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
4530         (ira_reg_class_union): Redefine as macros.
4531         * ira.h (target_ira): New structure.
4532         (default_target_ira): Declare.
4533         (this_target_ira): Declare as a variable or define as a macro.
4534         (ira_available_class_regs, ira_hard_regno_cover_class)
4535         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
4536         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
4537         (ira_class_hard_regs_num): Redefine as macros.
4538         * ira.c (default_target_ira, default_target_ira_int): New variables.
4539         (this_target_ira, this_target_ira_int): New conditional variables.
4540         (ira_reg_mode_hard_regset, ira_memory_move_cost)
4541         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
4542         (ira_class_subset_p): Delete.
4543         (no_unit_alloc_regs): Redefine as a macro.
4544         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
4545         (ira_class_hard_regs_num, ira_class_hard_reg_index)
4546         (ira_available_class_regs): Delete.
4547         (alloc_reg_class_subclasses): Redefine as a macro.
4548         (ira_reg_class_cover_size, ira_reg_class_cover)
4549         (ira_important_classes_num, ira_important_classes)
4550         (ira_important_class_nums, ira_class_translate): Delete.
4551         (cover_class_order): Document the variable's lifetime.
4552         (reorder_important_classes): Don't set ira_important_class_nums.
4553         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
4554         (ira_reg_class_super_classes, ira_reg_class_union)
4555         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
4556         Delete.
4557         (setup_reg_class_nregs): Don't set ira_max_regs.
4558         (prohibited_class_mode_regs): Delete.
4559         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
4560         (target_globals): Add ira and ira_int fields.
4561         (restore_target_globals): Copy the ira field to this_target_ira
4562         and the ira_int field to this_target_ira_int.
4563         * target-globals.c: Include ira-int.h.
4564         (default_target_globals): Initialize the ira and ira_int fields.
4565         (save_target_globals): Likewise.
4566
4567 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4568
4569         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
4570         * cfgloop.h (target_cfgloop): New structure.
4571         (default_target_cfgloop): Declare.
4572         (this_target_cfgloop): Declare as a variable or define as a macro.
4573         (target_avail_regs, target_clobbered_regs, target_res_regs)
4574         (target_reg_cost, target_spill_cost): Redefine as macros.
4575         * cfgloopanal.c (default_target_cfgloop): New variable.
4576         (this_target_cfgloop): New conditional variable.
4577         (target_avail_regs, target_clobbered_regs, target_res_regs)
4578         (target_reg_cost, target_spill_cost): Delete.
4579         * target-globals.h (this_target_cfgloop): Declare.
4580         (target_globals): Add a cfgloop field.
4581         (restore_target_globals): Copy the cfgloop field to
4582         this_target_cfgloop.
4583         * target-globals.c: Include cfgloop.h.
4584         (default_target_globals): Initialize the cfgloop field.
4585         (save_target_globals): Likewise.
4586
4587 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4588
4589         * regs.h (target_regs): Add x_direct_load, x_direct_store and
4590         x_float_extend_from_mem.
4591         (direct_load, direct_store, float_extend_from_mem): New macros.
4592         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
4593
4594 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4595
4596         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
4597         (target-globals.o): Depend on $(LIBFUNCS_H).
4598         * libfuncs.h: Include hashtab.h.
4599         (libfunc_entry): Moved from optabs.c.
4600         (target_libfuncs): New structure.
4601         (default_target_libfuncs): Declare.
4602         (this_target_libfuncs): Declare as a variable or define as a macro.
4603         (libfunc_table): Redefine as a macro.
4604         * optabs.c (default_target_libfuncs): New variable.
4605         (this_target_libfuncs): New conditional variable.
4606         (libfunc_table): Delete.
4607         (libfunc_entry): Moved to optabs.h.
4608         (libfunc_hash): Redefine as a macro.
4609         (hash_libfunc, eq_libfunc): Fix comments.
4610         (init_optabs): Use libfunc_hash to detect cases where the function
4611         has already been called.  Clear the hash table instead of
4612         recreating it.
4613         * target-globals.h (this_target_libfuncs): Declare.
4614         (target_globals): Add a libfuncs field.
4615         (restore_target_globals): Copy the libfuncs field to
4616         this_target_libfuncs.
4617         * target-globals.c: Include libfuncs.h.
4618         (default_target_globals): Initialize the libfuncs field.
4619         (save_target_globals): Likewise.
4620
4621 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4622
4623         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
4624         in all dependency lists.
4625
4626 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4627
4628         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
4629         * optabs.h (target_optabs): New structure.
4630         (default_target_optabs): Declare.
4631         (this_target_optabs): Declare as a variable or define as a macro.
4632         (optab_table, convert_optab_table, direct_optab_table): Redefine
4633         as macros.
4634         * optabs.c (default_target_optabs): New variable.
4635         (this_target_optabs): New conditional variable.
4636         (optab_table, convert_optab_table, direct_optab_table): Delete.
4637         * target-globals.h (this_target_optabs): Declare.
4638         (target_globals): Add a optabs field.
4639         (restore_target_globals): Copy the optabs field to
4640         this_target_optabs.
4641         * target-globals.c: Include expr.h and optabs.h.
4642         (default_target_globals): Initialize the optabs field.
4643         (save_target_globals): Likewise.
4644
4645 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4646
4647         * flags.h (target_flagstate): Add x_flag_excess_precision.
4648         (flag_excess_precision): Redefine as a macro.
4649         * toplev.c (flag_excess_precision): Delete.
4650
4651 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4652
4653         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
4654         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
4655         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
4656         (no_caller_save_reg_set): Redefine as a macro.
4657         * reload.h (target_reload): Add x_caller_save_initialized_p and
4658         x_regno_save_mode.
4659         (caller_save_initialized_p): Redefine as a macro.
4660         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
4661         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
4662         (regno_save_mode): Redefine as a macro.
4663
4664 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4665
4666         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
4667         * expmed.h: New file.
4668         * expmed.c (default_target_costs): New variable.
4669         (this_target_costs): New conditional variable.
4670         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
4671         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
4672         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
4673         * target-globals.h (this_target_expmed): Declare.
4674         (target_globals): Add a expmed field.
4675         (restore_target_globals): Copy the expmed field to
4676         this_target_expmed.
4677         * target-globals.c: Include expmed.h.
4678         (default_target_globals): Initialize the expmed field.
4679         (save_target_globals): Likewise.
4680
4681 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4682
4683         * Makefile.in (target-globals.o): Depend on reload.h.
4684         * reload.h (target_reload): New structure.
4685         (default_target_reload): Declare.
4686         (this_target_reload): Declare as a variable or define as a macro.
4687         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
4688         * reload1.c (default_target_reload): New variable
4689         (this_target_reload): New conditional variable.
4690         (indirect_symref_ok, double_reg_address_ok): Delete.
4691         (spill_indirect_levels): Redefine as a macro.
4692         * target-globals.h (this_target_reload): Declare.
4693         (target_globals): Add a reload field.
4694         (restore_target_globals): Copy the reload field to
4695         this_target_reload.
4696         * target-globals.c: Include hard-reg-set.h.
4697         (default_target_globals): Initialize the reload field.
4698         (save_target_globals): Likewise.
4699
4700 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4701
4702         * rtl.h (target_rtl): Add x_static_reg_base_value.
4703         * alias.c (static_reg_base_value): Redefine as a macro.
4704
4705 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4706
4707         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
4708         (GTFILES): Remove reginfo.c.
4709         * rtl.h (target_rtl): Add x_top_of_stack.
4710         (top_of_stack): New macro.
4711         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
4712         (top_of_stack): Delete.
4713
4714 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4715
4716         * regs.h (target_regs): Add x_hard_regs_of_mode,
4717         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
4718         x_may_move_out_cost and x_last_mode_for_init_move_cost.
4719         (have_regs_of_mode, contains_reg_of_mode, move_cost)
4720         (may_move_in_cost, may_move_out_cost): Redefine as macros.
4721         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
4722         (may_move_in_cost, may_move_out_cost): Delete.
4723         (last_mode_for_init_move_cost): Redefine as a macro.
4724
4725 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4726
4727         * hard-reg-set.h (target_hard_regs): New structure.
4728         (default_target_hard_regs): Declare.
4729         (this_target_hard_regs): Declare as a variable or define as a macro.
4730         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
4731         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
4732         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
4733         (reg_class_size, reg_class_subclasses, reg_class_subunion)
4734         (reg_class_superunion, reg_names): Redefine as macros.
4735         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
4736         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
4737         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
4738         (reg_class_contents, reg_class_size, reg_class_subclasses)
4739         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
4740         (default_target_hard_regs): New variable
4741         (this_target_hard_regs, initial_call_really_used_regs)
4742         (initial_reg_alloc_order): New conditional variables.
4743         (initial_reg_names): New variable.
4744         (init_reg_sets): Assert that initial_call_really_used_regs,
4745         initial_reg_alloc_order and initial_reg_names
4746         are all the same size as their variable counterparts.  Use them to
4747         initialize those counterparts.
4748         * target-globals.h (this_target_hard_regs): Declare.
4749         (target_globals): Add a hard_regs field.
4750         (restore_target_globals): Copy the hard_regs field to
4751         this_target_hard_regs.
4752         * target-globals.c: Include hard-reg-set.h.
4753         (default_target_globals): Initialize the hard_regs field.
4754         (save_target_globals): Likewise.
4755
4756 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4757
4758         * Makefile.in (target-globals.o): Depend on $(RTL_H).
4759         * rtl.h (target_rtl): New structure.
4760         (default_target_rtl): Declare.
4761         (this_target_rtl): Declare as a variable or define as a macro.
4762         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
4763         Redefine as macros.
4764         * emit-rtl.c (default_target_rtl): New variable.
4765         (this_target_rtl): New conditional variable.
4766         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
4767         (return_address_pointer_rtx): Delete.
4768         (initial_regno_reg_rtx): New macro.
4769         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
4770         (init_emit_regs): Likewise.
4771         * target-globals.h (this_target_rtl): Declare.
4772         (target_globals): Add a rtl field.
4773         (restore_target_globals): Copy the rtl field to this_target_rtl.
4774         * target-globals.c: Include rtl.h.
4775         (default_target_globals): Initialize the rtl field.
4776         (save_target_globals): Likewise.
4777
4778 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4779
4780         * Makefile.in (target-globals.o): Depend on $(REGS_H).
4781         * regs.h (target_reg_modes): New structure.
4782         (default_target_reg_modes): Declare.
4783         (this_target_reg_modes): Declare as a variable or define as a macro.
4784         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
4785         * reginfo.c (default_target_reg_modes): New variable.
4786         (this_target_reg_modes): New conditional variable.
4787         (hard_regno_nregs, reg_raw_mode): Delete.
4788         * target-globals.h (this_target_regs): Declare.
4789         (target_globals): Add a regs field.
4790         (restore_target_globals): Copy the regs field to this_target_regs.
4791         * target-globals.c: Include regs.h.
4792         (default_target_globals): Initialize the regs field.
4793         (save_target_globals): Likewise.
4794
4795 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4796
4797         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
4798         * doc/tm.texi: Regenerate.
4799         * Makefile.in (OBJS-common): Add target-globals.o.
4800         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
4801         and target-globals.h.
4802         (target-globals.o): New rule.
4803         (GTFILES): Include $(srcdir)/target-globals.h.
4804         * defaults.h (SWITCHABLE_TARGET): Define.
4805         * gengtype.c (open_base_files): Add target-globals.h to the
4806         list of includes.
4807         * target-globals.h: New file.
4808         * target-globals.c: Likewise.
4809
4810         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
4811         * flags.h (target_flag_state): New structure.
4812         (default_target_flag_state): Declare.
4813         (this_target_flag_state): Declare as a variable or define as a macro.
4814         (align_loops_log): Redefine as a macro.
4815         (align_loops_max_skip, align_jumps_log): Likewise.
4816         (align_jumps_max_skip, align_labels_log): Likewise.
4817         (align_labels_max_skip, align_functions_log): Likewise.
4818         * toplev.c (default_target_flag_state): New variable.
4819         (this_target_flag_state): New conditional variable.
4820         (align_loops_log): Delete.
4821         (align_loops_max_skip, align_jumps_log): Likewise.
4822         (align_jumps_max_skip, align_labels_log): Likewise.
4823         (align_labels_max_skip, align_functions_log): Likewise.
4824         * target-globals.h (this_target_flag_state): Declare.
4825         (target_globals): Add a flag_state field.
4826         (restore_target_globals): Copy the flag_state field to
4827         this_target_flag_state.
4828         * target-globals.c: Include flags.h.
4829         (default_target_globals): Initialize the flag_state field.
4830         (save_target_globals): Likewise.
4831
4832 2010-07-12  Jie Zhang  <jie@codesourcery.com>
4833
4834         * postreload.c (reg_symbol_ref[]): New.
4835         (move2add_use_add2_insn): New.
4836         (move2add_use_add3_insn): New.
4837         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
4838         (move2add_note_store): Likewise.
4839
4840 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
4841
4842         PR rtl-optimization/44752
4843         * genautomata.c (main): Don't emit an empty file even if there
4844         is no automaton.
4845
4846 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4847
4848         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
4849         ix86_solaris_return_in_memory.
4850         * config/i386-protos.h: Reflect this.
4851         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
4852         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
4853         Move ...
4854         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
4855
4856 2010-07-12  Jie Zhang  <jie@codesourcery.com>
4857
4858         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
4859         align the stack when it's going to be saved.
4860
4861 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4862
4863         PR pch/14940
4864         * config/host-solaris.c (mmap_fixed): New function.
4865         (sol_gt_pch_get_address): Use it.
4866         (sol_gt_pch_use_address): Likewise.
4867
4868 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4869
4870         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
4871         pentiumpro on Solaris 8 and 9/x86.
4872         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
4873         Document SSE/SSE2 support.
4874         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
4875
4876 2010-07-12  Andi Kleen  <ak@linux.intel.com>
4877
4878         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
4879         instead of gcc_assert to print better error message for multiple
4880         prevailing defs.
4881
4882 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
4883
4884         * config/i386/i386.c (ix86_asm_output_function_label): Change format
4885         string placeholder from 0x%x to %#x.
4886         (ix86_code_end): Use putc to output '\n'.
4887         (ix86_print_operand) <case ';'>: Use putc to output ';'.
4888
4889 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
4890
4891         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
4892         in directive -export.
4893
4894 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
4895
4896         * reginfo.h (reg_classes_intersect_p): Change arguments type to
4897         reg_class_t.
4898         * rtl.h (reg_classes_intersect_p): Adjust prototype.
4899
4900         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
4901         Remove macros.
4902         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
4903         rs6000_memory_move_cost): Remove
4904         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
4905         TARGET_MEMORY_MOVE_COST): Define.
4906         (rs6000_register_move_cost): Make static. Change arguments type from
4907         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
4908         (rs6000_memory_move_cost): Make static. Change arguments type from
4909         'enum reg_class' to reg_class_t.
4910
4911 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
4912
4913         PR middle-end/42505
4914         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
4915         lookup code into....
4916         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
4917         new functions.
4918         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
4919         * cfgloopanal.c (target_clobbered_regs): Define.
4920         (init_set_costs): Initialize target_clobbered_regs.
4921         (estimate_reg_pressure_cost): Add call_p argument.  When true,
4922         adjust the number of available registers to exclude the
4923         call-clobbered registers.
4924         * cfgloop.h (target_clobbered_regs): Declare.
4925         (estimate_reg_pressure_cost): Adjust declaration.
4926         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
4927         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
4928         (determine_set_costs): Dump target_clobbered_regs.
4929         (loop_body_includes_call): New function.
4930         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
4931         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
4932         call_p flag through.
4933         (best_gain_for_invariant): Likewise.
4934         (find_invariants_to_move): Likewise.
4935         (move_single_loop_invariants): Likewise, using already-computed
4936         has_call field.
4937
4938 2010-07-10  Richard Guenther  <rguenther@suse.de>
4939             Joern Rennecke  <joern.rennecke@embecosm.com>
4940
4941         PR debug/44832
4942         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
4943         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
4944         unless they have DECL_IGNORED_P set.
4945
4946 2010-07-10  Richard Guenther  <rguenther@suse.de>
4947
4948         PR lto/44889
4949         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
4950         helper function.
4951         (gimple_types_compatible_p): Similar to pointed-to
4952         types allow and merge a mix of complete and incomplete aggregate.
4953         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
4954         (iterative_hash_gimple_type): Adjust for that.
4955
4956 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
4957
4958         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
4959
4960 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
4961
4962         PR objc/44140
4963         * config/darwin.c (output_objc_section_asm_op): Save and restore
4964         section when outputting ObjC section list.
4965
4966 2010-07-09  Jan Hubicka  <jh@suse.cz>
4967
4968         * lto-streamer-out.c (produce_symtab): Do not write alias
4969         cgraph/varpool nodes.
4970
4971 2010-07-09  Jan Hubicka  <jh@suse.cz>
4972
4973         * tree-inline.c (declare_return_variable): Fix ICE while
4974         inlining DECL_BY_VALUE function not in SSA form
4975
4976 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
4977
4978         PR tree-optimization/44576
4979         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
4980         New.  Pull out from is_loop_prefetching_profitable to implement
4981         the trip count to ahead ratio heuristic.
4982         (mem_ref_count_reasonable_p): New.  Pull out from
4983         is_loop_prefetching_profitable to implement the instruction to
4984         memory reference ratio heuristic.  Also consider not reasonable if
4985         the memory reference count is above a threshold (to avoid
4986         explosive compilation time.
4987         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
4988         is_loop_prefetching_profitable to implement the instruction to
4989         prefetch ratio heuristic.
4990         (is_loop_prefetching_profitable): Removed.
4991         (loop_prefetch_arrays): Distribute the cost analysis across the
4992         function to allow early exit of the prefetch analysis.
4993         is_loop_prefetching_profitable is splitted into three functions,
4994         with each one called as early as possible.
4995         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
4996         number of memory references in a loop is considered too many.
4997
4998 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
4999
5000         * reload.c (find_reloads): Don't clear badop if we have a winreg
5001         alternative, but not win, and the class only has fixed regs.
5002         * hard-reg-set.h (class_only_fixed_regs): Declare.
5003         * reginfo.c (class_only_fixed_regs): New array.
5004         (init_reg_sets_1): Initialize it.
5005         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
5006         discourage alternatives using the stack pointer.
5007
5008         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
5009
5010         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
5011
5012         * config/arm/arm.md (cbranchqi4): Fix array size.
5013         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
5014         calculating length.
5015
5016 2010-07-09  Richard Guenther  <rguenther@suse.de>
5017
5018         * gimple.c (struct type_fixup_s): New struct and VEC type.
5019         (gimple_register_type_fixups): New static global.
5020         (gimple_queue_type_fixup): New function.
5021         (gimple_types_compatible_p): Queue type fixups instead of
5022         applying them here.
5023         (gimple_register_type): Apply queued fixups for the
5024         canonical type.  Empty the type fixup queue.
5025
5026 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
5027
5028         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
5029         * configure: Regenerate.
5030         * config.in: Ditto.
5031
5032 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
5033             Denys Vlasenko  <dvlasenk@redhat.com>
5034             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5035
5036         PR tree-optimization/28632
5037         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
5038         (extract_range_from_binary_expr): Further optimize
5039         BIT_AND_EXPR and BIT_IOR_EXPR.
5040
5041 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
5042
5043         * tree-if-conv.c (fold_or_predicates): New.
5044         (add_to_predicate_list): Call it.
5045
5046 2010-07-09  Richard Guenther  <rguenther@suse.de>
5047
5048         PR middle-end/44890
5049         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
5050         if base is a pointer.
5051         * tree-cfg.c (verify_expr): Update MEM_REF checking.
5052
5053 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
5054
5055         PR target/44877
5056         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
5057         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
5058         builtin mask for load/store builtins.
5059
5060 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
5061
5062         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
5063         for "lock addl".
5064         * configure: Regenerate.
5065         * config/i386/i386.c (ix86_print_operand) <case ';'>:
5066         Remove TARGET_MACHO.
5067
5068 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
5069
5070         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
5071         default ISA flags.
5072         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
5073
5074 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
5075
5076         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
5077
5078 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
5079
5080         * config/picochip/picochip.md (commsTestPort): Emit more
5081         efficient sequence for tstport instruction.
5082
5083 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
5084
5085         * config/i386/i386.c (ix86_veclib_handler): Make static.
5086
5087 2010-07-09  Richard Guenther  <rguenther@suse.de>
5088
5089         PR tree-optimization/44852
5090         * tree-ssa-alias.c: Include toplev.h for exact_log2.
5091         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
5092         in MEM_REF.
5093         (indirect_refs_may_alias_p): Likewise.
5094         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
5095
5096 2010-07-09  Richard Guenther  <rguenther@suse.de>
5097
5098         PR tree-optimization/44882
5099         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
5100         sets do conflict.
5101         (vectorizable_load): Likewise.
5102
5103 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
5104
5105         PR target/40657
5106         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
5107         All callers changed.
5108         Handle the case when we're called for the epilogue.
5109         (thumb_unexpanded_epilogue): Use it.
5110         (thumb1_expand_epilogue): Likewise.
5111
5112 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
5113
5114         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
5115         both ranges are range_int_cst_p with non-negative minimum,
5116         try harder to derive smaller range.
5117
5118 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5119
5120         * genrecog.c: Include diagnostic-core.h before toplev.h.
5121         * genoutput.c: Likewise.
5122         * genextract.c: Likewise.
5123         * genautomata.c: Likewise.
5124         * genemit.c: Likewise.
5125         * genpeep.c: Likewise.
5126         * genattrtab.c: Likewise.
5127         * genconditions.c: Likewise.
5128         * genpreds.c: Likewise.
5129
5130 2010-07-08  Andi Kleen  <ak@linux.intel.com>
5131
5132         * lto-section-in.c (lto_section_name): Add missing comma.
5133
5134 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
5135
5136         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
5137         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
5138         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
5139         (ia64_override_options): Rename to...
5140         (ia64_option_override): ... this one. Make static.
5141
5142 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5143
5144         PR middle-end/44843
5145         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
5146         pointed-to type of the offset in a MEM_REF to compute the alignment.
5147
5148 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
5149
5150         * final.c (final_scan_insn): Replace
5151         TARGET_UNWIND_INFO macro check by unwind_emit
5152         hook NULL check.
5153         * targhooks.c (default_unwind_emit): Removed.
5154         * targhooks.h (default_unwind_emit): Likewise.
5155         * target.def (unwind_emit): Set default value to NULL.
5156
5157         * config/i386/i386-protos.h (ix86_asm_output_function_label):
5158         New prototype.
5159         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
5160         for NULL fntype argument and allow 64-bit targets.
5161         (ix86_asm_output_function_label): New function.
5162         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
5163         (ix86_handle_fndecl_attribute): Likewise.
5164         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
5165         * doc/doc/tm.texi: Regenerated.
5166         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
5167         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
5168         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
5169         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
5170         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
5171         * config/elfos.h: Likewise.
5172         * config/i386/cygming.h: Likewise.
5173         * config/netbsd-aout.h: Likewise.
5174         * config/openbsd.h: Likewise.
5175         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
5176         by ix86_asm_output_function_label function call.
5177         * varasm.c (assemble_start_function): Use
5178         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
5179
5180 2010-07-08  Jan Hubicka  <jh@suse.cz>
5181
5182         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
5183         New function.
5184         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
5185         Declare.
5186         * ipa-cp.c (ipcp_estimate_growth): Use it.
5187         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
5188         Likewise.
5189
5190 2010-07-08  Jan Hubicka  <jh@suse.cz>
5191
5192         * tree-inline.c (declare_return_variable): Allocate annotation for new
5193         temporary.
5194
5195 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
5196
5197         PR tree-optimization/44710
5198         * tree-if-conv.c (parse_predicate): New.
5199         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
5200         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
5201
5202 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
5203
5204         * common.opt (ftree-loop-if-convert): New flag.
5205         * doc/invoke.texi (ftree-loop-if-convert): Documented.
5206         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
5207         when flag_tree_loop_if_convert is set.
5208
5209 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
5210
5211         * config/i386/i386.c: Use short syntax for function calls
5212         through function pointers.
5213         * config/i386/i386.md: Ditto.
5214
5215 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5216
5217         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
5218
5219 2010-07-08  Richard Guenther  <rguenther@suse.de>
5220
5221         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
5222         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
5223
5224 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
5225
5226         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
5227         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
5228         (loc_list_from_tree): Likewise.
5229         (output_loc_operands): Handle outputting DW_OP_const[48]u
5230         with loc->dtprel set.
5231         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
5232
5233 2010-07-08  Jan Hubicka  <jh@suse.cz>
5234
5235         * ipa.c: Include pointer-set.h
5236         (cgraph_externally_visible_p): New attribute ALIASED;
5237         when in LTO, hidden symbols are local unless they are aliased.
5238         (function_and_variable_visibility): Compute aliased nodes;
5239         handle LTO and hidden symbol on functions and vars.
5240         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
5241         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
5242
5243 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5244
5245         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
5246         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5247         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5248         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5249         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5250         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
5251         (ix86_gen_probe_stack_range): Likewise.
5252         (override_options): Set them.
5253         (ix86_target_stack_probe): New function.
5254         (ix86_compute_frame_layout): Force use of push instructions to
5255         save registers if stack checking with probes is enabled.
5256         (get_scratch_register_on_entry): New function.
5257         (release_scratch_register_on_entry): Likewise.
5258         (ix86_adjust_stack_and_probe): Likewise.
5259         (output_adjust_stack_and_probe): Likewise.
5260         (ix86_emit_probe_stack_range): Likewise.
5261         (output_probe_stack_range): Likewise.
5262         (ix86_expand_prologue): Emit stack checking code if static built-in
5263         stack checking is enabled.
5264         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
5265         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
5266         (output_adjust_stack_and_probe): Likewise.
5267         (output_probe_stack_range): Likewise.
5268         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
5269         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
5270         TARGET_STACK_PROBE.
5271         (allocate_stack_worker_64): Likewise.
5272         (allocate_stack): Likewise.
5273         (adjust_stack_and_probe): New insn.
5274         (probe_stack_range): Likewise.
5275
5276 2010-07-08  Richard Guenther  <rguenther@suse.de>
5277
5278         PR tree-optimization/44831
5279         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
5280         a MEM_REF preserving TBAA info of the original dereference.
5281         Dereference the original pointer if the address is not invariant.
5282         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
5283         at least one invariant address that we are going to dereference.
5284
5285 2010-07-08  Richard Guenther  <rguenther@suse.de>
5286
5287         PR tree-optimization/44861
5288         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
5289         information when building MEM_REFs.
5290         (vectorizable_load): Likewise.
5291         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
5292
5293 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5294
5295         * config/sol2-c.c: Do not include diagnostic-core.h.
5296
5297 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5298
5299         PR bootstrap/44768
5300         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
5301         with respect to current_function_decl. Pass decl of the function.
5302         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
5303         * ipa-inline.c (compute_inline_parameters): Pass decl to
5304         estimated_stack_frame_size.
5305
5306 2010-07-08  Richard Guenther  <rguenther@suse.de>
5307
5308         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
5309         New function.
5310         (valueize_refs): Call it.
5311
5312 2010-07-08  Richard Guenther  <rguenther@suse.de>
5313
5314         PR rtl-optimization/44838
5315         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
5316         SSA form do not use pointer equivalence.
5317
5318 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5319
5320         * dwarf2out.c (AT_linkage_name): Delete.
5321         (add_linkage_attr): New function.
5322         (add_linkage_name): Call it to emit the linkage attribute.
5323         (dwarf2out_finish): Likewise.
5324         (move_linkage_attr): Explicitly accept both attribute variants.
5325
5326 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5327
5328         * toplev.h: Do not include diagnostic-core.h.
5329         Include diagnostic-core.h in every file that includes toplev.h.
5330         * c-tree.h: Do not include toplev.h.
5331         * pretty-print.h: Update comment.
5332         * Makefile.in: Update dependencies.
5333         * alias.c: Include diagnostic-core.h in every file that includes
5334         toplev.h.
5335         * attribs.c: Likewise.
5336         * auto-inc-dec.c: Likewise.
5337         * bb-reorder.c: Likewise.
5338         * bt-load.c: Likewise.
5339         * caller-save.c: Likewise.
5340         * calls.c: Likewise.
5341         * cfg.c: Likewise.
5342         * cfganal.c: Likewise.
5343         * cfgbuild.c: Likewise.
5344         * cfgcleanup.c: Likewise.
5345         * cfghooks.c: Likewise.
5346         * cfgloop.c: Likewise.
5347         * combine.c: Likewise.
5348         * config/alpha/alpha.c: Likewise.
5349         * config/arc/arc.c: Likewise.
5350         * config/arm/arm.c: Likewise.
5351         * config/arm/pe.c: Likewise.
5352         * config/avr/avr.c: Likewise.
5353         * config/bfin/bfin.c: Likewise.
5354         * config/cris/cris.c: Likewise.
5355         * config/crx/crx.c: Likewise.
5356         * config/darwin-c.c: Likewise.
5357         * config/darwin.c: Likewise.
5358         * config/fr30/fr30.c: Likewise.
5359         * config/frv/frv.c: Likewise.
5360         * config/h8300/h8300.c: Likewise.
5361         * config/host-darwin.c: Likewise.
5362         * config/i386/i386.c: Likewise.
5363         * config/i386/netware.c: Likewise.
5364         * config/i386/nwld.c: Likewise.
5365         * config/i386/winnt-cxx.c: Likewise.
5366         * config/i386/winnt-stubs.c: Likewise.
5367         * config/i386/winnt.c: Likewise.
5368         * config/ia64/ia64-c.c: Likewise.
5369         * config/ia64/ia64.c: Likewise.
5370         * config/iq2000/iq2000.c: Likewise.
5371         * config/lm32/lm32.c: Likewise.
5372         * config/m32c/m32c-pragma.c: Likewise.
5373         * config/m32c/m32c.c: Likewise.
5374         * config/m32r/m32r.c: Likewise.
5375         * config/m68hc11/m68hc11.c: Likewise.
5376         * config/m68k/m68k.c: Likewise.
5377         * config/mcore/mcore.c: Likewise.
5378         * config/mep/mep-pragma.c: Likewise.
5379         * config/mep/mep.c: Likewise.
5380         * config/mmix/mmix.c: Likewise.
5381         * config/mn10300/mn10300.c: Likewise.
5382         * config/moxie/moxie.c: Likewise.
5383         * config/pa/pa.c: Likewise.
5384         * config/pdp11/pdp11.c: Likewise.
5385         * config/picochip/picochip.c: Likewise.
5386         * config/rs6000/rs6000-c.c: Likewise.
5387         * config/rs6000/rs6000.c: Likewise.
5388         * config/rx/rx.c: Likewise.
5389         * config/s390/s390.c: Likewise.
5390         * config/score/score.c: Likewise.
5391         * config/score/score3.c: Likewise.
5392         * config/score/score7.c: Likewise.
5393         * config/sh/sh.c: Likewise.
5394         * config/sh/symbian-base.c: Likewise.
5395         * config/sh/symbian-c.c: Likewise.
5396         * config/sh/symbian-cxx.c: Likewise.
5397         * config/sol2-c.c: Likewise.
5398         * config/sol2.c: Likewise.
5399         * config/sparc/sparc.c: Likewise.
5400         * config/spu/spu.c: Likewise.
5401         * config/stormy16/stormy16.c: Likewise.
5402         * config/v850/v850-c.c: Likewise.
5403         * config/v850/v850.c: Likewise.
5404         * config/vax/vax.c: Likewise.
5405         * config/vxworks.c: Likewise.
5406         * config/xtensa/xtensa.c: Likewise.
5407         * convert.c: Likewise.
5408         * cse.c: Likewise.
5409         * cselib.c: Likewise.
5410         * dbgcnt.c: Likewise.
5411         * dbxout.c: Likewise.
5412         * ddg.c: Likewise.
5413         * dominance.c: Likewise.
5414         * emit-rtl.c: Likewise.
5415         * explow.c: Likewise.
5416         * expmed.c: Likewise.
5417         * fixed-value.c: Likewise.
5418         * fold-const.c: Likewise.
5419         * fwprop.c: Likewise.
5420         * gcse.c: Likewise.
5421         * ggc-common.c: Likewise.
5422         * ggc-page.c: Likewise.
5423         * ggc-zone.c: Likewise.
5424         * gimple-low.c: Likewise.
5425         * gimplify.c: Likewise.
5426         * graph.c: Likewise.
5427         * haifa-sched.c: Likewise.
5428         * ifcvt.c: Likewise.
5429         * implicit-zee.c: Likewise.
5430         * integrate.c: Likewise.
5431         * ira-build.c: Likewise.
5432         * ira-color.c: Likewise.
5433         * ira-conflicts.c: Likewise.
5434         * ira-costs.c: Likewise.
5435         * ira-lives.c: Likewise.
5436         * ira.c: Likewise.
5437         * lists.c: Likewise.
5438         * loop-doloop.c: Likewise.
5439         * loop-iv.c: Likewise.
5440         * lto-opts.c: Likewise.
5441         * lto-symtab.c: Likewise.
5442         * main.c: Likewise.
5443         * modulo-sched.c: Likewise.
5444         * optabs.c: Likewise.
5445         * params.c: Likewise.
5446         * plugin.c: Likewise.
5447         * postreload-gcse.c: Likewise.
5448         * postreload.c: Likewise.
5449         * predict.c: Likewise.
5450         * profile.c: Likewise.
5451         * real.c: Likewise.
5452         * regcprop.c: Likewise.
5453         * reginfo.c: Likewise.
5454         * regmove.c: Likewise.
5455         * reorg.c: Likewise.
5456         * resource.c: Likewise.
5457         * rtl.c: Likewise.
5458         * rtlanal.c: Likewise.
5459         * sched-deps.c: Likewise.
5460         * sched-ebb.c: Likewise.
5461         * sched-rgn.c: Likewise.
5462         * sdbout.c: Likewise.
5463         * sel-sched-dump.c: Likewise.
5464         * sel-sched-ir.c: Likewise.
5465         * simplify-rtx.c: Likewise.
5466         * stmt.c: Likewise.
5467         * stor-layout.c: Likewise.
5468         * store-motion.c: Likewise.
5469         * targhooks.c: Likewise.
5470         * tree-cfg.c: Likewise.
5471         * tree-cfgcleanup.c: Likewise.
5472         * tree-dump.c: Likewise.
5473         * tree-eh.c: Likewise.
5474         * tree-inline.c: Likewise.
5475         * tree-nomudflap.c: Likewise.
5476         * tree-object-size.c: Likewise.
5477         * tree-optimize.c: Likewise.
5478         * tree-outof-ssa.c: Likewise.
5479         * tree-phinodes.c: Likewise.
5480         * tree-profile.c: Likewise.
5481         * tree-ssa-ccp.c: Likewise.
5482         * tree-ssa-coalesce.c: Likewise.
5483         * tree-ssa-live.c: Likewise.
5484         * tree-ssa-loop-niter.c: Likewise.
5485         * tree-ssa-loop-prefetch.c: Likewise.
5486         * tree-ssa-loop.c: Likewise.
5487         * tree-ssa-structalias.c: Likewise.
5488         * tree-ssa-uninit.c: Likewise.
5489         * tree-ssa.c: Likewise.
5490         * tree-vect-data-refs.c: Likewise.
5491         * tree-vect-loop-manip.c: Likewise.
5492         * tree-vect-loop.c: Likewise.
5493         * tree-vect-patterns.c: Likewise.
5494         * tree-vect-stmts.c: Likewise.
5495         * tree-vrp.c: Likewise.
5496         * varasm.c: Likewise.
5497         * vec.c: Likewise.
5498         * web.c: Likewise.
5499         * xcoffout.c: Likewise.
5500
5501 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
5502
5503         * gengtype.c (write_field_root): New function.
5504         (write_root): Use it.
5505
5506 2010-07-07  Wei Guozhi  <carrot@google.com>
5507
5508         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
5509         of lowest bits to lshift/compare): Add a missing line.
5510
5511 2010-07-07  Wei Guozhi  <carrot@google.com>
5512
5513         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
5514         of lowest bits to lshift/compare): New.
5515
5516 2010-07-07  Tom Tromey  <tromey@redhat.com>
5517
5518         * doc/tm.texi: Update.
5519         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
5520         Add @hook.
5521         * target.def (want_debug_pub_sections): New hook.
5522         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
5523         * dwarf2out.c (add_pubname_string): Check
5524         targetm.want_debug_pub_sections.
5525         (add_pubname): Likewise.
5526         (add_pubtype): Likewise.
5527
5528 2010-07-07  Jie Zhang  <jie@codesourcery.com>
5529
5530         * genautomata.c (output_automata_list_min_issue_delay_code):
5531         Correctly decompress min_issue_delay.
5532
5533 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
5534
5535         PR rtl-optimization/44404
5536         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
5537         possible, use reg_overlap_mentioned_p instead.
5538
5539 2010-07-07  Duncan Sands  <baldrick@free.fr>
5540
5541         PR middle-end/41355
5542         * tree.c (build_function_type_skip_args): Copy the original type using
5543         build_distinct_type_copy rather than copy_node.
5544
5545 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
5546
5547         PR target/44850
5548         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
5549         revision 161876.
5550         (ix86_expand_prologue): Likewise.
5551         (ix86_handle_fndecl_attribute): Likewise.
5552         (ix86_asm_declare_function_name): Likewise.
5553         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5554         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5555         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
5556         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
5557         * doc/extend.texi: Likewise.
5558
5559 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
5560
5561         PR target/44844
5562         * config/i386/i386.md (rdrand<mode>): Changed to expand to
5563         retry if the carry flag isn't valid.
5564         (rdrand<mode>_1): New.
5565
5566 2010-07-07  Richard Guenther  <rguenther@suse.de>
5567
5568         PR middle-end/44790
5569         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
5570         for expanding the constant offset for MEM_REFs.
5571
5572 2010-07-07  Richard Guenther  <rguenther@suse.de>
5573
5574         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
5575         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
5576         * gimple.h (is_gimple_operand): Remove.
5577         * gimple.c (is_gimple_operand): Likewise.
5578         (walk_gimple_op): Fix wi->val_only setting for calls.
5579         * tree-cfg.c (verify_gimple_call): Fix argument validation.
5580         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
5581         invalid gimple calls.
5582
5583 2010-07-06  Jan Hubicka  <jh@suse.cz>
5584
5585         * lto-cgraph.c (output_cgraph): Add missing declaration.
5586
5587 2010-07-06  Jan Hubicka  <jh@suse.cz>
5588
5589         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
5590         partition.
5591
5592 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
5593
5594         * doc/gimple.texi (GIMPLE_DEBUG): Document.
5595         * doc/rtl.texi (Debug Information): New node.
5596         (NOTE_INSN_VAR_LOCATION): Document.
5597         (debug_insn): Likewise.
5598         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
5599
5600 2010-07-07  Jan Hubicka  <jh@suse.cz>
5601
5602         With parts by Richard Guenther.
5603
5604         PR middle-end/44813
5605         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
5606         for functions passed by reference.
5607         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
5608         in memory when passed by reference.
5609         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
5610         beggining.
5611         * ipa-split.c (split_function): Cleanup way return value is passed;
5612         handle SSA DECL_BY_REFERENCE retvals.
5613         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
5614         DECL_BY_REFERENCE is set.
5615         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
5616         find_what_p_points_to): Handle RESULT_DECL.
5617         * tree-inline.c (declare_return_variable): Get new entry_block argument;
5618         when passing by reference ensure that RESULT_DECL is gimple_val.
5619         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
5620         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
5621
5622 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
5623
5624         PR rtl-optimization/44787
5625         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
5626         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
5627
5628 2010-07-06  Jan Hubicka  <jh@suse.cz>
5629
5630         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
5631         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
5632         with body can prevail.
5633         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
5634         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
5635         * cgraph.c (cgraph_get_node_or_alias): New function.
5636         * cgraph.h (cgraph_get_node_or_alias): Declare.
5637
5638 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
5639
5640         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
5641         support.
5642         (ix86_expand_prologue): Likewise.
5643         (ix86_handle_fndecl_attribute): Likewise.
5644         (ix86_asm_declare_function_name): New function for
5645         ASM_DECLARE_FUNCTION_NAME.
5646         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
5647         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
5648         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
5649         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
5650         * doc/extend.texi: Adjust documentation about ms_hook_prologue
5651         attribute.
5652
5653 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
5654
5655         * config/i386/i386.md (immediate_operand): New mode attribute.
5656
5657         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
5658         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
5659         using P mode iterator.
5660         (pro_epilogue_adjust_stack_di_2): Rename from
5661         pro_epilogue_adjust_stack_rex64_2.
5662
5663         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
5664
5665 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
5666
5667         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
5668         through gen_mov_insv_1 function pointer.
5669         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
5670         gen_truncxf<mode>2 through gen_truncxf function pointer.
5671         (remainder<mode>3): Ditto.
5672         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
5673         (allocate_stack): Call gen_allocate_stack_worker_64 or
5674         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
5675         function pointer.
5676         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
5677         function pointer.
5678
5679 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
5680
5681         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
5682         operand constraint instead of <r><i>m.
5683
5684 2010-07-06  Richard Guenther  <rguenther@suse.de>
5685
5686         PR middle-end/44828
5687         * convert.c (convert_to_integer): Watch out for overflowing
5688         MULT_EXPR as well.
5689
5690 2010-07-05  Jan Hubicka  <jh@suse.cz>
5691
5692         * lto-streamer.c (write_symbol_vec): Rename to ...
5693         (write_symbol) ... this one; write only symbol given and when
5694         present in cache. Sanity check that what is defined is present
5695         in cgraph/varpool with body/finalized decl.
5696         (write_symbols_of_kind): Remove.
5697         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
5698         pairs to produce symtab.
5699         (produce_asm_for_decls): Update call of produce_symtab; don't do so
5700         when doing WPA streaming.
5701
5702 2010-07-05  Jan Hubicka  <jh@suse.cz>
5703
5704         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
5705         function is still available to fold into.
5706
5707 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
5708
5709         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
5710         * function.h (struct_function): Change type of local_decls field
5711         to a VEC.
5712         (add_local_decl): New function.
5713         (FOR_EACH_LOCAL_DECL): New macro.
5714         * cfgexpand.c (init_vars_expansion): Adjust for new type of
5715         cfun->local_decls.
5716         (estimated_stack_frame_size): Likewise.
5717         (expand_used_vars): Likewise.
5718         * cgraphbuild.c (build_cgraph_edges): Likewise.
5719         * function.c (instantiate_decls_1): Likewise.
5720         * ipa-struct-reorg.c (build_data_structure): Likewise.
5721         * ipa-type-escape.c (analyze_function): Likewise.
5722         * lto-streamer-in.c (input_function): Likewise.
5723         * lto-streamer-out.c (output_function): Likewise.
5724         * tree-ssa-live.c (remove_unused_locals): Likewise.
5725         * tree.c (free_lang_data_in_decl): Likewise.
5726         (find_decls_types_in_node): Likewise.
5727         * omp-low.c (remove_exit_barrier): Likewise.
5728         (expand_omp_taskreg): Likewise.
5729         (list2chain): Rename to...
5730         (vec2chain): ...this.  Adjust.
5731         * cgraphunit.c (assemble_thunk): Call add_local_decl.
5732         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
5733         * gimple-low.c (record_vars_into): Likewise.
5734         * tree-inline.c (remap_decls): Likewise.
5735         (declare_return_variable): Likewise.
5736         (declare_inline_vars): Likewise.
5737         (copy_forbidden): Adjust for new type of cfun->local_decls.
5738         (add_local_variables): New function.
5739         (expand_call_inline): Call it.
5740         (tree_function_versioning): Likewise.
5741
5742 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
5743
5744         AVX Programming Reference (June, 2010)
5745         * config/i386/cpuid.h (bit_F16C): New.
5746         (bit_RDRND): Likewise.
5747         (bit_FSGSBASE): Likewise.
5748
5749         * config/i386/i386-builtin-types.def: Add
5750         "DEF_FUNCTION_TYPE (UINT16)", function types for
5751         float16 <-> float conversions and
5752         "DEF_FUNCTION_TYPE (VOID, UINT64)".
5753
5754         * config/i386/i386-c.c (ix86_target_macros_internal): Support
5755         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
5756         OPTION_MASK_ISA_F16C.
5757
5758         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
5759         (OPTION_MASK_ISA_RDRND_SET): Likewise.
5760         (OPTION_MASK_ISA_F16C_SET): Likewise.
5761         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
5762         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
5763         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
5764         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
5765         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
5766         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
5767         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
5768         (override_options): Handle them.
5769         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
5770         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
5771         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
5772         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
5773         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
5774         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
5775         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
5776         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
5777         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
5778         (bdesc_args): Likewise.
5779         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
5780         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
5781         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
5782         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
5783         Handle non-memory store.
5784
5785         * config/i386/i386.h (TARGET_FSGSBASE): New.
5786         (TARGET_RDRND): Likewise.
5787         (TARGET_F12C): Likewise.
5788
5789         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
5790         (UNSPEC_VCVTPS2PH): Likewise.
5791         (UNSPECV_RDFSBASE): Likewise.
5792         (UNSPECV_RDGSBASE): Likewise.
5793         (UNSPECV_WRFSBASE): Likewise.
5794         (UNSPECV_WRGSBASE): Likewise.
5795         (UNSPECV_RDRAND): Likewise.
5796         (rdfsbase<mode>): Likewise.
5797         (rdgsbase<mode>): Likewise.
5798         (wrfsbase<mode>): Likewise.
5799         (wrgsbase<mode>): Likewise.
5800         (rdrand<mode>): Likewise.
5801
5802         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
5803
5804         * config/i386/immintrin.h (_rdrand_u16): New.
5805         (_rdrand_u32): Likewise.
5806         (_readfsbase_u32): Likewise.
5807         (_readfsbase_u64): Likewise.
5808         (_readgsbase_u32): Likewise.
5809         (_readgsbase_u64): Likewise.
5810         (_writefsbase_u32): Likewise.
5811         (_writefsbase_u64): Likewise.
5812         (_writegsbase_u32): Likewise.
5813         (_writegsbase_u64): Likewise.
5814         (_rdrand_u64): Likewise.
5815         (_cvtsh_ss): Likewise.
5816         (_mm_cvtph_ps): Likewise.
5817         (_mm256_cvtph_ps): Likewise.
5818         (_cvtss_sh): Likewise.
5819         (_mm_cvtps_ph): Likewise.
5820         (_mm256_cvtps_ph): Likewise.
5821
5822         * config/i386/sse.md (vcvtph2ps): New.
5823         (*vcvtph2ps_load): Likewise.
5824         (vcvtph2ps256): Likewise.
5825         (vcvtps2ph): Likewise.
5826         (*vcvtps2ph): Likewise.
5827         (*vcvtps2ph_store): Likewise.
5828         (vcvtps2ph256): Likewise.
5829
5830         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
5831
5832         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
5833
5834 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
5835
5836         PR bootstrap/44512
5837         * genenums.c (main): Output include of insn-constants.h
5838         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
5839
5840 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
5841
5842         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
5843         (override_options): Initialize it.
5844         (ix86_expand_prologue): Use it.
5845
5846 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
5847
5848         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
5849
5850 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
5851
5852         * double-int.h (fit_double_type): Remove declaration.
5853         * double-int.c (fit_double_type): Remove function.
5854         * tree.h (int_fits_type_p): Adjust prototype.
5855         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
5856         instead of fit_double_type.
5857         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
5858         instead of fit_double_type and build_int_cst_wide.
5859         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
5860         instead of fit_double_type and build_int_cst_wide.
5861         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
5862         of fit_double_type.
5863
5864 2010-07-05  Jan Hubicka  <jh@suse.cz>
5865
5866         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
5867         in_other_partition.
5868         * lto-cgraph.c (referenced_from_other_partition_p,
5869         reachable_from_other_partition_p): Use in_other_partition flags.
5870         (output_node, output_varpool_node): COMDAT nodes always have private
5871         copies and thus are never used from other partition.
5872
5873 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
5874
5875         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
5876         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
5877         * config/ia64/ia64.c Include reload.h.
5878         (ia64_memory_move_cost): New function.
5879         (TARGET_MEMORY_MOVE_COST): Define.
5880         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
5881         memory_move_cost.
5882
5883 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
5884
5885         PR middle-end/42505
5886         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
5887         comments about cost model.
5888         (try_add_cand_for):  Add second strategy for choosing initial set
5889         based on original IVs, controlled by ORIGINALP argument.
5890         (get_initial_solution): Add ORIGINALP argument.
5891         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
5892         (find_optimal_iv_set): Try two different strategies for choosing
5893         the IV set, and return the one with lower cost.
5894
5895 2010-07-05  Richard Guenther  <rguenther@suse.de>
5896
5897         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
5898
5899 2010-07-05  Richard Guenther  <rguenther@suse.de>
5900
5901         * tree.c (reference_alias_ptr_type): New function.
5902         * tree.h (reference_alias_ptr_type): Declare.
5903         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
5904         allow non-TARGET_MEM_REF new refs.
5905         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
5906         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
5907         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
5908         (create_mem_ref): Get alias pointer type.  Adjust calls to
5909         create_mem_ref_raw.
5910         (maybe_fold_tmr): Likewise.
5911         * tree-flow.h (create_mem_ref): Adjust prototype.
5912
5913 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
5914
5915         PR c++/44808
5916         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
5917         *from_p is VAR_DECL.
5918
5919 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
5920
5921         * tree.h (build_call_list): Remove.
5922         * tree.c (build_call_list): Remove.
5923
5924 2010-07-05  Richard Guenther  <rguenther@suse.de>
5925
5926         * double-int.h (double_int_sub): Declare.
5927         * double-int.c (double_int_sub): New function.
5928         * dwarf2out.c (field_byte_offset): Use it.
5929         * fixed-value.c (do_fixed_add): Likewise.
5930         (do_fixed_multiply): Likewise.
5931         (do_fixed_divide): Likewise.
5932         * tree-predcom.c (add_ref_to_chain): Likewise.
5933         (determine_roots_comp): Likewise.
5934         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
5935
5936 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
5937
5938         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
5939         implementations.
5940
5941 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
5942
5943         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
5944         * arm-modes.def (CC_NOTB): Don't define.
5945         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
5946         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
5947         (LTUGEU): New code_iterator.
5948         (cnb, optab): New corresponding code_attrs.
5949         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
5950         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
5951         using LTUGEU.
5952         (addsi3_carryin_shift_<optab>): Likewise.
5953         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
5954         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
5955         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
5956         (subsi3_compare): Renamed from subsi3_compare0_c.
5957         Change CC_NOTB to CC.
5958         (arm_subsi3_insn): Allow constants for operand 0.
5959         (compare_scc peephole for eq case): New.
5960         (compare_scc splitters): Change CC_NOTB to CC.
5961
5962 2010-07-05  Richard Guenther  <rguenther@suse.de>
5963
5964         * tree-ssa-loop-im.c (for_each_index): Do not handle
5965         ALIGN_INDIRECT_REF.
5966         (gen_lsm_tmp_name): Likewise.
5967         * tree-dump.c (dequeue_and_dump): Likewise.
5968         * tree-pretty-print.c (dump_generic_node): Likewise.
5969         (op_code_prio): Likewise.
5970         (op_symbol_code): Likewise.
5971         * tree.c (staticp): Likewise.
5972         (build1_stat): Likewise.
5973         * tree.h (INDIRECT_REF_P): Likewise.
5974         * fold-const.c (maybe_lvalue_p): Likewise.
5975         (operand_equal_p): Likewise.
5976         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5977         (ao_ref_init_from_vn_reference): Likewise.
5978         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
5979         (find_interesting_uses_address): Likewise.
5980         * dwarf2out.c (loc_list_from_tree): Likewise.
5981         * gimplify.c (gimplify_expr): Likewise.
5982         * tree-eh.c (tree_could_trap_p): Likewise.
5983         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
5984         * cfgexpand.c (expand_debug_expr): Likewise.
5985         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
5986         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
5987         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
5988         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
5989         * tree-ssa-operands.c (get_expr_operands): Likewise.
5990         * expr.c (safe_from_p): Likewise.
5991         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
5992         * tree-vect-data-refs.c (vect_setup_realignment): Build
5993         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
5994         * tree-vect-stmts.c (vectorizable_load): Likewise.
5995         * tree.def (ALIGN_INDIRECT_REF): Remove.
5996
5997 2010-07-05  Richard Guenther  <rguenther@suse.de>
5998
5999         PR tree-optimization/44784
6000         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
6001         for inserted stmts.
6002         (find_or_generate_expression): Fix SCCVN insertion check.
6003
6004 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
6005
6006         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
6007         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
6008         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
6009         directives.
6010
6011 2010-07-05  Ira Rosen  <irar@il.ibm.com>
6012
6013         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
6014         statements that are not vectorized.
6015         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
6016         in INSIDE_COST.
6017
6018 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
6019
6020         PR bootstrap/44820
6021         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
6022
6023 2010-07-05  Richard Guenther  <rguenther@suse.de>
6024
6025         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
6026         RESULT_DECLs properly.
6027
6028 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
6029
6030         PR rtl-optimization/44695
6031         * config/i386/i386.md (extract_code): Removed.
6032         (<u>divmodqi4): Likewise.
6033         (divmodqi4): New.
6034         (udivmodqi4): Likewise.
6035         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
6036         (udivmodhiqi3): Likewise.
6037
6038 2010-07-04  Jan Hubicka  <jh@suse.cz>
6039
6040         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
6041
6042 2010-07-04  Jan Hubicka  <jh@suse.cz>
6043
6044         * cgraphunit.c (init_cgraph): Only initialize dump file if it
6045         is not already initialized.
6046
6047 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
6048
6049         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
6050         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
6051         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
6052         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
6053         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
6054         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
6055         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
6056         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
6057         (sync_new_nand_optab): Redefine as macros.
6058         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
6059         Delete.
6060         (direct_optab_index): New enum.
6061         (direct_optab_d): New structure.
6062         (direct_optab): New typedef.
6063         (direct_optab_table): Declare.
6064         (direct_optab_handler, set_direct_optab_handler): New functions.
6065         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
6066         (sync_lock_release_optab): New macros.
6067         * optabs.c (direct_optab_table): New variable.
6068         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
6069         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
6070         cmpstr_optab and cmpstrn_optab.
6071         (emit_conditional_move): Likewise for movcc_optab.
6072         (can_conditionally_move_p): Likewise for movcc_gen_code.
6073         (init_insn_codes): Clear direct_optab_table.
6074         (init_optabs): Don't initialize the new "direct optabs" here.
6075         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
6076         vcond_gen_code.
6077         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
6078         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
6079         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
6080         (expand_sync_operation): Likewise other sync_*_optabs.
6081         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
6082         to sync_compare_and_swap_optab.
6083         (expand_sync_lock_test_and_set): Use direct_optab_handler for
6084         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
6085         to the names of both.
6086         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
6087         cmpstr_optab and cmpstrn_optab.
6088         (expand_builtin_lock_release): Likewise sync_lock_release.
6089         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
6090         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
6091         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
6092         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
6093         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
6094         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
6095         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
6096         (sync_lock_test_and_set, sync_lock_release): Delete.
6097         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
6098         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
6099         * genopinit.c (optabs): Use set_direct_optab_handler for the new
6100         macro optabs.
6101         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
6102         the "optab" local variable.  Use direct_optab_handler for optab and
6103         sync_compare_and_swap_optab.
6104         * reload1.c (reload_in_optab, reload_out_optab): Delete.
6105         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
6106         reload_in_optab and reload_out_optab.
6107         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
6108         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
6109         * config/pa/pa.c (pa_secondary_reload): Likewise.
6110         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
6111         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
6112         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
6113         (VMSupportsCS8_builtin): Likewise.
6114
6115 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
6116
6117         * optabs.h (optab_handlers): Change type of insn_code to int.
6118         (optab_handler, set_optab_handler, convert_optab_handler)
6119         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
6120         CODE_FOR_nothing".
6121         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
6122         (init_insn_codes): Zero both the above arrays.
6123         (init_optabs): Never call init_insn_codes first time around.
6124
6125 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
6126
6127         * optabs.h (optab_handler, convert_optab_handler): Turn into
6128         inline functions that return an insn code.
6129         (set_optab_handler, set_convert_optab_handler): New functions.
6130         * builtins.c: Replace optab_handler(X)->insn_code with
6131         optab_handler or set_optab_handler thoughout.  Likewise
6132         convert_optab_handler(X)->insn_code with convert_optab_handler
6133         and set_convert_optab_handler.
6134         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
6135         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
6136         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
6137         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
6138         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
6139         config/spu/spu.c: Likewise.
6140
6141 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
6142
6143         PR target/44531
6144         * config.gcc (sh*-*-*): Use regular expressions instead of
6145         the 'i' modifier for sed substitutions.
6146
6147 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
6148
6149         * gimple.c (gimple_body): Comments added.
6150
6151 2010-07-04  Richard Guenther  <rguenther@suse.de>
6152
6153         PR middle-end/44809
6154         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
6155         of an INDIRECT_REF.
6156
6157 2010-07-04  Richard Guenther  <rguenther@suse.de>
6158
6159         PR tree-optimization/44479
6160         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
6161         extra SSA name copy statements which preserves points-to
6162         information.
6163         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6164         Copy points-to information for all pointers.  Properly handle
6165         MEM_REFs.
6166         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
6167         copy statements.
6168         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
6169         dependency.
6170
6171 2010-07-04  Richard Guenther  <rguenther@suse.de>
6172
6173         PR middle-end/44785
6174         * tree-inline.c (initialize_inlined_parameters): Do not
6175         re-use pointer-map slot over remap_type call.
6176
6177 2010-07-04  Richard Guenther  <rguenther@suse.de>
6178
6179         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
6180
6181 2010-07-04  Richard Guenther  <rguenther@suse.de>
6182
6183         PR tree-optimization/44656
6184         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
6185         again after value-replacing in the defintions lhs.
6186
6187 2010-07-04  Ira Rosen  <irar@il.ibm.com>
6188             Revital Eres  <eres@il.ibm.com>
6189
6190         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
6191         Document new arguments.
6192         * doc/tm.texi: Regenerate.
6193         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
6194         Handle unaligned store.
6195         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
6196         * target.def (builtin_vectorization_cost): Add new arguments.
6197         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
6198         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
6199         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
6200         (vect_vfa_segment_size): Fix indentation.
6201         * tree-vectorizer.h (struct _vect_peel_info): New.
6202         (struct _vect_peel_extended_info): New.
6203         (struct _loop_vec_info): Add new field for peeling hash table and a
6204         macro for its access.
6205         (VECT_MAX_COST): Define.
6206         (vect_get_load_cost): Declare.
6207         (vect_get_store_cost, vect_get_known_peeling_cost,
6208         vect_get_single_scalar_iteraion_cost): Likewise.
6209         (vect_supportable_dr_alignment): Add new argument.
6210         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
6211         field.
6212         (destroy_loop_vec_info): Free peeling hash table.
6213         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
6214         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
6215         vect_analyze_slp. Fix indentation.
6216         (vect_get_single_scalar_iteraion_cost): New function.
6217         (vect_get_known_peeling_cost): Likewise.
6218         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
6219         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
6220         statement. Move outside cost calculation inside unknown peeling case.
6221         Call vect_get_known_peeling_cost for known amount of peeling.
6222         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
6223         reference to the print message of forced alignment.
6224         (vect_verify_datarefs_alignment): Update call to
6225         vect_supportable_dr_alignment.
6226         (vect_get_data_access_cost): New function.
6227         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
6228         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
6229         vect_peeling_hash_choose_best_peeling): Likewise.
6230         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
6231         to store all the accesses in the loop and find best possible access to
6232         align using peeling for known alignment case. For unknown alignment
6233         check if stores are preferred or if peeling is worthy.
6234         (vect_find_same_alignment_drs): Analyze pairs of loads too.
6235         (vect_supportable_dr_alignment): Add new argument and check aligned
6236         accesses according to it.
6237         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
6238         (cost_for_stmt): Call vect_get_stmt_cost.
6239         (vect_model_simple_cost): Likewise.
6240         (vect_model_store_cost): Call vect_get_stmt_cost. Call
6241         vect_get_store_cost to calculate the cost of the statement.
6242         (vect_get_store_cost): New function.
6243         (vect_model_load_cost): Call vect_get_stmt_cost. Call
6244         vect_get_load_cost to calculate the cost of the statement.
6245         (vect_get_load_cost): New function.
6246         (vectorizable_store): Update call to vect_supportable_dr_alignment.
6247         (vectorizable_load): Likewise.
6248         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
6249         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
6250         arguments. Handle unaligned store.
6251         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
6252         (rs6000_builtin_support_vector_misalignment): Return true for word and
6253         double word alignments for VSX.
6254         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
6255         vect_supportable_dr_alignment and builtin_vectorization_cost.
6256
6257 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6258
6259         PR target/44597
6260         * config/pa/predicates.md (prefetch_cc_operand): Remove.
6261         (prefetch_nocc_operand): Likewise.
6262         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
6263         (prefetch_20): New insn.
6264         (prefetch_cc): Remove.
6265         (prefetch_nocc): Likewise.
6266
6267 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6268
6269         * expr.c (vector_mode_valid_p): Move to c-common.c.
6270         * expr.h (vector_mode_valid_p): Do not declare here.
6271         * system.h: Poison GCC_EXPR_H in front-ends.
6272         * Makefile.in: Update dependencies.
6273
6274 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6275
6276         PR target/44705
6277         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
6278
6279 2010-07-03  Jan Hubicka  <jh@suse.cz>
6280
6281         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
6282         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
6283         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
6284         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
6285         Likewise.
6286
6287         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
6288         Update timevars.V
6289         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
6290         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
6291         TV_IPA_LTO_DECL_OUT): New.
6292         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
6293
6294 2010-07-03  Jan Hubicka  <jh@suse.cz>
6295
6296         * ipa-inline.c (update_edge_key): Break out from ...
6297         update_callers_keys): ... here;
6298         (update_callee_keys): Update only the edges from caller to callee.
6299         (update_all_calle_keys): Do what update_calle_keys did.
6300         (decide_inlining_of_small_functions): Avoid recomputing of all
6301         callees when badness increase.
6302
6303 2010-07-03  Jie Zhang  <jie@codesourcery.com>
6304
6305         * config/arm/arm.c (arm_attr_length_move_neon): New.
6306         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
6307         * config/arm/neon.md (define_mode_attr V_slen): Remove.
6308         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
6309         to compute length attribute.
6310
6311 2010-07-03  Jie Zhang  <jie@codesourcery.com>
6312
6313         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
6314         as predicate for operand 1 and remove its constraint.
6315         * config/arm/predicates.md (vfp_register_operand): New.
6316         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
6317         (*push_fp_multi): Likewise.
6318
6319 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
6320
6321         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
6322
6323 2010-07-03  Jan Hubicka  <jh@suse.cz>
6324
6325         * config/i386/i386.c (override_options): Revert accidental commit.
6326
6327 2010-07-02  Le-Chun Wu  <lcwu@google.com>
6328
6329         PR c++/44128
6330         * doc/invoke.texi: Update documentation of -Wshadow.
6331
6332 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
6333             Julian Brown  <julian@codesourcery.com>
6334             Sandra Loosemore <sandra@codesourcery.com>
6335
6336         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
6337         comparisons.  Adjust to take both operands.
6338         (arm_select_cc_mode): Handle DImode comparisons.
6339         (arm_gen_compare_reg): Generate a scratch register for DImode
6340         comparisons which require one.  Use xor for Thumb equality checks.
6341         (arm_const_double_by_immediates): New.
6342         (arm_print_operand): Allow 'Q' and 'R' for constants.
6343         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
6344         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
6345         arm_canonicalize_comparison.
6346         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
6347         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
6348         prototype.
6349         (arm_const_double_by_immediates): Declare.
6350         * config/arm/constraints.md (Di): New constraint.
6351         * config/arm/predicates.md (arm_immediate_di_operand)
6352         (arm_di_operand, cmpdi_operand): New.
6353         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
6354         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
6355         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
6356         (cstoredi4): Handle non-Cirrus also.
6357
6358 2010-07-02  Julian Brown  <julian@codesourcery.com>
6359             Sandra Loosemore <sandra@codesourcery.com>
6360
6361         PR target/43703
6362         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
6363         (smax<mode>3): Disable for NEON float modes when
6364         flag_unsafe_math_optimizations is false.
6365         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
6366         (*mul<mode>3_neon)
6367         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
6368         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
6369         for NEON float modes when flag_unsafe_math_optimizations is false.
6370         (quad_halves_<code>v4sf): Only enable if
6371         flag_unsafe_math_optimizations is true.
6372         * doc/invoke.texi (ARM Options): Add note about floating point
6373         vectorization requiring -funsafe-math-optimizations.
6374
6375 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
6376             Julian Brown  <julian@codesourcery.com>
6377
6378         * config/arm/neon.md (UNSPEC_VABA): Delete.
6379         (UNSPEC_VABAL): Delete.
6380         (UNSPEC_VABS): Delete.
6381         (UNSPEC_VMUL_N): Delete.
6382         (adddi3_neon): New.
6383         (subdi3_neon): New.
6384         (mul<mode>3add<mode>_neon): Make the pattern named.
6385         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
6386         (neon_vadd<mode>): Replace with define_expand, and move the remaining
6387         unspec parts...
6388         (neon_vadd<mode>_unspec): ...to this.
6389         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
6390         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
6391         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
6392         (neon_vaba<mode>): Rewrite in terms of vabd.
6393         (neon_vabal<mode>): Rewrite in terms of vabdl.
6394         (neon_vabs<mode>): Rewrite without unspec.
6395         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
6396         (*arm_subdi3): Likewise.
6397         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
6398         No_op attribute to disable assembly output checks.
6399         * config/arm/arm_neon.h: Regenerated.
6400         * doc/arm-neon-intrinsics.texi: Regenerated.
6401
6402 2010-07-02  Jan Hubicka  <jh@suse.cz>
6403
6404         * ipa-split.c (split_function): For aggregate values, set the return
6405         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
6406         *<retval> = fncall.part ().
6407         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
6408
6409 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
6410
6411         * config/arm/neon.md (UNSPEC_VAND): Delete.
6412         (UNSPEC_VBIC): Delete.
6413         (UNSPEC_VCLZ): Delete.
6414         (UNSPEC_VCNT): Delete.
6415         (UNSPEC_VEOR): Delete.
6416         (UNSPEC_VORN): Delete.
6417         (UNSPEC_VORR): Delete.
6418         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
6419         core registers too.
6420         (anddi3_neon): Likewise.
6421         (orndi3_neon): Likewise.
6422         (bicdi3_neon): Likewise.
6423         (xordi3_neon): Likewise.
6424         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
6425         rid of unspec and handle unused operand.
6426         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
6427         * config/arm/predicates.md (imm_for_neon_logic_operand):
6428         Require TARGET_NEON.
6429         (imm_for_neon_inv_logic_operand): Likewise.
6430         * config/arm/arm.md (define_split for logical_binary_operator):
6431         Disable for NEON registers.
6432         (anddi3): Add new define_expand, and rename the insn.  Disable
6433         this insn for NEON, where anddi3_neon now applies.
6434         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
6435         (iordi3): As for anddi3.
6436         (xordi3): Likewise.
6437         * config/arm/neon.ml (Vand): Split DImode variants and mark them
6438         as No_op to disable testing for exact instruction match.
6439         (Vorr): Likewise.
6440         (Veor): Likewise.
6441         (Vbic): Likewise.
6442         (Vorn): Likewise.
6443         * config/arm/arm_neon.h: Regenerated.
6444         * doc/arm-neon-intrinsics.texi: Regenerated.
6445
6446 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
6447
6448         * expr.h (emit_stack_probe): Declare.
6449         * explow.c (emit_stack_probe): Make global.
6450         (anti_adjust_stack_and_probe): Fix comments.
6451         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
6452         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6453         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6454         * config/sparc/sparc.c: Include except.h.
6455         (sparc_emit_probe_stack_range): New function.
6456         (output_probe_stack_range): Likewise.
6457         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
6458         built-in stack checking is enabled.
6459         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
6460         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
6461         (probe_stack_range): New insn.
6462
6463 2010-07-02  Richard Guenther  <rguenther@suse.de>
6464
6465         PR target/43958
6466         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
6467         for argument alignment.
6468
6469 2010-07-02  Jan Hubicka  <jh@suse.cz>
6470
6471         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
6472         walk backwards from entry_bb to check only those basic block of header
6473         that might lead to execution of split part.
6474         (consider_split) ... here.
6475         (find_return_bb): Allow assignment in return BB.
6476         (find_retval): New.
6477         (split_function): Fix name of cloned function; take care of updating
6478         return value in return_bb containing move.
6479
6480 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
6481
6482         PR target/44771
6483         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
6484         used variable insn.
6485
6486 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
6487
6488         * implicit-zee.c (combine_reaching_defs): Fix long lines.
6489         (is_set_with_extension_DI): Delete.
6490         (struct zero_extend_info): New structure.
6491         (add_removable_zero_extend): New function.
6492         (find_removable_zero_extends): Use note_stores to find SETs.
6493         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
6494
6495 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
6496
6497         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
6498         is_miss_rate_acceptable. Pull total_positions computation
6499         out of the loops.  Early return if miss_positions exceeds
6500         the acceptable threshold.
6501         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
6502         is_miss_rate_acceptable after renaming of compute_miss_rate.
6503
6504 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
6505
6506         PR middle-end/44576
6507         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
6508         of 1000) for miss rate if the address diference is greater than or
6509         equal to the cache line size (the two reference will never hit the
6510         same cache line).
6511
6512 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
6513
6514         PR target/42835
6515         * config/arm/arm-modes.def (CC_NOTB): New mode.
6516         * config/arm/arm.c (get_arm_condition_code): Handle it.
6517         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
6518         * config/arm/arm.md (subsi3_compare0_c): New pattern.
6519         (compare_scc): Now a define_and_split.  Add a number of extra
6520         splitters before it.
6521
6522         PR target/42172
6523         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
6524         and ZERO_EXTEND.
6525         (arm_rtx_costs_1): Likewise.
6526         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
6527         * config/arm/arm.md (is_arch6): New attribute.
6528         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
6529         extendqisi2): Tighten the code somewhat, avoiding invalid
6530         RTL to occur in the expander patterns.
6531         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
6532         (thumb1_zero_extendhisi2_v6): Delete.
6533         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
6534         (thumb1_extendhisi2_v6): Delete.
6535         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
6536         (thumb1_extendqisi2_v6): Delete.
6537         (zero_extendhisi2 for register input splitter): New.
6538         (zero_extendqisi2 for register input splitter): New.
6539         (thumb1_extendhisi2 for register input splitter): New.
6540         (extendhisi2 for register input splitter): New.
6541         (extendqisi2 for register input splitter): New.
6542         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
6543         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
6544         and add support for a register alternative requiring a split.
6545         (thumb1_zero_extendqisi2): Likewise.
6546         (arm_zero_extendqisi2): Likewise.
6547         (arm_extendhisi2): Likewise.
6548         (arm_extendqisi2): Likewise.
6549
6550 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
6551
6552         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
6553         instead of an unspec.
6554         (neon_expand_vector_init): Likewise.
6555         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
6556         (UNSPEC_VDUP_LANE): Delete.
6557         (UNSPEC VDUP_N): Delete.
6558         (UNSPEC_VGET_HIGH): Delete.
6559         (UNSPEC_VGET_LANE): Delete.
6560         (UNSPEC_VGET_LOW): Delete.
6561         (UNSPEC_VMVN): Delete.
6562         (UNSPEC_VSET_LANE): Delete.
6563         (V_double_vector_mode): New.
6564         (vec_set<mode>_internal): Make code emitted match that for the
6565         corresponding intrinsics.
6566         (vec_setv2di_internal): Likewise.
6567         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
6568         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
6569         (neon_vset_lane<mode>): Combine double and quad patterns and
6570         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
6571         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
6572         (neon_vdup_n<mode>): Rewrite RTL without unspec.
6573         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
6574         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
6575         with neon_vdup_lanev2di, adjusting the pattern from the latter
6576         to be predicable for consistency.
6577         (neon_vdup_lane<mode>_internal): New.
6578         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
6579         to avoid using an unspec.
6580         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
6581         (neon_vdup_lanev2di): Turn into a define_expand.
6582         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
6583         (neon_vget_high<mode>): Replace with....
6584         (neon_vget_highv16qi): New pattern using canonical RTL.
6585         (neon_vget_highv8hi): Likewise.
6586         (neon_vget_highv4si): Likewise.
6587         (neon_vget_highv4sf): Likewise.
6588         (neon_vget_highv2di): Likewise.
6589         (neon_vget_low<mode>): Replace with....
6590         (neon_vget_lowv16qi): New pattern using canonical RTL.
6591         (neon_vget_lowv8hi): Likewise.
6592         (neon_vget_lowv4si): Likewise.
6593         (neon_vget_lowv4sf): Likewise.
6594         (neon_vget_lowv2di): Likewise.
6595
6596         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
6597         test for this emitting vmov.
6598         (Vset_lane): Likewise.
6599         (Vdup_n): Likewise.
6600         (Vmov_n): Likewise.
6601
6602         * doc/arm-neon-intrinsics.texi: Regenerated.
6603
6604 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
6605
6606         * config/arm/neon.md (vec_extractv2di): Correct error in register
6607         numbering to reconcile with neon_vget_lanev2di.
6608
6609 2010-07-02  Richard Guenther  <rguenther@suse.de>
6610
6611         * tree-ssa-structalias.c (pt_solution_set_var): New function.
6612         * tree-ssa-alias.h (pt_solution_set_var): Declare.
6613         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
6614         points-to information.
6615
6616 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
6617
6618         * config/s390/s390.c (override_options): Adopt prefetching
6619         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
6620
6621 2010-07-02  Jan Hubicka  <jh@suse.cz>
6622
6623         * df-problems.c (df_kill_notes): Do not collect dead  notes.
6624         (df_set_note): Just call add_reg_note.
6625         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
6626         df_create_unused_note): Do not deal with lists of old notes.
6627         (df_note_bb_compute): Likewise.
6628
6629 2010-07-02  Richard Guenther  <rguenther@suse.de>
6630
6631         * tree-ssa-structalias.c (find_func_aliases): Handle
6632         pointer alignment via BIT_AND_EXPR.
6633         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
6634
6635 2010-07-02  Richard Guenther  <rguenther@suse.de>
6636
6637         * tree-data-ref.c (initialize_data_dependence_relation): Handle
6638         mismatching number of dimensions properly.
6639
6640 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6641
6642         PR target/44707
6643         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
6644         (lo_sum (high ...) ...) patterns generated by earlier passes.
6645
6646 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6647
6648         * doc/install.texi (Prerequisites): Document Perl requirement on
6649         Solaris 2.
6650         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
6651
6652 2010-07-02  Richard Guenther  <rguenther@suse.de>
6653
6654         PR middle-end/44777
6655         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
6656
6657 2010-07-02  Jan Hubicka  <jh@suse.cz>
6658
6659         PR middle-end/44706
6660         * predict.c (predict_paths_for_bb): Handle case when control dependence
6661         BB has only abnormal edges.
6662
6663 2010-07-02  Richard Guenther  <rguenther@suse.de>
6664
6665         PR tree-optimization/44748
6666         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
6667         the embedded conversion in MEM_REFs.
6668
6669 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
6670
6671         * reload.c: Include toplev.h.
6672         * recog.c:  Likewise.
6673         * Makefile.in: Adjust dependencies.
6674
6675 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
6676
6677         PR debug/44694
6678         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
6679         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
6680
6681 2010-07-01  Richard Guenther  <rguenther@suse.de>
6682
6683         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
6684         types for offsets.
6685
6686 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
6687
6688         PR target/44732
6689         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
6690         Fix argument types.
6691
6692 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
6693
6694         PR target/44727
6695         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
6696         Make sure operand 0 dies.
6697
6698 2010-07-01  Richard Guenther  <rguenther@suse.de>
6699
6700         PR middle-end/42834
6701         PR middle-end/44468
6702         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
6703         * doc/generic.texi (References to storage): Document MEM_REF.
6704         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
6705         (print_call_name): Likewise.
6706         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
6707         (build_simple_mem_ref_loc): New function.
6708         (mem_ref_offset): Likewise.
6709         * tree.h (build_simple_mem_ref_loc): Declare.
6710         (build_simple_mem_ref): Define.
6711         (mem_ref_offset): Declare.
6712         * fold-const.c: Include tree-flow.h.
6713         (operand_equal_p): Handle MEM_REF.
6714         (build_fold_addr_expr_with_type_loc): Likewise.
6715         (fold_comparison): Likewise.
6716         (fold_unary_loc): Fold
6717         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
6718         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
6719         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
6720         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
6721         (ptr_deref_may_alias_ref_p_1): Likewise.
6722         (ao_ref_base_alias_set): Properly differentiate base object for
6723         offset and TBAA.
6724         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
6725         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
6726         (indirect_refs_may_alias_p): Likewise.
6727         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
6728         chasing code.
6729         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
6730         (call_may_clobber_ref_p_1): Likewise.
6731         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
6732         * expr.c (expand_assignment): Handle MEM_REF.
6733         (store_expr): Handle MEM_REFs from STRING_CSTs.
6734         (store_field): If expanding a MEM_REF of a non-addressable
6735         decl use bitfield operations.
6736         (get_inner_reference): Handle MEM_REF.
6737         (expand_expr_addr_expr_1): Likewise.
6738         (expand_expr_real_1): Likewise.
6739         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
6740         * alias.c (ao_ref_from_mem): Handle MEM_REF.
6741         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
6742         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
6743         (dr_analyze_indices): Likewise.
6744         (dr_analyze_alias): Likewise.
6745         (object_address_invariant_in_loop_p): Likewise.
6746         * gimplify.c (mark_addressable): Handle MEM_REF.
6747         (gimplify_cond_expr): Build MEM_REFs.
6748         (gimplify_modify_expr_to_memcpy): Likewise.
6749         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
6750         (gimple_fold_indirect_ref): Adjust.
6751         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
6752         * tree.def (MEM_REF): New tree code.
6753         * tree-dfa.c: Include toplev.h.
6754         (get_ref_base_and_extent): Handle MEM_REF.
6755         (get_addr_base_and_unit_offset): New function.
6756         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
6757         * gimple-fold.c (may_propagate_address_into_dereference): Handle
6758         MEM_REF.
6759         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
6760         accesses if the array has just one dimension.  Remove always true
6761         parameter.  Do not require type compatibility here.
6762         (maybe_fold_offset_to_component_ref): Remove.
6763         (maybe_fold_stmt_indirect): Remove.
6764         (maybe_fold_reference): Remove INDIRECT_REF handling.
6765         Fold back to non-MEM_REF.
6766         (maybe_fold_offset_to_address): Simplify.  Deal with type
6767         mismatches here.
6768         (maybe_fold_reference): Likewise.
6769         (maybe_fold_stmt_addition): Likewise.  Also handle
6770         &ARRAY + I in addition to &ARRAY[0] + I.
6771         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
6772         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
6773         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
6774         * tree-ssa.c (useless_type_conversion_p): Make most pointer
6775         conversions useless.
6776         (warn_uninitialized_var): Handle MEM_REF.
6777         (maybe_rewrite_mem_ref_base): New function.
6778         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
6779         to SSA form.
6780         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
6781         INDIRECT_REF handling.
6782         (copy_tree_body_r): Handle MEM_REF.
6783         * gimple.c (is_gimple_addressable): Adjust.
6784         (is_gimple_address): Likewise.
6785         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
6786         invariant base are invariant.
6787         (is_gimple_min_lval): Adjust.
6788         (is_gimple_mem_ref_addr): New function.
6789         (get_base_address): Handle MEM_REF.
6790         (count_ptr_derefs): Likewise.
6791         (get_base_loadstore): Likewise.
6792         * gimple.h (is_gimple_mem_ref_addr): Declare.
6793         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
6794         * tree-cfg.c (verify_address): New function, split out from ...
6795         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
6796         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
6797         INDIRECT_REFs.
6798         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
6799         INDIRECT_REF.  Allow conversions.
6800         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
6801         a register does not change its size.
6802         (verify_types_in_gimple_reference): Verify MEM_REF.
6803         (verify_gimple_assign_single): Disallow INDIRECT_REF.
6804         Handle MEM_REF.
6805         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
6806         New.
6807         (mark_address_taken): Handle MEM_REF.
6808         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
6809         (get_asm_expr_operands): Pass opf_not_non_addressable.
6810         (get_expr_operands): Handle opf_[not_]non_addressable.
6811         Handle MEM_REF.  Remove INDIRECT_REF handling.
6812         * tree-vrp.c (check_array_ref): Handle MEM_REF.
6813         (search_for_addr_array): Likewise.
6814         (check_array_bounds): Likewise.
6815         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
6816         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
6817         (ref_always_accessed_p): Likewise.
6818         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
6819         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
6820         Handle MEM_REF.
6821         * cgraphbuild.c (mark_load): Properly check for NULL result
6822         from get_base_address.
6823         (mark_store): Likewise.
6824         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
6825         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
6826         handling for MEM_REF.
6827         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
6828         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
6829         * builtins.c (stabilize_va_list_loc): Use the function ABI
6830         valist type if we couldn't canonicalize the argument type.
6831         Always dereference with the canonical va-list type.
6832         (maybe_emit_free_warning): Handle MEM_REF.
6833         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
6834         memmove to memcpy.
6835         * builtins.c (fold_builtin_memory_op): Use ref-all types
6836         for all memcpy foldings.
6837         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
6838         (build_outer_var_ref): Likewise.
6839         (scan_omp_1_op): Likewise.
6840         (lower_rec_input_clauses): Likewise.
6841         (lower_lastprivate_clauses): Likewise.
6842         (lower_reduction_clauses): Likewise.
6843         (lower_copyprivate_clauses): Likewise.
6844         (expand_omp_atomic_pipeline): Likewise.
6845         (expand_omp_atomic_mutex): Likewise.
6846         (create_task_copyfn): Likewise.
6847         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
6848         Remove old union trick.  Initialize constant offsets.
6849         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
6850         INDIRECT_REF.  Init base_alias_set properly.
6851         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
6852         (vn_reference_fold_indirect): Adjust for MEM_REFs.
6853         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
6854         for ARRAY_REFs.
6855         (may_insert): Remove.
6856         (visit_reference_op_load): Do not test may_insert.
6857         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
6858         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
6859         a field to store the constant offset this op applies.
6860         (run_scc_vn): Adjust prototype.
6861         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
6862         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
6863         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
6864         bother about volatile qualifiers on pointers.
6865         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
6866         * tree-ssa-loop-ivopts.c
6867         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
6868         (strip_offset_1): Likewise.
6869         (find_interesting_uses_address): Replace INDIRECT_REF handling with
6870         MEM_REF handling.
6871         (get_computation_cost_at): Likewise.
6872         * ipa-pure-const.c (check_op): Handle MEM_REF.
6873         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
6874         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
6875         and constants.
6876         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
6877         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
6878         (eliminate_local_variables_1): Likewise.
6879         (create_call_for_reduction_1): Likewise.
6880         (create_loads_for_reductions): Likewise.
6881         (create_loads_and_stores_for_name): Likewise.
6882         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
6883         (ssa_accessed_in_tree): Handle MEM_REF.
6884         (ssa_accessed_in_assign_rhs): Likewise.
6885         (update_type_size): Likewise.
6886         (analyze_accesses_for_call_stmt): Likewise.
6887         (analyze_accesses_for_assign_stmt): Likewise.
6888         (transform_access_sites): Likewise.
6889         (transform_allocation_sites): Likewise.
6890         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
6891         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
6892         not handle INDIRECT_REF.
6893         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
6894         (cond_store_replacement): Likewise.
6895         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
6896         MEM_REF, no not handle INDIRECT_REFs.
6897         (insert_into_preds_of_block): Properly initialize avail.
6898         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
6899         for ARRAY_REFs.  Properly handle reference lookups that
6900         require a bit re-interpretation.
6901         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
6902         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
6903         (build_ref_for_offset_1): Remove.
6904         (build_ref_for_offset): Build MEM_REFs.
6905         (gate_intra_sra): Disable for now.
6906         (sra_ipa_modify_expr): Handle MEM_REF.
6907         (ipa_early_sra_gate): Disable for now.
6908         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
6909         MEM_REF handling.
6910         (disqualify_base_of_expr): Likewise.
6911         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
6912         MEM_REF handling.
6913         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
6914         Use mem_ref_offset.  Remove bogus folding.
6915         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
6916         (make_fancy_name_1): Add support for MEM_REF.
6917         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
6918         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
6919         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
6920         (compute_complex_ancestor_jump_func): Likewise.
6921         (ipa_analyze_virtual_call_uses): Likewise.
6922         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
6923         INDIRECT_REF folding with more generalized MEM_REF folding.
6924         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
6925         (forward_propagate_addr_into_variable_array_index): Also handle
6926         &ARRAY + I in addition to &ARRAY[0] + I.
6927         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
6928         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
6929         creates assignments with overlap.
6930         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
6931         (get_frame_field): Likewise.
6932         (get_nonlocal_debug_decl): Likewise.
6933         (convert_nonlocal_reference_op): Likewise.
6934         (struct nesting_info): Add mem_refs pointer-set.
6935         (create_nesting_tree): Allocate it.
6936         (convert_local_reference_op): Insert to be folded mem-refs.
6937         (fold_mem_refs): New function.
6938         (finalize_nesting_tree_1): Perform defered folding of mem-refs
6939         (free_nesting_tree): Free the pointer-set.
6940         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
6941         (vectorizable_load): Likewise.
6942         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
6943         (propagate_with_phi): Likewise.
6944         * tree-object-size.c (addr_object_size): Handle MEM_REFs
6945         instead of INDIRECT_REFs.
6946         (compute_object_offset): Handle MEM_REF.
6947         (plus_stmt_object_size): Handle MEM_REF.
6948         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
6949         for &MEM_REF.
6950         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
6951         (symbol_marked_for_renaming): Likewise.
6952         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
6953         (fold-const.o): Add $(TREE_FLOW_H).
6954         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
6955         (find_func_clobbers): Likewise.
6956         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
6957         (decompose_access): Likewise.
6958         (replace_field_acc): Likewise.
6959         (replace_field_access_stmt): Likewise.
6960         (insert_new_var_in_stmt): Likewise.
6961         (get_stmt_accesses): Likewise.
6962         (reorg_structs_drive): Disable.
6963         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
6964         (ix86_canonical_va_list_type): Likewise.
6965
6966 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
6967
6968         PR other/44566
6969         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
6970         * target.def (struct gcc_target): Replace enum reg_class with
6971         reg_class_t in hook argument / return types.
6972         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
6973         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
6974         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
6975         * targhooks.h (default_branch_target_register_class): Likewise.
6976         (default_ira_cover_classes, default_secondary_reload): Likewise.
6977         (default_memory_move_cost, default_register_move_cost): Likewise.
6978         * targhooks.c (default_branch_target_register_class): Likewise.
6979         (default_ira_cover_classes, default_secondary_reload): Likewise.
6980         (default_memory_move_cost, default_register_move_cost): Likewise.
6981         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
6982         * bt-load.c (branch_target_load_optimize): Likewise.
6983         * ira.c (setup_cover_and_important_classes): Likewise.
6984         * ira-costs.c (copy_cost): Likewise.
6985         * reload1.c (emit_input_reload_insns): Likewise.
6986         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
6987         * config/frv/frv.c (frv_secondary_reload): Likewise.
6988         * config/s390/s390.c (s390_secondary_reload): Likewise.
6989         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
6990         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
6991         (ix86_register_move_cost): Likewise.
6992         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
6993         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
6994         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
6995         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
6996         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
6997         (rs6000_ira_cover_classes): Likewise.
6998         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
6999         * config/picochip/picochip-protos.h (picochip_secondary_reload):
7000         Likewise.
7001         * config/pa/pa.c (pa_secondary_reload): Likewise.
7002         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
7003         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
7004         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
7005         * doc/tm.texi: Regenerate.
7006
7007 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
7008
7009         PR bootstrrap/44726
7010         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
7011         use.
7012         (build_alias_set_optimal_p): Likewise.
7013         (build_base_obj_set_for_drs): Likewise.
7014
7015 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
7016
7017         * target.def: Remove comment about licensing problems of function
7018         declarations.
7019
7020         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
7021         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
7022         * doc/tm.texi: Regenerate.
7023
7024         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
7025         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
7026
7027         * target.def (enum_va_list_p): Use DEFHOOK.
7028         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
7029         Rename ptype to ptree.
7030         * doc/tm.texi: Regenerate.
7031
7032         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
7033         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
7034         * doc/tm.texi: Regenerate.
7035
7036         * target.def (memory_move_cost): Use DEFHOOK.
7037         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
7038         Rename regclass AKA class to rclass.
7039         * doc/tm.texi: Regenerate.
7040
7041         * target.def (pragma_parse): Use DEFHOOK.
7042         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
7043         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
7044         * doc/tm.texi: Regenerate.
7045
7046         * target.def (pass_by_reference): Use DEFHOOK.
7047         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
7048         * doc/tm.texi: Regenerate.
7049
7050         * target.def (resolve_overloaded_builtin): Rename params to arglist.
7051         Use DEFHOOK.
7052         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
7053         * doc/tm.texi: Regenerate.
7054
7055         * target.def (return_pops_args): Use DEFHOOK.
7056         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
7057         Rename stack-size to size.
7058         * doc/tm.texi: Regenerate.
7059
7060         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
7061         last-sched_cycle to last_clock, cur_cycle to clock.
7062         * doc/tm.texi.in: Use @hook.
7063         * doc/tm.texi: Regenerate.
7064
7065         * target.def (print_operand, print_operand_address): Update comment.
7066         (print_operand_punct_valid_p): Likewise.
7067
7068 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7069
7070         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
7071         to rtl.h.
7072         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
7073         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
7074         * rtl-error.h: New.
7075         * regrename.c: Do not include toplev.h. Include rtl-error.h.
7076         * rtl-error.c: Likewise.
7077         * reload.c: Likewise.
7078         * recog.c:  Likewise.
7079         * sel-sched.c: Likewise.
7080         * function.c: Likewise.
7081         * reg-stack.c: Likewise.
7082         * cfgrtl.c: Likewise.
7083         * reload1.c: Likewise.
7084         * final.c: Include rtl-error.
7085         * Makefile.in: Adjust dependencies.
7086
7087 2010-06-30  Jan Hubicka  <jh@suse.cz>
7088
7089         PR middle-end/PR44706
7090         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
7091         to return the value.
7092
7093 2010-06-30  Michael Matz  <matz@suse.de>
7094
7095         PR bootstrap/44699
7096         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
7097         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
7098         a gimple reg, attach the original VDEF to the last store in the
7099         sequence.
7100
7101 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
7102
7103         PR other/44034
7104         * config/darwin.c (darwin_override_options): Use renamed
7105         targetm.asm_out.emit_unwind_label.
7106
7107 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
7108
7109         PR tree-optimization/39799
7110         * tree-inline.c (remap_ssa_name): Initialize variable only if
7111         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
7112
7113 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
7114
7115         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
7116
7117 2010-06-30  Richard Guenther  <rguenther@suse.de>
7118
7119         PR target/44722
7120         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
7121         against oscillation with reverse peephole2.
7122
7123 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
7124
7125         PR target/44721
7126         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
7127         Fix last commit.
7128
7129 2010-06-30  Nick Clifton  <nickc@redhat.com>
7130
7131         * config/rx/rx-modes.def: New file.
7132         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
7133         (CC_REGNUM): Define.
7134         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
7135         register.
7136         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
7137         (SELECT_CC_MODE): Define.
7138         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
7139         (reg:CC CC_REG) instead of (cc0).
7140         (attr "cc"): Delete.
7141         (cbranchsi4): Do not split compare and branch here. Instead move
7142         it to...
7143         (cbranchsi4_<code>): ... here.  New patterns.
7144         (cmpsi): Call rx-compare_redundant to find out if it is necessary
7145         to emit the compare instruction.
7146         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
7147         cc_status flags.
7148         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
7149         FIRST_PSEUDO_REGNUM.
7150         (rx_expand_prologue, rx_expand_epilogue): Likewise.
7151         (rx_notice_update_cc): Delete.
7152         (rx_cc_modes_compatible): New function.
7153         (flags_needed_for_conditional): New function.
7154         (flags_from_mode): New function.
7155         (rx_compare_redundant): New function - scans backwards through
7156         insn list to find out if condition flags are already set correctly.
7157         (TARGET_CC_MODES_COMPATIBLE): Define.
7158         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
7159
7160         * config/rx/rx.h (BRANCH_COST): Define.
7161         (REGISTER_MOVE_COST): Define.
7162         * config/rx/predicates (rx_source_operand): Allow all constant types.
7163         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
7164         (tstsi4): New pattern.
7165         * config/rx/rx.c (rx_memory_move_cost): Define.
7166         (TARGET_MEMORY_MOVE_COST): Define.
7167
7168 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7169
7170         * tree.h (block_may_fallthru): Declare here.
7171         * tree-flow.h (block_may_fallthru): Do not declare here.
7172         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
7173         bitmap.h
7174         * Makefile.in (c-typeck.o): Update dependencies.
7175
7176 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
7177
7178         PR debug/44694
7179         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
7180         * cselib.c (cfa_base_preserved_regno): New static variable.
7181         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
7182         of REGNO (cfa_base_preserved_val->locs->loc).
7183         (cselib_preserve_cfa_base_value): Add regno argument, set
7184         cfa_base_preserved_regno to it.
7185         (cselib_invalidate_regno): Allow removal of registers other than
7186         cfa_base_preserved_regno from cfa_base_preserved_val.
7187         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
7188         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
7189         of MEM addresses, if not on LHS.
7190         (reverse_op): Don't add reverse ops for cfa_base_rtx.
7191         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
7192
7193 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
7194
7195         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
7196         static variables.
7197         (peep2_buf_position): New static function.
7198         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
7199         peephole2_optimize): Use it.
7200         (peep2_attempt, peep2_update_life): New static functions, broken out
7201         of peephole2_optimize.
7202         (peep2_fill_buffer): New static function.
7203         (peephole2_optimize): Change the main loop to try to fill the buffer
7204         with the maximum number of insns before matching them against
7205         peepholes.  Use a forward scan.  Remove special case for targets with
7206         conditional execution.
7207         * genrecog.c (change_state): Delete dead code.
7208         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
7209         Rewrite so as not to expect the second insn to have had a peephole
7210         applied yet.
7211
7212 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7213
7214         * genhooks.c (emit_findices): Cast field precision to int.
7215         (emit_documentation): Likewise.
7216
7217 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
7218
7219         PR tree-optimization/43801
7220         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
7221         if old_decl was DECL_ONE_ONLY.
7222
7223         PR debug/44668
7224         * dwarf2out.c (add_accessibility_attribute): New function.
7225         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
7226         instead of adding DW_AT_accessibility manually.
7227         (gen_enumeration_type_die, gen_struct_or_union_type_die,
7228         gen_typedef_die): Use it.
7229
7230 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7231
7232         * vmsdbgout.c (full_name): Just output the file name if not native.
7233
7234 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7235
7236         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
7237         (funcnam_table): New static table.
7238         (funcnum_table): New static table.
7239         (write_rtnbeg): Write value saved in funcnum_table.
7240         (write_rtnend): Write value saved in funcnum_table.
7241         (vmsdbgout_begin_function): Save current function info in
7242         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
7243         (vmsdbgout_finish): Iterate over funcnum_table.
7244
7245 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7246
7247         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
7248         (vmsdbgout_type_decl): Declare
7249         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
7250         (FUNC_EPILOGUE_LABEL): New macro
7251         (vmsdbgout_begin_epilogue): New function.
7252         (vmsdbgout_type_decl): New function.
7253
7254 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7255
7256         * vmsdbg.h: Update copyright.
7257
7258 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7259
7260         * vmsdbg.h (DST_K_TBG): New DST constant.
7261         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
7262         (write_modbeg): Cast module_language to avoid warning.
7263         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
7264
7265 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
7266
7267         PR other/44034
7268         * target.def, doc/tm.texi.in, genhooks.c: New files.
7269         * target.h: Instead of defining individual hook members,
7270         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
7271         include target.def.
7272         * target-def.h: Instead of defining individual hook initializers,
7273         include target-hooks-def.h.
7274         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
7275         targetm.live_on_entry -> targetm.extra_live_on_entry
7276         targetm.sched.md_finish ->targetm.sched.finish
7277         targetm.sched.md_init -> targetm.sched.init
7278         targetm.sched.md_init_global -> targetm.sched.init_global
7279         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
7280         targetm.asm_out.except_table_label ->
7281           targetm.asm_out.emit_except_table_label
7282         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
7283         targetm.target_help -> targetm.help
7284         targetm.vectorize.builtin_support_vector_misalignment ->
7285           targetm.vectorize.support_vector_misalignment
7286         targetm.file_start_app_off -> targetm.asm_file_start_app_off
7287         targetm.file_start_file_directive ->
7288          targetm.asm_file_start_file_directive
7289         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
7290         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
7291         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
7292         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
7293           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
7294         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
7295           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
7296         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
7297         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
7298         * Makefile.in (TARGET_H): Depend on target.def.
7299         (TARGET_DEF_H): Depend on target-hooks-def.h.
7300         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
7301         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
7302         * doc/tm.texi: Regenerate.
7303
7304         * Makefile.in (s-tm-texi): Remove stray tab / rule.
7305
7306         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
7307         (targetm.sched.init): Likewise.
7308
7309 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7310
7311         PR bootstrap/44713
7312         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
7313         (function_arg_advance_32): Const-ify TYPE parameter.
7314         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
7315         (ix86_function_arg_advance): Change type of NAMED to bool.
7316         (function_arg_32): Const-ify CUM and TYPE parameters.
7317         (function_arg_64): Likewise.  Change type of NAMED to bool.
7318         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
7319         to bool.
7320         (ix86_function_arg): Change type of NAMED to bool.
7321         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
7322         last argument as a bool.
7323
7324 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
7325
7326         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
7327         (OVERRIDE_OPTIONS): Add note of obsolescence.
7328         Replace references with references to TARGET_OPTION_OVERRIDE.
7329         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
7330          the macro).
7331         * targhooks.c (default_target_option_override): New function.
7332         * targhooks.h (default_target_option_override): Declare.
7333         * target.h (struct gcc_target): Add override member to
7334         target_option member.
7335         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
7336         targetm.target_option.override call.
7337         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
7338         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
7339
7340 2010-06-29  Jan Hubicka  <jh@suse.cz>
7341
7342         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
7343
7344 2010-06-29  Jan Hubicka  <jh@suse.cz>
7345
7346         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
7347         unreachable.
7348         (rebuild_frequencies): New function.
7349         * predict.h (rebuild_frequencies): Declare.
7350         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
7351         entry block and edge reaching new_entry.
7352         (tree_function_versioning): When doing partial cloning, rebuild
7353         frequencies when done.
7354         * passes.c (execute_function_todo): Use rebild_frequencies.
7355
7356 2010-06-29  Richard Guenther  <rguenther@suse.de>
7357
7358         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
7359         * tree-flow.h (enum noalias_state): Remove.
7360         (struct var_ann_d): Remove noalias_state member.
7361
7362 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
7363
7364         PR target/43902
7365         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
7366         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
7367         (maddhidi4): Likewise.
7368
7369         Revert parts of the change for PR25130.
7370         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
7371         MEM_ALIAS_SET.
7372
7373 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7374
7375         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
7376         targetm.calls.function_incoming_arg, and
7377         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
7378         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
7379         * target.h (struct gcc_target): Add function_arg_advance,
7380         function_arg, and function_incoming_arg fields.
7381         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
7382         (TARGET_FUNCTION_INCOMING_ARG): Define.
7383         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
7384         and TARGET_FUNCTION_INCOMING_ARG.
7385         * targhooks.h (default_function_arg_advance): Declare.
7386         (default_function_arg, default_function_incoming_arg): Declare.
7387         * targhooks.c (default_function_arg_advance): New function.
7388         (default_function_arg, default_function_incoming_arg): New function.
7389         * config/i386/i386.c (function_arg_advance): Rename to...
7390         (ix86_function_arg_advance): ...this.  Make static.
7391         (function_arg): Rename to...
7392         (ix86_function_arg): ...this.  Make static.
7393         (TARGET_FUNCTION_ARG_ADVANCE): Define.
7394         (TARGET_FUNCTION_ARG): Define.
7395         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
7396         (FUNCTION_ARG): Delete.
7397         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
7398         (function_arg): Delete prototype.
7399
7400 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7401
7402         * reginfo.c (init_reg_sets_1): Adjust comments.
7403         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
7404         * calls.c (prepare_call_address): Likewise.
7405         (emit_call_1): Use targetm.calls.return_pops_args.
7406         (expand_call): Likewise.
7407         * function.c (assign_parms): Likewise.
7408         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
7409         * target.h (struct gcc_target) [struct calls]: Add
7410         return_pops_args field.
7411         * targhooks.h (default_return_pops_args): Declare.
7412         * targhooks.c (default_return_pops_args): Define.
7413         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
7414         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
7415         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
7416         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
7417         documentation.
7418         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
7419         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
7420         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
7421         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
7422         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
7423         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
7424         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
7425         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
7426         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
7427         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
7428         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
7429         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
7430         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
7431         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
7432         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
7433         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
7434         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
7435         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
7436         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
7437         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
7438         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
7439         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
7440         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
7441         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
7442         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
7443         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
7444         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
7445         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
7446         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
7447         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
7448         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
7449         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
7450         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
7451         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
7452         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
7453         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
7454         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
7455         * config/i386/i386.c (ix86_return_pops_args): Make static.
7456         Constify arguments.
7457         (TARGET_RETURN_POPS_ARGS): Define.
7458         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
7459         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
7460         (TARGET_RETURN_POPS_ARGS): Define.
7461         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
7462         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
7463         (TARGET_RETURN_POPS_ARGS): Define.
7464
7465 2010-06-29  Richard Guenther  <rguenther@suse.de>
7466
7467         PR middle-end/44667
7468         * tree-inline.c (initialize_inlined_parameters): Make sure
7469         to remap the inlined parameter variable substitutions types.
7470
7471 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
7472
7473         PR rtl-optimization/44659
7474         * combine.c (make_compound_operation) <SUBREG>: Do not return the
7475         result of force_to_mode if it partially re-expanded the compound.
7476
7477 2010-06-28  Jan Hubicka  <jh@suse.cz>
7478
7479         PR middle-end/44671
7480         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
7481         RESULT_DECL.
7482
7483 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
7484
7485         * double-int.h (force_fit_type_double): Remove declaration.
7486         * double-int.c (force_fit_type_double): Move to tree.c.
7487         * tree.h (force_fit_type_double): Declare.
7488         * tree.h (force_fit_type_double): Moved from double-int.c. Use
7489         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
7490         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
7491         * convert.c (convert_to_pointer): Adjust call to
7492         force_fit_type_double.
7493         * tree-vrp.c (extract_range_from_assert,
7494         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
7495         * fold-const.c: Update comment.
7496         (int_const_binop, fold_convert_const_int_from_int,
7497         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
7498         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
7499         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
7500         round_up_loc): Adjust call to force_fit_type_double.
7501
7502 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
7503
7504         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
7505
7506 2010-06-28  Martin Jambor  <mjambor@suse.cz>
7507
7508         * tree-sra.c (convert_callers): New parameter, change fndecls of
7509         recursive calls.
7510         (modify_function): Pass the old decl to convert_callers.
7511
7512 2010-06-28  Martin Jambor  <mjambor@suse.cz>
7513
7514         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
7515         ipa_check_create_node_params and ipa_initialize_node_params with
7516         checking asserts they are not necessary.
7517
7518 2010-06-28  Jan Hubicka  <jh@suse.cz>
7519
7520         PR tree-optimization/44687
7521         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
7522
7523 2010-06-28  Martin Jambor  <mjambor@suse.cz>
7524
7525         PR c++/44535
7526         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
7527         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
7528         instead of BINFO_BASE_BINFO.
7529
7530 2010-06-28  Michael Matz  <matz@suse.de>
7531
7532         PR middle-end/44592
7533         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
7534         proper VDEF chain for intermediate stores in the sequence.
7535
7536 2010-06-28  Jan Hubicka  <jh@suse.cz>
7537
7538         PR tree-optimization/44357
7539         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
7540         uninlinable functions.
7541
7542 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
7543
7544         * config.gcc (powerpc*-*-*): Handle titan.
7545         * config/rs6000/rs6000.c (titan_cost): New costs.
7546         (rs6000_override_options): Add "titan" to processor_target_table.
7547         Add Titan to branch alignment logic.
7548         Correctly set rs6000_cost for titan.
7549         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
7550         * config/rs6000/titan.md: New file.
7551         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
7552
7553 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
7554
7555         * tree-browser.c (TB_history_stack): Convert to a VEC.
7556         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
7557         (TB_history_prev): Likewise.
7558
7559 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
7560
7561         * vec.h (vec_heap_free): Add parentheses around free.
7562
7563 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
7564
7565         * system.h: Poison GCC_EXCEPT_H for front-end files.
7566
7567         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
7568         langhook.
7569         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
7570         Define to NULL by default.
7571         * except.h: Define GCC_EXCEPT_H.
7572         (doing_eh): Remove prototype.
7573         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
7574         (lang_protect_cleanup_actions): Remove.
7575         * except.c (lang_protect_cleanup_actions): Remove.
7576         (doing_eh): Remove.
7577         (gen_eh_region): Don't check doing_eh here.
7578         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
7579         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
7580         instead of lang_protect_cleanup_actions.
7581         * omp-low.c (maybe_catch_exception): Likewise.
7582         * Makefile.in: Update dependencies.
7583
7584 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
7585
7586         * cgraph.h (struct varpool_node): new used_from_object_file flag.
7587         (struct cgraph_local_info): new used_from_object_file flag.
7588         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
7589         (cgraph_clone_node): initialize used_from_object_file.
7590         (cgraph_create_virtual_clone): initialize used_from_object_file.
7591         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
7592         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
7593         when compiling with -fwhole-program.
7594         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
7595         internal resolver.
7596         * ipa.c (function_and_variable_visibility): Set externally_visible
7597         flag of varpool_node if used_from_object_file flag is set.
7598         (cgraph_externally_visible_p): check used_from_object_file flag.
7599         * doc/invoke.texi (-fwhole-program option): Change description of
7600         externally_visible attribute accordingly.
7601         * doc/extend.texi (externally_visible): Ditto.
7602
7603 2010-06-27  Jan Hubicka  <jh@suse.cz>
7604
7605         * params.def (max-inline-insns-auto): Default to 40.
7606         * doc/invoke.texi (max-inline-insns-auto): Document the change.
7607
7608 2010-06-27  Jan Hubicka  <jh@suse.cz>
7609
7610         PR middle-end/44671
7611         PR middle-end/44686
7612         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
7613         signature change.
7614         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
7615         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
7616
7617 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
7618
7619         * target.h (struct gcc_target): Add register_move_cost field.
7620         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
7621         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
7622         * targhooks.c (default_register_move_cost): New function.
7623         * targhooks.h (default_register_move_cost): Declare function.
7624         * defaults.h (REGISTER_MOVE_COST): Delete.
7625         * ira-int.h (ira_register_move_cost): Update comment.
7626         * ira.c (ira_register_move_cost): Update comment.
7627         * reload.h (register_move_cost): Declare.
7628         * reginfo.c (register_move_cost): New function.
7629         (move_cost): Update comment.
7630         (init_move_cost, memory_move_secondary_cost): Replace
7631         REGISTER_MOVE_COST with register_move_cost.
7632         * postreload.c (reload_cse_simplify_set): (Ditto.).
7633         * reload.c (find_valid_class, find_reloads): (Ditto.).
7634         * reload1.c (choose_reload_regs): (Ditto.).
7635         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
7636         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
7637         * doc/md.texi (can_create_pseudo_p): Update documentation.
7638
7639         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
7640         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
7641         * config/i386/i386.h (ix86_memory_move_cost): Make static.
7642         (TARGET_MEMORY_MOVE_COST): Define.
7643
7644         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
7645         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
7646         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
7647         (TARGET_MEMORY_MOVE_COST): Define.
7648
7649 2010-06-27  Richard Guenther  <rguenther@suse.de>
7650
7651         PR tree-optimization/44683
7652         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
7653         false edge from the inverted condition.
7654
7655 2010-06-27  Richard Guenther  <rguenther@suse.de>
7656
7657         PR middle-end/44684
7658         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
7659         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
7660         for register LHS.  Or non-store assignments.
7661
7662 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
7663
7664         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
7665         (sparc_emit_set_const64): Likewise.  Remove disabled code.
7666         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
7667         (sparc_emit_set_const64): Likewise.
7668
7669 2010-06-26  Catherine Moore  <clm@codesourcery.com>
7670
7671         * config/mips/mips.md (alu_type): New attribute.
7672         (type): Infer type from alu_type.
7673         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
7674         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
7675         *subsi3_extended, negsi2, negdi2, *low<mode>,
7676         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
7677         xor<mode>3, *nor<mode>3,
7678         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
7679         *zero_extendhi_truncqi):  Set alu_type instead of type.
7680
7681 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
7682
7683         * config/alpha/alpha.c (alpha_need_linkage): Adjust
7684         splay_tree_new_ggc call.
7685         (alpha_use_linkage): Likewise.
7686
7687 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
7688
7689         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
7690         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
7691         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
7692         (static_specs): Remove switches_need_spaces.
7693         (process_command, do_self_spec): Hardcode handling "-o" instead of
7694         checking switches_need_spaces.
7695         * system.h (SWITCHES_NEED_SPACES): Poison.
7696
7697 2010-06-26  Richard Guenther  <rguenther@suse.de>
7698
7699         PR tree-optimization/44393
7700         * tree-loop-distribution.c (generate_loops_for_partition): Fix
7701         stmt removal and VOP renaming.
7702         (generate_memset_zero): Remove redundant stmt updating.
7703         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
7704         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
7705
7706 2010-06-26  Jan Hubicka  <jh@suse.cz>
7707
7708         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
7709         edges comming from header are equivalent.
7710         (visit_bb): Handle PHIs correctly.
7711         * tree-inline.c (copy_phis_for_bb): Be able to copy
7712         PHI from entry edge.
7713         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
7714
7715 2010-06-26  Richard Guenther  <rguenther@suse.de>
7716
7717         PR middle-end/44674
7718         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
7719         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
7720
7721 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
7722
7723         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
7724         add_infile, alloc_switch): New.
7725         (process_command): Remove variable lang_n_infiles.  Process
7726         options in a single pass.  Use new functions for allocating
7727         infiles and switches arrays.  Properly skip operands of
7728         -Xpreprocessor and -Xassembler.
7729
7730 2010-06-26  Jan Hubicka  <jh@suse.cz>
7731
7732         PR middle-end/44671
7733         * cgraphunit.c (cgraph_function_versioning): Remove wrong
7734         cgraph_make_decl_local call; fix typo copying RTL data.
7735
7736 2010-06-25  DJ Delorie  <dj@redhat.com>
7737
7738         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
7739         (m32c_output_aligned_common): Likewise.
7740         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
7741         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
7742         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
7743         (m32c_register_pragmas): Register it.
7744         * config/m32c/m32c.c (m32c_get_pragma_address): New.
7745         (m32c_insert_attributes): Set #pragma address decls volatile.
7746         (pragma_entry_eq): New.
7747         (pragma_entry_hash): New.
7748         (m32c_note_pragma_address): New.
7749         (m32c_get_pragma_address): New.
7750         (m32c_output_aligned_common): New.
7751         * doc/extend.texi: Document the new pragma.
7752
7753         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
7754         also.
7755         * config/m32c/predicates.md (m32c_any_operand): Check the code
7756         instead of memory_operand so as to allow matching volatile MEMs.
7757         (m32c_nonimmediate_operand): Likewise.
7758         (mra_operand): Allow volatiles.
7759
7760 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
7761
7762         PR debug/44610
7763         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
7764         address if the offset is unknown.
7765
7766 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
7767
7768         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
7769         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
7770         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
7771         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
7772         to ia64_start_function. Invoke it.
7773         * config/ia64/ia64.c (ia64_start_function): Call new function
7774         dwarf2out_vms_debug_main_pointer.
7775
7776 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
7777
7778         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
7779         statements computing the true predicate.
7780
7781 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
7782
7783         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
7784         to boolean_true_node.
7785         (reset_bb_predicate): New.
7786         (predicate_bbs): Call reset_bb_predicate.
7787
7788 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
7789
7790         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
7791         (tree_if_conversion): Returns true when something has been changed.
7792         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
7793         changed something.
7794
7795 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
7796
7797         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
7798         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
7799         * tree-if-conv.c: Include dbgcnt.h.
7800         (tree_if_conversion): Use if_conversion_tree to count the number of
7801         if-convertible loops.
7802
7803 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
7804
7805         * common.opt (fprefetch-loop-arrays): Re-define
7806         -fprefetch-loop-arrays as a tri-state option with the initial
7807         value of -1.
7808         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
7809         pass only when flag_prefetch_loop_arrays > 0.
7810         * toplev.c (process_options): Note that, with tri-states,
7811         flag_prefetch_loop_arrays>0 means prefetching is enabled.
7812         * config/i386/i386.c (override_options): Enable prefetching at -O3
7813         for a set of CPUs that sw prefetching is helpful.
7814         (software_prefetching_beneficial_p): New.  Return TRUE if software
7815         prefetching is beneficial for the given CPU.
7816
7817 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
7818
7819         PR rtl-optimization/44326
7820         * implicit-zee.c (find_removable_zero_extends): Replace
7821         INSN_P with NONDEBUG_INSN_P.
7822
7823 2010-06-25  Martin Jambor  <mjambor@suse.cz>
7824
7825         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
7826         (struct ipa_node_params): Removed the modification_analysis_done flag.
7827         (ipa_is_param_modified): Removed.
7828         (ipa_analyze_node): Declare.
7829         (ipa_compute_jump_functions): Remove declaration.
7830         (ipa_count_arguments): Likewise.
7831         (ipa_detect_param_modifications): Likewise.
7832         (ipa_analyze_params_uses): Likewise.
7833         * ipa-prop.c (struct param_analysis_info): New type.
7834         (visit_store_addr_for_mod_analysis): Removed.
7835         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
7836         moved down in the file.
7837         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
7838         (ipa_count_arguments): Made static.
7839         (mark_modified): New function.
7840         (is_parm_modified_before_call): New function.
7841         (compute_pass_through_member_ptrs): New parameter parms_info, call
7842         is_parm_modified_before_call instead of ipa_is_param_modified.
7843         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
7844         it to compute_pass_through_member_ptrs.
7845         (ipa_compute_jump_functions): New parameter parms_info, pass it to
7846         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
7847         on the callee if it is analyzed.  Made static.
7848         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
7849         is_parm_modified_before_call instead of ipa_is_param_modified.
7850         (ipa_analyze_call_uses): New parameter parms_info, pass it to
7851         ipa_analyze_indirect_call_uses.
7852         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
7853         ipa_analyze_call_uses.
7854         (ipa_analyze_params_uses): New parameter parms_info, pass it to
7855         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
7856         (ipa_analyze_node): New function.
7857         (ipa_print_node_params): Do not dump the modified flag.
7858         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
7859         it.  Do not stream the modified parameter flag.
7860         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
7861         it.  Do not stream the modified parameter flag.
7862         * ipa-cp.c (ipcp_analyze_node): Removed.
7863         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
7864         with only a call to ipa_analyze_node.
7865         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
7866         node with only a call to ipa_analyze_node.
7867
7868 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7869
7870         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
7871
7872 2010-06-25  Jan Hubicka  <jh@suse.cz>
7873
7874         * tree-pass.h (pass_split_functions): Declare.
7875         * opts.c (decode_options): Enable function splitting at -O2
7876         * timevar.def (TV_IPA_FNSPLIT): New macro.
7877         * ipa-split.c: New file.
7878         * common.opt (-fpartial-inlining): New flag.
7879         * Makefile.in (ipa-split.o): New object file.
7880         * passes.c (init_optimization_passes): Add ipa-split.
7881         * params.def (partial-inlining-entry-probability): New parameters.
7882         * doc/invoke.texi (-fpartial-inlining): New.
7883
7884 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7885
7886         PR 44665
7887         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
7888         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
7889         (gimplify_expr): Likewise.
7890
7891 2010-06-25  Martin Jambor  <mjambor@suse.cz>
7892
7893         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
7894         statements instead of bailing out on them.
7895         (ipa_analyze_indirect_call_uses): Do not require that loads from the
7896         parameter are in the same BB as the condition.  Update comments.
7897
7898 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
7899
7900         PR middle-end/43866
7901         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
7902         true or always false, return NULL_TREE.
7903         (tree_unswitch_single_loop): Optimize conditions even when reaching
7904         max-unswitch-level parameter.  If num > 0, optimize first all conditions
7905         using entry checks, then do still reachable block discovery and consider
7906         only conditions in still reachable basic blocks in the loop.
7907
7908         PR tree-optimization/44539
7909         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
7910         the call doesn't have LHS, but has VDEF.
7911
7912 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
7913
7914         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
7915         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
7916         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
7917         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
7918         * system.h (MODIFY_TARGET_NAME): Poison.
7919
7920 2010-06-25  Alan Modra  <amodra@gmail.com>
7921
7922         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
7923         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
7924         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
7925         CMODEL_LARGE as default.
7926         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
7927         (offsettable_ok_by_alignment): Delete.
7928         (rs6000_emit_move): Remove mcmodel=medium optimization.
7929
7930 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
7931
7932         With large parts from Jim Wilson:
7933         PR target/43902
7934         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
7935         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
7936         * optabs.c (optab_for_tree_code): Likewise.
7937         (expand_widen_pattern_expr): Likewise.
7938         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
7939         out of execute_optimize_widening_mul.
7940         (convert_plusminus_to_widen): New function.
7941         (execute_optimize_widening_mul): Use the two new functions.
7942         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
7943         Remove code to generate widening multiply-accumulate.  Add support
7944         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
7945         * gimple-pretty-print.c (dump_ternary_rhs): New function.
7946         (dump_gimple_assign): Call it when appropriate.
7947         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
7948         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
7949         (expand_gimple_stmt_1): Likewise.
7950         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
7951         WIDEN_MULT_MINUS_EXPR.
7952         * tree-ssa-operands.c (get_expr_operands): Likewise.
7953         * tree-inline.c (estimate_operator_cost): Likewise.
7954         * gimple.c (extract_ops_from_tree_1): Renamed from
7955         extract_ops_from_tree.  Add new arg for a third operand; fill it.
7956         (gimple_build_assign_stat): Support operations with three operands.
7957         (gimple_build_assign_with_ops_stat): Likewise.
7958         (gimple_assign_set_rhs_from_tree): Likewise.
7959         (gimple_assign_set_rhs_with_ops_1): Renamed from
7960         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
7961         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
7962         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
7963         WIDEN_MULT_MINUS_EXPR.
7964         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
7965         (extract_ops_from_tree_1): Adjust declaration.
7966         (gimple_assign_set_rhs_with_ops_1): Likewise.
7967         (gimple_build_assign_with_ops): Pass NULL for last operand.
7968         (gimple_build_assign_with_ops3): New macro.
7969         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
7970         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
7971         functions.
7972         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
7973         (verify_gimple_assign): Call it.
7974         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
7975         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
7976         functions for dealing with three-operand statements.
7977         * tree.c (commutative_ternary_tree_code): New function.
7978         * tree.h (commutative_ternary_tree_code): Declare it.
7979         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
7980         ternary statements.
7981         (gimple_assign_nonzero_warnv_p): Likewise.
7982         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
7983         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
7984         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
7985         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
7986         (struct hashtable_expr): New member ternary in the union.
7987         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
7988         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
7989         (iterative_hash_hashable_expr): Likewise.
7990         (print_expr_hash_elt): Handle EXPR_TERNARY.
7991         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
7992         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
7993         statements.  Handle GIMPLE_TERNARY_RHS.
7994
7995 2010-06-25  Jan Hubicka  <jh@suse.cz>
7996
7997         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
7998
7999 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
8000
8001         PR c/44517
8002         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
8003         parameters are not good.
8004         (c_parser_parameter_declaration): Error unknown type name if the type
8005         name can't start declaration specifiers.
8006
8007 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
8008
8009         * gcc.c (translate_options): Don't mention +e in comment.
8010         (process_command): Don't handle +e specially.
8011
8012 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
8013
8014         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
8015
8016         * ira-build.c (merge_hard_reg_conflicts): New function.
8017         (create_cap_allocno, copy_info_to_removed_store_destinations,
8018         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
8019         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
8020         (remove_unnecessary_allocnos, remove_low_level_allocnos)
8021         copy_nifo_to_removed_store_destination): Use them.
8022         * ira-lives.c (make_hard_regno_born): New function, split out of
8023         make_regno_born.
8024         (make_allocno_born): Likewise.
8025         (make_hard_regno_dead): New function, split out of make_regno_dead.
8026         (make_allocno_dead): Likewise.
8027         (inc_register_pressure): New function, split out of set_allocno_live.
8028         (dec_register_pressure): New function, split out of clear_allocno_live.
8029         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
8030         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
8031         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
8032         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
8033         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
8034         mark_pseudo_regno_live.
8035         (process_bb_node_lives): Use mark_pseudo_regno_live,
8036         make_hard_regno_born and make_allocno_dead.
8037         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
8038         set_allocno_live, clear_allocno_live): Delete functions.
8039
8040         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
8041         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
8042         functions.
8043         (ira_flattening): Use ira_parent_allocno.
8044         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
8045         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
8046
8047         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
8048         statement.
8049
8050         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
8051         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
8052         minmax_set_iter_cond, minmax_set_iter_next,
8053         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
8054         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
8055         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
8056         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
8057         uses changed.
8058
8059         * ira-int.h (struct live_range, live_range_t): Renamed from struct
8060         ira_allocno_live_range and allocno_live_range_t; all uses changed.
8061         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
8062         All uses changed.
8063
8064 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
8065
8066         * thumb2.md (thumb2_tlobits_cbranch): Delete.
8067         (peephole2 to convert zero_extract/compare of single bit to
8068          lshift/compare): New.
8069
8070 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
8071
8072         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
8073         recursive call and call to 'int_const_binop'.
8074         (build_range_check, fold_cond_expr_with_comparison, unextend,
8075         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
8076         multiple_of_p): Adjust call to const_binop.
8077
8078 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
8079
8080         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
8081         determine size of XFmode operand.
8082         (XFmode extended DFmode push splitter): Ditto.
8083         (XFmode extended SFmode push splitter): Ditto.
8084
8085 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8086
8087         PR target/44588
8088         * config/i386/i386.md (extract_code): New.
8089         (<u>divmodqi4): Likewise.
8090         (divmodhiqi3): Likewise.
8091         (udivmodhiqi3): Likewise.
8092         (<u>divqi3): Remvoved.
8093
8094 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
8095
8096         PR middle-end/44492
8097         * recog.h (struct recog_data): Add is_asm field.
8098         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
8099         present in constraints of inline-asm operand and memory operand
8100         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
8101         (extract_insn): Initialize recog_data.is_asm.
8102         * doc/md.texi (Constraints): Document operand side-effect rules.
8103
8104 2010-06-24  Andi Kleen  <ak@linux.intel.com>
8105
8106         * c-parser.c (c_parser_conditional_expression): Call
8107         warn_for_omitted_condop.
8108         * doc/invoke.texi: Document omitted condop warning.
8109
8110 2010-06-24  Nick Clifton<nickc@redhat.com>
8111
8112         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
8113         insn in the sequence is a jump insn before setting its label.
8114
8115 2010-06-24  Alan Modra  <amodra@gmail.com>
8116
8117         * collect2.c (main): Match exactly --version and --help.
8118
8119 2010-06-24  DJ Delorie  <dj@redhat.com>
8120
8121         * config/m32c/m32c-pragma.c: Don't include rtl.h.
8122
8123 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
8124
8125         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
8126         using X87MODEF mode iterator.
8127         (pushsf splitter): Macroize splitter using P mode iterator.
8128         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
8129         mode iterator.
8130
8131         (*movxf_internal): Rename from *movxf_integer.
8132         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
8133         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
8134         (*movdf_internal): Rename from *movdf_integer.
8135         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
8136         (*movsf_internal): Rename from *movdf_1.
8137
8138 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
8139
8140         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
8141         (const_gimple_seq_node): Removed typedefs.
8142
8143         * gimple.h (gimple_seq_node_d, gimple_seq_node)
8144         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
8145
8146 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
8147
8148         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
8149         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
8150         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
8151         and CODE_FOR_vec_extract_lo_v4df.
8152
8153         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
8154         Changed to define_insn_and_split.
8155         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
8156         (vec_extract_lo_v16hi): Likewise.
8157         (vec_extract_lo_v32qi): Likewise.
8158         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
8159         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
8160
8161 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
8162
8163         PR target/44640
8164         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
8165         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
8166         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
8167         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
8168         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
8169
8170         PR target/44640
8171         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
8172
8173         PR other/44644
8174         * df-core.c (struct df): Rename to df_d.
8175         * df.h (struct df): Likewise.
8176         * dse.h (struct df): Remove forward declaration.
8177         * recog.h (struct insn_data): Rename to:
8178         (struct_insn_data_d).  Adjusted all users.
8179
8180 2010-06-23  Arnaud Charlet  <charlet@adacore.com
8181
8182         PR ada/22220
8183         * doc/install.texi: Update requirements to build GNAT.
8184
8185 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
8186
8187         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
8188         enum type.
8189         (m68k_sched_attr_opx_type): Remove unreachable return.
8190         (m68k_sched_attr_opy_type): Likewise.
8191         (m68k_sched_attr_size): Likewise.
8192         (sched_get_opxy_mem_type): Likewise.
8193         (m68k_sched_attr_op_mem): Likewise.
8194
8195 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
8196
8197         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
8198         new statement and adjust VDEF only if necessary.  Remove superfluous
8199         call to maybe_clean_or_replace_eh_stmt.
8200         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
8201         copy the flags.
8202         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
8203         * tree-inline.c (copy_bb): ...and not there.
8204
8205 2010-06-22  Cary Coutant  <ccoutant@google.com>
8206
8207         * dwarf2out.c (is_nested_in_subprogram): New function.
8208         (should_move_die_to_comdat): Use it.
8209         (copy_ancestor_tree): Don't mark DIEs here.
8210         (copy_decls_walk): Start walk from root of newly-added tree;
8211         mark DIEs here instead.
8212
8213 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8214
8215         * config/i386/i386.md (unit): Also check sseishft1.
8216
8217 2010-06-22  Jan Hubicka  <jh@suse.cz>
8218
8219         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
8220         enabled.
8221
8222 2010-06-22  Jan Hubicka  <jh@suse.cz>
8223
8224         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
8225         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
8226         Return true if something changed.
8227         * df.h (df_confluence_function_n): Return bool.
8228         * df-core.c (df_worklist_propagate_forward,
8229         df_worklist_propagate_backward): Track changes and ages.
8230         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
8231         track ages.
8232         * dse.c (dse_confluence_n): Return always true.
8233
8234 2010-06-22  Jan Hubicka  <jh@suse.cz>
8235
8236         * bitmap.c (bitmap_clear_bit): Micro optimize.
8237
8238 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
8239
8240         * config/i386/i386.md (SWI1248x): New mode iterator.
8241         (SWI48x): Ditto.
8242         (SWI12): Ditto.
8243         (SWI24): Ditto.
8244
8245         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
8246         SWI1248x mode iterator.
8247         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
8248         using SWI124 mode iterator.
8249         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
8250         mode iterator.
8251         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
8252         *pushdi2_prologue_rex64 using P mode iterator.
8253         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
8254         using SWI48 mode iterator.
8255         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
8256         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
8257         using SWI1248x mode iterator.
8258         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
8259         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
8260         SWI48 mode iterator.
8261         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
8262         iterator.
8263         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
8264         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
8265         SWI12 mode iterator.
8266         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
8267         SWI12 mode iterator.
8268         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
8269         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
8270         SWI24 mode iterator.
8271         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
8272         SWI48 mode iterator.
8273         (mov<mode>_insn_1): New expander.
8274         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
8275         using SWI48x mode iterator.
8276
8277         (*movoi_internal_avx): Rename from *movoi_internal.
8278         (*movti_internal_rex64): Rename from *movti_rex64.
8279         (*movti_internal_sse): Rename from *movti_sse.
8280         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
8281         (*movdi_internal): Rename from *movdi_2.
8282         (*movsi_internal): Rename from *movsi_1.
8283         (*movhi_internal): Rename from *movhi_1.
8284         (*movqi_internal): Rename from *movqi_1.
8285
8286         (insv): Update the call to gen_movsi_insv_1 for rename.
8287         * config/i386/i386.c (promote_duplicated_reg): Ditto.
8288
8289 2010-06-22  Jan Hubicka  <jh@suse.cz>
8290
8291         * passes.c (execute_function_todo): Move call of statistics_fini_pass
8292         to ...
8293         (execute_todo) ... this one.
8294
8295 2010-06-22  Alan Modra  <amodra@gmail.com>
8296
8297         PR target/44364
8298         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
8299         * caller-save.c (insert_restore, insert_save): Use non-validate
8300         form of adjust_address.
8301
8302 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8303
8304         PR target/39690
8305         * config/pa/pa.c (override_options): Disable
8306         -freorder-blocks-and-partition.
8307
8308 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
8309
8310         PR target/44615
8311         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
8312
8313         * config/i386/i386.md (type): Add sseishft1
8314
8315         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
8316         (ppro_insn_load): Likewise.
8317         (ppro_insn_store): Likewise.
8318         (ppro_insn_both): Likewise.
8319
8320         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
8321         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
8322         for type.
8323         (*vec_extractv2di_1_avx): Likewise.
8324         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
8325         type.  Remove atom_unit.
8326         (*vec_extractv2di_1_sse2): Likewise.
8327
8328 2010-06-21  DJ Delorie  <dj@redhat.com>
8329
8330         * diagnostic.h (diagnostic_classification_change_t): New.
8331         (diagnostic_context): Add history and push/pop list.
8332         (diagnostic_push_diagnostics): Declare.
8333         (diagnostic_pop_diagnostics): Declare.
8334         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
8335         from pragmas in a history chain instead of the global table.
8336         (diagnostic_push_diagnostics): New.
8337         (diagnostic_pop_diagnostics): New.
8338         (diagnostic_report_diagnostic): Scan history chain to find state
8339         of diagnostics as of the diagnostic location.
8340         * opts.c (set_option): Pass UNKNOWN_LOCATION to
8341         diagnostic_classify_diagnostic.
8342         (enable_warning_as_error): Likewise.
8343         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
8344         use in the history chain.
8345         * doc/extend.texi: Document pragma GCC diagnostic changes.
8346
8347 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
8348
8349         * dwarf2out.c (add_linkage_name): New function.  Don't add
8350         anything to DW_TAG_member DIEs.
8351         (add_name_and_src_coords_attributes): Use it.
8352         (gen_variable_die): Call it for C++ static data members if
8353         specification is DW_TAG_member.
8354
8355         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
8356         C++ char16_t and char32_t.
8357
8358         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
8359         * genattrtab.c: Include vecprim.h.
8360         (cached_attrs, cached_attr_count, attrs_seen_once,
8361         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
8362         attrs_cached_after): New variables.
8363         (find_attrs_to_cache): New function.
8364         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
8365         (write_test_expr): Add attrs_cached argument, return it too,
8366         attempt to cache non-const attributes used more than once in
8367         a single case handling.
8368         (write_attr_get): Use find_attrs_to_cache, for caching candidates
8369         emit cached_* variables.  Adjust write_attr_set callers.
8370         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
8371         to find attributes that should be cached in this block.  Adjust
8372         write_test_expr callers.
8373         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
8374         callers.
8375         (make_automaton_attrs): Adjust write_test_expr caller.
8376
8377         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
8378         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
8379         (make_automaton_attrs): If find_tune_attr returns non-NULL,
8380         write separate internal_dfa_insn_code_* and insn_default_latency_*
8381         functions for each attribute's value and emit init_sched_attrs
8382         function and function pointers.
8383         * genattr.c (const_attrs, reservations): New variables.
8384         (gen_attr): Add const attributes to const_attrs vector.
8385         (check_tune_attr, find_tune_attr): New functions.
8386         (main): Add reservations to reservations vector.  If find_tune_attr
8387         returns true, add prototype for init_sched_attrs and make
8388         internal_dfa_insn_code and insn_default_latency function pointers,
8389         otherwise define init_sched_attrs as dummy macro.
8390         * cfgexpand.c: Include insn-attr.h.
8391         (gimple_expand_cfg): Call init_sched_attrs.
8392
8393         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
8394
8395         PR target/44575
8396         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
8397         va_arg from a set of register save slots into a temporary,
8398         if the container is bigger than type size, do the copying
8399         using smaller mode or using memcpy.
8400
8401         PR bootstrap/44426
8402         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
8403         prototype.
8404         (sel_print_to_dot): Remove macro.
8405         (sel_print): Likewise.  New prototype.
8406         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
8407         (sel_print): New function.
8408
8409 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8410
8411         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
8412         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
8413
8414 2010-06-21  Nick Clifton  <nickc@redhat.com>
8415
8416         * config/rx/rx.h (PTRDIFF_TYPE): Define.
8417         (SMALL_REGISTER_CLASS): Define (to zero).
8418         (PRINT_OPERAND): Delete.
8419         (PRINT_OPERAND_ADDRESS): Delete.
8420         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
8421         (rx_print_operand_address): Delete prototype.
8422         * config/rx/rx.c (rx_print_operand): Make static.
8423         Allow %H and %L to handle CONST_DOUBLEs.
8424         (rx_print_operand_address): Make static.
8425         (rx_gen_move_template): Rename local variable 'template' to
8426         out_template.
8427         (rx_function_arg): Do not pass unknown sized objects in registers.
8428         (TARGET_PRINT_OPERAND): Define.
8429         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8430
8431 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8432
8433         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
8434
8435 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
8436
8437         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
8438         stack-alignment for simple leaf-functions.
8439
8440 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
8441
8442         * doc/install.texi: Document bootstrap-lto.
8443
8444 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
8445
8446         PR debug/44248
8447         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
8448         (input_function): Drop them here, if VTA is disabled.
8449
8450 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
8451
8452         PR target/44546
8453         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
8454         New predicate.
8455         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
8456         ix86_swapped_fp_comparsion_operator instead of
8457         ix86_fp_comparison_operator.
8458
8459         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
8460         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
8461         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
8462         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
8463         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
8464         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
8465
8466 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
8467
8468         PR other/32998
8469         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
8470         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
8471         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
8472         (decode_cmdline_option): Update for this return value.  Set
8473         orig_option_with_args_text field.  Set arg field for unknown
8474         options.  Make static.
8475         (decode_cmdline_options_to_array): New.
8476         (prune_options): Update handling of find_opt return value.
8477         * opts.c (read_cmdline_option): Take decoded option.  Return void.
8478         (read_cmdline_options): Take decoded options.
8479         (decode_options): Add parameters for decoded options.  Use
8480         decode_cmdline_options_to_array.  Use decoded options for -O
8481         scan.  Use integral_argument for -O parameters.  Update call to
8482         read_cmdline_options.
8483         (enable_warning_as_error): Update handling of find_opt return value.
8484         * opts.h: Update comment on unknown options.
8485         (struct cl_decoded_option): Update comments on opt_index and arg.
8486         Add orig_option_with_args_text.
8487         (decode_cmdline_option): Remove.
8488         (decode_cmdline_options_to_array): Declare.
8489         (decode_options): Update prototype.
8490         * toplev.c (save_argv): Remove.
8491         (save_decoded_options, save_decoded_options_count): New.
8492         (read_integral_parameter): Remove.
8493         (print_switch_values): Use decoded options.
8494         (toplev_main): Don't set save_argv.  Update call to decode_options.
8495         * toplev.h (read_integral_parameter): Remove.
8496         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
8497
8498 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
8499
8500         PR target/44072
8501         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
8502         immediate.
8503         * constraints.md (Pw, Px): New constraints.
8504         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
8505
8506 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
8507
8508         * config/i386/sse.md (fma4modesuffixf4): Removed.
8509         (ssemodesuffixf2s): Likewise.
8510         (ssemodesuffixf4): Likewise.
8511         (ssemodesuffixf2c): Likewise.
8512         (ssescalarmodesuffix2s): Likewise.
8513         (avxmodesuffixf2c): Likewise.
8514         (ssemodesuffix): New.
8515         (ssescalarmodesuffix): Likewise.
8516         Update patterns with ssemodesuffix and ssescalarmodesuffix.
8517
8518 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
8519
8520         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
8521
8522 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
8523
8524         * stor-layout.c (debug_rli): Remove unused local variables.
8525
8526 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
8527
8528         PR rtl-optimization/40900
8529         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
8530         original expression for later reuse.
8531         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
8532         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
8533
8534 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
8535
8536         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
8537         double_int_fits_in_uhwi_p): Implement as static inline.
8538         (double_int_xor): New inline function.
8539         (double_int_lrotate, double_int_rrotate, double_int_max,
8540         double_int_umax, double_int_smax, double_int_min, double_int_umin,
8541         double_int_smin): Declare.
8542         (lrotate_double, rrotate_double): Remove declaration.
8543         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
8544         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
8545         (double_int_lrotate, double_int_rrotate, double_int_max,
8546         double_int_umax, double_int_smax, double_int_min, double_int_umin,
8547         double_int_smin): New function.
8548         * fold-const.c (int_const_binop): Clean up, use double_int_*
8549         functions.
8550         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
8551         double_int_* and immed_double_int_const functions.
8552
8553 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
8554
8555         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
8556         * function.c (types_used_by_cur_var_decl): Likewise.
8557         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
8558
8559 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
8560
8561         * tree.h (record_layout_info): Change type of pending_statics field
8562         to a VEC.
8563         * stor-layout.c (start_record_layout): Store NULL into
8564         pending_statics.
8565         (debug_rli): Call debug_vec_tree instead of debug_tree.
8566         (place_field): Likewise.
8567         (finish_record_layout): Likewise.
8568
8569 2010-06-18  Alan Modra  <amodra@gmail.com>
8570
8571         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
8572
8573 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8574
8575         PR target/43740
8576         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
8577         for SET source operand from SET destination operand.
8578
8579 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
8580
8581         PR rtl-optimization/39871
8582         * reload1.c (init_eliminable_invariants): For flag_pic, disable
8583         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
8584         (function_invariant_p): Rule out a plus of frame or arg pointer with
8585         a SYMBOL_REF.
8586         * ira.c (find_reg_equiv_invariant_const): Likewise.
8587
8588 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
8589
8590         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
8591         print_operand_address and puts to output the operand for CONST.
8592
8593 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
8594
8595         PR debug/44572
8596         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
8597         hook.
8598
8599 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8600
8601         * v850-protos.h (print_operand): Delete.
8602         (print_operand_address): Delete.
8603         * v850.h (PRINT_OPERAND): Delete.
8604         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8605         (PRINT_OPERAND_ADDRESS): Delete.
8606         * v850.c (print_operand_address): Rename to...
8607         (v850_print_operand_address): ...this.  Make static. Call
8608         v850_print_operand.
8609         (print_operand): Rename to...
8610         (v850_print_operand): ...this.  Make static.  Call
8611         v850_print_operand_address.
8612         (v850_print_operand_punct_valid_p): New function.
8613         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8614         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8615
8616 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8617
8618         * config/sh/sh-protos.h (print_operand): Delete.
8619         (print_operand_address): Delete.
8620         * config/sh/sh.h (PRINT_OPERAND): Delete.
8621         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8622         (PRINT_OPERAND_ADDRESS): Delete.
8623         * config/sh/sh.c (sh_print_operand_address): Make static.
8624         (sh_print_operand): Make static.  Call sh_print_operand_address
8625         and sh_print_operand.
8626         (sh_print_operand_punct_valid_p): New function.
8627         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8628         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8629
8630 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8631
8632         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
8633         (mcore_print_operand_address): Delete.
8634         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
8635         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8636         (PRINT_OPERAND_ADDRESS): Delete.
8637         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
8638         (mcore_print_operand): Make static.
8639         (mcore_print_operand_punct_valid_p): New function.
8640         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
8641         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8642
8643 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8644
8645         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
8646         (print_operand_address): Delete.
8647         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
8648         (PRINT_OPERAND_ADDRESS): Delete.
8649         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
8650         static.
8651         (m68hc11_print_operand): Make static.
8652         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8653
8654 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8655
8656         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
8657         (m32r_print_operand_address): Delete.
8658         * config/m32r/m32r.h (m32r_punct_chars): Delete.
8659         (PRINT_OPERAND): Delete.
8660         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8661         (PRINT_OPERAND_ADDRESS): Delete.
8662         * config/m32r/m32r.c (m32r_punct_chars): Make static.
8663         (m32r_print_operand_address): Make static.
8664         (m32r_print_operand): Make static.
8665         (m32r_print_operand_punct_valid_p): New function.
8666         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8667         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8668
8669 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8670
8671         * config/iq2000/iq2000-protos.h (print_operand): Delete.
8672         (print_operand_address): Delete.
8673         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
8674         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8675         (PRINT_OPERAND_ADDRESS): Delete.
8676         (iq2000_print_operand_punct): Delete.
8677         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
8678         (iq2000_print_operand_address): Make static.
8679         (iq2000_print_operand): Make static.
8680         (iq2000_print_operand_punct_valid_p): New function.
8681         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8682         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8683
8684 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8685
8686         * config/frv/frv-protos.h (frv_print_operand): Delete.
8687         (frv_print_operand_address): Delete.
8688         * config/frv/frv.h (PRINT_OPERAND): Delete.
8689         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8690         (PRINT_OPERAND_ADDRESS): Delete.
8691         * config/frv/frv.c (frv_print_operand_address): Make static.
8692         (frv_print_operand): Make static.
8693         (frv_print_operand_punct_valid_p): New function.
8694         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8695         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8696
8697 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8698
8699         * tree.h (vec_member): Declare.
8700         * tree.c (vec_member): Define.
8701
8702 2010-06-17  Richard Guenther  <rguenther@suse.de>
8703
8704         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
8705         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
8706
8707 2010-06-17  Richard Guenther  <rguenther@suse.de>
8708
8709         * tree-inline.c (declare_return_variable): Remove bogus code.
8710
8711 2010-06-17  Richard Guenther  <rguenther@suse.de>
8712
8713         * gimplify.c (gimplify_bind_expr): Always promote complex
8714         and vector variables to registers if possible.
8715
8716 2010-06-17  Richard Guenther  <rguenther@suse.de>
8717
8718         * expr.c (get_inner_reference): Use double_int for bit_offset
8719         calculation.
8720
8721 2010-06-16  DJ Delorie  <dj@redhat.com>
8722
8723         * common.opt (-fstrict-volatile-bitfields): new.
8724         * doc/invoke.texi: Document it.
8725         * fold-const.c (optimize_bit_field_compare): For volatile
8726         bitfields, use the field's type to determine the mode, not the
8727         field's size.
8728         * expr.c (expand_assignment): Likewise.
8729         (get_inner_reference): Likewise.
8730         (expand_expr_real_1): Likewise.
8731         * expmed.c (store_fixed_bit_field): Likewise.
8732         (extract_bit_field_1): Likewise.
8733         (extract_fixed_bit_field): Likewise.
8734
8735 2010-06-16  Richard Guenther  <rguenther@suse.de>
8736
8737         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
8738
8739 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
8740
8741         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
8742         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
8743         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
8744         * debug.c: Likewise.
8745         * sdbout.c: Likewise.
8746         * vmsdbgout.c: Likewise.
8747         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
8748         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
8749         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
8750         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
8751         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
8752         * dwarf2out.c (dw_fde_struct): New fields
8753         dw_fde_vms_{end,begin}_prologue.
8754         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
8755         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
8756         (dwarf2out_vms_end_prologue): New function.
8757         (dwarf2out_vms_begin_epilogue): New function.
8758         (dw_val_struct): New value dw_val_class_vms_delta.
8759         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
8760         begin_epilogue for VMS.
8761         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
8762         new static functions.
8763         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
8764         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
8765         static functions.
8766         (print_die): New case dw_val_class_vms_delta.
8767         (attr_checksum): Likewise.
8768         (same_dw_val_p: Likewise.
8769         (size_of_die): Likewise.
8770         (value_format): Likewise.
8771         (output_die): Likewise.
8772         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
8773         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
8774         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
8775         dwarf2out_cfi_begin_epilogue
8776         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
8777
8778 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
8779
8780         * config/cris/cris-protos.h (cris_print_operand): Delete.
8781         (cris_print_operand_address): Delete.
8782         * config/cris/cris.h (PRINT_OPERAND): Delete.
8783         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8784         (PRINT_OPERAND_ADDRESS): Delete.
8785         * config/cris/cris.c (cris_print_operand_address): Make static.
8786         (cris_print_operand): Make static.
8787         (cris_print_operand_punct_valid_p): New function.
8788         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8789         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8790
8791 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
8792
8793         * config/arm/arm-protos.h (arm_print_operand): Delete.
8794         (arm_print_operand_address): Delete.
8795         * config/arm/arm.h (PRINT_OPERAND): Delete.
8796         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8797         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
8798         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
8799         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
8800         (arm_print_operand): Make static.
8801         (arm_print_operand_punct_valid_p): New function.
8802         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8803         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8804
8805 2010-06-16  Nick Clifton  <nickc@redhat.com>
8806
8807         * config/rx/constraints.md (NEGint4): New constraint.
8808         * config/rx/rx.md (attr cc): Add set_zsc.
8809         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
8810         initialised.
8811         (cmpsf): Likewise.
8812         (call_internal): Clobber the cc0 register.
8813         (call_value_internal): Likewise.
8814         (cstoresi4): Likewise.
8815         (movsieq): Likewise.
8816         (movsine): Likewise.
8817         (addsi3): Add alternative to handle small negative constants.
8818         (sunsi3): Likewise.
8819         (addsi3): Do not set the O bit in the cc0 register.
8820         (adddi3): Likewise.
8821         (subsi3): Likewise.
8822         (subdi3): Likewise.
8823         (andsi3): Reorder alternatives to prefer shorter forms.
8824         (mulsi3): Likewise.
8825         (iorsi3): Likewise.
8826         (negsi2): Note that the cc0 flags are set.
8827         (rotlsi3): Note that only the Z and S bits are set in cc0.
8828         (lshrsi3): Likewise.
8829         (ashlsi3): Likewise.
8830         (subsf3): Use %Q for the MEM operand.
8831         (fix_truncsfsi2): Likewise.
8832         (floatsisf2): Likewise.
8833         (bitset): Remove early clobber from destination.
8834         (bitset_in_memory): Likewise.
8835         (lrintsf2): Clobber the cc0 register.
8836         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
8837         (rx_print_operand): Handle %N.
8838
8839 2010-06-16  Jan Hubicka  <jh@suse.cz>
8840
8841         * df-core.c (df_compact_blocks): Free problem_temps vector.
8842
8843 2010-06-16  Martin Jambor  <mjambor@suse.cz>
8844
8845         PR tree-optimization/43905
8846         * tree-sra.c: Include tree-inline.h.
8847         (create_abstract_origin): Removed.
8848         (modify_function): Version the call graph node instead of creating
8849         abstract origins and dealing with same_body aliases.
8850         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
8851         function is versionable.
8852         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
8853
8854 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
8855
8856         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
8857         (CHOOSE_DYNAMIC_LINKER): Update.
8858
8859 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
8860
8861         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
8862         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
8863         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
8864         *prefetch_3dnow_rex.
8865
8866 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
8867
8868         * target.h (struct asm_out):Add declare_constant_name field.
8869         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
8870         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
8871         * output.h (default_asm_declare_constant_name): Declare.
8872         (assemble_label): Update prototype.
8873         * varasm.c (assemble_constant_contents): Use
8874         targetm.asm_out.declare_constant_name target hook.
8875         (assemble_label): Add 'file' argument.
8876         (default_asm_declare_constant_name): New function.
8877         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
8878         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
8879         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
8880
8881         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
8882         * config/darwin.c (darwin_asm_declare_constant_name): New function.
8883         (machopic_output_indirection): Update assemble_label argument list.
8884         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
8885         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
8886
8887 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
8888
8889         PR middle-end/44391
8890         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
8891         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
8892
8893 2010-06-15  Richard Guenther  <rguenther@suse.de>
8894
8895         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
8896
8897 2010-06-15  Paul Brook  <paul@codesourcery.com>
8898
8899         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
8900         hard-float ABI.
8901
8902 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
8903
8904         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
8905         don't get a vector type for output.
8906
8907 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
8908
8909         PR fortran/44536
8910         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
8911         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
8912         (LANG_HOOKS_DECLS): Add it.
8913         * gimplify.c (omp_notice_variable): Call
8914         lang_hooks.decls.omp_report_decl.
8915
8916 2010-06-15  Martin Jambor  <mjambor@suse.cz>
8917
8918         PR lto/44464
8919         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
8920         on the newly dead SSA name.
8921
8922 2010-06-15  Alan Modra  <amodra@gmail.com>
8923
8924         * doc/invoke.texi: Add mcmodel to powerpc options.
8925         * configure.ac: Add HAVE_LD_LARGE_TOC test.
8926         * configure: Regenerate.
8927         * config.in: Regenerate.
8928         * config/rs6000/linux64.opt (mcmodel): New.
8929         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
8930         (TARGET_CMODEL, SET_CMODEL): Define.
8931         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
8932         select CMODEL_MEDIUM default.
8933         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
8934         (TARGET_CMODEL): Define default.
8935         * config/rs6000/rs6000.c (cmodel): New variable.
8936         (rs6000_explicit_options): Add cmodel field.
8937         (rs6000_handle_option): Handle -mcmodel.
8938         (create_TOC_reference): Add largetoc_reg param.  Generate high,
8939         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
8940         (rs6000_delegitimize_address): Recognise new toc reference rtl
8941         and minimal-toc rtl.
8942         (rs6000_legitimize_reload_address): Handle new toc references.
8943         (print_operand_address): Handle legitimate_constant_pool_address_p
8944         match before lo_sum.
8945         (rs6000_eliminate_indexed_memrefs): Tidy.
8946         (rs6000_emit_move): Tweak threshold for inlining constants.
8947         Keep rs6000_emit_allocate_stack large stack frame offsets
8948         loaded into r0 inline.
8949         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
8950         (tocrel_base, tocrel_offset): New variables.
8951         (toc_relative_expr_p): Set them here.
8952         (print_operand_address): Skip over any offset on constant pool address.
8953         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
8954         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
8955         (offsettable_ok_by_alignment): New function.
8956         (rs6000_emit_move): Address suitably aligned local symbol_refs
8957         relative to the toc pointer for -mcmodel=medium.
8958         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
8959         strict param.  Allow lo_sum version of addressing.  Verify reg
8960         used for -mminimal-toc and -mcmodel != small.  Update all callers.
8961         * config/rs6000/constraints.md: Update for above change.
8962         * config/rs6000/predicates.md: Likewise.
8963         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
8964         code.
8965         (tls_gd): Split for -mcmodel=medium/large.
8966         (tls_gd_high, tls_gd_low): New.
8967         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
8968         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
8969         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
8970         (largetoc_high, largetoc_low): New.
8971         (cmptf_internal2): Add clobber.
8972         * config/rs6000/rs6000-protos.h: Update.
8973
8974 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
8975
8976         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
8977         true if no prefetch is going to be generated for a given group.
8978         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
8979         estimate the prefetch_count.
8980         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
8981         prefetch count by considering the unroll_factor and prefetch_mod
8982         for is_loop_prefetching_profitable.
8983
8984 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
8985
8986         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
8987         anything if the argument is not a MEM.
8988
8989 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
8990
8991         PR debug/43650
8992         PR debug/44181
8993         PR debug/44247
8994         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
8995         debug stmts.
8996         (canonicalize_loop_ivs): Likewise.
8997
8998 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
8999
9000         PR debug/43656
9001         * haifa-sched.c (setup_insn_reg_pressure_info,
9002         update_register_pressure): Reject debug insns.
9003         (ready_sort): Don't setup reg pressure for debug insns.
9004         (schedule_insn): Don't update reg pressure for debug insns.
9005
9006 2010-06-14  Richard Guenther  <rguenther@suse.de>
9007
9008         * lto-streamer.c (cached_bp): Remove.
9009         (bitpack_delete): Likewise.
9010         (bitpack_create): Likewise.
9011         (bp_get_next_word): Likewise.
9012         (bp_pack_value, bp_unpack_value): Move ...
9013         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
9014         Re-implement.
9015         (struct bitpack_d): Likewise.
9016         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
9017         New inline functions.
9018         * lto-streamer-out.c (lto_output_bitpack): Remove.
9019         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
9020         (pack_value_fields): Adjust.
9021         (lto_write_tree): Likewise.
9022         (output_gimple_stmt): Likewise.
9023         (output_function): Likewise.
9024         * lto-streamer-in.c (input_gimple_stmt): Adjust.
9025         (input_function): Likewise.
9026         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
9027         (lto_input_bitpack): Remove.
9028         (lto_materialize_tree): Adjust.
9029         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
9030         * lto-cgraph.c (lto_output_edge): Adjust.
9031         (lto_output_node): Likewise.
9032         (lto_output_varpool_node): Likewise.
9033         (lto_output_ref): Likewise.
9034         (input_node): Likewise.
9035         (input_varpool_node): Likewise.
9036         (input_ref): Likewise.
9037         (input_edge): Likewise.
9038         (output_node_opt_summary): Likewise.
9039         (input_node_opt_summary): Likewise.
9040         * ipa-pure-const.c (pure_const_write_summary): Likewise.
9041         (pure_const_read_summary): Likewise.
9042         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
9043         (ipa_read_indirect_edge_info): Likewise.
9044         (ipa_write_node_info): Likewise.
9045         (ipa_read_node_info): Likewise.
9046
9047 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
9048
9049         PR target/44534
9050         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
9051         (vec_extract_lo_v16hi): Likewise.
9052         (vec_extract_lo_v32qi): Likewise.
9053
9054 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
9055
9056         PR bootstrap/44426
9057         * tree.h (build_call_expr): Don't define as vararg macro, instead
9058         add a prototype.
9059         * builtins.c (build_call_nofold): Remove.
9060         (expand_builtin_int_roundingfn, expand_builtin_pow,
9061         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
9062         expand_builtin_memset_args, expand_builtin_strcmp,
9063         expand_builtin_strncmp, expand_builtin_memory_chk): Use
9064         build_call_nofold_loc instead of build_call_nofold.
9065         (build_call_expr): New function.
9066
9067         PR tree-optimization/44508
9068         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
9069         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
9070         don't eliminate trivially dead stmts.
9071         * tree-vrp.c (vrp_finalize): Pass false as last argument
9072         to substitute_and_fold.
9073         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
9074         to substitute_and_fold.
9075         * tree-ssa-ccp.c (ccp_finalize): Likewise.
9076
9077         PR bootstrap/44509
9078         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
9079
9080 2010-06-14  Ira Rosen  <irar@il.ibm.com>
9081
9082         PR tree-optimization/44507
9083         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
9084         to build initial vector for BIT_AND_EXPR.
9085         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
9086
9087 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
9088
9089         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
9090         adjust z10prop set_attr.
9091
9092 2010-06-13  Jan Hubicka  <jh@suse.cz>
9093
9094         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
9095         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
9096         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
9097         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
9098         datastructure checks into checking asserts.
9099         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
9100         * tree-ssa-sccvn.c (VN_INFO): Likewise.
9101         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
9102         df_ref_create_structure): Likewise.
9103         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
9104         pool_free): Use gcc_checking_assert.
9105         * alias.c (get_alias_set): Likewise.
9106         * var-tracking.c (variable_htab_free, shared_hash_copy,
9107         canonicalize_values_mark, variable_merge_over_cur): Likewise.
9108         * lto-streamer.c (bp_unpack_value): Likewise.
9109
9110 2010-06-13  Richard Guenther  <rguenther@suse.de>
9111
9112         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
9113         Do not stream but initialize TYPE_CANONICAL to NULL.
9114         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
9115         * gimple.c (gimple_types_compatible_p): Disregard
9116         TYPE_STRUCTURAL_EQUALITY_P.
9117         (gimple_register_type): Use TYPE_CANONICAL as cache.
9118         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
9119         before registering common types.
9120         * config/i386/i386.c (ix86_function_arg_boundary): Do not
9121         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
9122         * tree.h (TYPE_CANONICAL): Clarify documentation.
9123
9124 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
9125
9126         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9127         LIBCALL_VALUE): Remove macros.
9128         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
9129         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9130         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9131         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
9132         (ia64_function_value): Make static. Handle receiving the function
9133         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
9134
9135 2010-06-12  Jan Hubicka  <jh@suse.cz>
9136
9137         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
9138         at correct place.
9139
9140 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
9141
9142         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
9143
9144 2010-06-12  Jan Hubicka  <jh@suse.cz>
9145
9146         * df-core.c (df_clear_bb_info): New function.
9147         (df_set_blocks): bb_info is always allocated.
9148         (df_get_bb_info): Use block_info_elt_size.
9149         (df_set_bb_info): Likewise.
9150         (df_compact_blocks): Update for new block_info.
9151         (grow_bb_info): New function.
9152         * df-problems.c (df_grow_bb_info): Move to df-core.c
9153         (df_rd_set_bb_info): Remove.
9154         (df_rd_free_bb_info): Do not free block pool.
9155         (df_rd_alloc): Do not create pool, use check for
9156         obstack presence instead of NULL pointer for new blocks.
9157         (df_rd_free): DO not free alloc pool; clear block_info.
9158         (problem_RD): Add size of block info structure.
9159         (df_lr_set_bb_info): Remove.
9160         (df_lr_free_bb_info): Do not free block pool.
9161         (df_lr_alloc): Do not create pool, use check for
9162         obstack presence instead of NULL pointer for new blocks.
9163         (df_lr_free): DO not free alloc pool; clear block_info.
9164         (problem_LR): Add size of block info structure.
9165         (df_live_set_bb_info): Remove.
9166         (df_live_free_bb_info): Do not free block pool.
9167         (df_live_alloc): Do not create pool, use check for
9168         obstack presence instead of NULL pointer for new blocks.
9169         (df_live_free): DO not free alloc pool; clear block_info.
9170         (problem_LIVE): Add size of block info structure.
9171         (problem_CHAIN): Add size of block info structure.
9172         (df_byte_lr_set_bb_info): Remove.
9173         (df_byte_lr_free_bb_info): Do not free block pool.
9174         (df_byte_lr_alloc): Do not create pool, use check for
9175         obstack presence instead of NULL pointer for new blocks.
9176         (df_byte_lr_free): DO not free alloc pool; clear block_info.
9177         (problem_BYTE_LR): Add size of block info structure.
9178         (problem_NOTE): Add size of block info structure.
9179         (df_byte_MD_set_bb_info): Remove.
9180         (df_byte_MD_free_bb_info): Do not free block pool.
9181         (df_byte_MD_alloc): Do not create pool, use check for
9182         obstack presence instead of NULL pointer for new blocks.
9183         (df_byte_MD_free): DO not free alloc pool; clear block_info.
9184         (problem_BD): Add size of block info structure.
9185         * df-scan.c (df_scan_free_internal): Free block pool.
9186         (df_scan_set_bb_info): Remove.
9187         (df_scan_free_bb_info): Check for artificial_defs instead
9188         of bb_info being non-NULL.
9189         (df_scan_alloc): DO not create df_scan_block pool.
9190         (problem_SCAN): Set size of block info.
9191         (df_bb_refs_record): Do not allocate bb_info.
9192         * df.h (df_problem): Add block_info_elt_size.
9193         (struct dataflow): Change block_info to void *.
9194         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
9195         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
9196         in-line structures.
9197
9198 2010-06-12  Jan Hubicka  <jh@suse.cz>
9199
9200         PR tree-optimize/44485
9201         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
9202         containing use of return value of noreturn function.
9203
9204 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
9205
9206         * targhooks.c (default_function_value): Don't use
9207         FUNCTION_OUTGOING_VALUE.
9208         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
9209         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
9210
9211 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
9212
9213         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
9214         Add crtfastmath.o to extra_parts.
9215         * config/mips/crtfastmath.c: New.
9216         * config/mips/linux.h (ENDFILE_SPEC): New.
9217
9218 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
9219
9220         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
9221         old_type in parameter.
9222         (gcc_type_for_value): Update call to gcc_type_for_interval.
9223         (compute_type_for_level_1): Renamed compute_type_for_level.
9224         Update call to gcc_type_for_interval.
9225
9226 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
9227
9228         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
9229         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
9230
9231 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
9232
9233         * opts-common.c: Include options.h.
9234         (integral_argument): Move from opts.c.
9235         (decode_cmdline_option): New.  Based on read_cmdline_option.
9236         * opts.c (integral_argument): Move to opts-common.c.
9237         (read_cmdline_option): Move most contents to
9238         decode_cmdline_option.  Use %qs in diagnostics.
9239         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
9240         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
9241         decode_cmdline_option): New.
9242
9243 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
9244
9245         PR target/44481
9246         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
9247         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
9248         (partiysi2_cmp): Ditto.
9249         (*partiyhi2_cmp): Ditto.
9250         (*parityqi2_cmp): Remove.
9251
9252 2010-06-11  Jan Hubicka  <jh@suse.cz>
9253
9254         * bitmap.h (bmp_iter_next_bit): New.
9255         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
9256
9257 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
9258             Eric Botcazou  <ebotcazou@adacore.com>
9259
9260         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
9261         computed cost.
9262
9263 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
9264
9265         * config/i386/i386.md (unspec): New define_c_enum.
9266         (unspecv): Ditto.
9267
9268 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
9269
9270         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
9271
9272 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
9273
9274         PR middle-end/44483
9275         * tree-if-conv.c (bb_predicate_s): New struct.
9276         (bb_predicate_p): New.
9277         (bb_has_predicate): New.
9278         (bb_predicate): New.
9279         (set_bb_predicate): New.
9280         (bb_predicate_gimplified_stmts): New.
9281         (set_bb_predicate_gimplified_stmts): New.
9282         (add_bb_predicate_gimplified_stmts): New.
9283         (init_bb_predicate): New.
9284         (free_bb_predicate): New.
9285         (is_predicated): Use bb_predicate.
9286         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
9287         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
9288         before processing their successors.
9289         (clean_predicate_lists): Removed.
9290         (find_phi_replacement_condition): Use bb_predicate.
9291         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
9292         computations.
9293         (insert_gimplified_predicates): New.
9294         (combine_blocks): Call insert_gimplified_predicates.
9295         (tree_if_conversion): Call free_bb_predicate instead of
9296         clean_predicate_lists.
9297
9298 2010-10-11  Paul Brook  <paul@codesourcery.com>
9299
9300         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
9301         * config/arm/arm.c (all_architectures): Change v7e-m default to
9302         cortexm4.
9303         * config/arm/arm-cores.def: Add cortex-m4.
9304         * config/arm/arm-tune.md: Regenerate.
9305
9306 2010-06-11  Jan Hubicka  <jh@suse.cz>
9307
9308         * ipa-pure-const.c (special_builtlin_state): New function.
9309         (check_call): Use it instead of special casign BUILT_IN_RETURN.
9310         (propagate_pure_const): Use it.
9311
9312 2010-06-11  Jan Hubicka  <jh@suse.cz>
9313
9314         * df-problems.c (df_live_scratch): Convert to bitmap_head.
9315         (df_live_alloc): Initialize df_live_scratch when initializing
9316         problem_data.
9317         (df_live_transfer_function): Update uses of df_live_scratch.
9318         (df_live_free): Free problem_data; clear df_live_scratch before
9319         releasing the obstack.
9320         (df_md_free): Free problem data.
9321
9322 2010-06-11  Jan Hubicka  <jh@suse.cz>
9323
9324         * doc/invoke.texi (Wsuggest-attribute): Document.
9325         (Wmissing-noreturn): Remove.
9326         * ipa-pure-const.c (warn_function_noreturn): New function.
9327         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
9328         warn_missing_noreturn.
9329         * common.opt (Wsuggest-attribute=noreturn): New.
9330         * tree-flow.h (warn_function_noreturn): Declare.
9331         * tree-cfg.c (execute_warn_function_noreturn): Use
9332         warn_function_noreturn.
9333         (gate_warn_function_noreturn): New.
9334         (pass_warn_function_noreturn): Update.
9335
9336 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9337
9338         * c-typeck.c (handle_warn_cast_qual): Add loc
9339         parameter. Improve warning message.
9340         (build_c_cast): Pass location to handle_warn_cast_qual.
9341
9342 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
9343
9344         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
9345         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
9346         insn mnemonic.
9347         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
9348
9349 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
9350
9351         Fix bootstap on mips
9352         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
9353         be naming typedefs.
9354
9355 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
9356
9357         * system.h (helper_const_non_const_cast): New inline for
9358         gcc version <= 4.0.
9359         (CONST_CAST2): For gcc version <= 4.0 use
9360         new helper to do const/non-const casting.
9361
9362 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9363
9364         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
9365         * Makefile.in (OBJS-common): Include insn-enums.o.
9366         (insn-enums.o): New rule.
9367         (simple_generated_c): Add insn-enums.c.
9368         (build/genenums.o): New rule.
9369         (genprogmd): Add "enums".
9370         * genconstants.c (print_enum_type): Declare a C string array
9371         for each enum.
9372         * genenums.c: New file.
9373         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
9374         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
9375         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
9376
9377 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9378
9379         * doc/md.texi (define_enum_attr): Document.
9380         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
9381         * read-md.h (lookup_enum_type): Declare.
9382         * read-md.c (lookup_enum_type): New function.
9383         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
9384         * genattrtab.c (attr_desc): Add an enum_name field.
9385         (evaluate_eq_attr): Take the associated attribute as argument.
9386         Get the enum prefix from the enum_name field, if defined.
9387         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
9388         (simplify_test_exp): Pass attr to evaluate_eq_attr.
9389         (add_attr_value): New function, split out from...
9390         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
9391         (write_test_expr): Pass attr to evaluate_eq_attr.
9392         (write_attr_get): Use the enum_name as the enum tag, if defined.
9393         (write_attr_valueq): Use the enum_name as a prefix, if defined.
9394         (find_attr): Initialize enum_name.
9395         (main): Handle DEFINE_ENUM_ATTR.
9396         * gensupport.c (process_rtx): Likewise.
9397         * config/mips/mips.h (mips_tune_attr): Delete.
9398         * config/mips/mips.md (cpu): Use define_attr_enum.
9399
9400 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9401
9402         * doc/md.texi (define_c_enum, define_enum): Document.
9403         * read-md.h (md_constant): Add a parent_enum field.
9404         (enum_value, enum_type): New structures.
9405         (upcase_string, traverse_enum_types): Declare.
9406         * read-md.c (enum_types): New variable.
9407         (upcase_string, add_constant): New functions.
9408         (handle_constants): Don't create the hash table here.
9409         Use add_constant.
9410         (traverse_md_constants): Don't check for a null md_constants.
9411         (decimal_string, handle_enum, traverse_enum_types): New functions.
9412         (read_md_files): Initialize md_constants and md_enums.
9413         * genconstants.c (print_md_constant): Ignore info argument.
9414         Only print constants that belong to no enum.
9415         (print_enum_type): New function.
9416         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
9417         for each defined enum type.
9418         * config/mips/mips.md (processor): New define_enum.
9419         (unspec): New define_c_enum.
9420         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
9421         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
9422         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
9423         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
9424         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
9425         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
9426         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
9427         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
9428         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
9429         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
9430         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
9431         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
9432         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
9433         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
9434         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
9435         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
9436         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
9437         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
9438         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
9439         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
9440         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
9441         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
9442         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
9443         (UNSPEC_RDDSP): Move to mips-dsp.md.
9444         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
9445         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
9446         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
9447         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
9448         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
9449         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
9450         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
9451         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
9452         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
9453         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
9454         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
9455         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
9456         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
9457         Moved to mips-dspr2.md.
9458         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
9459         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
9460         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
9461         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
9462         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
9463         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
9464         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
9465         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
9466         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
9467         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
9468         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
9469         UNSPEC_LOONGSON_PSADBH)
9470         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
9471         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
9472         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
9473         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
9474         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
9475         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
9476         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
9477         (cpu): Update comment.
9478         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
9479         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
9480         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
9481         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
9482         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
9483         UNSPEC_LOONGSON_PCMPEQ)
9484         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
9485         UNSPEC_LOONGSON_PINSR_0)
9486         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
9487         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
9488         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
9489         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
9490         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
9491         UNSPEC_LOONGSON_PSADBH)
9492         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
9493         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
9494         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
9495         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
9496         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
9497         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
9498         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
9499         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
9500         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
9501         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
9502         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
9503         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
9504         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
9505         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
9506         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
9507         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
9508         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
9509         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
9510         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
9511         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
9512         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
9513         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
9514         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
9515         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
9516         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
9517         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
9518         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
9519         (UNSPEC_RDDSP): Moved from mips.md.
9520         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
9521         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
9522         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
9523         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
9524         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
9525         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
9526         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
9527         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
9528         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
9529         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
9530         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
9531         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
9532         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
9533         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
9534         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
9535         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
9536         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
9537         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
9538         (UNSPEC_SCC): Moved from mips.md.
9539         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
9540         "processor_type" to "processor".
9541         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
9542         * config/mips/mips.h (processor_type): Delete.
9543         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
9544         "processor_type" to "processor".
9545
9546 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9547
9548         * configure.ac (tm_include_list): Add insn-constants.h.
9549         * configure: Regenerate.
9550         * Makefile.in (GTM_H): Move insn-constants.h here from...
9551         (TM_H): ...here.
9552         * mkconfig.sh: Remove special handling for insn-constants.h.
9553
9554 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9555
9556         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
9557         (BUILD_MD): ...this new variable.
9558         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
9559         that include the old contents of simple_generated_h and
9560         simple_generated_c.
9561         (simple_generated_h, simple_generated_c): Include them.  Add
9562         insn-constants.h.
9563         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
9564         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
9565         Remove these dependencies from the main rule and include
9566         insn-conditions.md in the command line only if it appears
9567         in the dependency list.
9568         (insn-constants.h, s-constants): Delete.
9569         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
9570         or gensupport.h.
9571         (build/genmddeps.o): Likewise.
9572         (genprogrtl): New variable that contains everything from genprogmd
9573         except mddeps and constants.
9574         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
9575         depend on $(BUILD_MD)
9576         (genprog): New variable.  Make these programs depend on
9577         $(BUILD_ERRORS).
9578         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
9579         (main): Use read_md_files instead of init_rtx_reader_args.
9580         * genconstants.c: As for genmddeps.c.
9581         * read-md.h (read_skip_construct): Declare.
9582         * read-md.c (read_skip_construct): New function.
9583         (handle_file): Allow a null handle_directive, skipping the
9584         construct if so.
9585         (parse_include): Update the comment accordingly.
9586
9587 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9588
9589         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
9590         * genmddeps.c: Include read-md.h.
9591         (main): Call init_rtx_reader_args instead of init_md_reader_args.
9592         * genattr.c (main): Likewise.
9593         * genattrtab.c (main): Likewise.
9594         * genautomata.c (main): Likewise.
9595         * gencodes.c (main): Likewise.
9596         * genconditions.c (main): Likewise.
9597         * genconfig.c (main): Likewise.
9598         * genconstants.c (main): Likewise.
9599         * genemit.c (main): Likewise.
9600         * genextract.c (main): Likewise.
9601         * genflags.c (main): Likewise.
9602         * genopinit.c (main): Likewise.
9603         * genoutput.c (main): Likewise.
9604         * genpeep.c (main): Likewise.
9605         * genrecog.c (main): Likewise.
9606         * genpreds.c (main): Likewise.
9607         * gensupport.h (in_fname): Move to read-md.h.
9608         (init_md_reader_args_cb): Rename to...
9609         (init_rtx_reader_args_cb): ...this and return a bool.
9610         (init_md_reader_args): Rename to...
9611         (init_rtx_reader_args): ...this and return a bool.
9612         (include_callback): Move to read-md.h.
9613         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
9614         (file_name_list, first_dir_md_include): Move to read-md.c
9615         (first_bracket_include): Delete unused variable.
9616         (last_dir_md_include): Move to read-md.c.
9617         (process_include): Delete, moving code to read-md.c:handle_include.
9618         (process_rtx): Don't handle INCLUDE.
9619         (save_string): Delete.
9620         (rtx_handle_directive): New function.
9621         (init_md_reader_args_cb): Rename to...
9622         (init_rtx_reader_args_cb): ...this and return a boolean success value.
9623         Use read_md_args.
9624         (init_md_reader_args): Rename to...
9625         (init_rtx_reader_args): ...this and return a boolean success value.
9626         * rtl.def (INCLUDE): Delete.
9627         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
9628         argument.
9629         * read-rtl.c (read_conditions): Don't gobble ')' here.
9630         (read_mapping): Likewise.
9631         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
9632         Handle top-level non-rtx constructs here rather than in read_rtx_1.
9633         Store the whole queue in *X.  Remove call to init_md_reader.
9634         (read_rtx_1): Rename to...
9635         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
9636         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
9637         here.
9638         (read_nested_rtx): New function.  Handle (nil) here rather than
9639         in read_rtx_code.
9640         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
9641         gobble ')' here.
9642         * read-md.h (directive_handler_t): New type.
9643         (in_fname, include_callback): Moved from read-md.h.
9644         (read_constants, init_md_reader): Delete.
9645         (read_md_files): Declare.
9646         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
9647         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
9648         from gensupport.c.
9649         (read_constants): Rename to...
9650         (handle_constants): ...this.  Don't gobble ')' here.
9651         (handle_include, handle_file, handle_toplevel_file)
9652         (parse_include): New functions, mostly taken from gensupport.c.
9653         (init_md_reader): Subsume into...
9654         (read_md_files): ...this new function.
9655
9656 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9657
9658         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
9659         (unread_char): Decrement read_md_lineno after putting back '\n'.
9660         * read-md.c (fatal_with_file_and_line): Push back any characters
9661         that we decide not to add to the context.
9662         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
9663         fatal_expected_char in cases where '/' ends a line (for example).
9664         (read_name): Don't increment read_md_lineno here.
9665         (read_escape): Likewise.
9666         (read_quoted_string): Likewise.
9667         (read_braced_string): Likewise.
9668
9669 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9670
9671         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
9672         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
9673         * genconstants.c: Include read-md.h.
9674         * read-rtl.c (md_constants): Move to read-md.c.
9675         (md_name): Move to read-md.h.
9676         (initialize_iterators): Use leading_string_hash instead of def_hash
9677         and leading_string_eq_p instead of def_name_eq_p.
9678         (read_name): Move to read-md.c.
9679         (def_hash, def_name_eq_p): Delete.
9680         (read_constants, traverse_md_constants): Move to read-md.c.
9681         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
9682         * read-md.h: Include hashtab.h.
9683         (md_name): Moved from read-rtl.c.
9684         (md_constant): Moved from read-md.h.
9685         (leading_string_hash, leading_string_eq_p, read_name)
9686         (read_constants, traverse_md_constants): Declare.
9687         * read-md.c (md_constants): Moved from read-rtl.c.
9688         (leading_string_hash, leading_string_eq_p): New functions.
9689         (read_name, read_constants, traverse_md_constants): Moved from
9690         read-rtl.c.
9691
9692 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9693
9694         * read-rtl.c (md_name): New structure.
9695         (read_name): Take an md_name instead of a buffer pointer.
9696         Use the "string" field instead of strcpy when expanding constants.
9697         (read_constants): Remove the tmp_char argument.  Update the calls
9698         to read_name, using two local name buffers instead of the tmp_char
9699         argument.  Merge the constant-creation code.
9700         (read_conditions): Remove the tmp_char argument.  Update the calls
9701         to read_name, using a local name buffer instead of the tmp_char
9702         argument.
9703         (read_mapping): Replace tmp_char variable with a local name buffer.
9704         Update the calls to read_name.
9705         (read_rtx_1): Likewise.  Update the calls to read_constants and
9706         read_conditions.
9707
9708 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9709
9710         * Makefile.in (build/read-md.o): Depend on errors.h.
9711         * read-md.h (error_with_line): Declare.
9712         * read-md.c: Include errors.h.
9713         (message_with_line_1): New function, extracted from...
9714         (message_with_line): ...here.
9715         (error_with_line): New function.
9716         * genattrtab.c: If a call to message_with_line is followed by
9717         "have_error = 1;", replace both statements with a call to
9718         error_with_line.
9719         * genoutput.c: Likewise.
9720         * genpreds.c: Likewise.
9721         * genrecog.c: If a call to message_with_line is followed by
9722         "error_count++;", replace both statements with a call to
9723         error_with_line.
9724         (errorcount): Delete.
9725         (main): Don't check it.
9726         * gensupport.c: If a call to message_with_line is followed by
9727         "errors = 1;", replace both statements with a call to error_with_line.
9728         (errors): Delete.
9729         (process_define_cond_exec): Check have_error instead of errors.
9730         (init_md_reader_args_cb): Likewise.  Don't set errors.
9731
9732 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9733
9734         * read-md.h (read_md_file): Declare.
9735         (read_char, unread_char): New functions.
9736         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
9737         (read_quoted_string, read_string): Remove FILE * argument.
9738         * read-md.c (read_md_file): New variable.
9739         (read_md_filename, read_md_lineno): Update comments and remove
9740         unnecessary initialization.
9741         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
9742         (read_escape, read_quoted_string, read_braced_string, read_string):
9743         Remove FILE * argument.  Update calls accordingly, using read_char
9744         and unread_char instead of getc and ungetc.
9745         * rtl.h (read_rtx): Remove FILE * argument.
9746         * read-rtl.c (iterator_group): Remove FILE * argument from
9747         "find_builtin".
9748         (iterator_traverse_data): Remove "infile" field.
9749         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
9750         (add_mapping, read_name, read_constants, read_conditions)
9751         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
9752         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
9753         Remove file arguments from all calls, using read_char and unread_char
9754         instead of getc and ungetc.
9755         * gensupport.c (process_include): Preserve read_md_file around
9756         the include.  Set read_md_file to the handle of the included file.
9757         Update call to read_rtx.
9758         (init_md_reader_args_cb): Set read_md_file to the handle of the file
9759         and remove local FILE *.  Update calls to read_rtx.
9760
9761 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9762
9763         * read-md.h (read_rtx_lineno): Rename to...
9764         (read_md_lineno): ...this.
9765         (read_rtx_filename): Rename to...
9766         (read_md_filename): ...this.
9767         (copy_rtx_ptr_loc): Rename to...
9768         (copy_md_ptr_loc): ...this.
9769         (print_rtx_ptr_loc): Rename to...
9770         (print_md_ptr_loc): ...this.
9771         * read-md.c: Likewise.  Update references after renaming.
9772         (string_obstack): Replace RTL with MD in comment.
9773         (set_rtx_ptr_loc): Rename to...
9774         (set_md_ptr_loc): ...this.
9775         (get_rtx_ptr_loc): Rename to...
9776         (get_md_ptr_loc): ...this.
9777         * genconditions.c: Update references after renaming.
9778         * genemit.c: Likewise.
9779         * genoutput.c: Likewise.
9780         * genpreds.c: Likewise.
9781         * gensupport.c: Likewise.
9782         * read-rtl.c: Likewise.
9783
9784 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9785
9786         * Makefile.in (READ_MD_H): New variable.
9787         (BUILD_RTL): Add build/read-md.o.
9788         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
9789         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
9790         (build/genattrtab.o, build/genconditions.o build/genemit.o)
9791         (build/genextract.o, build/genflags.o, build/genoutput.o)
9792         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
9793         (build/read-md.o): New rule.
9794         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
9795         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
9796         * coretypes.h: ...here.
9797         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
9798         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
9799         * genattr.c: Include read-md.h.
9800         * genattrtab.c: Likewise.
9801         * genconditions.c: Likewise.
9802         * genemit.c: Likewise.
9803         * genextract.c: Likewise.
9804         * genflags.c: Likewise.
9805         * genoutput.c: Likewise.
9806         * genpreds.c: Likewise.
9807         * genrecog.c: Likewise.
9808         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
9809         (join_c_conditions, print_c_condition, read_rtx_filename)
9810         (read_rtx_lineno): Move to read-md.h.
9811         * read-rtl.c: Include read-md.h.
9812         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
9813         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
9814         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
9815         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
9816         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
9817         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
9818         (read_braced_string, read_string): Move to read-md.c.
9819         (read_rtx): Move some initialization to init_md_reader and call
9820         init_md_reader here.
9821         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
9822         Move to read-md.h.
9823         * gensupport.c: Include read-md.h.
9824         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
9825         * read-md.h, read-md.c: New files.
9826
9827 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
9828
9829         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9830         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9831         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
9832         * config/moxie/moxie.c (moxie_function_value): Make static.
9833         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
9834         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9835
9836 2010-06-10  Martin Jambor  <mjambor@suse.cz>
9837
9838         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
9839         * dbgcnt.def (tree_sra): New counter.
9840         * tree-sra.c: Include dbgcnt.h.
9841         (gate_intra_sra): Check tree_sra debug counter.
9842
9843 2010-06-10  Martin Jambor  <mjambor@suse.cz>
9844
9845         PR tree-optimization/44258
9846         * tree-sra.c (build_access_subtree): Return false iff there is a
9847         partial overlap.
9848         (build_access_trees): Likewise.
9849         (analyze_all_variable_accesses): Disqualify candidates if
9850         build_access_trees returns true for them.
9851
9852 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
9853
9854         PR debug/41371
9855         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
9856         tail-recurse into canonical node.  Fast-forward over
9857         non-canonical VALUEs.
9858
9859 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
9860
9861         PR boostrap/44470
9862         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
9863         (*addsi_1_zext) <TYPE_LEA>: Likewise.
9864         (add lea splitter): Likewise.
9865         (add_zext lea splitter): Likewise.
9866
9867 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
9868
9869         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
9870
9871 2010-06-10  Jan Hubicka  <jh@suse.cz>
9872
9873         * df-problems.c (df_live_problem_data): Add live_bitmaps.
9874         (df_live_alloc): Initialize problem data and live_osbtacks.
9875         (df_live_finalize): Remove obstack, problem data; do not
9876         clear all bitmaps.
9877         (df_live_top_dump, df_live_bottom_dump): Do not dump old
9878         data when not allocated.
9879         (df_live_verify_solution_start): Do not allocate problem data.
9880         (df_live_verify_solution_end): Check if out is allocated.
9881         (struct df_md_problem_data): New structure.
9882         (df_md_alloc): Allocate problem data.
9883         (df_md_free): Free problem data; do not clear bitmaps.
9884
9885 2010-06-10  Jan Beulich  <jbeulich@novell.com>
9886
9887         PR bootstrap/37304
9888         * configure.ac: Replace $() with ${} when intending to expand
9889         variables rather than invoking commands.
9890         * configure: Re-generate.
9891
9892 2010-06-10  Jan Hubicka  <jh@suse.cz>
9893
9894         PR rtl-optimization/44460
9895         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
9896         TYPE_NEEDS_CONSTRUCTING sanity check.
9897
9898 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
9899
9900         * doc/include/fdl.texi: Move to GFDL version 1.3.
9901
9902         * doc/cpp.texi: Move to GFDL version 1.3.
9903         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
9904         * doc/gccint.texi: Move to GFDL version 1.3.
9905         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
9906         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
9907         * doc/invoke.texi: Move to GFDL version 1.3.
9908
9909 2010-06-09  Jan Hubicka  <jh@suse.cz>
9910
9911         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
9912         Break out from ...
9913         (propagate) ... here; swap the order.
9914
9915 2010-06-09  Jan Hubicka  <jh@suse.cz>
9916
9917         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
9918         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
9919         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
9920         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
9921
9922 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
9923
9924         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
9925         Do not the gather memory reference in the outer loop if the step
9926         is not a constant.
9927
9928 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
9929
9930         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
9931         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
9932         8 to 4.  Minor change of the related comments.
9933
9934 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
9935
9936         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
9937         the scev analysis when the variable is not used outside the loop
9938         in a close phi node: call compute_overall_effect_of_inner_loop.
9939
9940 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
9941
9942         * graphite-sese-to-poly.c (single_pred_cond): Renamed
9943         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
9944         (build_sese_conditions_before): Renamed call to single_pred_cond.
9945         (build_sese_conditions_after): Same.
9946
9947 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
9948
9949         * graphite-poly.h: Fix comments and indentation.
9950         * graphite-sese-to-poly.c: Same.
9951         (build_sese_conditions_before): Compute stmt and gbb only when needed.
9952         * tree-chrec.c: Fix comments and indentation.
9953         (tree-ssa-loop-niter.c): Same.
9954
9955 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
9956
9957         PR rtl-optimization/42461
9958         * dce.c (deletable_insn_p): Return true for const or pure calls again.
9959         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
9960
9961 2010-06-09  Jan Hubicka  <jh@suse.cz>
9962
9963         * bitmap.c (bitmap_and): Walk array forward.
9964         (bitmap_and_compl_into): Likewise.
9965         (bitmap_xor): Likewise.
9966         (bitmap_xor_into):  Likewise.
9967         (bitmap_equal_p): Likewise.
9968         (bitmap_intersect_p): Likewise.
9969         (bitmap_intersect_compl_p): Likewise.
9970         (bitmap_ior_and_into): Likewise.
9971         (bitmap_elt_copy): Likewise.
9972         (bitmap_and_compl): Likewise.
9973         (bitmap_elt_ior): Likewise.
9974
9975 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
9976
9977         * opts-common.c (prune_options): Ensure replacement argv array
9978         is correctly terminated by a NULL entry.
9979
9980 2010-06-09  Jan Hubicka  <jh@suse.cz>
9981
9982         * cgraph.h (varpool_first_static_initializer,
9983         varpool_next_static_initializer): Make checking only when
9984         checking enabled.
9985         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
9986         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
9987         gcc_assert to gcc_checking_assert.
9988         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
9989         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
9990         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
9991         op_iter_init_phiuse, op_iter_init_phidef,
9992         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
9993         gcc_checking_assert.
9994         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
9995         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
9996         partition_is_global, live_on_entry, live_on_exit,
9997         live_merge_and_clear): Likewise.
9998         * system.h (gcc_checking_assert): New macro.
9999         * gimple.h (set_bb_seq): Use gcc_checking_assert.
10000
10001 2010-06-09  Jason Merrill  <jason@redhat.com>
10002
10003         * Makefile.in (TAGS): Collect tags info from c-family.
10004
10005 2010-06-09  Jan Hubicka  <jh@suse.cz>
10006
10007         * gimple.h (gcc_gimple_checking_assert): New macro.
10008         (gimple_set_def_ops, gimple_set_use_ops,
10009         gimple_set_vuse, gimple_set_vdef,
10010         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
10011         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
10012         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
10013         gimple_asm_output_op, gimple_asm_output_op_ptr,
10014         gimple_asm_set_output_op, gimple_asm_clobber_op,
10015         gimple_asm_set_clobber_op, gimple_asm_label_op,
10016         gimple_asm_set_label_op, gimple_try_set_kind,
10017         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
10018         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
10019         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
10020         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
10021         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
10022         gimple_omp_for_set_initial, gimple_omp_for_final,
10023         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
10024         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
10025         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
10026         conditional with ENABLE_GIMPLE_CHECKING.
10027         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
10028
10029 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
10030
10031         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
10032         (get_computation_cost_at): Use it.
10033         (determine_use_iv_cost_condition): Likewise.
10034         (determine_iv_cost): Likewise.
10035
10036 2010-06-09  Richard Guenther  <rguenther@suse.de>
10037
10038         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
10039         replace constants.
10040
10041 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
10042
10043         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
10044
10045 2010-06-09  Martin Jambor  <mjambor@suse.cz>
10046
10047         PR tree-optimization/44423
10048         * tree-sra.c (dump_access): Dump also grp_assignment_read.
10049         (analyze_access_subtree): Pass negative allow_replacements to children
10050         if the current type is scalar.
10051
10052 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
10053
10054         PR testsuite/42843
10055         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
10056         * doc/plugins.texi (Plugin license check): Update information
10057         on type of plugin_is_GPL_compatible.
10058         * Makefile.in (PLUGINCC): Define as $(COMPILER).
10059         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
10060
10061 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
10062
10063         * config/arm/arm.c (thumb2_reorg): New function.
10064         (arm_reorg): Call it.
10065         * config/arm/thumb2.md (define_peephole2 for flag clobbering
10066         arithmetic operations): Delete.
10067
10068 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
10069
10070         PR target/44067
10071         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
10072         e500v2 target.
10073
10074 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
10075
10076         PR plugins/44459
10077         * gcc-plugin.h: Encapsulate all declarations in extern "C".
10078
10079 2010-06-08  Jan Hubicka  <jh@suse.cz>
10080
10081         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
10082         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
10083
10084 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
10085
10086         PR tree-optimization/39874
10087         PR middle-end/28685
10088         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
10089         Declare.
10090         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
10091         same_bool_result_p): New.
10092         (and_var_with_comparison, and_var_with_comparison_1,
10093         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
10094         (or_var_with_comparison, or_var_with_comparison_1,
10095         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
10096         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
10097         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
10098         of combine_comparisons.
10099         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
10100
10101 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
10102
10103         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
10104         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10105         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
10106         pdp11_function_value_regno_p): New functions.
10107         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10108         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10109
10110 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
10111
10112         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
10113         Thumb-2 in the MINUS case.
10114
10115 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10116
10117         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
10118
10119         * doc/gty.texi (GTY Options): Document typed GC allocation and
10120         variable_size GTY option.
10121
10122         * ggc-internal.h: New.
10123
10124         * ggc.h: Update copyright year.
10125         (digit_string): Move to stringpool.c.
10126         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
10127         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
10128         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
10129         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
10130         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
10131         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
10132         (ggc_force_collect, ggc_get_size, ggc_statistics)
10133         (ggc_print_common_statistics): Move to ggc-internal.h.
10134         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
10135         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
10136         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
10137         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
10138         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
10139         (ggc_alloc_zone_pass_stat): Remove.
10140         (ggc_internal_alloc_stat, ggc_internal_alloc)
10141         (ggc_internal_cleared_alloc_stat): New.
10142         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
10143         (ggc_internal_vec_alloc_stat)
10144         (ggc_internal_cleared_vec_alloc_stat)
10145         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
10146         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
10147         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
10148         (ggc_cleared_alloc_ptr_array_two_args): New.
10149         (htab_create_ggc, splay_tree_new_ggc): Redefine.
10150         (ggc_splay_alloc): Change the type of the first argument to
10151         enum gt_types_enum.
10152         (ggc_alloc_string): Make macro.
10153         (ggc_alloc_string_stat): New.
10154         (ggc_strdup): Redefine.
10155         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
10156         (ggc_alloc_rtvec_sized): New.
10157         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
10158         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
10159         (ggc_internal_cleared_alloc_zone_stat)
10160         (ggc_internal_zone_alloc_stat)
10161         (ggc_internal_zone_cleared_alloc_stat)
10162         (ggc_internal_zone_vec_alloc_stat)
10163         (ggc_alloc_zone_rtx_def_stat)
10164         (ggc_alloc_zone_tree_node_stat)
10165         (ggc_alloc_zone_cleared_tree_node_stat)
10166         (ggc_alloc_cleared_gimple_statement_d_stat): New.
10167
10168         * ggc-common.c: Include ggc-internal.h.
10169         (ggc_internal_cleared_alloc_stat): Rename from
10170         ggc_alloc_cleared_stat.
10171         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
10172         (ggc_calloc): Remove.
10173         (ggc_cleared_alloc_htab_ignore_args): New.
10174         (ggc_cleared_alloc_ptr_array_two_args): New.
10175         (ggc_splay_alloc): Add obj_type parameter.
10176         (init_ggc_heuristics): Formatting fixes.
10177
10178         * ggc-none.c: Update copyright year.
10179         (ggc_alloc_stat): Rename to ggc_alloc_stat.
10180         (ggc_alloc_cleared_stat): Rename to
10181         ggc_internal_cleared_alloc_stat.
10182         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
10183
10184         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
10185         Remove references to ggc_alloc in comments.
10186         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
10187         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
10188         (new_ggc_zone, destroy_ggc_zone): Remove.
10189         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
10190
10191         * ggc-zone.c: Include ggc-internal.h.  Remove references to
10192         ggc_alloc in comments.
10193         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
10194         (ggc_internal_alloc_zone_pass_stat): New.
10195         (ggc_internal_cleared_alloc_zone_stat): New.
10196         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
10197         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
10198         (new_ggc_zone, destroy_ggc_zone): Remove.
10199
10200         * stringpool.c: Update copyright year.  Include ggc-internal.h
10201         (digit_vector): Make static.
10202         (digit_string): Moved from ggc.h.
10203         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
10204         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
10205
10206         * Makefile.in (GGC_INTERNAL_H): New.
10207         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
10208         $(GGC_INTERNAL_H) to dependencies.
10209
10210         * gentype.c: Update copyright year.
10211         (walk_type): Accept variable_size GTY option.
10212         (USED_BY_TYPED_GC_P): New macro.
10213         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
10214         whitespace at the end of strings.
10215         (get_type_specifier, variable_size_p): New functions.
10216         (alloc_quantity, alloc_zone): New enums.
10217         (write_typed_alloc_def): New function.
10218         (write_typed_struct_alloc_def): Likewise.
10219         (write_typed_typed_typedef_alloc_def): Likewise.
10220         (write_typed_alloc_defns): Likewise.
10221         (output_typename, write_splay_tree_allocator_def): Likewise.
10222         (write_splay_tree_allocators): Likewise.
10223         (main): Call write_typed_alloc_defns and
10224         write_splay_tree_allocators.
10225
10226         * lto-streamer.h (lto_file_decl_data_ptr): New.
10227
10228         * passes.c (order): Define using cgraph_node_ptr.
10229
10230         * strinpool.c (struct string_pool_data): Declare nested_ptr using
10231         ht_identifier_ptr.
10232
10233         * gimple.h (union gimple_statement_d): Likewise.
10234
10235         * rtl.h (struct rtx_def): Likewise.
10236         (struct rtvec_def): Likewise.
10237
10238         * tree.h (union tree_node): Likewise.
10239
10240         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
10241
10242         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
10243
10244         * tree-scalar-evolution.c (scev_initialize): Likewise.
10245
10246         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
10247
10248         * dwarf2asm.c (dw2_force_const_mem): Likewise.
10249
10250         * omp-low.c (lower_omp_critical): Likewise.
10251
10252         * bitmap.h (struct bitmap_head_def): Update comment to not
10253         reference ggc_alloc.
10254
10255         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
10256
10257         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
10258
10259         * ipa-prop.c (duplicate_ggc_array): Rename to
10260         duplicate_ipa_jump_func_array.  Use typed GC allocation.
10261         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
10262
10263         * gimple.c (gimple_alloc_stat): Use
10264         ggc_alloc_cleared_gimple_statement_d_stat.
10265
10266         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
10267
10268         * tree.c (make_node_stat): Use
10269         ggc_alloc_zone_cleared_tree_node_stat.
10270         (make_tree_vec_stat): Likewise.
10271         (build_vl_exp_stat): Likewise.
10272         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
10273         (make_tree_binfo_stat): Likewise.
10274         (tree_cons_stat): Likewise.
10275
10276         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
10277         (shallow_copy_rtx_stat): Likewise.
10278         (make_node_stat): Likewise.
10279
10280         * lto-symtab.c: Fix comment.
10281
10282         * tree-cfg.c (create_bb): Update comment to not reference
10283         ggc_alloc_cleared.
10284         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
10285
10286         * varpool.c (varpool_node): Use typed GC allocation.
10287         (varpool_extra_name_alias): Likewise.
10288
10289         * varasm.c (emutls_decl): Likewise.
10290         (get_unnamed_section): Likewise.
10291         (get_noswitch_section): Likewise.
10292         (get_section): Likewise.
10293         (get_block_for_section): Likewise.
10294         (build_constant_desc): Likewise.
10295         (create_constant_pool): Likewise.
10296         (force_const_mem): Likewise.
10297
10298         * tree.c (build_vl_exp_stat): Likewise.
10299         (build_real): Likewise.
10300         (build_string): Likewise.
10301         (decl_debug_expr_insert): Likewise.
10302         (decl_value_expr_insert): Likewise.
10303         (type_hash_add): Likewise.
10304         (build_omp_clause): Likewise.
10305
10306         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
10307
10308         * tree-ssa.c (init_tree_ssa): Likewise.
10309
10310         * tree-ssa-structalias.c (heapvar_insert): Likewise.
10311
10312         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
10313
10314         * tree-ssa-loop-niter.c (record_estimate): Likewise.
10315
10316         * tree-ssa-alias.c (get_ptr_info): Likewise.
10317
10318         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
10319
10320         * tree-phinodes.c (allocate_phi_node): Likewise.
10321
10322         * tree-iterator.c (tsi_link_before): Likewise.
10323         (tsi_link_after): Likewise.
10324
10325         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
10326
10327         * tree-dfa.c (create_var_ann): Likewise.
10328
10329         * tree-cfg.c (create_bb): Likewise.
10330
10331         * toplev.c (alloc_for_identifier_to_locale): Likewise.
10332         (general_init): Likewise.
10333
10334         * stringpool.c (stringpool_ggc_alloc): Likewise.
10335         (gt_pch_save_stringpool): Likewise.
10336
10337         * sese.c (if_region_set_false_region): Likewise.
10338
10339         * passes.c (do_per_function_toporder): Likewise.
10340
10341         * optabs.c (set_optab_libfunc): Likewise.
10342         (set_conv_libfunc): Likewise.
10343
10344         * lto-symtab.c (lto_symtab_register_decl): Likewise.
10345
10346         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
10347         (input_eh_region): Likewise.
10348         (input_eh_lp): Likewise.
10349         (make_new_block): Likewise.
10350         (unpack_ts_real_cst_value_fields): Likewise.
10351
10352         * lto-section-in.c (lto_new_in_decl_state): Likewise.
10353
10354         * lto-cgraph.c (input_node_opt_summary): Likewise.
10355
10356         * loop-init.c (loop_optimizer_init): Likewise.
10357
10358         * lambda.h (lambda_vector_new): Likewise.
10359
10360         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
10361
10362         * ira.c (update_equiv_regs): Likewise.
10363
10364         * ipa.c (cgraph_node_set_new): Likewise.
10365         (cgraph_node_set_add): Likewise.
10366         (varpool_node_set_new): Likewise.
10367         (varpool_node_set_add): Likewise.
10368
10369         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
10370         (duplicate_ipa_jump_func_array): Likewise.
10371         (ipa_read_node_info): Likewise.
10372
10373         * ipa-cp.c (ipcp_create_replace_map): Likewise.
10374
10375         * integrate.c (get_hard_reg_initial_val): Likewise.
10376
10377         * gimple.c (gimple_alloc_stat): Likewise.
10378         (gimple_build_omp_for): Likewise.
10379         (gimple_seq_alloc): Likewise.
10380         (gimple_copy): Likewise.
10381
10382         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
10383         (gsi_insert_after_without_update): Likewise.
10384
10385         * function.c (add_frame_space): Likewise.
10386         (insert_temp_slot_address): Likewise.
10387         (assign_stack_temp_for_type): Likewise.
10388         (allocate_struct_function): Likewise.
10389         (types_used_by_var_decl_insert): Likewise.
10390
10391         * except.c (init_eh_for_function): Likewise.
10392         (gen_eh_region): Likewise.
10393         (gen_eh_region_catch): Likewise.
10394         (gen_eh_landing_pad): Likewise.
10395         (add_call_site): Likewise.
10396
10397         * emit-rtl.c (get_mem_attrs): Likewise.
10398         (get_reg_attrs): Likewise.
10399         (start_sequence): Likewise.
10400         (init_emit): Likewise.
10401
10402         * dwarf2out.c (new_cfi): Likewise.
10403         (queue_reg_save): Likewise.
10404         (dwarf2out_frame_init): Likewise.
10405         (new_loc_descr): Likewise.
10406         (find_AT_string): Likewise.
10407         (new_die): Likewise.
10408         (add_var_loc_to_decl): Likewise.
10409         (clone_die): Likewise.
10410         (clone_as_declaration): Likewise.
10411         (break_out_comdat_types): Likewise.
10412         (new_loc_list): Likewise.
10413         (loc_descriptor): Likewise.
10414         (add_loc_descr_to_each): Likewise.
10415         (add_const_value_attribute): Likewise.
10416         (tree_add_const_value_attribute): Likewise.
10417         (add_comp_dir_attribute): Likewise.
10418         (add_name_and_src_coords_attributes): Likewise.
10419         (lookup_filename): Likewise.
10420         (store_vcall_insn): Likewise.
10421         (dwarf2out_init): Likewise.
10422
10423         * dbxout.c (dbxout_init): Likewise.
10424
10425         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10426
10427         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
10428
10429         * config/score/score7.c (score7_output_external): Likewise.
10430
10431         * config/score/score3.c (score3_output_external): Likewise.
10432
10433         * config/s390/s390.c (s390_init_machine_status): Likewise.
10434
10435         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
10436         (rs6000_init_machine_status): Likewise.
10437         (output_toc): Likewise.
10438
10439         * config/pa/pa.c (pa_init_machine_status): Likewise.
10440         (get_deferred_plabel): Likewise.
10441
10442         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
10443
10444         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
10445
10446         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
10447
10448         * config/mep/mep.c (mep_init_machine_status): Likewise.
10449         (mep_note_pragma_flag): Likewise.
10450
10451         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
10452
10453         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
10454
10455         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
10456
10457         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
10458         (i386_pe_maybe_record_exported_symbol): Likewise.
10459
10460         * config/i386/i386.c (get_dllimport_decl): Likewise.
10461         (ix86_init_machine_status): Likewise.
10462         (assign_386_stack_local): Likewise.
10463
10464         * config/frv/frv.c (frv_init_machine_status): Likewise.
10465
10466         * config/darwin.c (machopic_indirection_name): Likewise.
10467
10468         * config/cris/cris.c (cris_init_machine_status): Likewise.
10469
10470         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
10471
10472         * config/avr/avr.c (avr_init_machine_status): Likewise.
10473
10474         * config/arm/arm.c (arm_init_machine_status): Likewise.
10475
10476         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
10477         (alpha_need_linkage): Likewise.
10478         (alpha_use_linkage): Likewise.
10479
10480         * cgraph.c (cgraph_allocate_node): Likewise.
10481         (cgraph_create_edge_1): Likewise.
10482         (cgraph_create_indirect_edge): Likewise.
10483         (cgraph_add_asm_node): Likewise.
10484
10485         * cfgrtl.c (init_rtl_bb_info): Likewise.
10486
10487         * cfgloop.c (alloc_loop): Likewise.
10488         (rescan_loop_exit): Likewise.
10489
10490         * cfg.c (init_flow): Likewise.
10491         (alloc_block): Likewise.
10492         (unchecked_make_edge): Likewise.
10493
10494         * c-parser.c (c_parse_init): Likewise.
10495         (c_parse_file): Likewise.
10496
10497         * c-decl.c (bind): Likewise.
10498         (record_inline_static): Likewise.
10499         (push_scope): Likewise.
10500         (make_label): Likewise.
10501         (lookup_label_for_goto): Likewise.
10502         (finish_struct): Likewise.
10503         (finish_enum): Likewise.
10504         (c_push_function_context): Likewise.
10505
10506         * bitmap.c (bitmap_element_allocate): Likewise.
10507         (bitmap_gc_alloc_stat): Likewise.
10508
10509         * alias.c (record_alias_subset): Likewise.
10510         (init_alias_analysis): Likewise.
10511
10512 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
10513
10514         * fold-const.c (fold_comparison): Remove redundant parenthesis.
10515         * tree-inline.c (expand_call_inline): Pass translated return value of
10516         cgraph_inline_failed_string to diagnostic function.
10517
10518 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
10519             Shujing Zhao  <pearly.zhao@oracle.com>
10520
10521         PR c/37724
10522         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
10523         implicit bad conversions is initialization.
10524         (error_init): Use gmsgid instead of msgid for argument name and change
10525         the call for error.
10526         (pedwarn_init): Use gmsgid instead of msgid for argument name and
10527         change the call for pedwarn.
10528         (warning_init): Use gmsgid instead of msgid for argument name and
10529         change the call for warning.
10530
10531 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
10532
10533         * config/mips/mips-protos.h (mips_print_operand): Delete.
10534         (mips_print_operand_address): Delete.
10535         * config/mips/mips.h (mips_print_operand_punct): Delete.
10536         (PRINT_OPERAND): Delete.
10537         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10538         (PRINT_OPERAND_ADDRESS): Delete.
10539         * config/mips/mips.c (mips_print_operand_punct): Make static.
10540         (mips_print_operand_address): Make static.
10541         (mips_print_operand): Make static.  Call
10542         mips_print_operand_punct_valid_p.
10543         (mips_print_operand_punct_valid_p): New function.
10544         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10545         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10546
10547 2010-06-07  Jan Hubicka  <jh@suse.cz>
10548
10549         PR middle-end/44454
10550         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
10551         are allocated.
10552
10553 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
10554
10555         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
10556         name of RECORD.
10557
10558 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10559
10560         * doc/sourcebuild.texi (Effective-Target Keywords, Other
10561         attributes): Document gas.
10562
10563 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
10564
10565         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
10566         <TYPE_LEA>: Split instruction.
10567         <default>: Remove alternative 2 handling.
10568         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
10569         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
10570         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
10571
10572         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
10573         (ashift_zext lea splitter): Use DImode for multiplication.
10574
10575         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
10576         to generate addition.
10577
10578 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
10579
10580         * common.opt (fira-verbose): Use Var.
10581         (fpcc-struct-return): Use Init instead of VarExists.
10582         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
10583         toplev.c.
10584         * flags.h (flag_signed_char, flag_short_enums,
10585         flag_pcc_struct_return, flag_ira_verbose,
10586         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
10587         * toplev.c (flag_detailed_statistics, flag_signed_char,
10588         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
10589         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
10590         * toplev.h (flag_crossjumping, flag_if_conversion,
10591         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
10592         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
10593         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
10594         flag_cprop_registers, time_report, flag_ira_loop_pressure,
10595         flag_ira_coalesce, flag_ira_move_spills,
10596         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
10597
10598 2010-06-07  Jan Hubicka  <jh@suse.cz>
10599
10600         * df-core.c (df_analyze_problem): Do verification after allocation.
10601
10602         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
10603         (df_lr_alloc): Initialize problem data; move bitmaps to
10604         lr_bitmaps obstack.
10605         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
10606         (df_lr_verify_solution_start): Do not initialize problem data;
10607         allocate bitmaps in lr_bitmaps.
10608         (df_lr_verify_solution_end): Do not free problem data.
10609
10610 2010-06-07  Jan Hubicka  <jh@suse.cz>
10611
10612         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
10613         if caller is noreturn.
10614         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
10615         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
10616         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
10617         * ipa-pure-const.c (check_decl): Add IPA parameter.
10618         (state_from_flags): New function.
10619         (better_state, worse_state): New functions.
10620         (check_call): When in IPA mode, do not care about callees.
10621         (check_load, check_store): Update.
10622         (check_ipa_load, check_ipa_store): New.
10623         (check_stmt): When in IPA mode, use IPA checkers.
10624         (analyze_function): Use state_from_flags.
10625         (propagate): Check indirect edges and references.
10626
10627 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
10628
10629         PR rtl-optimization/44404
10630         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
10631         of count_occurrences to see if it's safe to modify mem_insn.
10632
10633 2010-06-07  Richard Guenther  <rguenther@suse.de>
10634
10635         * gimplify.c (gimplify_cleanup_point_expr): For empty body
10636         and EH-only cleanup drop the cleanup instead of inserting it
10637         unconditionally.
10638
10639 2010-06-07  Ira Rosen  <irar@il.ibm.com>
10640
10641         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
10642         documentation.
10643         * targhooks.c (default_builtin_vectorization_cost): New function.
10644         * targhooks.h (default_builtin_vectorization_cost): Declare.
10645         * target.h (enum vect_cost_for_stmt): Define.
10646         (builtin_vectorization_cost): Change argument and comment.
10647         * tree-vectorizer.h: Remove cost model macros.
10648         * tree-vect-loop.c: Include target.h.
10649         (vect_get_cost): New function.
10650         (vect_estimate_min_profitable_iters): Replace cost model macros with
10651         calls to vect_get_cost.
10652         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
10653         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
10654         default implementation.
10655         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
10656         calls to target hook builtin_vectorization_cost.
10657         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
10658         Likewise.
10659         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
10660         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
10661         implementation to return costs.
10662         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
10663         * config/spu/spu.h: Remove vectorizer cost model macros.
10664         * config/i386/i386.h: Likewise.
10665         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
10666         a call to target hook builtin_vectorization_cost.
10667
10668 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
10669
10670         PR target/44319
10671         * config/i386/i386.c (override_options): Turn zee pass on for level 2
10672         and above and defer till target is known.
10673         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
10674         turn off otherwise.
10675
10676 2010-05-25  Jan Hubicka  <jh@suse.cz>
10677
10678         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
10679         (df_compact_blocks): Likewise.
10680         * df.h (struct df): Turn hardware_regs_used,
10681         regular_block_artificial_uses, eh_block_artificial_uses,
10682         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
10683         bitmap_head.
10684         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
10685         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
10686         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
10687         df_scan_blocks, df_insn_delete, df_insn_rescan,
10688         df_insn_rescan_debug_internal, df_insn_rescan_all,
10689         df_process_deferred_rescans, df_process_deferred_rescans,
10690         df_notes_rescan, df_get_call_refs, df_get_call_refs,
10691         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
10692         df_record_entry_block_defs, df_record_exit_block_uses,
10693         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
10694         df_scan_verify): Update.
10695
10696 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
10697
10698         PR c++/44188
10699         * c-common.c (is_typedef_decl): Move this definition ...
10700         * tree.c (is_typedef_decl): ... here.
10701         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
10702         * c-common.h (is_typedef_decl): Move this declaration ...
10703         * tree.h (is_typedef_decl): ... here.
10704         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
10705         * dwarf2out.c (is_naming_typedef_decl): New function.
10706         (gen_tagged_type_die): Split out of ...
10707         (gen_type_die_with_usage): ... this function. When an anonymous
10708         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
10709         is emitted for the typedef.
10710         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
10711         anonymous tagged types.
10712
10713 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10714
10715         PR c/20000
10716         * c-decl.c (grokdeclarator): Delete warning.
10717
10718 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
10719
10720         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
10721         newly built CALL_EXPR.
10722         * tree-profile.c (tree_profiling): Don't profile functions produced
10723         for built-in stuff.
10724
10725 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
10726
10727         PR bootstrap/44427
10728         PR bootstrap/44428
10729         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
10730         endianness-independent.
10731
10732 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
10733
10734         * c-common.c: Move to c-family/.
10735         * c-common.def: Likewise.
10736         * c-common.h: Likewise.
10737         * c-cppbuiltin.c: Likewise.
10738         * c-dump.c: Likewise.
10739         * c-format.c: Likewise.
10740         * c-format.h : Likewise.
10741         * c-gimplify.c: Likewise.
10742         * c-lex.c: Likewise.
10743         * c-omp.c: Likewise.
10744         * c.opt: Likewise.
10745         * c-opts.c: Likewise.
10746         * c-pch.c: Likewise.
10747         * c-ppoutput.c: Likewise.
10748         * c-pragma.c: Likewise.
10749         * c-pragma.h: Likewise.
10750         * c-pretty-print.c: Likewise.
10751         * c-pretty-print.h: Likewise.
10752         * c-semantics.c: Likewise.
10753         * stub-objc.c: Likewise.
10754
10755         * gengtype.c (get_file_langdir): Special-case files in c-family/.
10756         (get_output_file_with_visibility): Fix name for c-common.h.
10757         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
10758
10759         * c-tree.h: Update include path for moved files.
10760         * c-lang.c: Likewise.
10761         * c-lang.h: Likewise.
10762         * c-parser.c: Likewise.
10763         * c-convert.c: Likewise.
10764         * c-decl.c: Likewise.
10765         * c-objc-common.c: Likewise.
10766         * configure.ac: Make sure c-family/ exists in the build directory.
10767         * configure: Regenerate.
10768         * Makefile.in: Update paths for moved files.  Regroup files per
10769         location and update dependencies.  Move generated_files down after
10770         ALL_GTFILES_H.
10771
10772         * config/spu/spu-c.c: Update paths for moved files.
10773         * config/mep/mep-pragma.c: Likewise.
10774         * config/darwin-c.c: Likewise.
10775         * config/i386/msformat-c.c: Likewise.
10776         * config/i386/i386-c.c: Likewise.
10777         * config/avr/avr-c.c: Likewise.
10778         * config/sol2-c.c: Likewise.
10779         * config/ia64/ia64-c.c: Likewise.
10780         * config/rs6000/rs6000-c.c: Likewise.
10781         * config/arm/arm.c: Likewise.
10782         * config/arm/arm-c.c: Likewise.
10783         * config/h8300/h8300.c: Likewise.
10784         * config/v850/v850-c.c: Likewise.
10785
10786         * config/t-darwin: Fix dependencies for moved files.
10787         * config/t-sol2: Fix dependencies for moved files.
10788         * config/mep/t-mep: Fix dependencies for moved files.
10789         * config/ia64/t-ia64: Fix dependencies for moved files.
10790         * config/rs6000/t-rs6000: Fix dependencies for moved files.
10791         * config/v850/t-v850: Fix dependencies for moved files.
10792         * config/v850/t-v850e: Fix dependencies for moved files.
10793
10794         * config/m32c/m32c-pragma.c
10795
10796         * po/exgettext: Look in c-family/ also.
10797
10798 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
10799
10800         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
10801         (mark_control_dependent_edges_necessary): Call it instead of marking
10802         the last statement manually.
10803         (propagate_necessity): Likewise.
10804
10805 2010-06-05  Jan Hubicka  <jh@suse.cz>
10806
10807         * basic-block.h (compute_dominance_frontiers): Updated.
10808         (compute_idf): Likewise.
10809
10810         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
10811         for dominance frontiers.
10812         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
10813         (insert_updated_phi_nodes_for): Likewise.
10814         (update_ssa): Likewise.
10815         * cfganal.c (compute_dominance_frontiers_1): Likewise.
10816         (compute_dominance_frontiers): Likewise.
10817         (compute_idf): Likewise.
10818         * df-problems.c (df_md_local_compute): Likewise.
10819
10820 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
10821
10822         * target.h (struct gcc_target): Add memory_move_cost field.
10823         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
10824         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
10825         * targhooks.c (default_memory_move_cost): New function.
10826         * targhooks.h (default_memory_move_cost): Declare function.
10827         * reload.h (memory_move_cost): Declare.
10828         (memory_move_secondary_cost): Change type of 'in' argument to bool.
10829         * reginfo.c (memory_move_cost): New function.
10830         (memory_move_secondary_cost): Change type of 'in' argument to bool.
10831         * ira.h (ira_memory_move_cost): Update comment.
10832         * ira.c (ira_memory_move_cost): Update comment.
10833         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
10834         with memory_move_cost.
10835         * postreload.c (reload_cse_simplify_set): (Ditto.).
10836         * reload1.c (choose_reload_regs): (Ditto.).
10837         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
10838         (MEMORY_MOVE_COST):  Revise documentation.
10839
10840         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
10841         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
10842         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
10843         type of 'in' argument to bool.
10844         (TARGET_MEMORY_MOVE_COST): Define.
10845
10846 2010-06-05  Jan Hubicka  <jh@suse.cz>
10847
10848         * ipa-pure-const.c (propagate): Fix typo in handling of functions
10849         that cannot return.  Be more careful when merging the results with
10850         previously known ones.
10851
10852 2010-06-05  Matthias Klose  <doko@ubuntu.com>
10853
10854         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
10855         function to add the -iplugindir option.
10856         (find_plugindir_spec_function): Add new declaration and function.
10857         (static_spec_func): Use it for "find-plugindir".
10858
10859 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
10860
10861         PR c++/44361
10862         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
10863         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
10864         statement expression.
10865
10866 2010-06-05  Jan Hubicka  <jh@suse.cz>
10867
10868         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
10869         (df_rd_problem_data): Convert sparse_invalidated_by_call,
10870         dense_invalidated_by_call to bitmap head.
10871         (df_rd_alloc, df_rd_bb_local_compute_process_def,
10872         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
10873         df_rd_start_dump, df_lr_verify_transfer_functions,
10874         df_live_verify_transfer_functions, df_chain_create_bb,
10875         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
10876         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
10877         df_simulate_one_insn_forwards, df_md_alloc,
10878         df_md_bb_local_compute_process_def,
10879         df_md_bb_local_compute_process_def, df_md_local_compute,
10880         df_md_transfer_function df_md_free): Update.
10881
10882 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
10883
10884         PR c/44322
10885         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
10886         target type for ADDR_EXPR; require no changes to qualifiers except
10887         for function types.
10888         * c-tree.h (c_build_type_variant): Remove.
10889
10890 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
10891
10892         * genautomata.c (get_excl_set): Do work per element, not per char.
10893         (check_presence_pattern_sets): Similar.
10894         (check_absence_pattern_sets): Similar.
10895
10896 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
10897
10898         * genautomata.c (curr_state_pass_num): Delete.
10899         (min_issue_delay_pass_states): Delete.
10900         (min_issue_delay): Delete.
10901         (initiate_min_issue_delay_pass_states): Delete.
10902         (output_min_issue_delay_table): Compute min_issue_delay_vect
10903         using a breadth-first search variant.
10904         (output_tables): Don't call initiate_min_issue_delay_pass_states.
10905
10906 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
10907
10908         PR boostrap/44421
10909         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
10910         (df_byte_lr_bb_local_compute): Likewise.
10911
10912 2010-06-03  Jason Merrill  <jason@redhat.com>
10913
10914         Implement noexcept operator (5.3.7)
10915         * c-common.c (c_common_reswords): Add noexcept.
10916         * c-common.h (enum rid): Add RID_NOEXCEPT.
10917
10918 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
10919
10920         * config/darwin-driver.c (darwin_default_min_version): Use
10921         GCC-specific formats in diagnostics.
10922         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
10923         diagnostics.
10924         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
10925         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
10926         eval_spec_function, handle_braces, process_brace_body, main,
10927         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
10928         getenv_spec_function, compare_version_strings,
10929         version_compare_spec_function): Use GCC-specific formats in
10930         diagnostics.
10931
10932 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
10933
10934         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
10935         that operand 0 and operand 1 are equal.
10936         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
10937         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
10938         and operand 1 are equal.
10939         <default>: Ditto.  Remove ??? comment.
10940         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
10941         and operand 1 are equal.
10942         <default>: Ditto.  Remove ??? comment.
10943         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
10944         are equal.
10945         (*add<mode>_4) <default>: Ditto.
10946         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
10947
10948 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
10949
10950         * config/i386/i386-protos.h (ix86_print_operand): Declare.
10951         * config/i386/i386.c (ix86_print_operand): Make non-static.
10952         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
10953         * output.h (output_operand): Declare.
10954         * final.c (output_operand): Make non-static.
10955
10956 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
10957
10958         PR rtl-optimization/44013
10959         * sched-deps.c (add_dependence_list_and_free): Don't free lists
10960         when processing debug insns.
10961
10962         PR debug/41371
10963         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
10964         recursing.  Check that recursion is bounded.  Rename inner var
10965         to avoid hiding incoming argument.
10966
10967 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
10968
10969         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
10970         operands[2] == 255.
10971         (*addqi_3): Ditto.
10972         (*addqi_4): Ditto.
10973         (*addqi_5): Ditto.
10974         (*addqi_ext_1_rex64): Ditto.
10975         (*addqi_ext_1): Ditto.
10976
10977         (*addqi_4): Check for incdec_operand in QImode.
10978
10979         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
10980         using SWI mode iterator.
10981         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
10982         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
10983         mode iterator.
10984         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
10985         using SWI mode iterator.
10986
10987 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10988
10989         PR c/25880
10990         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
10991         * c-format.c (gcc_diag_flag_specs): Add hash.
10992         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
10993         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
10994         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
10995         pp_c_cv_qualifiers. Handle qualifiers spelling here.
10996         (pp_c_type_qualifier_list): Call the function above.
10997         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
10998         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
10999         (WARN_FOR_QUALIFIERS): New macro.
11000         (convert_for_assignment): Use it.
11001
11002 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
11003
11004         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
11005
11006 2010-06-04  Jan Hubicka  <jh@suse.cz>
11007
11008         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
11009         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
11010         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
11011         DF_BYTE_LR_OUT): Update for embedded bitmaps.
11012         * fwprop.c (single_def_use_enter_block): Likewise.
11013         * ddg.c (create_ddg_dep_from_intra_loop_link,
11014         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
11015         * loop-iv.c (latch_dominating_def): Likewise.
11016         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
11017         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
11018         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
11019         df_rd_transfer_function, df_rd_top_dump,
11020         df_rd_bottom_dump): Update.
11021         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
11022         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
11023         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
11024         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
11025         df_lr_verify_solution_start, df_lr_verify_solution_end,
11026         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
11027         df_live_free_bb_info, df_live_alloc, df_live_reset,
11028         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
11029         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
11030         df_live_verify_solution_start, df_live_verify_solution_end,
11031         df_live_verify_transfer_functions, df_chain_create_bb,
11032         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
11033         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
11034         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
11035         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
11036         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
11037         df_byte_lr_transfer_function, df_byte_lr_top_dump,
11038         df_byte_lr_bottom_dump, df_create_unused_note,
11039         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
11040         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
11041         df_md_transfer_function, df_md_init, df_md_confluence_0,
11042         df_md_confluence_n,
11043         df_md_top_dump, df_md_bottom_dump): Update.
11044         (struct df_lr_problem_data): Embedd bitmap headers.
11045
11046 2010-06-04  Jan Hubicka  <jh@suse.cz>
11047
11048         * dce.c (dce_process_block): Do not re-scan already marked
11049         instructions.
11050
11051 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
11052
11053         PR rtl-optimization/39871
11054         PR rtl-optimization/40615
11055         PR rtl-optimization/42500
11056         PR rtl-optimization/42502
11057         * ira.c (init_reg_equiv_memory_loc: New function.
11058         (ira): Call it twice.
11059         * reload.h (calculate_elim_costs_all_insns): Declare.
11060         * ira-costs.c: Include "reload.h".
11061         (regno_equiv_gains): New static variable.
11062         (init_costs): Allocate it.
11063         (finish_costs): Free it.
11064         (ira_costs): Call calculate_elim_costs_all_insns.
11065         (find_costs_and_classes): Take estimated elimination costs
11066         into account.
11067         (ira_adjust_equiv_reg_cost): New function.
11068         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
11069         * reload1.c (init_eliminable_invariants, free_reg_equiv,
11070         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
11071         (elim_bb): New static variable.
11072         (reload): Move code out of here into init_eliminable_invariants and
11073         free_reg_equiv.  Call them.
11074         (calculate_elim_costs_all_insns): New function.
11075         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
11076         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
11077         but call note_reg_elim_costly if we turned a valid memory address
11078         into an invalid one.
11079         * Makefile.in (ira-costs.o): Depend on reload.h.
11080
11081 2010-06-04  Julian Brown  <julian@codesourcery.com>
11082
11083         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
11084         for pool ranges.
11085
11086 2010-06-04  Richard Guenther  <rguenther@suse.de>
11087
11088         PR lto/41584
11089         * cgraph.h (struct varpool_node): Add lto_file_data field.
11090         * lto-cgraph.c (input_varpool_node): Initialize it.
11091
11092 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
11093
11094         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
11095         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
11096         predicate in "type" attribute calculation.
11097         (*addsi_1_zext): Ditto.
11098         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
11099         (*addsi_2_zext): Ditto.
11100         (*add<mode>_3): Ditto.
11101         (*addsi_3_zext): Ditto.
11102         (*add<mode>_5): Ditto.
11103
11104 2010-06-03  Jan Hubicka  <jh@suse.cz>
11105
11106         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
11107         of bitmap_bit_p.
11108         * cfganal.c (compute_dominance_frontiers_1): Likewise.
11109
11110 2010-06-03  Jan Hubicka  <jh@suse.cz>
11111
11112         * df-problems.c (df_create_unused_note, df_note_bb_compute):
11113         micro-optimize the checks when to add new note.
11114
11115 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
11116
11117         * final.c (output_asm_insn): Call
11118         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
11119         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
11120         (output_address): Call targetm.asm_out.print_operand_address.
11121         Update comments.
11122         * target.h (struct gcc_target): Add print_operand,
11123         print_operand_address, and print_operand_punct_valid_p fields.
11124         * targhooks.h (default_print_operand): Declare.
11125         (default_print_operand_address): Declare.
11126         (default_print_operand_punct_valid_p): Declare.
11127         * targhooks.c (default_print_operand): Define.
11128         (default_print_operand_address): Define.
11129         (default_print_operand_punct_valid_p): Define.
11130         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
11131         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
11132         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
11133         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
11134         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
11135         * vmsdbgout.c (addr_const_to_string): Update comment.
11136         * config/i386/i386.c (print_operand): Rename to...
11137         (ix86_print_operand): ...this.  Make static.
11138         (print_operand_address): Rename to...
11139         (ix86_print_operand_address): ...this.  Make static.  Call
11140         ix86_print_operand instead of PRINT_OPERAND.
11141         (ix86_print_operand_punct_valid_p): New function.
11142         (TARGET_PRINT_OPERAND): Define.
11143         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11144         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11145         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
11146         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11147         (PRINT_OPERAND): Delete.
11148         (PRINT_OPERAND_ADDRESS): Delete.
11149         * config/i386/i386-protos.h (print_operand): Delete prototype.
11150         (print_operand_address): Delete prototype.
11151
11152 2010-06-03  Richard Guenther  <rguenther@suse.de>
11153
11154         PR tree-optimization/44403
11155         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11156         Preserve pointer qualifiers.
11157         (vect_create_data_ref_ptr): Likewise.
11158
11159 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
11160
11161         PR c++/44294
11162         * defaults.h (MAX_FIXED_MODE_SIZE): New.
11163
11164         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
11165
11166 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
11167
11168         PR debug/44375
11169         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
11170         return false if merging the bbs would lead to goto_locus
11171         location being lost from the IL.
11172
11173 2010-06-03  Jan Hubicka  <jh@suse.cz>
11174             Jakub Jelinek  <jakub@redhat.com>
11175
11176         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
11177         set->regs[i] is NULL or has just one entry.
11178
11179 2010-06-03  Jan Hubicka  <jh@suse.cz>
11180
11181         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
11182         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
11183
11184 2010-06-03  Paul Brook  <paul@codesourcery.com>
11185
11186         * config/arm/arm.c (FL_TUNE): Define.
11187         (arm_default_cpu, arm_cpu_select): Remove.
11188         (all_cores): Populate core field.
11189         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
11190         (arm_find_cpu): New function.
11191         (arm_handle_option): Lookup cpu/architecture names.
11192         (arm_override_options): Cleanup mcpu/march/mtune handling.
11193         (arm_file_start): Ditto.
11194
11195 2010-06-03  Alan Modra  <amodra@gmail.com>
11196
11197         PR target/44169
11198         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
11199         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
11200         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
11201         (rs6000_emit_load_toc_table): Likewise.
11202
11203 2010-06-02  Jan Hubicka  <jh@suse.cz>
11204
11205         * passes.c (init_optimization_passes): Put ipa reference
11206         after ipa pure-const.
11207
11208 2010-06-02  Jan Hubicka  <jh@suse.cz>
11209
11210         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
11211         calls_read_all and calls_write_all.
11212         (get_reference_optimization_summary): Fix formatting.
11213         (is_proper_for_analysis): Check that decl is not readonly.
11214         (propagate_bits): Check CONST/PURE/noreturn flags.
11215         (ipa_init): Move all_module_statics to optimization_summary_obstack.
11216         (analyze_function): Ignore indirect edges.
11217         (copy_global_bitmap): For all module statics, do nothing.
11218         (generate_summary): Do not print calls_read_all/calls_write_all.
11219         (read_write_all_from_decl): Take node as argument; check
11220         cgraph_node_cannot_return.
11221         (propagate): Reorganize read_all/write_all computation;
11222         check indirect edges; check ecf flags; use all_module_statics
11223         in the results; do not free all_module_statics.
11224         (stream_out_bitmap): Handle all_module_statics.
11225         (ipa_reference_write_optimization_summary): Likewise; use
11226         varpool/cgraph encoders to get boundaries.
11227         (ipa_reference_read_optimization_summary): Read in all_module_statics;
11228         use it when possible.
11229
11230 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11231
11232         PR target/44218
11233         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
11234         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
11235
11236         * doc/extend.texi (powerpc builtins): Document vec_recip,
11237         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
11238
11239         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
11240         (rs6000_emit_swrsqrt): Ditto.
11241         (rs6000_emit_swdivsf): Delete.
11242         (rs6000_emit_swdivdf): Ditto.
11243         (rs6000_emit_swrsqrtsf): Ditto.
11244
11245         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
11246         describe the reciprocal estimate support for each type.
11247         (recip_options): Map -mrecip=<opt> into option bits.
11248         (gen_2arg_fn_t): New typedef for binary rtx gen function.
11249         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
11250         reciprocal estimate instructions.
11251         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
11252         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
11253         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
11254         cost information if -mdebug=cost or -mdebug=reg.
11255         (rs6000_override_options): Set -mrecip-precision for power6, and
11256         power7 machines.  If -mvsx or -mdfp, enable various options that
11257         came in previous instruction set ISAs, unless the option was
11258         explicitly disabled by the command line option.  Parse
11259         -mrecip=<opt> options.
11260         (rs6000_builtin_vectorized_function): Add support for vectorizing
11261         the reciprocal estimate builtins and expansions.
11262         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
11263         (bdesc_2arg): Add reciprocal estimate builtins.
11264         (bdesc_1arg): Add reciprocal square root estimate builtins.
11265         (rs6000_expand_builtin): Rewrite to use a switch statement,
11266         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
11267         (rs6000_init_builtins): Create declarations for reciprocal
11268         estimate builtins.
11269         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
11270         sized, prefer traditional floating point registers, if integer
11271         vector types, prefer altivec registers.  Don't actually look at
11272         the memory address any more.
11273         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
11274         builtins.
11275         (rs6000_load_constant_and_splat): New helper function to load up
11276         the constant for reciprocal estimate instructions.
11277         (rs6000_emit_madd): New helper function for generating
11278         multiply/add type instructions, based on the current switches.
11279         (rs6000_emit_msub): Ditto.
11280         (rs6000_emit_mnsub): Ditto.
11281         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
11282         replace a divide with a reciprocal estimate and fixup, adding
11283         support for machines with high precision and vectors.
11284         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
11285         low precision machines.
11286         (rs6000_emit_swdiv): New common function to be called to replace a
11287         division with reciprocal estimate and fixup.
11288         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
11289         for double and vector types.  Add support for high precision machines.
11290
11291         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
11292         the reciprocal estimate instructions can be generated.
11293         (TARGET_FRE): Ditto.
11294         (TARGET_FRSQRTES): Ditto.
11295         (TARGET_FRSQRTE): Ditto.
11296         (RS6000_RECIP_*): New macros for reciprocal estimate support.
11297
11298         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
11299         square root estimate on vectors.
11300         (re<mode>2): New insn for reciprocal division estimate on vectors.
11301
11302         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
11303         New builtin.
11304         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
11305         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
11306         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
11307         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
11308         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
11309         (RS6000_BUILTIN_RSQRT): Ditto.
11310         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
11311         floating point builtin.
11312
11313         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
11314         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
11315         __RECIP_PRECISION__ based on the command line switches.
11316         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
11317
11318         * config/rs6000/rs6000.opt (-mrecip): Document add support for
11319         replacing division instructions with reciprocal estimate and fixup.
11320         (-mrecip=<opt>): New option.
11321         (-mrecip-precision): Ditto.
11322
11323         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
11324         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
11325         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
11326         precision scalar.
11327
11328         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
11329         (UNSPEC_VREFP): Ditto.
11330         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
11331         conterparts with regard to support of -mno-fused-madd and -ffast-math.
11332         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
11333         reciprocal estimate instructions to be generated.
11334         (altivec_vrefp): Ditto.
11335
11336         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
11337         estimate support.
11338         (rreg): New mode attribute for reciprocal estimate support.
11339         (recip<mode>3): New insn for division using reciprocal estimate
11340         and fixup builtins.
11341         (divide define_split): New define_split to convert floating point
11342         division to use reciprocal estimate if the user used the
11343         appropriate options and the split is run when we can add new
11344         pseudo registers for the fixup.
11345         (rsqrt<mode>2): New insn for reciprocal square root support.
11346         (recipsf3): Move into recip<mode>3.
11347         (recipdf3): Ditto.
11348         (fres): Use TARGET_FRES.
11349         (rsqrtsf2): Move into rsqrt<mode>2.
11350         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
11351         (copysignsf3): Add support for VSX.
11352         (fred): Use TARGET_FRE.
11353         (fred_fpr): Ditto.
11354         (rsqrtdf_internal1): New function for frsqrte instruciton.
11355
11356         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
11357         (vec_rsqrt): Ditto.
11358
11359 2010-06-03  Richard Guenther  <rguenther@suse.de>
11360
11361         PR middle-end/44291
11362         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
11363         (set_user_assembler_libfunc): Likewise.
11364
11365 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
11366
11367         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
11368         defaults.h.
11369         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
11370         to defaults.h
11371         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
11372         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
11373         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
11374         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
11375         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
11376         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
11377         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
11378         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
11379         * defaults.h: Updated for above mentioned changes.
11380
11381 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
11382
11383         * c-common.c: Remove header include of tm_p.h.
11384         * Makefile.in (c-common.o): Remove TM_P_H dependency.
11385
11386 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
11387
11388         * tree.h (struct tree_decl_map): New type.
11389         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
11390         (tree_decl_map_hash): New prototype.
11391         (debug_expr_for_decl, value_expr_for_decl): Change into
11392         tree_decl_map hashtab from tree_map.
11393         (init_ttree): Adjust initialization.
11394         (tree_decl_map_hash): New function.
11395         (decl_debug_expr_lookup, decl_debug_expr_insert,
11396         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
11397
11398 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11399
11400         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
11401         linker emulations.
11402         * configure: Regenerate.
11403         * config.in: Regenerate.
11404
11405         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
11406         (X86_64_EMULATION): Define.
11407         (TARGET_LD_EMULATION): Use them.
11408
11409         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
11410         (SPARC64_EMULATION): Define.
11411         (LINK_ARCH_SPEC): Use them.
11412
11413 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
11414
11415         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
11416         smallest_mode_for_size for computing the precision types of new
11417         graphite IVs.  Do not call lang_hooks.types.type_for_size.
11418
11419 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
11420
11421         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
11422         information.
11423         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
11424
11425 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
11426
11427         PR middle-end/44363
11428         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
11429         return false instead.
11430
11431 2010-06-02  Jan Hubicka  <jh@suse.cz>
11432
11433         PR middle-end/44295
11434         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
11435         create new cgraph node to check callee.
11436
11437 2010-06-02  Richard Guenther  <rguenther@suse.de>
11438
11439         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
11440
11441 2010-06-02  Richard Guenther  <rguenther@suse.de>
11442
11443         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
11444         (lto_wrapper_cleanup): ... this.  Do not exit.
11445         (fatal): Adjust.  Exit here.
11446         (fatal_perror): Likewise.
11447         (fatal_signal): New function.
11448         (main): Set up signal handlers to cleanup temporary files.
11449         * Makefile.in (lto-wrapper.o): Adjust dependencies.
11450
11451 2010-06-02  Richard Guenther  <rguenther@suse.de>
11452
11453         PR tree-optimization/44377
11454         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
11455
11456 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11457
11458         * config/s390/2097.md (z10_fhex): Remove insn reservation.
11459         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
11460         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
11461         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
11462         instruction.
11463         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
11464
11465 2010-06-02  Jan Hubicka  <jh@suse.cz>
11466
11467         * bitmap.c (bitmap_descriptor): Add search_iter.
11468         (bitmap_find_bit): Increment it.
11469         (print_statistics): Print it.
11470
11471 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
11472
11473         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
11474         instead of gimple_build_call_vec.  Delete unnecessary local variable.
11475
11476 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
11477
11478         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
11479         change from yesterday.
11480
11481 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
11482
11483         * c-ada-spec.c: Clean up redundant includes.
11484
11485 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
11486
11487         * gimplify.c: Do not include except.h and optabs.h.
11488         (gimplify_body): Do not initialize RTL profiling.
11489         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
11490         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
11491         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
11492         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
11493         langhooks.h.
11494
11495         * tree-pretty-print.h: Include pretty-print.h.
11496         * gimple-pretty-print.h: Include pretty-print.h.
11497
11498         * tree-pretty-print.c: Do not include diagnostic.h.
11499         * tree-vrp.c: Likewise.
11500         * tree-tailcall.c: Likewise
11501         * tree-scalar-evolution.c: Likewise
11502         * tree-ssa-dse.c: Likewise
11503         * tree-chrec.c: Likewise
11504         * tree-ssa-sccvn.c: Likewise
11505         * tree-ssa-copyrename.c: Likewise
11506         * tree-nomudflap.c: Likewise
11507         * tree-call-cdce.c: Likewise
11508         * tree-stdarg.c: Likewise
11509         * tree-ssa-math-opts.c: Likewise
11510         * tree-nrv.c: Likewise
11511         * tree-ssa-sink.c: Likewise
11512         * tree-browser.c: Likewise
11513         * tree-ssa-loop-ivcanon.c: Likewise
11514         * tree-ssa-loop.c: Likewise
11515         * tree-parloops.c: Likewise
11516         * tree-ssa-address.c: Likewise
11517         * tree-ssa-ifcombine.c: Likewise
11518         * tree-if-conv.c: Likewise
11519         * tree-data-ref.c: Likewise
11520         * tree-affine.c: Likewise
11521         * tree-ssa-phiopt.c: Likewise
11522         * tree-ssa-coalesce.c: Likewise
11523         * tree-ssa-pre.c: Likewise
11524         * tree-ssa-live.c: Likewise
11525         * tree-predcom.c: Likewise
11526         * tree-ssa-forwprop.c: Likewise
11527         * tree-ssa-dce.c: Likewise
11528         * tree-ssa-ter.c: Likewise
11529         * tree-ssa-loop-prefetch.c: Likewise
11530         * tree-optimize.c: Likewise
11531         * tree-ssa-phiprop.c: Likewise
11532         * tree-object-size.c: Likewise
11533         * tree-outof-ssa.c: Likewise
11534         * tree-ssa-structalias.c: Likewise
11535         * tree-switch-conversion.c: Likewise
11536         * tree-ssa-reassoc.c: Likewise
11537         * tree-ssa-operands.c: Likewise
11538         * tree-vectorizer.c: Likewise
11539         * tree-vect-data-refs.c: Likewise
11540         * tree-vect-generic.c: Likewise
11541         * tree-vect-stmts.c: Likewise
11542         * tree-vect-patterns.c: Likewise
11543         * tree-vect-slp.c: Likewise
11544         * tree-vect-loop.c: Likewise
11545         * tree-ssa-loop-ivopts.c: Likewise
11546         * tree-ssa-loop-im.c: Likewise
11547         * tree-ssa-loop-niter.c: Likewise
11548         * tree-ssa-loop-unswitch.c: Likewise
11549         * tree-ssa-loop-manip.c: Likewise
11550         * tree-ssa-loop-ch.c: Likewise
11551         * tree-dump.c: Likewise
11552         * tree-complex.c: Likewise
11553
11554         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
11555         * tree-ssa-uninit.c: Likewise
11556         * tree-ssa-threadupdate.c: Likewise
11557         * tree-ssa-uncprop.c: Likewise
11558         * tree-ssa-ccp.c: Likewise
11559         * tree-ssa-dom.c: Likewise
11560         * tree-ssa-propagate.c: Likewise
11561         * tree-ssa-alias.c: Likewise
11562         * tree-dfa.c: Likewise
11563         * tree-cfgcleanup.c: Likewise
11564         * tree-sra.c: Likewise
11565         * tree-ssa-copy.c: Likewise
11566         * tree-ssa.c: Likewise
11567         * tree-profile.c: Likewise
11568         * tree-cfg.c: Likewise
11569         * tree-ssa-threadedge.c: Likewise
11570         * tree-vect-loop-manip.c: Likewise
11571
11572         * tree-inline.c: Do not include diagnostic.h and expr.h.
11573         Include rtl.h.
11574         (copy_decl_for_dup_finish): Do not use NULL_RTX.
11575
11576         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
11577         * tree-loop-distribution.c: Likewise.
11578
11579 2010-06-01  Jan Hubicka  <jh@suse.cz>
11580
11581         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
11582
11583 2010-06-01  Jan Hubicka  <jh@suse.cz>
11584
11585         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
11586         remove return value.
11587         (split_bbs_on_noreturn_calls) .... here.
11588         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
11589         * tree-flow.h (fixup_noreturn_call): New.
11590
11591 2010-06-01  Jan Hubicka  <jh@suse.cz>
11592
11593         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
11594
11595 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
11596
11597         * tree.h (build_nt_call_list): Delete.
11598         * tree.c (build_nt_call_list): Delete.
11599
11600 2010-06-01  Jan Hubicka  <jh@suse.cz>
11601
11602         * fwprop.c: Make emit-rtl.h include last.
11603         * rtlanal.c: Include emit-rtl.h.
11604         * genautomata.c: Output emit-rtl include into insn-automata.c
11605         * df-scan.c: Include emit-rtl.h.
11606         * haifa-sched.c: Indlude emit-rtl.h.
11607         * mode-switching.c: Indlude emit-rtl.h.
11608         * graph.c: Indlude emit-rtl.h.
11609         * sel-sched.c: Include emit-rtl.h.
11610         * sel-sched-ir.c: Include emit-rtl.h.
11611         * ira-build.c: Include emit-rtl.h.
11612         * emit-rtl.c (first_insn, last_insn): Remove defines.
11613         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
11614         Move to emit-rtl.h.
11615         (set_new_first_and_last_insn, get_last_insn_anywhere,
11616         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
11617         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
11618         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
11619         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
11620         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
11621         Use accessor functions.
11622         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
11623          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
11624         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
11625         mem_expr_equal_p): Move here from rtl.h.
11626         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
11627         Move here from emit-rtl.c; make inline.
11628         * cfglayout.h: Include emit-rtl.h.
11629         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
11630          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
11631         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
11632         mem_expr_equal_p, get_insns, set_first-insn,
11633         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
11634         * reg-stack.c: Include emit-rtl.h.
11635         * dce.c: Likewise.
11636
11637 2010-06-01  Jan Hubicka  <jh@suse.cz>
11638
11639         * cgraph.h (tree_function_versioning): Update prototype.
11640         (cgraph_function_versioning): Update prototype.
11641         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
11642         bitmap.
11643         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
11644         (cgraph_materialize_clone, save_inline_function_body): Update use of
11645         tree_function_versioning.
11646         * tree-inline.c (copy_bb): Look for previous copied block to link
11647         after; fix debug output.
11648         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
11649         (copy_body): Likewise.
11650         (expand_call_inline): Update use of copy_body.
11651         (tree_function_versioning): Update use of copy body; accept
11652         blocks_to_copy and new_entry.
11653
11654 2010-06-01  Jan Hubicka  <jh@suse.cz>
11655
11656         * gegenrtl.c: Remove unnecesary prototypes.
11657         (gendecl): Remove.
11658         (gendef): Produce static inline.
11659         (gencode): Remove.
11660         (main): Do not decode parameters; generate header only.
11661         * Makefile.in (genrtl.c): Remove.
11662
11663 2010-06-01  Jan Hubicka  <jh@suse.cz>
11664
11665         * tree-switch-conversion.c (build_one_array): Make it readonly.
11666
11667 2010-06-01  Richard Guenther  <rguenther@suse.de>
11668
11669         * optabs.c (init_optabs): Guard all accesses to reinit.
11670         * ipa-pure-const.c (propagate): Fix another typo.
11671         * opts.c (common_handle_option): Split assignment to bool.
11672         * c-opts.c (c_common_handle_option): Likewise.
11673
11674 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
11675             Matthew Gingell  <gingell@adacore.com>
11676
11677         * doc/invoke.texi: Mention -fdump-ada-spec.
11678         * tree-dump.c (dump_files): Add ada-spec.
11679         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
11680         * tree-pass.h (tree_dump_index): Add TDI_ada.
11681         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
11682         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
11683         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
11684         * c-decl.c: Include c-ada-spec.h.
11685         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
11686         functions.
11687         (c_write_global_declarations): Add handling of -fdump-ada-spec.
11688         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
11689         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
11690         * c-ada-spec.h, c-ada-spec.c: New files.
11691
11692 2010-06-01  Richard Guenther  <rguenther@suse.de>
11693
11694         PR lto/43853
11695         * ipa-pure-const.c (get_function_state): Hand back varying state
11696         if we do not have one.
11697         (has_function_state): New function.
11698         (duplicate_node_data): Adjust.
11699         (remove_node_data): Likewise.
11700         (pure_const_write_summary): Likewise.
11701         (propagate): Likewise.  Fix typo.
11702
11703 2010-06-01  Jan Hubicka  <jh@suse.cz>
11704
11705         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
11706         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
11707         (execute_all_ipa_transforms): Do not play with the states.
11708
11709 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
11710
11711         * config/arm/t-linux-androideabi: New.
11712         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
11713
11714 2010-06-01  Jan Hubicka  <jh@suse.cz>
11715
11716         * tree-inline.c (estimate_num_insns): For stdarg functions look
11717         into call statement to count cost of argument passing.
11718
11719 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
11720
11721         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
11722         argument for fprintf.
11723         (ix86_output_addr_diff_elt): Likewise.
11724         (x86_function_profiler): Likewise.
11725         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
11726         (LPREFIX): Likewise.
11727         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
11728
11729 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
11730
11731         PR target/44338
11732         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
11733         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
11734         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
11735         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
11736         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
11737         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
11738         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
11739         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
11740         TARGET_FUSED_MADD.
11741
11742 2010-05-31  Jan Hubicka  <jh@suse.cz>
11743
11744         * tree.h (tree_range_check_failed): Declare noreturn.
11745
11746 2010-05-31  Jan Hubicka  <jh@suse.cz>
11747
11748         * gimple.c (gimple_call_builtin_p): New function.
11749         * gimple.h (gimple_call_builtin_p): Declare.
11750         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
11751         to exit.
11752         (execute_warn_function_return): BUILT_IN_RETURN is return.
11753         (split_critical_edges): Return edges are not critical.
11754         (is_ctrl_altering_stmt): Builtin_in_return is altering.
11755         (gimple_verify_flow_info): Handle built_in_return.
11756         (execute_warn_function_return): Handle built_in_return.
11757         * ipa-pure-const.c (check_call): Ignore builtin_return.
11758
11759 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
11760
11761         PR middle-end/44337
11762         * expr.c (expand_assignment): Don't store anything for out-of-bounds
11763         array accesses with non-MEM.
11764
11765         PR tree-optimization/44182
11766         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
11767         newly needs to end a bb is followed by debug stmts, instead return
11768         true from the function at the end.
11769         (maybe_move_debug_stmts_to_successors): New function.
11770         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
11771
11772 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
11773
11774         PR target/44161
11775         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
11776
11777 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
11778
11779         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
11780         for nested functions in non-optimized compilation.
11781
11782 2010-05-31  Richard Guenther  <rguenther@suse.de>
11783
11784         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
11785
11786 2010-05-30  Jan Hubicka  <jh@suse.cz>
11787
11788         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
11789
11790 2010-05-30  Richard Guenther  <rguenther@suse.de>
11791
11792         PR lto/42975
11793         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
11794         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
11795         no longer needed.
11796
11797 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
11798
11799         * config/darwin.c (output_objc_section_asm_op): Add comment.
11800         (name_needs_quotes): Add '_' to list of valid comment chars.
11801         (machopic_output_function_base_name): Remove unneeded quotes.
11802         (darwin_encode_section_info): Adjust asm whitespace.
11803         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
11804         (ASM_OUTPUT_LOCAL): Ditto.
11805         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
11806         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
11807         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
11808
11809 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
11810
11811         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
11812         RS6000_OUTPUT_BASENAME unconditionally.
11813         (rs6000_output_function_epilogue): Likewise.
11814
11815 2010-05-30  Jan Hubicka  <jh@suse.cz>
11816
11817         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
11818         nodes.
11819
11820 2010-05-30  Richard Guenther  <rguenther@suse.de>
11821
11822         * tree-cfg.c (verify_gimple_assign_single): Implement
11823         verification for COND_EXPR rhs.
11824
11825 2010-05-30  Jan Hubicka  <jh@suse.cz>
11826
11827         * cgraph.h (cgraph_dump_file): Declare.
11828         * cgraphunit.c (cgraph_dump_file): Export.
11829         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
11830
11831 2010-05-30  Jan Hubicka  <jh@suse.cz>
11832
11833         * dwarf2out.c (reference_to_unused,
11834         premark_types_used_by_global_vars_helper): Avoid creation of new
11835         varpool nodes.
11836
11837 2010-05-30  Jan Hubicka  <jh@suse.cz>
11838
11839         * cgraph.h (cgraph_node_cannot_return,
11840         cgraph_edge_cannot_lead_to_return): New functions.
11841         * cgraph.c (cgraph_node_cannot_return,
11842         cgraph_edge_cannot_lead_to_return): Use them.
11843         * ipa-pure-const.c (pure_const_names): New static var.
11844         (check_call): Handle calls not leading to return.
11845         (pure_const_read_summary): Dump info read.
11846         (propagate): Dump info about propagation process; ignore side effects
11847         of functions not leading to exit; fix handling of pure functions.
11848
11849 2010-05-30  Jan Hubicka  <jh@suse.cz>
11850
11851         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
11852         for tail call epilogues.
11853
11854 2010-05-30  Jan Hubicka  <jh@suse.cz>
11855
11856         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
11857         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
11858         dump files.
11859
11860 2010-05-29  Jan Hubicka  <jh@suse.cz>
11861
11862         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
11863         node; remove references in node we no longer keep in cgrpah but need
11864         body of.
11865
11866 2010-05-29  Jan Hubicka  <jh@suse.cz>
11867
11868         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
11869
11870 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11871
11872         PR target/44165
11873         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
11874
11875 2010-05-29  Jan Hubicka  <jh@suse.cz>
11876
11877         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
11878         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
11879         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
11880         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
11881         debug_names_replaced_by, debug_update_ssa): Likewise.
11882         * sbitmap.c (debug_sbitmap): Likewise.
11883         * genrecog.c (debug_decision, debug_decision_list): Likewise.
11884         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
11885         debug_tree_chain): Likewise.
11886         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
11887         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
11888         * optabs.c (debug_optab_libfuncs): Likewise.
11889         (verify_loop_closed_ssa): Likewise.
11890         * value-prof.c (verify_histograms): Likewise.
11891         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
11892         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
11893         * cfghooks.c (verify_flow_info): Likewise.
11894         * fold-const.c (debug_fold_checksum): Likewise.
11895         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
11896         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
11897         Likewise.
11898         * omega.c (debug_omega_problem): Likewise.
11899         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
11900         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
11901         * dominance.c (verify_dominators, debug_dominance_info,
11902         debug_dominance_tree): Likewise.
11903         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
11904         * df_regno_debug, df_ref_debug,
11905         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
11906         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
11907         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
11908         * sel-sched.c (debug_state): Likewise.
11909         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
11910         Likewise.
11911         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
11912         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
11913         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
11914         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
11915         Likewise.
11916         * c-pretty-print.c (debug_c_tree): Likewise.
11917         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
11918         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
11919         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
11920         * ebitmap.c (debug_ebitmap): Likewise.
11921         * function.c (debug_find_var_in_block_tree): Likewise.
11922         * print-rtl.c (debug_rtx): Likewise.
11923         (debug_rtx_count): Likewise.
11924         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
11925         * stor-layout.c (debug_rli): Likewise.
11926         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
11927         * tree-data-ref.c (debug_data_references,
11928         debug_data_dependence_relations, debug_data_reference,
11929         debug_data_dependence_relation, debug_rdg_vertex,
11930         debug_rdg_component, debug_rdg): Likewise.
11931         * tree-affine.c (debug_aff): Likewise.
11932         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
11933         Likewise.
11934         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
11935         * emit-rtl.c (verify_rtl_sharing): Likewise.
11936         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
11937         debug_value_expressions): Likewise.
11938         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
11939         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
11940         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
11941         * cfglayout.c (verify_insn_chain): Likewise.
11942         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
11943         debug_clast_stmt, debug_generated_program): Likewise.
11944         * ggc-page.c (debug_print_page_list): Likewise.
11945         * tree-ssa-ter.c (debug_ter): Likewise.
11946         * graphite-dependences.c (debug_pddr): Likewise.
11947         * sched-deps.c (debug_ds): Likewise.
11948         * tree-ssa.c (verify_ssa): Likewise.
11949         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
11950         debug_scattering_functions, debug_iteration_domains, debug_pdr,
11951         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
11952         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
11953         * tree-inline.c (debug_find_tree): Likewise.
11954         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
11955         debug_ppl_powerset_matrix): Likewise.
11956         * var-tracking.c (debug_dv): Likewise.
11957         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
11958         * cfgloop.c (verify_loop_structure): Likewise.
11959         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
11960         * c-common.c (verify_sequence_points): Likewise.
11961         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
11962         debug_candidates, debug_rgn_dependencies): Likewise.
11963         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
11964         * debug_constraint_graph, debug_solution_for_var,
11965         debug_sa_points_to_info): Likewise.
11966         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
11967         Likewie.
11968         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
11969         debug_loops, debug_loop, debug_loop_num): Likewise.
11970         * passes.c (debug_pass): Likewise.
11971         (dump_properties): Likewise; add cfglayout property.
11972         (debug_properties): Likewise.
11973         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
11974         * varpool.c (debug_varpool): Likewise.
11975         * regcprop.c (debug_value_data): Likewise.
11976         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
11977         debug_immediate_uses_for): Likewise.
11978
11979 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
11980
11981         PR bootstrap/44315
11982         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
11983         Filter out insn-flags.h.
11984
11985 2010-05-29  Jan Hubicka  <jh@suse.cz>
11986
11987         * cgraph.h (struct varpool_node_set_def,
11988         struct cgraph_node_set_def): Remove unused AUX pointer.
11989         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
11990         VEC_empty macro.
11991
11992 2010-05-29  Jan Hubicka  <jh@suse.cz>
11993
11994         PR middle-end/44324
11995         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
11996
11997 2010-05-29  Richard Guenther  <rguenther@suse.de>
11998
11999         * lto-streamer.c (cached_bp): New global variable.
12000         (bitpack_create): Return the cached bitpack, if available.
12001         (bitpack_delete): Clear and cache the bitpack, if appropriate.
12002         (bp_pack_value): Remove redundant asserts.
12003
12004 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
12005
12006         PR middle-end/44306
12007         * tree-if-conv.c (is_true_predicate): New.
12008         (is_predicated): Use is_true_predicate.
12009         (add_to_predicate_list): Same.  Do not use unshare_expr.
12010         (add_to_dst_predicate_list): Same.
12011
12012 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
12013
12014         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
12015         field on edges.
12016         (predicate_bbs): Same.
12017         (clean_predicate_lists): Same.
12018         (find_phi_replacement_condition): Do not AND the predicate from
12019         edge->aux.
12020
12021 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
12022
12023         PR bootstrap/44315
12024         * Makefile.in (build/gencondmd.o): Add a missing `\'.
12025
12026 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12027
12028         PR target/44261
12029         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
12030         (negdf2): Adjust expander pattern and use negdf2_slow.
12031         (negsf2): Likewise.
12032
12033 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
12034
12035         * basic-block.h (struct control_flow_graph): Move last_label_uid field
12036         up.
12037         * df.h (struct df_base_ref): Move regno field up.
12038         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
12039         * expr.h (struct separate_ops): Move location field up.
12040         * optabs.h (struct optab_d): Move libcall_basename field down.
12041         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
12042         * config/i386/i386.h (struct machine_function): Convert call_abi field
12043         into a bitfield.  Move cfa field to the end of the structure.
12044
12045 2010-05-29  Jan Hubicka  <jh@suse.cz>
12046
12047         * varpool.c (varpool_get_node): Fix lookup.
12048
12049 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12050
12051         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
12052         RTL specific prototypes with #ifdef RTX_CODE.
12053         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
12054         * config/spu/t-spu-elf: Fix dependencies.
12055
12056         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
12057
12058 2010-05-29  Mike Stump  <mikestump@comcast.net>
12059
12060         PR bootstrap/44315
12061         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
12062         TM_H when building to avoid dependency loops.
12063
12064 2010-05-29  Jan Hubicka  <jh@suse.cz>
12065
12066         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
12067         refs and body; not the whole node for masters of materialized clones.
12068
12069 2010-05-29  Mike Stump  <mikestump@comcast.net>
12070
12071         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
12072
12073 2010-05-29  Jan Hubicka  <jh@suse.cz>
12074
12075         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
12076         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
12077         use of clone_function_name.
12078         * cgraph.h (cgraph_create_virtual_clone,
12079         cgraph_function_versioning): update prototypes.
12080         (clone_function_name): Declare.
12081         * ipa-cp.c (ipcp_insert_stage): Update call of
12082         cgraph_create_virtual_clone.
12083         * omp-low.c (create_omp_child_function_name): Use
12084         cgraph_create_virtual_clone.
12085         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
12086         (cgraph_function_versioning): Take SUFFIX argument; produce new name
12087         and make decl local.
12088
12089 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12090
12091         * vec.h: Include statistics.h
12092         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
12093         with VEC_H.
12094
12095 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12096
12097         * c-lex.c: Do not include c-tree.h.
12098         * c-pretty-print.c: Likewise.
12099         * c-opts.c: Likewise.
12100         * c-gimplify.c: Likewise.
12101         * c-common.c: Likewise.
12102         * c-dump.c: Likewise.  Include c-common.h.
12103
12104 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12105
12106         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
12107         before including diagnostic-core.h.
12108         (c_cpp_error): New prototype moved from c-tree.h.
12109         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
12110         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
12111         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
12112         (c_cpp_error): Prototype moved to c-common.h.
12113         * Makefile.in: Update dependency for C_COMMON_H.
12114
12115 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12116
12117         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
12118         * c-common.c (c_register_addr_space): Remove here.
12119         * c-decl.c (c_register_addr_space): Re-add here.
12120
12121 2010-05-28  Mike Stump  <mikestump@comcast.net>
12122
12123         * config/darwin-c.c: Remove c-tree.h include.
12124
12125 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12126
12127         * gcc.c: Include diagnostic.h.
12128         (error_count): Remove.  All users changed to use errorcount.
12129         (programname): Remove.  All users changed to use progname.
12130         (fancy_abort, internal_error, fatal_error, error, warning, inform,
12131         fnotice): Remove.
12132         (execute): Don't include "Internal error" and bug reporting
12133         information in argument of internal_error call.
12134         (process_command): Don't increment error_count after calling
12135         perror_with_name.
12136         (input_filename): Rename to gcc_input_filename.  All users
12137         changed.
12138         (main): Call diagnostic_initialize.  Register delete_temp_files
12139         with atexit.  Use seen_error to test for errors.
12140         * gcc.h: Include diagnostic-core.h.
12141         (fatal_error, error, warning): Remove.
12142         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
12143         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
12144         (gcc.o): Update dependencies.
12145
12146 2010-05-28  Jeff Law  <law@redhat.com>
12147
12148         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
12149         functions.
12150         * ira.h (ira_bad_reload_regno): Declare
12151         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
12152
12153         * ira-color.c (update_curr_costs): Free updated hard reg costs.
12154         (ira_reassign_conflict_allocnos): Remove bogus asserts.
12155         (allocno_reload_assign): Likewise.
12156
12157 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
12158
12159         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
12160         build1_stat.
12161
12162 2010-05-28  Richard Guenther  <rguenther@suse.de>
12163
12164         PR lto/44312
12165         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
12166         Stream fixed-point constants mode.
12167         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
12168         and TYPE_PRECISION.
12169         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
12170         Stream fixed-point constants mode.
12171         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
12172         and TYPE_PRECISION.
12173
12174 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
12175
12176         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
12177         only place it was called from.
12178         (number_of_latch_executions): Do not return chrec_dont_know when the
12179         may_be_zero is a runtime condition: instead, return a COND_EXPR
12180         including the may_be_zero condition.
12181         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
12182         of nb_iterations.
12183         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
12184         COND_EXPRs.
12185
12186 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
12187
12188         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
12189         generate COND_EXPRs for degenerate_phi_result.
12190
12191 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
12192
12193         PR middle-end/44293
12194         * tree-if-conv.c (if_convertible_loop_p): Check the
12195         if-convertibility of phi nodes in non predicated BBs.
12196
12197 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12198
12199         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
12200
12201 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12202
12203         PR driver/15303
12204         * gcc.c (inform, warning, inform): New functions.
12205         (fatal_ice): Rename to internal_error; change cmsgid parameter to
12206         gmsgid.  All callers changed.
12207         (notice): Rename to fnotice; add parameter fp.  All callers changed.
12208         (fatal_error): Rename to fatal_signal.  All users changed.
12209         (fatal): Rename to fatal_error; change cmsgid parameter to
12210         gmsgid.  All callers changed.
12211         (process_command): Use warning instead of error for warnings.
12212         (end_going_arg): Don't use _() around argument of error.
12213         (do_spec_1): Use inform for message from %n specs.  Use warning
12214         instead of error for warnings.
12215         (main): Use inform for comparison messages.  Use warning for
12216         message about unused linker input.
12217         (error): Increment error_count.  Print "error: ".
12218         * gcc.h (fatal): Change to fatal_error.
12219         (warning): Declare.
12220         * config/darwin-driver.c (darwin_default_min_version): Use warning
12221         instead of fprintf for warnings.
12222         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
12223
12224 2010-05-28  Julian Brown  <julian@codesourcery.com>
12225
12226         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
12227         (*thumb2_addsi3_compare0_scratch): New.
12228         * config/arm/constraints.md (Pv): New.
12229         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
12230         for ARM mode only.
12231         (*addsi3_compare0_scratch): Likewise.
12232
12233 2010-05-28  Jan Hubicka  <jh@suse.cz>
12234
12235         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
12236         check.
12237         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
12238         only on local statics.
12239
12240 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
12241
12242         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
12243
12244 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
12245
12246         PR bootstrap/44314
12247         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
12248         (OPTION_GLIBC): Define.
12249
12250 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
12251
12252         PR debug/41048
12253         * dwarf2out.c (double_int_type_size_in_bits): New function.
12254         (round_up_to_align): Change first argument and return value to
12255         double_int.
12256         (field_byte_offset): Work internally on double_ints.
12257
12258         PR target/43636
12259         * builtins.c (expand_movstr): Use a temporary pseudo instead
12260         of target even when target is not NULL and not const0_rtx, but
12261         fails movstr predicate.
12262         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
12263
12264 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12265
12266         * final.c (rest_of_clean_state): Use %m in errors instead of
12267         strerror (errno).
12268         * gengtype.c (read_input_list, close_output_files): Use xstrerror
12269         instead of strerror.
12270         * toplev.c (process_options): Use %m in errors instead of strerror
12271         (errno).
12272         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
12273         (errno).
12274
12275 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
12276
12277         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
12278         (ix86_canonical_va_list_type): Make static.  Add declaration.
12279         (ix86_enum_va_list): Make static.  Reindent.
12280         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
12281         (ix86_canonical_va_list_type): Ditto.
12282         (ix86_enum_va_list): Ditto.
12283
12284 2010-05-28  Richard Guenther  <rguenther@suse.de>
12285
12286         * lto-wrapper.c (run_gcc): With -save-temps generate a
12287         user-visible ltrans filename.  Fixup ltrans unit numbering.
12288
12289 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
12290
12291         * c-common.c (c_common_nodes_and_builtins): Replace use
12292         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
12293         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
12294         to ix86_enum_va_list.
12295         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
12296         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
12297         (TARGET_ENUM_VA_LIST_P): Add hook description.
12298         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
12299         * target.h (gcc_target): Add enum_va_list hook.
12300
12301         PR bootstrap/44299
12302         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
12303         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
12304         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
12305
12306 2010-05-28  Alan Modra  <amodra@gmail.com>
12307
12308         PR target/44266
12309         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
12310         emit_library_call machinery to set up __tls_get_addr calls.
12311
12312 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12313
12314         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
12315
12316 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
12317
12318         Revert fix for PR c++/44188
12319         * c-common.c (is_typedef_decl): Revert the moving of  this
12320         definition ...
12321         * tree.c (is_typedef_decl): ... here.
12322         (typdef_variant_p): Revert the moving of this  definition
12323         here from gcc/cp/tree.c.
12324         * c-common.h (is_typedef_decl): Revert the moving of this
12325         declaration ...
12326         * tree.h (is_typedef_decl): ... here.
12327         (typedef_variant_p): Revert the moving of this  declaration here
12328         from gcc/cp/cp-tree.h
12329         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
12330         (gen_tagged_type_die): Revert the splitting out of ...
12331         (gen_type_die_with_usage): ... this function. Revert the anonymous
12332         tagged type handling.
12333         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
12334         typedefs naming anonymous tagged types.
12335
12336 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
12337
12338         * config/rs6000/rs6000-modes.def (PSImode): Delete.
12339
12340 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
12341
12342         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
12343         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
12344         throughout.
12345         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
12346         "xer" to "ca".
12347         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
12348         XER_REGS to CA_REGS throughout.
12349         * config/rs6000/rs6000.h: Same.
12350         (ADDITIONAL_REGISTER_NAMES): Add "xer".
12351         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
12352         that mode_iterator "P" is the size for arithmetic carries as well.
12353         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
12354
12355 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
12356
12357         PR bootstrap/44255
12358         * combine.c (struct rtx_subst_pair): Define unconditionally.
12359         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
12360         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
12361         Call make_compound_operation on pair->to.
12362         (propagate_for_debug): Don't call make_compound_operation here.
12363         Always use simplify_replace_fn_rtx.
12364
12365 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
12366
12367         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
12368         * config/xtensa/xtensa.c (override_options): Check
12369           TARGET_FORCE_NO_PIC and set flag_pic.
12370         * config/xtensa/xtensa.opt: Document -mforce-no-pic
12371
12372 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
12373
12374         PR bootstrap/44299
12375         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
12376         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
12377
12378 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
12379
12380         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
12381         toplev.h.
12382         * diagnostic.c: Don't include toplev.h.
12383         (progname): Define.  Moved from toplev.c.
12384         (seen_error): New function.
12385         * diagnostic.h: Include diagnostic-core.h.
12386         (diagnostic_t, emit_diagnostic): Don't declare here.
12387         * toplev.c (progname): Move to toplev.c.
12388         (emit_debug_global_declarations, compile_file, finalize,
12389         do_compile, toplev_main): Use seen_error.
12390         * toplev.h: Include diagnostic-core.h.
12391         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
12392         internal_error, warning, warning_at, error, error_n, error_at,
12393         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
12394         verbatim, fnotice, progname): Move to diagnostic-core.h.
12395         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
12396         (expand_builtin_expect): Use seen_error.
12397         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
12398         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
12399         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
12400         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
12401         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
12402         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
12403         errorcount for errors.
12404         * c-opts.c (c_common_finish): Use seen_error.
12405         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
12406         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
12407         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
12408         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
12409         (get_coverage_counts): Use seen_error.
12410         * dwarf2out.c (dwarf2out_finish): Use seen_error.
12411         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
12412         gimplify_body): Use seen_error.
12413         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
12414         * ipa-pure-const.c (gate_pure_const): Use seen_error.
12415         * ipa-reference.c (gate_reference): Use seen_error.
12416         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
12417         * lambda-code.c: Include diagnostic-core.h instead of
12418         diagnostic.h.
12419         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
12420         * lto-compress.c: Include diagnostic-core.h instead of
12421         diagnostic.h.
12422         * lto-section-in.c: Include diagnostic-core.h instead of
12423         diagnostic.h.
12424         * lto-streamer-out.c: Include diagnostic-core.h instead of
12425         diagnostic.h.
12426         * lto-streamer.c: Include diagnostic-core.h instead of
12427         diagnostic.h.
12428         (gate_lto_out): Use seen_error.
12429         * matrix-reorg.c: Include diagnostic-core.h instead of
12430         diagnostic.h.
12431         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
12432         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
12433         (gate_expand_omp, lower_omp_1): Use seen_error.
12434         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
12435         (rest_of_decl_compilation, rest_of_type_compilation,
12436         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
12437         * tree-cfg.c (label_to_block_fn): Use seen_error.
12438         * tree-inline.c (optimize_inline_calls): Use seen_error.
12439         * tree-mudflap.c (mudflap_finish_file): Use
12440         seen_error.
12441         * tree-optimize.c (gate_all_optimizations,
12442         gate_all_early_local_passes, gate_all_early_optimizations): Use
12443         seen_error.
12444         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
12445         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
12446         (varpool_remove_unreferenced_decls,
12447         varpool_assemble_pending_decls): Use seen_error.
12448         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
12449         (TOPLEV_H, DIAGNOSTIC_H): Update.
12450         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
12451         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
12452         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
12453         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
12454         coverage.o, lambda-code.o): Update dependencies.
12455
12456 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
12457
12458         PR c++/44188
12459         * c-common.c (is_typedef_decl): Move this definition ...
12460         * tree.c (is_typedef_decl): ... here.
12461         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
12462         * c-common.h (is_typedef_decl): Move this declaration ...
12463         * tree.h (is_typedef_decl): ... here.
12464         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
12465         * dwarf2out.c (is_naming_typedef_decl): New function.
12466         (gen_tagged_type_die): Split out of ...
12467         (gen_type_die_with_usage): ... this function. When an anonymous
12468         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
12469         is emitted for the typedef.
12470         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
12471         anonymous tagged types.
12472
12473 2010-05-27  Jason Merrill  <jason@redhat.com>
12474
12475         * print-tree.c (debug_vec_tree): New fn.
12476         (print_vec_tree): New fn.
12477         * tree.h: Declare them.
12478         * gdbinit.in (pvt): New command.
12479
12480         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
12481
12482         * gdbinit.in (pdd): New command.
12483
12484 2010-05-27  Jan Hubicka  <jh@suse.cz>
12485
12486         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
12487         (update_caller_keys): Return early if there are no callers;
12488         only update fibheap when decresing the key.
12489         (update_callee_keys): Avoid recursion.
12490         (decide_inlining_of_small_functions): When badness does not match;
12491         re-insert into fibheap.
12492
12493 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
12494
12495         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
12496         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
12497         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
12498         (ALL_HOST_OBJS): Now a union of the above two.
12499         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
12500         all files in ALL_HOST_FRONTEND_OBJS.
12501         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
12502
12503         * c-common.c: Pretend to be a backend file by undefining
12504         IN_GCC_FRONTEND (still need rtl.h here).
12505
12506 2010-05-27  Jan Hubicka  <jh@suse.cz>
12507
12508         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
12509         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
12510
12511 2010-05-27  Jan Hubicka  <jh@suse.cz>
12512
12513         * sched-ebb.c: Rename struct deps to struct deps_desc.
12514         * ddg.c: Likewise.
12515         * sel-sched-ir.c: Likewise.
12516         * sched-deps.c: Likewise.
12517         * sched-int.h: Likewise.
12518         * sched-rgn.c: Likewise.
12519
12520 2010-05-27  Jon Beniston  <jon@beniston.com>
12521
12522         PR 43726
12523         * config/lm32/lm32.h: Remove definition of
12524         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
12525
12526 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
12527
12528         PR lto/44230
12529         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
12530
12531 2010-05-27  Richard Guenther  <rguenther@suse.de>
12532
12533         PR tree-optimization/44284
12534         * tree-vect-stmts.c (vectorizable_assignment): Handle
12535         sign-changing conversions as simple copy.
12536
12537 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12538
12539         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
12540         Bionic C library.
12541         (__gthread_active_p): Check for pthread_create if compiling against
12542         Bionic C library.
12543
12544 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12545
12546         Support compilation for Android platform.  Reimplement -mandroid.
12547
12548         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
12549         (*android*): Set ANDROID_DEFAULT.
12550         (arm*-*-linux*): Include linux-android.h.
12551         (arm*-*-eabi*): Don't include previous -mandroid implementation.
12552         * config/arm/eabi.h: Remove, move Android-specific parts ...
12553         * config/linux-android.h: ... here.  New file.
12554         * config/arm/eabi.opt: Rename to ...
12555         * config/linux-android.opt: ... this.
12556         (mandroid): Allow -mno-android option.  Initialize based on
12557         ANDROID_DEFAULT.
12558         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
12559         Move logic to corresponding LINUX_TARGET_* macros.
12560         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
12561         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
12562         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
12563         Android definitions.
12564         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
12565         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
12566         Document.
12567
12568 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12569
12570         Add support for Bionic C library
12571
12572         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
12573         macro.
12574         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
12575         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
12576
12577         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
12578         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
12579         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
12580         to support multiple C libraries.  Handle Bionic.
12581         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
12582         (BIONIC_DYNAMIC_LINKER64): Define.
12583         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
12584         Update.
12585         (TARGET_HAS_SINCOS): Enable for Bionic.
12586
12587         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
12588         the last option specified on command line take effect.
12589         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
12590         (mbionic): New.
12591         (mglibc, muclibc): Update.
12592
12593         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
12594         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
12595         DEFAULT_LIBC.
12596
12597         * doc/invoke.texi (-mglibc, -muclibc): Update.
12598         (-mbionic): Document.
12599
12600 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12601
12602         * c-common.h (c_register_addr_space): Add prototype.
12603         (ADDR_SPACE_KEYWORD): Remove.
12604         * c-common.c (c_register_addr_space): New function.
12605         (c_addr_space_name): Reimplement.
12606         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
12607
12608         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
12609         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
12610
12611         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
12612         Remove TARGET_ADDR_SPACE_KEYWORDS.
12613
12614 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
12615
12616         * input.c: New file.
12617         * input.h (main_input_filename): Move declaration to toplev.h.
12618         * toplev.c (input_location, line_table): Move to input.c
12619         * toplev.h (main_input_filename): Move declaration from input.h.
12620         * tree.c (expand_location): Move to input.c.
12621         * Makefile.in (OBJS-common): Add input.o.
12622         (input.o): Add dependencies.
12623
12624 2010-05-27  Richard Guenther  <rguenther@suse.de>
12625
12626         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
12627         for non-existant files.
12628         (fork_execute): Mark args_name file as deleted.
12629
12630 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
12631
12632         PR bootstrp/44287
12633         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
12634         (narrow_signed_type): Likewise.
12635
12636 2010-05-26  Jan Hubicka  <jh@suse.cz>
12637
12638         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
12639         edge only when checking is enabled; check using former_clone_of;
12640         check inline clones too.
12641         (cgraph_materialize_clone): Record former_clone_of pointer.
12642         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
12643         combining redirections; dump args_to_skip bitmap
12644         (cgraph_materialize_all_clones): Do no redirection here.
12645         * ipa-inline.c (inline_transform): Do redirection here.
12646         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
12647         cheking only).
12648
12649 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12650
12651         * config/avr/avr-c.c: Do not include regs.h.
12652         Include cpplib.h for cpp_define and tree.h for c-common.h.
12653         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
12654         * config/avr/t-avr: Fix dependencies for avr-c.o.
12655
12656 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12657
12658         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
12659         string instead of SYMBOL_REF rtx.
12660         * rtl.h (set_stack_check_libfunc): Move prototype from here...
12661         * libfuncs.h: ...to here.  Adjust for explow.c change.
12662
12663 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
12664
12665         * pretty-print.c: Don't include ggc.h.
12666         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
12667         (identifier_to_locale): Use them for allocation.
12668         * pretty-print.h (identifier_to_locale_alloc,
12669         identifier_to_locale_free): Declare.
12670         * toplev.c (alloc_for_identifier_to_locale): New.
12671         (general_init): Set identifier_to_locale_alloc and
12672         identifier_to_locale_free.
12673         * Makefile.in (pretty-print.o): Update dependencies.
12674
12675 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
12676
12677         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
12678         pointer types if they have different alignment or mode.
12679
12680 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
12681
12682         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
12683         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12684         * config/sparc/sparc-protos.h (function_value): Remove declaration.
12685         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
12686         sparc_function_value_regno_p): New functions.
12687         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12688         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12689         (function_value): Rename to...
12690         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
12691         argument to 'outgoing'.
12692         (function_arg_record_value, function_arg_union_value,
12693         function_arg_vector_value): Update comment.
12694
12695 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
12696
12697         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
12698         (fde_needed_for_eh_p): New predicate.
12699         (output_call_frame_info): Use it throughout to decide whether FDEs
12700         are needed for EH purpose.
12701         (dwarf2out_begin_prologue): Reorder assignments.
12702
12703 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12704
12705         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
12706         special case loop->header.
12707         (is_predicated): New.
12708         (if_convertible_loop_p): Call it.
12709
12710 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12711
12712         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
12713         iterator in parameter.  Do not generate code during the analysis.
12714         (tree_if_convert_cond_stmt): Removed.
12715         (tree_if_convert_stmt): Removed.
12716         (predicate_bbs): New.
12717         (if_convertible_loop_p): Call predicate_bbs.
12718         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
12719         now contains all the analysis part.
12720
12721 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12722
12723         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
12724         statements in the analysis part.
12725         (tree_if_convert_stmt): Update comment.
12726         (remove_conditions_and_labels): New.
12727         (combine_blocks): Call remove_conditions_and_labels.
12728         (tree_if_conversion): Update comment.
12729
12730 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12731
12732         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
12733         than 2 predecessors or more than 2 successors.
12734
12735 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12736
12737         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
12738         of loops in which the data dependence analysis fails.
12739
12740 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12741
12742         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
12743         CDI_POST_DOMINATORS.
12744         (tree_if_conversion): Same.
12745
12746 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12747
12748         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
12749
12750 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12751
12752         * tree-if-conv.c: Update copyright years.  Fix comments.
12753         Fix indentation.
12754
12755 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
12756
12757         * builtin-types.def (BT_INT128): New primitive type.
12758         (BT_UINT128): Likewise.
12759         * c-common.c (c_common_r): Add __int128 keyword.
12760         (c_common_type_for_size): Handle __int128.
12761         (c_common_type_for_mode): Likewise.
12762         (c_common_signed_or_unsigned_type): Likewise.
12763         (c_common_nodes_and_builtins): Add builtin type
12764         if target supports 128-bit integer scalar.
12765         * c-common.h (enum rid): Add RID_INT128.
12766         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
12767         if target supports 128-bit integer scalar.
12768         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
12769         (finish_declspecs): Likewise.
12770         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
12771         (c_token_starts_declspecs): Likewise.
12772         (c_parser_declspecs): Likewise.
12773         (c_parser_attributes): Likewise.
12774         (c_parser_objc_selector): Likewise.
12775         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
12776         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
12777         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
12778         * tree.c (make_or_reuse_type): Likewise.
12779         (make_unsigned_type): Likewise.
12780         (build_common_tree_nodes_2): Likewise.
12781         * tree.h (enum integer_type_kind): Add itk_int128 and
12782         itk_unsigned_int128.
12783         (int128_integer_type_node): New define.
12784         (int128_unsigned_type_node): New define.
12785         * doc/extend.texi: Add documentation about __int128 type.
12786
12787 2010-05-26  Richard Guenther  <rguenther@suse.de>
12788
12789         * tree-ssa-sccvn.c (copy_nary): Adjust.
12790         (copy_phis): Rename to ...
12791         (copy_phi): ... this.  Adjust.
12792         (copy_references): Rename to ...
12793         (copy_reference): ... this.  Adjust.
12794         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
12795         result into the valid table.
12796
12797 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12798
12799         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
12800         insn-config.h, insn-codes.h, recog.h, and optabs.h.
12801
12802 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12803
12804         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
12805
12806 2010-05-26  Richard Guenther  <rguenther@suse.de>
12807
12808         * opts.c (common_handle_option): Handle OPT_Ofast.
12809
12810 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
12811
12812         * diagnostic.c: Don't include opts.h.
12813         (permissive_error_option): Define.
12814         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
12815         for classify_diagnostic.  Don't use memset for
12816         classify_diagnostic.  Initialize new and recently added fields.
12817         (diagnostic_classify_diagnostic): Use context->n_opts instead of
12818         N_OPTS.
12819         (diagnostic_report_diagnostic): Pass context parameter to
12820         diagnostic_report_warnings_p.  Use option_enabled and option_name
12821         hooks from context.
12822         (emit_diagnostic): Use permissive_error_option.
12823         (permerror): Likewise.
12824         * diagnostic.h: Don't include options.h.
12825         (struct diagnostic_context): Add n_opts, opt_permissive,
12826         inhibit_warnings, warn_system_headers, option_enabled and
12827         option_name fields.  Change classify_diagnostic to a pointer.
12828         * opts-diagnostic.h: New file.
12829         * opts.c: Include opts-diagnostic.h.
12830         (common_handle_option): Set global_dc fields for -Wfatal-errors,
12831         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
12832         (option_name): New function.
12833         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
12834         (c_common_handle_option): Set global_dc->permissive for
12835         -fpermissive.
12836         * c-common.c (c_cpp_error): Save and restore
12837         global_dc->warn_system_headers, not variable warn_system_headers.
12838         * toplev.c: Include opts-diagnostic.h.
12839         (general_init): Update call to diagnostic_initialize.  Set
12840         global_dc->show_column, global_dc->option_enabled and
12841         global_dc->option_name.
12842         (process_options): Don't set global_dc fields here.
12843         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
12844         (diagnostic.o, opts.o, toplev.o): Update dependencies.
12845
12846 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
12847
12848         * config/picochip/picochip.md (movsi): Split a movsi from a
12849         const after reload.
12850
12851 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12852
12853         * ggc-zone.c: Update copyright year.
12854         (poison_region): Mark memory for Valgrind as undefined before
12855         memset () call and inaccessible afterwards.
12856         (ggc_pch_total_size): Change type of i to int.
12857
12858 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12859
12860         * ggc-common.c (ggc_free_overhead): Allow empty slot.
12861
12862 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12863
12864         * ggc-common.c: Update copyright year.
12865         (ggc_rlimit_bound): Remove prototype.  Compile only if
12866         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
12867         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
12868         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
12869         (ggc_min_heapsize_heuristic): Likewise.
12870
12871 2010-05-26  Richard Guenther  <rguenther@suse.de>
12872
12873         PR rtl-optimization/44164
12874         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
12875         no-common access-path disambiguation.
12876         (indirect_ref_may_alias_decl_p): Adjust.
12877         (indirect_refs_may_alias_p): Likewise.
12878         (refs_may_alias_p_1): Likewise.
12879
12880 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12881
12882         * c-typeck.c: Do not include expr.h.
12883
12884 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12885
12886         * rtl.h (decl_default_tls_model): Move prototype from here...
12887         * output.h: ...to here.
12888         * c-decl.c: Do not include rtl.h.
12889         * c-pragma.c: Likewise.
12890         * c-parser.c: Likewise.
12891         * c-gimplify.c: Likewise.  And also not hard-reg-set.
12892         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
12893         FIXME note for it.  Add a FIXME note for expr.h.
12894         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
12895         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
12896         defined.
12897
12898 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
12899
12900         PR target/44199
12901         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
12902         or total_size is larger than red zone size for non-V4 ABI, emit a
12903         stack_tie resp. frame_tie insn before stack pointer restore.
12904         * config/rs6000/rs6000.md (frame_tie): New insn.
12905
12906 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
12907
12908         * function.h (struct function): Add can_throw_non_call_exceptions bit.
12909         * lto-streamer-in.c (input_function): Stream it in.
12910         * lto-streamer-out.c (output_function): Stream it out.
12911         * function.c (allocate_struct_function): Set it.
12912         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
12913         for flag_non_call_exceptions.
12914         * cfgbuild.c (control_flow_insn_p): Likewise.
12915         (make_edges): Likewise.
12916         * cfgexpand.c (expand_stack_alignment): Likewise.
12917         * combine.c (distribute_notes): Likewise.
12918         * cse.c (cse_extended_basic_block): Likewise.
12919         * except.c (insn_could_throw_p): Likewise.
12920         * gcse.c (simple_mem): Likewise.
12921         * ipa-pure-const.c (check_call): Likewise.
12922         (check_stmt ): Likewise.
12923         * lower-subreg.c (lower-subreg.c): Likewise.
12924         * optabs.c (emit_libcall_block): Likewise.
12925         (prepare_cmp_insn): Likewise.
12926         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
12927         * postreload.c (rest_of_handle_postreload): Likewise.
12928         * reload1.c (reload_as_needed): Likewise.
12929         (emit_input_reload_insns): Likewise.
12930         (emit_output_reload_insns): Likewise.
12931         (fixup_abnormal_edges): Likewise.
12932         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
12933         * store-motion.c (find_moveable_store): Likewise.
12934         * tree-eh.c (stmt_could_throw_p): Likewise.
12935         (tree_could_throw_p): Likewise.
12936         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
12937         * config/arm/arm.c (arm_expand_prologue): Likewise.
12938         (thumb1_expand_prologue): Likewise.
12939         * config/rx/rx.md (cbranchsf4): Likewise.
12940         (cmpsf): Likewise.
12941         * config/s390/s390.c (s390_emit_prologue): Likewise.
12942         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
12943         (inline_forbidden_into_p): New predicate.
12944         (expand_call_inline): Use it to forbid inlining.
12945         (tree_can_inline_p): Likewise.
12946
12947 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
12948
12949         * config/i386/i386-c.c: Do not include rtl.h.
12950         * config/i386/t-i386: Update dependencies.
12951
12952 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
12953
12954         * attribs.c: Do not include rtl.h.
12955         * Makefile.in: Update dependencies.
12956
12957 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
12958
12959         * double-int.h (double_int_and): New.
12960         * combine.c (try_combine): Clean up, use double_int_* and
12961         immed_double_int_const functions.
12962
12963 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12964
12965         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
12966         stderr to /dev/null instead of grep -q.
12967         * configure: Regenerate.
12968
12969 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
12970
12971         * Makefile.in (EXCEPT_H): Fix typo.
12972
12973 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
12974
12975         * ira-build.c (update_conflict_hard_reg_costs): New.
12976         (ira_build): Call update_conflict_hard_reg_costs.
12977
12978 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
12979
12980         PR debug/41371
12981         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
12982         ENABLE_CHECKING.
12983         (intersect_loc_chains): Walk the s2var's loc_chain together
12984         with s1node chain as long as the locations are equal, don't
12985         call find_loc_in_1pdv in that case.
12986
12987         PR debug/42801
12988         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
12989         (copy_bind_expr): ... instead of here.
12990         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
12991         if the block hasn't been remapped.
12992         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
12993         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
12994
12995 2010-05-25  Richard Guenther  <rguenther@suse.de>
12996
12997         PR middle-end/44069
12998         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
12999         out-of-bounds array accesses.
13000
13001 2010-05-25  Richard Guenther  <rguenther@suse.de>
13002
13003         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
13004         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
13005         (run_gcc): Re-organize to make cleanup easier.
13006
13007 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13008
13009         * config/s390/s390.c (optimization_options): Fix and move the
13010         flag_prefetch_loop_arrays override ...
13011         (override_options): ... here.
13012
13013 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
13014
13015         * diagnostic.c: Don't include plugin.h.
13016         (diagnostic_report_diagnostic): Don't handle plugins specially
13017         here.  Pass context to internal_error callback.
13018         * diagnostic.h (struct diagnostic_context): Add context parameter
13019         to internal_error callback.
13020         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
13021         * plugin.h (struct diagnostic_context): Declare.
13022         (warn_if_plugins, plugins_internal_error_function): Declare.
13023         * toplev.c (general_init): Set global_dc->internal_error.
13024         * Makefile.in (diagnostic.o): Update dependencies.
13025
13026 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
13027
13028         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
13029         * config/rs6000/t-darwin64: New.
13030         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
13031         build crt2.
13032
13033 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
13034
13035         PR 44203
13036         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
13037         match the original (and intended) behaviour before r159557.  This
13038         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
13039         in two ways.
13040
13041 2010-05-25  Richard Guenther  <rguenther@suse.de>
13042
13043         * doc/invoke.texi: Document -Ofast.
13044         * target.h (struct gcc_target): Add handle_ofast.
13045         * target-def.h (TARGET_HANDLE_OFAST): Add.
13046         (TARGET_INITIALIZER): Adjust.
13047         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
13048         * common.opt (Ofast): Add.
13049
13050 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
13051
13052         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
13053         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
13054
13055 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
13056
13057         PR target/43610
13058         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
13059         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
13060         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
13061         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
13062
13063 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
13064
13065         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
13066         DW_OP_minus with negated offset instead of DW_OP_plus.
13067         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
13068
13069 2010-05-25  Wei Guozhi  <carrot@google.com>
13070
13071         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
13072         tst instruction and a new alternative.
13073         * config/arm/constraints.md (Pu): New constraint.
13074
13075 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
13076
13077         * function.c (assign_stack_local_1): Initialize variable
13078         to avoid warning when bootstrapping at -O3.
13079
13080 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
13081
13082         * configure.ac (all_lang_makefiles): Remove everything related to it.
13083         * configure: Regenerate.
13084         * Makefile.in: Fix reference to ada Make-lang.in.
13085         Remove support for LANG_MAKEFILES.
13086
13087 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
13088             Sandra Loosemore  <sandra@codesourcery.com>
13089
13090         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
13091         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
13092         description.  Add arm_neon_fp16_ok.
13093         (Add Options): Add arm_neon and arm_neon_fp16.
13094
13095 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
13096
13097         * diagnostic.c: Don't include flags.h.
13098         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
13099         context parameters.  Check flags in the context passed as a parameter.
13100         (diagnostic_build_prefix): Add context parameter.  Check
13101         show_column flag in context.
13102         (diagnostic_action_after_output): Check fatal_errors flag in context.
13103         (diagnostic_report_current_module): Check show_column flag in context.
13104         (default_diagnostic_starter): Update call to
13105         diagnostic_build_prefix.
13106         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
13107         (emit_diagnostic): Pass context to permissive_error_kind.
13108         (permerror): Pass context to permissive_error_kind.
13109         * diagnostic.h (struct diagnostic_context): Add show_column,
13110         pedantic_errors, permissive and fatal_errors fields.
13111         (diagnostic_build_prefix): Update prototype.
13112         * langhooks.c
13113         * toplev.c (process_options): Set flags in global_dc from
13114         flag_show_column, flag_pedantic_errors, flag_permissive,
13115         flag_fatal_errors.
13116         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
13117         to diagnostic_build_prefix.
13118         * Makefile.in (diagnostic.o): Update dependencies.
13119
13120 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13121
13122         * config/i386/ia32intrin.h (__crc32q): Define only if
13123         __SSE4_2__ is defined.
13124
13125 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
13126
13127         PR target/44132
13128         PR middle-end/43602
13129         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
13130         DECL_VISIBILITY_SPECIFIED.
13131         (emutls_decl): Set DECL_PRESERVE_P and copy
13132         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
13133         (emutls_finalize_control_var): New callback.
13134         (emutls_finish): Finalize emutls control variables.
13135         * toplev.c (compile_file): Move the call to emutls_finish ()
13136         before varpool_assemble_pending_decls ().
13137
13138 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
13139
13140         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
13141         added to the preprocessor condition.
13142
13143 2010-05-24  Paul Brook  <paul@codesourcery.com>
13144
13145         * gengtype-lex.l: Add HARD_REG_SET.
13146         * expr.c (expand_expr_real_1): Record writes to hard registers.
13147         * function.c (rtl_data): Add asm_clobbers.
13148         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
13149         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
13150         Use crtl->asm_clobbers.
13151
13152 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13153
13154         * doc/makefile.texi (Makefile): Mention stages 'profile'
13155         and 'feedback' for profiledbootstrap.
13156
13157 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13158
13159         PR target/44245
13160         * config/i386/i386.c (def_builtin): Properly check
13161         OPTION_MASK_ISA_64BIT.
13162
13163 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
13164
13165         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
13166         typedefs with different but compatible types.  Allow duplicate
13167         typedefs with the same type except for pedantic non-C1X, but give
13168         warning for variably modified types.
13169         * c-typeck.c (tagged_types_tu_compatible_p,
13170         function_types_compatible_p, type_lists_compatible_p,
13171         comptypes_internal): Add parameter different_types_p; set
13172         *different_types_p for different but compatible types.  All
13173         callers changed.
13174         (comptypes_check_different_types): New.
13175         * c-tree.h (comptypes_check_different_types): Declare.
13176
13177 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
13178
13179         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
13180         * jump.c: Include basic-block.h.
13181         * profile.c: Likewise.
13182         * tree-profile.c: Likewise.
13183         * coverage.c: Likewise.
13184         * basic-block.h (optimize_function_for_size_p): Move to function.h.
13185         (optimize_function_for_speed_p): Likewise.
13186         * function.h (optimize_function_for_size_p,
13187         optimize_function_for_speed_p): Moved here from basic-block.h.
13188         * Makefile.in: Update dependencies.
13189
13190 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13191
13192         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
13193         before calling make; allow override through $MAKE.
13194         * doc/invoke.texi (Optimize Options): Document override.
13195
13196 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
13197
13198         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
13199         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13200         (rs6000_mode_dependent_address_ptr): Make static.
13201         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13202         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
13203         Remove.
13204
13205 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
13206
13207         PR target/43869
13208         * config/i386/i386.c: Make sure that the correct regparm is passed.
13209
13210 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
13211
13212         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
13213         * sbitmap.c: ...to here to internalize sbitmap element access.
13214         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
13215         Explain why basic-block.h is included.
13216         * function.h: Include tm.h for CUMULATIVE_ARGS.
13217         * Makefile.in: Update dependencies.
13218
13219 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
13220
13221         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
13222         New core types.
13223         * sbitmap.h (struct sbitmap_def): Do not typedef here.
13224         * sbitmap.c: Include sbitmap.h.
13225         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
13226         hard-reg-set.h.  Split everything related to regsets out from here...
13227         * regset.h: ...to here.  New file.
13228         * df.h: Include regset.h and sbitmap.h.
13229         * tree-flow.h: Likewise.
13230         * cfgloop.h: Likewise.
13231         * except.h: Do not include sbitmap.h.  Include hashtab.h.
13232         * cgraph.h: Include vec.h and function.h.
13233         * reload.h (struct insn_chain): Change types of live_throughout
13234         and dead_or_set from regset_head to bitmap_head.
13235         (compute_use_by_pseudos): Be defined also if regset.h is not included.
13236         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
13237         spilled_regs from regset_head to bitmap_head to avoid dependency
13238         in regset.h.
13239         * sel-sched-ir.h: Include regset.h.
13240         * reload.c: Include df.h before reload.h.
13241         * caller-save.c: Likewise.
13242         * reload1.c: Likewise.
13243         * ira.c: Likewise.
13244         (mark_elimination): Update type of r to bitmap, consistent with
13245         DF_LR_IN.
13246         * dominance.c: Include bitmap.h.
13247         * modulo-sched.c: Include df.h.
13248         * cfganal.c: Include bitmap.h and sbitmap.h.
13249         * cfgbuild.c: Include sbitmap.h.
13250         * lcm.c: Include sbitmap.h.
13251         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
13252         * domwalk.c: Include sbitmap.h, exclude ggc.h.
13253         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
13254         * cselib.c: Include bitmap.h.
13255         * tree-optimize.c: Include regset.h.
13256         * stmt.c: Include bitmap.h.
13257         * Makefile.in: Update dependencies.
13258
13259 2010-05-22  Jan Hubicka  <jh@suse.cz>
13260
13261         * cgraph.h (struct varpool_node): Add same_comdat_group.
13262         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
13263         pointer.
13264         (output_varpool): Update call of lto_output_varpool_node.
13265         (input_varpool): Read same_comdat_group pointer.
13266         (input_varpool_1): Fixup same_comdat_group pointer.
13267         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
13268         group is needed, all are.
13269         * varpool.c (varpool_remove_node): Remove node from same comdat group
13270         linklist too.
13271         (varpool_analyze_pending_decls): Walk same comdat groups.
13272
13273 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
13274
13275         * rtl.h (union rtunion_def): Remove rt_bit member.
13276         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
13277         * print-rtl (print_rtx): Do not print the member.
13278         * gengtype.c (adjust_field_rtx_def): Do not handle it.
13279         * gengenrtl.c (type_from_format): Likewise.
13280         (accessor_from_format): Likewise.
13281
13282 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
13283
13284         * dbgcnt.c: Include toplev.h instead of errors.h.
13285         * ira-emit.c: Don't include errors.h.
13286         * ira.c: Include toplev.h instead of errors.h.
13287         * lto-compress.c: Include toplev.h instead of errors.h.
13288         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
13289         ira.o, dbgcnt.o): Update dependencies.
13290
13291 2010-05-22  Richard Guenther  <rguenther@suse.de>
13292
13293         * gimple.c (gimple_types_compatible_p): Check type qualifications
13294         before merging pointer to complete and pointer to incomplete type.
13295         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
13296         we use our own resolution algorithm.  The gold linker plugin
13297         doesn't do the job we want it to do here.
13298
13299 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
13300
13301         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13302         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13303         (sparc_mode_dependent_address_p): New function.
13304
13305 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
13306
13307         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
13308
13309         * timevar.c: Do not include any core headers.
13310         (timevar_print): De-i18n-ize.
13311         (print_time): Likewise.
13312         * timevar.h (timevar_push, timevar_pop): Make inline functions.
13313
13314 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
13315
13316         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
13317         langhooks-def.h.
13318         (diagnostic_initialize): Initialize x_data not last_function.
13319         (diagnostic_report_current_function): Move to tree-diagnostic.c.
13320         (default_diagnostic_starter): Call
13321         diagnostic_report_current_module not
13322         diagnostic_report_current_function.
13323         (diagnostic_report_diagnostic): Initialize x_data not
13324         abstract_origin.
13325         (verbatim): Likewise.
13326         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
13327         x_data.
13328         (struct diagnostic_context): Change last_function to x_data.
13329         (diagnostic_auxiliary_data): Replace with
13330         diagnostic_context_auxiliary_data and
13331         diagnostic_info_auxiliary_data.
13332         (diagnostic_last_function_changed, diagnostic_set_last_function,
13333         diagnostic_report_current_function): Move to tree-diagnostic.h.
13334         (print_declaration, dump_generic_node, print_generic_stmt,
13335         print_generic_stmt_indented, print_generic_expr,
13336         print_generic_decl, debug_c_tree, dump_omp_clauses,
13337         print_call_name, debug_generic_expr, debug_generic_stmt,
13338         debug_tree_chain, default_tree_printer): Move to
13339         tree-pretty-print.h.
13340         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
13341         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
13342         gimple-pretty-print.h.
13343         * pretty-print.c: Don't include tree.h
13344         (pp_base_format): Don't handle %K here.
13345         (pp_base_tree_identifier): Move to tree-pretty-print.c.
13346         * pretty-print.h (text_info): Change abstract_origin to x_data.
13347         (pp_tree_identifier, pp_unsupported_tree,
13348         pp_base_tree_identifier): Move to tree-pretty-print.h.
13349         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
13350         tree-pretty-print.h: New files.
13351         * tree-pretty-print.c: Include tree-pretty-print.h.
13352         (percent_K_format): New.  Moved from pretty-print.c.
13353         (pp_base_tree_identifier): Move from pretty-print.c.
13354         * c-objc-common.c: Include tree-pretty-print.h.
13355         (c_tree_printer): Handle %K here.
13356         * langhooks.c: Include tree-diagnostic.h.
13357         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
13358         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
13359         (default_tree_printer): Handle %K using percent_K_format.
13360         (general_init): Use default_tree_diagnostic_starter.
13361         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
13362         (free_lang_data): Use default_tree_diagnostic_starter.
13363         * c-pretty-print.c: Include tree-pretty-print.h.
13364         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13365         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13366         * dwarf2out.c: Include tree-pretty-print.h.
13367         * except.c: Include tree-pretty-print.h.
13368         * gimple-pretty-print.c: Include tree-pretty-print.h and
13369         gimple-pretty-print.h.
13370         * gimplify.c: Include tree-pretty-print.h.
13371         * graphite-poly.c: Include tree-pretty-print.h and
13372         gimple-pretty-print.h.
13373         * ipa-cp.c: Include tree-pretty-print.h.
13374         * ipa-inline.c: Include gimple-pretty-print.h.
13375         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13376         * ipa-pure-const.c: Include gimple-pretty-print.h.
13377         * ipa-struct-reorg.c: Include tree-pretty-print.h and
13378         gimple-pretty-print.h.
13379         * ipa-type-escape.c: Include tree-pretty-print.h.
13380         * print-rtl.c: Include tree-pretty-print.h.
13381         * print-tree.c: Include gimple-pretty-print.h.
13382         * sese.c: Include tree-pretty-print.h.
13383         * tree-affine.c: Include tree-pretty-print.h.
13384         * tree-browser.c: Include tree-pretty-print.h.
13385         * tree-call-cdce.c: Include gimple-pretty-print.h.
13386         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13387         * tree-chrec.c: Include tree-pretty-print.h.
13388         * tree-data-ref.c: Include tree-pretty-print.h and
13389         gimple-pretty-print.h.
13390         * tree-dfa.c: Include tree-pretty-print.h.
13391         * tree-if-conv.c: Include tree-pretty-print.h and
13392         gimple-pretty-print.h.
13393         * tree-inline.c: Include tree-pretty-print.h.
13394         * tree-into-ssa.c: Include tree-pretty-print.h and
13395         gimple-pretty-print.h.
13396         * tree-nrv.c: Include tree-pretty-print.h.
13397         * tree-object-size.c: Include tree-pretty-print.h and
13398         gimple-pretty-print.h.
13399         * tree-outof-ssa.c: Include tree-pretty-print.h and
13400         gimple-pretty-print.h.
13401         * tree-parloops.c: Include tree-pretty-print.h and
13402         gimple-pretty-print.h.
13403         * tree-predcom.c: Include tree-pretty-print.h and
13404         gimple-pretty-print.h.
13405         * tree-scalar-evolution.c: Include tree-pretty-print.h and
13406         gimple-pretty-print.h.
13407         * tree-sra.c: Include tree-pretty-print.h.
13408         * tree-ssa-address.c: Include tree-pretty-print.h.
13409         * tree-ssa-alias.c: Include tree-pretty-print.h.
13410         * tree-ssa-ccp.c: Include tree-pretty-print.h and
13411         gimple-pretty-print.h.
13412         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
13413         * tree-ssa-copy.c: Include tree-pretty-print.h and
13414         gimple-pretty-print.h.
13415         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
13416         * tree-ssa-dce.c: Include tree-pretty-print.h and
13417         gimple-pretty-print.h.
13418         * tree-ssa-dom.c: Include tree-pretty-print.h and
13419         gimple-pretty-print.h.
13420         * tree-ssa-dse.c: Include gimple-pretty-print.h.
13421         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
13422         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
13423         * tree-ssa-live.c: Include tree-pretty-print.h and
13424         gimple-pretty-print.h.
13425         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
13426         gimple-pretty-print.h.
13427         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
13428         gimple-pretty-print.h.
13429         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
13430         gimple-pretty-print.h.
13431         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
13432         gimple-pretty-print.h.
13433         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
13434         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
13435         * tree-ssa-operands.c: Include tree-pretty-print.h and
13436         gimple-pretty-print.h.
13437         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
13438         gimple-pretty-print.h.
13439         * tree-ssa-pre.c: Include tree-pretty-print.h and
13440         gimple-pretty-print.h.
13441         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
13442         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
13443         gimple-pretty-print.h.
13444         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
13445         gimple-pretty-print.h.
13446         * tree-ssa-sink.c: Include gimple-pretty-print.h.
13447         * tree-ssa-ter.c: Include tree-pretty-print.h and
13448         gimple-pretty-print.h.
13449         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
13450         * tree-ssa.c: Include tree-pretty-print.h and
13451         gimple-pretty-print.h.
13452         * tree-stdarg.c: Include gimple-pretty-print.h.
13453         * tree-switch-conversion.c: Include gimple-pretty-print.h.
13454         * tree-tailcall.c: Include tree-pretty-print.h and
13455         gimple-pretty-print.h.
13456         * tree-vect-data-refs.c: Include tree-pretty-print.h and
13457         gimple-pretty-print.h.
13458         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
13459         gimple-pretty-print.h.
13460         * tree-vect-loop.c: Include tree-pretty-print.h and
13461         gimple-pretty-print.h.
13462         * tree-vect-patterns.c: Include gimple-pretty-print.h.
13463         * tree-vect-slp.c: Include tree-pretty-print.h and
13464         gimple-pretty-print.h.
13465         * tree-vect-stmts.c: Include tree-pretty-print.h and
13466         gimple-pretty-print.h.
13467         * tree-vectorizer.c: Include tree-pretty-print.h.
13468         * tree-vrp.c: Include tree-pretty-print.h and
13469         gimple-pretty-print.h.
13470         * value-prof.c: Include tree-pretty-print.h and
13471         gimple-pretty-print.h.
13472         * var-tracking.c: Include tree-pretty-print.h.
13473         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
13474         (tree-diagnostic.o): New dependencies.
13475         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
13476         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
13477         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
13478         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
13479         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
13480         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
13481         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
13482         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
13483         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
13484         tree-ssa-address.o, tree-ssa-loop-niter.o,
13485         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
13486         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
13487         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
13488         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
13489         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
13490         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
13491         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
13492         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
13493         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
13494         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
13495         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
13496         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
13497         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
13498         tree-switch-conversion.o, var-tracking.o, value-prof.o,
13499         cfgexpand.o, pretty-print.o): Update dependencies.
13500
13501 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
13502
13503         * tree-ssa-structalias.c: Remove tm_p.h from include.
13504
13505 2010-05-21  Jeff Law  <law@redhat.com>
13506
13507         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
13508
13509 2010-05-21  Jason Merrill  <jason@redhat.com>
13510
13511         * tree-eh.c (cleanup_is_dead_in): New.
13512         (lower_try_finally): Don't generate a dead cleanup region.
13513         (lower_cleanup): Likewise.
13514
13515 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
13516
13517         PR debug/44223
13518         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
13519         unchain each use from the cyclic next_regno_use chain first.
13520
13521 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
13522
13523         * real: Do not include gmp.h, mpfr.h, and mpc.h.
13524         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
13525         (real_value_negate, real_value_abs): New prototypes.
13526         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
13527         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
13528         new include file for interface between MPFR and REAL_VALUE_TYPE.
13529         * real.c: Include realmpfr.h.
13530         (real_arithmetic2): Remove legacy function.
13531         (real_value_negate): New.
13532         (real_value_abs): New.
13533         (mfpr_from_real, real_from_mpfr): Move from here...
13534         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
13535         * builtins.c: Include realmpfr.h.
13536         * fold-const.c: Include realmpfr.h.
13537         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
13538         (fold_negate_const): Likewise.
13539         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
13540         * toplev.c: Include realmpfr.h.
13541         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
13542         and real_value_negate.
13543         * fixed-value.c (check_real_for_fixed_mode): Likewise.
13544         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
13545         (vfp3_const_double_index): Likewise.
13546         (arm_print_operand): Likewise.
13547         * Makefile.in: Update dependencies.
13548
13549 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13550
13551         * config/s390/s390.c (override_options): Increase the default
13552         of max-completely-peel-times.
13553
13554 2010-05-21  Julian Brown  <julian@codesourcery.com>
13555             Mark Mitchell  <mark@codesourcery.com>
13556
13557         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
13558         sibling calls for Thumb-1.
13559         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
13560         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
13561         Thumb-2.
13562         (*call_insn, *call_value_insn): Don't use for Thumb-2.
13563         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
13564         for Thumb-2.
13565         (return): New expander.
13566         (*arm_return): New name for ARM return insn.
13567         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
13568
13569 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
13570
13571         * config.gcc (sparc64-*-rtems*): New target.
13572
13573 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
13574
13575         * tree.c (build_function_decl_skip_args): Fix grammar.
13576         (build_function_type_list_1): Fix typos, adjust formatting.
13577
13578 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
13579
13580         * tree.h: Include real.h and fixed-value.h as basic datatypes.
13581         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
13582         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
13583         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
13584         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
13585         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
13586         tree-pretty-print.c, tree-loop-distribution.c,
13587         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
13588         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
13589         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
13590         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
13591         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
13592         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
13593         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
13594         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
13595         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
13596         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
13597         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
13598         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
13599         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
13600         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
13601         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
13602         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
13603         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
13604         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
13605         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
13606         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
13607         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
13608         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
13609         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
13610         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
13611         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
13612         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
13613         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
13614         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
13615         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
13616         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
13617         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
13618         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
13619         config/score/score7.c, config/score/score.c, config/arm/arm.c,
13620         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
13621         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
13622         config/bfin/bfin.c: Clean up redundant includes.
13623         * Makefile.in: Update accordingly.
13624
13625 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
13626
13627         PR middle-end/44204
13628         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
13629         statement has no arguments.
13630
13631 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
13632
13633         PR/44139
13634         * varasm.c (emutls_decl): Merge attributes to new decl.
13635
13636 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
13637
13638         PR middle-end/44101
13639         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
13640         around the uniquized constructor if its type requires a conversion.
13641
13642 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
13643
13644         PR debug/44205
13645         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
13646         at -O0 goto_locus of any of the incoming edges differs from
13647         goto_locus of outgoing edge, or gimple_location of any of the
13648         labels differs.
13649
13650 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
13651
13652         * ira.c (ira_non_ordered_class_hard_regs): Define.
13653         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
13654         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
13655         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
13656         cost of unaligned hard regs when allocating multi-reg pseudos.
13657
13658 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
13659
13660         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
13661         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
13662         for TARGET_NO_FLOAT.
13663         * config/mips/mips.c (mips_file_start): Expand conditional expression
13664         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
13665         (mips_override_options): Move -mno-float override -msoft-float and
13666         -mhard-float.
13667         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
13668         Condition(TARGET_SUPPORTS_NO_FLOAT).
13669         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
13670         __mips_no_float here.
13671         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
13672         (TARGET_SUPPORTS_NO_FLOAT): Define.
13673         * config/mips/sdemtk.opt: Delete.
13674
13675 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
13676
13677         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
13678
13679 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
13680
13681         PR target/43733
13682         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
13683         * configure: Regenerate.
13684         * config.in: Regenerate.
13685         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
13686         instead of sahf only for 64bit targets.
13687
13688 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
13689
13690         PR debug/44178
13691         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
13692         setup_ref_regs for DEBUG_INSNs.
13693
13694 2010-05-20  Jan Hubicka  <jh@suse.cz>
13695
13696         PR middle-end/44197
13697         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
13698
13699 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
13700
13701         PR bootstrap/43870
13702         * df-scan.c (df_ref_compare): Stabilize sort.
13703
13704 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
13705
13706         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
13707         argument.  Don't use DW_OP_piece if offset is non-zero,
13708         put offset into second DW_OP_bit_piece argument.
13709         (dw_sra_loc_expr): Adjust callers.  For memory expressions
13710         compute offset.
13711
13712 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
13713
13714         PR target/44202
13715         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
13716         settings for 16-bit-constant "addo" alternative.
13717
13718 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
13719
13720         * config/mips/mips-dsp.md (add<DSPV:mode>3,
13721         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
13722
13723         PR target/43764
13724         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
13725         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
13726         Use it.
13727
13728 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
13729
13730         * diagnostic.c (FLOAT, FFS): Don't undefine.
13731         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
13732         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
13733         include ordering.
13734
13735 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
13736
13737         * combine.c (propagate_for_debug): Call make_compound_operation
13738         on the source value.
13739         (try_combine): When implementing a split chosen by find_split_point,
13740         either copy i2src or set it to null.  Assert that i2src is not null
13741         before substituting into CALL_INSN_FUNCTION_USAGE.
13742
13743 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
13744
13745         * double-int.h (double_int_ior): New function.
13746         * tree.h (build_int_cst_wide_type): Remove.
13747         * tree.c (build_int_cst_wide_type): Remove.
13748         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
13749         of build_int_cst_wide_type.
13750         * stor-layout.c (set_sizetype): (Ditto.).
13751         * dojump.c (do_jump): Use build_int_cstu instead of
13752         build_int_cst_wide_type.
13753
13754 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
13755
13756         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
13757         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
13758         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
13759         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
13760         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
13761         propagate the 'data' argument to copy_tree_r.
13762         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
13763         Propagate 'data' argument to walk_tree.
13764         (copy_if_shared): New function.
13765         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
13766         (unmark_visited): New function.
13767         (unshare_body): Call copy_if_shared instead of doing it manually.
13768         (unvisit_body): Call unmark_visited instead of doing it manually.
13769
13770 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
13771
13772         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
13773         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
13774         * hooks.c: Likewise.
13775         * target-def.h (TARGET_FOLD_BUILTIN): Define to
13776         hook_tree_tree_int_treep_bool_null.
13777         * target.h (struct gcc_target): Update signature of fold_builtin
13778         field.
13779         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
13780         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
13781         instead of the call expression.
13782         (fold_builtin_call_array): Pass n and argarray directly.
13783         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
13784         consing a list.
13785         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
13786         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
13787         `i' and use it in place of `arity'.
13788         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
13789         Dereference `args' directly.
13790         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
13791
13792 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13793
13794         * doc/sourcebuild.texi (Effective-Target Keywords): Document
13795         3dnow, sse3, sse2.
13796         (Directives): Document optional dg-require-effective-target
13797         selector.
13798
13799 2010-05-19  Richard Guenther  <rguenther@suse.de>
13800
13801         PR lto/44196
13802         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
13803
13804 2010-05-19  Richard Guenther  <rguenther@suse.de>
13805
13806         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
13807         * common.opt (fwhopr=): New.
13808         * opts.c (common_handle_option): Handle OPT_fwhopr.
13809         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
13810         * collect2.c (main): Match -fwhopr*.
13811         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
13812         Execute ltrans stage in parallel when jobs is bigger than 1.
13813
13814 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13815
13816         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
13817         pentiumpro on Solaris 8/x86 with Sun as.
13818         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
13819         hidden alias bug.
13820         (gcc_cv_as_ix86_quad): Check for .quad directive.
13821         * configure: Regenerate.
13822         * config.in: Regenerate.
13823         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
13824
13825 2010-05-19  Martin Jambor  <mjambor@suse.cz>
13826
13827         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
13828         also for indirect edges.  Actual printing moved...
13829         (ipa_print_node_jump_functions_for_edge): ...here.
13830         (ipa_compute_jump_functions): Renamed to
13831         ipa_compute_jump_functions_for_edge and made static.
13832         (ipa_compute_jump_functions): New function.
13833         (make_edge_direct_to_target): Check if the number of arguments on
13834         the newly direct edge is the same as the number of parametrs of
13835         the callee.
13836         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
13837         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
13838         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
13839         analysis functions unconditionally, call the new
13840         ipa_analyze_params_uses on the node instead of every edge.
13841
13842 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
13843
13844         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
13845         to tree.
13846         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
13847         also checks for a constant int vs.  non-constant but
13848         loop-invariant steps.
13849         (find_or_create_group): Change the sort algorithm to only consider
13850         steps that are constant ints.
13851         (idx_analyze_ref): Adopt code to handle a tree instead of a
13852         HOST_WIDE_INT for step.
13853         (gather_memory_references_ref): Handle tree instead of int and be
13854         prepared to see a NULL_TREE.
13855         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
13856         prefetches if the step cannot be calculated at compile time.
13857         (issue_prefetch_ref): Issue prefetches for non-constant but
13858         loop-invariant steps.
13859
13860 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
13861
13862         Revert:
13863         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
13864
13865         * tree.h (build_call_list): Remove.
13866         * tree.c (build_call_list): Remove.
13867
13868 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
13869
13870         * tree.h (build_call_list): Remove.
13871         * tree.c (build_call_list): Remove.
13872
13873 2010-05-18  Jan Hubicka  <jh@suse.cz>
13874
13875         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
13876
13877 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
13878
13879         PR rtl-optimization/43332
13880         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
13881
13882 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
13883
13884         * tree.h (build_int_cstu): Implement as static inline.
13885         * tree.c (build_int_cstu): Remove function.
13886         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
13887         sign extended.
13888
13889 2010-05-18  Richard Guenther  <rguenther@suse.de>
13890
13891         PR lto/44143
13892         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
13893         (debug): Initialize from -save-temps.
13894         (collect_execute): Print command-line when verbose.
13895         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
13896         for ltrans invocation.  Produce -dumpbase flag again.
13897         (process_args): Remove.
13898         (main): Simplify.
13899         * collect2.c (maybe_run_lto_and_relink): Only pass object
13900         files to lto-wrapper.
13901         * gcc.c (LINK_COMMAND_SPEC): Likewise.
13902
13903 2010-05-18  Jan Hubicka  <jh@suse.cz>
13904
13905         * opts.c (decode_options): Do not disable whopr at ipa_cp.
13906         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
13907
13908 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
13909
13910         PR lto/44184
13911         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
13912         in a GIMPLE_ASM.
13913         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
13914         in a GIMPLE_ASM.
13915
13916 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
13917
13918         PR debug/41371
13919         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
13920         rtx_equal_p inline.
13921
13922 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
13923
13924         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
13925         lto-macho as lto_binary_reader.
13926
13927         * darwin.c (darwin_asm_named_section): Do not add assembler comment
13928         after .section directive; just print it before the directive instead.
13929
13930 2010-05-17  Jan Hubicka  <jh@suse.cz>
13931
13932         * cgraph.c (cgraph_create_virtual_clone): Only check
13933         versionable_function_p when not in wpa and checking is enabled.
13934         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
13935         there are no more functions to materialize.
13936
13937 2010-05-17  Jan Hubicka  <jh@suse.cz>
13938
13939         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
13940         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
13941         New functions.
13942         (output_cgraph): Call output_cgraph_opt_summary.
13943         (input_cgrpah): Call input_cgraph_opt_summary.
13944         (output_cgraph_opt_summary_p, output_node_opt_summary,
13945         input_node_opt_summary, input_cgraph_opt_section): New functions.
13946         * lto-section-in.c (lto_section_name): Add cgraphopt.
13947         * tree-inline.c (tree_function_versioning): Handle parm_num.
13948         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
13949         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
13950
13951 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
13952
13953         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
13954         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
13955         the insn to prefetch ratio heuristic to loops with known trip count.
13956
13957 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
13958
13959         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
13960         (schedule_prefetches): Do not generate a prefetch if the unroll factor
13961         is far from what is required by the prefetch.
13962
13963 2010-05-17  Jan Hubicka  <jh@suse.cz>
13964
13965         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
13966         (ipcp_estimate_growth): Likewise.
13967         (ipcp_const_param_count): Likewise.
13968         (ipcp_insert_stage): Likewise.
13969         * ipa-prop.c (visit_load_for_mod_analysis): New function.
13970         (visit_store_addr_for_mod_analysis): Set used flag.
13971         (ipa_detect_param_modifications): Set used flag for SSE params;
13972         update use of walk_stmt_load_store_addr_ops.
13973         (ipa_print_node_params): Print used flag.
13974         (ipa_write_node_info): Stream used flag.
13975         (ipa_read_node_info): Likewise.
13976         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
13977         (ipa_is_param_used): New function.
13978         (lto_ipa_fixup_call_notes): Remove unused declaration.
13979
13980 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13981
13982         PR target/44074
13983         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
13984         * configure: Regenerate.
13985         * config.in: Regenerate.
13986         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
13987         !HAVE_AS_IX86_REP_LOCK_PREFIX.
13988         Don't emit whitespace.
13989         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
13990         (*rep_movsi): Likewise.
13991         (*rep_movsi_rex64): Likewise.
13992         (*rep_movqi): Likewise.
13993         (*rep_movqi_rex64): Likewise.
13994         (*rep_stosdi_rex64): Likewise.
13995         (*rep_stossi): Likewise.
13996         (*rep_stossi_rex64): Likewise.
13997         (*rep_stosqi): Likewise.
13998         (*rep_stosqi_rex64): Likewise.
13999         (*cmpstrnqi_nz_1): Use {%;} after repz.
14000         (*cmpstrnqi_nz_rex_1): Likewise.
14001         (*cmpstrnqi_1): Likewise.
14002         (*cmpstrnqi_rex_1): Likewise.
14003         (*strlenqi_1): Use {%;} after repnz.
14004         (*strlenqi_rex_1): Likewise.
14005         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
14006         (*sync_compare_and_swap<mode>): Likewise.
14007         (sync_double_compare_and_swap<mode>): Likewise.
14008         (*sync_double_compare_and_swapdi_pic): Likewise.
14009         (sync_old_add<mode>): Likewise.
14010         (sync_add<mode>): Likewise.
14011         (sync_sub<mode>): Likewise.
14012         (sync_<code><mode>): Likewise.
14013
14014 2010-05-17  Martin Jambor  <mjambor@suse.cz>
14015
14016         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
14017         otr_token and polymorphic.
14018         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
14019         (cgraph_clone_edge): Copy the above fields.
14020         * tree.c (get_binfo_at_offset): New function.
14021         * tree.h (get_binfo_at_offset): Declare.
14022         * ipa-prop.h (enum jump_func_type): Added known_type jump function
14023         type, reordered items, updated comments.
14024         (union jump_func_value): Added base_type field, reordered fields.
14025         (enum ipa_lattice_type): Moved down in the file.
14026         (struct ipa_param_descriptor): New field polymorphic.
14027         (ipa_is_param_polymorphic): New function.
14028         * ipa-prop.c: Include gimple.h and gimple-fold.h.
14029         (ipa_print_node_jump_functions): Print known type jump functions.
14030         (compute_complex_pass_through): Renamed to...
14031         (compute_complex_assign_jump_func): this.
14032         (compute_complex_ancestor_jump_func): New function.
14033         (compute_known_type_jump_func): Likewise.
14034         (compute_scalar_jump_functions): Create known type and complex ancestor
14035         jump functions.
14036         (ipa_note_param_call): New parameter polymorphic, set the corresponding
14037         flag in the call note accordingly.
14038         (ipa_analyze_call_uses): Renamed to...
14039         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
14040         variable var only in the block where it is used.
14041         (ipa_analyze_virtual_call_uses): New function.
14042         (ipa_analyze_call_uses): Likewise.
14043         (combine_known_type_and_ancestor_jfs): Likewise.
14044         (update_jump_functions_after_inlining): Implemented handling of a
14045         number of new jump function types combination.
14046         (print_edge_addition_message): Removed.
14047         (make_edge_direct_to_target): New function.
14048         (try_make_edge_direct_simple_call): Likewise.
14049         (try_make_edge_direct_virtual_call): Likewise.
14050         (update_call_notes_after_inlining): Renamed to...
14051         (update_indirect_edges_after_inlining): this.  Moved edge creation for
14052         indirect calls to try_make_edge_direct_simple_call, also calls
14053         try_make_edge_direct_virtual_call for virtual calls.
14054         (ipa_print_node_params): Changed the header message.
14055         (ipa_write_jump_function): Stream also known type jump functions.
14056         (ipa_read_jump_function): Likewise.
14057         (ipa_write_indirect_edge_info): Stream new fields in
14058         cgraph_indirect_call_info.
14059         (ipa_read_indirect_edge_info): Likewise.
14060         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
14061         GIMPLE_FOLD_H.
14062
14063 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14064
14065         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
14066
14067 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
14068
14069         * tree.h (CALL_EXPR_ARGS): Delete.
14070         (call_expr_arglist): Delete.
14071         * tree.c (call_expr_arglist): Delete.
14072         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
14073         targetm.fold_builtin.
14074         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
14075         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
14076         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
14077         arglist parameter.  Use CALL_EXPR_ARG.
14078         (picochip_expand_builtin_3op): Likewise.
14079         (picochip_expand_builtin_2opvoid): Likewise.
14080         (picochip_expand_array_get): Likewise.
14081         (picochip_expand_array_put): Likewise.
14082         (picochip_expand_array_testport): Likewise.
14083         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
14084         rather than arglist.
14085         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
14086         CALL_EXPR_ARGS.
14087         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
14088         than TREE_VALUE and TREE_CHAIN.
14089         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
14090         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
14091         the arglist.
14092
14093 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
14094
14095         PR bootstrap/42347
14096         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
14097         to have no fallthru edge.
14098
14099         PR middle-end/44102
14100         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
14101         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
14102         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
14103         add BARRIER after previous bb if needed.
14104
14105 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
14106
14107         * tree.c (build_function_type_list_1): Remove bogus assert condition.
14108
14109 2010-05-17  Alan Modra  <amodra@gmail.com>
14110
14111         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
14112         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
14113         with copy_reg rtx param.
14114         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
14115         Correct cases where code for ABI_V4 did not initialise the reg
14116         used to access frame.  Also leave frame_reg_rtx as sp for large
14117         frames that save no regs.
14118
14119 2010-05-17  Martin Jambor  <mjambor@suse.cz>
14120
14121         PR middle-end/44133
14122         * tree-sra.c (create_access_replacement): New parameter rename, mark
14123         the replaement for renaming only when it is true.
14124         (get_access_replacement): Pass true in the rename parameter of
14125         create_access_replacement.
14126         (get_unrenamed_access_replacement): New function.
14127         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
14128         replacement declaration from it.
14129
14130 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
14131
14132         * function.c (try_fit_stack_local, add_frame_space): New static
14133         functions.
14134         (assign_stack_local_1): Use them.  Look for opportunities to use
14135         space previously wasted on alignment.
14136         * function.h (struct frame_space): New.
14137         (struct rtl_data): Add FRAME_SPACE_LIST member.
14138         * reload1.c (something_was_spilled): New static variable.
14139         (alter_reg): Set it.
14140         (reload): Test it in addition to testing if the frame size changed.
14141
14142 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
14143
14144         * config/s390/s390.c: Define sane prefetch settings and activate
14145         flag_prefetch_loop_arrays on -O3.
14146         * config/s390/s390.h: Declare that read can use write prefetch.
14147
14148 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
14149
14150         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
14151         build.
14152
14153 2010-05-16  Jan Hubicka  <jh@suse.cz>
14154
14155         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
14156         function body; do not check stdarg field of struct function.
14157
14158 2010-05-16  Jan Hubicka  <jh@suse.cz>
14159
14160         * cgraph.c (dump_cgraph_node): Dump versionable flag.
14161         * cgraph.h (cgraph_local_info): Add versionable flag.
14162         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
14163         (ipcp_versionable_function_p): Use it.
14164         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
14165         versionable flag.
14166
14167 2010-05-16  Jan Hubicka  <jh@suse.cz>
14168
14169         * cgraph.c (cgraph_clone_node): Take decl argument and insert
14170         clone into hash when it is different from orig.
14171         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
14172         * cgraph.h (cgraph_clone_node): Update prototype.
14173         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
14174         (lto_cgraph_encoder_delete): Delete body map.
14175         (lto_cgraph_encoder_size): Move to header.
14176         (lto_cgraph_encoder_encode_body_p,
14177         lto_set_cgraph_encoder_encode_body): New.
14178         (lto_output_node): Do not take written_decls argument; output clone_of
14179         pointer.
14180         (add_node_to): Add include_body_argument; call
14181         lto_set_cgraph_encoder_encode_body on master of the clone.
14182         (add_references): Update use of add_node_to.
14183         (compute_ltrans_boundary): Likewise.
14184         (output_cgraph): Do not create written_decls bitmap.
14185         (input_node): Take nodes argument; stream in clone_of correctly.
14186         (input_cgraph_1): Update use of input_node.
14187         * lto-streamer-out.c (lto_output): Use encoder info to decide
14188         what bodies to output.
14189         * ipa-inline.c (cgraph_clone_inlined_nodes,
14190         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
14191         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
14192         (lto_cgraph_encoder_size): Define here.
14193         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
14194         Declare.
14195
14196 2010-05-16  Richard Guenther  <rguenther@suse.de>
14197
14198         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
14199         -fipa-type-escape.
14200         * ipa-type-escape.c (gate_type_escape_vars): Run when
14201         -fipa-struct-reorg runs.
14202         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
14203         * common.opt (fipa-type-escape): Remove.
14204
14205 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
14206
14207         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
14208         (decode_options): Likewise.
14209         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
14210
14211 2010-05-16  Jan Hubicka  <jh@suse.cz>
14212
14213         * ipa.c (function_and_variable_visibility): Also bring local all
14214         aliases.
14215
14216 2010-05-16  Richard Guenther  <rguenther@suse.de>
14217
14218         * alias.c (nonoverlapping_memrefs_p): Remove use of
14219         IPA type-escape information.
14220
14221 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
14222
14223         * c-common.c (c_common_reswords): Add _Static_assert for C.
14224         * c-parser.c (c_token_starts_declaration,
14225         c_parser_next_token_starts_declaration,
14226         c_parser_static_assert_declaration_no_semi,
14227         c_parser_static_assert_declaration): New.
14228         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
14229         Handle static assertions if static_assert_ok.
14230         (c_parser_external_declaration, c_parser_declaration_or_fndef,
14231         c_parser_compound_statement_nostart, c_parser_label,
14232         c_parser_for_statement, c_parser_objc_methodprotolist,
14233         c_parser_omp_for_loop): All callers of
14234         c_parser_declaration_or_fndef changed.
14235         (c_parser_struct_declaration): Handle static assertions.
14236         (c_parser_compound_statement_nostart): Use
14237         c_parser_next_token_starts_declaration and
14238         c_token_starts_declaration to detect start of declarations.
14239         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
14240         Likewise.
14241
14242 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
14243
14244         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
14245         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14246         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14247         TARGET_FUNCTION_VALUE_REGNO_P): Define.
14248         (mmix_function_outgoing_value): Rename to...
14249         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
14250         (mmix_function_value_regno_p): Make static.
14251         (mmix_libcall_value): New function.
14252         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
14253         mmix_function_value_regno_p): Remove declaration.
14254
14255 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
14256
14257         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
14258         BUILT_IN_ALLOCA if stack checking is enabled.
14259
14260 2010-05-16  Richard Guenther  <rguenther@suse.de>
14261
14262         * var-tracking.c (vars_copy_1): Inline ...
14263         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
14264         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
14265         (variable_merge_over_cur): Adjust.  Merge asserts.
14266         (variable_merge_over_src): Likewise.
14267         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
14268         (variable_post_merge_new_vals): Merge asserts.
14269         (variable_post_merge_perm_vals): Likewise.
14270         (find_mem_expr_in_1pdv): Likewise.
14271         (dataflow_set_different_value): Remove.
14272         (onepart_variable_different_p): Merge asserts.
14273         (variable_different_p): Likewise.
14274         (dataflow_set_different_1): Inline ...
14275         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
14276         (emit_notes_for_differences_1): Merge asserts.
14277
14278 2010-05-16  Richard Guenther  <rguenther@suse.de>
14279
14280         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
14281         * optabs.c (libfunc_decl_hash): Likewise.
14282         * varasm.c (emutls_decl): Likewise.
14283
14284 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
14285
14286         * c-decl.c: Don't include gimple.h.
14287         (merge_decls): Do not copy gimple_body.
14288
14289 2010-05-15  Jason Merrill  <jason@redhat.com>
14290
14291         * c.opt: Add -fnothrow-opt.
14292
14293 2010-05-15  Jan Hubicka  <jh@suse.cz>
14294
14295         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
14296         analyzed.
14297         * passes.c (ipa_write_summaries): Write all analyzed nodes.
14298
14299 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
14300
14301         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
14302         * Makefile.in: Add it.
14303         Fix all other Makefile dependencies for changes below.
14304         * tree.h: Include it instead of defining VEC primitives here.
14305         * gimple.h: Likewise.
14306         * rtl.h: Likewise.
14307         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
14308         * except.h: Include vecir.h, break dependence on tree.h.
14309
14310         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
14311         Move from here...
14312         * tree-iterator.c: ...to here.
14313         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
14314
14315         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
14316         tm_p.h.
14317         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
14318         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
14319         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
14320         tree-mudflap.h, and target.h.
14321         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
14322         predict.h, tree-inline.h, gimple.h, and langhooks.h.
14323         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
14324         Add FIXME for why gimple.h is still included (should be unnecessary
14325         since GCC 4.5 gimplification unit-at-a-time).
14326         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
14327         * c-pragma.c: Add FIXME for why function.h needs to be included just
14328         for cfun, at front-end level.
14329         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
14330         Do not include ggc.h, but include vecprim.h for VEC(char).
14331         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
14332         Explain why target.h is included.
14333         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
14334         Explain why gimple.h is included.
14335         * c-ppoutput.c: Do not include tm.h.
14336         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
14337         * c-parses.c: Explain why rtl.h is included, and that this (and only
14338         this) is also why tm.h must be included.
14339         Do not include except.h.
14340         * c-lang.c: Do not include ggc.h.
14341
14342 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
14343
14344         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
14345
14346 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
14347
14348         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
14349         unions by default if those structs and unions have no tags.  Do
14350         not condition anonymous struct and unions handling on flag_iso.
14351         Allow anonymous structs and unions for C1X.
14352         (finish_struct): Do not diagnose lack of named fields when
14353         anonymous structs and unions present for C1X.  Accept flexible
14354         array members in structure with anonymous structs or unions but no
14355         directly named fields.
14356         * doc/extend.texi (Unnamed Fields): Update.
14357
14358 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
14359
14360         * gimple.h (compare_field_offset): Rename into...
14361         (gimple_compare_field_offset): ...this.
14362         * gimple.c (compare_field_offset): Rename into...
14363         (gimple_compare_field_offset): ...this.  Compare the full access if
14364         the offset is self-referential.
14365         (gimple_types_compatible_p): Adjust for above renaming.
14366         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
14367         DECL_NONADDRESSABLE_P flag of fields before merging them.
14368
14369 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
14370
14371         * tree.h (ctor_to_list): Delete.
14372         * tree.c (ctor_to_list): Delete.
14373
14374 2010-05-15  Jan Hubicka  <jh@suse.cz>
14375
14376         * ipa-reference.c: Include toplev.h
14377         (is_proper_for_analysis): Only add to all_module_statics
14378         if it is allocated.
14379         (write_node_summary_p, stream_out_bitmap,
14380         ipa_reference_write_optimization_summary,
14381         ipa_reference_read_optimization_summary): New.
14382         (struct ipa_opt_pass_d pass_ipa_reference): Add
14383         optimization summary streaming.
14384         * lto-cgraph.c (referenced_from_this_partition_p,
14385         reachable_from_this_partition_p): New functions.
14386         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
14387         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
14388         * opts.c (decode_options): Enable ipa_reference.
14389         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
14390         * lto-streamer.h (referenced_from_this_partition_p,
14391         reachable_from_this_partition_p): Declare.
14392
14393 2010-05-15  Richard Guenther  <rguenther@suse.de>
14394
14395         PR tree-optimization/44038
14396         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
14397         taking the address of a V_C_E of a constant.
14398
14399 2010-05-14  Jan Hubicka  <jh@suse.cz>
14400
14401         * tree.h (memory_identifier_string): Remove.
14402         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
14403         (ipa_reference_global_vars_info_d): Remove statics_not_read and
14404         statics_not_written.
14405         (ipa_reference_optimization_summary_d): New structure.
14406         (ipa_reference_optimization_summary_t): New type and vector.
14407         (ipa_reference_vars_info_d): Embedd structures instead of using
14408         pointers.
14409         (reference_vars_to_consider): Remove out of GGC space.
14410         (module_statics_escape): Remove.
14411         (global_info_obstack): Rename to ...
14412         (optimization_summary_obstack): ... this one.
14413         (initialization_status_t): Remove.
14414         (memory_identifier_string): Remove.
14415         (get_reference_vars_info): Fix indenting.
14416         (set_reference_vars_info): Likewise.
14417         (get_reference_optimization_summary): New.
14418         (set_reference_optimization_summary): New.
14419         (get_global_reference_vars_info): Remove.
14420         (ipa_reference_get_read_global): Remove.
14421         (ipa_reference_get_written_global): Remove.
14422         (ipa_reference_get_not_read_global): Update.
14423         (ipa_reference_get_not_written_global): Update.
14424         (is_proper_for_analysis): Outlaw addressable.
14425         (propagate_bits): Update for new datastructures.
14426         (analyze_variable): Remove.
14427         (init_function_info): Update for new datastructures.
14428         (clean_function_local_data): Remove.
14429         (clean_function): Remove.
14430         (copy_global_bitmap): Use optimizations_summary_obstack.
14431         (duplicate_node_data): Duplicate optimization summary only.
14432         (remove_node_data): Remove optimization summary only.
14433         (generate_summary): Do not analyze variables; do not compute
14434         module_statics_escape; do not prune solutions by it.
14435         (read_write_all_from_decl): Fix typos in comments.
14436         (propagate): Doscover readonly and nonaddressable first;
14437         update for new datastructures; share global bitmaps.
14438         * ipa-reference.h (ipa_reference_get_read_global,
14439         ipa_reference_get_written_global): Remove.
14440         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
14441         * Makefile.in: Remove ipa-refereference from GT files.
14442
14443 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
14444
14445         PR debug/44112
14446         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
14447         for all SYMBOL_REF_DECLs.
14448
14449 2010-05-14  Jan Hubicka  <jh@suse.cz>
14450
14451         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
14452         (varpool_all_refs_explicit_p): New inline function.
14453         * ipa-reference.c: Update comment.
14454         (module_statics_written): Remove.
14455         (get_static_decl): Remove.
14456         (ipa_init): Do not initialize module_statics_written.
14457         (analyze_function): Likewise.
14458         (generate_summary): Likewise; do not compute module_statics_readonly
14459         and do not update variable flags.
14460         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
14461         * ipa.c: Inlucde flags.h
14462         (cgraph_local_node_p): New.
14463         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
14464         promote functions to local.
14465         (ipa_discover_readonly_nonaddressable_vars): New function.
14466         (function_and_variable_visibility): Use cgraph_local_node_p.
14467         * varpool.c (varpool_finalize_decl): Set force_output for
14468         DECL_PRESERVE_P vars.
14469
14470 2010-05-14  Jan Hubicka  <jh@suse.cz>
14471
14472         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
14473
14474 2010-05-14  Richard Guenther  <rguenther@suse.de>
14475
14476         PR tree-optimization/44119
14477         * tree-ssa-pre.c (eliminate): Properly mark replacement of
14478         a PHI node necessary.
14479
14480 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
14481
14482         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
14483
14484 2010-05-14  Jason Merrill  <jason@redhat.com>
14485
14486         PR c++/44127
14487         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
14488         (gimple_call_set_nothrow): New.
14489         * gimple.c (gimple_build_call_from_tree): Call it.
14490         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
14491
14492         PR c++/44127
14493         * gimplify.c (gimplify_seq_add_stmt): No longer static.
14494         * gimple.h: Declare it.
14495         * gimple.c (gimple_build_eh_filter): No ops.
14496
14497 2010-05-14  Jan Hubicka  <jh@suse.cz>
14498
14499         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
14500         nodes already in queue.
14501         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
14502         re-enqueueing node.
14503
14504 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
14505
14506         PR debug/44136
14507         * cfgexpand.c (expand_debug_expr): If non-memory op0
14508         has BLKmode, return NULL.
14509
14510 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
14511
14512         * config.gcc: Add support for --with-cpu option for bdver1.
14513         * config/i386/i386.h (TARGET_BDVER1): New macro.
14514         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
14515         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
14516         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
14517         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
14518         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
14519         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
14520         (processor_type): Add PROCESSOR_BDVER1.
14521         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
14522         processor_type in config/i386/i386.h.
14523         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
14524         movaps <reg, reg> instead of movapd <reg, reg> when replacing
14525         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
14526         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
14527         to emit packed xor instead of packed double/packed integer
14528         xor for SSE and AVX when moving a zero value.
14529         * config/i386/sse.md: Add check for
14530         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
14531         movapd/movdqa for SSE and AVX.
14532         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
14533         single logical operations i.e and, or and xor instead of packed double
14534         logical operations for SSE and AVX.
14535         * config/i386/i386-c.c (ix86_target_macros_internal):
14536         Add PROCESSOR_BDVER1.
14537         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
14538         (has_fma4, has_xop): New.
14539         * config/i386/i386.c (bdver1_cost): New variable.
14540         (m_BDVER1): New macro.
14541         (m_AMD_MULTIPLE): Add m_BDVER1.
14542         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
14543         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
14544         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
14545         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
14546         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
14547         x86_tune_sse_partial_reg_dependency,
14548         x86_tune_sse_unaligned_load_optimal,
14549         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
14550         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
14551         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
14552         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
14553         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
14554         Enable/disable for bdver1.
14555         (processor_target_table): Add bdver1_cost.
14556         (cpu_names): Add bdver1.
14557         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
14558          processor_alias_table.
14559         (ix86_expand_vector_move_misalign): Change.
14560         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
14561         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
14562         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
14563         of movupd/movdqu for SSE and AVX.
14564         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
14565         (ix86_tune_adjust_cost): Add code for bdver1.
14566         (standard_sse_constant_opcode): Add check for
14567         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
14568         of packed double xor for SSE and AVX.
14569
14570 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
14571
14572         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
14573         result to unsigned.
14574
14575 2010-05-14  Tristan Gingold  <gingold@adacore.com>
14576
14577         * toplev.c (default_debug_hooks): Remove this variable.
14578         (process_options): Remove assignments to default_debug_hooks.
14579
14580 2010-05-14  Martin Jambor  <mjambor@suse.cz>
14581
14582         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
14583         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
14584         * langhooks.h (struct lang_hooks_for_decls): Removed field
14585         fold_obj_type_ref.
14586         * tree.c (free_lang_data): Remove assignment to
14587         lang_hooks.fold_obj_type_ref.
14588         * tree.def (OBJ_TYPE_REF): Update comment.
14589
14590 2010-05-14  Richard Guenther  <rguenther@suse.de>
14591
14592         PR tree-optimization/44124
14593         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
14594
14595 2010-05-14  Alan Modra  <amodra@gmail.com>
14596
14597         PR target/44075
14598         * config/rs6000/rs6000.c (struct machine_function): Reorder
14599         fields for better packing.  Add lr_save_state.
14600         (rs6000_ra_ever_killed): Return lr_save_state if set.
14601         (rs6000_emit_eh_reg_restore): Set lr_save_state.
14602
14603 2010-05-13  Jan Hubicka  <jh@suse.cz>
14604
14605         * varpool.c (decide_is_variable_needed): Drop code checking
14606         TREE_SYMBOL_REFERENCED.
14607
14608 2010-05-13  Jan Hubicka  <jh@suse.cz>
14609
14610         * final.c (output_addr_const): Do not call mark_decl_referenced.
14611         * cgraphunit.c (process_function_and_variable_attributes): Use
14612         mark_needed_node dirrectly.
14613         (assemble_thunk): Do not call mark_decl_referenced.
14614
14615 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
14616
14617         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
14618
14619 2010-05-13  Jeff Law  <law@redhat.com>
14620
14621         * ira-conflicts.c (print_allocno_conflicts): New function broken out
14622         from...
14623         (print_conflicts): Call print_allocno_conflicts.
14624
14625 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
14626
14627         PR debug/44104
14628         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
14629         if it is NULL.
14630
14631 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
14632
14633         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
14634         t-mingw-w64 or t-mingw-w32 for multilib configuration.
14635         * config/i386/t-mingw-w32: New.
14636         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
14637
14638 2010-05-13  Martin Jambor  <mjambor@suse.cz>
14639
14640         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
14641         gimple-fold.c).
14642         * gimple-fold.c (get_base_binfo_for_type): New function.
14643         (gimple_get_relevant_ref_binfo): Likewise.
14644         (gimple_fold_obj_type_ref_known_binfo): Likewise.
14645         (gimple_fold_obj_type_ref): Likewise.
14646         (fold_gimple_call): Simplify condition for folding virtual calls
14647         and call gimple_fold_obj_type_ref.
14648         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
14649         (gimple_fold_obj_type_ref_known_binfo): Likewise.
14650
14651 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
14652
14653         * config/rs6000/rs6000-protos.h
14654         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
14655         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
14656         (rs6000_debug_mode_dependent_address)
14657         (rs6000_mode_dependent_address_ptr): Likewise.
14658
14659 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
14660
14661         PR debug/43983
14662         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
14663         by SRA.
14664         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
14665         * tree-sra.c (create_access_replacement): Call unshare_expr before
14666         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
14667         * dwarf2out.c: Include tree-flow.h.
14668         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
14669         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
14670         Handle DW_OP_bit_piece.
14671         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
14672         construct_piece_list, adjust_piece_list): New functions.
14673         (add_var_loc_to_decl): Handle SRA optimized variables.
14674         Adjust for var_loc_note to loc field renaming.
14675         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
14676         in VAR_LOCATION note.
14677         (new_loc_descr_op_bit_piece): New function.
14678         (dw_sra_loc_expr): New function.
14679         (dw_loc_list): Use it.  Don't handle the last range after the
14680         loop, handle it inside of the loop.  Adjust for var_loc_note
14681         to loc field renaming.
14682         (add_location_or_const_value_attribute): Only special case
14683         single entry loc lists if loc is NOTE_P.  Adjust for
14684         var_loc_note to loc field renaming.
14685         (dwarf2out_var_location): Don't set newloc->var_loc_note
14686         and newloc->next here.
14687
14688 2010-05-12  Jan Hubicka  <jh@suse.cz>
14689
14690         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
14691         flag.
14692         * cgraph.h (cgraph_only_called_directly_p,
14693         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
14694         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
14695         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
14696         (assemble
14697         * ipa.c (cgraph_remove_unreachable_nodes): Use
14698         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
14699         flags.
14700         * tree-inline.c (copy_bb): Check address_taken flag.
14701         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
14702         externally_visible flag.
14703
14704 2010-05-12  Jason Merrill  <jason@redhat.com>
14705
14706         PR bootstrap/44048
14707         PR target/44099
14708         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
14709         * sdbout.c (plain_type_1): Likewise.
14710         * dwarf2out.c (is_base_type): Likewise.
14711         (gen_type_die_with_usage): Likewise.  Generate
14712         DW_TAG_unspecified_type for any LANG_TYPE.
14713
14714 2010-05-12  Jan Hubicka  <jh@suse.cz>
14715
14716         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
14717         indrect edges too.
14718         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
14719         (cgraph_clone_edge): Update.
14720         (cgraph_node_remove_callees): Remove indirect calls too.
14721         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
14722         (cgraph_create_indirect_edge): Update prototype.
14723         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
14724         is_proper_for_analysis.
14725         (add_new_function, visited_nodes, function_insertion_hook_holder,
14726         get_local_reference_vars_info, mark_address_taken, mark_address,
14727         mark_load, mark_store, check_asm_memory_clobber, check_call,
14728         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
14729         (ipa_init): Do not initialize visited_nodes;
14730         function_insertion_hook_holder.
14731         (analyze_variable): Rewrite.
14732         (analyze_function): Rewrite.
14733         (copy_local_bitmap): Remove.
14734         (duplicate_node_dat): Do not duplicate local info.
14735         (generate_summary): Simplify to only walk cgraph.
14736         (write_node_summary_p, ipa_reference_write_summary,
14737         ipa_reference_read_summary): Remove.
14738         (propagate): Do not remove function insertion;
14739         generate summary.
14740         (pass_ipa_reference): NULLify summary handling fields.
14741         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
14742         (input_edge): Input ecf_flags.
14743         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
14744         (update_indirect_edges_after_inlining): Ignore edges with unknown
14745         param.
14746
14747 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
14748
14749         * implicit-zee.c: New file.
14750         * tree-pass.h (pass_implicit_zee): Declare.
14751         * passes.c (init_optimization_passes): Add zee pass.
14752         * common.opt (fzee): New flag.
14753         * timevar.def (TV_ZEE): Define.
14754         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
14755         and beyond.
14756         * Makefile.in (implicit-zee.o): Add new build file.
14757
14758 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
14759             Nathan Froyd  <froydnj@codesourcery.com>
14760
14761         * c-common.c (sync_resolve_params): Remove write-only variable.
14762
14763 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
14764
14765         * target.h (struct gcc_target): Add mode_dependent_address_p field.
14766         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
14767         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
14768         * targhooks.c (default_mode_dependent_address_p): New function.
14769         * targhooks.h (default_mode_dependent_address_p): Declare function.
14770         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
14771         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
14772         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
14773         target hook. Change return type to bool.
14774         * recog.h (mode_dependent_address_p): Change return type to bool.
14775
14776 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
14777             Nathan Froyd  <froydnj@codesourcery.com>
14778
14779         * tree-mudflap.c (build_function_type_0, build_function_type_1,
14780         build_function_type_2, build_function_type_3): Remove.
14781         (mudflap_init): Use build_function_type_list.
14782
14783 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
14784             Nathan Froyd  <froydnj@codesourcery.com>
14785
14786         * coverage.c (build_fn_info_value): Call build_constructor instead of
14787         build_constructor_from_list.
14788         (build_ctr_info_value): Likewise.
14789         (build_gcov_info): Likewise.
14790
14791 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
14792
14793         * tree.c (build_constructor): Compute TREE_CONSTANT for the
14794         resultant constructor.
14795         (build_constructor_single): Don't set TREE_CONSTANT.
14796         (build_constructor_from_list): Don't compute TREE_CONSTANT.
14797
14798 2010-05-12  Jan Hubicka  <jh@suse.cz>
14799
14800         * cgraph.h (struct varpool_node): Add aux.
14801         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
14802         * varpool.c (varpool_remove_node): Do not remove initializer.
14803         (varpool_reset_queue): Export.
14804         (varpool_finalize_decl): Volatile vars are forced to be output.
14805         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
14806         replaced decl.
14807         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
14808         process_references, varpool_can_remove_if_no_refs): New functions.
14809         (cgraph_remove_unreachable_nodes): Handle variables too.
14810
14811 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
14812
14813         PR target/44088
14814         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
14815
14816 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
14817
14818         PR middle-end/44085
14819         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
14820         change value of ORT_TASK.
14821         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
14822         (omp_notice_threadprivate_variable): New function.
14823         (omp_notice_variable): Call it for threadprivate variables.
14824         If enclosing ctx is a task, print enclosing task rather than
14825         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
14826         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
14827         if task has untied clause.
14828
14829         PR debug/42278
14830         * dwarf2out.c (base_type_die): Don't add name attribute here.
14831         (modified_type_die): Instead of sizetype use
14832         its underlying original type.  If a DW_TAG_base_type doesn't
14833         have name added, add __unknown__.
14834         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
14835         always call force_type_die instead.
14836
14837 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
14838
14839         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
14840         for __stack_chk_guard.
14841
14842 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
14843
14844         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
14845         don't call start_source_file debug hook here...
14846         (finish_options): ... but here, after outputting predefined and
14847         command line defines and undefs.
14848
14849         PR middle-end/44071
14850         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
14851         no fallthru edge.
14852         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
14853         optimizing away empty bb with no successors, move over its
14854         footer chain to fallthru predecessor.
14855         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
14856         (rtl_split_edge): For asm goto call patch_jump_insn even if
14857         splitting fallthru edge.
14858
14859         PR c++/44059
14860         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
14861         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
14862         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
14863         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
14864         on DW.ref.* decls.
14865
14866         PR c++/44062
14867         * c-parser.c (c_parser_expression): Mark LHS of a comma
14868         expression as read if it is a decl, handled component or
14869         COMPOUND_EXPR with that on the RHS.
14870         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
14871         if it is a decl or handled component.
14872
14873 2010-05-11  Jan Hubicka  <jh@suse.cz>
14874
14875         * lto-symtab.c (lto_symtab_free): New function.
14876         * lto-streamer.h (lto_symtab_free): Declare.
14877
14878 2010-05-11  Jan Hubicka  <jh@suse.cz>
14879
14880         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
14881         that if function is needed it is reachable.
14882         (lto_output_node): See if it the function is reachable or referenced.
14883         (output_cgraph): Update call of lto_output_node.
14884         * lto-streamer.h (reachable_from_other_partition_p): Declare.
14885
14886 2010-05-11  Jan Hubicka  <jh@suse.cz>
14887
14888         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
14889         Mark as used.
14890
14891 2010-05-11  Jan Hubicka  <jh@suse.cz>
14892
14893         PR tree-optimize/44063
14894         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
14895         queue.
14896         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
14897         limits.
14898         (estimate_function_body_sizes): Compute sizes even when disregarding.
14899
14900 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
14901
14902         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
14903
14904 2010-05-11  Jan Hubicka  <jh@suse.cz>
14905
14906         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
14907         into every boundary.
14908
14909 2010-05-11  Jan Hubicka  <jh@suse.cz>
14910
14911         * matrix-reorg.c (matrix_reorg): Rebuild edges.
14912
14913 2010-05-11  Jan Hubicka  <jh@suse.cz>
14914
14915         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
14916         lto_streamer_cache_delete): Put nodes into heap.
14917         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
14918         heap.
14919
14920 2010-05-11  Jan Hubicka  <jh@suse.cz>
14921
14922         * cgraphbuild.c (cgraph_rebuild_references): New.
14923         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
14924         out extern inlines.
14925         * cgraph.h (cgraph_rebuild_references): Declare.
14926         * tree-inline.c (tree_function_versioning): Use it.
14927         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
14928
14929 2010-05-11  Jan Hubicka  <jh@suse.cz>
14930
14931         * cgraph.c: Include ipa-utils.h
14932         (cgraph_create_virtual_clone): Update references.
14933         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
14934
14935 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
14936
14937         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
14938         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
14939         cache size.
14940
14941 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
14942
14943         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
14944
14945 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
14946
14947         * gcc.c (execute): For -### don't quote arguments that
14948         contain just alphanumerics and _/-. characters.
14949         * doc/invoke.texi: Document that change for -###.
14950
14951         PR debug/44023
14952         * df-problems.c (struct dead_debug): Add to_rescan field.
14953         (dead_debug_init): Clear to_rescan field.
14954         (dead_debug_finish): Rescan all debug insns in to_rescan
14955         bitmap and free the bitmap.
14956         (dead_debug_insert_before): Instead of rescanning debug insns
14957         immediately queue their rescanning until dead_debug_finish.
14958         (df_note_bb_compute): After dead_debug_add do continue instead
14959         of break.
14960
14961 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
14962
14963         PR debug/44028
14964         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
14965         clear also INSN_REG_USE_LIST.
14966
14967 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14968
14969         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
14970
14971 2010-05-10  Jan Hubicka  <jh@suse.cz>
14972
14973         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
14974         commited change.
14975
14976 2010-05-10  Jan Hubicka  <jh@suse.cz>
14977
14978         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
14979         Allocate encoders.
14980         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
14981         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
14982         (lto_streamer_cache_create): Init alloc pool.
14983         (lto_streamer_cache_delete): Free alloc pool.
14984         * lto-streamer.h: Include alloc pool.
14985         (lto_streamer_cache_d): Use alloc pool.
14986         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
14987
14988 2010-05-10  Jan Hubicka  <jh@suse.cz>
14989
14990         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
14991         * cgraphbuild.c: Include except.h
14992         (record_type_list, record_eh_tables): New function.
14993         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
14994
14995 2010-05-10  Jan Hubicka  <jh@suse.cz>
14996
14997         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
14998         __frame_dummy_init_array_entry, force_to_data): Attribute as used
14999         rather than unused.
15000
15001 2010-05-10  Michael Matz  <matz@suse.de>
15002
15003         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
15004         (can_reassociate_p): Use FLOAT_TYPE_P.
15005         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
15006         (vect_force_simple_reduction): ... this.
15007         * tree-parloops.c (gather_scalar_reductions): Use
15008         vect_force_simple_reduction.
15009         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
15010         vect_is_simple_reduction, add modify argument, if true rewrite
15011         "a-b" into "a+(-b)".
15012         (vect_is_simple_reduction, vect_force_simple_reduction): New
15013         functions.
15014         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
15015
15016 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15017             Vladimir Makarov  <vmakarov@redhat.com>
15018
15019         PR rtl-optimization/44012
15020         * ira-build.c (remove_unnecessary_allocnos): Nullify
15021         regno_allocno_map of the removed allocno.
15022
15023 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15024
15025         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
15026         to /dev/null.
15027         * configure: Regenerate.
15028
15029 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15030
15031         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
15032         unused.
15033         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
15034         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
15035         support in Sun ld.
15036         * configure: Regenerate.
15037
15038 2010-05-10  Richard Guenther  <rguenther@suse.de>
15039
15040         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
15041         marked if the entry identifier is marked.
15042
15043 2010-05-10  Richard Guenther  <rguenther@suse.de>
15044
15045         * c-common.c (struct c_common_attributes): Add fnspec attribute.
15046         (handle_fnspec_attribute): New function.
15047         * gimple.h (gimple_call_return_flags): Declare.
15048         (gimple_call_arg_flags): Likewise.
15049         * gimple.c (gimple_call_arg_flags): New function.
15050         (gimple_call_return_flags): Likewise.
15051         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
15052         New argument flags.
15053         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
15054         return value flags.
15055         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
15056         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
15057         main work to ...
15058         (make_heapvar_for): ... this new function.
15059         (handle_rhs_call): Handle fnspec attribute argument specifiers.
15060         (handle_lhs_call): Likewise.
15061         (find_func_aliases): Adjust.
15062
15063 2010-05-10  Richard Guenther  <rguenther@suse.de>
15064
15065         PR tree-optimization/44050
15066         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
15067
15068 2010-05-10  Wei Guozhi  <carrot@google.com>
15069
15070         PR target/42879
15071         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
15072
15073 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
15074
15075         PR c/10676
15076         * c-typeck.c (lookup_field): Take a type directly.  Update
15077         recursive calls.
15078         (build_component_ref): Update call to lookup_field.
15079         (set_init_label): Use lookup_field to find initialized field.
15080         Handle returned list of fields like a sequence of designators.
15081
15082 2010-05-09  Richard Guenther  <rguenther@suse.de>
15083
15084         PR middle-end/44024
15085         * fold-const.c (tree_single_nonzero_warnv_p): Properly
15086         handle &FUNCTION_DECL.
15087
15088 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
15089
15090         PR c/4784
15091         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
15092         structures and unions recursively.
15093         (detect_field_duplicates): Move duplicate detection with a hash to
15094         detect_field_duplicates_hash.  Always use a hash if anonymous
15095         structures or unions are present.
15096         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
15097         give errors.
15098
15099 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
15100
15101         PR target/44046
15102         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
15103         detect Atom, Core 2 and Core i7.
15104
15105 2010-05-09  Richard Guenther  <rguenther@suse.de>
15106
15107         * gcc.c (store_arg): Handle temporary file deletion for
15108         joined arguments.
15109
15110 2010-05-09  Richard Guenther  <rguenther@suse.de>
15111
15112         PR middle-end/44043
15113         * ipa-inline.c (estimate_function_body_sizes): Return after
15114         disregarding inline limits.
15115
15116 2010-05-09  Richard Guenther  <rguenther@suse.de>
15117
15118         * gcc.c (store_arg): Revert last change.
15119
15120 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
15121
15122         PR middle-end/28685
15123         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
15124         (optimize_ops_list): Call it.
15125
15126 2010-05-08  Richard Guenther  <rguenther@suse.de>
15127
15128         PR tree-optimization/44030
15129         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
15130         NECESSARY flag if we propagate from a inserted expression.
15131
15132 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
15133
15134         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
15135         domain types as equal if they are both PLACEHOLDER_EXPRs.
15136
15137 2010-05-08  Richard Guenther  <rguenther@suse.de>
15138
15139         * lto-wrapper.c (run_gcc): Remove linker output from
15140         command line for LTRANS invocation.
15141
15142 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
15143
15144         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
15145         lto-macho as lto_binary_reader.
15146         * target.h (struct gcc_target): New hooks lto_start and lto_end.
15147         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
15148         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
15149         in lto_start and lto_end calls.
15150         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
15151         magic numbers.
15152         (scan_prog_file): Update is_elf_or_coff call.
15153         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
15154
15155         * collect2.c (main): Fix enum comparison.
15156
15157         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
15158         Add prototypes.
15159         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
15160         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
15161         and TARGET_ASM_LTO_END.
15162         * darwin.c: Include obstack.h and lto-streamer.h.
15163         (lto_section_names_offset, lto_section_names_obstack,
15164         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
15165         global variables.
15166         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
15167         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
15168         to a temporary file.
15169         (darwin_asm_lto_end): New function.  Restore asm_out_file.
15170         (darwin_asm_named_section): For LTO sections, replace the name with
15171         the offset of the section name in a string table, and build this
15172         table.
15173         (darwin_file_start): Initialize global vars for LTO support.
15174         (darwin_file_end): If output to asm_out_file was redirected, append it
15175         to the proper asm_out_file here.  Add the section names section.
15176
15177 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
15178
15179         * c-pragma.c (pending_weak_d, pending_weak): New.
15180         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
15181         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
15182         handle_pragma_weak): Update the uses of pending_weaks.
15183
15184 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15185
15186         PR documentation/44016
15187         * doc/standards.texi (Standards): Link to unversioned
15188         cxx0x_status.html page.
15189
15190 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
15191
15192         PR target/43708
15193         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
15194         in addition to TREE_USED, to avoid "set but unused" warnings.
15195
15196 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
15197
15198         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
15199         (is_loop_prefetching_profitable): Do not insert prefetches
15200         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
15201         times the prefetch ahead distance.
15202
15203 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
15204
15205         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
15206         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
15207         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
15208         the unroll_factor.
15209
15210 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
15211
15212         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
15213         a diagnostic info when the insn-to-mem ratio is too small.
15214
15215 2010-05-07  Richard Guenther  <rguenther@suse.de>
15216
15217         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
15218         the linker plugin.
15219         (store_arg): Queue temp_filename for deletion instead of
15220         the whole argument.
15221
15222 2010-05-07  Richard Guenther  <rguenther@suse.de>
15223
15224         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
15225         (run_gcc): Handle LTRANS phase invocation.
15226         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
15227
15228 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
15229
15230         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
15231         this is also meaningful on PARM_DECLs and RESULT_DECLs.
15232
15233 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15234
15235         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
15236
15237 2010-05-07  Richard Guenther  <rguenther@suse.de>
15238
15239         PR tree-optimization/44020
15240         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
15241         code when PRE is not yet initialized.
15242
15243 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15244
15245         * config/mips/dbxmdebug.h: Remove.
15246         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
15247
15248 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
15249
15250         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
15251         with null pointer and also warn about ordered comparison of zero with
15252         pointer if -Wextra.
15253
15254 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15255
15256         * graphite-blocking.c
15257         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
15258         * graphite-clast-to-gimple.c
15259         (clast_to_gcc_expression): Same.
15260         (precision_for_value): Same.
15261         (precision_for_interval): Same.
15262         (gcc_type_for_interval): Same.
15263         (graphite_create_new_guard): Same.
15264         (compute_bounds_for_level): Same.
15265         (graphite_create_new_loop_guard): Same.
15266         * graphite-interchange.c
15267         (build_linearized_memory_access): Same.
15268         (pdr_stride_in_loop): Same.
15269         (memory_strides_in_loop_1): Same.
15270         (memory_strides_in_loop): Same.
15271         (extend_scattering): Same.
15272         (psct_scattering_dim_for_loop_depth): Same.
15273         (pbb_number_of_iterations): Same.
15274         * graphite-poly.h
15275         (debug_iteration_domains): Same.
15276         * graphite-ppl.c
15277         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
15278         (ppl_set_inhomogeneous_gmp): Same.
15279         (ppl_strip_loop): Same.
15280         (ppl_lexico_compare_linear_expressions): Same.
15281         (ppl_read_polyhedron_matrix): Same.
15282         (ppl_max_for_le_pointset): Same.
15283         * graphite-ppl.h
15284         (ppl_read_polyhedron_matrix): Same.
15285         (tree_int_to_gmp): Same.
15286         (gmp_cst_to_tree): Same.
15287         (ppl_set_inhomogeneous): Same.
15288         (ppl_set_inhomogeneous_tree): Same.
15289         (ppl_set_coef): Same.
15290         (ppl_set_coef_tree): Same.
15291         * graphite-sese-to-poly.c
15292         (build_pbb_scattering_polyhedrons): Same.
15293         (build_scop_scattering): Same.
15294         (scan_tree_for_params_right_scev): Same.
15295         (scan_tree_for_params): Same.
15296         (find_params_in_bb): Same.
15297         (find_scop_parameters): Same.
15298         (add_upper_bounds_from_estimated_nit): Same.
15299         (build_loop_iteration_domains): Same.
15300         (add_condition_to_domain): Same.
15301         (pdr_add_memory_accesses): Same.
15302
15303 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15304
15305         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
15306         CLooG's value_* macros to their respective mpz_* counterparts.
15307         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
15308         (graphite_create_new_loop_guard): Same.
15309         * graphite-interchange.c (build_linearized_memory_access): Same.
15310         (pdr_stride_in_loop): Same.
15311         (memory_strides_in_loop_1): Same.
15312         (1st_interchange_profitable_p): Same.
15313         * graphite-poly.c (extend_scattering): Same.
15314         (psct_scattering_dim_for_loop_depth): Same.
15315         (pbb_number_of_iterations): Same.
15316         (pbb_number_of_iterations_at_time): Same.
15317         * graphite-poly.h (new_1st_loop): Same.
15318         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
15319         (oppose_constraint): Same.
15320         (insert_constraint_into_matrix): Same.
15321         (ppl_set_inhomogeneous_gmp): Same.
15322         (ppl_set_coef_gmp): Same.
15323         (ppl_strip_loop): Same.
15324         (ppl_lexico_compare_linear_expressions): Same.
15325         (ppl_max_for_le_pointset): Same.
15326         (ppl_min_for_le_pointset): Same.
15327         (ppl_build_realtion): Same.
15328         * graphite-ppl.h (gmp_cst_to_tree): Same.
15329         (ppl_set_inhomogeneous): Same.
15330         (ppl_set_inhomogeneous_tree): Same.
15331         (ppl_set_coef): Same.
15332         (ppl_set_coef_tree): Same.
15333         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
15334         (build_scop_scattering): Same.
15335         (add_value_to_dim): Same.
15336         (scan_tree_for_params_right_scev): Same.
15337         (scan_tree_for_params_int): Same.
15338         (scan_tree_for_params): Same.
15339         (find_params_in_bb): Same.
15340         (find_scop_parameters): Same.
15341         (add_upper_bounds_from_estimated_nit): Same.
15342         (build_loop_iteration_domains): Same.
15343         (create_linear_expr_from_tree): Same.
15344         (add_condition_to_domain): Same.
15345         (pdr_add_memory_accesses): Same.
15346
15347 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
15348             Jason Merrill  <jason@redhat.com>
15349
15350         * c-common.c (c_common_reswords): Add nullptr.
15351         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
15352         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
15353         (gen_type_die_with_usage): Likewise.
15354         * dbxout.c (dbxout_type): Likewise.
15355         * sdbout.c (plain_type_1): Likewise.
15356
15357 2010-05-06  Jason Merrill  <jason@redhat.com>
15358
15359         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
15360         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
15361         ret appropriately.
15362         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
15363
15364         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
15365         stripping WITH_SIZE_EXPR.
15366         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
15367         change.
15368
15369 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15370
15371         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
15372         list of obsolete configurations.
15373         Disabled check for obsolete configurations.
15374         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
15375         Removed support for previous versions.
15376         * config/mips/iris.h: Removed.
15377         * config/mips/iris5.h: Removed.
15378         * config/mips/iris6.h: Merged old iris.h contents.
15379         (TARGET_IRIX): Removed.
15380         (DRIVER_SELF_SPECS): Removed mabi=32.
15381         (IDENT_ASM_OP): Removed undef.
15382         (STARTFILE_SPEC): Removed mabi=32.
15383         (ENDFILE_SPEC): Likewise.
15384         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
15385         (MACHINE_TYPE): Update for IRIX 6.5.
15386         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
15387         TARGET_IRIX by TARGET_IRIX6.
15388         (mips_file_start): Likewise.
15389         (mips_output_external): Remove IRIX 5/6 O32 support.
15390         (mips_output_function_prologue): Likewise.
15391         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
15392         TARGET_IRIX6.
15393         (TARGET_CPU_CPP_BUILTINS): Likewise.
15394         (TARGET_IRIX): Removed.
15395         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
15396         (MULTILIB_DIRNAMES): Removed 32.
15397         (MULTILIB_OSDIRNAMES): Removed ../lib.
15398         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
15399         (Specific, mips-sgi-irix5): Document removal.
15400         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
15401         Remove references to older IRIX 6 releases and the O32 ABI.
15402
15403 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
15404
15405         PR bootstrap/43994
15406         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
15407         instead of DF_REF_REAL_REG.
15408
15409 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
15410
15411         PR target/43888
15412         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
15413         handling to still return true for x64 targets.
15414
15415 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
15416
15417         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
15418
15419 2010-05-06  Jan Hubicka  <jh@suse.cz>
15420
15421         PR tree-optimization/43791
15422         * ipa-inline.c (update_caller_keys): Remove bogus
15423         disregard_inline_limits check.
15424
15425 2010-05-06  Michael Matz  <matz@suse.de>
15426
15427         PR tree-optimization/43984
15428         * tree-ssa-pre.c (inserted_phi_names): Remove.
15429         (inserted_exprs): Change to bitmap.
15430         (create_expression_by_pieces): Set bits, don't append to vector.
15431         (insert_into_preds_of_block): Don't handle inserted_phi_names.
15432         (eliminate): Don't look at inserted_phi_names, remove deleted
15433         insns from inserted_exprs.
15434         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
15435         (init_pre, fini_pre): Allocate and free bitmaps.
15436         (execute_pre): Insert insns on edges before elimination.
15437
15438 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
15439
15440         * tree.c (initializer_zerop): Handle STRING_CST.
15441
15442 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15443
15444         PR 40989
15445         * doc/invoke.texi (Wimplicit): Document as C only.
15446         * opts.c (common_handle_option): Add argument kind.
15447         (handle_option): Rename as read_cmdline_option. Factor out code to...
15448         (handle_option): ... here. New.
15449         (handle_options): Rename as read_cmdline_options.
15450         (decode_options): Update call.
15451         (set_option): Use option index instead of option pointer. Classify
15452         diagnostics correctly.
15453         (enable_warning_as_error): Call handle_option.
15454         * opts.h (set_option): Update declaration.
15455         (handle_option): Declare.
15456         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
15457         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
15458         * c-opts.c (set_Wimplicit): Delete.
15459         (c_family_lang_mask): New static constant.
15460         (c_common_handle_option): Add argument kind. Use handle_option
15461         instead of set_Wimplicit.
15462         (c_common_post_options): warn_implicit and warn_implicit_int
15463         are disabled by default.
15464         * c-common.c (warn_implicit): Do not define here.
15465         * c-common.h (warn_implicit): Do not declare here.
15466         (c_common_handle_option): Update declaration.
15467         * lto-opts.c (lto_reissue_options): Update call to set_option.
15468
15469 2010-05-06  Richard Guenther  <rguenther@suse.de>
15470
15471         PR tree-optimization/43571
15472         * domwalk.c (walk_dominator_tree): Walk the dominator
15473         sons in more optimal order.
15474
15475 2010-05-06  Richard Guenther  <rguenther@suse.de>
15476
15477         PR tree-optimization/43934
15478         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
15479         (stmt_cost): Likewise.
15480         (extract_true_false_args_from_phi): New helper.
15481         (determine_max_movement): For PHI nodes verify we can hoist them
15482         and compute their cost.
15483         (determine_invariantness_stmt): Handle PHI nodes.
15484         (move_computations_stmt): Likewise.  Hoist PHI nodes in
15485         if-converted form using COND_EXPRs.
15486         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
15487         (tree_ssa_lim): Likewise.
15488         * tree-flow.h (tree_ssa_lim): Adjust prototype.
15489         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
15490
15491 2010-05-06  Richard Guenther  <rguenther@suse.de>
15492
15493         PR tree-optimization/43987
15494         * tree-ssa-structalias.c (could_have_pointers): For possibly
15495         address-taken variables force pointers to be recorded.
15496         (create_variable_info_for_1): Likewise.
15497         (push_fields_onto_fieldstack): Pass in wheter all fields
15498         must have pointers.
15499         (find_func_aliases): Query types instead of vars whether
15500         they contain pointers where appropriate.
15501
15502 2010-05-06  Jan Hubicka  <jh@suse.cz>
15503
15504         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
15505         (record_reference, mark_address, mark_load, mark_store): Record
15506         references.
15507         (record_references_in_initializer): Update call of record_references.
15508         (rebuild_cgraph_edges): Remove all references before rebuiding.
15509         * cgraph.c (cgraph_create_node): Clear ref list.
15510         (cgraph_remove_node): Remove references.
15511         (dump_cgraph_node): Dump references.
15512         (cgraph_clone_node): Clone references.
15513         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
15514         (struct cgraph_node, varpool_node): Add ref_lst.
15515         * ipa-ref.c: New file.
15516         * ipa-ref.h: New file.
15517         * ipa-ref-inline.h: New file.
15518         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
15519         (referenced_from_other_partition_p): New function.
15520         (lto_output_varpool_node): Take set arugment; call
15521         referenced_from_other_partition.
15522         (lto_output_ref): New.
15523         (add_references): New.
15524         (output_refs): New.
15525         (output_cgraph): Compute boundary based on references; output refs.
15526         (output_varpool): Accept cgraph_node_set argument.
15527         (input_ref): New.
15528         (input_refs): New.
15529         (input_cgraph): Call input_refs.
15530         * lto-section-in.c (lto_section_name): Add refs.
15531         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
15532         (ipa-ref.o): New file.
15533         * varpool.c (varpool_node): Clear ipa ref list.
15534         (varpool_remove_node): Remove references.
15535         (dump_varpool_node): Dump references.
15536         (varpool_assemble_decl): Only compile finalized ones.
15537         (varpool_extra_name_alias): Initialize ref list.
15538         * lto-streamer.c (lto-get_section_name): Add .refs section.
15539         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
15540         (referenced_from_other_partition_p): Declared.
15541
15542 2010-05-06  Ira Rosen  <irar@il.ibm.com>
15543
15544         PR tree-optimization/43901
15545         * tree-vect-stmts.c (vectorizable_call): Assert that vector
15546         type is not NULL if it's transformation phase, and return
15547         FALSE if it's analysis.
15548         (vectorizable_conversion, vectorizable_operation,
15549         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
15550
15551 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
15552
15553         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
15554         Delete.
15555         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
15556         New define.
15557         * config/mips/mips-protos.h
15558         (mips_small_register_classes_for_mode_p): Delete prototype.
15559
15560 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
15561
15562         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
15563         * config/arm/arm.c (multiple_operation_profitable_p,
15564         compute_offset_order): New static functions.
15565         (load_multiple_sequence, store_multiple_sequence): Use them.
15566         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
15567         memory offsets, not register numbers.
15568         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
15569
15570 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
15571
15572         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
15573         (get_pending_sizes, put_pending_size, put_pending_sizes):
15574         Update the uses of pending_sizes.
15575         * c-decl.c (store_parm_decls): Likewise.
15576         * c-tree.h (struct c_arg_info): Likewise.
15577         * tree.h: Update the prototype for get_pending_sizes and
15578         put_pending_sizes.
15579
15580 2010-05-05  Jason Merrill  <jason@redhat.com>
15581
15582         PR debug/43370
15583         * c-common.c (handle_aligned_attribute): Respect
15584         ATTR_FLAG_TYPE_IN_PLACE.
15585
15586         PR testsuite/43758
15587         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
15588         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
15589         (TARGET_INITIALIZER): Use it.
15590         * c-common.c (attribute_takes_identifier_p): Call it.
15591         * c-common.h: Update prototype.
15592         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
15593         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
15594
15595 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
15596
15597         PR debug/43950
15598         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
15599         DW_ID_down_case for Fortran compilation units.
15600
15601 2010-05-05  Jan Hubicka  <jh@suse.cz>
15602
15603         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
15604         handle aliases.
15605
15606 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
15607
15608         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
15609         a variable-sized RESULT_DECL.
15610
15611 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
15612
15613         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
15614
15615 2010-05-05  Jason Merrill  <jason@redhat.com>
15616
15617         PR c++/43787
15618         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
15619         returns GS_OK.
15620         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
15621
15622 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
15623             Jakub Jelinek  <jakub@redhat.com>
15624
15625         PR debug/43478
15626         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
15627         (dead_debug_init, dead_debug_finish): New functions.
15628         (dead_debug_add, dead_debug_insert_before): Likewise.
15629         (df_note_bb_compute): Initialize a dead_debug object, add dead
15630         debug uses to it, insert debug bind insns before death insns,
15631         reset debug insns that refer to pending uses at the end.
15632         * rtl.h (make_debug_expr_from_rtl): New prototype.
15633         * varasm.c (make_debug_expr_from_rtl): New function.
15634
15635 2010-05-05  Jan Hubicka  <jh@suse.cz>
15636
15637         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
15638         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
15639         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
15640         lto_varpool_encoder_deref, lto_varpool_encoder_size,
15641         lto_varpool_encoder_encode_initializer_p,
15642         lto_set_varpool_encoder_encode_initializer): New functions.
15643         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
15644         call output_varpool.
15645         (input_varpool_node): Do not always set analyzed.
15646         (input_cgraph_1): Return vector of cgraph nodes.
15647         (input_varpool_1): Return vector of varpools.
15648         (input_cgraph): Free the vectors.
15649         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15650         output only initializers needed.
15651         (lto_output): Only call output_cgraph.
15652         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
15653         * lto-section-out.c (lto_new_out_decl_state): Initialize
15654         state->varpool_node_encoder.
15655         * lto-streamer.h (lto_varpool_encoder_d): New.
15656         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
15657         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
15658         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
15659         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
15660         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
15661         Declare.
15662         (output_varpool, input_varpool): Remove declarations.
15663
15664 2010-05-05  Jan Hubicka  <jh@suse.cz>
15665
15666         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
15667         with body can prevail.
15668
15669 2010-05-05  Jan Hubicka  <jh@suse.cz>
15670
15671         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
15672         size.
15673
15674 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15675
15676         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
15677
15678         * gengtype.h (erro_at_line): Constify pos argument.
15679
15680         * gengtype.c: Include hashtab.h.
15681         (enum gc_used): Document GC_MAYBE_POINTED_TO.
15682         (error_at_line): Constify pos argument.
15683         (do_typedef): Initialize p->opt field.
15684         (get_file_gtfilename): Fix comment typo.
15685         (struct walk_type_data): Constify line field.
15686         (get_output_file_for_structure): New function.
15687         (write_local_func_for_structure): Constify orig_s argument.
15688         Use get_output_file_for_structure.
15689         (write_func_for_structure): Use get_output_file_for_structure.
15690         (INDENT): New define.
15691         (dump_pair, dump_type, dump_type_list, dump_typekind)
15692         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
15693         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
15694         functions.
15695         (seen_types): New variable.
15696         (main): New variable do_dump.  Process "-d" command line option.
15697         Call dump_everything if dump requested.
15698
15699 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
15700
15701         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
15702         in a temporary instead of invoking the macro multiple times.
15703         (track_expr_p): Likewise.
15704
15705 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
15706
15707         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
15708         per new semantics.
15709         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
15710         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
15711         conditions for printing notes.
15712         * common.opt (-Wcoverage-mismatch): Allow negative, default to
15713         true, update documentation.
15714         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
15715
15716 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
15717
15718         PR c/43981
15719         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
15720         on dimen.
15721
15722 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
15723
15724         PR target/43799
15725         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
15726         (*sse_prologue_save_insn1): Likewise.
15727         (SSE prologue save splitter): Likewise.
15728
15729 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
15730
15731         * tree.c (free_lang_data_in_one_sizepos): New inline function.
15732         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
15733         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
15734         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
15735         all decls.  Call it on DECL_FIELD_OFFSET of fields.
15736         (find_decls_types_r): Follow DECL_VALUE_EXPR.
15737         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
15738
15739 2010-05-04  Martin Jambor  <mjambor@suse.cz>
15740
15741         * tree-sra.c (build_access_from_expr_1): The first parameter type
15742         changed to simple tree.
15743         (build_access_from_expr): Likewise, gsi parameter was eliminated.
15744         (scan_assign_result): Renamed to assignment_mod_result, enum elements
15745         renamed as well.
15746         (build_accesses_from_assign): Removed all parameters except for a
15747         simple gimple statement.  Now returns a simple bool.
15748         (scan_function): All non-analysis parts moved to separate functions
15749         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
15750         parameters and updated both callers.
15751         (sra_modify_expr): Removed parameter data.
15752         (sra_modify_function_body): New function.
15753         (perform_intra_sra): Call sra_modify_function_body to modify the
15754         function body.
15755         (replace_removed_params_ssa_names): Parameter data changed into
15756         adjustments vector.
15757         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
15758         changed the parameter dont_convert to convert with the opposite
15759         meaning.
15760         (sra_ipa_modify_assign): Parameter data changed into adjustments
15761         vector, return value changed to bool.
15762         (ipa_sra_modify_function_body): New function.
15763         (sra_ipa_reset_debug_stmts): Updated a comment.
15764         (modify_function): Use ipa_sra_modify_function_body to modify function
15765         body.
15766
15767 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
15768
15769         PR middle-end/43671
15770         * alias.c (true_dependence): Handle the same VALUE in x and mem.
15771         (canon_true_dependence): Likewise.
15772         (write_dependence_p): Likewise.
15773
15774 2010-05-04  Jan Hubicka  <jh@suse.cz>
15775
15776         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
15777         * cgraphbuild.c: Include ipa-utils.h
15778         (record_reference_ctx): New struct.
15779         (record_reference): Simplify to work on initializers; not statements.
15780         (mark_address, mark_load, mark_store): New.
15781         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
15782         walk PHI nodes too.
15783         (record_references_in_initializer): Update use of record_reference.
15784         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
15785         walk PHI nodes too.
15786
15787 2010-05-04  Jan Hubicka  <jh@suse.cz>
15788
15789         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
15790         node will be removed anyway.
15791         (lto_varpool_replace_node): Allow also unanalyzed nodes;
15792         relink aliases of node into prevailing node.
15793         * varpool.c (varpool_remove_node): Remove aliases properly;
15794         when removing node, remove all its aliases too; remove DECL_INITIAL
15795         of removed node; ggc_free the varpool node.
15796
15797 2010-05-04  Richard Guenther  <rguenther@suse.de>
15798
15799         PR tree-optimization/43879
15800         * tree-ssa-structalias.c (alias_get_name): Use
15801         DECL_ASSEMBLER_NAME if available.
15802         (create_function_info_for): Return the varinfo node.
15803         (ipa_pta_execute): Associate same-body aliases and extra names
15804         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
15805
15806 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
15807
15808         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
15809
15810 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
15811
15812         PR bootstrap/43964
15813         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
15814         only if HONOR_REG_ALLOC_ORDER is not defined.
15815
15816 2010-05-04  Richard Guenther  <rguenther@suse.de>
15817
15818         PR tree-optimization/43949
15819         * tree-vrp.c (extract_range_from_binary_expr): Only handle
15820         TRUNC_MOD_EXPR.
15821
15822 2010-04-26  Jason Merrill  <jason@redhat.com>
15823
15824         * c.opt (-fstrict-enums): New.
15825         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
15826
15827 2010-05-03  David Ung  <davidu@mips.com>
15828             James E. Wilson  <wilson@codesourcery.com>
15829
15830         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
15831         emit the trap instruction before the divide for TUNE_74K.
15832
15833 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
15834
15835         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
15836         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
15837         based on the above, for new target hook.
15838
15839         * hooks.c (hook_bool_mode_true): New generic hook.
15840         * hooks.h (hook_bool_mode_true): Add prototype.
15841
15842         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
15843         target hook.
15844         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
15845         target hook, set to hook_bool_mode_false.
15846         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
15847         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
15848         with targetm.small_register_classes_for_mode_p.
15849         (find_reusable_reload): Likewise.
15850         (combine_reloads): Likewise.
15851         * reload1.c (reload_as_needed): Likewise.
15852         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
15853         * ifcvt.c (noce_process_if_block, check_cond_move_block,
15854         dead_or_predicable): Likewise.
15855         * regmove.c (optimize_reg_copy_1): Likewise.
15856         * calls.c (prepare_call_address): Likewise.
15857         (precompute_register_parameters): Likewise.
15858
15859         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
15860         hook definition.
15861         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
15862         implementation of the hook that considers all register classes
15863         small except for SH64.
15864         (sh_override_options): Use the new hook.
15865         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
15866         Add prototype.
15867
15868         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
15869         hook definition.
15870         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
15871         implementation of the hook that considers all register classes
15872         small for THUMB1.
15873         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
15874         Add prototype.
15875
15876         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
15877         hook definition.
15878         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
15879         implementation of the hook that considers all register classes
15880         small for MIPS16.
15881         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
15882         Add prototype.
15883
15884         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
15885         hook definition.
15886         * config/m32c/m32c.h: Likewise.
15887         * config/pdp11/pdp11.h: Likewise.
15888         * config/avr/avr.h: Likewise.
15889         * config/xtensa/xtensa.h: Likewise.
15890         * config/m68hc11/m68hc11.h: Likewise.
15891         * config/mn10300/mn10300.h: Likewise.
15892         * config/mcore/mcore.h: Likewise.
15893         * config/h8300/h8300.h: Likewise.
15894         * config/bfin/bfin.h: Likewise.
15895
15896         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
15897         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
15898
15899 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
15900
15901         * double-int.h (tree_to_double_int): Remove macro.
15902         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
15903         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
15904         (tree_to_double_int): New function.
15905         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
15906         Move ...
15907         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
15908
15909 2010-05-03  Richard Guenther  <rguenther@suse.de>
15910
15911         PR tree-optimization/43971
15912         * tree-ssa-structalias.c (get_constraint_for_1): Fix
15913         constraints in the !flag_delete_null_pointer_checks case.
15914
15915 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
15916
15917         PR debug/43972
15918         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
15919         result mode matches original rtl mode.
15920
15921 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
15922
15923         PR target/43888
15924         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
15925
15926 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
15927
15928         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
15929         when processing flag options.
15930
15931 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
15932
15933         * gcov-iov.c (main): Change format string placeholder
15934         from %#08x to 0x%08x.
15935         * genchecksum.c (dosum): Change format string placeholder
15936         from %#02x to 0x%02x.
15937
15938 2010-05-02  Richard Guenther  <rguenther@suse.de>
15939
15940         PR tree-optimization/43879
15941         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
15942
15943 2010-05-02  Bruno Haible  <bruno@clisp.org>
15944
15945         * doc/extend.texi (Function Attributes): Fix a typo.
15946
15947 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
15948
15949         Revert:
15950         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
15951         placeholder from 0x%x to %#x.
15952         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
15953         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
15954         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
15955         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
15956         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
15957         * config/i386/i386.c (ix86_target_string): Ditto.
15958         * config/i386/i386.c (output_pic_addr_const): Ditto.
15959         (print_operand): Ditto.
15960
15961 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
15962
15963         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
15964         placeholder from 0x%x to %#x.
15965         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
15966         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
15967         (ASM_OUTPUT_DEBUG_DATA): Ditto.
15968         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
15969         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
15970         * optc-gen.awk: Ditto.
15971         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
15972         (HOST_WIDE_INT_PRINT_HEX): Ditto.
15973         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
15974         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
15975
15976 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
15977
15978         * target.h (struct calls): Add function_value_regno_p field.
15979         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
15980         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
15981         * targhooks.c (default_function_value_regno_p): New function.
15982         * targhooks.h (default_function_value_regno_p): Declare function.
15983         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
15984         * builtins.c. (apply_result_size): (Ditto.).
15985         * combine.c. (likely_spilled_retval_p): (Ditto.).
15986         * mode-switching.c. Include 'target.h'.
15987         (create_pre_exit): Use function_value_regno_p hook.
15988         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
15989         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
15990         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
15991
15992         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
15993         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
15994         (ix86_function_value_regno_p): Declare as static, change argument
15995         type to const unsigned int.
15996         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
15997
15998 2010-05-01  Richard Guenther  <rguenther@suse.de>
15999
16000         PR tree-optimization/43949
16001         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
16002         types.
16003         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
16004
16005 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
16006
16007         * rtl.h (CONST_DOUBLE_P): Define.
16008         (rtx_to_double_int): Declare.
16009         * emit-rtl.c (rtx_to_double_int): New function.
16010         * dwarf2out.c (insert_double): New function.
16011         (loc_descriptor, add_const_value_attribute): Clean up, use
16012         rtx_to_double_int and insert_double functions.
16013
16014 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
16015
16016         * doc/extend.texi (Inline): Add missing return keyword to examples.
16017         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
16018         "command-line".
16019
16020 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
16021
16022         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
16023         the variable part of the offset as well.  Use highest_pow2_factor for
16024         all alignment checks.
16025
16026 2010-04-30  Richard Guenther  <rguenther@suse.de>
16027
16028         PR tree-optimization/43879
16029         * tree-ssa-structalias.c (type_could_have_pointers): Functions
16030         can have pointers.
16031
16032 2010-04-30  Jan Hubicka  <jh@suse.cz>
16033
16034         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
16035         varpool.
16036         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
16037
16038 2010-04-30  Jan Hubicka  <jh@suse.cz>
16039
16040         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
16041         New.
16042         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
16043         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
16044         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
16045         cgraph_node_set_needs_ltrans_p): Remove.
16046
16047 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
16048
16049         * sdbout.c: Include vec.h, do not include varray.h.
16050         (deferred_global_decls, sdbout_global_decl,
16051         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
16052         * toplev.c: Do not include varray.h.
16053         (dump_memory_report): Do not dump VARRAY statistics.
16054         * gengtype.c (open_base_file): Ignore varray.h.
16055         * Makefile.in: Update for abovementioned changes.
16056         Remove all traces of varray.c and varray.h.
16057         * varray.c: Remove file.
16058         * varray.h: Remove file.
16059
16060 2010-04-30  Jan Hubicka  <jh@suse.cz>
16061
16062         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
16063         references.
16064
16065 2010-04-30  Jan Hubicka  <jh@suse.cz>
16066
16067         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
16068         needed.
16069
16070 2010-04-30  Richard Guenther  <rguenther@suse.de>
16071
16072         * tree-ssa-structalias.c (get_constraint_for_1): Generate
16073         constraints for CONSTRUCTOR.
16074
16075 2010-04-30  Richard Guenther  <rguenther@suse.de>
16076
16077         PR lto/43946
16078         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
16079         first after all lowering passes.
16080
16081 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
16082
16083         * toplev.c: Include varray.h for statistics dumping.
16084         * tree.h: Do not declare varray_head_tag.
16085         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
16086         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
16087         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
16088         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
16089         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
16090         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
16091         c-common.c, c-common.h, reg-stack.c, basic-block.h,
16092         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
16093         include varray.h.
16094         * Makefile.in: Update for abovementioned changes.
16095
16096 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
16097
16098         PR debug/43942
16099         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
16100
16101 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
16102
16103         * config/picochip/picochip.c (picochip_legitimize_address): Define.
16104         Use this function to do machine-specific conversion.
16105         (picochip_legitimize_reload_address): Likewise.
16106         (picochip_legitimate_address_p): Check valid base register only if
16107         strict.
16108         (picochip_check_conditional_copy): Check for modw only if opnd is
16109         register.
16110         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
16111         to call the function in c.
16112         * config/picochip/picochip-protos.h
16113         (picochip_legitimize_reload_address): Define.
16114         * config/picochip/picochip.md (supported_compare1): Define.
16115
16116 2010-04-30  Jan Hubicka  <jh@suse.cz>
16117
16118         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
16119         (cgraph_global_info): Remove inlined.
16120         (LTO_cgraph_tag_names): Remove.
16121         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
16122         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
16123         simplify cgraph tags and document.
16124         (lto_output_node): Use only LTO_cgraph_unavail_node and
16125         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
16126         for_functions_valid, global info, process and output flags.
16127         (input_overwrite_node): Initialize estimated stack size and
16128         estimated growth.  Do not read flags we no longer store.
16129         (input_node): Likewise do not read info no longer stored.
16130         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
16131         flag.
16132
16133 2010-04-30  Richard Guenther  <rguenther@suse.de>
16134
16135         PR tree-optimization/43879
16136         * tree-ssa-structalias.c (get_constraint_for_1): Properly
16137         handle non-zero initializers.
16138
16139 2010-04-30  Richard Guenther  <rguenther@suse.de>
16140
16141         * builtins.c (fold_builtin_1): Delete free (0).
16142
16143 2010-04-29  Jan Hubicka  <jh@suse.cz>
16144
16145         * gengtype.c (open_base_files): Add lto-streamer.h
16146         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
16147         (pass_ipa_cp): GGC collect.
16148         * toplev. (compile_file): Do not output symbols.
16149         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
16150         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
16151         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
16152         * lto-section-in.c: Include ggc.h
16153         (lto_new_in_decl_state): Alloc in GGC.
16154         (lto_delete_in_decl_state): Likewise.
16155         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
16156         Collect.
16157
16158 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
16159
16160         PR target/42895
16161         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
16162         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
16163         (HONOR_REG_ALLOC_ORDER): Describe new macro.
16164         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
16165         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
16166         account only if HONOR_REG_ALLOC_ORDER is not defined.
16167         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
16168         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
16169
16170 2010-04-29  Jon Grant  <04@jguk.org>
16171
16172         * collect2.c (vflag): Change type from int to bool.
16173         (debug): Likewise.
16174         (helpflag): New global bool.
16175         (main): Set vflag and debug with boolean, not integer truth values.
16176         Accept new "--help" option and output usage text if found.
16177         * collect2.h (vflag): Update prototype.
16178         (debug): Likewise.
16179
16180 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
16181
16182         PR bootstrap/43936
16183         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
16184
16185 2010-04-29  Richard Guenther  <rguenther@suse.de>
16186
16187         PR bootstrap/43935
16188         * plugin.h (invoke_plugin_callbacks): Annotate arguments
16189         with ATTRIBUTE_UNUSED.
16190
16191 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
16192
16193         PR target/43921
16194         * config/i386/i386.c (get_some_local_dynamic_name): Replace
16195         INSN_P with NONDEBUG_INSN_P.
16196         (distance_non_agu_define): Likewise.
16197         (distance_agu_use): Likewise.
16198
16199 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
16200
16201         From Dominique d'Humieres  <dominiq@lps.ens.fr>
16202         PR bootstrap/43858
16203         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
16204         test_set.
16205
16206 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
16207
16208         * plugin.h (invoke_plugin_callbacks): New inline function.
16209         * plugin.c (flag_plugin_added): New global flag.
16210         (add_new_plugin): Initialize above flag.
16211         (invoke_plugin_callbacks): Rename to ...
16212         (invoke_plugin_callbacks_full): ... this.
16213
16214 2010-04-28  Jan Hubicka  <jh@suse.cz>
16215
16216         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
16217         (lto_varpool_replace_node): New.
16218         (lto_symtab_resolve_symbols): Resolve varpool nodes.
16219         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
16220         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
16221         * cgraph.h (varpool_node_ptr): New type.
16222         (varpool_node_ptr): New vector.
16223         (varpool_node_set_def): New structure.
16224         (varpool_node_set): New type.
16225         (varpool_node_set): New vector.
16226         (varpool_node_set_element_def): New structure.
16227         (varpool_node_set_element, const_varpool_node_set_element): New types.
16228         (varpool_node_set_iterator): New type.
16229         (varpool_node): Add prev pointers, add used_from_other_partition,
16230         in_other_partition.
16231         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
16232         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
16233         varpool_get_node, varpool_remove_node): Declare.
16234         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
16235         varpool_node_set_size): New inlines.
16236         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
16237         * tree-pass.h (varpool_node_set_def): Forward declare.
16238         (ipa_opt_pass_d): Summary writting takes vnode sets too.
16239         (ipa_write_optimization_summaries): Update prototype.
16240         * ipa-cp.c (ipcp_write_summary): Update.
16241         * ipa-reference.c (ipa_reference_write_summary): Update.
16242         * lto-cgraph.c (lto_output_varpool_node): New static function.
16243         (output_varpool): New function.
16244         (input_varpool_node): New static function.
16245         (input_varpool_1): New function.
16246         (input_cgraph): Input varpool.
16247         * ipa-pure-const.c (pure_const_write_summary): Update.
16248         * lto-streamer-out.c (lto_output): Update, output varpool too.
16249         (write_global_stream): Kill WPA hack.
16250         (produce_asm_for_decls): Update.
16251         (output_alias_pair_p): Handle variables.
16252         (output_unreferenced_globals): Output only needed partition of varpool.
16253         * ipa-inline.c (inline_write_summary): Update.
16254         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
16255         cgraph.
16256         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
16257         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
16258         varpool_node_set_new, varpool_node_set_add,
16259         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
16260         debug_varpool_node_set): New functions.
16261         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
16262         (execute_one_pass): Process new decls too.
16263         (ipa_write_summaries_2): Pass around vsets.
16264         (ipa_write_summaries_1): Likewise.
16265         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
16266         to add.
16267         (ipa_write_optimization_summaries_1): Pass around vsets.
16268         (ipa_write_optimization_summaries): Likewise.
16269         * varpool.c (varpool_get_node): New.
16270         (varpool_node): Update doubly linked lists.
16271         (varpool_remove_node): New.
16272         (dump_varpool_node): More dumping.
16273         (varpool_enqueue_needed_node): Update doubly linked lists.
16274         (decide_is_variable_needed): Kill ltrans hack.
16275         (varpool_finalize_decl): Kill lto hack.
16276         (varpool_assemble_decl): Skip decls in other partitions.
16277         (varpool_assemble_pending_decls): Update doubly linkes lists.
16278         (varpool_empty_needed_queue): Likewise.
16279         (varpool_extra_name_alias): Likewise.
16280         * lto-streamer.c (lto_get_section_name): Add vars section.
16281         * lto-streamer.h (lto_section_type): Update.
16282         (output_varpool, input_varpool): Declare.
16283
16284 2010-04-28  Mike Stump  <mikestump@comcast.net>
16285
16286         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
16287
16288 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
16289
16290         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
16291         record or union type with RECORD_OR_UNION_TYPE_P predicate.
16292         (lto_input_ts_type_tree_pointers): Likewise.
16293         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
16294         (lto_output_ts_type_tree_pointers): Likewise.
16295
16296 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
16297
16298         Uniquization of constants at the Tree level
16299         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
16300         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
16301         bit to the end.
16302         (tree_output_constant_def): Declare.
16303         * gimplify.c (gimplify_init_constructor): When using block copy, first
16304         uniquize the constant constructor on the RHS.
16305         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
16306         DECL_IN_CONSTANT_POOL flag.
16307         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
16308         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
16309         constant pool.
16310         (assemble_variable): Deal with symbols belonging to the tree constant
16311         pool.
16312         (get_constant_section): Add ALIGN parameter and simplify.
16313         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
16314         (assemble_constant_contents): Use the expression of the VAR_DECL.
16315         (output_constant_def_contents): Use the alignment of the VAR_DECL.
16316         (tree_output_constant_def): New global function.
16317         (mark_constant): Use the expression of the VAR_DECL.
16318         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
16319         its expression.
16320         (output_object_block): Likewise and assemble the expression.
16321
16322 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
16323
16324         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
16325         hash_tree, eq_tree): New tree hash table.
16326         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
16327         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
16328         lto_orig_address_remove): Reimplement.
16329
16330 2010-04-28  Xinliang David Li  <davidxl@google.com>
16331
16332         PR c/42643
16333         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
16334         (compute_uninit_opnds_pos): New function.
16335         (is_non_loop_exit_postdominating): New function.
16336         (compute_control_dep_chain): New function.
16337         (find_pdom): New function.
16338         (convert_control_dep_chain_into_preds): New function.
16339         (find_predicates): New function.
16340         (find_control_equiv_block): New function.
16341         (collect_phi_def_edges): New function.
16342         (find_def_preds): New function.
16343         (find_dom): New function.
16344         (dump_predicates): New function.
16345         (get_cmp_code): New function.
16346         (is_value_included_in): New function.
16347         (find_matching_predicate_in_rest_chains): New function.
16348         (use_pred_not_overlap_with_undef_path_pred): New function.
16349         (is_use_properly_guarded): New function.
16350         (normalize_cond_1): New function.
16351         (is_and_or_or): New function.
16352         (normalize_cond): New function.
16353         (is_gcond_subset_of): New function.
16354         (is_subset_of_any): New function.
16355         (is_or_set_subset_of): New function.
16356         (is_and_set_subset_of): New function.
16357         (is_norm_cond_subset_of): New function.
16358         (is_pred_expr_subset_of): New function.
16359         (is_pred_chain_subset_of): New function.
16360         (is_included_in): New function.
16361         (is_superset_of): New function.
16362         (find_uninit_use): New function.
16363         (warn_uninitialized_phi): New function.
16364         (compute_possibly_undefined_names): New function.
16365         (ssa_undefined_value_p): New function.
16366         (execute_late_warn_uninitialized): New function.
16367         * tree-ssa.c (ssa_undefined_value_p): Removed.
16368         (warn_uninit): Changed to extern.
16369         (warn_uninitialized_phi): Removed.
16370         (warn_uninitialized_vars): Changed to extern.
16371         (execute_late_warn_uninitialized): Removed
16372         * tree-flow.h: Add new prototypes.
16373         * timevar.def: Add new time variable.
16374         * Makefile.in: Add new build file.
16375
16376 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
16377
16378         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
16379         type if available.
16380
16381 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16382
16383         PR target/22224
16384         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
16385
16386 2010-04-28  Martin Jambor  <mjambor@suse.cz>
16387
16388         * cgraph.h (struct cgraph_node): New field indirect_calls.
16389         (struct cgraph_indirect_call_info): New type.
16390         (struct cgraph_edge): Removed field indirect_call. New fields
16391         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
16392         (cgraph_create_indirect_edge): Declare.
16393         (cgraph_make_edge_direct): Likewise.
16394         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
16395         * ipa-prop.h (struct ipa_param_call_note): Removed.
16396         (struct ipa_node_params): Removed field param_calls.
16397         (ipa_create_all_structures_for_iinln): Declare.
16398         * cgraph.c: Described indirect edges and uids in initial comment.
16399         (cgraph_add_edge_to_call_site_hash): New function.
16400         (cgraph_edge): Search also among the indirect edges, use
16401         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
16402         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
16403         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
16404         site hash.
16405         (initialize_inline_failed): Assign a reason to indirect edges.
16406         (cgraph_create_edge_1): New function.
16407         (cgraph_create_edge): Moved some functionality to
16408         cgraph_create_edge_1.
16409         (cgraph_create_indirect_edge): New function.
16410         (cgraph_edge_remove_callee): Add an assert checking for
16411         non-indirectness.
16412         (cgraph_edge_remove_caller): Special-case indirect edges.
16413         (cgraph_remove_edge): Likewise.
16414         (cgraph_set_edge_callee): New function.
16415         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
16416         (cgraph_make_edge_direct): New function.
16417         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
16418         the declaration of the call statement matches.
16419         (cgraph_node_remove_callees): Special-case indirect edges.
16420         (cgraph_clone_edge): Likewise.
16421         (cgraph_clone_node): Clone also the indirect edges.
16422         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
16423         indirect_call, dump count of indirect_calls edges.
16424         * ipa-prop.c (iinlining_processed_edges): New variable.
16425         (ipa_note_param_call): Create indirect edges instead of
16426         creating notes.  New parameter node.
16427         (ipa_analyze_call_uses): New parameter node, pass it on to
16428         ipa_note_param_call.
16429         (ipa_analyze_stmt_uses): Likewise.
16430         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
16431         (print_edge_addition_message): Work on edges rather than on notes.
16432         (update_call_notes_after_inlining): Likewise, renamed to
16433         update_indirect_edges_after_inlining.
16434         (ipa_create_all_structures_for_iinln): New function.
16435         (ipa_free_node_params_substructures): Do not free notes.
16436         (ipa_edge_duplication_hook): Propagate bits within
16437         iinlining_processed_edges bitmap.
16438         (ipa_node_duplication_hook): Do not duplicate notes.
16439         (free_all_ipa_structures_after_ipa_cp): Renamed to
16440         ipa_free_all_structures_after_ipa_cp.
16441         (free_all_ipa_structures_after_iinln): Renamed to
16442         ipa_free_all_structures_after_iinln.
16443         (ipa_write_param_call_note): Removed.
16444         (ipa_read_param_call_note): Removed.
16445         (ipa_write_indirect_edge_info): New function.
16446         (ipa_read_indirect_edge_info): Likewise.
16447         (ipa_write_node_info): Do not stream notes, do stream information
16448         in indirect edges.
16449         (ipa_read_node_info): Likewise.
16450         (lto_ipa_fixup_call_notes): Removed.
16451         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
16452         * ipa-inline.c (pass_ipa_inline): Likewise.
16453         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
16454         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
16455         * tree-inline.c (copy_bb): Removed an unnecessary double check for
16456         is_gimple_call.
16457         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
16458         edges.
16459         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
16460         (output_cgraph): Stream also indirect edges.
16461         (lto_output_edge): Added capability to stream indirect edges.
16462         (input_edge): Likewise.
16463         (input_cgraph_1): Likewise.
16464         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
16465         of indirect edges.
16466
16467 2010-04-28  Richard Guenther  <rguenther@suse.de>
16468
16469         PR tree-optimization/43879
16470         PR tree-optimization/43909
16471         * tree-ssa-structalias.c (struct variable_info): Add
16472         only_restrict_pointers flag.
16473         (new_var_info): Initialize it.  Increment stats.total_vars here.
16474         (create_function_info_for): Do not increment stats.total_vars here.
16475         (get_function_part_constraint): Fix build with C++.
16476         (insert_into_field_list): Remove.
16477         (push_fields_onto_fieldstack): Properly merge fields.
16478         (create_variable_info_for): Split and simplify.
16479         (create_variable_info_for_1): New piece.
16480         (intra_create_variable_infos): Properly make restrict constraints
16481         from parameters.
16482
16483 2010-04-28  Richard Guenther  <rguenther@suse.de>
16484
16485         PR c++/43880
16486         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
16487
16488 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16489             Jan Hubicka  <hubicka@ucw.cz>
16490
16491         * doc/invoke.texi (-Wsuggest-attribute=const,
16492         -Wsuggest-attribute=pure): Document.
16493         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
16494         (function_always_visible_to_compiler_p,
16495         suggest_attribute, warn_function_pure, warn_function_const):
16496         New functions.
16497         (check_call): Improve debug info.
16498         (analyze_function): Do not check availability.
16499         (add_new_function): Check availability.
16500         (propagate): Output warnings.
16501         (skip_function_for_local_pure_const): New function.
16502         (local_pure_const): Use it; output warnings.
16503         * common.opt (Wsuggest-attribute=const,
16504         Wsuggest-attribute=pure): New.
16505
16506 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
16507
16508         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
16509         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
16510         or DW_CFA_def_cfa_offset{,_sf}.
16511
16512 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
16513
16514         * tree.h: Fix truncated long macros.
16515
16516 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
16517
16518         * collect2.c (TARGET_64BIT): Redefine to target's default.
16519         * tlink.c: Likewise.
16520         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
16521         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
16522         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
16523         for underscoring __USER_LABEL_PREFIX__.
16524         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
16525         (SUB_LINK_ENTRY32): New.
16526         (SUB_LINK_ENTRY64): New.
16527         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
16528         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
16529         (SUB_LINK_ENTRY64): New.
16530         (SUB_LINK_ENTRY): New.
16531         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
16532         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
16533         x64 target is choosen.
16534         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
16535         * configure: Regenerated.
16536         * configure.ac (leading-mingw64-underscores): Option added.
16537
16538 2010-04-27  Jan Hubicka  <jh@suse.cz>
16539
16540         * doc/invoke.texi (-fipa-profile): Document.
16541         * opts.c (decode_options): Enable ipa-profile at -O1.
16542         * timevar.def (TV_IPA_PROFILE): Define.
16543         * common.opt (fipa-profile): Add.
16544         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
16545         flag for clones.
16546         (cgraph_propagate_frequency): Handle only local ones.
16547         * tree-pass.h (pass_ipa_profile): Declare.
16548         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
16549         (pass_ipa_profile): Use TV_IPA_PROFILE.
16550         * ipa.c (ipa_profile): New function.
16551         (gate_ipa_profile): Likewise.
16552         (pass_ipa_profile): New global variable.
16553         * passes.c (pass_ipa_profile): New.
16554
16555 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
16556
16557         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
16558
16559 2010-04-27  Martin Jambor  <mjambor@suse.cz>
16560
16561         PR middle-end/43812
16562         * ipa.c (dissolve_same_comdat_group_list): New function.
16563         (function_and_variable_visibility): Call
16564         dissolve_same_comdat_group_list when comdat group contains external or
16565         newly local nodes.
16566         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
16567         lists are circular and that they contain only DECL_ONE_ONLY nodes.
16568
16569 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
16570
16571         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
16572         (const_hash_1) <VECTOR_CST>: New case.
16573         (compare_constant) <VECTOR_CST>: Likewise.
16574         <ADDR_EXPR>: Deal with LABEL_REFs.
16575         (copy_constant) <VECTOR_CST>: New case.
16576
16577 2010-04-27  Jan Hubicka  <jh@suse.cz>
16578
16579         * cgraph.c (cgraph_propagate_frequency): New function.
16580         * cgraph.h (cgraph_propagate_frequency): Declare.
16581         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
16582         cgraph_propagate_frequency.
16583
16584 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
16585
16586         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
16587
16588 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
16589
16590         PR target/40657
16591         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
16592         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
16593         here to determine which regs to push and how much stack to reserve.
16594
16595 2010-04-27  Jie Zhang  <jie@codesourcery.com>
16596
16597         * doc/gimple.texi (gimple_statement_with_ops): Remove
16598         addresses_taken field.
16599         (gimple_statement_with_memory_ops): Likewise.
16600
16601 2010-04-27  Jan Hubicka  <jh@suse.cz>
16602
16603         * tree-inline.c (eni_inlining_weights): Remove.
16604         (estimate_num_insns): Special case more builtins.
16605
16606 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
16607
16608         PR c/32207
16609         * c-typeck.c (build_binary_op): Move forward check for comparison
16610         pointer with null pointer constant and adjust the diagnostic message.
16611
16612 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
16613
16614         PR lto/42776
16615         * configure.ac (gcc_cv_as_section_has_align): Set if installed
16616         binutils supports extended .section directive needed by LTO, or
16617         warn if older binutils found.
16618         (LTO_BINARY_READER): New AC_SUBST'd variable.
16619         (LTO_USE_LIBELF): Likewise.
16620         * gcc/config.gcc (lto_binary_reader): New target-specific configure
16621         variable.
16622         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
16623         (LTO_USE_LIBELF): Likewise.
16624         * configure: Regenerate.
16625
16626         * collect2.c (is_elf): Rename from this ...
16627         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
16628          object files in addition to ELF-formatted ones.
16629         (scan_prog_file): Caller updated.  Also allow for LTO info marker
16630         symbol to be prefixed or not by an extra underscore.
16631
16632         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
16633         * config/i386/winnt.c: Also #include lto-streamer.h
16634         (i386_pe_asm_named_section): Specify 1-byte section alignment for
16635         LTO named sections.
16636         (i386_pe_asm_output_aligned_decl_common): Add comment.
16637         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
16638
16639 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
16640
16641         PR target/43889
16642         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
16643         Add missing earlyclobber for second alternative.
16644
16645 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
16646
16647         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
16648         bits for artificial defs at the top of the block.
16649         * fwprop.c (single_def_use_enter_block): Don't call it.
16650
16651 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
16652
16653         PR 43715
16654         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
16655         instead of "$gcc_cv_objdump -T".
16656         Use "-undefined dynamic_lookup" on darwin.
16657         * gcc/configure: Regenerate.
16658
16659 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
16660
16661         PR c/43893
16662         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
16663
16664 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
16665
16666         * c-parser.c (struct c_token): Move location field up.
16667         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
16668         (struct c_declspecs): Convert typespec_word, storage_class, and
16669         default_int_p into bitfields.
16670         (struct c_declarator): Move loc field up.
16671
16672 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
16673
16674         * cfgloop.h (struct loop): Move can_be_parallel field up.
16675         * ipa-prop.h (struct ip_node_params): Move bitfields up.
16676         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
16677         down.
16678         (struct iv_cand): Convert pos field into a bitfield.
16679         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
16680         field up.
16681         (struct _stmt_vec_info): Shuffle fields for better packing.
16682
16683 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
16684
16685         * varasm.c (IN_NAMED_SECTION): Remove guard.
16686         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
16687         (IN_NAMED_SECTION_P): ...this.
16688         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
16689         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
16690
16691 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
16692
16693         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
16694         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
16695         of shadowing it.  Fix comments.
16696
16697 2010-04-26  Jan Hubicka  <jh@suse.cz>
16698
16699         * cgraph.c (cgraph_create_node): Set node frequency to normal.
16700         (cgraph_clone_node): Copy function frequency.
16701         * cgraph.h (node_frequency): New enum
16702         (struct cgraph_node): Add.
16703         * final.c (rest_of_clean_state): Update.
16704         * lto-cgraph.c (lto_output_node): Output node frequency.
16705         (input_overwrite_node): Input node frequency.
16706         * tre-ssa-loop-ivopts (computation_cost): Update.
16707         * lto-streamer-out.c (output_function): Do not output function
16708         frequency.
16709         * predict.c (maybe_hot_frequency_p): Update and handle functions
16710         executed once.
16711         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
16712         attribute lookup.
16713         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
16714         (compute_function_frequency): Set noreturn functions to be executed
16715         once.
16716         (choose_function_section): Update.
16717         * lto-streamer-in.c (input_function): Do not input function frequency.
16718         * function.c (allocate_struct_function): Do not initialize function
16719         frequency.
16720         * function.h (function_frequency): Remove.
16721         (struct function): Remove function frequency.
16722         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
16723         (try_update): Update.
16724         * tree-inline.c (initialize_cfun): Do not update function frequency.
16725         * passes.c (pass_init_dump_file): Update.
16726         * i386.c (ix86_compute_frame_layout): Update.
16727         (ix86_pad_returns): Update.
16728
16729 2010-04-26  Jie Zhang  <jie@codesourcery.com>
16730
16731         PR tree-optimization/43833
16732         * tree-vrp.c (range_int_cst_p): New.
16733         (range_int_cst_singleton_p): New.
16734         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
16735         when both operands are constants.  Use range_int_cst_p in
16736         BIT_IOR_EXPR case.
16737
16738 2010-04-26  Jan Hubicka  <jh@suse.cz>
16739
16740         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
16741
16742 2010-04-26  Richard Guenther  <rguenther@suse.de>
16743
16744         PR lto/43080
16745         * gimple.c (gimple_decl_printable_name): Deal gracefully
16746         with a NULL DECL_NAME.
16747
16748 2010-04-26  Richard Guenther  <rguenther@suse.de>
16749
16750         PR lto/42425
16751         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
16752         if emitting debug information and it is either a function
16753         or a namespace decl.
16754
16755 2010-04-26  Ira Rosen  <irar@il.ibm.com>
16756
16757         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
16758         determine if the statement is vectorizable, and a macro to access it.
16759         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
16760         Skip statements that can't be vectorized. If the analysis fails,
16761         mark the statement as unvectorizable if vectorizing basic block.
16762         (vect_compute_data_refs_alignment): Likewise.
16763         (vect_verify_datarefs_alignment): Skip statements marked as
16764         unvectorizable. Add print.
16765         (vect_analyze_group_access): Skip statements that can't be
16766         vectorized. If the analysis fails, mark the statement as
16767         unvectorizable if vectorizing basic block.
16768         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
16769         * tree-vect-stmts.c (vectorizable_store): Fix the number of
16770         generated stmts for SLP.
16771         (new_stmt_vec_info): Initialize the new field.
16772         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
16773         statements marked as unvectorizable.
16774
16775 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
16776
16777         * c-common.c (flag_isoc1x): New.
16778         (flag_isoc99): Update comment.
16779         * c-common.h (flag_isoc1x): New.
16780         (flag_isoc99): Update comment.
16781         * c-cppbuiltin.c (builtin_define_float_constants): Also define
16782         __<type>_DECIMAL_DIG__.
16783         * c-opts.c (set_std_c1x): New.
16784         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
16785         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
16786         * c.opt (-std=c1x, -std=gnu1x): New options.
16787         * doc/cpp.texi: Mention -std=c1x.
16788         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
16789         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
16790         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
16791         * doc/standards.texi: Mention C1X.
16792         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
16793         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
16794         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
16795         Define for C1X.
16796
16797 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
16798
16799         * config/i386/gmon-sol2.c (_mcleanup): Change format string
16800         placeholder from 0x%x to %#x.
16801         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
16802         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
16803         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
16804         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
16805         * config/i386/i386.c (ix86_target_string): Ditto.
16806         (output_pic_addr_const): Ditto.
16807         (print_operand): Ditto.
16808
16809 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
16810
16811         * combine.c (find_split_point): Add third argument.  Use it
16812         to find nested multiply-accumulate instructions.  Adjust calls.
16813         (try_combine): Adjust call to find_split_point.
16814
16815 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
16816
16817         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
16818
16819 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
16820
16821         PR tree-optimization/41442
16822         * fold-const.c (merge_truthop_with_opposite_arm): New function.
16823         (fold_binary_loc): Call it.
16824
16825 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16826
16827         * toplev.c (general_init): Set default for fdiagnostics-show-option.
16828         * opts.c (common_handle_option): Allow disabling it.
16829         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
16830
16831 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
16832
16833         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
16834         between modes if both types are integral.
16835
16836 2010-04-23  Richard Guenther  <rguenther@suse.de>
16837
16838         PR tree-optimization/43572
16839         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
16840
16841 2010-04-23  Richard Guenther  <rguenther@suse.de>
16842
16843         PR lto/43455
16844         * tree-inline.c (tree_can_inline_p): Also check compatibility
16845         of return types.
16846
16847 2010-04-23  Martin Jambor  <mjambor@suse.cz>
16848
16849         PR tree-optimization/43846
16850         * tree-sra.c (struct access): New flag grp_assignment_read.
16851         (build_accesses_from_assign): Set grp_assignment_read.
16852         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
16853         (enum mark_read_status): New type.
16854         (analyze_access_subtree): Propagate grp_assignment_read, create
16855         accesses also if both direct_read and root->grp_assignment_read.
16856
16857 2010-04-23  Martin Jambor  <mjambor@suse.cz>
16858
16859         PR middle-end/43835
16860         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
16861         function does not have type attributes.
16862
16863 2010-04-23  Richard Guenther  <rguenther@suse.de>
16864
16865         PR lto/42653
16866         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
16867         of FUNCTION_DECLs.
16868
16869 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16870
16871         * sese.h (create_if_region_on_edge): Remove.
16872
16873         * sese.c (create_if_region_on_edge): Make static.
16874
16875         * tree-inline.c: Do not include ggc.h.
16876
16877         * expr.c: Do not include ggc.h.
16878
16879         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
16880         dependencies.
16881
16882 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
16883
16884         PR target/43744
16885         * config/sh/sh.c (find_barrier): Don't emit a constant pool
16886         in the middle of insns for casesi_worker_2.
16887
16888 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
16889
16890         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
16891
16892 2010-04-22  Ira Rosen  <irar@il.ibm.com>
16893
16894         PR tree-optimization/43842
16895         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
16896         loop unrolling in update of exit phis. Fix comment.
16897         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
16898         least two reduction statements in the loop before starting SLP
16899         analysis.
16900
16901 2010-04-22  Nick Clifton  <nickc@redhat.com>
16902
16903         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
16904
16905 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
16906
16907         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
16908         to simplify a + ~a.
16909
16910 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16911
16912         * tree-parloops.c (loop_parallel_p): New argument
16913         parloop_obstack.  Pass it down.
16914         (parallelize_loops): New variable parloop_obstack.  Initialize it,
16915         pass it down, free it.
16916
16917         * tree-loop-linear.c (linear_transform_loops): Pass down
16918         lambda_obstack.
16919
16920         * tree-data-ref.h (lambda_compute_access_matrices): New argument
16921         of type struct obstack *.
16922
16923         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
16924         scratch_obstack.  Initialize it, pass down, free it.
16925
16926         * lambda.h (lambda_loop_new): Remove.
16927         (lambda_matrix_new, lambda_matrix_inverse)
16928         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
16929         argument of type struct obstack *.
16930
16931         * lambda-trans.c (lambda_trans_matrix_new): New argument
16932         lambda_obstack.  Pass it down, use obstack allocation for ret.
16933         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
16934         it down.
16935
16936         * lambda-mat.c (lambda_matrix_get_column)
16937         (lambda_matrix_project_to_null): Remove.
16938         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
16939         allocation for mat.
16940         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
16941         lambda_obstack.
16942
16943         * lambda-code.c (lambda_loop_new): New function.
16944         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
16945         (lambda_compute_auxillary_space, lambda_compute_target_space)
16946         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
16947         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
16948         (build_access_matrix): New argument lambda_obstack.  Use obstack
16949         allocation for am.
16950         (lambda_compute_step_signs, lambda_compute_access_matrices): New
16951         argument lambda_obstack.  Pass it down.
16952
16953 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
16954
16955         * optabs.h (expand_widening_mult): Declare.
16956
16957 2010-04-22  Richard Guenther  <rguenther@suse.de>
16958
16959         PR tree-optimization/43845
16960         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
16961         lookup the CALL_EXPR function and arguments.
16962
16963 2010-04-22  Nick Clifton  <nickc@redhat.com>
16964
16965         * config/stormy16/stormy16.c
16966         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
16967         * config/stormy16/stormy16.h: Tidy up formatting.
16968         (DONT_USE_BUILTIN_SETJMP): Remove definition.
16969         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
16970         (ineqbranchsi): Delete pattern.
16971         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
16972         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
16973         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
16974         stormy16-lib2-ucmpsi2.c.
16975
16976 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
16977
16978         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
16979         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
16980         extra set merge_set_noclobber, and use it to relax the final test
16981         slightly.
16982         * df.h (df_simulate_find_noclobber_defs): Declare.
16983         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
16984         conditional defs.
16985         (df_simulate_find_noclobber_defs): New function.
16986
16987 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
16988
16989         * config/i386/i386.md: Use {} around multi-line preparation statements.
16990
16991 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16992
16993         * c-tree.h (push_init_level, pop_init_level, set_init_index)
16994         (process_init_element): New argument of type struct obstack *.
16995
16996         * c-typeck.c (push_init_level, pop_init_level, set_designator)
16997         (set_init_index, set_init_label, set_nonincremental_init)
16998         (set_nonincremental_init_from_string, find_init_member)
16999         (output_init_element, output_pending_init_elements)
17000         (process_init_element): New argument braced_init_obstack.  Pass it
17001         down.
17002         (push_range_stack, add_pending_init): New argument
17003         braced_init_obstack.  Use obstack allocation.
17004
17005         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
17006         braced_init_obstack.  Pass it down.
17007         (c_parser_braced_init): New variables ret, braced_init_obstack.
17008         Initialize obstack, pass it down and finally free it.
17009
17010 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
17011
17012         PR middle-end/29274
17013         * tree-pass.h (pass_optimize_widening_mul): Declare.
17014         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
17015         gate_optimize_widening_mul): New static functions.
17016         (pass_optimize_widening_mul): New.
17017         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
17018         <case MULT_EXPR>: Remove support for widening multiplies.
17019         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
17020         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
17021         simplify_gen_unary rather than directly building extensions.
17022         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
17023         WIDEN_MULT_EXPR.
17024         * expmed.c (expand_widening_mult): New function.
17025         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
17026
17027 2010-04-21  Jan Hubicka  <jh@suse.cz>
17028
17029         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
17030         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
17031         * lto-wpa-fixup.c: Remove.
17032         * Makefile.in (lto-wpa-fixup.o): Remove.
17033         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
17034         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
17035         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
17036
17037 2010-04-21  Jan Hubicka  <jh@suse.cz>
17038
17039         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
17040         add write_optimization_summary, read_optimization_summary.
17041         (ipa_write_summaries_of_cgraph_node_set): Remove.
17042         (ipa_write_optimization_summaries): Declare.
17043         (ipa_read_optimization_summaries): Declare.
17044         * ipa-cp.c (pass_ipa_cp): Update.
17045         * ipa-reference.c (pass_ipa_reference): Update.
17046         * ipa-pure-const.c (pass_ipa_pure_const): Update.
17047         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
17048         Update.
17049         * ipa-inline.c (pass_ipa_inline): Update.
17050         * ipa.c (pass_ipa_whole_program): Update.
17051         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
17052         * passes.c (ipa_write_summaries_1): Do not test wpa.
17053         (ipa_write_optimization_summaries_1): New.
17054         (ipa_write_optimization_summaries): New.
17055         (ipa_read_summaries): Do not test ltrans.
17056         (ipa_read_optimization_summaries_1): New.
17057         (ipa_read_optimization_summaries): New.
17058
17059 2010-04-21  Jan Hubicka  <jh@suse.cz>
17060
17061         * lto-cgraph.c (lto_output_node): Do not output comdat groups
17062         for boundary nodes.
17063         (output_cgraph): Do not arrange comdat groups for boundary nodes.
17064
17065 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
17066
17067         PR debug/40040
17068         * dwarf2out.c (add_name_and_src_coords_attributes): Add
17069         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
17070
17071 2010-04-21  Jan Hubicka  <jh@suse.cz>
17072
17073         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
17074
17075 2010-04-21  Jan Hubicka  <jh@suse.cz>
17076
17077         * varpool.c (decide_is_variable_needed): Variable is always needed
17078         during ltrans.
17079
17080 2010-04-21  Jan Hubicka  <jh@suse.cz>
17081
17082         * opts.c (decode_options): Enable pure-const pass for whopr.
17083
17084 2010-04-21  Jan Hubicka  <jh@suse.cz>
17085
17086         * cgraph.c (dump_cgraph_node): Dump also assembler name.
17087         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
17088         at WPA dumping.
17089         (cgraph_decide_inlining): Do not expect callee to be removed in all
17090         cases.
17091
17092 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
17093
17094         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
17095
17096 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
17097
17098         * config/i386/i386.md (x86_shrd): Add athlon_decode and
17099         amdfam10_decode attributes.
17100
17101 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
17102
17103         PR middle-end/43570
17104         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
17105         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
17106         (lower_copyprivate_clauses): Use private var in outer
17107         context instead of original var.  Make sure the types
17108         are correct for VLAs.
17109
17110 2010-04-21  Richard Guenther  <rguenther@suse.de>
17111
17112         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
17113         to non-pointer objects.
17114
17115 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
17116
17117         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
17118         last chain entry if it starts with the still current label.
17119         (add_location_or_const_value_attribute): Check that
17120         loc_list->first->next is NULL instead of comparing ->first with ->last.
17121         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
17122         to add_var_loc_to_decl.
17123
17124         * dwarf2out.c (output_call_frame_info): For dw_cie_version
17125         >= 4 add also address size and segment size fields into CIE header.
17126
17127         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
17128         long as address size is the same as sizeof (void *) and
17129         segment size is 0.
17130         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
17131         address size or segment size is unexpected, return DW_EH_PE_omit.
17132         (classify_object_over_fdes): If get_cie_encoding returned
17133         DW_EH_PE_omit, return -1.
17134         (init_object): If classify_object_over_fdes returned -1,
17135         pretend there were no FDEs at all.
17136
17137 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
17138
17139         * config/i386/i386.md (bswap<mode>2): Macroize expander from
17140         bswap{si,di}2 using SWI48 mode iterator.
17141         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
17142         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
17143         set modrm attribute of bswap insn to 0 and remove length attribute.
17144         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
17145         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
17146         set mode attribute to <MODE> and remove length attribute.
17147
17148 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
17149
17150         PR rtl-optimization/43520
17151         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
17152         zero available registers.
17153
17154 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17155
17156         * builtins.c (fold_builtin_cproj): Fold more cases.
17157
17158 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17159
17160         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
17161         (fold_builtin_1): Fold builtin cproj.
17162         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
17163         Use ATTR_CONST_NOTHROW_LIST.
17164
17165 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
17166
17167         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
17168         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
17169         ffsi2_no_cmove for !TARGET_CMOVE.
17170         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
17171         (ffssi2): Remove expander.
17172         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
17173         mode iterator.
17174         (ctz<mode>2): Ditto from ctz{si,di}2.
17175         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
17176         mode iterator.
17177         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
17178         mode iterator.
17179
17180 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
17181
17182         * dwarf2out.c (AT_linkage_name): Define.
17183         (clone_as_declaration): Handle DW_AT_linkage_name.
17184         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
17185         of DW_AT_MIPS_linkage_name.
17186         (move_linkage_attr): Likewise.
17187         (dwarf2out_finish): Likewise.
17188
17189 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
17190
17191         PR middle-end/41952
17192         * fold-const.c (fold_comparison): New folding rule.
17193
17194 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
17195
17196         * double-int.h (double_int_setbit): Declare.
17197         * double-int.c (double_int_setbit): New function.
17198         * rtl.h (immed_double_int_const): Declare.
17199         * emit-rtl.c (immed_double_int_const): New function.
17200         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
17201         and immed_double_int_const functions.
17202         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
17203         expand_copysign_bit): (Ditto.).
17204         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
17205         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
17206         * dojump.c (prefer_and_bit_test): (Ditto.).
17207         * expr.c (convert_modes, reduce_to_bit_field_precision,
17208         const_vector_from_tree): (Ditto.).
17209         * expmed.c (mask_rtx, lshift_value): (Ditto.).
17210
17211 2010-04-20  Jan Hubicka  <jh@suse.cz>
17212
17213         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
17214         (dump_cgraph_node): Dump new flags.
17215         * cgraph.h (struct cgraph_node): Add flags
17216         reachable_from_other_partition and in_other_partition.
17217         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
17218         other partition can not be removed.
17219         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
17220         the other partition must be output; silence sanity checking on
17221         leaking functions bodies from other paritition.
17222         * lto-cgraph.c (reachable_from_other_partition_p): New function.
17223         (lto_output_node): Output new flags; do not sanity check that inline
17224         clones are output; drop lto_forced_extern_inline_p code; do not mock
17225         visibility flags at partition boundaries.
17226         (add_node_to): New function.
17227         (output_cgraph): Use it to sort functions so masters appear before
17228         clones.
17229         (input_overwrite_node): Input new flags.
17230         * passes.c (ipa_write_summaries): Do not call
17231         lto_new_extern_inline_states.
17232         * lto-section-out.c (forced_extern_inline,
17233         lto_new_extern_inline_states lto_delete_extern_inline_states,
17234         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
17235         * lto-streamer.h (lto_new_extern_inline_states,
17236         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
17237         lto_forced_extern_inline_p): Kill.
17238
17239 2010-04-20  Richard Guenther  <rguenther@suse.de>
17240
17241         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
17242         from vars that can have pointers.
17243         (process_constraint): Dump useless constraints.
17244
17245 2010-04-20  Richard Guenther  <rguenther@suse.de>
17246
17247         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
17248         (dump_sa_points_to_info): Remove asserts.
17249         (init_base_vars): nothing_id isn't an escape point nor does it
17250         have pointers.
17251
17252 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
17253
17254         * tree.h (TYPE_REF_IS_RVALUE): Define.
17255         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
17256         should_move_die_to_comdat, prune_unused_types_walk): Handle
17257         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
17258         (modified_type_die, gen_reference_type_die): Emit
17259         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
17260         if TYPE_REF_IS_RVALUE and -gdwarf-4.
17261
17262 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17263
17264         PR target/43635
17265         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
17266         calls for -fpic -m31 if they have been sibcall optimized.
17267
17268 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
17269
17270         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
17271         ar.lc fixed and call-used.
17272
17273         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
17274
17275 2010-04-19  Jan Hubicka  <jh@suse.cz>
17276
17277         * opts.c (decode_options): Disable whpr incompatible passes.
17278         * lto/lto.c (lto_1_to_1_map): Skip clones.
17279         (read_cgraph_and_symbols): Do not mark everything as needed.
17280         (do_whole_program_analysis): Do map only after optimizing;
17281         set proper cgraph_state; use passmanager.
17282
17283 2010-04-19  DJ Delorie  <dj@redhat.com>
17284
17285         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
17286         POINTER_PLUS_EXPR and fix them.
17287
17288 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
17289
17290         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
17291         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
17292         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
17293         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
17294         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
17295         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
17296         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
17297         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
17298         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
17299         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
17300         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
17301
17302 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
17303
17304         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
17305         (check_cond_move_block): Likewise.
17306         (cond_move_process_if_block): Likewise.
17307         (noce_find_if_block): Improve formatting.
17308         (find_if_header): Pass 0 to memset and tweak conditions.
17309         (cond_exec_find_if_block): Fix long lines and tweak conditions.
17310
17311 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
17312
17313         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
17314         for -gdwarf-4.
17315
17316         PR middle-end/43337
17317         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
17318         with non-local decl doesn't need chain.
17319
17320 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
17321
17322         * ira-color.c (allocno_reload_assign): Avoid accumulating
17323         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
17324
17325 2010-04-19  Martin Jambor  <mjambor@suse.cz>
17326
17327         * gimple.h (create_tmp_reg): Declare.
17328         * gimplify.c (create_tmp_reg): New function.
17329         (gimplify_return_expr): Use create_tmp_reg.
17330         (gimplify_omp_atomic): Likewise.
17331         (gimple_regimplify_operands): Likewise.
17332         * tree-dfa.c (make_rename_temp): Likewise.
17333         * tree-predcom.c (predcom_tmp_var): Likewise.
17334         (reassociate_to_the_same_stmt): Likewise.
17335         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
17336         (get_replaced_param_substitute): Likewise.
17337         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
17338         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
17339         * tree-ssa-pre.c (get_representative_for): Likewise.
17340         (create_expression_by_pieces): Likewise.
17341         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
17342         (create_tailcall_accumulator): Likewise.
17343
17344 2010-04-19  Martin Jambor  <mjambor@suse.cz>
17345
17346         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
17347         new_stmt.
17348         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
17349
17350 2010-04-19  Richard Guenther  <rguenther@suse.de>
17351
17352         PR tree-optimization/43796
17353         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
17354         from SCEV in the lattice.
17355         (vrp_visit_phi_node): Dump change.
17356
17357 2010-04-19  Richard Guenther  <rguenther@suse.de>
17358
17359         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
17360         * configure: Re-generated.
17361
17362 2010-04-19  Richard Guenther  <rguenther@suse.de>
17363
17364         PR tree-optimization/43783
17365         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
17366         constant ARRAY_REF operands two and three if possible.
17367
17368 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
17369
17370         PR target/43766
17371         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
17372
17373 2010-04-19  Jie Zhang  <jie@codesourcery.com>
17374
17375         PR target/43662
17376         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
17377
17378 2010-04-19  Ira Rosen  <irar@il.ibm.com>
17379
17380         PR tree-optimization/37027
17381         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
17382         and macro to access it.
17383         (vectorizable_reduction): Add argument.
17384         (vect_get_slp_defs): Likewise.
17385         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
17386         statements for possible use in SLP.
17387         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
17388         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
17389         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
17390         add new argument.
17391         (vectorizable_reduction): Likewise.
17392         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
17393         vect_get_slp_defs.
17394         (vectorizable_type_demotion, vectorizable_type_promotion,
17395         vectorizable_store): Likewise.
17396         (vect_analyze_stmt): Update call to vectorizable_reduction.
17397         (vect_transform_stmt): Likewise.
17398         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
17399         (vect_build_slp_tree): Fix indentation. Check that there are no loads
17400         from different interleaving chains in same node.
17401         (vect_slp_rearrange_stmts): New function.
17402         (vect_supported_load_permutation_p): Allow load permutations for
17403         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
17404         inside SLP nodes if necessary.
17405         (vect_analyze_slp_instance): Handle reductions.
17406         (vect_analyze_slp): Try to build SLP instances originating from groups
17407         of reductions.
17408         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
17409         (vect_get_constant_vectors): Create initial vectors for reductions
17410         according to reduction code. Add new argument.
17411         (vect_get_slp_defs): Add new argument, pass it to
17412         vect_get_constant_vectors.
17413         (vect_schedule_slp_instance): Remove SLP tree root statements.
17414
17415 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
17416
17417         * tree.h (ENUM_IS_SCOPED): Define.
17418         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
17419         for ENUM_IS_SCOPED enums.
17420
17421 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
17422
17423         * fold-const.c (fold_comparison): Use ssizetype.
17424         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
17425         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
17426         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
17427         * tree-object-size.c (compute_object_sizes): Use size_type_node.
17428
17429         * tree.h (initialize_sizetypes): Remove parameter.
17430         (build_common_tree_nodes): Remove second parameter.
17431         * stor-layout.c (initialize_sizetypes): Remove parameter.
17432         Always create an unsigned type.
17433         (set_sizetype): Assert that the passed type is unsigned and simplify.
17434         * tree.c (build_common_tree_nodes): Remove second parameter.
17435         Adjust call to initialize_sizetypes.
17436         * c-decl.c (c_init_decl_processing): Remove second argument in call to
17437         build_common_tree_nodes.
17438
17439 2010-04-18  Matthias Klose  <doko@ubuntu.com>
17440
17441         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
17442
17443 2010-04-18  Ira Rosen  <irar@il.ibm.com>
17444
17445         PR tree-optimization/43771
17446         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
17447         load permutation doesn't have gaps.
17448
17449 2010-04-18  Jan Hubicka  <jh@suse.cz>
17450
17451         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
17452         (sse_prologue_save_insn expander): Use new pattern.
17453         (sse_prologue_save_insn1): New pattern and splitter.
17454         (sse_prologue_save_insn): Update to deal also with 64bit aligned
17455         blocks.
17456         * i386.c (setup_incoming_varargs_64): Do not compute jump
17457         destination here.
17458         (ix86_gimplify_va_arg): Update alignment needed.
17459         (ix86_local_alignment): Do not align all local arrays to 128bit.
17460
17461 2010-04-17  Jan Hubicka  <jh@suse.cz>
17462
17463         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
17464
17465 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
17466
17467         * arm.md (negdi2): Remove redundant code to force values into a
17468         register.
17469
17470 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
17471
17472         * arm/bpabi.S: Add EABI alignment attributes to objects.
17473         * arm/bpabi-v6m.S: Likewise.
17474         * arm/crti.asm: Likewise.
17475         * arm/crtn.asm: Likewise.
17476         * arm/lib1funcs.asm: Likewise.
17477         * arm/libunwind.S: Likewise.
17478
17479 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
17480
17481         * arm-protos.h (tune_params): New structure.
17482         * arm.c (current_tune): New variable.
17483         (arm_constant_limit): Delete.
17484         (struct processors): Add pointer to the tune parameters.
17485         (arm_slowmul_tune): New tuning option.
17486         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
17487         (all_cores): Adjust to pick up the tuning model.
17488         (arm_constant_limit): New function.
17489         (arm_override_options): Select the appropriate tuning model.  Delete
17490         initialization of arm_const_limit.
17491         (arm_split_constant): Use the new constant-limit model.
17492         (arm_rtx_costs): Pick up the current tuning model.
17493         * arm.md (is_strongarm, is_xscale): Delete.
17494         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
17495         for Xscale variant architectures.
17496         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
17497
17498 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17499
17500         * config/arm/arm.c (arm_gen_constant): Remove unused variable
17501         can_shift.
17502         (arm_rtx_costs_1): Remove unused variable extra_cost.
17503         (arm_unwind_emit_set): Use variable offset.
17504         (thumb1_output_casesi): Remove unused variable flags.
17505
17506 2010-04-16  Jeff Law  <law@redhat.com>
17507
17508         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
17509         needing assignment rather than doing a two-phase assignment.  Remove
17510         unused variable 'm'.
17511
17512 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
17513
17514         PR bootstrap/43767
17515         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
17516
17517 2010-04-16  Doug Kwan  <dougkwan@google.com>
17518
17519         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
17520         (next_operand_entry_id): New static variable.
17521         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
17522         (add_to_ops_vec): Assigned unique ID to operand entry.
17523         (struct oecount_s): New field ID.
17524         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
17525         (undistribute_ops_list): Assign unique IDs to oecounts.
17526         (init_reassoc): reset next_operand_entry_id.
17527
17528 2010-04-16  Doug Kwan  <dougkwan@google.com>
17529
17530         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
17531         missing left parenthesis.
17532
17533 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
17534
17535         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
17536         *btdi_rex64 using SWI48 mode iterator.
17537         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
17538         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
17539         *jcc_btdi_mask_rex64.
17540
17541 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
17542
17543         * double-int.h (tree_to_double_int): Convert to macro.
17544         * double-int.c (tree_to_double_int): Remove.
17545
17546 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
17547
17548         PR debug/43762
17549         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
17550         with want_address 2 and in case a single element list might be
17551         possible, call it again with want_address 0.
17552
17553 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
17554
17555         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
17556         case 'W' print operands for HI mode.
17557         * config/h8300/h8300.h (Y0, Y2) : New constraints.
17558         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
17559         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
17560         * config/h8300/predicate.md (bit_register_indirect_operand): New.
17561
17562         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
17563
17564         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
17565         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
17566         #xx:3 and #xx:4 mode.
17567
17568         * config/h8300/h8300.md (inverted load with HImode dest): Add
17569         support for H8300SX.
17570
17571         * config/h8300/predicate.md (bit_operand): Allow immediate values that
17572         satisfy 'U' constraint.
17573
17574 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17575
17576         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
17577         * configure: Regenerate.
17578         * config.in: Regenerate.
17579         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
17580         works.
17581
17582 2010-04-16  Richard Guenther  <rguenther@suse.de>
17583
17584         * tree.h (struct tree_decl_minimal): Move pt_uid ...
17585         (struct tree_decl_common): ... here.
17586         (DECL_PT_UID): Adjust.
17587         (SET_DECL_PT_UID): Likewise.
17588         (DECL_PT_UID_SET_P): Likewise.
17589
17590 2010-04-16  Richard Guenther  <rguenther@suse.de>
17591
17592         PR tree-optimization/43572
17593         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
17594         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
17595         * tree-flow.h (is_call_clobbered): Remove.
17596         * tree-flow-inline.h (is_call_clobbered): Likewise.
17597         * tree-dfa.c (dump_variable): Do not dump call clobber state.
17598         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
17599         (execute_return_slot_opt): Adjust.
17600         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
17601         check for call clobbered vars here.
17602         (find_tail_calls): Move tailcall verification to the
17603         proper place.
17604
17605 2010-04-16  Diego Novillo  <dnovillo@google.com>
17606
17607         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
17608
17609 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
17610
17611         PR target/40603
17612         * config/arm/arm.md (cbranchqi4): New pattern.
17613         * config/arm/predicates.md (const0_operand,
17614         cbranchqi4_comparison_operator): New predicates.
17615
17616 2010-04-16  Richard Guenther  <rguenther@suse.de>
17617
17618         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
17619         (dump_gimple_stmt): Likewise.
17620
17621 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
17622
17623         * recog.h (struct recog_data): New field is_operator.
17624         (struct insn_operand_data): New field is_operator.
17625         * recog.c (extract_insn): Set recog_data.is_operator.
17626         * genoutput.c (output_operand_data): Emit code to set the
17627         is_operator field.
17628         * reload.c (find_reloads): Use it rather than testing for an
17629         empty constraint string.
17630
17631         PR target/41514
17632         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
17633         If the previous insn is a cbranchsi4_insn with the same arguments,
17634         omit the compare instruction.
17635
17636         * config/arm/arm.md (addsi3_cbranch): If destination is a high
17637         register, inputs must be low registers and we need a low register
17638         scratch.  Handle alternative 2 like alternative 3.
17639
17640 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
17641
17642         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
17643         don't call get_addr on both.  If one expression is a VALUE and
17644         the other a REG, check VALUE's locs if the REG isn't among them.
17645
17646 2010-04-16  Christian Bruel  <christian.bruel@st.com>
17647
17648         * config/sh/sh.h (sh_frame_pointer_required): New function.
17649         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
17650         (flag_omit_frame_pointer) Set.
17651         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
17652         (rounded_frame_size): Adjust size with outgoing_args_size.
17653         (sh_set_return_address): Must return from stack pointer.
17654         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
17655         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
17656         (ACCUMULATE_OUTGOING_ARGS): Define.
17657         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
17658         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
17659
17660 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
17661
17662         PR target/43471
17663         * config/sh/sh.c (sh_legitimize_reload_address): Use
17664         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
17665         Remove a unneeded check for offset_base.
17666
17667 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
17668
17669         * configure: Regenerated.
17670
17671 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17672
17673         * config/s390/s390.c (s390_call_save_register_used): Switch back
17674         to HARD_REGNO_NREGS.
17675
17676 2010-04-15  Richard Guenther  <rguenther@suse.de>
17677
17678         * alias.c (alias_set_subset_of): Handle alias-set zero
17679         child properly.
17680
17681 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
17682             Julian Brown  <julian@codesourcery.com>
17683
17684         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
17685         alternatives according to use of high and low regs.
17686         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17687         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
17688         optimizing for size on Thumb-2.
17689
17690 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
17691
17692         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
17693
17694 2010-04-15  Richard Guenther  <rguenther@suse.de>
17695
17696         * tree-ssa-structalias.c (struct variable_info): Add
17697         is_fn_info flag.
17698         (new_var_info): Initialize it.
17699         (dump_constraints): Support printing last added constraints.
17700         (debug_constraints): Adjust.
17701         (dump_constraint_graph): Likewise.
17702         (make_heapvar_for): Check for NULL cfun.
17703         (get_function_part_constraint): New function.
17704         (get_fi_for_callee): Likewise.
17705         (find_func_aliases): Properly implement IPA PTA constraints.
17706         (process_ipa_clobber): New function.
17707         (find_func_clobbers): Likewise.
17708         (insert_into_field_list_sorted): Remove.
17709         (create_function_info_for): Properly allocate vars for IPA mode.
17710         Do not use insert_into_field_list_sorted.
17711         (create_variable_info_for): Properly generate constraints for
17712         global vars in IPA mode.
17713         (dump_solution_for_var): Always dump the solution.
17714         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
17715         (find_what_var_points_to): Adjust.
17716         (pt_solution_set): Change.
17717         (pt_solution_ior_into): New function.
17718         (pt_solution_empty_p): Export.
17719         (pt_solution_includes_global): Adjust.
17720         (pt_solution_includes_1): Likewise.
17721         (pt_solutions_intersect_1): Likewise.
17722         (dump_sa_points_to_info): Check some invariants.
17723         (solve_constraints): Move constraint dumping ...
17724         (compute_points_to_sets): ... here.
17725         (ipa_pta_execute): ... and here.
17726         (compute_may_aliases): Do not re-compute points-to info
17727         locally if IPA info is available.
17728         (ipa_escaped_pt): New global var.
17729         (ipa_pta_execute): Properly implement IPA PTA.
17730         * tree-into-ssa.c (dump_decl_set): Support dumping
17731         decls not in referenced-vars.
17732         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
17733         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
17734         (dump_points_to_solution): Likewise.
17735         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
17736         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
17737         (remap_gimple_stmt): Reset call clobber/use information if necessary.
17738         (copy_decl_to_var): Copy DECL_PT_UID.
17739         (copy_result_decl_to_var): Likewise.
17740         * tree.c (make_node_stat): Initialize DECL_PT_UID.
17741         (copy_node_stat): Copy it.
17742         * tree.h (DECL_PT_UID): New macro.
17743         (SET_DECL_PT_UID): Likewise.
17744         (DECL_PT_UID_SET_P): Likewise.
17745         (struct tree_decl_minimal): Add pt_uid member.
17746         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
17747         (pt_solution_empty_p): Declare.
17748         (pt_solution_set): Adjust.
17749         (ipa_escaped_pt): Declare.
17750         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
17751         * gimple-pretty-print.c (pp_points_to_solution): New function.
17752         (dump_gimple_call): Dump call clobber/use information.
17753         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
17754         * tree-pass.h (TDF_ALIAS): New dump option.
17755         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
17756         * doc/invoke.texi (-fipa-pta): Update documentation.
17757
17758 2010-04-15  Richard Guenther  <rguenther@suse.de>
17759
17760         * Makefile.in (OBJS-common): Add gimple-fold.o.
17761         (gimple-fold.o): New rule.
17762         * tree.h (maybe_fold_offset_to_reference,
17763         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
17764         prototypes ...
17765         * gimple.h: ... here.
17766         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
17767         may_propagate_address_into_dereference): Move prototypes ...
17768         * gimple.h: ... here.
17769         * tree-ssa-ccp.c (get_symbol_constant_value,
17770         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
17771         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
17772         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
17773         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
17774         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
17775         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
17776         gimplify_and_update_call_from_tree): Move ...
17777         * gimple-fold.c: ... here.  New file.
17778         (ccp_fold_builtin): Rename to ...
17779         (gimple_fold_builtin): ... this.
17780         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
17781
17782 2010-04-15  Richard Guenther  <rguenther@suse.de>
17783
17784         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
17785         fit_double_type, force_fit_type_double, add_double_with_sign,
17786         neg_double, mul_double_with_sign, lshift_double, rshift_double,
17787         lrotate_double, rrotate_double, div_and_round_double): Move ...
17788         * double-int.c: ... here.
17789         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
17790         add_double, neg_double, mul_double_with_sign, mul_double,
17791         lshift_double, rshift_double, lrotate_double, rrotate_double,
17792         div_and_round_double): Move prototypes ...
17793         * double-int.h: ... here.
17794
17795 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
17796
17797         PR target/43742
17798         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
17799         matching constraints to ensure inputs match the output.
17800
17801 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
17802
17803         PR target/43742
17804         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
17805         in an input-only operand.
17806
17807 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
17808
17809         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
17810         (double_int_not, double_int_lshift, double_int_rshift): Declare.
17811         (double_int_negative_p): Convert to static inline function.
17812         * double-int.c (double_int_lshift, double_int_lshift): New functions.
17813         (double_int_negative_p): Remove.
17814         * tree.h (lshift_double, rshift_double):
17815         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
17816         * fold-const.c (fold_convert_const_int_from_real,
17817         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
17818         (lshift_double): Change type of arith argument to bool.
17819         (rshift_double): Change type of arith argument to bool. Correct
17820         comment.
17821         * expmed.c (mask_rtx, lshift_value): (Ditto.).
17822
17823 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
17824
17825         PR target/21803
17826         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
17827         at the start and end of the then/else blocks, and omit them from the
17828         conversion.
17829         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
17830         argument; all callers changed.  Pass zero to old_insns_match_p instead.
17831         (flow_find_head_matching_sequence): New function.
17832         (old_insns_match_p): Check REG_EH_REGION notes for calls.
17833         * basic-block.h (flow_find_cross_jump,
17834         flow_find_head_matching_sequence): Declare functions.
17835
17836 2010-04-14  Jason Merrill  <jason@redhat.com>
17837
17838         PR c++/36625
17839         * c-common.c (attribute_takes_identifier_p): New fn.
17840         * c-common.h: Declare it.
17841
17842 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17843
17844         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
17845         splitter condition.
17846         (*udivmod<mode>4): Ditto.
17847
17848 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17849
17850         * config/i386/i386.md (maxmin_int): Rename code attribute from
17851         maxminiprefix and update all users.
17852         (maxmin_float): Ditto from maxminfprefix.
17853         (logic): Ditto from logicprefix.
17854         (absneg_mnemonic): Ditto from absnegprefix.
17855         * config/i386/mmx.md: Update all users of maxminiprefix,
17856         maxminfprefix and logicprefix for rename.
17857         * config/i386/sse.md: Ditto.
17858         * config/i386/sync.md (sync_<code><mode>): Update for
17859         logicprefix rename.
17860
17861 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17862
17863         PR 42966
17864         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
17865         warnings converted to errors.
17866
17867 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17868
17869         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
17870         used insn_type variable.
17871         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
17872         to avoid set-but-not-used warning.
17873
17874 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17875
17876         * df-core.c (df_ref_debug): Change format string placeholder
17877         from 0x%x to %#x.
17878         * dwarf2asm.c (dw2_asm_output_data_raw,
17879         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
17880         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
17881         * dwarf2out.c (output_cfi, output_cfi_directive,
17882         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
17883         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
17884         Ditto.
17885         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
17886         * print-rtl.c (print_rtx): Ditto.
17887
17888 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17889
17890         PR middle-end/42694
17891         * builtins.c (expand_builtin_pow_root): New function to expand pow
17892         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
17893         series of sqrt and cbrt calls under -ffast-math.
17894         (expand_builtin_pow): Call it.
17895
17896 2010-04-14  Michael Matz  <matz@suse.de>
17897
17898         PR tree-optimization/42963
17899         * tree-cfg.c (touched_switch_bbs): New static variable.
17900         (group_case_labels_stmt): New function broken out from ...
17901         (group_case_labels): ... here, use the above.
17902         (start_recording_case_labels): Allocate touched_switch_bbs.
17903         (end_recording_case_labels): Deallocate it, call
17904         group_case_labels_stmt.
17905         (gimple_redirect_edge_and_branch): Remember index of affected BB.
17906
17907 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17908
17909         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
17910         from insn template.
17911
17912 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17913
17914         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
17915
17916 2010-04-13  Jan Hubicka  <jh@suse.cz>
17917
17918         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
17919         of optimized out static functions.
17920         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
17921         cost computation.  Also sanity check for overflows.
17922         (update_caller_keys): Update cgraph_edge_badness call; properly
17923         update fibheap and sanity check that it is up to date.
17924         (add_new_edges_to_heap): Update cgraph_edge_badness.
17925         (cgraph_decide_inlining_of_small_function): Likewise;
17926         add sanity checking that badness in heap is up to date;
17927         improve dumping of reason; Update badness of calls to the
17928         offline copy of function currently inlined; dump badness
17929         of functions not inlined because of unit growth limits.
17930
17931 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
17932
17933         PR middle-end/32628
17934         * c-common.c (pointer_int_sum): Disregard overflow that occured only
17935         because of sign-extension change when converting to sizetype here...
17936         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
17937
17938         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
17939         the folding to constants.  Remove redundant final conversion.
17940         (fold_binary) <associate>: Do not associate if the re-association of
17941         constants alone overflows.
17942         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
17943         to the end of the list.
17944         (multiple_of_p) <COND_EXPR>: New case.
17945
17946 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17947
17948         * opt-functions.awk (opt_sanitized_name): New.
17949         (opt_enum): New.
17950         * optc-gen.awk: Use it
17951         * opth-gen.awk: Use it.
17952
17953 2010-04-13  Martin Jambor  <mjambor@suse.cz>
17954
17955         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
17956         (sra_modify_assign): Delete stmts loading dead data even if racc has no
17957         children.  Call replace_uses_with_default_def_ssa_name to handle
17958         SSA_NAES on lhs.
17959
17960 2010-04-13  Michael Matz  <matz@suse.de>
17961
17962         PR middle-end/43730
17963         * builtins.c (expand_builtin_interclass_mathfn): Also create
17964         a register if the predicate doesn't match.
17965
17966 2010-04-13  Diego Novillo  <dnovillo@google.com>
17967
17968         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
17969         * c-pch.c: Include timevar.h.
17970         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
17971         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
17972         * ggc-common.c: Include timevar.h.
17973         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
17974         * timevar.def (TV_PCH_SAVE): Define.
17975         (TV_PCH_CPP_SAVE): Define.
17976         (TV_PCH_PTR_REALLOC): Define.
17977         (TV_PCH_PTR_SORT): Define.
17978         (TV_PCH_RESTORE): Define.
17979         (TV_PCH_CPP_RESTORE): Define.
17980
17981 2010-04-13  Michael Matz  <matz@suse.de>
17982
17983         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
17984         into MINUS_EXPRs.
17985         (can_reassociate_p): New function.
17986         (break_up_subtract_bb, reassociate_bb): Use it.
17987
17988 2010-04-13  Richard Guenther  <rguenther@suse.de>
17989
17990         PR bootstrap/43737
17991         * builtins.c (c_readstr): Fix assert.
17992
17993 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
17994
17995         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
17996         when generating cltd insn.
17997
17998         (*ashl<mode>3_1): Remove special handling for register operand 2.
17999         (*ashlsi3_1_zext): Ditto.
18000         (*ashlhi3_1): Ditto.
18001         (*ashlhi3_1_lea): Ditto.
18002         (*ashlqi3_1): Ditto.
18003         (*ashlqi3_1_lea): Ditto.
18004         (*<shiftrt_insn><mode>3_1): Ditto.
18005         (*<shiftrt_insn>si3_1_zext): Ditto.
18006         (*<shiftrt_insn>qi3_1_slp): Ditto.
18007         (*<rotate_insn><mode>3_1): Ditto.
18008         (*<rotate_insn>si3_1_zext): Ditto.
18009         (*<rotate_insn>qi3_1_slp): Ditto.
18010
18011 2010-04-13  Richard Guenther  <rguenther@suse.de>
18012
18013         * tree-ssa-structalias.c (callused_id): Remove.
18014         (call_stmt_vars): New.
18015         (get_call_vi): Likewise.
18016         (lookup_call_use_vi): Likewise.
18017         (lookup_call_clobber_vi): Likewise.
18018         (get_call_use_vi): Likewise.
18019         (get_call_clobber_vi): Likewise.
18020         (make_transitive_closure_constraints): Likewise.
18021         (handle_const_call): Adjust to do per-call call-used handling.
18022         (handle_pure_call): Likewise.
18023         (find_what_var_points_to): Remove general callused handling.
18024         (init_base_vars): Likewise.
18025         (init_alias_vars): Initialize call_stmt_vars.
18026         (compute_points_to_sets): Process call-used and call-clobbered
18027         vars for call statements.
18028         (delete_points_to_sets): Free call_stmt_vars.
18029
18030 2010-04-13  Richard Guenther  <rguenther@suse.de>
18031
18032         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18033         Only add RW dependence for dependence distance zero.
18034         Adjust maximal vectorization factor according to dependences.
18035         Move alignment handling ...
18036         (vect_find_same_alignment_drs): ... here.  New function.
18037         (vect_analyze_data_ref_dependences): Adjust.
18038         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
18039         (vect_analyze_data_refs): Adjust minimal vectorization factor
18040         according to data references.
18041         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
18042         dependences before determining the vectorization factor.
18043         Analyze alignment after determining the vectorization factor.
18044         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
18045         dependences before alignment.
18046         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
18047         Adjust prototype.
18048         (vect_analyze_data_refs): Likewise.
18049         (MAX_VECTORIZATION_FACTOR): New define.
18050
18051 2010-04-13  Duncan Sands  <baldrick@free.fr>
18052
18053         * except.h (lang_eh_type_covers): Remove.
18054         * except.c (lang_eh_type_covers): Likewise.
18055
18056 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18057             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18058
18059         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
18060         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
18061         UNITS_PER_LONG where it is ABI relevant.
18062         (s390_return_addr_rtx): Likewise.
18063         (s390_back_chain_rtx): Likewise.
18064         (s390_frame_area): Likewise.
18065         (s390_frame_info): Likewise.
18066         (s390_initial_elimination_offset): Likewise.
18067         (save_gprs): Likewise.
18068         (s390_emit_prologue): Likewise.
18069         (s390_emit_epilogue): Likewise.
18070         (s390_function_arg_advance): Likewise.
18071         (s390_function_arg): Likewise.
18072         (s390_va_start): Likewise.
18073         (s390_gimplify_va_arg): Likewise.
18074         (s390_function_profiler): Likewise.
18075         (s390_optimize_prologue): Likewise.
18076         (s390_rtx_costs): Likewise.
18077         (s390_secondary_reload): Likewise.
18078         (s390_promote_function_mode): Likewise.
18079         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
18080         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
18081         registers available.
18082         (s390_unwind_word_mode): New function.
18083         (s390_function_value): Split 64 bit values into register pair if
18084         used as return value.
18085         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
18086         function call parameters.  Handle parallels.
18087         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
18088         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
18089         (DWARF_CIE_DATA_ALIGNMENT): New macro.
18090         (s390_expand_setmem): Remove unused variable src_addr.
18091         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
18092         deal with 64 bit registers.
18093         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
18094         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
18095         (UNITS_PER_LONG): New macro.
18096         * libjava/include/s390-signal.h: Define extended ucontext
18097         structure containing the upper halfs of the 64 bit registers.
18098
18099 2010-04-13  Simon Baldwin  <simonb@google.com>
18100
18101         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
18102
18103 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
18104
18105         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
18106         rvalue on the RHS if the LHS is of a non-renamable type.
18107         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
18108
18109 2010-04-13  Matthias Klose  <doko@ubuntu.com>
18110
18111         * gcc.c (cc1_options): Handle -iplugindir before processing
18112         the cc1 spec. Only add -iplugindir once.
18113         (cpp_unique_options): Add -iplugindir option if -fplugin* options
18114         found.
18115         * common.opt (iplugindir): Remove `Separate' property, initialize.
18116         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
18117         option.
18118         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
18119         (distclean): Remove plugin dir.
18120         * doc/invoke.texi: Document -iplugindir.
18121
18122 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
18123
18124         * doc/plugins.texi (Loading Plugins): Document short
18125         -fplugin=foo option.
18126         (Plugin API): Mention default_plugin_dir_name function.
18127
18128         * gcc.c (find_file_spec_function): Add new declaration.
18129         (static_spec_func): Use it for "find-file".
18130         (find_file_spec_function): Add new function.
18131         (cc1_options): Add -iplugindir option if -fplugin* options found.
18132
18133         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
18134
18135         * plugin.c (add_new_plugin): Updated comment, and handle short
18136         plugin name.
18137         (default_plugin_dir_name): Added new function.
18138
18139         * common.opt (iplugindir): New option to set the plugin directory.
18140
18141 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
18142
18143         * config/i386/i386.md (any_rotate): New code iterator.
18144         (rotate_insn): New code attribute.
18145         (rotate): Ditto.
18146         (SWIM124): New mode iterator.
18147         (<rotate_insn>ti3): New expander.
18148         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
18149         any_rotate code iterator.
18150         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
18151         using any_rotate code iterator and SWIM124 mode iterator.
18152         (ix86_rotlti3): New insn_and_split pattern.
18153         (ix86_rotrti3): Ditto.
18154         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
18155         ix86_rotl{di,ti}3 patterns.
18156         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
18157         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
18158         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
18159         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
18160         code iterator and SWI mode iterator.
18161         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
18162         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
18163         code iterator.
18164         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
18165         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
18166         (bswap rotatert splitter): Add splitter.
18167         (bswap splitter): Macroize splitter using any_rotate code iterator.
18168         Add insn predicate to split only for TARGET_USE_XCHGB or when
18169         optimizing function for size.
18170
18171 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
18172
18173         * config/pa/pa.c (emit_move_sequence): Remove use of
18174         deleted variable flag_argument_noalias.
18175
18176 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18177
18178         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
18179         configurations.
18180         Add to unsupported targets list.
18181         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
18182         sparc*-sun-solaris2.[567]* from target lists.
18183         * configure: Regenerate.
18184         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
18185         removal.
18186         Remove Solaris 7 patch references.
18187         (Specific, sparc-sun-solaris2.7): Removed.
18188         (sparc-sun-solaris2*): Update Solaris 7 example.
18189         (sparc64-*-solaris2*): Likewise.
18190
18191 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18192
18193         * config.build (alpha*-dec-osf4*): Remove.
18194         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
18195         of obsolete configurations.
18196         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
18197         support.
18198         * config/alpha/t-osf4: Renamed to ...
18199         * config/alpha/t-osf5: ... this.
18200         * config/alpha/osf.h: Renamed to ...
18201         * config/alpha/osf5.h: ... this.
18202         Merged old osf5.h contents.
18203         Update comments.
18204         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
18205         (EXTRA_SPECS): Removed.
18206         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
18207         reflect removal of Tru64 UNIX V4.0/V5.0 support.
18208         Document that.
18209
18210 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18211
18212         * doc/contrib.texi (Contributors, Rainer Orth): Update.
18213
18214 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
18215
18216         PR/43702
18217         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
18218         __thiscall convention.
18219
18220 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
18221
18222         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
18223         orig_base.
18224         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
18225
18226 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
18227
18228         * function.c (assign_parms_initialize_all): Add unused attribute
18229         to fntype.
18230
18231 2010-04-12  Richard Guenther  <rguenther@suse.de>
18232
18233         * gsstruct.def (GSS_CALL): New.
18234         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
18235         * gimple.h: Include tree-ssa-alias.h.
18236         (struct gimple_statement_call): New.
18237         (union gimple_statement_struct_d): Add gimple_call member.
18238         (gimple_call_reset_alias_info): Declare.
18239         (gimple_call_use_set): New function.
18240         (gimple_call_clobber_set): Likewise.
18241         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
18242         * gimple.c (gimple_call_reset_alias_info): New function.
18243         (gimple_build_call_1): Call it.
18244         * lto-streamer-in.c (input_gimple_stmt): Likewise.
18245         * tree-inline.c (remap_gimple_stmt): Likewise.
18246         (expand_call_inline): Remove callused handling.
18247         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
18248         * tree-dfa.c (dump_variable): Likewise.
18249         * tree-parloops.c (parallelize_loops): Likewise.
18250         * tree-ssa.c (init_tree_ssa): Likewise.
18251         (delete_tree_ssa): Likewise.
18252         * tree-flow-inline.h (is_call_used): Remove.
18253         * tree-flow.h (struct gimple_df): Remove callused member.
18254         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
18255         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
18256         (ref_maybe_used_by_call_p_1): Simplify.
18257         (call_may_clobber_ref_p_1): Likewise.
18258         * tree-ssa-structalias.c (compute_points_to_sets): Set
18259         the call stmt used and clobbered sets.
18260         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
18261         (find_tail_calls): Verify the tail call.
18262
18263 2010-04-12  Richard Guenther  <rguenther@suse.de>
18264
18265         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
18266         single-iteration always-inline inlining.
18267         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
18268         (cgraph_decide_inlining): Do not handle always-inline specially.
18269         (try_inline): Remove always-inline cycle detection special case.
18270         Do not recurse on always-inlines.
18271         (cgraph_early_inlining): Do not iterate if not optimizing.
18272         (cgraph_gate_early_inlining): remove.
18273         (pass_early_inline): Run unconditionally.
18274         (gate_cgraph_decide_inlining): New function.
18275         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
18276         not inlining or optimizing.
18277         (cgraph_decide_inlining_of_small_functions): Also consider
18278         always-inline functions.
18279         (cgraph_default_inline_p): Return true for nodes which should
18280         disregard inline limits.
18281         (estimate_function_body_sizes): Assume zero size and time for
18282         nodes which are marked as disregarding inline limits.
18283         (cgraph_decide_recursive_inlining): Do not perform recursive
18284         inlining on always-inline nodes.
18285
18286 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
18287
18288         PR bootstrap/43699
18289         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
18290         for exprs satisfying handled_component_p.
18291
18292 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
18293
18294         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
18295         non-constant aggregate elements.
18296
18297         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
18298         is a real initialization.
18299
18300 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
18301
18302         PR c/36774
18303         * c-decl.c (start_function): Move forward check for nested function.
18304
18305 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
18306
18307         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
18308         * config/sh/sh.c: Include reload.h.
18309         (sh_legitimize_reload_address): New.
18310         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
18311         sh_legitimize_reload_address.
18312
18313 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
18314
18315         * config/sh/sh.md (*movqi_pop): New insn pattern.
18316         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
18317
18318 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
18319
18320         * config/i386/i386.md (any_shiftrt): New code iterator.
18321         (shiftrt_insn): New code attribute.
18322         (shiftrt): Ditto.
18323         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
18324         using any_shiftrt code iterator.
18325         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
18326         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
18327         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
18328         pattern from corresponding peephole2 patterns.
18329         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
18330         using any_shiftrt code iterator.
18331         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
18332         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
18333         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
18334         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
18335         *{ashr,lshr}<mode>3_cmp_zext.
18336         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
18337
18338 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
18339
18340         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
18341         scratch register.
18342         (*lshr<mode>3_cconly): Ditto.
18343
18344 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
18345
18346         * config/i386/i386.md (lshr<mode>3): Macroize expander from
18347         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
18348         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
18349         pattern from *lshr{di,ti}3_1 and corresponding splitters using
18350         DWI mode iterator.
18351         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
18352         from corresponding peephole2 patterns.
18353         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
18354         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
18355         and *lshrdi3_1_rex64 using SWI mode iterator.
18356         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
18357         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
18358         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
18359         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
18360         and *lshrdi3_cmp_rex64 using SWI mode iterator.
18361         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
18362         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
18363         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
18364         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
18365         SWI mode iterator.
18366
18367 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
18368
18369         * config/i386/i386.md (ashr<mode>3): Macroize expander from
18370         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
18371         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
18372         pattern from *ashr{di,ti}3_1 and corresponding splitters using
18373         DWI mode iterator.
18374         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
18375         from corresponding peephole2 patterns.
18376         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
18377         (ashrsi3_cvt): Rename from ashrsi3_31.
18378         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
18379         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
18380         and x86_64_shift_adj_3 using SWI48 mode iterator.
18381         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
18382         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
18383         and *ashrdi3_1_rex64 using SWI mode iterator.
18384         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
18385         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
18386         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
18387         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
18388         and *ashrdi3_cmp_rex64 using SWI mode iterator.
18389         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
18390         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
18391         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
18392         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
18393         SWI mode iterator.
18394         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
18395         * config/i386/i386.c (ix86_split_ashr): Update for renamed
18396         x86_shift<mode>_adj_3 expanders.
18397
18398 2010-04-10  Wei Guozhi  <carrot@google.com>
18399
18400         PR target/42601
18401         * config/arm/arm.c (arm_pic_static_addr): New function.
18402         (legitimize_pic_address): Call arm_pic_static_addr when it detects
18403         a static symbol.
18404         (arm_output_addr_const_extra): Output expression for new pattern.
18405         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
18406
18407 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
18408
18409         * ira-costs.c (record_reg_classes): Ignore alternatives that are
18410         not enabled.
18411
18412         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
18413         * web.c: Include "insn-config.h" and "recog.h".
18414         (union_match_dups): New function.
18415         (web_main): Call it.
18416         (union_defs): Don't try to recognize match_dups.
18417
18418         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
18419         if doing so would replace the entire pattern.
18420
18421 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
18422
18423         PR target/43707
18424         PR target/43709
18425         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
18426         and splitter pattern.  Change splitter operand 1 predicate to
18427         nonmemory_operand.
18428
18429 2010-04-09  Martin Jambor  <mjambor@suse.cz>
18430
18431         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
18432         lattices are addresses of CONST_DECLs with the same initial value.
18433         (ipcp_print_all_lattices): Print values of CONST_DECLs.
18434         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
18435
18436 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
18437             Bernd Schmidt  <bernds@codesourcery.com>
18438
18439         * loop-invariant.c (replace_uses): New static function.
18440         (move_invariant_reg): Use it to ensure we can replace the uses.
18441
18442 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
18443
18444         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
18445         function template.
18446         (picochip_override_options): Enable section anchors only above -O1.
18447         (picochip_reorg): Fixed a couple of build warnings.
18448
18449 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18450
18451         * configure.ac (plugin -rdynamic test): Log result.
18452         * configure: Regenerate.
18453         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
18454         (RDYNAMIC_SPEC): Define.
18455         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
18456
18457 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18458
18459         * configure.ac: Determine Sun ld version numbers.
18460         (comdat_group): Restrict GNU ld version checks to gld.
18461         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
18462         (enable_comdat): Support --enable-comdat.
18463         * configure: Regenerate.
18464         * doc/install.texi (Configuration): Document --enable-comdat.
18465
18466 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18467
18468         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
18469         * config/sol2-gld.h: ... here.
18470         * config.gcc (sparc*-*-solaris2*): Reflect this.
18471         (i[34567]86-*-solaris2*): Use it.
18472
18473 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
18474
18475         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
18476         setup_clocks_p.
18477         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
18478
18479 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18480
18481         PR 42965
18482         * diagnostic.c (diagnostic_initialize): Initialize
18483         some_warnings_are_errors.
18484         (diagnostic_finish): New.
18485         (diagnostic_action_after_output): Call it before exiting.
18486         (diagnostic_report_diagnostic): Do not print message here. Set
18487         some_warnings_are_errors.
18488         * diagnostic.h (diagnostic_context): Delete
18489         issue_warnings_are_errors_message. Add some_warnings_are_errors.
18490         (diagnostic_finish): Declare.
18491         * toplev.c (toplev_main): Call it before exit.
18492
18493 2010-04-09  Jason Merrill  <jason@redhat.com>
18494
18495         PR c++/42623
18496         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
18497         for incomplete type.
18498
18499         PR c++/41788
18500         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
18501         based on a warning flag.
18502
18503 2010-04-09  Richard Guenther  <rguenther@suse.de>
18504
18505         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
18506
18507 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
18508
18509         PR bootstrap/43684
18510         * varasm.c (default_assemble_visibility): Wrap vars that are
18511         set, but unused, by targets without GAS.
18512         * config/rs6000/rs6000.c (paired_emit_vector_compare):
18513         Remove set, but unused, vars.
18514         (rs6000_legitimize_tls_address): Likewise.
18515         (altivec_expand_dst_builtin): Likewise.
18516         * config/darwin.c (machopic_classify_symbol): Likewise.
18517         (machopic_indirection_name): Likewise.
18518
18519 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
18520
18521         * config/i386/i386.md (DWI): New mode iterator.
18522         (S): New mode attribute.
18523         (shift_operand): Ditto.
18524         (shift_immediate_operand): Ditto.
18525         (ashl_input_operand): Ditto.
18526         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
18527         using SDWIM mode iterator.
18528         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
18529         pattern from *ashl{di,ti}3_1 and corresponding splitters using
18530         DWI mode iterator.
18531         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
18532         from corresponding peephole2 patterns.
18533         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
18534         and x86_64_shift_adj_1 using SWI48 mode iterator.
18535         (x86_shift<mode>_adj_2): Ditto.
18536         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
18537         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
18538         using SWI48 mode iterator.
18539         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
18540         *ashldi3_cmp_rex64 using SWI mode iterator.
18541         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
18542         *ashldi3_cconly_rex64 using SWI mode iterator.
18543         * config/i386/i386.c (ix86_split_ashl): Update for renamed
18544         x86_shift<mode>_adj_{1,2}.
18545         (ix86_split_ashr): Ditto.
18546         (ix86_split_lshr): Ditto.
18547
18548 2010-04-09  Richard Guenther  <rguenther@suse.de>
18549
18550         * target.h (builtin_conversion): Pass in input and output types.
18551         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
18552         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
18553         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
18554         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
18555
18556         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
18557         Handle AVX modes.
18558         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
18559
18560 2010-04-09  Richard Guenther  <rguenther@suse.de>
18561
18562         PR target/43152
18563         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
18564
18565 2010-04-09  Richard Guenther  <rguenther@suse.de>
18566
18567         * tree-vectorizer.h (struct _stmt_vec_info): Document
18568         that vectype is the type of the LHS.
18569         (supportable_widening_operation, supportable_narrowing_operation):
18570         Get both input and output vector types as arguments.
18571         (vect_is_simple_use_1): Declare.
18572         (get_same_sized_vectype): Likewise.
18573         * tree-vect-loop.c (vect_determine_vectorization_factor):
18574         Set STMT_VINFO_VECTYPE to the vector type of the def.
18575         (vectorizable_reduction): Adjust.
18576         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
18577         Adjust.  Specify the output vector type.
18578         (vect_pattern_recog_1): Adjust.
18579         * tree-vect-stmts.c (get_same_sized_vectype): New function.
18580         (vectorizable_call): Adjust.
18581         (vectorizable_conversion): Likewise.
18582         (vectorizable_operation): Likewise.
18583         (vectorizable_type_demotion): Likewise.
18584         (vectorizable_type_promotion): Likewise.
18585         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
18586         the def.
18587         (vect_is_simple_use_1): New function.
18588         (supportable_widening_operation): Get both input and output
18589         vector types.
18590         (supportable_narrowing_operation): Likewise.
18591         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
18592
18593 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
18594
18595         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
18596         __thiscall and _thiscall as predefined macros.
18597         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
18598         thiscall attribute handling.
18599         (ix86_comp_type_attributes): Likewise.
18600         (ix86_function_regparm): Likewise.
18601         (ix86_return_pops_args): Likewise.
18602         (init_cumulative_args): Likewise.
18603         (find_drap_reg): Likewise.
18604         (ix86_static_chain): Likewise.
18605         (x86_this_parameter): Likewise.
18606         (x86_output_mi_thunk): Likewise.
18607         (ix86_attribute_table): Add description for thiscall attribute.
18608         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
18609         * doc/extend.texi: Add documentation for thiscall.
18610
18611 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18612
18613         PR c++/28584
18614         * c.opt (Wint-to-pointer-cast): Available in C++.
18615         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
18616
18617 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
18618
18619         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
18620         * calls.c (expand_call): Pass the function type to aggregate_value_p.
18621         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
18622         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
18623         function type instead.  Reorder and simplify checks.
18624
18625         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
18626
18627 2010-04-08  Jing Yu  <jingyu@google.com>
18628             Zdenek Dvorak  <ook@ucw.cz>
18629
18630         PR tree-optimization/42720
18631         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
18632         loop unswitch conditions here from ...
18633         (tree_unswitch_single_loop): ... here.
18634
18635 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
18636
18637         * tree-if-conv.c: Fix comments and simplify logic.
18638
18639 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
18640
18641         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
18642         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
18643         (main_tree_if_conversion): Update call to tree_if_conversion.
18644
18645 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18646
18647         PR 42485
18648         * doc/invoke.texi (-b,-V): Delete.
18649         * doc/tm.texi: Do not mention -b.
18650         * gcc.c (display_help): Delete -b and -V.
18651         (process_command): Delete -b and -V.
18652         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
18653
18654 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
18655             Wolfgang Gellerich  <gellerich@de.ibm.com>
18656
18657         Implement target hook for loop unrolling
18658         * target.h (loop_unroll_adjust): Add a new target hook function.
18659         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
18660         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
18661         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
18662         (s390_loop_unroll_adjust): Implement the new target hook for s390.
18663         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
18664         target hook.
18665         (decide_unroll_stupid): Likewise.
18666
18667 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18668
18669         PR target/43643
18670         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
18671
18672 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18673
18674         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
18675         (Specific, *-*-solaris2*): Likewise.
18676         Don't prefer Sun as over GNU as.
18677
18678 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
18679
18680         * config/s390/s390.c (override_options): Adjust the z10 defaults
18681         for max-unroll-times, max-completely-peeled-insns
18682         and max-completely-peel-times.
18683
18684 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18685
18686         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
18687         instructions for z10.
18688         (s390_expand_setmem): Likewise.
18689         (s390_expand_cmpmem): Likewise.
18690
18691 2010-04-08  Richard Guenther  <rguenther@suse.de>
18692
18693         PR tree-optimization/43679
18694         * tree-ssa-pre.c (eliminate): Only propagate copies.
18695
18696 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
18697
18698         PR bootstrap/43681
18699         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
18700         set but not used variable warning.
18701
18702 2010-04-08  Wei Guozhi  <carrot@google.com>
18703
18704         PR target/41653
18705         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
18706         (arm_size_rtx_costs): Call the new function when optimized for size.
18707
18708 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
18709
18710         PR debug/43670
18711         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
18712         op0 is not a MEM, just return NULL instead of assertion
18713         failure.
18714         (discover_nonconstant_array_refs): Don't walk debug stmts.
18715
18716 2010-04-08  Doug Kwan  <dougkwan@google.com>
18717
18718         * configure.ac: Recognize gold and do not use its version number
18719         to test ld features.
18720         * configure: Regenerate.
18721
18722 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
18723
18724         PR middle-end/40815
18725         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
18726         (negate_value): Move code to push elements to broken_up_substracts ...
18727         (eliminate_plus_minus_pair): ... here.  Push operands that have no
18728         negative pair to plus_negates.
18729         (repropagate_negates, init_reassoc, fini_reassoc): Update.
18730
18731 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18732
18733         * doc/install.texi (Configuration): Move description of
18734         --enable-lto, --with-libelf*, --enable-gold from Java section to
18735         general section.
18736
18737         * doc/generic.texi (Working with declarations)
18738         (Function Properties, C and C++ Trees): Fix typos.
18739         * doc/sourcebuild.texi (Top Level): Likewise.
18740
18741 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
18742
18743         PR c/18624
18744         * tree.h (DECL_READ_P): Define.
18745         (struct tree_decl_common): Add decl_read_flag.
18746         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
18747         a set but not used warning.
18748         (merge_decls): Merge DECL_READ_P flag.
18749         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
18750         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
18751         * c-common.c (handle_used_attribute, handle_unused_attribute):
18752         Likewise.
18753         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
18754         New prototypes.
18755         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
18756         New functions.
18757         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
18758         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
18759         c_parser_binary_expression, c_parser_cast_expression,
18760         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
18761         Call default_function_array_read_conversion instead of
18762         default_function_array_conversion where needed.
18763         (c_parser_unary_expression, c_parser_conditional_expression,
18764         c_parser_postfix_expression_after_primary, c_parser_initelt):
18765         Likewise.  Call mark_exp_read where needed.
18766         (c_parser_statement_after_labels, c_parser_asm_operands,
18767         c_parser_typeof_specifier, c_parser_sizeof_expression,
18768         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
18769         where needed.
18770         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
18771         New.
18772         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
18773         (warn_unused_but_set_parameter): Default to warn_unused
18774         && extra_warnings.
18775         * doc/invoke.texi: Document -Wunused-but-set-variable and
18776         -Wunused-but-set-parameter.
18777
18778         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
18779         used count variable.
18780         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
18781         when operandN variables aren't used in the body of the expander
18782         or splitter.
18783         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
18784         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
18785         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
18786         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
18787         FOR_EACH_IMM_USE_ON_STMT): Likewise.
18788         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
18789         * tree.c (PROCESS_ARG): Likewise.
18790
18791 2010-04-07  Simon Baldwin  <simonb@google.com>
18792
18793         * diagnostic.h (diagnostic_override_option_index): New macro to
18794         set a diagnostic's option_index.
18795         * c-tree.h (c_cpp_error): Add warning reason argument.
18796         * opts.c (_warning_as_error_callback): New.
18797         (register_warning_as_error_callback): Store callback for
18798         warnings enabled via enable_warning_as_error.
18799         (enable_warning_as_error): Call callback, minor code tidy.
18800         * opts.h (register_warning_as_error_callback): Declare.
18801         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
18802         response to -Werror=.
18803         (c_common_init_options): Register warning_as_error_callback in opts.c.
18804         * common.opt: Add -Wno-cpp option.
18805         * c-common.c (struct reason_option_codes_t): Map cpp warning
18806         reason codes to gcc option indexes.
18807         * (c_option_controlling_cpp_error): New function, lookup the gcc
18808         option index for a cpp warning reason code.
18809         * (c_cpp_error): Add warning reason argument, call
18810         c_option_controlling_cpp_error for diagnostic_override_option_index.
18811         * doc/invoke.texi: Document -Wno-cpp.
18812
18813 2010-04-07  Richard Guenther  <rguenther@suse.de>
18814
18815         * ipa-reference.c (mark_load): Use get_base_address.
18816         (mark_store): Likewise.
18817
18818         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
18819         inserting GIMPLE_NOPs into the IL.
18820         * tree-ssa-structalias.c (get_constraint_for_component_ref):
18821         Explicitly strip handled components and indirect references.
18822
18823         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
18824         folding address expressions.
18825         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
18826         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
18827         operand_equal_p to compare decls.
18828         (ptr_deref_may_alias_decl_p): Likewise.
18829         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
18830         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
18831         Handle reversed comparison ops.
18832         * tree-sra.c (asm_visit_addr): Use get_base_address.
18833         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
18834         * ipa-reference.c (mark_address): Use get_base_address.
18835
18836 2010-04-07  Richard Guenther  <rguenther@suse.de>
18837
18838         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
18839         Propagate constants everywhere.
18840
18841 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
18842
18843         PR debug/43516
18844         * tree.c (MAX_INT_CACHED_PREC): Define.
18845         (nonstandard_integer_type_cache): New array.
18846         (build_nonstandard_integer_type): Cache results for precision
18847         <= MAX_INT_CACHED_PREC.
18848
18849 2010-04-07  Richard Guenther  <rguenther@suse.de>
18850
18851         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
18852         -fargument-noalias-global, -fargument-noalias-anything): Remove.
18853         * common.opt: Likewise.
18854         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
18855         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
18856         (nonoverlapping_memrefs_p): Likewise.
18857         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
18858         * opts.c (common_handle_option): Handle OPT_fargument_alias,
18859         OPT_fargument_noalias, OPT_fargument_noalias_anything and
18860         OPT_fargument_noalias_global for backward compatibility.
18861
18862 2010-04-07  Richard Guenther  <rguenther@suse.de>
18863
18864         PR tree-optimization/43270
18865         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
18866         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
18867         * tree-ssa-pre.c (phi_translate_1): Adjust.
18868         (fully_constant_expression): Split out vn_reference handling to ...
18869         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
18870         Fold reads from constant strings.
18871         (vn_reference_lookup): Handle fully constant references.
18872         (vn_reference_lookup_pieces): Likewise.
18873         * Makefile.in (expmed.o-warn): Add -Wno-error.
18874
18875 2010-04-07  Martin Jambor  <mjambor@suse.cz>
18876
18877         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
18878
18879 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
18880
18881         PR driver/41594
18882         * gcc.c: Add -static-libstdc++ to list of recognized options.
18883
18884 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18885
18886         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
18887
18888 2010-04-07  Richard Guenther  <rguenther@suse.de>
18889
18890         PR middle-end/42617
18891         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
18892         bases build simple mem attributes to retain points-to information.
18893
18894 2010-04-07  Richard Guenther  <rguenther@suse.de>
18895
18896         PR middle-end/42617
18897         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
18898         preserve points-to related information.
18899
18900 2010-04-07  Richard Guenther  <rguenther@suse.de>
18901
18902         PR middle-end/42617
18903         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
18904         discard plain indirect references.
18905         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
18906         * tree.c (tree_nop_conversion): Likewise.
18907
18908 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
18909
18910         PR debug/43628
18911         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
18912
18913 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
18914
18915         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
18916         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
18917
18918 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
18919
18920         * tree-if-conv.c: Fix indentation and comments.
18921
18922 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
18923
18924         * tree-if-conv.c: Sort static functions in topological order.
18925
18926 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
18927
18928         * tree-if-conv.c: Fix indentation and comments.
18929
18930 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18931
18932         PR middle-end/43519
18933         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
18934         lang_hooks.types.type_for_size instead of
18935         build_nonstandard_integer_type.
18936         When converting an unsigned type to signed, double its precision.
18937         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
18938         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
18939         (graphite_create_new_loop_guard): When ub + 1 wraps around,
18940         use lb <= ub.
18941
18942 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18943
18944         PR middle-end/43519
18945         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
18946         POINTER_PLUS_EXPR for pointer types.
18947
18948 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18949
18950         PR middle-end/43519
18951         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
18952         * graphite-clast-to-gimple.c: Include langhooks.h.
18953         (max_signed_precision_type): New.
18954         (max_precision_type): Takes two types as arguments.
18955         (precision_for_value): New.
18956         (precision_for_interval): New.
18957         (gcc_type_for_interval): New.
18958         (gcc_type_for_value): New.
18959         (gcc_type_for_clast_term): New.
18960         (gcc_type_for_clast_red): New.
18961         (gcc_type_for_clast_bin): New.
18962         (gcc_type_for_clast_expr): Split up into several functions.
18963         (gcc_type_for_clast_eq): Rewritten.
18964         (compute_bounds_for_level): New.
18965         (compute_type_for_level_1): New.
18966         (compute_type_for_level): New.
18967         (gcc_type_for_cloog_iv): Removed.
18968         (gcc_type_for_iv_of_clast_loop): Rewritten.
18969         (graphite_create_new_loop): Compute the lower and upper bound types
18970         with gcc_type_for_clast_expr.
18971         (graphite_create_new_loop_guard): Same.
18972         (find_cloog_iv_in_expr): Removed.
18973         (compute_cloog_iv_types_1): Removed.
18974         (compute_cloog_iv_types): Removed.
18975         (gloog): Do not call compute_cloog_iv_types.
18976         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
18977         GBB_CLOOG_IV_TYPES.
18978         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
18979         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
18980         (GBB_CLOOG_IV_TYPES): Removed.
18981
18982 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18983
18984         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
18985         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
18986         (detect_commutative_reduction): Same.
18987
18988 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18989
18990         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
18991         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
18992         argument.
18993         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
18994         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
18995         (rewrite_commutative_reductions_out_of_ssa): Same.
18996         * passes.c (execute_function_todo): Call verify_ssa for every pass
18997         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
18998         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
18999         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
19000         with an extra argument.
19001         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
19002         verify_ssa only when the extra argument is true.
19003         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
19004         with an extra argument.
19005         (tree_transform_and_unroll_loop): Same.
19006
19007 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
19008
19009         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
19010         for all the passes of the LNO having LOOP_CLOSED_SSA.
19011         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
19012         * tree-loop-distribution.c (pass_loop_distribution): Same.
19013         * tree-pass.h (TODO_verify_loops): Removed.
19014         * tree-ssa-loop.c (pass_tree_loop_init): Same.
19015         (pass_lim): Same.
19016         (pass_tree_unswitch): Same.
19017         (pass_predcom): Same.
19018         (pass_vectorize): Same.
19019         (pass_linear_transform): Same.
19020         (pass_graphite_transforms): Same.
19021         (pass_iv_canon): Same.
19022         (pass_complete_unroll): Same.
19023         (pass_complete_unrolli): Same.
19024         (pass_parallelize_loops): Same.
19025         (pass_loop_prefetch): Same.
19026         (pass_iv_optimize): Same.
19027
19028 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
19029
19030         PR middle-end/32824
19031         * passes.c (init_optimization_passes): Move pass_lim before
19032         pass_copy_prop and pass_dce_loop.
19033
19034 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
19035
19036         PR target/43667
19037         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
19038         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
19039         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
19040         MULTI_* defines for 4 argument vpermil2p* builtins.
19041
19042 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
19043
19044         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
19045         * config/i386/i386.c (x86_maybe_negate_const_int): New.
19046         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
19047         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
19048         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
19049         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
19050         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
19051         Use x86_maybe_negate_const_int to output insn mnemonic.
19052         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
19053         check from instruction predicate.  Update comments.
19054         * config/i386/sync.md (sync_add<mode>): Use
19055         x86_maybe_negate_const_int to output insn mnemonic.
19056
19057 2010-04-06  Jan Hubicka  <jh@suse.cz>
19058
19059         PR tree-optimization/42906
19060         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
19061         IGNORE_SELF argument.  Set visited_control_parents for fully
19062         processed BBs.
19063         (find_obviously_necessary_stmts): Update call of
19064         mark_control_dependent_edges_necessary.
19065         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
19066
19067 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
19068
19069         * config/i386/i386.md: Remove comment about 'e' and 'E'
19070         operand modifier.
19071
19072 2010-04-06  Richard Guenther  <rguenther@suse.de>
19073
19074         PR tree-optimization/43627
19075         * tree-vrp.c (extract_range_from_unary_expr): Widenings
19076         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
19077         not varying.
19078
19079 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
19080
19081         * BASE-VER: Change to 4.6.0.
19082
19083         PR target/43638
19084         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
19085         handling.
19086
19087 2010-04-06  Richard Guenther  <rguenther@suse.de>
19088
19089         PR middle-end/43661
19090         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
19091
19092 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19093
19094         * doc/invoke.texi (Optimize Options): Document that LTO
19095         won't remove object access purely due to incompatible
19096         declarations.
19097
19098 2010-04-04  Matthias Klose  <doko@ubuntu.com>
19099
19100         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
19101         Initialize variable.
19102
19103 2010-04-03  Richard Guenther  <rguenther@suse.de>
19104
19105         PR middle-end/42509
19106         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
19107         require a non-NULL MEM_OFFSET.
19108
19109 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
19110
19111         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
19112         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
19113         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
19114         config/alpha/predicates.md, config/arm/arm.md,
19115         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
19116         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
19117         config/darwin9.h, config/darwin.c, config/darwin.h,
19118         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
19119         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
19120         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
19121         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
19122         config/mips/mips.md, config/mn10300/mn10300.c,
19123         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
19124         config/rs6000/aix.h, config/rs6000/dfp.md,
19125         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
19126         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
19127         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
19128         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
19129         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
19130         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
19131         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
19132         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
19133         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
19134         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
19135         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
19136         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
19137         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
19138         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
19139         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
19140         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
19141         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
19142         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
19143         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
19144         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
19145         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
19146         opt-functions.awk, opth-gen.awk, params.def, passes.c,
19147         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
19148         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
19149         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
19150         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
19151         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
19152         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
19153         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
19154         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
19155         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
19156         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
19157         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
19158         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
19159         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
19160         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
19161
19162 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19163
19164         PR other/43620
19165         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
19166         * aclocal.m4: Regenerate.
19167
19168 2010-04-02  Richard Guenther  <rguenther@suse.de>
19169
19170         PR tree-optimization/43629
19171         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
19172         if we have seen a constant value.
19173
19174 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
19175
19176         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
19177
19178 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
19179
19180         PR target/43469
19181         * arm.c (legitimize_tls_address): Adjust call to
19182         gen_tls_load_dot_plus_four.
19183         (arm_note_pic_base): New function.
19184         (arm_cannot_copy_insn_p): Use it.
19185         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
19186         constraint.
19187
19188 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19189
19190         PR bootstrap/43531
19191
19192         Revert:
19193         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19194
19195         * Makefile.in ($(out_object_file)): Depend on
19196         gt-$(basename $(notdir $(out_file))).h.
19197
19198 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
19199
19200         * config.gcc (lm32-*-rtems*): Add t-lm32.
19201
19202 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
19203
19204         * config.gcc: Add lm32-*-rtems*.
19205         * config/lm32/rtems.h: New file.
19206
19207 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
19208
19209         PR target/42609
19210         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
19211
19212 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
19213
19214         * dwarf2out.c (output_compilation_unit_header): For
19215         -gdwarf-4 use version 4 instead of version 3.
19216         (output_line_info): For version 4 and above emit additional
19217         maximum ops per insn header field.
19218         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
19219
19220         * dwarf2out.c (is_c_family, is_java): Remove.
19221         (lower_bound_default): New function.
19222         (add_bound_info, gen_descr_array_type_die): Use it.
19223
19224 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
19225
19226         PR debug/43325
19227         * dwarf2out.c (gen_variable_die): Allow debug info for variable
19228         re-declaration when it happens in a function.
19229
19230 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
19231
19232         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
19233         (cgraph_remove_function_insertion_hook): Same.
19234         (cgraph_call_function_insertion_hooks): Same.
19235
19236 2010-04-01  Richard Guenther  <rguenther@suse.de>
19237
19238         PR middle-end/43614
19239         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
19240         and TREE_THIS_VOLATILE.
19241         (copy_ref_info): Likewise.
19242         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
19243         * tree.c (build6_stat): Ignore side-effects of all but arg5
19244         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
19245         TARGET_MEM_REF.
19246
19247 2010-04-01  Richard Guenther  <rguenther@suse.de>
19248
19249         PR tree-optimization/43607
19250         * ipa-type-escape.c (check_call): Do not access non-existing
19251         arguments.
19252
19253 2010-04-01  Richard Guenther  <rguenther@suse.de>
19254
19255         PR middle-end/43602
19256         Revert
19257         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
19258                     Jack Howarth  <howarth@bromo.med.uc.edu>
19259
19260         * tree-profile.c (tree_init_ic_make_global_vars): Make static
19261         variables TLS.
19262
19263 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19264
19265         * doc/install.texi (Prerequisites): Document libelf usability on
19266         IRIX 5/6 and Solaris 2.
19267         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
19268         Update GNU as, GNU ld requirements.
19269         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
19270         Document Sun Studio compiler download.
19271         Update and simplify as, ld recommendations.
19272         (Specific, *-*-solaris2.7): Note obsoletion, removal.
19273
19274 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19275
19276         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
19277         with_tune_32 to pentium4.
19278
19279 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
19280
19281         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
19282
19283 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19284
19285         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
19286         obsoletion, removal.
19287         Update IDO URL.
19288         Document GNU as requirement.
19289         Update configure requirements.
19290         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
19291         Recomment IRIX 6.5.18+.
19292         Document IDF/IDL requirement.
19293         Document GNU as requirement.
19294         Document GNU ld bootstrap failure.
19295         Remove freeware.sgi.com reference.
19296
19297 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19298
19299         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
19300         UNIX V4.0, V5.0 obsoletion, removal.
19301         Remove --with-gc=simple reference.
19302         Update VM requirements during bootstrap.
19303         Remove -oldas bootstrap description.
19304         Update binutils reference.
19305         Remove comparison failure note.
19306
19307 2010-03-31  Richard Guenther  <rguenther@suse.de>
19308             Zdenek Dvorak  <ook@ucw.cz>
19309             Sebastian Pop  <sebastian.pop@amd.com>
19310
19311         PR middle-end/43464
19312         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
19313         with multiple arguments.
19314         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
19315
19316 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19317
19318         * graphite-dependences.c (print_pddr): Call print_pdr with an
19319         extra argument.
19320         * graphite-poly.c (debug_pdr): Add an extra argument for the
19321         verbosity level.
19322         (print_pdr): Same.
19323         (print_pbb_domain): Same.
19324         (print_pbb): Same.
19325         (print_scop_context): Same.
19326         (print_scop): Same.
19327         (print_cloog): Same.
19328         (debug_pbb_domain): Same.
19329         (debug_pbb): Same.
19330         (print_pdrs): Same.
19331         (debug_pdrs): Same.
19332         (debug_scop_context): Same.
19333         (debug_scop): Same.
19334         (debug_cloog): Same.
19335         (print_scop_params): Same.
19336         (debug_scop_params): Same.
19337         (print_iteration_domain): Same.
19338         (print_iteration_domains): Same.
19339         (debug_iteration_domain): Same.
19340         (debug_iteration_domains): Same.
19341         (print_scattering_function): Same.
19342         (print_scattering_functions): Same.
19343         (debug_scattering_function): Same.
19344         (debug_scattering_functions): Same.
19345         * graphite-poly.h (debug_pdr): Update declaration.
19346         (print_pdr): Same.
19347         (print_pbb_domain): Same.
19348         (print_pbb): Same.
19349         (print_scop_context): Same.
19350         (print_scop): Same.
19351         (print_cloog): Same.
19352         (debug_pbb_domain): Same.
19353         (debug_pbb): Same.
19354         (print_pdrs): Same.
19355         (debug_pdrs): Same.
19356         (debug_scop_context): Same.
19357         (debug_scop): Same.
19358         (debug_cloog): Same.
19359         (print_scop_params): Same.
19360         (debug_scop_params): Same.
19361         (print_iteration_domain): Same.
19362         (print_iteration_domains): Same.
19363         (debug_iteration_domain): Same.
19364         (debug_iteration_domains): Same.
19365         (print_scattering_function): Same.
19366         (print_scattering_functions): Same.
19367         (debug_scattering_function): Same.
19368         (debug_scattering_functions): Same.
19369
19370 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19371
19372         * graphite-poly.c (print_scattering_function_1): New.
19373         (print_scattering_function): Call it.
19374         (print_scop_params): Remove spaces at the end of lines.
19375         (print_cloog): New.
19376         (debug_cloog): New.
19377         * graphite-poly.h (print_cloog): Declared.
19378         (debug_cloog): Declared.
19379
19380 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19381
19382         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
19383         in loop->header.
19384         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
19385         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
19386         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
19387         to switch between adding the IV bump in loop->latch or in loop->header.
19388
19389 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19390
19391         * graphite-poly.c (print_scattering_function): Pretty print following
19392         the scoplib format.
19393         (print_pdr): Same.
19394         (print_pbb_domain): Same.
19395         (dump_gbb_cases): Same.
19396         (dump_gbb_conditions): Same.
19397         (print_pdrs): Same.
19398         (print_pbb): Same.
19399         (print_scop_params): Same.
19400         (print_scop_context): Same.
19401         (print_scop): Same.
19402         (print_pbb_body): New.
19403         (lst_indent_to): New.
19404         (print_lst): Start new lines with a #.
19405         * graphite-poly.h (pbb_bb): New.
19406         (pbb_index): Use pbb_bb.
19407         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
19408         disjuncts.
19409         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
19410
19411 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
19412
19413         * dwarf2out.c (size_of_die): For -gdwarf-4 use
19414         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
19415         and 0 instead of 1 for dw_val_class_flag.
19416         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
19417         dw_val_class_range_list, dw_val_class_loc_list,
19418         dw_val_class_lineptr and dw_val_class_macptr, use
19419         DW_FORM_flag_present for dw_val_class_flag and
19420         DW_FORM_exprloc for dw_val_class_loc.
19421         (output_die): For -gdwarf-4 print dw_val_class_loc
19422         size as uleb128 instead of 1 or 2 bytes and don't print
19423         anything for dw_val_class_flag.
19424
19425         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
19426         instead of cselib_lookup following by tweaking locs->setting_insn.
19427
19428         PR bootstrap/43596
19429         * cselib.c (cselib_process_insn): Clear cselib_current_insn
19430         even before returning from label, setjmp call or volatile asm
19431         handling.
19432
19433 2010-03-31  Richard Guenther  <rguenther@suse.de>
19434
19435         PR middle-end/43600
19436         * cgraphunit.c (cgraph_output_in_order): Do not allocate
19437         temporary data on stack.
19438
19439 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19440
19441         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
19442         (PUSHSECTION_ASM_OP): Remove.
19443         (POPSECTION_ASM_OP): Remove.
19444         (PUSHSECTION_FORMAT): Remove.
19445         * config/sol2.h (PUSHSECTION_FORMAT): Define.
19446         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
19447         * config/sol2.c (solaris_output_init_fini): Use it.
19448
19449 2010-03-31  Jie Zhang  <jie@codesourcery.com>
19450
19451         PR 43574
19452         * opt-functions.awk (var_type_struct): Use signed char type
19453         for simple variables.
19454
19455 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19456
19457         * config/sol2.c: Include output.h.
19458         (solaris_assemble_visibility): New function.
19459         * config/t-sol2 (sol2.o): Add output.h dependency.
19460         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
19461         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
19462         Redefine.
19463
19464 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
19465
19466         PR target/43580
19467         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
19468         V2SImode or XFmode on PRE_DEC.
19469
19470         PR debug/43557
19471         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
19472         BLKmode.
19473
19474 2010-03-31  Jie Zhang  <jie@codesourcery.com>
19475
19476         PR 43562
19477         * reload.h (caller_save_initialized_p): Declare.
19478         * toplev.c (backend_init_target): Don't call
19479         init_caller_save but set caller_save_initialized_p to false.
19480         * caller-save.c (caller_save_initialized_p): Define.
19481         (init_caller_save): Check caller_save_initialized_p.
19482         * ira.c (ira): Call init_caller_save if flag_caller_saves.
19483
19484 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19485
19486         PR target/39048
19487         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
19488         and soft-fp/t-softfp to tmake_file.
19489         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
19490         (LIBGCC2_TF_CEXT): Define.
19491         (TF_SIZE): Define.
19492
19493 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
19494
19495         PR debug/42977
19496         * cselib.c (n_useless_values): Document handling of debug locs.
19497         (n_useless_debug_values, n_debug_values): New variables.
19498         (new_elt_loc_list): Don't add to debug values, keep count.
19499         (promote_debug_loc): New.
19500         (cselib_reset_table): Zero new variables.
19501         (entry_and_rtx_equal_p): Promote debug locs.
19502         (discard_useless_locs): Increment n_useless_debug_values for
19503         debug values.
19504         (remove_useless_values): Adjust n_useless_values and n_debug_values
19505         with n_useless_debug_values.
19506         (add_mem_for_addr): Promote debug locs.
19507         (cselib_lookup_mem): Likewise.
19508         (cselib_lookup_addr): Renamed to...
19509         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
19510         (cselib_log_lookup): ... this.  Turn into...
19511         (cselib_lookup_addr): ... new wrapper.
19512         (cselib_lookup_from_insn): New.
19513         (cselib_invalidate_regno): Increment n_useless_debug_values for
19514         debug values.
19515         (cselib_invalidate_mem): Likewise.
19516         (cselib_process_insn): Take n_deleted and n_debug_values into
19517         account to guard remove_useless_value call.
19518         (cselib_finish): Zero n_useless_debug_values.
19519         * cselib.h (cselib_lookup_from_insn): Declare.
19520         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
19521         (sched_analyze_2): Likewise.
19522
19523 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
19524
19525         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
19526         functions.
19527         (adjust_mems): Replace narrowing SUBREG of expression containing
19528         just PLUS, MINUS, MULT and ASHIFT of registers and constants
19529         with operations in the narrower mode.
19530
19531         PR debug/43593
19532         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
19533         regs_invalidated_by_call instead all call_used_reg_set registers.
19534
19535 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
19536
19537         PR middle-end/43430
19538         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
19539         pointer comparisons with types_compatible_p.
19540         * tree-vect-stmts.c (vectorizable_call): Same.
19541         (vectorizable_condition): Same.
19542
19543 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19544
19545         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
19546         stack check if the mask would be zero.
19547
19548 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
19549             Jack Howarth  <howarth@bromo.med.uc.edu>
19550
19551         * tree-profile.c (tree_init_ic_make_global_vars): Make static
19552         variables TLS.
19553
19554 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
19555
19556         PR other/25232
19557         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
19558         and __unordtf2.
19559         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
19560         Include ___unordxf2 and ___unordtf2.
19561         * config/i386/libgcc-glibc.ver: Do not define inheritance from
19562         GCC_4.4.0 here.
19563
19564 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
19565
19566         * config/lm32/t-lm32: New file.
19567         * config.gcc: Use the above file when targetting lm32.
19568
19569 2010-03-28  Duncan Sands  <baldrick@free.fr>
19570
19571         * Makefile.in (PLUGIN_HEADERS): Add except.h.
19572
19573 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
19574
19575         PR middle-end/43431
19576         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
19577         Improve vectorization cost model diagnostic.
19578
19579 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
19580
19581         PR middle-end/43436
19582         * tree-vect-data-refs.c (vect_analyze_data_refs): When
19583         compute_data_dependences_for_loop returns false, early exit
19584         and output an extra diagnostic for the failed data reference
19585         analysis.
19586
19587 2010-03-29  Richard Guenther  <rguenther@suse.de>
19588
19589         PR tree-optimization/43560
19590         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
19591         (can_sm_ref_p): Treat stores to readonly locations as trapping.
19592
19593 2010-03-29  Jie Zhang  <jie@codesourcery.com>
19594
19595         PR 43564
19596         * toplev.c (process_options): Set optimization_default_node
19597         and optimization_current_node.
19598         * opts.c (decode_options): Don't set optimization_default_node
19599         and optimization_current_node.
19600
19601 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
19602
19603         * config/rtems.h: Abandon -qrtems_debug.
19604
19605 2010-03-28  Jan Hubicka  <jh@suse.cz>
19606
19607         PR tree-optimization/43505
19608         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
19609         map should not be copied.
19610
19611 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19612
19613         PR middle-end/41674
19614         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
19615         cdtors, set DECL_PRESERVE_P.
19616         * ipa.c (cgraph_externally_visible_p): Return true if declaration
19617         should be preseved.
19618
19619 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
19620
19621         PR tree-optimization/43528
19622         * stor-layout.c (place_field): Check that constant fits into
19623         unsigned HWI when skipping calculation of MS bitfield layout.
19624
19625 2010-03-27  Jan Hubicka  <jh@suse.cz>
19626
19627         PR middle-end/43391
19628         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
19629         notice_global_symbol work.
19630
19631 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
19632
19633         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
19634         instead of dwarf2out_decl.
19635         (struct var_loc_node): Remove section_label field.
19636         (dwarf2out_function_decl): New function.
19637         (dwarf2out_var_location): Don't set section_label field.
19638         (dwarf2out_begin_function): Don't empty decl_loc_table here.
19639
19640 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
19641
19642         PR tree-optimization/43544
19643         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
19644         First argument for builtin vectorized function hook is now a
19645         tree to be able to distinguish between machine specific and
19646         standard builtins.
19647         * targhooks.c (default_builtin_vectorized_function): Ditto.
19648         * targhooks.h (default_builtin_vectorized_function): Ditto.
19649         * target.h (struct gcc_target): Ditto.
19650         * tree-vect-stmts.c (vectorizable_function): Ditto.
19651         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
19652         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
19653         Ditto.
19654
19655 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
19656
19657         PR c/43381
19658         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
19659         nested binding iff it is a FUNCTION_DECL.
19660         (store_parm_decls_newstyle): Pass nested=true to bind for
19661         FUNCTION_DECLs amongst parameters.
19662
19663 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
19664
19665         * var-tracking.c (vt_expand_loc_callback): Don't run
19666         cselib_expand_value_rtx_cb in dummy mode if
19667         cselib_dummy_expand_value_rtx_cb returned false.
19668
19669         * var-tracking.c (emit_note_insn_var_location): For one part
19670         notes with offset 0, don't add EXPR_LIST around the location.
19671         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
19672         add_location_or_const_value_attribute): Adjust for that change.
19673
19674         PR debug/43540
19675         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
19676         into first operand and location into second.
19677         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
19678         dw_cfi_oprnd_loc for DW_CFA_expression.
19679         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
19680         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
19681         assume first argument is regnum and second argument is location.
19682
19683 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
19684
19685         PR target/42113
19686         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
19687         of scratch register to DImode.  Split to DImode comparison operator.
19688         Use SImode subreg of scratch register in the multiplication.
19689         (*cmp_sadd_sidi): Ditto.
19690         (*cmp_ssub_si): Ditto.
19691         (*cmp_ssub_sidi): Ditto.
19692
19693 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
19694
19695         PR target/43524
19696         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
19697         Remove invalid assert and wrong comment.
19698
19699 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
19700
19701         PR debug/43516
19702         * flags.h (final_insns_dump_p): New extern.
19703         * final.c (final_insns_dump_p): New variable.
19704         (rest_of_clean_state): Set it before -fdump-final-insns=
19705         dumping, clear afterwards.
19706         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
19707         MEM_ALIAS_SET on MEMs.
19708
19709 2010-03-26  David S. Miller  <davem@davemloft.net>
19710
19711         * configure.ac: Fix sparc GOTDATA_OP bug check.
19712         * configure: Rebuild.
19713
19714 2010-03-26  Alan Modra  <amodra@gmail.com>
19715
19716         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
19717
19718 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19719
19720         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
19721         TLS_SECTION_ASM_FLAG.
19722
19723 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
19724
19725         PR bootstrap/43511
19726         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
19727         Clear first_function_block_is_cold.
19728
19729         PR c/43385
19730         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
19731         argument if the argument is truth_value_p.
19732
19733 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
19734
19735         * config/rs6000/constraints.md: Update copyright year for my changes.
19736
19737         PR target/43484
19738         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
19739         used in reg+reg addressing, swap registers.
19740
19741 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
19742
19743         PR debug/43293
19744         * target.h (struct gcc_target): Add code_end hook.
19745         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
19746         if not yet defined.
19747         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
19748         * toplev.c (compile_file): Call targetm.asm_out.code_end
19749         hook before unwind info/debug info output.
19750         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
19751         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
19752         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
19753         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
19754         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
19755         * config/i386/i386.c (ix86_file_end): Renamed to...
19756         (ix86_code_end): ... this.  Make static.  Don't call
19757         file_end_indicate_exec_stack.  Emit unwind info using
19758         final_start_function/final_end_function.
19759         (darwin_x86_file_end): Remove.
19760         (TARGET_ASM_CODE_END): Define.
19761         * config/i386/i386.h (TARGET_ASM_FILE_END,
19762         NEED_INDICATE_EXEC_STACK): Don't define.
19763         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
19764         (TARGET_ASM_FILE_END): Define to darwin_file_end.
19765         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
19766         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
19767
19768         PR target/43498
19769         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
19770         at the beginning and final_end_function at the end.
19771         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
19772
19773 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19774
19775         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
19776         and Sun as TLS syntax.
19777         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
19778         * configure: Regenerate.
19779         * config.in: Regenerate.
19780         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
19781         (default_elf_asm_named_section): Use it.
19782         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
19783         (i386_output_dwarf_dtprel): Likewise.
19784         (output_addr_const_extra): Likewise.
19785         (output_pic_addr_const): Lowercase @GOTTPOFF.
19786         (output_addr_const_extra): Likewise.
19787         (output_pic_addr_const): Lowercase @GOTNTPOFF.
19788         (output_addr_const_extra): Likewise.
19789         (output_pic_addr_const): Lowercase @INDNTPOFF.
19790         (output_addr_const_extra): Likewise.
19791         (output_pic_addr_const): Lowercase @NTPOFF.
19792         (output_addr_const_extra): Likewise.
19793         (output_pic_addr_const): Lowercase @TPOFF.
19794         (output_addr_const_extra): Likewise.
19795         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
19796         (*tls_global_dynamic_64): Likewise.
19797         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
19798         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
19799
19800         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
19801         (ASM_OUTPUT_TLS_COMMON): Use it.
19802         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
19803
19804         PR target/38118
19805         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
19806         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
19807         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
19808         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
19809         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
19810         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
19811
19812 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19813
19814         * config/i386/i386.c (override_options): Don't accept
19815         -mtls-dialect=sun any longer.
19816         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
19817         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
19818         (*tls_local_dynamic_base_32_sun): Likewise.
19819         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
19820
19821 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
19822
19823         PR debug/43508
19824         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
19825         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
19826
19827         PR debug/43479
19828         * ira.c (adjust_cleared_regs): New function.
19829         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
19830
19831         PR debug/19192
19832         PR debug/43479
19833         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
19834         from gimple_block.
19835         * expr.c (expand_expr_real): Restore previous
19836         curr_insn_source_location and curr_insn_block after
19837         expand_expr_real_1 call.
19838         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
19839         instead of expand_expr_real_1.
19840
19841 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
19842
19843         PR rtl-optimization/43413
19844         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
19845         hard regs too.
19846
19847 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
19848
19849         PR target/43348
19850         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
19851         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
19852
19853 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
19854
19855         * config/i386/i386.c (ix86_target_string): Add -mfma.
19856         Fix a typo in comment.
19857
19858 2010-03-22  Mike Stump  <mikestump@comcast.net>
19859
19860         PR target/23071
19861         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
19862         Don't overly align based upon packed packed fields.
19863
19864 2010-03-22  Jason Merrill  <jason@redhat.com>
19865
19866         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
19867         Use () rather than [], and move before the element type.
19868
19869 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19870
19871         * doc/configfiles.texi (Configuration Files): Removed
19872         fixinc/Makefile*, intl/Makefile.*.
19873         * doc/makefile.texi: Fixed markup. Abstract from version
19874         control system used.
19875         (Makefile): Removed obsolete gcc/java/parse.y example.
19876         * doc/sourcebuild.texi: Likewise.
19877         (Top Level): Added config, gnattools, libdecnumber, libgcc,
19878         libgomp, libssp.  Removed fastjar.
19879         (Miscellaneous Docs): Clarify location.
19880         Added COPYING3, COPYING3.LIB.
19881         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
19882
19883 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19884
19885         PR target/38085
19886         * config/i386/i386.c (x86_function_profiler)
19887         [!NO_PROFILE_COUNTERS]: Fix typo.
19888         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
19889         instead of callq.
19890
19891 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
19892             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19893
19894         * doc/sourcebuild.texi (Test Directives): Split into six
19895         subsections, with most of the current text in new subsections
19896         Directives, Selectors, and Final Actions.
19897         (Directives): Split list of test directives into multiple
19898         subsubsections.
19899         (Selectors): Describe use and syntax of selectors.
19900         (Effective-Target Keywords): Describe all existing keywords.
19901         (Add Options): Describe features for dg-add-options.
19902         (Require Support): Describe variants of dg-require-support.
19903         (Final Actions): Describe commands to use in dg-final.
19904
19905 2010-03-22  Michael Matz  <matz@suse.de>
19906
19907         PR middle-end/43475
19908         * recog.c (validate_replace_rtx_group): Replace also in
19909         REG_EQUAL and REG_EQUIV notes.
19910
19911 2010-03-22  Richard Guenther  <rguenther@suse.de>
19912
19913         PR tree-optimization/43390
19914         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
19915         sure vector extracts are type correct.
19916
19917 2010-03-22  Richard Guenther  <rguenther@suse.de>
19918
19919         PR middle-end/40106
19920         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
19921         x * sqrt (x) even when optimizing for size if the target
19922         has native support for sqrt.
19923
19924 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
19925
19926         * varasm.c (make_decl_rtl_for_debug): Also clear
19927         flag_mudflap for the duration of make_decl_rtl call.
19928
19929         PR debug/43443
19930         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
19931         locs from preserved VALUEs.
19932
19933 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19934
19935         PR middle-end/42718
19936         * pa.md (movmemsi): Set align to one if zero.
19937         (movmemdi): Likewise.
19938
19939 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
19940
19941         PR target/42321
19942         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
19943         with their corresponding prologue pushes.
19944
19945 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
19946
19947         PR target/43156
19948         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
19949         at the begining or end.
19950         (spu_expand_epilogue): Likewise.
19951
19952 2010-03-20  Richard Guenther  <rguenther@suse.de>
19953
19954         PR rtl-optimization/43438
19955         * combine.c (make_extraction): Properly zero-/sign-extend an
19956         extraction of the low part of a CONST_INT.  Also handle
19957         CONST_DOUBLE.
19958
19959 2010-03-19  Mike Stump  <mikestump@comcast.net>
19960
19961         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
19962         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
19963         (override_options): Use SUBTARGET32_DEFAULT_CPU.
19964
19965 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
19966
19967         PR c/43211
19968         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
19969         an error.
19970
19971 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
19972
19973         PR rtl-optimization/42258
19974         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
19975         use that may match DEF.
19976
19977         PR target/40697
19978         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
19979         the cost of loading the constant rather than assuming
19980         COSTS_N_INSNS (1).
19981         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
19982         outer code is AND, do the same tests as the andsi3 expander and
19983         return COSTS_N_INSNS (1) if and is cheap.
19984
19985         * optabs.c (avoid_expensive_constant): Fix formatting.
19986
19987 2010-03-19  Michael Matz  <matz@suse.de>
19988
19989         PR c++/43116
19990         * attribs.c (decl_attributes): When rebuilding a function pointer
19991         type use the same qualifiers as the original pointer type.
19992
19993 2010-03-19  Martin Jambor  <mjambor@suse.cz>
19994
19995         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
19996         and is_gimple_ip_invariant_address.
19997
19998 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19999
20000         Revert
20001         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20002
20003         * config/arm/arm.c (arm_override_options): Turn off
20004         flag_dwarf2_cfi_asm for AAPCS variants.
20005
20006 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20007
20008         PR target/43399
20009         * config/arm/arm.c (emit_multi_reg_push): Update comments.
20010         Use PRE_MODIFY instead of PRE_DEC.
20011         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
20012         (vfp_emit_fstmd): Likewise.
20013
20014 2010-03-19  Michael Matz  <matz@suse.de>
20015
20016         PR target/43305
20017         * builtins.c (expand_builtin_interclass_mathfn,
20018         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
20019         if that fails.
20020
20021 2010-03-19  Richard Guenther  <rguenther@suse.de>
20022
20023         PR tree-optimization/43415
20024         * tree-ssa-pre.c (phi_translate): Split out worker to ...
20025         (phi_translate_1): ... this.
20026         (phi_translate): Move all caching here.  Cache all NARY
20027         and REFERENCE translations.
20028
20029 2010-03-19  David S. Miller  <davem@davemloft.net>
20030
20031         With help from Eric Botcazou.
20032         * config/sparc/sparc.c: Include dwarf2out.h.
20033         (emit_pic_helper): Delete.
20034         (pic_helper_symbol_name): Delete.
20035         (pic_helper_emitted_p): Delete.
20036         (pic_helper_needed): New.
20037         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
20038         (get_pc_thunk_name): New.
20039         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
20040         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
20041         Set pic_helper_needed to true.  Don't call emit_pic_helper.
20042         (sparc_expand_prologue): Update load_pic_register call.
20043         (sparc_output_mi_thunk): Likewise.
20044         (sparc_file_end): Emit a hidden comdat symbol for the PIC
20045         thunk if possible.  Output CFI information as needed.
20046
20047 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
20048             Jack Howarth  <howarth@bromo.med.uc.edu>
20049
20050         PR target/36399
20051         * config/i386/i386.h: Fix ABI on darwin x86-32.
20052
20053 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
20054
20055         * tree.h: Declare make_decl_rtl_for_debug.
20056         * varasm.c (make_decl_rtl_for_debug): New.
20057         * dwarf2out.c (rtl_for_decl_location): Call it.
20058         * cfgexpand.c (expand_debug_expr): Call it.
20059
20060 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
20061
20062         PR bootstrap/43399
20063         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
20064         mem_mode.
20065
20066         PR bootstrap/43403
20067         * var-tracking.c (vt_init_cfa_base): Do nothing if
20068         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
20069
20070 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
20071
20072         PR debug/42873
20073         * var-tracking.c (canonicalize_vars_star): New.
20074         (dataflow_post_merge_adjust): Use it.
20075
20076 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
20077
20078         PR debug/43058
20079         * var-tracking.c (non_suitable_const): New function.
20080         (add_uses): For DEBUG_INSNs with constants, don't record any
20081         value, instead just the constant value itself.
20082         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
20083         is not VAR_LOC_UNKNOWN_P, set var to the constant.
20084         (emit_notes_in_bb): Likewise.
20085         (emit_note_insn_var_location): For onepart variables if
20086         cur_loc is a VOIDmode constant, use DECL_MODE.
20087
20088 2010-03-18  Martin Jambor  <mjambor@suse.cz>
20089
20090         PR middle-end/42450
20091         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
20092         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
20093         all non-clones.  Moved call redirection...
20094         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
20095         (cgraph_materialize_all_clones): Dispose of all
20096         combined_args_to_skip bitmaps.
20097         (verify_cgraph_node): Do not check for edges pointing to wrong
20098         nodes in inline clones.
20099         * tree-inline.c (copy_bb): Call
20100         cgraph_redirect_edge_call_stmt_to_callee.
20101         * ipa.c (cgraph_remove_unreachable_nodes): Call
20102         cgraph_node_remove_callees even when there are used clones.
20103
20104 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
20105
20106         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
20107
20108 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
20109
20110         PR target/43383
20111         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
20112         for 32bit.
20113
20114 2010-03-18  Michael Matz  <matz@suse.de>
20115
20116         PR middle-end/43419
20117         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
20118         into sqrt(x) if we need to preserve signed zeros.
20119
20120 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
20121             Eric Botcazou  <ebotcazou@adacore.com>
20122
20123         PR rtl-optimization/43360
20124         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
20125         note if we don't know its invariant status.
20126
20127 2010-03-18  Michael Matz  <matz@suse.de>
20128
20129         PR tree-optimization/43402
20130         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
20131         PHI chains of ssa names registered for update.
20132
20133 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
20134
20135         PR target/42427
20136         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
20137         non-offsettable and pre_modify update addressing.
20138         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
20139         and "2" alternatives "#".
20140         (*movdd_softfloat32): Make all alternatives "#";
20141         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
20142         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
20143         (*movdf_softfloat32): Make all alternatives "#";
20144         (movdi): Use the new DIFD mode iterator to create a common splitter
20145         for movdi, movdf and movdd patterns.
20146
20147 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
20148
20149         * common.opt (dumpdir): Remove redundant tab.
20150
20151 2010-03-17  Martin Jambor  <mjambor@suse.cz>
20152
20153         PR tree-optimization/43347
20154         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
20155         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
20156
20157 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
20158
20159         PR rtl-optimization/42216
20160         * regrename.c (create_new_chain): New function, broken out from...
20161         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
20162         appending a use to an empty chain.
20163         (build_def_use): Remove previous changes that convert OP_INOUT to
20164         OP_OUT operands; instead detect the case where an OP_INOUT operand
20165         uses a previously untracked register and create an empty chain for it.
20166
20167 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20168
20169         * doc/extend.texi (Function Attributes): Rewrite unfinished
20170         sentence in ms_abi documentation.
20171
20172 2010-03-17  Alan Modra  <amodra@gmail.com>
20173
20174         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
20175         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
20176         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
20177         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
20178
20179 2010-03-16  Richard Henderson  <rth@redhat.com>
20180
20181         PR middle-end/43365
20182         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
20183         (lower_try_finally): Save and restore eh_seq around the expansion
20184         of the try-finally.
20185
20186 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
20187
20188         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
20189         statements before splitting block.
20190
20191 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20192
20193         * doc/sourcebuild.texi (Testsuites): Fix markup.
20194         Use pathnames relative to gcc/testsuite.
20195         (Test Directives): Move description of how timeout is determined.
20196         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
20197         (C Tests): Correct gcc.misc-tests directory.
20198         Framework tests now live in gcc.test-framework.
20199
20200 2010-03-16  Richard Guenther  <rguenther@suse.de>
20201
20202         PR middle-end/43379
20203         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
20204         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
20205
20206 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
20207             Alexandre Oliva  <aoliva@redhat.com>
20208
20209         PR tree-optimization/42917
20210         * lambda-code.c (remove_iv): Skip debug statements.
20211         (lambda_loopnest_to_gcc_loopnest): Likewise.
20212         (not_interesting_stmt): Debug statements are not interesting.
20213
20214 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
20215
20216         PR debug/43051
20217         PR debug/43092
20218         * cselib.c (cselib_preserve_constants,
20219         cfa_base_preserved_val): New static variables.
20220         (preserve_only_constants): New function.
20221         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
20222         clear its REG_VALUES.  If cselib_preserve_constants, don't
20223         empty the whole hash table, but preserve there VALUEs with constants,
20224         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
20225         (cselib_preserve_cfa_base_value): New function.
20226         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
20227         (cselib_init): Change argument to int bitfield.  Set
20228         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
20229         is in it.
20230         (cselib_finish): Clear cselib_preserve_constants and
20231         cfa_base_preserved_val.
20232         * cselib.h (enum cselib_record_what): New enum.
20233         (cselib_init): Change argument to int.
20234         (cselib_preserve_cfa_base_value): New prototype.
20235         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
20236         * dse.c (dse_step1): Likewise.
20237         * cfgcleanup.c (thread_jump): Likewise.
20238         * sched-deps.c (sched_analyze): Likewise.
20239         * gcse.c (local_cprop_pass): Likewise.
20240         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
20241         If FN is non-NULL, call the callback always and whenever it returns
20242         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
20243         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
20244         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
20245         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
20246         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
20247         * var-tracking.c: Include recog.h.
20248         (bb_stack_adjust_offset): Remove.
20249         (vt_stack_adjustments): Don't call it, instead just gather the
20250         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
20251         (adjust_stack_reference): Remove.
20252         (compute_cfa_pointer): New function.
20253         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
20254         (struct adjust_mem_data): New type.
20255         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
20256         functions.
20257         (get_address_mode): New function.
20258         (replace_expr_with_values): Use it.
20259         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
20260         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
20261         (adjust_sets): Remove.
20262         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
20263         Use get_address_mode.
20264         (get_adjusted_src): Remove.
20265         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
20266         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
20267         (add_with_sets): Don't call adjust_sets.
20268         (fp_setter, vt_init_cfa_base): New functions.
20269         (vt_initialize): Change return type to bool.  Move most of pool etc.
20270         initialization to the beginning of the function from end.  Pass
20271         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
20272         If !frame_pointer_needed, call vt_stack_adjustment before mos
20273         vector is filled, call vt_init_cfa_base if argp/framep has been
20274         eliminated to sp.  If frame_pointer_needed and argp/framep has
20275         been eliminated to hard frame pointer, set
20276         hard_frame_pointer_adjustment and call vt_init_cfa_base after
20277         encountering fp setter in the prologue.  For MO_ADJUST, call
20278         log_op_type before pusing the op into mos vector, not afterwards.
20279         Call adjust_insn before cselib_process_insn/add_with_sets,
20280         call cancel_changes (0) afterwards.
20281         (variable_tracking_main_1): Adjust for vt_initialize calling
20282         vt_stack_adjustments and returning whether it succeeded or not.
20283
20284 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
20285
20286         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
20287         debug statements.
20288
20289 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
20290
20291         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
20292         has been set.
20293         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
20294         drap_reg has not been set.
20295
20296 2010-03-15  Michael Matz  <matz@suse.de>
20297
20298         PR middle-end/43300
20299         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
20300         use it to expand block copies.
20301         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
20302         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
20303         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
20304
20305 2010-03-15  Richard Guenther  <rguenther@suse.de>
20306
20307         PR tree-optimization/43367
20308         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
20309         elimination check.
20310
20311 2010-03-15  Richard Guenther  <rguenther@suse.de>
20312
20313         PR tree-optimization/43317
20314         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
20315
20316 2010-03-15  Martin Jambor  <mjambor@suse.cz>
20317
20318         PR tree-optimization/43141
20319         * tree-sra.c (create_abstract_origin): New function.
20320         (modify_function): Call create_abstract_origin.
20321
20322 2010-03-15  Chris Demetriou  <cgd@google.com>
20323
20324         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
20325         wasn't copied.
20326
20327 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20328
20329         PR middle-end/43354
20330         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
20331         call insert_out_of_ssa_copy for default definitions.
20332
20333 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20334
20335         * graphite-clast-to-gimple.c (my_long_long): Defined.
20336         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
20337         * graphite-sese-to-poly.c (my_long_long): Defined.
20338         (scop_ivs_can_be_represented): Use it.
20339
20340 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20341
20342         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
20343         graphite-max-bbs-per-function, and loop-block-tile-size.
20344         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
20345         with "maximum".
20346         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
20347
20348 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20349
20350         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
20351         forward declaration.
20352         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
20353         (add_upper_bounds_from_estimated_nit): New.
20354         (build_loop_iteration_domains): Use it.
20355
20356 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20357
20358         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
20359
20360 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20361
20362         PR middle-end/43306
20363         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
20364         should be an INTEGER_CST.  Also handle CASE_CONVERT.
20365
20366 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20367
20368         * graphite.c (graphite_initialize): To bound the number of bbs per
20369         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
20370         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
20371         * doc/invoke.texi: Document it.
20372
20373 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20374
20375         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
20376         * graphite-sese-to-poly.h (build_poly_scop): Same.
20377
20378 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20379
20380         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
20381         the number of parameters in the scop.  Use as an upper bound
20382         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
20383         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
20384         * doc/invoke.texi: Document it.
20385
20386 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
20387
20388         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
20389         * doc/c-tree.texi: Remove.
20390         * doc/generic.texi: Merge c-tree.texi here.
20391         * doc/gccint.texi (Trees): Remove menu entry.
20392         (c-tree.texi): Remove @include.
20393         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
20394         * doc/languages.texi (Reading RTL): Ditto.
20395
20396 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
20397
20398         PR target/42869
20399         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
20400
20401 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
20402
20403         PR middle-end/42431
20404         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
20405         code added to work around reload clobbering CONST insns.
20406
20407 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
20408
20409         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
20410         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
20411         (cselib_preserve_only_values): Remove retain argument, don't
20412         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
20413         * cselib.h (cselib_preserve_only_values): Remove retain argument.
20414         * var-tracking.c (micro_operation): Move insn field before union.
20415         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
20416         (struct variable_tracking_info_def): Remove n_mos field, change
20417         mos into a vector of micro_operations.
20418         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
20419         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
20420         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
20421         changing into a vector.
20422         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
20423         come before all other uops generated by add_stores.
20424         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
20425         argument removal.
20426         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
20427         a vector.  Run just one pass over the bbs instead of separate counting
20428         and computation phase.
20429         (vt_finalize): Free VTI (bb)->mos vector instead of array.
20430
20431         PR debug/43329
20432         * tree-inline.c (remap_decls): Put old_var rather than origin_var
20433         into *nonlocalized_list vector.
20434         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
20435         even if origin is non-NULL.
20436         (gen_variable_die): Likewise.
20437         (process_scope_var): Don't change origin.
20438         (gen_decl_die): Likewise.
20439         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
20440         before adding new edges instead of after it, fix moving over
20441         debug stmts.
20442
20443 2010-03-11  David S. Miller  <davem@davemloft.net>
20444
20445         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
20446         of four.
20447         * configure: Rebuild.
20448
20449 2010-03-11  Martin Jambor  <mjambor@suse.cz>
20450
20451         PR tree-optimization/43257
20452         * tree.c (assign_assembler_name_if_neeeded): New function.
20453         (free_lang_data_in_cgraph): Assembler name assignment moved to the
20454         above new function.
20455         * tree.h (assign_assembler_name_if_neeeded): Declare.
20456         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
20457         the function if needed.
20458
20459 2010-03-11  Chris Demetriou  <cgd@google.com>
20460
20461         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
20462         include/stdint-gcc.h, and include/stdint.h world-readable.
20463
20464 2010-03-11  Richard Guenther  <rguenther@suse.de>
20465
20466         PR tree-optimization/43255
20467         * tree-vrp.c (process_assert_insertions_for): Do not insert
20468         asserts for trivial conditions.
20469
20470 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20471
20472         PR tree-optimization/43280
20473         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
20474         generation.  Move calculation of size out of the if branch.
20475         (find_bswap): Modify compare number generation.
20476
20477 2010-03-11  Richard Guenther  <rguenther@suse.de>
20478
20479         PR lto/43200
20480         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
20481         (input_gimple_stmt): Fixup handled component types during
20482         operand read.  Also fix up decls in ADDR_EXPRs.
20483
20484 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
20485
20486         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
20487         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
20488
20489 2010-03-10  Jan Hubicka  <jh@suse.cz>
20490
20491         PR c/43288
20492         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
20493         * varasm.c (get_variable_section): Don't do that here...
20494         (make_decl_rtl): ... and here.
20495         (do_assemble_alias): Produce decl RTL.
20496         (assemble_alias): Likewise.
20497
20498 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
20499
20500         PR debug/43290
20501         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
20502         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
20503         of fde->vdrap_reg.
20504         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
20505         (based_loc_descr): Only express drap or vdrap regno based expressions
20506         using DW_OP_fbreg when not optimizing.
20507         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
20508         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
20509         REG_CFA_SET_VDRAP note.
20510
20511 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
20512
20513         PR tree-optimization/43236
20514         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
20515         error in calculation of base address in reverse iteration case.
20516         (generate_builtin): Take number of latch executions if the statement
20517         is in the latch.
20518
20519 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
20520
20521         PR middle-end/42859
20522         * tree-eh.c: Include pointer-set.h.
20523         (lower_eh_dispatch): Filter out duplicate case labels and
20524         remove the unneeded edge when the label is unused.  Return
20525         true when some edges are removed.
20526         (execute_lower_eh_dispatch): When any lowering resulted in
20527         removing an edge, also delete unreachable blocks.
20528
20529 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
20530
20531         PR bootstrap/43287
20532         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
20533         UNSPEC_MACHOPIC_OFFSET.
20534
20535 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
20536
20537         PR target/43294
20538         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
20539         (m68k_delegitimize_address): New function.
20540
20541 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
20542
20543         PR debug/43299
20544         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
20545
20546         PR debug/43299
20547         * var-tracking.c (adjust_sets): New function.
20548         (count_with_sets, add_with_sets): Use it.
20549         (get_adjusted_src): New inline function.
20550         (add_stores): Use it.
20551
20552         PR debug/43304
20553         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
20554         call cselib_dummy_expand_value_rtx_cb instead of
20555         cselib_expand_value_rtx_cb.
20556
20557         PR debug/43293
20558         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
20559         * config/i386/i386.c: Include debug.h and dwarf2out.h.
20560         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
20561         and .cfi_endproc around the pic thunks.
20562         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
20563         all queued unwind info register saves are saved before the call.
20564         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
20565         considered as sp-=4 for unwind info and the pop as sp+=4 which
20566         also clobbers dest, but doesn't actually restore it.
20567
20568         PR debug/43290
20569         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
20570         RTX_FRAME_RELATED_P.
20571
20572 2010-03-09  Jie Zhang  <jie@codesourcery.com>
20573
20574         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
20575         whitespaces in output template.
20576
20577 2010-03-09  Jie Zhang  <jie@codesourcery.com>
20578
20579         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
20580         out array boundary.
20581
20582 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
20583
20584         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
20585         builtins.exp in a separate job.
20586
20587 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20588
20589         * graphite-sese-to-poly.c (add_param_constraints): Use
20590         lower_bound_in_type and upper_bound_in_type.
20591
20592 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20593
20594         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
20595         instead of unsigned_type_node.
20596
20597 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20598             Reza Yazdani  <reza.yazdani@amd.com>
20599
20600         PR middle-end/43065
20601         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
20602         on pointer type parameters.
20603
20604 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
20605
20606         PR middle-end/42644
20607         PR middle-end/42130
20608         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
20609         handle conversions from pointer to integers.
20610         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
20611         induction variable, to be able to work with code generated by CLooG.
20612         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
20613         (build_poly_scop): Bail out if we cannot codegen a loop.
20614
20615 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
20616
20617         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
20618         code generation with gloog_error.
20619
20620 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20621
20622         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
20623         Call fold_convert on all the returned values.
20624         (expand_scalar_variables_expr): Pass to
20625         expand_scalar_variables_ssa_name the type of the resulting expression.
20626
20627 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20628
20629         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
20630         ppl_min_for_le_pointset.
20631         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
20632         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
20633
20634 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20635
20636         * graphite-dependences.c (map_into_dep_poly): Removed.
20637         (dependence_polyhedron_1): Use combine_context_id_scat.
20638
20639 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20640
20641         * graphite-poly.h (struct poly_scattering): Add layout documentation.
20642         (struct poly_bb): Same.
20643         (combine_context_id_scat): New.
20644
20645 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20646
20647         PR middle-end/42326
20648         * sese.c (name_defined_in_loop_p): Return false for default
20649         definitions.
20650
20651 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20652
20653         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
20654         and clean up the logic.
20655
20656 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20657
20658         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
20659         early return.
20660
20661 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
20662
20663         * var-tracking.c (remove_cselib_value_chains): Define only for
20664         ENABLE_CHECKING.
20665         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
20666         delete_slot_part, emit_notes_for_differences_1): Don't call
20667         remove_cselib_value_chains here.
20668         (set_slot_part, emit_notes_for_differences_2): Don't call
20669         add_cselib_value_chains here.
20670         (preserved_values): New vector.
20671         (preserve_value): New function.
20672         (add_uses, add_stores, vt_add_function_parameters): Use it
20673         instead of cselib_preserve_value.
20674         (changed_values_stack): New vector.
20675         (check_changed_vars_0): New function.
20676         (check_changed_vars_1, check_changed_vars_2): Use it.
20677         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
20678         changed_values_stack VALUEs.
20679         (vt_emit_notes): For all preserved_values call
20680         add_cselib_value_chains.  If ENABLE_CHECKING call
20681         remove_cselib_value_chains before verifying value_chains is empty.
20682         Initialize and free changed_values_stack.
20683         (vt_initialize): Initialize preserved_values.
20684         (vt_finalize): Free preserved_values.
20685
20686 2010-03-08  Richard Guenther  <rguenther@suse.de>
20687
20688         PR tree-optimization/43269
20689         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
20690         region detection.
20691
20692 2010-03-08  Martin Jambor  <mjambor@suse.cz>
20693
20694         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
20695         (ipa_is_param_called): Removed.
20696         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
20697         (ipa_print_node_params): Do not print the called flag.
20698         (ipa_write_node_info): Do not stream the called flag.
20699         (ipa_read_node_info): Likewise.
20700
20701 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
20702
20703         PR debug/43176
20704         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
20705         * cselib.c (struct expand_value_data): Add dummy field.
20706         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
20707         dummy to false.
20708         (cselib_dummy_expand_value_rtx_cb): New function.
20709         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
20710         any rtl.
20711         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
20712         * var-tracking.c: Include pointer-set.h.
20713         (variable): Change n_var_parts to char from int.  Add
20714         cur_loc_changed and in_changed_variables fields.
20715         (variable_canonicalize): Remove.
20716         (shared_var_p): New inline function.
20717         (unshare_variable): Maintain cur_loc_changed and
20718         in_changed_variables fields.  If var was in changed_variables,
20719         replace it there with new_var.  Just copy cur_loc instead of
20720         resetting it to something else.
20721         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
20722         (dataflow_set_union): Don't call variable_canonicalize.
20723         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
20724         of their DEBUG_EXPR_TREE_DECLs.
20725         (canonicalize_loc_order_check): Verify that cur_loc is NULL
20726         and in_changed_variables and cur_loc_changed is false.
20727         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
20728         and cur_loc_changed.  Don't update cur_loc here.
20729         (variable_merge_over_src): Don't call variable_canonicalize.
20730         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
20731         removing loc that is equal to cur_loc, clear cur_loc,
20732         set cur_loc_changed and ensure variable_was_changed is called.
20733         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
20734         compare pointers in cur_loc check, if it is equal to loc,
20735         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
20736         (variable_different_p): Remove compare_current_location argument,
20737         don't compare cur_loc.
20738         (dataflow_set_different_1): Adjust variable_different_p caller.
20739         (variable_was_changed): If dv had some var in changed_variables
20740         already, reset in_changed_variables flag for it and propagate
20741         cur_loc_changed over to the new variable.  On empty var
20742         always set cur_loc_changed.  Set in_changed_variables on whatever
20743         var is added to changed_variables.
20744         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
20745         Use shared_var_p.  When removing loc that is equal to cur_loc,
20746         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
20747         end, don't set it to something else, just call variable_was_changed.
20748         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
20749         loc being removed, clear cur_loc and set cur_loc_changed.
20750         Set cur_loc_changed if all locations have been removed.
20751         (struct expand_loc_callback_data): New type.
20752         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
20753         allocated.  Always create SUBREGs if simplify_subreg failed.
20754         Prefer to use cur_loc, when that fails and still in
20755         changed_variables (and seen first time) recompute it.  Set
20756         cur_loc_changed of variables which had to change cur_loc and
20757         compute elcd->cur_loc_changed if any of the subexpressions used
20758         had to change cur_loc.
20759         (vt_expand_loc): Adjust to pass arguments in
20760         expand_loc_callback_data structure.
20761         (vt_expand_loc_dummy): New function.
20762         (emitted_notes): New variable.
20763         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
20764         that weren't used for any other decl in current
20765         emit_notes_for_changes call call vt_expand_loc_dummy to update
20766         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
20767         first loc_chain location if NULL before.  Always use just
20768         cur_loc instead of first loc_chain location.  When cur_loc_changed
20769         is false, when not --enable-checking=rtl just don't emit any note.
20770         When rtl checking, compute the note and assert it is the same
20771         as previous note.  Clear cur_loc_changed and in_changed_variables
20772         at the end before removing from changed_variables.
20773         (check_changed_vars_3): New function.
20774         (emit_notes_for_changes): Traverse changed_vars to call
20775         check_changed_vars_3 on each changed var.
20776         (emit_notes_for_differences_1): Clear cur_loc_changed and
20777         in_changed_variables.  Recompute cur_loc of new_var.
20778         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
20779         (vt_emit_notes): Initialize and destroy emitted_notes.
20780
20781 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
20782
20783         PR rtl-optimization/42220
20784         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
20785         Use verify_reg_tracked to determine if we should use OP_OUT rather
20786         than OP_INOUT.
20787         (build_def_use): If we see an in-out operand for a register that we
20788         know nothing about, treat is an output if possible, fail the block if
20789         not.
20790
20791 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
20792
20793         PR debug/42897
20794         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
20795         permanently.
20796
20797 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
20798
20799         PR debug/42897
20800         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
20801         uses of relevant DEFs that are dead outside the loop too.
20802
20803 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
20804
20805         * var-tracking.c (dataflow_set_merge): Swap src and src2.
20806         Reverted:
20807         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
20808         PR debug/41371
20809         * var-tracking.c (values_to_unmark): New variable.
20810         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
20811         values_to_unmark vector.  Moved body to...
20812         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
20813         instead queue it into values_to_unmark vector.
20814         (vt_find_locations): Free values_to_unmark vector.
20815
20816 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
20817
20818         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
20819         (site.exp): Export them when plugins are enabled.
20820
20821 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
20822
20823         PR middle-end/42326
20824         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
20825         that contain scevs.
20826         (chrec_fold_multiply): Same.
20827
20828 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
20829
20830         PR c/43248
20831         * c-decl.c (build_compound_literal): Return early if init is
20832         an error_mark_node.
20833
20834 2010-03-04  Martin Jambor  <mjambor@suse.cz>
20835
20836         PR tree-optimization/43164
20837         PR tree-optimization/43191
20838         * tree-sra.c (type_consists_of_records_p): Reject records with
20839         zero-size bit-fields at the end.
20840
20841 2010-03-04  Mike Stump  <mikestump@comcast.net>
20842
20843         * Makefile.in (TAGS): Remove *.y.
20844
20845 2010-03-04  Richard Guenther  <rguenther@suse.de>
20846
20847         PR tree-optimization/40761
20848         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
20849         in reverse order.
20850         (my_rev_post_order_compute): New function.
20851         (init_pre): Call it.
20852
20853 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
20854
20855         PR middle-end/43209
20856         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
20857         decrease the cost of an IV candidate when the cost is infinite.
20858
20859 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20860
20861         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
20862         Use '3DNow!' for the extension of that name, ensure normal space
20863         after the string.
20864         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
20865
20866 2010-03-03  Jeff Law  <law@redhat.com>
20867
20868         * PR middle-end/32693
20869         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
20870         than gen_rtx_SUBREG.
20871         (extract_bit_field_1): Likewise.
20872
20873 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
20874
20875         * doc/sourcebuild.texi (Test directives): Document that arguments
20876         include-opts and exclude-opts are now optional for dg-skip-if,
20877         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
20878
20879 2010-03-03  Jason Merrill  <jason@redhat.com>
20880
20881         PR c++/12909
20882         * cgraph.h (varpool_node): Add extra_name field.
20883         * varpool.c (varpool_extra_name_alias): New.
20884         (varpool_assemble_decl): Emit extra name aliases.
20885         (varpool_mark_needed_node): Look past an extra name alias.
20886         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
20887         * lto-streamer-in.c (lto_input_tree): Read it.
20888         * lto-streamer-out.c (output_unreferenced_globals): Write it.
20889
20890 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
20891
20892         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
20893         (sparc*-*-solaris2*): ...this.
20894
20895 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
20896
20897         PR debug/43229
20898         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
20899         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
20900         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
20901         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
20902
20903         PR debug/43237
20904         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
20905         fallthrough to default handling, just with want_address 0 instead of 2.
20906         For single element lists, add_AT_loc directly, otherwise create an
20907         artificial variable DIE and stick location list to it.
20908
20909         PR debug/43177
20910         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
20911         (VAL_EXPR_HAS_REVERSE): Define.
20912         (reverse_op): New function.
20913         (add_stores): For reversible operations add an extra MO_VAL_USE.
20914
20915 2010-03-02  Jason Merrill  <jason@redhat.com>
20916
20917         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
20918
20919 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
20920
20921         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
20922         (sparc64-*-linux*): Likewise.
20923         (sparc64-*-solaris2*): Include assembler files before linker ones.
20924         (sparc-*-solaris2*): Simplify and reorder to match previous case.
20925         * config/sparc/gas.h: Delete.
20926         * config/sparc/sol2-64.h: Add copyright notice.
20927         * config/sparc/sol2-gas-bi.h: Likewise.
20928         * config/sparc/sol2-gld.h: Likewise.
20929         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
20930         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
20931         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
20932         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
20933         (sparc_elf_asm_named_section): Rename into...
20934         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
20935
20936 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
20937
20938         * config/alpha/alpha.c (override_options): Fix -mtune error message.
20939
20940 2010-03-02  Jeff Law  <law@redhat.com>
20941
20942         PR middle-end/42431
20943         * reload1.c (rtx_p, substitute_stack): Declare.
20944         (substitute): Record addresses of changed rtxs.
20945         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
20946         Restore the original rtx when complete.
20947         (reload): Free subsitute_stack when complete.
20948
20949 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
20950
20951         * doc/gccint.texi (menu): Add Testsuites as a chapter.
20952         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
20953         new chapter.
20954         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
20955         LTO Testing, gcov Testing, profopt Testing, compat Testing,
20956         Torture Tests): Change from subsection to section.
20957
20958 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
20959             Steven Bosscher  <steven@gcc.gnu.org>
20960
20961         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
20962         instead of bb.
20963
20964 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
20965
20966         PR middle-end/42640
20967         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
20968         the assignment from the new induction variable to the assignment
20969         of the value from the original loop PHI function.
20970
20971 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
20972             Daniel Jacobowitz  <dan@codesourcery.com>
20973
20974         * doc/sourcebuild.texi (Test directives): Clarify options to
20975         dg-skip-if.
20976
20977 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20978
20979         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
20980         Disable cfi directives unless GCC and gas agree on using read-only
20981         .eh_frame sections for 64-bit.
20982         * configure: Regenerate.
20983
20984 2010-03-01  Richard Guenther  <rguenther@suse.de>
20985
20986         PR tree-optimization/43220
20987         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
20988         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
20989
20990 2010-03-01  Richard Guenther  <rguenther@suse.de>
20991             Martin Jambor  <mjambor@suse.cz>
20992
20993         PR middle-end/41250
20994         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
20995         gimplified parameters.
20996
20997 2010-03-01  Christian Bruel  <christian.bruel@st.com>
20998
20999         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
21000
21001 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
21002
21003         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
21004
21005 2010-03-01  Richard Guenther  <rguenther@suse.de>
21006
21007         PR middle-end/43213
21008         * expr.c (expand_assignment): Use the alias-oracle to tell
21009         if the rhs aliases the result decl.
21010
21011 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21012
21013         PR pch/14940
21014         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
21015         to sol_gt_pch_get_address.
21016         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
21017         64-bit, SPARC and x86.
21018         (sol_gt_pch_get_address): New function.
21019
21020 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
21021
21022         * toplev.h (inform_n, error_n): Declare.
21023         * diagnostic.c (inform_n, error_n): New function.
21024
21025 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
21026
21027         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
21028         has no rtl yet when processing local_decls, queue it and recheck
21029         if deferred stack allocation hasn't assigned it rtl.
21030
21031 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
21032
21033         * config/sh/sh.c (unspec_bbr_uid): New.
21034         (gen_block_redirect): Use it instead of INSN_UID.
21035         (gen_far_branch): Likewise.
21036
21037 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
21038
21039         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
21040         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
21041
21042 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21043
21044         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
21045         (Warning Options): -Wno-conversion-null is valid for
21046         Objective-C++ as well.
21047         * doc/tm.texi (Named Address Spaces): Likewise.
21048         * doc/plugins.texi (Plugins): Replace TABs with spaces.
21049         * doc/tree-ssa.texi (Tree SSA): Likewise.
21050
21051 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
21052
21053         PR bootstrap/43202
21054         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
21055         by default.  Don't set the default arch for
21056         i[34567]86-*-darwin*|x86_64-*-darwin*.
21057
21058 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
21059
21060         PR bootstrap/43202
21061         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
21062         default.  Set the default 32bit/64bit archs with $with_arch
21063         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
21064
21065 2010-02-27  Richard Guenther  <rguenther@suse.de>
21066
21067         PR tree-optimization/43186
21068         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
21069         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
21070         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
21071         unroller iterations.
21072
21073 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
21074
21075         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
21076         required and i[34567]86-*-* targets don't support 64bit ISA.
21077
21078 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
21079
21080         PR ada/43096
21081         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
21082         the same alias set.
21083
21084 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
21085
21086         * config.gcc: Set the default arch at least to Prescott for
21087         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
21088         if SSE math is enabled.
21089
21090 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21091
21092         * diagnostic.c (diagnostic_initialize): Update.
21093         (diagnostic_report_diagnostic): Test inhibit_notes_p for
21094         informative notes.
21095         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
21096         (diagnostic_inhibit_notes): New.
21097         * toplev.c (process_options): inhibit notes with -fcompare-debug.
21098
21099 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21100
21101         PR c/20631
21102         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
21103         * doc/standards.texi: Likewise.
21104         * doc/extend.texi: Likewise.
21105         * doc/trouble.texi: Likewise.
21106         * doc/cppopts.texi: Likewise.
21107         * doc/install.texi: Likewise.
21108         * c.opt (std=c90,std=gnu90): New options.
21109         * c-opts.c (c_common_handle_option): Handle them.
21110
21111 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21112
21113         PR c/24577
21114         * c-decl.c (undeclared_variable): Use an informative note.
21115
21116 2010-02-26  Richard Guenther  <rguenther@suse.de>
21117
21118         PR tree-optimization/43186
21119         * gimple.h (gimple_fold): Remove.
21120         * gimple.c (gimple_fold): Remove.  Inline into single user ...
21121         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
21122         Try harder for conditions.
21123
21124 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
21125
21126         PR debug/43190
21127         * function.c (used_types_insert): Don't skip through named pointer
21128         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
21129         and it is different from the main variant's type.
21130
21131 2010-02-26  Nick Clifton  <nickc@redhat.com>
21132
21133         * config/rx/rx.md (sminsi3): Remove bogus alternative.
21134
21135 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
21136
21137         * config.gcc: Support --with-fpmath=sse for x86.
21138
21139         * config/i386/ssemath.h: New.
21140
21141         * doc/install.texi (--with-fpmath=sse): Documented.
21142
21143 2010-02-26  Richard Guenther  <rguenther@suse.de>
21144
21145         PR tree-optimization/43188
21146         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
21147         vector types of over-aligned element type.
21148
21149 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
21150
21151         PR target/43175
21152         * config/i386/i386.c (expand_vec_perm_blend): Use correct
21153         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
21154
21155 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
21156
21157         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
21158
21159 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
21160
21161         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
21162         * var-tracking.c: Include diagnostic.h.
21163         (debug_dv): New function.
21164         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
21165
21166         PR debug/43160
21167         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
21168         (add_value_chain, add_value_chains, remove_value_chain,
21169         remove_value_chains): Handle DEBUG_EXPRs.
21170         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
21171
21172         PR debug/43161
21173         * regcprop.c (struct queued_debug_insn_change): New type.
21174         (struct value_data_entry): Add debug_insn_changes field.
21175         (struct value_data): Add n_debug_insn_changes field.
21176         (debug_insn_changes_pool): New variable.
21177         (free_debug_insn_changes, apply_debug_insn_changes,
21178         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
21179         (kill_value_one_regno): Call free_debug_insn_changes if needed.
21180         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
21181         fields.
21182         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
21183         changes for them.
21184         (copyprop_hardreg_forward_1): Don't call apply_change_group for
21185         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
21186         changes, call cprop_find_used_regs via note_stores.
21187         (copyprop_hardreg_forward): When copying vd from predecessor
21188         which has any queued DEBUG_INSN changes, make sure the pointers are
21189         cleared.  At the end call df_analyze and then if there are any
21190         DEBUG_INSN changes queued at the end of some basic block for still
21191         live registers, apply them.
21192         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
21193
21194 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
21195
21196         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
21197         (arm*-*-*): Ditto.
21198
21199 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
21200
21201         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
21202         targets.  Set the default with_cpu/with_arch from arch/cpu.
21203         Allow x86-64 and native for with_cpu/with_arch.
21204
21205 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
21206
21207         * ebitmap.c: Change calls to verify_popcount with calls to
21208         sbitmap_verify_popcount.
21209         (ebitmap_clear_bit): Fixed map->cacheindex test and
21210         map>cache update when bit clearing results in an empty
21211         element.
21212
21213 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
21214
21215         PR target/43154
21216         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
21217         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
21218         and support both V2DF and V2DI modes.
21219         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
21220         support both V2DF and V2DI modes.
21221         (general): Delete trailing whitespace from a few patterns.
21222
21223         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21224         V2DF/V2DI interleave high/low builtins.
21225
21226         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
21227         new VSX builtins.
21228
21229         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
21230         interleave high/low functions.
21231
21232 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
21233
21234         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
21235         #pragma extern_prefix.
21236
21237 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
21238
21239         PR debug/43166
21240         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
21241         BLKmode, assert op0 is a MEM and just adjust its mode.
21242
21243         PR debug/43165
21244         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
21245         if bitpos isn't multiple of mode's bitsize.
21246
21247 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21248
21249         * c.opt (-ftemplate-depth=): New.
21250         (-ftemplate-depth-): Deprecate.
21251         * optc-gen.awk: Handle -ftemplate-depth=.
21252         * opth-gen.awk: Likewise.
21253         * c-opts.c (c_common_handle_option): Likewise.
21254         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
21255
21256 2010-02-24  Jason Merrill  <jason@redhat.com>
21257
21258         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
21259
21260 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21261
21262         * cfg.c (alloc_aux_for_block): Remove inline.
21263         (alloc_aux_for_edge): Likewise.
21264
21265 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21266
21267         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
21268
21269 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21270
21271         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
21272         * config/i386/sol2-gas.h: New file.
21273         * config.gcc (i[34567]86-*-solaris2*): Use it.
21274
21275 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21276
21277         PR c/43128
21278         * c-typeck.c (ep_convert_and_check): New.
21279         (build_conditional_expr): Use it.
21280         (build_binary_op): Likewise.
21281
21282 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
21283
21284         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
21285
21286         PR debug/43150
21287         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
21288         bounds even for -O+.
21289         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
21290         expr needs to have DECL_NAME set.
21291
21292 2010-02-24  Nick Clifton  <nickc@redhat.com>
21293
21294         * config/mep/mep.c: Include gimple.h.
21295         (mep_function_uses_sp): Delete unused function.
21296         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
21297         parameters.  Use unsigned integers to count args.  Return a
21298         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
21299
21300 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
21301
21302         PR target/43107
21303         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
21304         greater or equal to nelt instead of 2 * nelt.
21305         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
21306         with nelt - 1.
21307
21308 2010-02-23  Jason Merrill  <jason@redhat.com>
21309
21310         PR debug/42800
21311         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
21312         in cfun->local_decls even if they have register types.
21313
21314         PR c++/42837
21315         * stor-layout.c (place_field): Don't warn about unnecessary
21316         DECL_PACKED if the type is packed.
21317
21318 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
21319
21320         PR target/43139
21321         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
21322         GOTOFF relocs, even when the base reg isn't pic pointer.
21323
21324 2010-02-23  Michael Matz  <matz@suse.de>
21325
21326         PR debug/43077
21327         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
21328         (expand_gimple_basic_block): Generate and use debug temps if there
21329         are debug uses left after the last real use of TERed ssa names.
21330         Unlink debug immediate uses when they are expanded.
21331
21332 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21333
21334         PR 43123
21335         * config/i386/i386.c (override_options): Reorganise to provide
21336         better error messages.
21337
21338 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21339
21340         PR middle-end/43083
21341         * graphite-scop-detection.c (create_single_exit_edge): Move
21342         the call to find_single_exit_edge to....
21343         (create_sese_edges): ...here.  Don't handle multiple edges
21344         exiting the function.
21345         (build_graphite_scops): Don't handle multiple edges
21346         exiting the function.
21347
21348 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21349
21350         PR middle-end/43097
21351         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
21352         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
21353
21354 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21355
21356         PR middle-end/43026
21357         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
21358
21359 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21360
21361         PR c++/43126
21362         * c-typeck.c (convert_arguments): Print declaration location.
21363         * c-common.c (validate_nargs): Rename as
21364         builtin_function_validate_nargs.
21365         (check_builtin_function_arguments): Update.
21366
21367 2010-02-22  Richard Guenther  <rguenther@suse.de>
21368
21369         PR lto/43045
21370         * tree-inline.c (declare_return_variable): Use the type of
21371         the call stmt lhs if available.
21372
21373 2010-02-22  Duncan Sands  <baldrick@free.fr>
21374
21375         * passes.c (register_pass): Always consider all pass lists when
21376         ref_pass_instance_number is zero.
21377
21378 2010-02-22  Richard Guenther  <rguenther@suse.de>
21379
21380         PR tree-optimization/42749
21381         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
21382         parameter.  Do arithmetic in the original type.
21383         (update_accumulator_with_ops): Likewise.
21384         (adjust_accumulator_values): Adjust.
21385
21386 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21387
21388         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
21389         (QI to BLKmode splitter): New splitter.
21390
21391 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
21392
21393         * config/i386/i386.c (initial_ix86_tune_features): Turn on
21394         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
21395
21396 2010-02-22  Richard Guenther  <rguenther@suse.de>
21397
21398         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
21399
21400 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
21401
21402         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
21403         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
21404         ($(T)crti.o, $(T)crtn.o): Remove rules.
21405
21406 2010-02-21  Tobias Burnus  <burnus@net-b.de>
21407
21408         PR fortran/35259
21409         * doc/invoke.texi (-fassociative-math): Document that this
21410         option is automatically enabled for Fortran.
21411
21412 2010-02-20  David S. Miller  <davem@davemloft.net>
21413
21414         * configure.ac: Test if linker and assembler properly support
21415         GOTDATA_OP relocations.
21416         * configure: Rebuild.
21417         * config.in: Likewise.
21418         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
21419         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
21420         (movsi_high_pic): Likewise.
21421         (movdi_lo_sum_pic): Likewise.
21422         (movdi_high_pic): Likewise.
21423         (movsi_pic_gotdata_op): New pattern.
21424         (movdi_pic_gotdata_op): Likewise.
21425         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
21426         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
21427
21428 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
21429
21430         PR target/43067
21431         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
21432         attribute to ssemul.
21433         (xop_mulv2div2di3_high): Ditto.
21434
21435 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21436
21437         PR c++/35669
21438         * c.opt (Wconversion-null): New option.
21439         * doc/invoke.texi (Wconversion-null): Document.
21440
21441 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21442
21443         * common.opt (Wlarger-than-): Add Undocumented.
21444
21445 2010-02-19  Mike Stump  <mikestump@comcast.net>
21446
21447         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
21448
21449 2010-02-19  Jason Merrill  <jason@redhat.com>
21450
21451         PR target/40332
21452         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
21453         * configure: Likewise.
21454
21455 2010-02-20  Alan Modra  <amodra@gmail.com>
21456
21457         PR middle-end/42344
21458         * cgraph.h (cgraph_make_decl_local): Declare.
21459         * cgraph.c (cgraph_make_decl_local): New function.
21460         (cgraph_make_node_local): Use it.
21461         * cgraphunit.c (cgraph_function_versioning): Likewise.
21462         * ipa.c (function_and_variable_visibility): Likewise.
21463
21464 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
21465
21466         PR bootstrap/43121
21467         * except.c (sjlj_emit_function_enter): Don't call
21468         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
21469         directly.
21470         * rtl.h (add_reg_br_prob_note): Remove prototype.
21471
21472 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21473
21474         PR 41779
21475         * c-common.c (conversion_warning): Remove widening conversions
21476         before checking the conversion of integers to reals.
21477
21478 2010-02-19  Mike Stump  <mikestump@comcast.net>
21479
21480         PR middle-end/43125
21481         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
21482
21483         PR objc/43061
21484         * cgraphunit.c (process_function_and_variable_attributes): Check
21485         DECL_PRESERVE_P instead of looking up attribute "used".
21486         * ipa-pure-const.c (check_decl): Likewise.
21487         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
21488         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
21489         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
21490         instead of attribute "used".
21491         * config/sol2-c.c (solaris_pragma_init): Likewise.
21492         (solaris_pragma_fini): Likewise.
21493
21494 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
21495
21496         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
21497         Use XCNEW instead of xcalloc.
21498         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
21499         XNEW instead of xmalloc.
21500         (get_fields): Use XNEWVEC instead of xmalloc.
21501
21502         PR debug/43084
21503         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
21504         populate vars array.
21505         (create_new_general_access): For debug stmts just reset value.
21506         (get_stmt_accesses): For accesses within debug stmts just record them
21507         using add_access_to_acc_sites instead of preventing the peeling or
21508         counting them as accesses.
21509
21510         PR middle-end/42233
21511         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
21512
21513 2010-02-19  Richard Guenther  <rguenther@suse.de>
21514
21515         PR tree-optimization/42916
21516         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
21517         instructions.
21518
21519 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
21520
21521         * configure.ac: Replace all uses of changequote in macro arguments
21522         with proper quoting.
21523
21524 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
21525
21526         PR middle-end/42233
21527         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
21528
21529 2010-02-19  Richard Guenther  <rguenther@suse.de>
21530
21531         PR tree-optimization/42944
21532         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
21533         test for aliasing with errno.
21534
21535 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
21536
21537         PR middle-end/42233
21538         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
21539         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
21540         * dojump.c: Include output.h.
21541         (inv): New inline function.
21542         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
21543         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
21544         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
21545         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
21546         argument, pass it down to other calls.
21547         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
21548         add REG_BR_PROB note to the conditional jump.
21549         * cfgexpand.c (add_reg_br_prob_note): Removed.
21550         (expand_gimple_cond): Don't call it, add the probability
21551         as last argument to jumpif_1/jumpifnot_1.
21552         * Makefile.in (dojump.o): Depend on output.h.
21553         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
21554         callers.
21555         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
21556         * stmt.c (do_jump_if_equal): Likewise.
21557         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
21558         * loop-unswitch.c (compare_and_jump_seq): Likewise.
21559         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
21560         Likewise.
21561         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
21562         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
21563         jumpifnot_1 callers.
21564         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
21565         callers.
21566         (store_expr): Adjust jumpifnot caller.
21567         (store_constructor): Adjust jumpif caller.
21568
21569         PR middle-end/42233
21570         * gimplify.c (gimple_boolify): For __builtin_expect call
21571         gimple_boolify also on its first argument.
21572
21573 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
21574
21575         * configure.ac (gnu-unique-object): Wrap regexps using [] in
21576         changequote block.
21577         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
21578         * configure: Regenerated.
21579
21580 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21581
21582         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
21583         lang_hooks.types_compatible_p instead of comptypes.
21584
21585 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
21586
21587         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
21588         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
21589         if __prefer_thumb__ is defined.
21590
21591 2010-02-18  Martin Jambor  <mjambor@suse.cz>
21592
21593         PR tree-optimization/43066
21594         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
21595         array with zero-sized element type.
21596
21597 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
21598
21599         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
21600         rtx, allocate struct var_loc_node here and return it to the
21601         caller, and only if it is actually needed.
21602         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
21603         move it earlier and return immediately if it returns NULL.
21604
21605 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
21606
21607         * config/sparc/gas.h: New file.  Restore
21608         TARGET_ASM_NAMED_SECTION to its ELF default.
21609         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
21610         check !HAVE_GNU_AS.
21611         * config/sparc/sparc.c (sparc_elf_asm_named_section):
21612         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
21613         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
21614         after sparc/sysv4.h.
21615
21616 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
21617
21618         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
21619
21620 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
21621
21622         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
21623         patterns from predicated pattern.
21624
21625 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
21626
21627         PR target/43103
21628         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
21629         for insn mnemonic suffix.
21630
21631 2010-02-17  Richard Guenther  <rguenther@suse.de>
21632
21633         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
21634         to loop PHI nodes.
21635
21636 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
21637
21638         PR debug/42918
21639         * caller-save.c (save_call_clobbered_regs): If BB ends with
21640         a DEBUG_INSN, move any notes in between last real insn and the last
21641         DEBUG_INSN after the last DEBUG_INSN.
21642
21643 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
21644
21645         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
21646         Fix return type.  Fix argument type.  Explain meaning of return value.
21647
21648 2010-02-16  Richard Guenther  <rguenther@suse.de>
21649
21650         PR tree-optimization/41043
21651         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
21652         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
21653         statements ...
21654         (vrp_visit_phi_node): ... but only for loop PHI nodes.
21655
21656 2010-02-16  Ira Rosen  <irar@il.ibm.com>
21657
21658         PR tree-optimization/43074
21659         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
21660         * tree-vect-loop.c (vect_analyze_loop_operations): Add
21661         vectorizable cycles in hybrid SLP check.
21662         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
21663
21664 2010-02-16  Richard Guenther  <rguenther@suse.de>
21665
21666         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
21667         (true_dependence): If memrefs_conflict_p computes must-alias
21668         trust it.  Move TBAA check after offset-based disambiguation.
21669         (canon_true_dependence): Likewise.
21670
21671 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
21672
21673         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
21674         * doc/invoke.texi: Document it.
21675         * var-tracking.c: Include toplev.h and params.h.
21676         (vt_find_locations): Return bool indicating success.  Compute
21677         hash sizes unconditionally.  Check new parameter, report.
21678         (variable_tracking_main_1): Check vt_find_locations results and
21679         retry.  Renamed from...
21680         (variable_tracking_main): ... this.  New wrapper to preserve
21681         flag_var_tracking_assignments.
21682         * Makefile.in (var-tracking.o): Adjust dependencies.
21683
21684 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
21685             Jakub Jelinek  <jakub@redhat.com>
21686
21687         PR target/42854
21688         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
21689         if weak_import attribute is present.
21690         * config/darwin.c (machopic_select_section): Likewise.
21691
21692 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
21693
21694         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
21695         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
21696         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
21697         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
21698
21699         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
21700         types.
21701
21702         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
21703         Fix argument types.
21704
21705         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
21706         Rewrite text to refer to the names.
21707
21708 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
21709
21710         * config/i386/i386-builtin-types.def
21711         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
21712         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
21713         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
21714         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
21715         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
21716         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
21717         IX86_BUILTIN_VPERMIL2PS256.
21718         (MULTI_ARG_4_DF2_DI_I): Defined.
21719         (MULTI_ARG_4_DF2_DI_I1): Defined.
21720         (MULTI_ARG_4_SF2_SI_I): Defined.
21721         (MULTI_ARG_4_SF2_SI_I1): Defined.
21722         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
21723         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
21724         __builtin_ia32_vpermil2ps256.
21725         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
21726         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
21727         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
21728         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
21729         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
21730         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
21731         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
21732         CODE_FOR_xop_vpermil2v8sf3.
21733         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
21734         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
21735         * config/i386/xopintrin.h (_mm_permute2_pd): New.
21736         (_mm256_permute2_pd): New.
21737         (_mm_permute2_ps): New.
21738         (_mm256_permute2_ps): New.
21739
21740 2010-02-15  Nick Clifton  <nickc@redhat.com>
21741
21742         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
21743         boolean parameters.  Use emit_jump_insn when emitting a pop
21744         instruction containing a return insn.
21745         (push): Use 'true' rather than '1' as second parameter to F.
21746         (h8300_expand_prologue): Likewise.
21747         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
21748         (h8300_expand_epilogue): Likewise.
21749
21750 2010-02-15  Richard Guenther  <rguenther@suse.de>
21751
21752         PR middle-end/43068
21753         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
21754         if that is zero.
21755
21756 2010-02-15  Nick Clifton  <nickc@redhat.com>
21757
21758         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
21759         delta.
21760
21761 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
21762
21763         * intl.c (fake_ngettext): New function.
21764         * intl.h (fake_ngettext): Declare.
21765         (ngettext): Define macro.
21766         * collect2.c (notice_translated): New function.
21767         (main): Use notice_translated and ngettext.
21768         * collect2.h (notice_translated): Declare.
21769
21770 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
21771
21772         * reorg.c (delete_computation): Comment fixes.
21773         * caller-save.c (setup_save_areas): Idem.
21774         * sel-sched-dump.c (dump_lv_set): Idem.
21775         * rtl.def: Idem.
21776
21777 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21778
21779         * config/s390/s390.c (s390_sched_init): New function.
21780         (TARGET_SCHED_INIT): Target hook defined.
21781
21782 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
21783             Jack Howarth  <howarth@bromo.med.uc.edu>
21784             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
21785
21786         PR target/42982
21787         Partial revert of unintended change in fix for PR41605.
21788         * config/darwin.h: Fix typo.
21789         * config/darwin9.h: Same.
21790
21791 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
21792
21793         * c-pch.c (pch_init): Clear v.
21794
21795 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
21796
21797         PR middle-end/42930
21798         * graphite-scop-detection.c (graphite_can_represent_scev): Call
21799         graphite_can_represent_init for MULT_EXPR.
21800
21801 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
21802
21803         PR middle-end/42914
21804         PR middle-end/42530
21805         * graphite-sese-to-poly.c (remove_phi): New.
21806         (translate_scalar_reduction_to_array): Call remove_phi.
21807
21808 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
21809
21810         PR middle-end/42771
21811         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
21812         * graphite-clast-to-gimple.h (gloog): Update declaration.
21813         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
21814         * graphite-poly.h (struct poly_bb): Add missing comments.
21815         (struct scop): Add poly_scop_p field.
21816         (POLY_SCOP_P): New.
21817         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
21818         * graphite.c (graphite_transform_loops): Build the polyhedral
21819         representation for each scop before code generation.
21820         * sese.c (rename_variables_in_operand): Removed.
21821         (rename_variables_in_expr): Return the renamed expression.
21822         (rename_sese_parameters): New.
21823         * sese.h (rename_sese_parameters): Declared.
21824
21825 2010-02-11  Richard Guenther  <rguenther@suse.de>
21826
21827         PR tree-optimization/42998
21828         * tree-ssa-pre.c (create_expression_by_pieces): Treat
21829         POINTER_PLUS_EXPR properly.
21830
21831 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
21832             Changpeng Fang  <changpeng.fang@amd.com>
21833
21834         PR middle-end/40886
21835         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
21836         the cost of an IV candidate when the IV is used in a test against zero.
21837
21838         * gcc.dg/tree-ssa/ivopts-3.c: New.
21839
21840 2010-02-11  Richard Guenther  <rguenther@suse.de>
21841
21842         PR lto/41664
21843         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
21844         pointer-vs-decl case by swapping refs.  Handle some cases
21845         of pointer-vs-decl disambiguations more conservatively.
21846         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
21847         to false after expanding.
21848
21849 2010-02-11  Richard Guenther  <rguenther@suse.de>
21850
21851         PR driver/43021
21852         * gcc.c (process_command): Handle LTO file@offset case more
21853         appropriately.
21854
21855 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
21856
21857         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
21858         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
21859         of DEBUG_INSNs.
21860         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
21861
21862         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
21863         if MEM's mode size isn't DWARF2_ADDR_SIZE.
21864         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
21865         Optimize eq/ne comparisons when both arguments are known to be
21866         zero-extended.
21867         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
21868         Don't mask operands unnecessarily if they are known to be already
21869         zero-extended.
21870
21871 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
21872
21873         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
21874         instead of loop.
21875
21876 2010-02-10  Richard Guenther  <rguenther@suse.de>
21877
21878         PR tree-optimization/43017
21879         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
21880         for wrapping signed arithmetic.
21881
21882 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
21883
21884         PR debug/43010
21885         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
21886         if no debug info should be emitted for it.
21887
21888 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
21889
21890         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
21891         note when flag_exceptions is set.
21892
21893 2010-02-10  Duncan Sands  <baldrick@free.fr>
21894
21895         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
21896
21897 2010-02-10  Richard Guenther  <rguenther@suse.de>
21898
21899         PR c/43007
21900         * tree.c (get_unwidened): Handle constants.
21901         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
21902
21903 2010-02-10  Martin Jambor  <mjambor@suse.cz>
21904
21905         PR lto/42985
21906         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
21907         check for variable argument counts independently.
21908
21909 2010-02-10  Christian Bruel  <christian.bruel@st.com>
21910
21911         PR target/42841
21912         * config/sh/sh.c (find_barrier): Increase length for non delayed
21913         conditional branches.
21914
21915 2010-02-10  Christian Bruel  <christian.bruel@st.com>
21916
21917         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
21918
21919 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
21920
21921         * builtins.c (set_builtin_user_assembler_name): Also handle
21922         ffs if int is smaller than word.
21923
21924 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
21925
21926         PR middle-end/42973
21927         * ira-conflicts.c (get_dup): Remove.
21928         (process_reg_shuffles): Add new parameter.  Use it as an
21929         additional guard for copy generation.
21930         (add_insn_allocno_copies): Rewrite.
21931
21932 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
21933
21934         * common.opt (fsched2-use-traces): Preserved for backward
21935         compatibility.
21936         * doc/invoke.texi: Remove the documentation about option
21937         -fsched2-use-traces.
21938         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
21939         flag_sched2_use_traces.
21940         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
21941         the backward compatibility flag section.
21942
21943 2010-02-09  Richard Guenther  <rguenther@suse.de>
21944
21945         PR tree-optimization/43008
21946         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
21947         make HEAP variables initialized from global memory if they
21948         are not known builtin functions.
21949         (find_func_aliases): Adjust.
21950
21951 2010-02-09  Richard Guenther  <rguenther@suse.de>
21952
21953         PR tree-optimization/43000
21954         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
21955         arithmetic manually.
21956
21957 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
21958
21959         PR tree-optimization/42931
21960         * tree-loop-linear.c (try_interchange_loops): Don't call
21961         double_int_mul if estimated_loop_iterations failed.
21962
21963 2010-02-08  Martin Jambor  <mjambor@suse.cz>
21964
21965         PR middle-end/42898
21966         * tree-sra.c (build_accesses_from_assign): Do not mark in
21967         should_scalarize_away_bitmap if stmt has volatile ops.
21968         (sra_modify_assign): Do not process assigns piecemeal if if stmt
21969         has volatile ops.
21970
21971 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
21972
21973         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
21974
21975 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
21976
21977         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
21978         before the pattern.
21979
21980 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
21981
21982         PR middle-end/42946
21983         * df-core.c (df_finish_pass): Change type of saved_flags to int.
21984
21985 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
21986
21987         PR middle-end/42988
21988         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
21989         to unknown_dependence.
21990         (graphite_legal_transform_dr): Handle the unknown_dependence.
21991         (graphite_carried_dependence_level_k): Same.
21992
21993 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
21994
21995         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
21996
21997 2010-02-07  Richard Guenther  <rguenther@suse.de>
21998
21999         PR middle-end/42991
22000         * expr.c (get_inner_reference): Always initialize *pbitsize.
22001
22002 2010-02-07  Richard Guenther  <rguenther@suse.de>
22003
22004         PR middle-end/42956
22005         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
22006         new ARRAY_REFs on variable size element or minimal index arrays.
22007         Complete.
22008         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
22009         gimple_fold_indirect_ref.
22010
22011 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
22012
22013         PR target/42957
22014         * arm.c (arm_override_options): Just return if the user has specified
22015         an invalid fpu name.
22016
22017 2010-02-03  Jason Merrill  <jason@redhat.com>
22018
22019         PR c++/42870
22020         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
22021         i386_pe_maybe_record_exported_symbol.
22022
22023 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
22024
22025         PR target/42924
22026         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
22027         (pa_delegitimize_address): New function.
22028
22029 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
22030
22031         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
22032         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
22033
22034 2010-02-05  Richard Guenther  <rguenther@suse.de>
22035
22036         PR lto/42762
22037         * lto-streamer-in.c (get_resolution): Deal with references
22038         to undefined functions.
22039
22040 2010-02-05  Richard Guenther  <rguenther@suse.de>
22041
22042         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
22043         (fold_const_aggregate_ref): Likewise.
22044         (ccp_fold_stmt): Substitute loads.
22045         (maybe_fold_reference): Verify types before substituting.
22046         Unshare properly.
22047         (fold_gimple_assign): Unshare properly.
22048         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
22049
22050 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
22051
22052         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
22053         for rs6000_gen_cell_microcode.
22054
22055 2010-02-04  Richard Guenther  <rguenther@suse.de>
22056
22057         PR rtl-optimization/42952
22058         * dse.c (const_or_frame_p): Remove MEM handling.
22059
22060 2010-02-04  Nick Clifton  <nickc@redhat.com>
22061
22062         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
22063         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
22064         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
22065         (mn10300_asm_output_mi_thunk): New function.
22066         (mn10300_can_output_mu_thunk): New function.
22067         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
22068         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
22069         (FUNCTION_ARG): Delete incorrect comment.
22070
22071 2010-02-03  Jason Merrill  <jason@redhat.com>
22072
22073         PR c++/40138
22074         * fold-const.c (operand_equal_p): Handle erroneous types.
22075
22076 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
22077
22078         * config/h8300/h8300.md (can_delay): Fix attibute condition.
22079
22080 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
22081
22082         PR rtl-optimization/42941
22083         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
22084         of xmalloc.
22085
22086 2010-02-03  Jason Merrill  <jason@redhat.com>
22087
22088         PR c++/35652
22089         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
22090
22091 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
22092
22093         PR debug/42896
22094         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
22095         (cselib_reset_table): Renamed from...
22096         (cselib_reset_table_with_next_value): ... this.
22097         (cselib_get_next_uid): Renamed from...
22098         (cselib_get_next_unknown_value): ... this.
22099         * cselib.c (next_uid): Renamed from...
22100         (next_unknown_value): ... this.
22101         (cselib_clear_table): Adjust.
22102         (cselib_reset_table): Adjust.  Renamed from...
22103         (cselib_reset_table_with_next_value): ... this.
22104         (cselib_get_next_uid): Adjust.  Renamed from...
22105         (cselib_get_next_unknown_value): ... this.
22106         (get_value_hash): Use hash.
22107         (cselib_hash_rtx): Likewise.
22108         (new_cselib_val): Adjust.  Set and dump uid.
22109         (cselib_lookup_mem): Pass next_uid as hash.
22110         (cselib_subst_to_values): Likewise.
22111         (cselib_log_lookup): Dump uid.
22112         (cselib_lookup): Pass next_uid as hash.  Adjust.
22113         (cselib_process_insn): Adjust.
22114         (cselib_init): Initialize next_uid.
22115         (cselib_finish): Adjust.
22116         (dump_cselib_table): Likewise.
22117         * dse.c (canon_address): Dump value uid.
22118         * print-rtl.c (print_rtx): Print value uid.
22119         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
22120         (dvuid): New type.
22121         (dv_uid): New function, sort of renamed from...
22122         (dv_htab_hash): ... this, reimplemented in terms of it and...
22123         (dv_uid2hash): ... this.  New.
22124         (variable_htab_eq): Drop excess assertions.
22125         (tie_break_pointers): Removed.
22126         (canon_value_cmp): Compare uids.
22127         (variable_post_merge_New_vals): Print uids.
22128         (vt_add_function_parameters): Adjust.
22129         (vt_initialize): Reset table.  Adjust.
22130
22131 2010-02-03  Richard Guenther  <rguenther@suse.de>
22132
22133         PR tree-optimization/42944
22134         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
22135         (call_may_clobber_ref_p_1): Likewise.  Properly handle
22136         malloc and calloc clobbering errno.
22137
22138 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
22139
22140         * doc/invoke.texi: Fix name of sched1 dump.
22141
22142         * opts.c (decode_options): Set flag_tree_switch_conversion
22143         only conditionally on optimize >= 2.
22144
22145         * gcse.c: Assorted comment fixes in pass description.
22146
22147 2010-02-03  Anthony Green  <green@moxielogic.com>
22148
22149         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
22150         nop padding in order to maintain alignment of storage location of
22151         target function address.
22152         (moxie_trampoline_init): Store target function address at newly
22153         aligned location.
22154         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
22155         to 32.
22156         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
22157
22158 2010-02-03  Richard Guenther  <rguenther@suse.de>
22159
22160         PR middle-end/42927
22161         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
22162
22163 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22164
22165         * config.gcc: Reenable check for obsolete targets.
22166         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
22167         mips-sgi-irix6.[0-4]*.
22168
22169 2010-02-02  Nick Clifton  <nickc@redhat.com>
22170
22171         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
22172         constant size of 4 as being the same as 0.
22173         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
22174         can take values in the range 0..4.
22175
22176 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
22177
22178         PR java/41991
22179         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
22180         as _darwin10_Unwind_FindEnclosingFunction().
22181         * libgcc-libsystem.ver: New.
22182
22183 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
22184
22185         PR target/41399
22186         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
22187         implicitly set registers.
22188
22189 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
22190
22191         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
22192         (arm_override_options): Allow automatic selection of the thread
22193         pointer register if thumb2.
22194         (legitimize_pic_address): Improve code sequences for Thumb2.
22195         (arm_call_tls_get_addr): Likewise.
22196         (legitimize_tls_address): Likewise.
22197         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
22198         (pic_load_addr_32bit): ... this.  New named pattern.
22199         * thumb2.md (pic_load_addr_thumb2): Delete.
22200         (pic_load_dot_plus_four): Delete.
22201         (tls_load_dot_plus_four): New named pattern.
22202
22203 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22204
22205         PR libgomp/29986
22206         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
22207         Document fix for TLS bug.
22208
22209 2010-01-31  Richard Guenther  <rguenther@suse.de>
22210
22211         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
22212         conservatively correct.
22213
22214 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22215
22216         PR target/42850
22217         Revert:
22218         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22219
22220         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
22221
22222 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22223
22224         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
22225
22226 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
22227
22228         * config.gcc: Adjust order of makefile fragments for mingw targets.
22229
22230 2010-01-31  Richard Guenther  <rguenther@suse.de>
22231
22232         PR middle-end/42898
22233         * gimplify.c (gimplify_init_constructor): For volatile LHS
22234         initialize a temporary.
22235
22236 2010-01-31  Matthias Klose  <doko@ubuntu.com>
22237
22238         * configure.ac: Fix __stack_chk_fail check for cross builds configured
22239         --with-headers
22240         * configure: Regenerate.
22241
22242 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
22243
22244         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
22245         the same alias set and their sizes different constantness.
22246         (aliasing_component_refs_p): Revert 2009-10-24 change.
22247
22248 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22249
22250         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
22251         unused.
22252
22253 2010-01-29  Richard Guenther  <rguenther@suse.de>
22254
22255         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
22256         Assert we successfully updated the call.
22257
22258 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
22259
22260         PR rtl-optimization/42889
22261         * df.h (df_set_bb_dirty_nonlr): New prototype.
22262         * df-core.c (df_set_bb_dirty_nonlr): New function.
22263         * df-scan.c (df_insn_rescan): Call it instead of
22264         df_set_bb_dirty for DEBUG_INSNs.
22265
22266 2010-01-29  Richard Guenther  <rguenther@suse.de>
22267
22268         PR middle-end/37448
22269         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
22270         quadratic behavior in most cases.
22271
22272 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
22273
22274         PR target/42891
22275         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
22276         in the call to gen_x86_movsicc_0_m1.
22277
22278 2010-01-28  Richard Guenther  <rguenther@suse.de>
22279
22280         PR tree-optimization/42871
22281         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
22282
22283 2010-01-28  Richard Guenther  <rguenther@suse.de>
22284
22285         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
22286         into call arguments.
22287
22288 2010-01-28  Richard Guenther  <rguenther@suse.de>
22289
22290         PR middle-end/42883
22291         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
22292         the forwarder if the destination is an EH landing pad.
22293
22294 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
22295
22296         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
22297         block list passed to gimple_duplicate_sese_tail.
22298         (parallelize_loops): Avoid parallelization when the function
22299         has_nonlocal_label.
22300         Avoid parallelization when the preheader is IRREDUCIBLE.
22301         Try to optimize when estimated_loop_iterations_int is unresolved.
22302         Add the loop's location to the dump file.
22303         * tree-cfg.c (add_phi_args_after_redirect): Remove.
22304         (gimple_duplicate_sese_tail): Remove the check for the latch.
22305         Redirect nexits to the exit block.
22306         Remove handling of the incoming edges to the latch.
22307         Redirect the backedge from the copied latch to the exit bb.
22308
22309 2010-01-28  Michael Matz  <matz@suse.de>
22310
22311         PR target/42881
22312         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
22313         Wrap force_reg into a sequence, emit it before user.
22314
22315 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
22316
22317         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
22318         (arm_rev): New.
22319         (arm_legacy_rev): Likewise.
22320         (thumb_legacy_rev): Likewise.
22321
22322 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
22323
22324         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
22325         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
22326         on MEM's address failed, try avoid_constant_pool_reference and
22327         recurse if it returned something different.
22328         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
22329         address, try avoid_constant_pool_reference and recurse if it
22330         returned something different.
22331         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
22332         address and avoid_constant_pool_reference returned something
22333         different, don't set have_address.
22334
22335 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
22336
22337         PR debug/42861
22338         * var-tracking.c (val_store): Add modified argument, obey it.
22339         Adjust callers.
22340         (count_uses): Move down logging of main.
22341         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
22342         don't need resolution.
22343         (emit_notes_in_bb): Likewise.
22344
22345 2010-01-27  Richard Guenther  <rguenther@suse.de>
22346
22347         PR middle-end/42878
22348         * tree-inline.c (remap_decl): Delay remapping of SSA name
22349         default definitions until we need them.
22350
22351 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
22352
22353         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
22354         (rs6000_delegitimize_address): New function.
22355
22356         * config/s390/s390.c (s390_delegitimize_address): Call
22357         delegitimize_mem_from_attrs.
22358
22359         PR middle-end/42874
22360         * tree-inline.c (cannot_copy_type_1): Removed.
22361         (copy_forbidden): Don't forbid copying of functions containing
22362         records/unions with variable length fields.
22363
22364 2010-01-27  Christian Bruel  <christian.bruel@st.com>
22365
22366         Revert:
22367         PR target/42841
22368         * config/sh/sh.c (find_barrier): Increase length for non delayed
22369         conditional branches.
22370
22371 2010-01-27  Matthias Klose  <doko@ubuntu.com>
22372
22373         * configure.ac (gnu-unique-object): Fix ldd version check.
22374         * configure: Regenerate.
22375
22376 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22377
22378         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
22379         HAVE_GNU_AS value.
22380         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
22381         Test for HAVE_GNU_AS value.
22382
22383 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22384
22385         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
22386         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
22387         INT64_TYPE): Define.
22388         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
22389         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
22390         INT_LEAST64_TYPE): Define.
22391         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
22392         UINT_LEAST64_TYPE): Define.
22393         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
22394         INT_FAST64_TYPE): Define.
22395         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
22396         UINT_FAST64_TYPE): Define.
22397         (INTMAX_TYPE, UINTMAX_TYPE): Define.
22398         (INTPTR_TYPE, UINTPTR_TYPE): Define.
22399         (SIG_ATOMIC_TYPE): Define.
22400
22401 2010-01-26  Richard Guenther  <rguenther@suse.de>
22402
22403         * df-scan.c (df_scan_set_bb_info): Remove assert.
22404         (df_insn_rescan_debug_internal): Merge asserts.
22405         (df_install_ref): Likewise.
22406         (df_mark_reg): Use bitmap_set_range.
22407         (df_hard_reg_used_p): Remove assert.
22408         (df_hard_reg_used_count): Likewise.
22409
22410 2010-01-26  Richard Guenther  <rguenther@suse.de>
22411
22412         PR rtl-optimization/42685
22413         * web.c (web_main): Ignore DEBUG_INSNs.
22414
22415 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
22416
22417         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
22418
22419         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
22420         Fix types of fndecl and arglist parameters.
22421
22422 2010-01-26  Richard Guenther  <rguenther@suse.de>
22423
22424         PR middle-end/42806
22425         * tree-eh.c (unsplit_eh): Skip debug insns.
22426
22427 2010-01-26  Richard Guenther  <rguenther@suse.de>
22428
22429         PR tree-optimization/42250
22430         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
22431
22432 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
22433
22434         PR fortran/42866
22435         * omp-low.c (expand_omp_sections): Only use single_pred if
22436         l2_bb is single_pred_p.
22437
22438 2010-01-25  Christian Bruel  <christian.bruel@st.com>
22439
22440         PR target/42841
22441         * config/sh/sh.c (find_barrier): Increase length for non delayed
22442         conditional branches.
22443         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
22444
22445 2010-01-24  David S. Miller  <davem@davemloft.net>
22446
22447         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
22448         define if not using GAS.
22449         * config/sparc/sparc.c (sparc_elf_asm_named_section):
22450         Likewise.  Delete SECTION_MERGE code, which is only applicable
22451         when using GAS.
22452
22453 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
22454
22455         PR c++/42748
22456         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
22457         mangling of va_list in system headers.
22458
22459 2010-01-23  Toon Moene  <toon@moene.org>
22460
22461         * tree-predcom.c (combine_chains): Return NULL, not false.
22462
22463 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
22464
22465         * tree-loop-distribution.c (distribute_loop): Fix declaration and
22466         initialization of variable res to agree with return type.
22467
22468 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
22469
22470         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
22471         * tree-sra.c: Add include of expr.h.
22472
22473 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
22474
22475         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
22476         insert the debug stmt on the single non-EH edge from the stmt.
22477
22478 2010-01-22  Richard Henderson  <rth@redhat.com>
22479
22480         PR tree-opt/42833
22481         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
22482         the RHS until after generate_subtree_copies has insertted its
22483         code before the current statement.
22484
22485 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
22486
22487         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
22488
22489         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
22490
22491 2010-01-21  Martin Jambor  <mjambor@suse.cz>
22492
22493         PR tree-optimization/42585
22494         * tree-sra.c (struct access): New field grp_total_scalarization.
22495         (dump_access): Dump the new field.
22496         (should_scalarize_away_bitmap): New variable.
22497         (cannot_scalarize_away_bitmap): Likewise.
22498         (sra_initialize): Allocate new bitmaps.
22499         (sra_deinitialize): Free new bitmaps.
22500         (create_access_1): New function.
22501         (create_access): Parts moved to create_access_1.
22502         (type_consists_of_records_p): New function.
22503         (completely_scalarize_record): Likewise.
22504         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
22505         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
22506         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
22507         access.
22508         (analyze_all_variable_accesses): Completely scalarize small eligible
22509         records.
22510
22511 2010-01-21  Martin Jambor  <mjambor@suse.cz>
22512
22513         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
22514
22515 2010-01-21  Andrew Haley  <aph@redhat.com>
22516
22517         * gcc.c (process_command): Move lang_specific_driver before
22518         setting cc_libexec_prefix.
22519
22520 2010-01-21  Richard Guenther  <rguenther@suse.de>
22521
22522         PR middle-end/19988
22523         * fold-const.c (negate_expr_p): Pretend only negative
22524         real constants are easily negatable.
22525
22526 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
22527             Jason Merrill  <jason@redhat.com>
22528
22529         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
22530         (TYPE_TRANSPARENT_AGGR): this, for union and record.
22531         * calls.c (initialize argument_information): Handle it.
22532         * c-common.c (handle_transparent_union_attribute): Use new name.
22533         * c-decl.c (finish_struct): Ditto.
22534         * c-typeck.c (type_lists_compatible_p): Ditto.
22535         (convert_for_assignment): Use new name and also handle record.
22536         * function.c (aggregate_value_p): Handle it.
22537         (pass_by_reference): Ditto.
22538         (assign_parm_data_types): Ditto.
22539         * print-tree.c (print_node): Ditto.
22540         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
22541         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
22542         * tree.c (first_field): New fn.
22543
22544 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
22545
22546         PR target/42818
22547         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
22548         even when linking statically, for now.
22549
22550 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
22551
22552         PR debug/42715
22553         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
22554         without a cselib val.
22555         (count_uses): Accept MO_VAL_SET with no val on stores.
22556         (add_stores): Likewise.
22557
22558 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22559
22560         * var-tracking.c (check_value_val): Add a compile time assertion.
22561         (dv_is_decl_p): Simplify.
22562         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
22563         gcc_assert if ENABLE_CHECKING.
22564
22565 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
22566
22567         PR debug/42782
22568         * var-tracking.c: Include tree-flow.h.
22569         (mem_dies_at_call): New.
22570         (dataflow_set_preserve_mem_locs): Use it.
22571         (dataflow_set_remove_mem_locs): Likewise.
22572         (dump_var): Renamed from dump_variable.  Adjust all callers.
22573         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
22574         * Makefile.in (var-tracking.o): Adjust deps.
22575
22576 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
22577
22578         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
22579
22580 2010-01-20  Richard Guenther  <rguenther@suse.de>
22581
22582         PR tree-optimization/42717
22583         * tree-ssa-dce.c (get_live_post_dom): Remove.
22584         (forward_edge_to_pdom): Take an arbitrary edge to copy
22585         degenerate PHI args from.
22586         (remove_dead_stmt): Use the first post-dominator even if it
22587         does not contain live statements as redirection destination.
22588
22589 2010-01-20  Richard Guenther  <rguenther@suse.de>
22590
22591         * tree-inline.c (estimate_num_insns): Handle EH builtins.
22592
22593 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22594
22595         * sel-sched.c (create_speculation_check): Remove set but not used
22596         variable twin.
22597         (try_transformation_cache): Remove set but not used variable ds.
22598         (calculate_privileged_insns): Remove set but not used variables
22599         cur_insn and min_spec_insn.
22600         (find_best_expr): Remove set but not used variable avail_n.
22601         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
22602         variable e.
22603         * cgraphunit.c (assemble_thunk): Remove set but not used variable
22604         false_label.
22605         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
22606         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
22607         new_scop_exit_edge.
22608
22609 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
22610
22611         PR bootstrap/42786
22612         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
22613         cpu types.  Add support for *-sse3 cpu types.
22614         (x86_64-*-*): Ditto.
22615
22616 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22617
22618         PR middle-end/42803
22619         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
22620         argument, call initializer_constant_valid_p_1 instead of
22621         initializer_constant_valid_p, pass CACHE to it, return NULL
22622         immediately if first call returns NULL.
22623         (initializer_constant_valid_p_1): New function.
22624         (initializer_constant_valid_p): Use it.
22625
22626 2010-01-20  Thomas Quinot  <quinot@adacore.com>
22627
22628         * tree.def (PLACEHOLDER_EXPR): Fix comment.
22629
22630 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22631
22632         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
22633         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
22634         (loc_list_from_tree): Don't handle unsigned division.  Handle
22635         signed modulo using DW_OP_{over,over,div,mul,minus}.
22636         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
22637         modulo instead of signed.
22638
22639 2010-01-20  DJ Delorie  <dj@redhat.com>
22640
22641         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
22642         (Fpa): Pass it
22643         (h8300_emit_stack_adjustment): Propogate it.
22644         (push): Pass it.
22645         (h8300_expand_prologue): Likewise.
22646         (h8300_expand_epilogue): Likewise.
22647
22648 2010-01-19  Michael Matz  <matz@suse.de>
22649
22650         PR tree-optimization/41783
22651         * tree-data-ref.c (toplevel): Include flags.h.
22652         (dump_data_dependence_relation):  Also dump the inputs if the
22653         result will be unknown.
22654         (split_constant_offset_1): Look through some conversions.
22655         * tree-predcom.c (determine_roots_comp): Restart a new chain if
22656         the offset from last element is too large.
22657         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
22658         (reassociate_to_the_same_stmt): Handle vector registers.
22659         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
22660         (e.g. conversions).
22661         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
22662         wide_prolog_niters argument, emit widening instructions.
22663         (vect_do_peeling_for_alignment): Adjust caller, use widened
22664         variant of the iteration cound.
22665         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
22666
22667 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22668
22669         PR target/38697
22670         * config/arm/neon-testgen.m (emit_automatics): New parameter
22671         features. Adjust for Fixed_return_reg feature.
22672         (test_intrinsic): Call emit_automatics with new feature.
22673         * config/arm/neon.ml: Update copyright years.
22674         (features): New Fixed_return_reg feature.
22675         (ops): Update feature for Vget_low.
22676
22677 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
22678
22679         PR tree-optimization/42719
22680         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
22681         stmt uses.
22682
22683         PR debug/42728
22684         * fwprop.c (all_uses_available_at): Return false if def_set dest
22685         is a REG that is used in def_insn.
22686
22687 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
22688
22689         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
22690
22691         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
22692         Add argument names.
22693
22694         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
22695
22696         * target.h (struct gcc_target) <secondary_reload>: Change type
22697         of last argument to secondary_reload_info *.
22698
22699 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
22700
22701         PR target/42774
22702         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
22703         memory references with unaligned offsets.  Remove CQImode handling.
22704         (unaligned_memory_operand): Return 1 for memory references with
22705         unaligned offsets.  Remove CQImode handling.
22706
22707 2010-01-18  Richard Guenther  <rguenther@suse.de>
22708
22709         PR middle-end/39954
22710         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
22711         builtin calls.
22712
22713 2010-01-18  Richard Guenther  <rguenther@suse.de>
22714
22715         PR tree-optimization/42781
22716         * tree-ssa-structalias.c (find_what_var_points_to): Skip
22717         restrict processing only if the original variable was artificial.
22718
22719 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
22720
22721         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
22722         find number of popped argument bytes.
22723
22724         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
22725         Fix the text that describes the return value for invalid insns.
22726
22727         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
22728
22729         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
22730         Clarify what 'cost of the -dependence' is.  Fix quoting.
22731
22732         * toplev.c (default_get_pch_validity): Rename argument to "sz".
22733         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
22734
22735 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
22736
22737         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
22738         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
22739
22740 2010-01-17  Richard Guenther  <rguenther@suse.de>
22741
22742         PR middle-end/42248
22743         * function.c (split_complex_args): Take a VEC to modify.
22744         (assign_parms_augmented_arg_list): Build a VEC instead of
22745         a chain of PARM_DECLs.
22746         (assign_parms_unsplit_complex): Take a VEC of arguments.
22747         Do not fixup unmodified parms.
22748         (assign_parms): Deal with the VEC.
22749         (gimplify_parameters): Likewise.
22750
22751 2010-01-17  Richard Guenther  <rguenther@suse.de>
22752
22753         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
22754         node existence check.
22755         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
22756         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
22757         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
22758         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
22759         (gimple_execute_on_growing_pred): Likewise.
22760
22761 2010-01-17  Richard Guenther  <rguenther@suse.de>
22762
22763         PR tree-optimization/42773
22764         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
22765         (compute_antic_aux): Likewise.
22766         (compute_partial_antic_aux): Likewise.
22767
22768 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
22769
22770         PR debug/42767
22771         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
22772         and US_TRUNCATE.
22773
22774 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
22775
22776         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
22777         appearance.
22778
22779         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
22780         Fix markup for strict argument.
22781
22782         (TARGET_SCHED_REORDER2): Fix argument types.
22783
22784         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
22785         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
22786
22787         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
22788         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
22789
22790         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
22791         Add argument name.
22792
22793         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
22794         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
22795         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
22796         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
22797         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
22798
22799         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
22800
22801         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
22802
22803         (TARGET_ASM_RELOC_RW_MASK): Add return type.
22804         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
22805
22806         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
22807
22808         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
22809         Use prototype.
22810
22811         (TARGET_ASM_NAMED_SECTION): Fix argument list.
22812
22813         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
22814         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
22815
22816         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
22817
22818         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
22819
22820         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
22821         referring to it.  Fix language.
22822
22823         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
22824
22825         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
22826
22827         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
22828
22829         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
22830
22831         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
22832         '@var{stream}.  Remove stray 'and'.
22833
22834         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
22835
22836         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
22837
22838         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
22839
22840         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
22841         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
22842
22843         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
22844         Fix description of return value.
22845         Rename argument "sz" to "len."
22846
22847         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
22848         Clarify meaning of 'true' return value.
22849
22850         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
22851
22852         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
22853         rep_mode versus mode_rep.
22854
22855         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
22856
22857         (TARGET_BUILTIN_DECL): Fix name.
22858
22859         (TARGET_COMMUTATIVE_P): Fix type of first argument.
22860
22861         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
22862
22863         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
22864
22865         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
22866
22867         (TARGET_RELAXED_ORDERING): Use @deftypevr.
22868
22869         (TARGET_GET_DRAP_RTX): Note that this is a hook.
22870         Clarify language.
22871
22872         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
22873         Rename argument tm_fn to md_fn.
22874
22875         (TARGET_OPTION_PRINT): Fix argument list.
22876
22877 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
22878
22879         PR target/42664
22880         * config/i386/i386.c (ix86_fixup_binary_operands):
22881         Revert FMA4 fixup of operands.
22882
22883 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22884
22885         PR gcc/42525
22886         * Makefile.in (write_entries_to_file, install-plugin):
22887         Use \012 instead of \n with tr.
22888
22889 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
22890
22891         * configure.ac (HAVE_AS_REF): New C macro.
22892         * configure: Regenerate.
22893         * config.in: Likewise.
22894         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
22895         if HAVE_AS_REF.
22896         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
22897         if HAVE_AS_REF.
22898
22899 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
22900
22901         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
22902
22903         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
22904
22905         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
22906
22907         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
22908
22909         (TARGET_IN_SMALL_DATA_P): Fix argument type.
22910
22911         (TARGET_BINDS_LOCAL_P): Fix argument type.
22912
22913         (TARGET_ASM_FILE_END): Use prototype.
22914
22915         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
22916
22917         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
22918
22919         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
22920
22921         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
22922
22923         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
22924         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
22925
22926         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
22927         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
22928
22929         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
22930         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
22931         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
22932         (TARGET_ADDR_SPACE_CONVERT): Likewise.
22933
22934         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
22935
22936         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
22937
22938         (TARGET_INIT_BUILTINS): Use prototype.
22939
22940         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
22941         Put 'const char *' in braces.  Fix parameter types.
22942         (TARGET_INVALID_CONVERSION): Fix parameter types.
22943         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
22944         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
22945
22946         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
22947         Fix argument type.
22948
22949         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
22950
22951         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
22952
22953 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
22954
22955         * doc/tm.texi (TARGET_HELP): Fix return type.
22956
22957         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
22958         in braces.  Fix argument types.
22959
22960         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
22961
22962         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
22963
22964         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
22965
22966         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
22967         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
22968
22969         (TARGET_MANGLE_TYPE): Fix argument types.
22970
22971         (TARGET_IRA_COVER_CLASSES): Use prototype.
22972
22973         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
22974
22975         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
22976
22977         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
22978
22979         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
22980
22981         (TARGET_CALLEE_COPIES): Fix argument types.
22982
22983         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
22984
22985         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
22986
22987         (TARGET_FUNCTION_VALUE): Fix argument types.
22988
22989         (TARGET_RETURN_IN_MSB): Fix argument type.
22990
22991         (TARGET_RETURN_IN_MEMORY): Fix argument types.
22992
22993         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
22994
22995         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
22996
22997         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
22998         agree with return type.
22999
23000         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
23001
23002 2010-01-15  Jing Yu  <jingyu@google.com>
23003
23004         PR rtl-optimization/42691
23005         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
23006         a pseudo to a constant and are merged, and adjust comments.
23007
23008 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
23009
23010         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
23011
23012 2010-01-15  Richard Guenther  <rguenther@suse.de>
23013
23014         PR middle-end/42739
23015         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
23016         labels of computed or non-local gotos to the destination.
23017         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
23018         landing pad label is the first label.
23019
23020 2010-01-15  Richard Guenther  <rguenther@suse.de>
23021
23022         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
23023
23024 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23025
23026         PR target/42747
23027         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
23028         to allow generation of the xssqrtdp instruction on power7.
23029         (sqrtdf2_fpr): Ditto.
23030
23031 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
23032
23033         PR middle-end/42674
23034         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
23035         functions with noreturn attribute.
23036
23037         PR c++/42608
23038         * varasm.c (declare_weak): Add weak attribute to decl if it
23039         doesn't have one already.
23040         (assemble_external): Only add decls to weak_decls if they also
23041         have weak attribute.
23042
23043 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
23044
23045         * var-tracking.c (var_reg_delete): Don't delete the association
23046         between REGs and values or one-part variables if the register
23047         isn't clobbered.
23048
23049 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
23050
23051         PR debug/42657
23052         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
23053         because its first operand is a non-localized variable.
23054
23055 2010-01-14  Martin Jambor  <mjambor@suse.cz>
23056
23057         PR tree-optimization/42706
23058         * tree-sra.c (encountered_recursive_call): New variable.
23059         (encountered_unchangable_recursive_call): Likewise.
23060         (sra_initialize): Initialize both new variables.
23061         (callsite_has_enough_arguments_p): New function.
23062         (scan_function): Call decl and flags check only for IPA-SRA, check
23063         whether there is a recursive call and whether it has enough arguments.
23064         (all_callers_have_enough_arguments_p): New function.
23065         (convert_callers): Look for recursive calls only when
23066         encountered_recursive_call is set.
23067         (ipa_early_sra): Bail out either if
23068         !all_callers_have_enough_arguments_p or
23069         encountered_unchangable_recursive_call.
23070
23071 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23072
23073         * sel-sched.c: Add 2010 to copyright years.
23074         * sel-sched-ir.c: Likewise.
23075         * sel-sched-ir.h: Likewise.
23076
23077 2010-01-14  Martin Jambor  <mjambor@suse.cz>
23078
23079         PR tree-optimization/42714
23080         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
23081         constructors specially.
23082
23083 2010-01-14  Andi Kleen  <ak@linux.intel.com>
23084
23085         * config/i386/drivers-i386.c (detect_caches_intel):
23086         Add l2sizekb parameter and fill in.
23087         (host_detect_local_cpu): Add l2sizekb, fill in.
23088         Add Atom small cache heuristic.
23089
23090 2010-01-14  Andi Kleen  <ak@linux.intel.com>
23091
23092         * config/i386/drivers-i386.c (detect_caches_cpuid4):
23093         Add level3 parameter and fill in.
23094         (detect_caches_intel): Handle level3 cache.
23095
23096 2010-01-14  Andi Kleen  <ak@linux.intel.com>
23097
23098         * config/i386/drivers-i386.c (host_detect_local_cpu):
23099         Fix core duo detection.
23100
23101 2010-01-14  Andi Kleen  <ak@linux.intel.com>
23102
23103         * config/i386/drivers-i386.c (host_detect_local_cpu):
23104         Fix Atom detection.
23105
23106 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23107
23108         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
23109         (rs6000_variable_issue_1): this.  Use...
23110         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
23111
23112 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23113
23114         * sel-sched-ir.c (sel_restore_other_notes): Rename to
23115         sel_restore_notes.  Update all callers.  Call reemit_notes
23116         for all insns.
23117
23118 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23119
23120         PR rtl-optimization/42246
23121         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
23122         loops.
23123
23124 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23125
23126         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
23127         all successors is the same as number of successors in current region.
23128
23129 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23130
23131         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
23132         to rename is not separable.  Otherwise check that its LHS is not NULL.
23133
23134 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23135
23136         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
23137
23138 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23139
23140         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
23141         available registers when failed to discover LHS register class.
23142         Fix indentation.  Update comment.
23143
23144 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23145             Alexander Monakov  <amonakov@ispras.ru>
23146
23147         PR rtl-optimization/42389
23148         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
23149         to can_issue_more.
23150         (advance_state_on_fence): Likewise.
23151         (sel_target_adjust_priority): Print debug output only when
23152         sched_verbose >= 4, not 2.
23153         (get_expr_cost): Do not issue all unique insns on the next cycle.
23154         (fill_insns): Initialize can_issue_more from the value saved
23155         with the fence.
23156         * sel-sched-ir.c (flist_add): New parameter issue_more.
23157         Init FENCE_ISSUE_MORE with it.
23158         (merge_fences): Likewise.
23159         (init_fences): Update call to flist_add.
23160         (add_to_fences, add_clean_fence_to_fences)
23161         (add_dirty_fence_to_fences): Likewise.
23162         (move_fence_to_fences): Update call to merge_fences.
23163         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
23164         sched groups.
23165         * sel-sched-ir.h (struct _fence): New field issue_more.
23166         (FENCE_ISSUE_MORE): New accessor macro.
23167
23168 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23169
23170         PR rtl-optimization/42388
23171         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
23172         that have no predecessors nor successors.  Do not call move_bb_info
23173         for empty blocks outside of current region.
23174
23175 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23176
23177         PR rtl-optimization/42294
23178         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
23179         * sel-sched.c (move_exprs_to_boundary): Transitively add all
23180         originators' originators.
23181
23182 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23183
23184         PR rtl-optimization/39453
23185         PR rtl-optimization/42246
23186         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
23187         for pipelining_p.
23188         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
23189
23190 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23191             Alexander Monakov  <amonakov@ispras.ru>
23192
23193         PR middle-end/42245
23194         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
23195         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
23196         argument.  Update all callers.
23197         (tidy_control_flow): ... and here.  Recompute topological order
23198         of basic blocks in region if necessary.
23199         (sel_redirect_edge_and_branch): Change return type.  Return true
23200         if topological order might have been invalidated.
23201         (purge_empty_blocks): Export and move from...
23202         * sel-sched.c (purge_empty_blocks): ... here.
23203         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
23204         (maybe_tidy_empty_bb): Delete prototype.
23205         (purge_empty_blocks): Declare.
23206
23207 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23208
23209         PR rtl-optimization/42249
23210         * sel-sched.c (try_replace_dest_reg): When chosen register
23211         and original register is the same, do not bail out early, but
23212         still check all original insns for validity of replacing destination
23213         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
23214         in this case.
23215
23216 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
23217
23218         PR c/42721
23219         Port from no-undefined-overflow branch:
23220         2009-03-09  Richard Guenther  <rguenther@suse.de>
23221
23222         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
23223
23224 2010-01-14  Richard Guenther  <rguenther@suse.de>
23225
23226         PR lto/42665
23227         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
23228
23229 2010-01-14  Ira Rosen  <irar@il.ibm.com>
23230
23231         PR tree-optimization/42709
23232         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
23233         as scalar type in creation of constant vector operand.
23234
23235 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23236
23237         PR testsuite/42414
23238         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
23239         (check-parallel-%): Match `testsuite' directory component only
23240         at the end.
23241
23242 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
23243
23244         PR translation/39521
23245         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
23246         strings with _().
23247
23248 2010-01-13  Richard Guenther  <rguenther@suse.de>
23249
23250         PR tree-optimization/42730
23251         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
23252         offset zero.
23253
23254 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
23255
23256         PR target/pr42542
23257         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
23258         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
23259         them signed.
23260
23261 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
23262
23263         * config/bfin/libgcc-bfin.ver: Regenerate based on current
23264         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
23265         ___umulsi3_highpart.
23266
23267         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
23268         rather than schedule_insns if the pass is enabled.
23269
23270 2010-01-13  Martin Jambor  <mjambor@suse.cz>
23271
23272         PR tree-optimization/42704
23273         * tree-sra.c (sra_modify_assign): Do not delete assignments to
23274         SSA_NAMEs.
23275
23276 2010-01-13  Martin Jambor  <mjambor@suse.cz>
23277
23278         PR tree-optimization/42703
23279         * tree-sra.c (analyze_access_subtree): Check that we can build a
23280         reference to the original data within the aggregate.
23281
23282 2010-01-13  Richard Guenther  <rguenther@suse.de>
23283
23284         PR tree-optimization/42705
23285         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
23286
23287 2010-01-13  Richard Guenther  <rguenther@suse.de>
23288
23289         PR middle-end/42716
23290         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
23291
23292 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
23293
23294         PR debug/41371
23295         * var-tracking.c (values_to_unmark): New variable.
23296         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
23297         values_to_unmark vector.  Moved body to...
23298         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
23299         instead queue it into values_to_unmark vector.
23300         (vt_find_locations): Free values_to_unmark vector.
23301
23302 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
23303
23304         * config/s390/s390.c (override_options): Set
23305         default of max-pending-list-length to 256
23306
23307 2010-01-13  Richard Guenther  <rguenther@suse.de>
23308
23309         PR lto/42678
23310         * tree-pass.h (PROP_gimple_lcx): New.
23311         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
23312         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
23313         before the final cleanup_eh.
23314         (dump_properties): Dump PROP_gimple_lcx.
23315         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
23316         (tree_lower_complex_O0): Remove.
23317         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
23318         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
23319         tree_lower_complex, schedule TODO_update_ssa.
23320         * lto-streamer-out.c (output_function): Stream the functions
23321         properties.
23322         * lto-streamer-in.c (input_function): Likewise.
23323         (lto_read_body): Do not override them here.
23324
23325 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
23326
23327         PR c/42708
23328         * c-typeck.c (build_c_cast): Fold value cast to union type before
23329         wrapping it in a CONSTRUCTOR.
23330
23331 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
23332
23333         PR rtl-optimization/42699
23334         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
23335         involved.
23336
23337 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23338
23339         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
23340         SUBTARGET_WARN_UNUSED_SPEC): Move ...
23341         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
23342         SUBTARGET_WARN_UNUSED_SPEC): ... here
23343         * config/mips/iris5.h (LIBGCC_SPEC): Define.
23344
23345 2010-01-12  Julian Brown  <julian@codesourcery.com>
23346
23347         * config/arm/neon-schedgen.ml (Utils): Don't try to
23348         open missing module.
23349         (find_with_result): New.
23350
23351 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
23352
23353         PR debug/42662
23354         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
23355         sharing when canonicalizing ({lt,ge}u (plus a b) b).
23356
23357         PR tree-optimization/42645
23358         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
23359         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
23360         decl_map, set processing_debug_stmt to -1 and return name without
23361         any remapping.
23362
23363 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
23364
23365         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
23366         binutils version, and reword target configuration description.
23367
23368 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
23369
23370         * config/avr/avr.h (LINKER_NAME): Remove.
23371
23372 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
23373
23374         PR target/42416
23375         * config/rs6000/rs6000.c (rs6000_override_options): On targets
23376         that support VSX, warn for -mno-altivec if vsx is not disabled,
23377         and disable vsx.
23378
23379 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
23380             Shujing Zhao  <pearly.zhao@oracle.com>
23381
23382         PR translation/42469
23383         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
23384         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
23385         character between option name and help text.
23386         * c.opt (imultilib): Likewise.
23387
23388 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
23389
23390         * lto-streamer-out.c (output_unreferenced_globals): Output static
23391         variables.
23392
23393 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
23394
23395         PR rtl-optimization/42621
23396         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
23397         optimizing for size.
23398         (duplicate_computed_gotos): Remove now-redundant check.
23399
23400 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
23401
23402         PR target/37454
23403         * configure.ac: Save and restore LDFLAGS and LIBS
23404         * configure: Regenerate.
23405
23406 2010-01-10  Richard Guenther  <rguenther@suse.de>
23407
23408         PR middle-end/42667
23409         * builtins.c (fold_builtin_strlen): Add type argument and
23410         convert the resulting length to it.
23411         (fold_builtin_1): Adjust.
23412
23413 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
23414
23415         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
23416         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
23417         1 insn.
23418         (num_insns_constant_wide): Adjust for that change.
23419
23420 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23421
23422         PR debug/42631
23423         * web.c (union_defs): Add used argument, to combine uses of
23424         uninitialized regs.
23425         (entry_register): Adjust type and tests of used argument.
23426         (web_main): Widen used for new use.  Pass it to union_defs.
23427         * df.h (union_defs): Adjust prototype.
23428
23429 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23430
23431         PR debug/42630
23432         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
23433         uses in new incoming argument.  Free body.
23434         (reset_debug_uses_in_loop): New.
23435         (analyze_insn_to_expand_var): Call the latter if the former found
23436         anything.  Fix whitespace.  Reject invalid dest overlaps before
23437         going through all insns in the loop.
23438
23439 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23440
23441         PR debug/42629
23442         * haifa-sched.c (dying_use_p): Debug insns don't count.
23443
23444 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23445
23446         PR middle-end/42363
23447         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
23448         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
23449         (verify_gimple_call): Reject LHS in noreturn calls.
23450
23451 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23452
23453         PR debug/42604
23454         PR debug/42395
23455         * tree-vect-loop-manip.c (adjust_info): New type.
23456         (adjust_vec): New pointer to vector.
23457         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
23458         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
23459         (slpeel_update_phis_for_duplicate_loop): Use them.
23460         (slpeel_update_phi_nodes_for_guard1): Likewise.
23461         (slpeel_update_phi_nodes_for_guard2): Likewise.
23462         (slpeel_tree_peel_loop_to_edge): Likewise.
23463         (vect_update_ivs_after_vectorizer): Likewise.
23464
23465 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23466
23467         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
23468         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
23469
23470 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23471
23472         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
23473         bogus uninitialized warning.
23474
23475 2010-01-09  Richard Guenther  <rguenther@suse.de>
23476
23477         PR middle-end/42512
23478         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
23479         the evolution is compatible with the initial condition.
23480
23481 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
23482
23483         * gcc.c (process_command): Update copyright notice dates.
23484         * gcov.c (print_version): Likewise.
23485         * gcov-dump.c (print_version): Likewise.
23486         * mips-tfile.c (main): Likewise.
23487         * mips-tdump.c (main): Likewise.
23488
23489 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
23490
23491         PR target/41885
23492         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
23493         (rotlhi3): Delete.
23494         (rotlhi3_8): Delete.
23495         (rotlsi3): Delete.
23496         (rotlsi3_8): Delete.
23497         (rotlsi3_16): Delete.
23498         (rotlsi3_24): Delete.
23499         (rotl<mode>3): New.
23500         (*rotw<mode>3): New.
23501         (*rotb<mode>3): New.
23502         * config/avr/avr.c (avr_rotate_bytes): New function.
23503         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
23504
23505 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
23506
23507         PR target/37454
23508         * configure.ac: Modify -rdynamic check.
23509         * configure: Regenerate.
23510
23511 2010-01-08  DJ Delorie  <dj@redhat.com>
23512
23513         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
23514         register popping order.
23515
23516 2010-01-08  Richard Guenther  <rguenther@suse.de>
23517
23518         PR lto/42528
23519         * c.opt (fsigned-char): Also let LTO handle this option.
23520         (funsigned-char): Likewise.
23521
23522 2010-01-07  Richard Guenther  <rguenther@suse.de>
23523
23524         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
23525         (gimple_op): Likewise.
23526         (gimple_op_ptr): Likewise.
23527         (gimple_assign_set_lhs): Remove gcc_assert.
23528         (gimple_assign_set_rhs1): Likewise.
23529         (gimple_assign_set_rhs2): Likewise.
23530         (gimple_call_set_lhs): Likewise.
23531         (gimple_call_set_fn): Likewise.
23532         (gimple_call_set_fndecl): Likewise.
23533         (gimple_call_fndecl): Likewise.
23534         (gimple_call_return_type): Likewise.
23535         (gimple_call_set_chain): Likewise.
23536         (gimple_call_num_args): Likewise.
23537         (gimple_call_set_arg): Likewise.
23538         (gimple_cond_set_code): Likewise.
23539         (gimple_cond_set_lhs): Likewise.
23540         (gimple_cond_set_rhs): Likewise.
23541         (gimple_cond_set_true_label): Likewise.
23542         (gimple_cond_set_false_label): Likewise.
23543         (gimple_label_set_label): Likewise.
23544         (gimple_goto_set_dest): Likewise.
23545         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
23546         (gimple_debug_bind_get_value): Likewise.
23547         (gimple_debug_bind_get_value_ptr): Likewise.
23548         (gimple_debug_bind_set_var): Likewise.
23549         (gimple_debug_bind_set_value): Likewise.
23550         (gimple_debug_bind_reset_value): Likewise.
23551         (gimple_debug_bind_has_value_p): Likewise.
23552         (gimple_return_retval_ptr): Remove gcc_assert.
23553         (gimple_return_retval): Likewise.
23554         (gimple_return_set_retval): Likewise.
23555         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
23556         (safe_referenced_var_iterator): Remove.
23557         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
23558         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
23559         (fill_referenced_var_vec): Remove.
23560         (first_readonly_imm_use): Remove redundant gcc_assert.
23561         (phi_arg_index_from_use): Combine gcc_asserts.
23562         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
23563         (first_imm_use_stmt): Remove redundant gcc_assert.
23564         * tree-cfg.c (verify_gimple_call): Verify function and chain
23565         operands.  Verify arguments.
23566         (verify_types_in_gimple_stmt): Verify condition code and labels.
23567
23568 2010-01-07  Richard Guenther  <rguenther@suse.de>
23569
23570         PR tree-optimization/42641
23571         * sese.c (rename_map_elt_info): Use the SSA name version, do
23572         not hash pointers.
23573
23574 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
23575
23576         PR tree-optimization/42625
23577         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
23578         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
23579
23580 2010-01-07  Duncan Sands  <baldrick@free.fr>
23581
23582         * Makefile.in (PLUGIN_HEADERS): Add version.h.
23583
23584 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
23585
23586         PR target/42511
23587         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
23588         note itself is not function_invariant_p.
23589
23590 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
23591
23592         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
23593         Do not add the DF_NOTE problem.
23594         * store-motion.c (execute_rtl_store_motion): Likewise.
23595
23596 2010-01-07  Martin Jambor  <mjambor@suse.cz>
23597
23598         PR tree-optimization/42157
23599         * tree-sra.c (compare_access_positions): Stabilize sort if both
23600         accesses have integer types, return zero immediately if they are the
23601         same.
23602
23603 2010-01-06  Richard Henderson  <rth@redhat.com>
23604
23605         PR middle-end/41883
23606         * haifa-sched.c (add_to_note_list): Merge into ...
23607         (concat_note_lists): ... here, and ...
23608         (unlink_other_notes, rm_other_notes): Merge into...
23609         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
23610         NOTE_INSN_EPILOGUE_BEG.
23611
23612 2010-01-06  Richard Guenther  <rguenther@suse.de>
23613
23614         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
23615         not inline regular functions into always-inline functions.
23616
23617 2010-01-06  Nick Clifton  <nickc@redhat.com>
23618
23619         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
23620         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
23621         used together.
23622         (OVERRIDE_OPTIONS): Delete.
23623         (OPTIMIZATION_OPTIONS): Define.
23624         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
23625         * config/rx/rx.c (rx_handle_option): Issue an error message if
23626         -mcpu=rx200 and -fpu are used together.
23627         (rx_set_optimization_options): New function.  Issue an error
23628         message if an optimization attribute attempts to reset the FPU/
23629         math optimization pairing.
23630         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
23631         * config/rx/rx.opt: Set the default to 32-bit doubles.
23632         * config/rx/t-rx: Add multilibs for -nofpu option.
23633         * doc/invoke.texi: Update documentation of RX options.
23634
23635 2010-01-06  Richard Guenther  <rguenther@suse.de>
23636
23637         * tree-ssa-pre.c (name_to_id): New global.
23638         (alloc_expression_id): Simplify SSA name handling.
23639         (lookup_expression_id): Likewise.
23640         (init_pre): Zero name_to_id.
23641         (fini_pre): Free it.
23642
23643 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
23644
23645         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
23646
23647 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
23648
23649         PR target/42542
23650         * config/i386/sse.md (smaxv2di3): New.
23651         (umaxv2di3): Likewise.
23652         (sminv2di3): Likewise.
23653         (uminv2di3): Likewise.
23654
23655 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
23656
23657         PR target/42564
23658         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
23659         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
23660         (legitimize_tls_address): Likewise.
23661         (sparc_tls_referenced_p): Likewise.
23662         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
23663         and adjust calls to legitimize_pic_address.
23664         (legitimate_constant_p) Use sparc_tls_referenced_p.
23665         (legitimate_pic_operand_p): Likewise.
23666         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
23667         (sparc_tls_symbol_ref_1): Delete.
23668         (sparc_tls_referenced_p): Make static, recognize specific patterns.
23669         (legitimize_tls_address): Make static, handle CONST patterns.
23670         (legitimize_pic_address): Make static, remove unused parameter and
23671         adjust recursive calls.
23672         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
23673         and adjust call to legitimize_pic_address.
23674         (sparc_output_mi_thunk): Likewise.
23675
23676 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
23677             H.J. Lu  <hongjiu.lu@intel.com>
23678
23679         PR target/42542
23680         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
23681         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
23682         operands to make them signed.
23683
23684         Revert:
23685         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
23686
23687         PR target/42542
23688         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
23689         GTU to GT for V4SI and V2DI.
23690
23691         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
23692         (umin<mode>3): Removed.
23693         (uminv8hi3): New.
23694         (uminv4si3): Likewise.
23695
23696 2010-01-05  Martin Jambor  <mjambor@suse.cz>
23697
23698         PR tree-optimization/42462
23699         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
23700         current_function_decl to helper functions and macros.
23701
23702 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23703
23704         PR bootstrap/41771
23705         * flags.h: Don't include real.h.
23706         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
23707         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
23708         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
23709         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
23710         * dominance.c: Update copyright.
23711         * gimple.c (walk_gimple_op): Remove inline.
23712         * tree-ssa-reassoc.c: Include real.h.
23713         * Makefile.in (FLAGS_H): Remove $(REAL_H).
23714         (tree-ssa-reassoc.o): Depend on $(REAL_H).
23715
23716 2010-01-05  Nick Clifton  <nickc@redhat.com>
23717
23718         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
23719         register to push into the stack frame when the accumulator has to
23720         be saved during interrupts.
23721
23722 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
23723
23724         * doc/invoke.texi: Remove the documentation about option
23725         -Wunreachable-code.
23726         * common.opt (Wunreachable-code):  Preserved for backward
23727         compatibility.
23728         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
23729         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
23730         the backward compatibility flag section.
23731
23732 2010-01-05  Richard Guenther  <rguenther@suse.de>
23733
23734         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
23735
23736 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
23737
23738         PR other/42611
23739         * cfgexpand.c (expand_one_var): Diagnose too large variables.
23740
23741         PR tree-optimization/42508
23742         * tree-sra.c (convert_callers): Check for recursive call
23743         by comparing cgraph nodes instead of decls.
23744         (modify_function): Call ipa_modify_formal_parameters also
23745         on all same_body aliases.
23746
23747         * cgraphunit.c (cgraph_materialize_all_clones): Compare
23748         cgraph nodes when checking for same_body aliases.
23749
23750 2010-01-05  Richard Guenther  <rguenther@suse.de>
23751
23752         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
23753         allocation and lookup.
23754         (get_or_alloc_expr_for_constant): Likewise.
23755         (phi_translate): Sink allocation.
23756
23757 2010-01-04  Richard Guenther  <rguenther@suse.de>
23758
23759         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
23760         a new entry only if needed.
23761         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
23762         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
23763         hashtable lookup.
23764         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
23765         the result array.
23766         (phi_translate): Handle CONSTANTs early.
23767
23768 2010-01-04  Martin Jambor  <mjambor@suse.cz>
23769
23770         PR tree-optimization/42398
23771         * tree-sra.c (struct access): Removed flag grp_different_types.
23772         (dump_access): Do not dump the removed flag.
23773         (sort_and_splice_var_accesses): Do not set the removed flag.
23774         (sra_modify_expr): Check for type compatibility directly.
23775
23776 2010-01-04  Martin Jambor  <mjambor@suse.cz>
23777
23778         PR tree-optimization/42366
23779         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
23780         edges with variable number of parameters.
23781         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
23782         flag instead of asserting it.
23783         (ipa_read_node_info): Read uses_analysis_done flag.
23784
23785 2010-01-04  Richard Guenther  <rguenther@suse.de>
23786
23787         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
23788         iterative_hash_* as intended.
23789         (vn_reference_compute_hash): Likewise.  Simplify hashing
23790         SSA names.
23791         (vn_reference_lookup_2): Likewise.
23792         (vn_nary_op_compute_hash): Likewise.
23793         (vn_phi_compute_hash): Likewise.
23794         (expressions_equal_p): Remove strange code.
23795         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
23796         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
23797         (bitmap_insert_into_set_1): Take value-id as parameter.
23798         (add_to_value): Pass it.
23799         (bitmap_insert_into_set): Likewise.
23800         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
23801
23802 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
23803
23804         PR driver/42442
23805         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
23806         (do_self_spec): For switches with SWITCH_IGNORE set set also
23807         SWITCH_IGNORE_PERMANENTLY.
23808         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
23809         of SWITCH_IGNORE.
23810
23811 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
23812
23813         * lto-streamer-out.c (output_unreferenced_globals): Output the full
23814         tree of an unreferenced global var.
23815
23816 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
23817
23818         PR target/42542
23819         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
23820         GTU to GT for V4SI and V2DI.
23821
23822         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
23823         (umin<mode>3): Removed.
23824         (uminv8hi3): New.
23825         (uminv4si3): Likewise.
23826
23827 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
23828
23829         PR lto/42581
23830         * collect2.c (main): Turn on trace in collect2 if -v is passed
23831         to gcc with LTO.
23832
23833 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
23834
23835         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
23836         description of expression operand.
23837
23838 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
23839
23840         * configure.ac: Add install-html to target_list for Make-hooks.
23841         * configure: Regenerate.
23842         * fortran/Make-lang.in (F95_HTMLFILES): New.
23843         (fortran.html): Use it.
23844         (fortran.install-html): New.
23845         * Makefile.in (install-html): Add lang.install-html.
23846         * java/Make-lang.in (JAVA_HTMLFILES): New.
23847         (java.html): Use it.
23848         (java.install-html): New.
23849         * objc/Make-lang.in (objc.install-html): New.
23850         * objcp/Make-lang.in (obj-c++.install-html): New.
23851         * cp/Make-lang.in (c++.install-html): New.
23852         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
23853         * lto/Make-lang.in (lto.install-html): New.
23854
23855 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
23856
23857         PR lto/42520
23858         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
23859
23860 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
23861
23862         PR rtl-optimization/41862
23863         * store-motion.c (store_killed_in_insn, compute_store_table,
23864         remove_reachable_equiv_notes, replace_store_insn,
23865         build_store_vectors): Ignore all DEBUG_INSNs.
23866
23867 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
23868
23869         PR lto/41564
23870         * common.opt: Add dumpdir.
23871
23872         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
23873         isn't specified.
23874         (option_map): Add --dumpdir.
23875
23876         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
23877
23878         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
23879
23880         * opts.c (decode_options): Try dump_dir_name first if
23881         dump_base_name isn't an absolute path.
23882         (common_handle_option): Handle OPT_dumpdir.
23883
23884         * toplev.c (dump_dir_name): New.
23885         (print_switch_values): Also ignore -dumpdir.
23886
23887         * toplev.h (dump_dir_name): New.
23888
23889 2010-01-03  Richard Guenther  <rguenther@suse.de>
23890
23891         PR tree-optimization/42589
23892         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
23893         double-word expansion of bswap32.
23894
23895 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
23896
23897         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
23898         with BLOCK_FOR_INSN.
23899         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
23900         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
23901         noce_process_if_block): Likewise.
23902         * gcse.c (compute_local_properties, insert_expr_in_table,
23903         insert_set_in_table, canon_list_insert, find_avail_set,
23904         pre_insert_copy_insn): Likewise.
23905
23906         * basic-block.h (BLOCK_NUM): Move from here...
23907         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
23908
23909 2010-01-03  Richard Guenther  <rguenther@suse.de>
23910
23911         PR tree-optimization/42438
23912         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
23913         contains_may_not_return_call flag.
23914         (BB_MAY_NOTRETURN): New.
23915         (valid_in_sets): Trapping nary operations are not valid
23916         in blocks that may not return.
23917         (insert_into_preds_of_block): Remove check for trapping expressions.
23918         (compute_avail): Compute also BB_MAY_NOTRETURN.
23919
23920 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
23921
23922         * doc/invoke.texi: Add 2010 to copyright years.
23923
23924 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
23925
23926         * config/sparc/sparc.c: Fix formatting nits.
23927
23928 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
23929             Alexander Monakov  <amonakov@ispras.ru>
23930
23931         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
23932
23933 2010-01-02  Richard Guenther  <rguenther@suse.de>
23934
23935         PR middle-end/42577
23936         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
23937         (simplify_switch_using_ranges): Mark to be removed edges
23938         as non-executable.
23939
23940 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23941
23942         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
23943
23944         * collect2.c (scan_libraries): Add missing argument in call to
23945         scan_prog_file.
23946
23947 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
23948
23949         PR target/42448
23950         * config/alpha/predicates.md (aligned_memory_operand): Return false
23951         for CQImode.
23952         (unaligned_memory_operand): Return true for CQImode.
23953         * config/alpha/alpha.c (get_aligned_mem): Assert that location
23954         doesn not cross aligned SImode word boundary.
23955
23956 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
23957
23958         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
23959         Remove.
23960         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
23961         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
23962
23963 2010-01-02  Richard Guenther  <rguenther@suse.de>
23964
23965         PR lto/41597
23966         * toplev.c (compile_file): Emit LTO marker properly.  Change
23967         it to __gnu_lto_v1.
23968         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
23969
23970 2010-01-01  Richard Guenther  <rguenther@suse.de>
23971
23972         PR debug/42455
23973         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
23974
23975 2010-01-01  Richard Guenther  <rguenther@suse.de>
23976
23977         PR c/42570
23978         * c-decl.c (grokdeclarator): For zero-size arrays force
23979         structural equality checks as layout_type does.
23980
23981 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
23982
23983         * builtins.c: Update copyright to 2010.
23984
23985 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
23986
23987         PR lto/42531
23988         * lto-streamer-out.c (produce_asm): Revert the last change.
23989         (copy_function): Likewise.
23990
23991         * lto-streamer.c (lto_get_section_name): Skip any leading
23992         asterisk in name.
23993
23994 2010-01-01  Richard Guenther  <rguenther@suse.de>
23995
23996         PR middle-end/42559
23997         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
23998         for LABEL_DECLs.
23999
24000 \f
24001 Copyright (C) 2010 Free Software Foundation, Inc.
24002
24003 Copying and distribution of this file, with or without modification,
24004 are permitted in any medium without royalty provided the copyright
24005 notice and this notice are preserved.