OSDN Git Service

* tree-ssa-address.c (tree_mem_ref_addr): Convert offset to
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
2             Michael Matz  <matz@suse.de>
3
4         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to
5         sizetype.
6
7 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
8
9         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
10         (ggc_mark_roots): ...here.
11
12 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
13
14         * vec.h (FOR_EACH_VEC_ELT): Define.
15         * c-decl.c: Use it.
16         * cfgloop.c: Likewise.
17         * cfgloopmanip.c: Likewise.
18         * cgraph.c: Likewise.
19         * cgraphunit.c: Likewise.
20         * combine.c: Likewise.
21         * config/bfin/bfin.c: Likewise.
22         * config/mips/mips.c: Likewise.
23         * config/rs6000/rs6000.c: Likewise.
24         * dbxout.c: Likewise.
25         * df-scan.c: Likewise.
26         * dominance.c: Likewise.
27         * dse.c: Likewise.
28         * dwarf2out.c: Likewise.
29         * except.c: Likewise.
30         * expr.c: Likewise.
31         * function.c: Likewise.
32         * gcse.c: Likewise.
33         * genattr.c: Likewise.
34         * ggc-common.c: Likewise.
35         * gimplify.c: Likewise.
36         * graphite-blocking.c: Likewise.
37         * graphite-clast-to-gimple.c: Likewise.
38         * graphite-dependences.c: Likewise.
39         * graphite-interchange.c: Likewise.
40         * graphite-poly.c: Likewise.
41         * graphite-scop-detection.c: Likewise.
42         * graphite-sese-to-poly.c: Likewise.
43         * graphite.c: Likewise.
44         * haifa-sched.c: Likewise.
45         * ifcvt.c: Likewise.
46         * implicit-zee.c: Likewise.
47         * ipa-prop.c: Likewise.
48         * ipa-struct-reorg.c: Likewise.
49         * ipa.c: Likewise.
50         * ira-build.c: Likewise.
51         * ira-color.c: Likewise.
52         * ira-emit.c: Likewise.
53         * lambda-code.c: Likewise.
54         * loop-invariant.c: Likewise.
55         * loop-unroll.c: Likewise.
56         * lower-subreg.c: Likewise.
57         * lto-cgraph.c: Likewise.
58         * lto-opts.c: Likewise.
59         * lto-streamer-in.c: Likewise.
60         * lto-streamer-out.c: Likewise.
61         * lto-streamer.c: Likewise.
62         * lto-symtab.c: Likewise.
63         * matrix-reorg.c: Likewise.
64         * opts.c: Likewise.
65         * predict.c: Likewise.
66         * print-tree.c: Likewise.
67         * sdbout.c: Likewise.
68         * sel-sched-dump.c: Likewise.
69         * sel-sched-ir.c: Likewise.
70         * sel-sched.c: Likewise.
71         * sese.c: Likewise.
72         * stor-layout.c: Likewise.
73         * tree-cfg.c: Likewise.
74         * tree-cfgcleanup.c: Likewise.
75         * tree-chrec.c: Likewise.
76         * tree-data-ref.c: Likewise.
77         * tree-emutls.c: Likewise.
78         * tree-inline.c: Likewise.
79         * tree-into-ssa.c: Likewise.
80         * tree-loop-distribution.c: Likewise.
81         * tree-loop-linear.c: Likewise.
82         * tree-mudflap.c: Likewise.
83         * tree-outof-ssa.c: Likewise.
84         * tree-parloops.c: Likewise.
85         * tree-predcom.c: Likewise.
86         * tree-pretty-print.c: Likewise.
87         * tree-scalar-evolution.c: Likewise.
88         * tree-ssa-live.c: Likewise.
89         * tree-ssa-loop-im.c: Likewise.
90         * tree-ssa-loop-ivcanon.c: Likewise.
91         * tree-ssa-loop-ivopts.c: Likewise.
92         * tree-ssa-loop-manip.c: Likewise.
93         * tree-ssa-loop-niter.c: Likewise.
94         * tree-ssa-loop-prefetch.c: Likewise.
95         * tree-ssa-phiprop.c: Likewise.
96         * tree-ssa-pre.c: Likewise.
97         * tree-ssa-reassoc.c: Likewise.
98         * tree-ssa-sccvn.c: Likewise.
99         * tree-ssa-structalias.c: Likewise.
100         * tree-ssa.c: Likewise.
101         * tree-vect-data-refs.c: Likewise.
102         * tree-vect-loop-manip.c: Likewise.
103         * tree-vect-loop.c: Likewise.
104         * tree-vect-patterns.c: Likewise.
105         * tree-vect-slp.c: Likewise.
106         * tree-vect-stmts.c: Likewise.
107         * tree-vrp.c: Likewise.
108         * tree.c: Likewise.
109         * value-prof.c: Likewise.
110         * var-tracking.c: Likewise.
111         * varasm.c: Likewise.
112         * vmsdbgout.c: Likewise.
113
114 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
115             Richard Guenther  <richard.guenther@gmail.com>
116
117         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
118         copy the src value and return a copy.
119         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
120         (C++ Volatiles): Adjust to describe C++ semantics only.
121
122 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
123
124         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
125         be zero or nonzero.
126         * doc/tm.texi: Regenerate.
127         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
128         * df-scan.c (df_get_exit_block_use_set), reginfo.c
129         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
130         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
131         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
132         to 1.
133
134 2010-08-20  Olivier Hainque  <hainque@adacore.com>
135
136         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
137         an extra nop past a sibling call at the very end.
138
139 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
140
141         PR bootstrap/45350
142         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
143         a comment.
144
145 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
146
147         * target.def (function_arg, function_incoming_arg): Remove const
148         qualifier on CUMULATIVE_ARGS parameter.
149         * targhooks.h (default_function_arg, default_function_incoming_arg):
150         Likewise.
151         * targhooks.c (default_function_arg, default_function_incoming_arg):
152         Likewise.
153         * config/i386/i386.c (ix86_function_arg): Likewise.
154
155 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
156
157         PR target/45336
158         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
159         SIGN_EXTENDs or ZERO_EXTENDs.
160
161 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
162
163         PR target/42172
164         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
165         Take its cost into account if nonnull.
166         (insn_a_feeds_b): New static function.
167         (combine_instructions): Look for four-insn combinations.
168         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
169         them into account when computing all_adjacent and looking for other
170         uses.
171         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
172         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
173         (try_combine): New arg I0.  Handle four-insn combinations.
174         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
175         like ELIM_I1.
176
177 2010-08-19  Jason Merrill  <jason@redhat.com>
178
179         PR c++/45307
180         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
181         if ctor is empty.
182         (gimplify_modify_expr_rhs): Adjust.
183
184 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
185
186         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
187         bitmap_bit_p.
188         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
189         * dominance.c (iterate_fix_dominators): Likewise.
190         * dse.c (set_usage_bits): Likewise.
191         (set_position_unneeded, record_store): Likewise.
192         * gimple-fold.c (get_maxval_strlen): Likewise.
193         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
194         * ipa-inline.c (update_caller_keys): Likewise.
195         * ipa-split.c (verify_non_ssa_vars): Likewise.
196         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
197         (close_type_exposed_parameter, close_type_full_escape): Likewise.
198         (close_addressof_down): Likewise.
199         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
200         (setup_allocno_left_conflicts_size): Likewise.
201         (ira_reassign_conflict_allocnos): Likewise.
202         (ira_reassign_pseudos): Likewise.
203         * ira-emit.c (change_loop): Likewise.
204         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
205         * lto-streamer-out.c (write_symbol): Likewise.
206         * predict.c (expr_expected_value_1): Likewise.
207         * regstat.c (regstat_bb_compute_ri): Likewise.
208         * sel-sched.c (create_block_for_bookkeeping): Likewise.
209         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
210         * stmt.c (expand_case): Likewise.
211         * tree-eh.c (emit_eh_dispatch): Likewise.
212         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
213         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
214         Likewise.
215         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
216         (rdg_build_components): Likewise.
217         * tree-object-size.c (collect_object_sizes_for): Likewise.
218         * tree-sra.c (convert_callers): Likewise.
219         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
220         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
221         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
222
223 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
224
225         * config/i386/i386.md (*lea_1): Use P mode iterator.
226         (lea add splitter): Also handle DImode operands.
227         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
228         predicate.  Do not use ix86_lea_for_add_ok.
229         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
230         (lea ashift splitter): Also handle DImode operands.
231         (DImode lea ashift splitter): Remove splitter.
232
233 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
234
235         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
236         ix86_binary_operator_ok.
237
238 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
239
240         PR rtl-optimization/44691
241         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
242         is not a register.
243
244 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
245
246         PR target/45070
247         * config/arm/arm.c (arm_output_epilogue): Ensure that return
248          value of size 1-3 is handled correctly.
249
250 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
251
252         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
253         type for the conditional has wide enough range.
254
255 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
256
257         PR target/45327
258         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
259         ix86_binary_operator_ok.
260
261 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
262
263         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
264         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
265         code to output insn mnemonic.  Fix comment.
266         (*addsi_1_zext): Add r-r-0 alternative 1.
267         <TYPE_LEA>: Split insn to lea.
268         <default>: Handle alternative 1.
269         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
270         multi-level if_then_else RTX to set "type" attribute.
271         <default>: Handle alternative 2.
272         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
273         Use cond RTX instead of multi-level if_then_else RTX to set
274         "type" attribute.
275         <default>: Handle alternatives 2 and 4.
276         (lea splitters): Update calls to ix86_lea_for_add_ok.
277
278         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
279         argument.
280         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
281
282 2010-08-18  Richard Guenther  <rguenther@suse.de>
283
284         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
285         use operand helpers.
286
287 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
288
289         PR middle-end/45292
290         * optabs.c (expand_bool_compare_and_swap): Expand pending
291         pops before trying the optab.
292
293 2010-08-18  Yao Qi  <yao@codesourcery.com>
294
295         PR target/45094
296         * config/arm/arm.c (output_move_double): Fix typo generating
297         instructions ('ldr'->'str').
298
299 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
300
301         PR rtl-optimization/42575
302         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
303         live ranges.
304
305 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
306
307         * config/arm/arm-protos.h (arm_expand_sync): New.
308         (arm_output_memory_barrier, arm_output_sync_insn): New.
309         (arm_sync_loop_insns): New.
310         * config/arm/arm.c (FL_ARCH7): New.
311         (FL_FOR_ARCH7): Include FL_ARCH7.
312         (arm_arch7): New.
313         (arm_print_operand): Support %C markup.
314         (arm_legitimize_sync_memory): New.
315         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
316         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
317         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
318         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
319         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
320         (arm_process_output_sync_insn, arm_output_sync_insn): New.
321         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
322         * config/arm/arm.h (struct arm_sync_generator): New.
323         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
324         (TARGET_HAVE_MEMORY_BARRIER): New.
325         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
326         * config/arm/arm.md: Include sync.md.
327         (UNSPEC_MEMORY_BARRIER): New.
328         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
329         (VUNSPEC_SYNC_OP):New.
330         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
331         (sync_result, sync_memory, sync_required_value): New attributes.
332         (sync_new_value, sync_t1, sync_t2): Likewise.
333         (sync_release_barrier, sync_op): Likewise.
334         (length): Add logic to length attribute defintion to call
335         arm_sync_loop_insns when appropriate.
336         * config/arm/sync.md: New file.
337
338 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
339
340         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
341         ENABLE_TREE_CHECKING.
342         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
343         and GCC >= 4.3.
344
345 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
346
347         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
348         or optimizing for size, always avoid lea if possible.
349
350         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
351
352 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
353
354         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
355         Dunmmy function with NULL return unless the target is
356         OSX >= 10.6 (Darwin10).
357
358 2010-08-17  Jack Howarth <howarth@bromo.med.uc.edu>
359
360         * gcc.c (spec_function): Add remove-outfile.
361         (remove_outfile_spec_function): New function.
362         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
363         * invoke.texi (replace-outfile): Document.
364
365 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
366
367         PR target/45296
368         * reginfo.c (globalize_reg): Reject stack registers.
369
370 2010-08-17  Richard Guenther  <rguenther@suse.de>
371
372         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
373         list of conditional equivalences.
374         (free_all_edge_infos): Adjust.
375         (record_equivalences_from_incoming_edge): Likewise.
376         (record_cond): Likewise.
377         (build_and_record_new_cond): Likewise.
378         (record_conditions): Likewise.
379         (dom_opt_leave_block): Likewise.
380
381 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
382
383         * doc/invoke.texi (ms-extension): Add documentation.
384
385 2010-08-17  Richard Guenther  <rguenther@suse.de>
386
387         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
388
389 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
390
391         PR c/40563
392         * c-decl.c (diagnose_uninitialized_cst_member): New function.
393         (finish_decl): Use it to issue a -Wc++-compat warning about
394         uninitialized const field in struct or union.
395
396         (finish_struct): Use strip_array_types.
397
398 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
399
400         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
401         functions.
402         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
403         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
404         call block_nreverse here.
405         (blocks_nreverse): Rename decl temporary to block.
406
407 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
408
409         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
410         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
411         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
412         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
413         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
414         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
415         thumb2_iorsi3): Delete.
416         (orsi_notsi_si): No longer a named pattern.
417         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
418         * config/arm/predicates.md (shift_amount_operand): New.
419         (mult_operator): New.
420         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
421         attr enabled): New.
422         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
423         arch matches t2.
424         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
425         (not_shiftsi_compare0): Likewise, renamed from
426         arm_notsi_shiftsi_compare0.
427         (not_shiftsi_compare0_scratch): Likweise, renamed from
428         arm_notsi_shiftsi_compare0_scratch.
429         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
430         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
431         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
432         so that the register alternative is disabled when the shift_operator
433         is MULT.  Use "M" as the constraint for constants.
434         (arith_shiftsi splitter): Enable for TARGET_32BIT.
435         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
436         constraint for constants.
437         (arith_shiftsi_compare0_scratch): Likewise.
438         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
439         Handle Thumb2 alternative.
440
441 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
442
443         * doc/options.texi (NoDriverArg): Document.
444         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
445         -MDX and -MMDX.
446         * opt-functions.awk (switch_flags): Handle NoDriverArg.
447         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
448         marking for CL_NO_DRIVER_ARG options when in the driver.
449         * opts.h (CL_NO_DRIVER_ARG): Define.
450         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
451         CL_COMMON): Update values.
452
453 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
454
455         * common.opt: Add driver options.
456         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
457         * doc/options.texi (Driver, RejectDriver): Document.
458         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
459         print_prog_name, print_multi_directory, print_sysroot,
460         print_multi_os_directory, print_multi_lib,
461         print_sysroot_headers_suffix, report_times, combine_flag,
462         use_pipes, wrapper_string): Remove.
463         (save_switch, driver_unknown_option_callback,
464         driver_wrong_lang_callback, driver_post_handling_callback,
465         driver_handle_option): New.
466         (spec_lang, last_language_n_infiles): Make file-scope static
467         instead of local to process_command.
468         (process_command): Use decode_cmdline_options_to_array and
469         read_cmdline_option for option processing.  Compute have_c in
470         prescan of decoded options.
471         * opt-functions.awk (switch_flags): Handle Driver and
472         RejectDriver.
473         (var_type, var_type_struct): Handle Separate options as generating
474         const char * variables.
475         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
476         CL_TARGET to be passed by caller if required.
477         (decode_cmdline_options_to_array): Update comment.
478         * opts.c (complain_wrong_lang): Handle options only valid for the
479         driver.
480         (decode_options): Update call to decode_cmdline_options_to_array.
481         (print_filtered_help): Ignore driver-only options.
482         (print_specific_help): Ignore CL_DRIVER.
483         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
484         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
485         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
486         Update values.
487
488 2010-08-16  Richard Guenther  <rguenther@suse.de>
489
490         * tree-cfg.c (verify_types_in_gimple_reference): Verify
491         TARGET_MEM_REF a bit.
492         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
493         (create_mem_ref_raw): Always create TMR_OFFSET, store the
494         alias pointer type via it.
495         (copy_mem_ref_info): Adjust.
496         (maybe_fold_tmr): Likewise.
497         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
498         (reference_alias_ptr_type): Likewise.
499         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
500         adjust documentation of TMR_OFFSET operand.
501         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
502         use the alias pointer type.
503         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
504         initialize mem attrs but the TMR itself.
505         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
506         similar to MEM_REF.
507         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
508         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
509         (unshare_and_remove_ssa_names): Likewise.
510         (copy_ref_info): Adjust.
511         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
512         TARGET_MEM_REF case.
513         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
514         at TMR_ORIGINAL.
515         * tree.h (TMR_ORIGINAL): Remove.
516         * gimple.c (get_base_address): For TARGET_MEM_REF with a
517         symbol return that.
518         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
519         with a symbol.
520         (get_addr_base_and_unit_offset): Likewise.
521         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
522         TARGET_MEM_REFs.
523         (indirect_ref_may_alias_decl_p): Likewise.
524         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
525
526 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
527
528         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
529         with GCC version 4.6, the default setting (when not optimizing
530         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
531         been changed to -fomit-frame-pointer.
532
533 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
534
535         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
536         Darwin10.  Do not link libgcc.a for Darwin >= 9.
537
538 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
539
540         * doc/invoke.texi (Warning Options): Fix terminology and markup
541         in the description of how unknown warning options are handled.
542
543 2010-08-15  Ira Rosen  <irar@il.ibm.com>
544
545         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
546         in basic blocks.
547         (vect_supportable_dr_alignment): Check alignment for basic blocks.
548         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
549         data references.
550         (vect_bb_vectorization_profitable_p): New function.
551         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
552         check if it's worthwhile to vectorize the basic block.
553
554 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
555
556         * reload.h (register_move_cost, memory_move_secondary_cost,
557         secondary_reload_class): Adjust prototype.
558         * rtl.h (reg_class_subset_p): Adjust prototype.
559         * reload.c (secondary_reload_class): Change arguments type from
560         enum reg_class to reg_class_t. Change result type to reg_class_t.
561         * reginfo.c (register_move_cost, reg_class_subset_p): Change
562         arguments type from enum reg_class to reg_class_t.
563         (memory_move_secondary_cost): Change arguments type from
564         enum reg_class to reg_class_t. Change type of saved_flags to
565         reg_class_t.
566
567         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
568         Remove macros.
569         (mips_cost): Remove.
570         (struct mips_rtx_cost_data): Moved to mips.c.
571         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
572         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
573         (mips_cost): Make static.
574         (mips_canonicalize_move_class): Change argument type to reg_class_t.
575         Change result type to reg_class_t.
576         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
577         type from enum reg_class to reg_class_t.
578         (mips_register_move_cost): Make static. Change arguments
579         type from enum reg_class to reg_class_t.
580         (mips_memory_move_cost): New function.
581         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
582
583 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
584
585         PR rtl-optimization/43358
586         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
587         of a single hard register, using simplify_subreg_regno to decide
588         what that register should be.
589
590 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
591
592         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
593         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
594         (loongson_pmull<V_suffix>): Rename to...
595         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
596
597 2010-08-13  Jack Howarth <howarth@bromo.med.uc.edu>
598
599         * gcc/configure.ac: Enable -fomit-frame-pointer on darwin
600         which support dwarf2.
601         * config/i386/i386.c (override_options): Same.
602
603 2010-08-13  Jie Zhang  <jie@codesourcery.com>
604
605         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
606
607 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
608
609         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
610         -MMD.
611
612 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
613
614         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
615         up dot_prod pattern searching if a stmt is outside the loop.
616
617 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
618             Uros Bizjak  <ubizjak@gmail.com>
619
620         * config.gcc: Handle --enable-frame-pointer.
621
622         * configure.ac: Add --enable-frame-pointer.
623         * configure: Regenerated.
624
625         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
626         (override_options): If not configured with --enable-frame-pointer,
627         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
628         optimizing for size), -fasynchronous-unwind-tables and
629         -maccumulate-outgoing-args by default.
630
631 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
632
633         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
634
635         PR middle-end/45262
636         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
637         -a overflows.  Normalize the range.
638
639 2010-08-12  Richard Guenther  <rguenther@suse.de>
640
641         PR tree-optimization/45232
642         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
643         for types with undefined overflow.
644         (reassociate_bb): Allow re-associating of bit and min/max
645         operations for types with undefined overflow.
646         * tree-ssa-forwprop.c (associate_plusminus): New function.
647         (tree_ssa_forward_propagate_single_use_vars): Call it.
648
649 2010-08-12  Richard Guenther  <rguenther@suse.de>
650
651         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
652         * tree-ssa-alias.c (get_ptr_info): Move ...
653         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
654         align and misalign fields conservatively.
655         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
656         derive alignment information.
657         (evaluate_stmt): Derive alignment information from memory
658         allocation functions.
659         * tree.h (get_pointer_alignment): Make unsigned.
660         * builtins.c (get_object_alignment): Use alignment information we
661         have computed for pointers.
662         (get_pointer_alignment): Likewise.  Make conservative, return
663         and unsigned value.
664         (expand_builtin_strlen): Adjust.
665         (expand_builtin_memcmp): Likewise.
666         (expand_builtin_strcmp): Likewise.
667         (expand_builtin_strncmp): Likewise.
668         (get_builtin_sync_mem): Use at least mode alignment.
669         (fold_builtin_memset): Adjust.
670         (fold_builtin_memory_op): Likewise.
671         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
672         information also dump pointer alignment knowledge.
673         (dump_gimple_stmt): Likewise.
674
675 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
676
677         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
678         (EMPTY_FIELD_BOUNDARY): Remove.
679         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
680
681 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
682
683         PR debug/45259
684         * caller-save.c (save_call_clobbered_regs): Only swap notes with
685         DEBUG_INSNs if n_regs_saved.
686
687 2010-08-12  Wei Guozhi  <carrot@google.com>
688
689         PR target/44999
690         * config/arm/arm.md (andsi3): Change to zero extension if possible.
691         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
692
693 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
694
695         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
696
697         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
698
699 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
700
701         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
702         the case removed in the previous patch, when the only phi argument
703         is defined in the same loop as the phi node itself.  Handle it
704         separately from the invariant case by both propagating it outside
705         the region and replacing the phi node with an assign.
706
707 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
708
709         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
710         constant phi nodes with one argument are is_gimple_min_invariant
711         and SSA_NAME_IS_DEFAULT_DEF.
712
713 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
714
715         * graphite-cloog-util.c (oppose_constraint):
716         Extend loop counter's value range (CLOOG_ORG).
717         (cloog_matrix_to_ppl_constraint): Same.
718         (new_Constraint_System_from_Cloog_matrix): Same.
719         * graphite-cloog-compat.h (matrix_num_type): New.
720
721 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
722
723         * graphite.c (graphite_initialize): Do not initialize
724         CLooG and initialize the Parma Polyhedra Library
725         manually when using CLOOG_ORG.
726         (graphite_finalize): Do not finalize CLooG and finalize
727         the Parma Polyhedra Library manually when using CLOOG_ORG.
728         * graphite-cloog-compat.h (cloog_initialize): Hide function
729         when using CLOOG_ORG.
730         (cloog_finalize): Same.
731
732 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
733
734         * graphite-clast-to-gimple.c (free_scattering): Change
735         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
736         (CLOOG_ORG).
737         (build_cloog_prog): Same.
738         * graphite-cloog-compat.h (cloog_domain): Removed.
739         (cloog_scattering): New.
740         (cloog_set_domain): Removed.
741         (cloog_set_scattering): New.
742         (cloog_next_domain): Removed.
743         (cloog_next_scattering): New.
744         (cloog_set_next_domain): Removed.
745         (cloog_set_next_scattering): New.
746         (CloogScatteringList): New.
747         (CloogScattering): New.
748         (cloog_scattering_free): New.
749         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
750         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
751         New.
752
753 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
754
755         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
756         CloogState.
757         (set_cloog_options): Same.
758         (print_clast_stmt): Same.
759         (scop_to_clast): Same.
760         (print_generated_program): Same.
761         (gloog): Same.
762         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
763         (scop_to_clast): Extend with CloogState.
764         * graphite-cloog-util.c: Include graphite-cloog-compat.h
765         (new_Cloog_Domain_from_ppl_Polyhedron):
766         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
767         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
768         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
769         * graphite-cloog-util.h (build_cloog_prog): Same.
770         * graphite-cloog-copat.h (build_cloog_prog): New.
771         (CloogState): New.
772         (cloog_state_malloc): New.
773         (cloog_state_free): New.
774         (cloog_loop_malloc): New.
775         (cloog_options_malloc): New.
776         (cloog_statement_alloc): New.
777         (cloog_domain_from_cloog_matrix): New.
778         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
779         (new_Cloog_Domain_from_ppl_Polyhedron): New.
780
781 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
782
783         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
784         type of NAME now depends on used CLooG version.
785         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
786         (gcc_type_for_clast_expr): Same.
787         (print_clast_stmt): Replace pprint with clast_pprint.
788         * graphite-cloog-compat.h: Provide compatibility macros for
789         CLooG Legacy.
790         (clast_name_p): New.
791         (clast_expr_term): New.
792         (clast_expr_red): New.
793         (clast_expr_bin): New.
794         (clast_pprint): New.
795
796 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
797
798         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
799         compatible to newer CLooG releases (CLOOG_ORG).
800         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
801         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
802         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
803         (build_cloog_prog) : New.
804         (cloog_program_extract_scalars): New.
805         (cloog_program_scatter): New.
806
807 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
808
809         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
810         conditionally (CLOOG_ORG).
811         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
812         (cloog_statement_usr): New.
813         (cloog_domain): Same.
814         (cloog_set_domain): Same.
815         (cloog_next_domain): Same.
816         (cloog_set_next_domain): Same.
817         (cloog_program_nb_scattdims): Same.
818         (cloog_program_set_nb_scattdims): Same.
819         (cloog_program_names): Same.
820         (cloog_program_set_names): Same.
821         (cloog_program_set_context): Same.
822         (cloog_program_set_loop): Same.
823         (cloog_program_blocklist): Same.
824         (cloog_program_set_blocklist): Same.
825         (cloog_program_scaldims): Same.
826         (cloog_program_set_scaldims): Same.
827         (cloog_names_nb_parameters): Same.
828         (cloog_names_set_nb_parameters): Same.
829         (cloog_names_parameters): Same.
830         (cloog_names_set_parameters): Same.
831         (cloog_names_set_nb_iterators): Same.
832         (cloog_names_set_iterators): Same.
833         (cloog_names_set_nb_scattering): Same.
834         (cloog_names_set_scattering): Same.
835         (cloog_statement_set_usr): Same.
836         (cloog_loop_set_next): Same.
837         (cloog_loop_set_domain): Same.
838         (cloog_loop_set_block): Same.
839         (cloog_block_list_next): Same.
840         (cloog_block_list_set_next):
841         (cloog_block_list_set_block): Same.
842
843 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
844
845         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
846         a bool.
847         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
848         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
849         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
850         when something has been changed.
851         (rewrite_commutative_reductions_out_of_ssa): Same.
852
853 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
854
855         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
856         handle the case when def is in the sese region.
857         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
858         for invariant expressions.
859         (rewrite_cross_bb_phi_deps): Removed.
860         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
861         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
862         rewrite_cross_bb_phi_deps.
863
864 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
865
866         * graphite-sese-to-poly.c
867         (rewrite_commutative_reductions_out_of_ssa_loop): Call
868         scev_analyzable_p only on is_gimple_reg
869
870 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
871
872         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
873         (rewrite_close_phi_out_of_ssa): Propagate constant values or
874         parametric expressions outside the scop region.
875         (rewrite_cross_bb_scalar_deps): Same.
876         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
877
878 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
879
880         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
881         SSA_NAME_DEF_STMT only on SSA_NAMEs.
882
883 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
884
885         * tree-scalar-evolution.c (instantiate_scev_name): Do not
886         instantiate default definitions.
887
888 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
889             Sebastian Pop  <sebastian.pop@amd.com>
890
891         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
892         (loop_exits_from_bb_p): New.
893         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
894         (loop_exits_from_bb_p): Declared.
895         * graphite-scop-detection.c (scopdet_basic_block_info): Call
896         loop_exits_to_bb_p.
897
898 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
899
900         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
901         extra parameter for the region.  Call scev_analyzable_p.
902         (rewrite_reductions_out_of_ssa): Update call to
903         rewrite_close_phi_out_of_ssa.
904         (rewrite_cross_bb_phi_deps): Same.
905         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
906         parameter for the region.  Call scev_analyzable_p.
907         (rewrite_commutative_reductions_out_of_ssa): Update call to
908         rewrite_commutative_reductions_out_of_ssa_loop.
909
910 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
911
912         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
913
914 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
915
916         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
917         SSA scalar phi nodes that can be scev_analyzable_p.
918
919 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
920
921         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
922         handle SSA_NAME_IS_DEFAULT_DEF.
923
924 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
925
926         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
927
928 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
929
930         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
931         case non close-phi nodes with one argument.
932
933 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
934
935         * sese.h (scev_analyzable_p): Scevs could be expressions without
936         chrecs and still be scev_analyzable_p.
937
938 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
939
940         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
941
942 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
943
944         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
945         * cfgloop.h (struct loop): Remove single_iv field.
946         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
947         (scop_canonicalize_loops): Removed.
948         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
949         over all the loop phi nodes in loop->header.
950         (build_poly_scop): Remove use of scop_canonicalize_loops.
951
952 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
953
954         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
955         handle GIMPLE_CALL.
956
957 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
958
959         * tree-chrec.c (chrec_apply): Should only apply to the specified
960         variable.  Also handle multivariate chains of recurrences that
961         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
962
963 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
964
965         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
966         (debug_clast_name_indexes_1): Removed.
967         (debug_clast_name_indexes): Removed.
968         (pbb_to_depth_to_oldiv): Removed.
969         (build_iv_mapping): Replace the use of rename_map with iv_map.
970         (translate_clast_user): Remove uses of rename_map.  Allocate and
971         free iv_map.
972         (translate_clast_for_loop): Remove uses of rename_map.
973         (translate_clast_for): Same.
974         (translate_clast_guard): Same.
975         (translate_clast): Same.
976         (gloog): Same.
977         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
978         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
979         * sese.c (set_rename): Now static.
980         (rename_variables_in_stmt): Removed.
981         (rename_uses): New.
982         (is_parameter): Removed.
983         (is_iv): Removed.
984         (expand_scalar_variables_call): Removed.
985         (expand_scalar_variables_ssa_name): Removed.
986         (expand_scalar_variables_expr): Removed.
987         (expand_scalar_variables_stmt): Removed.
988         (expand_scalar_variables): Removed.
989         (rename_variables): Removed.
990         (remove_condition): Removed.
991         (get_true_edge_from_guard_bb): Removed.
992         (get_false_edge_from_guard_bb): Removed.
993         (struct igp): Removed.
994         (default_before_guard): Removed.
995         (convert_for_phi_arg): Removed.
996         (add_guard_exit_phis): Removed.
997         (insert_guard_phis): Removed.
998         (graphite_copy_stmts_from_block): Now also uses iv_map and a
999         region.  Do not copy conditions.  Do not copy induction variables.
1000         Call rename_uses.
1001         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
1002         the translated statement.  Use the iv_map for the induction
1003         variable renaming.
1004         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
1005         (set_rename): Removed declaration.
1006         (scev_analyzable_p): ...here.
1007         * tree-chrec.c (chrec_apply_map): New.
1008         * tree-chrec.h (chrec_apply_map): Declared.
1009
1010 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1011
1012         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
1013         insert_loop_close_phis.
1014         * sese.c (name_defined_in_loop_p): Removed.
1015         (expr_defined_in_loop_p): Removed.
1016         (alive_after_loop): Removed.
1017         (close_phi_not_yet_inserted_p): Removed.
1018         (struct alep): Removed.
1019         (add_loop_exit_phis): Removed.
1020         (insert_loop_close_phis): Removed.
1021
1022 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1023
1024         * graphite-cloog-util.c
1025         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
1026         * graphite-poly.c
1027         (psct_scattering_dim_for_loop_depth): Same.
1028
1029 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1030
1031         * graphite-cloog-util.h: Added cloog.h.
1032         * graphite-blocking.c: Removed cloog.h.
1033         * graphite-dependences.c: Same.
1034         * graphite-interchange.c: Same.
1035         * graphite-poly.c: Same.
1036         * graphite-ppl.c: Same.
1037         * graphite-scop-detection.c: Same.
1038         * graphite-sese-to-poly.c:
1039         Removed cloog.h.
1040         Removed graphite-clast-to-gimple.h.
1041         (check_poly_representation): Removed (unused).
1042         * graphite-sese-to-poly.h
1043         (check_poly_representation): Removed (unused).
1044
1045 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1046
1047         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
1048         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
1049         (graphite-cloog-util.o): New.
1050         (graphite-ppl.o): Added graphite-cloog-util.h.
1051         * graphite-clast-to-gimple.c:
1052         Added graphite-cloog-util.h to include statements.
1053         * graphite-cloog-util.c: New.
1054         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
1055         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1056         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1057         (new_C_Polyhedron_from_Cloog_Matrix): Same.
1058         (insert_constraint_into_matrix): Same.
1059         (ppl_Constrain_System_number_of_constraints): Same.
1060         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
1061         (oppose_constraint): Same.
1062         (cloog_matrix_to_ppl_constraint): Same.
1063         (new_Constraint_System_from_Cloog_Matrix): Same.
1064         * graphite-cloog-util.h: New.
1065         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
1066         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1067         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1068         (new_C_Polyhedron_from_Cloog_Matrix): Same.
1069         (insert_constraint_into_matrix): Same.
1070         * graphite-ppl.c:
1071         Added graphite-cloog-util.h to include statements.
1072         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
1073         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1074         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1075         (new_C_Polyhedron_from_Cloog_Matrix): Same.
1076         (insert_constraint_into_matrix): Same.
1077         (ppl_Constrain_System_number_of_constraints): Same.
1078         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
1079         (oppose_constraint): Same.
1080         (cloog_matrix_to_ppl_constraint): Same.
1081         (new_Constraint_System_from_Cloog_Matrix): Same.
1082         * graphite-ppl.h:
1083         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
1084         graphite-cloog-util.h.
1085         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1086         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1087         (new_C_Polyhedron_from_Cloog_Matrix): Same.
1088         (insert_constraint_into_matrix): Same.
1089
1090 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1091
1092         * graphite-clast-to-gimple.c
1093         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
1094         (precision_for_interval): Same.
1095         (gcc_type_for_interval): Same.
1096         (compute_type_for_level): Same.
1097         * graphite-interchange.c
1098         (lst_interchange_profitable_p): Same.
1099         * graphite-poly.c
1100         (psct_scattering_dim_for_loop_depth): Same.
1101         * graphite-ppl.c
1102         (ppl_max_for_le_pointset): Same.
1103         (ppl_min_for_le_pointset): Same.
1104
1105 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1106
1107         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
1108         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
1109
1110 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1111
1112         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
1113         rewrite_close_phi_out_of_ssa.
1114
1115 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1116
1117         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
1118
1119 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1120
1121         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
1122         rename_map.
1123         * sese.c (debug_rename_map): Same.
1124         (get_rename): Same.
1125         (set_rename): Same.
1126         (rename_variables_in_stmt): Same.
1127         (expand_scalar_variables_call): Same.
1128         (expand_scalar_variables_ssa_name): Same.
1129         (expand_scalar_variables_expr): Same.
1130         (expand_scalar_variables_stmt): Same.
1131         (expand_scalar_variables): Same.
1132         (rename_variables): Same.
1133         (graphite_copy_stmts_from_block): Same.
1134         (copy_bb_and_scalar_dependences): Same.
1135
1136 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1137
1138         * graphite-clast-to-gimple.c (copy_renames): Removed.
1139         (translate_clast_for): Do not call copy_renames.
1140         (translate_clast_guard): Same.
1141
1142 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1143
1144         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
1145         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
1146         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
1147         before rewrite_cross_bb_scalar_deps.
1148
1149 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1150
1151         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
1152         Early return in when flag_associative_math is not set.
1153
1154 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1155
1156         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
1157         of SSA copies on edges except for loop->latch.
1158
1159 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1160
1161         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
1162         Split out of rewrite_reductions_out_of_ssa.
1163         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
1164         Declared.
1165         * graphite.c (graphite_transform_loops): Call it.
1166
1167 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1168
1169         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
1170
1171 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
1172
1173         * dbgcnt.def (graphite_scop): New counter.
1174         * graphite.c: Include dbgcnt.h.
1175         (graphite_transform_loops): Use new counter to limit transformations.
1176         * Makefile.in (graphite.o): Depend on DBGCNT_H.
1177
1178 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1179
1180         * passes.c (init_optimization_passes): Add pass_graphite.
1181         Schedule a pass_copy_prop before pass_graphite_transforms.
1182         * timevar.def (TV_GRAPHITE): Declared.
1183         * tree-pass.h (pass_graphite): Declared.
1184         * tree-ssa-loop.c (pass_graphite): New.
1185
1186 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1187
1188         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
1189         Remove calls to rename_nb_iterations and rename_sese_parameters.
1190         * graphite-clast-to-gimple.h (gloog): Update declaration.
1191         * graphite.c (graphite_transform_loops): Update call to gloog.
1192         * sese.c (rename_variables_in_expr): Removed.
1193         (rename_nb_iterations): Removed.
1194         (rename_sese_parameters): Removed.
1195         * sese.h (rename_nb_iterations): Removed.
1196         (rename_sese_parameters): Removed.
1197
1198 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1199
1200         * graphite-clast-to-gimple.c (gloog): Remove call to
1201         sese_adjust_liveout_phis.
1202         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
1203         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
1204         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
1205         rewrite_phi_out_of_ssa.
1206         * sese.c (get_vdef_before_sese): Removed.
1207         (sese_adjust_vphi): Removed.
1208         (sese_adjust_liveout_phis): Removed.
1209         * sese.h (sese_adjust_liveout_phis): Removed.
1210
1211 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1212
1213         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
1214         argument for the place after which to insert the out of SSA copy.
1215         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
1216         (rewrite_phi_out_of_ssa): Same.
1217         (rewrite_cross_bb_scalar_deps): Same.
1218         (insert_copyout): Removed.
1219         (insert_copyin): Removed.
1220         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
1221         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
1222         insert_copyin.
1223
1224 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1225
1226         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
1227         (rewrite_reductions_out_of_ssa): Same.
1228         (rewrite_commutative_reductions_out_of_ssa): Same.
1229         (build_poly_scop): Do not call these functions.
1230         * graphite-sese-to-poly.h (build_poly_scop): Declared.
1231         (rewrite_reductions_out_of_ssa): Declared.
1232         (rewrite_commutative_reductions_out_of_ssa): Declared.
1233         * graphite.c (graphite_transform_loops): Call on every scop
1234         rewrite_commutative_reductions_out_of_ssa before calling
1235         rewrite_reductions_out_of_ssa and build_scop_bbs.
1236
1237 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1238
1239         * graphite-dependences.c (dot_deps): Make system call to dotty run
1240         in background.
1241         (dot_deps_stmt): Same.
1242         * graphite-poly.c (dot_lst): Same.
1243
1244 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1245
1246         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
1247         phi_arg_in_outermost_loop.
1248         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
1249         (remove_invariant_phi): Same.
1250
1251 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
1252
1253         * target.def (output_addr_const_extra): New hook.
1254         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
1255         * doc/tm.texi: Regenerate.
1256         * targhooks.c (default_asm_output_addr_const_extra): New function.
1257         * targhooks.h (default_asm_output_addr_const_extra): Declare.
1258         * final.c: (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
1259         target hook.
1260
1261         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1262         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
1263         * config/i386/i386.h (output_addr_const_extra): Rename to...
1264         (i386_asm_output_addr_const_extra): ...this. Make static.
1265         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1266
1267 2010-08-11  Richard Henderson  <rth@redhat.com>
1268
1269         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
1270
1271 2010-08-11  Nick Clifton  <nickc@redhat.com>
1272
1273         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
1274         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
1275         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
1276         stormy16-lib2-cmpsi.c.
1277
1278         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
1279         -O2.
1280
1281 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
1282
1283         * opts.h (struct cl_option_handler_func): Make handler take
1284         cl_decoded_option structure as parameter, not individual elements.
1285         (struct cl_option_handlers): Make callbacks take cl_decoded_option
1286         structure as parameter, not individual elements.
1287         (handle_option): Take cl_decoded_option structure as parameter,
1288         not individual elements.
1289         (handle_generated_option): Declare.
1290         * opts-common.c (handle_option): Take cl_decoded_option structure
1291         as parameter, not individual elements.  Update calls to callback
1292         and handler functions.
1293         (handle_generated_option): New.
1294         (read_cmdline_option): Update calls to callback functions and
1295         handle_option.
1296         * opts.c (common_handle_option, complain_wrong_lang,
1297         unknown_option_callback, post_handling_callback,
1298         lang_handle_option, target_handle_option): Take cl_decoded_option
1299         structure as parameter, not individual elements.
1300         (lang_handle_option, target_handle_option, common_handle_option):
1301         Assert option has at most one argument.
1302         (enable_warning_as_error): Call handle_generated_option instead of
1303         handle_option.  Do not pass -Werror argument as argument of
1304         generated option.
1305
1306 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1307
1308         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
1309         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
1310         (SUBWORD_BOOL_CAS): Likewise.
1311         (SUBWORD_SYNC_OP): Likewise.
1312         (SUBWORD_TEST_AND_SET): Likewise.
1313         (FETCH_AND_OP_WORD): Parenthesise INF_OP
1314         (SUBWORD_SYNC_OP): Likewise.
1315         (OP_AND_FETCH_WORD): Likewise.
1316
1317 2010-08-10  Xinliang David Li  <davidxl@google.com>
1318
1319         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
1320         compute max/min offset in address.
1321
1322 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
1323
1324         * ira-live.c: Include sbitmap.h.
1325         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
1326         Compress live ranges even more.
1327
1328 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1329
1330         * coverage.c (ctr_labels): Delete.
1331
1332 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
1333
1334         PR bootstrap/45177
1335         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
1336         test here from arm_gen_load_multiple_1.
1337         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
1338         multiple_operation_profitable_p.
1339
1340 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1341
1342         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
1343         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
1344
1345 2010-08-10  Richard Henderson  <rth@redhat.com>
1346
1347         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
1348         after saving registers.  Assert that SSE registers are only saved
1349         with a sufficiently aligned frame.
1350         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
1351         remove stack_realign_fp handling.
1352         (ix86_expand_prologue): Save int registers before stack_realign_fp,
1353         and do not mark the stack alignment as frame related.
1354         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
1355
1356         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
1357         saves when re-aligning the stack.
1358
1359 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1360
1361         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
1362         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
1363         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
1364
1365 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1366
1367         * dwarf2out.c (struct die_struct): Move die_tag to the end.
1368
1369 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
1370
1371         * config/arm/iterators.md: New file.
1372         * config/arm/arm.md: Include iterators.md.
1373         (QHSI): Move to new file.
1374         (LTUGEU, cnb, optab, ior_xor): Likewise.
1375         * config/arm/iwmmxt.md (VMMX): Move to new file.
1376         (VSHFT, MMX_char): Likewise.
1377         * config/arm/neon.md (VD): Move to new file.
1378         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
1379         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
1380         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
1381         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
1382         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
1383         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
1384         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
1385         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
1386         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
1387         (Is_d_reg, V_mode_nunits): Likewise.
1388         * config/arm/vec-common.md (VALL): Move to new file.
1389         (VALLW, VINT, VINTW): Likewise.
1390
1391 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
1392
1393         PR middle-end/45182
1394         * combine.c (make_compound_operation): Don't try to convert
1395         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
1396
1397 2010-08-10  Richard Guenther  <rguenther@suse.de>
1398
1399         * tree.h (get_object_alignment): Adjust prototype.
1400         * builtins.c (get_object_alignment): Return unsigned int,
1401         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
1402         and TARGET_MEM_REF properly.
1403         (get_pointer_alignment): Adjust.
1404         * emit-rtl.c (get_mem_align_offset): Adjust comment.
1405         (set_mem_attributes_minus_bitpos): Adjust.
1406         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
1407
1408 2010-08-10  Richard Guenther  <rguenther@suse.de>
1409
1410         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
1411         (copy_prop_visit_assignment): Simplify.
1412         (copy_prop_visit_stmt): Also visit assignments from
1413         constants.
1414         (copy_prop_visit_phi_node): Use operand_equal_p.
1415
1416 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
1417
1418         * ipa-split.c (find_split_points): Free stack.
1419
1420 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
1421
1422         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
1423         * tree.c (tree_node_kind): Delete corresponding entries.
1424
1425 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1426
1427         * alias.c (may_alias_p): Remove unused ret.
1428
1429 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
1430
1431         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
1432         alias_sets_conflict_p.
1433         (walk_mems_1): Moved from alias.c.
1434         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
1435         in alias.c.
1436         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
1437         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
1438         * alias.c (walk_mems_2): Moved to ddg.c.
1439         (walk_mems_1): Ditto.
1440         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
1441         to ddg.c.
1442         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
1443         disambiguation.
1444         *(may_alias_p): New function to check whether two memory expression
1445         may alias or not. Currently used in buidling inter-iteration memory
1446         dependence.
1447         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
1448         (insn_alias_sets_conflict_p): Removed
1449         *rtl.h (may_alias_p): New function prototype.
1450
1451 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
1452
1453         * tree.c (nreverse): Assert that we don't have a BLOCK.
1454
1455 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
1456
1457         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
1458         * config/arm/arm.c (arm_get_pcs_model): Likewise.
1459         * config/avr/avr.c (init_cumulative_args): Likewise.
1460         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1461         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1462         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
1463         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
1464         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
1465         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1466         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
1467         * dwarf2out.c (gen_subprogram_die): Likewise.
1468         * function.c (allocate_struct_function): Likewise.
1469         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
1470         (deserves_ellipsis): Delete.
1471
1472 2010-08-09  Richard Guenther  <rguenther@suse.de>
1473
1474         * tree-ssa-copy.c (cached_last_copy_of): Remove.
1475         (valueize_val): New function.
1476         (get_last_copy_of): Remove.
1477         (set_copy_of_val): Simplify.
1478         (dump_copy_of): Likewise.
1479         (copy_prop_visit_cond_stmt): Use valueize_val.
1480         (copy_prop_visit_phi_node): Properly handle unvisited names.
1481         Drop code managing copy-of chains.
1482         (init_copy_prop): Adjust.
1483         (fini_copy_prop): Likewise.
1484         (execute_copy_prop): Remove obsolete comment.
1485
1486 2010-08-09  Richard Guenther  <rguenther@suse.de>
1487
1488         PR middle-end/44632
1489         * function.c (gimplify_parameters): Do not clear addressable
1490         bit of the original parameter.
1491
1492 2010-08-09  Richard Guenther  <rguenther@suse.de>
1493
1494         PR middle-end/45212
1495         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
1496         alignment from MEM_REF offset only if we took it from the
1497         base object.
1498
1499 2010-08-09  Eric Fisher <joefoxreal@gmail.com>
1500
1501         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
1502
1503 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
1504
1505         * c-tree.h (build_arg_info): Declare.
1506         * c-decl.c (build_arg_info): Define.
1507         (get_parm_info): Call it.  Delete initialization code.
1508         * c-parser.c (c_parser_parms_declarator): Likewise.
1509         (c_parser_parms_list_declaractor): Likewise.
1510
1511 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
1512
1513         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
1514         (struct c_arg_info): Change type of tags field.
1515         * c-decl.c (grokdeclarator): Update for changed type of tags field.
1516         (get_parm_info): Likewise.
1517         (store_parm_decls_newstyle): Likewise.
1518
1519 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
1520
1521         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
1522         (branch_island_list): Delete.
1523         (branch_islands): Declare.
1524         (add_compiler_branch_island): Adjust for branch_islands instead of
1525         branch_island_list.
1526         (macho_branch_islands): Likewise.
1527         (no_previous_def): Likewise.
1528         (get_prev_label): Likewise.
1529
1530 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1531
1532         PR boehm-gc/34544
1533         * gthr-posix.h (__gthread_start): Delete.
1534         (__gthread_active_init): Use pthread_default_stacksize_np instead of
1535         pthread_create to determine if hpux pthreads are active.
1536         * gthr-posix95.h (__gthread_start): Delete.
1537         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
1538
1539 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
1540
1541         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
1542         _WIN64 not expanded.
1543
1544 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
1545             H.J. Lu  <hongjiu.lu@intel.com>
1546
1547         PR target/45213
1548         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
1549         to output 32bit SFmode immediate as 8 byte sign extended value.
1550
1551 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1552
1553         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
1554         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
1555         (SUBWORD_BOOL_CAS): Likewise.
1556         (SUBWORD_SYNC_OP): Likewise.
1557         (SUBWORD_TEST_AND_SET): Likewise.
1558         (FETCH_AND_OP_WORD): Parenthesise INF_OP
1559         (SUBWORD_SYNC_OP): Likewise.
1560         (OP_AND_FETCH_WORD): Likewise.
1561
1562 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1563
1564         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
1565         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
1566         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
1567         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
1568         generic part.
1569         (cortex_a9_sched_adjust_cost): New function.
1570         (xscale_sched_adjust_cost): New function.
1571         * config/arm/arm-protos.h (struct tune_params): New field
1572         sched_adjust_cost.
1573         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
1574
1575 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
1576
1577         PR target/44942
1578         * config/sparc/sparc.c (function_arg_advance): Always take into account
1579         the padding, if any.
1580
1581 2010-08-06  Richard Guenther  <rguenther@suse.de>
1582
1583         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
1584         (dump_lattice_value): Dump it.
1585         (get_default_value): Adjust.
1586         (get_constant_value): Likewise.
1587         (set_value_varying): Likewise.
1588         (set_lattice_value): Make sure to not go up the lattice
1589         with bitwise constant values.
1590         (get_value_for_expr): Handle ADDR_EXPRs.
1591         (value_to_double_int): New function.
1592         (get_value_from_alignment): Likewise.
1593         (do_dbg_cnt): Adjust.
1594         (ccp_lattice_meet): Handle partially constant values.
1595         (bit_value_unop_1): New function.
1596         (bit_value_binop_1): Likewise.
1597         (bit_value_unop): Likewise.
1598         (bit_value_binop): Likewise.
1599         (evaluate_stmt): Track partially constant values if
1600         flag_tree_bit_ccp is set.
1601         (ccp_fold_stmt): Dump if we folded a predicate.
1602         (ccp_visit_stmt): Adjust.
1603         * common.opt (ftree-bit-ccp): New flag.
1604         * doc/invoke.texi (ftree-bit-ccp): Document.
1605         * opts.c (decode_options): Enable bit-CCP at -O1.
1606
1607 2010-08-06  Alan Modra  <amodra@gmail.com>
1608
1609         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
1610         and -mrelocatable-lib description.
1611
1612 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
1613
1614         From Martin Thuresson  <martint@google.com>
1615         * postreload.c (reload_cse_simplify_operands): Use
1616         SET_REGNO_RAW instead of SET_REGNO.
1617         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
1618         SET_REGNO.
1619         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
1620         instead of SET_REGNO.
1621         * rtl.h (SET_REGNO_RAW): New macro.
1622
1623 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
1624
1625         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
1626         computations.  Fix formatting issues.
1627         (num_sign_bit_copies1): Likewise.
1628         (canonicalize_condition): Likewise.
1629
1630 2010-08-05  Richard Henderson  <rth@redhat.com>
1631
1632         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
1633         (floor_log2): Use clz_hwi.
1634         (exact_log2): Use ctz_hwi.
1635         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
1636         * builtins.c (fold_builtin_bitop): Use them.
1637         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1638         * combine.c (get_pos_from_mask): Use ctz_hwi.
1639         * double-int.c (double_int_ctz): Likewise.
1640         * explow.c (force_reg): Likewise.
1641         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
1642
1643 2010-08-05  Richard Henderson  <rth@redhat.com>
1644
1645         PR target/45189
1646         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
1647         the alignment constant is properly sign-extended.
1648
1649 2010-08-05  Richard Guenther  <rguenther@suse.de>
1650
1651         * expr.c (store_expr): Use emit_block_move only if both
1652         source and target are MEMs.  Use store_bit_field if only
1653         the target is a MEM.
1654
1655 2010-08-05  Richard Henderson  <rth@redhat.com>
1656
1657         PR debug/45188
1658         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
1659         (INCOMING_RETURN_ADDR_RTX): Likewise.
1660         (dwarf2out_do_frame): Remove conditional compilation.
1661         (dwarf2out_frame_init): Likewise.
1662
1663 2010-08-05  Nicolas Setton  <setton@adacore.com>
1664
1665         * gcov.c (flag_display_progress): New static variable.
1666         (main): Display progress info on standard output if requested.
1667         (options): Add -d/--display-progress.
1668         (print_usage): Print them.
1669         (process_args): Handle them.
1670         * doc/gcov.texi: Document them.
1671
1672 2010-08-05  Martin Jambor  <mjambor@suse.cz>
1673
1674         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
1675         (ipcp_insert_stage): Redirect only edges not flagged with
1676         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
1677         discovered constants.
1678
1679 2010-08-05  Martin Jambor  <mjambor@suse.cz>
1680
1681         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
1682         (struct ipa_param_descriptor): New fields types and
1683         cannot_devirtualize.
1684         (ipa_param_cannot_devirtualize_p): New function.
1685         (ipa_param_types_vec_empty): Likewise.
1686         (ipa_make_edge_direct_to_target): Declare.
1687         * ipa-cp.c: Fixed first stage driver name in initial comment,
1688         described devirtualization there too.
1689         (ipcp_analyze_node): Call ipa_analyze_params_uses.
1690         (ipcp_print_all_lattices): Print devirtualization info.
1691         (ipa_set_param_cannot_devirtualize): New function.
1692         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
1693         lattice to BOTTOM.
1694         (ipcp_init_stage): Merged into...
1695         (ipcp_generate_summary): ...its caller.
1696         (ipcp_change_tops_to_bottom): Also process type lists.
1697         (ipcp_add_param_type): New function.
1698         (ipcp_copy_types): Likewise.
1699         (ipcp_propagate_types): Likewise.
1700         (ipcp_propagate_stage): Also propagate types.
1701         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
1702         Also return true if propagated types require it.
1703         (ipcp_update_callgraph): Dump redirection info.
1704         (ipcp_process_devirtualization_opportunities): New function.
1705         (ipcp_const_param_count): Include known type information.
1706         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
1707         on new node.  Fixed formatting.
1708         * ipa-prop.c (make_edge_direct_to_target): Renamed to
1709         ipa_make_edge_direct_to_target and changed all callers.  Made
1710         externally visible.
1711         (ipa_node_duplication_hook): Duplicate types vector.
1712         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
1713         redirect outgoing calls for which we can't get a decl from the
1714         statement.  Check that we can get a decl from the call statement.
1715         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
1716         ipa_analyze_params_uses only when ipa-cp is disabled.
1717         * tree-inline.c (get_indirect_callee_fndecl): Removed.
1718         (expand_call_inline): Do not call get_indirect_callee_fndecl.
1719         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
1720         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
1721
1722 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
1723
1724         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
1725         temporary. Emit move from temporary to accum, so REG_EQUAL note will
1726         be attached to this insn in correct mode.
1727
1728 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
1729
1730         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
1731         using REGNO of base_reg directly.
1732
1733 2010-08-05  Jie Zhang  <jie@codesourcery.com>
1734
1735         PR tree-optimization/45144
1736         * tree-sra.c (type_consists_of_records_p): Return false
1737         if the record contains bit-field.
1738
1739 2010-08-04  Richard Henderson  <rth@redhat.com>
1740
1741         * config/i386/i386.c (struct ix86_frame): Remove padding and
1742         to_allocate members.
1743         (ix86_compute_frame_layout): Don't store them.
1744         (ix86_can_use_return_insn_p): Use a more direct and more obviously
1745         correct condition for the position of the stack pointer.
1746         (ix86_expand_prologue): Compute remaining stack allocation based
1747         on the ultimate stack pointer offset.
1748         (ix86_expand_epilogue): Use more obvious expressions testing for
1749         the stack pointer already pointing to the saved registers.
1750
1751         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
1752         duplication deconstructing the frame pointer.  Simplify
1753         deallocation of the local stack frame.
1754
1755         * reg-notes.def (CFA_EXPRESSION): New.
1756         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
1757         (dwarf2out_frame_debug_cfa_expression): New.
1758         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
1759
1760         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
1761         * config/i386/i386.c (ix86_expand_prologue): Set it.
1762         (ix86_expand_epilogue): Clear it.
1763         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
1764         context, add REG_CFA_EXPRESSION notes.
1765
1766         * config/i386/i386.h (struct machine_frame_state): Rename from
1767         machine_cfa_state.  Add members tracking SP and FP regardless
1768         of the current CFA register.
1769         (ix86_cfa_state): Remove.
1770         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
1771         and sse_reg_save_offset members.
1772         (ix86_compute_frame_layout): Set them.
1773         (gen_push): Increment sp_offset too.
1774         (choose_baseaddr_len, choose_baseaddr): New.
1775         (ix86_emit_save_reg_using_mov): New.
1776         (ix86_emit_save_regs_using_mov): Use it.
1777         (ix86_emit_save_sse_regs_using_mov): Likewise.
1778         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
1779         compare vs the saved red_zone_offset.
1780         (pro_epilogue_adjust_stack): Adjust sp_offset.
1781         (ix86_adjust_stack_and_probe): Likewise.
1782         (ix86_expand_prologue): Set up, use, and validate the new
1783         frame_state_info members.  Use gen_frame_mem.
1784         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
1785         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
1786         new frame_state_info members.
1787         (ix86_emit_leave): Likewise.
1788         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
1789         out-of-range stack pointer offsets here.
1790         (ix86_emit_restore_sse_regs_using_mov): Likewise.
1791         (ix86_expand_epilogue): Use and validate the new frame_state_info
1792         members.  Break up and simplify the logic selecting the
1793         restore_regs_via_mov code path.  Ensure that there will be no
1794         out-of-range stack pointer offsets.
1795
1796         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
1797
1798         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
1799         argument name to reflect the expected tree; fix indentation.
1800         (ix86_asm_output_function_label): Output the entire 32-bit
1801         ms_hook here as bytes ...
1802         (ix86_expand_prologue): ... not here as insns.  Attach the
1803         unwind info for the ms_hook to a blockage insn.
1804         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
1805         (ix86_ms_bitfield_layout_p): Fix indentation.
1806         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
1807
1808         * config/i386/i386.c (ix86_using_red_zone): New.
1809         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
1810         ix86_expand_prologue, ix86_force_to_memory): Use it.
1811
1812         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
1813         saving the int registers.
1814
1815         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
1816         and DWARF2_UNWIND_INFO conditional compilation.
1817
1818 2010-08-04  Richard Henderson  <rth@redhat.com>
1819
1820         PR debug/45171
1821         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
1822         an is_naming_typedef_decl.
1823
1824 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
1825
1826         PR rtl-optimization/45162
1827         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
1828         * dce.c (word_dce_process_block): Likewise.
1829
1830 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
1831
1832         PR target/44583
1833         * config/ia64/constraints.md (Z): New.
1834         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
1835         (xfreg_or_signed_fp01_operand): New.
1836         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
1837         with fr_reg_or_signed_fp01_operand and constraint G with Z.
1838         (subsf3): Ditto.
1839         (*maddsf4): Ditto.
1840         (*msubsf4): Ditto.
1841         (adddf3): Ditto.
1842         (adddf3_trunc): Ditto.
1843         (subdf3): Ditto.
1844         (*subdf3_trunc): Ditto.
1845         (*madddf4): Ditto.
1846         (*madddf4_trunc): Ditto.
1847         (*msubdf4): Ditto.
1848         (*msubdf4_trunc): Ditto.
1849         (addxf3): Replace xfreg_or_fp01_operand with
1850         xfreg_or_signed_fp01_operand and constraint G with Z.
1851         (*addxf3_truncsf): Ditto.
1852         (*addxf3_truncdf): Ditto.
1853         (subxf3): Ditto.
1854         (*subxf3_truncsf): Ditto.
1855         (*subxf3_truncdf): Ditto.
1856         (*maddxf4): Ditto.
1857         (*maddxf4_truncsf): Ditto.
1858         (*maddxf4_truncdf): Ditto.
1859         (*msubxf4): Ditto.
1860         (*msubxf4_truncsf): Ditto.
1861         (*msubxf4_truncdf): Ditto.
1862
1863 2010-08-04  Richard Guenther  <rguenther@suse.de>
1864
1865         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
1866         if either alias-set is zero.
1867
1868 2010-08-04  Richard Guenther  <rguenther@suse.de>
1869
1870         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
1871         * tree-ssa-ccp.c: ... here.
1872         * tree-ssa-copy.c: ... and here.
1873         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
1874         value_range_t): Move ...
1875         * tree-vrp.c: ... here.
1876         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
1877         (substitute_and_fold): Adjust prototype.
1878         * tree-ssa-propagate.c (replace_uses_in): Adjust.
1879         (replace_phi_args_in): Likewise.
1880         (substitute_and_fold): Take callback to query lattice instead
1881         of pointer to lattice.  Replace SSA name defs with lattice
1882         values first.
1883         * tree-ssa-ccp.c (ccp_finalize): Adjust.
1884         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
1885         (get_value): New function.
1886         (fini_copy_prop): Adjust.
1887         * tree-vrp.c (vrp_finalize): Adjust.
1888
1889 2010-08-04  Richard Guenther  <rguenther@suse.de>
1890
1891         PR middle-end/45176
1892         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
1893         points-to set for original MEM_REF.
1894
1895 2010-08-04  Richard Guenther  <rguenther@suse.de>
1896
1897         * tree-ssa-ccp.c (get_constant_value): New function.
1898         (get_rhs_assign_op_for_ccp): Remove.
1899         (valueize_op): New function.
1900         (ccp_fold): Use get_constant_value and valueize_op.
1901         (fold_const_aggregate_ref): Likewise.
1902         (ccp_fold_stmt): Likewise.
1903         (visit_assignment): Simplify.
1904
1905 2010-08-04  Richard Guenther  <rguenther@suse.de>
1906
1907         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
1908         * double-int.h (double_int_ctz): Declare.
1909         * double-int.c (double_int_ctz): New function.
1910
1911 2010-08-04  Hariharan Sandanagobalane <hariharan@picochip.com>
1912
1913         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
1914         Define.
1915         picochip_expand_movmemhi : Expand movmem pattern.
1916         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
1917         Declare.
1918         * config/picochip/picochip.md (movmemhi) : New pattern.
1919
1920 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
1921
1922         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
1923
1924 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
1925
1926         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
1927         NEG as operand of a MULT by merging it with the other operand.
1928         * combine.c (make_compound_operation): Use trunc_int_for_mode when
1929         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
1930         MULT.
1931         * config/arm/constraints.md (M): Examine only 32 bits of a
1932         HOST_WIDE_INT.
1933         * config/arm/predicates.md (power_of_two_operand): Likewise.
1934
1935 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1936
1937         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
1938         non-NOTE insns.
1939
1940 2010-08-03  Jan Hubicka  <jh@suse.cz>
1941
1942         * ipa-split.c (struct split_point): Add split_part_set_retval.
1943         (find_retval): Forward declare.
1944         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
1945         (consider_split): Compute current->split_part_set_retval.
1946         (visit_bb): Do not look into return value.
1947         (split_function): Handle !split_part_set_retval
1948
1949 2010-08-03  Martin Jambor  <mjambor@suse.cz>
1950
1951         * tree-sra.c (completely_scalarize_record): New parameter REF, create
1952         its own access->expr intead of using build_ref_for_offset.
1953
1954 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
1955
1956         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
1957         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
1958         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
1959         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
1960         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
1961         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
1962         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
1963         DEFAULT_SWITCH_TAKES_ARG.
1964         * config/rx/rx.opt (-patch=): Remove option.
1965         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
1966         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
1967         * doc/invoke.texi (RX Options): Remove -patch=.
1968         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
1969         (option_map): Remove --profile-blocks, --quiet and --silent.
1970
1971 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
1972
1973         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
1974         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
1975         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
1976         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
1977         Update calls to ix86_expand_compare and ix86_expand_branch.
1978         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
1979         ix86_expand_compare.
1980         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
1981         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
1982         Make static.
1983         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
1984         and ix86_compare_op1.  Update calls to ix86_expand_compare.
1985         (ix86_expand_int_movcc): Ditto.
1986         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
1987         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
1988         (ix86_expand_setcc): Ditto.
1989         (ix86_expand_compare): Remove prototype.
1990         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
1991         ix86_compare_op0 and ix86_compare_op1.  Update calls
1992         to ix86_expand_branch to directly pass operands[1] and operands[2].
1993         (cbranchxf4): Ditto.
1994         (cbranch<MODEF:mode>4): Ditto.
1995         (cbranchcc4): Ditto.
1996         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
1997         Update calls to ix86_expand_setcc to directly pass operands[2] and
1998         operands[3].
1999         (cstorexf4): Ditto.
2000         (cstore<MODEF:mode>4): Ditto.
2001         (cstorecc4): Ditto.
2002
2003 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
2004
2005         PR target/45063
2006         * caller-save.c (save_call_clobbered_regs): Remove regs from
2007         hard_regs_saved when they are set.
2008
2009 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
2010
2011         PR target/41089
2012         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
2013         as volatile.
2014
2015 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
2016
2017         * common.opt (ftree-loop-distribute-patterns): New.
2018         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
2019         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
2020         at -O3.
2021         * tree-data-ref.c (stores_zero_from_loop): New.
2022         * tree-data-ref.h (stores_zero_from_loop): Declared.
2023         * tree-loop-distribution.c (tree_loop_distribution): Call
2024         stores_zero_from_loop.
2025         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
2026
2027 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
2028
2029         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
2030         into account.
2031
2032         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
2033         * config/arm/arm.c (thumb1_code): New variable.
2034         (arm_override_options): Set it.
2035         (thumb1_final_prescan_insn): Keep track of condition code status.
2036         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
2037         jumps that depend on them.
2038         * config/arm/arm.h (thumb1_code): Declare variable.
2039         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
2040         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
2041         thumb1_cc_mode.
2042         (CC_STATUS_INIT): New macro.
2043         * config/arm/constraints.md (Pd): New constraint.
2044         * config/arm/predicates.md (noov_comparison_operator): New predicate.
2045         * config/arm/arm.md (is_thumb1): New define_attr.
2046         (conds): Set default to "clob" when generating Thumb1 code.
2047         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
2048         code are set.  Use two-operand assembly syntax.
2049         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
2050         pattern.
2051         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
2052         codes are set.  Use two-operand assembly syntax.
2053         (zero_extendhisi splitter): Remove constraints.
2054         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
2055         thumb1_movsf_insn): Set conds attribute as appropriate.
2056         (cbranchsi4_insn): Use condition code status from struct
2057         machine_function to determine whether the comparison can be eliminated.
2058         Discourage the alternative using high registers.
2059         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
2060         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
2061         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
2062         subsi3_cbranch): Delete.
2063         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
2064         one subtract and one cbranch insn.
2065
2066         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
2067         thumb2_movdf_soft_insn): Delete patterns.
2068         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
2069         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
2070         (pool_range, neg_pool_range): Use them to define defaults.
2071         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
2072         and allow for TARGET_32BIT.
2073
2074         PR target/40457
2075         * config/arm/arm.h (arm_regs_in_sequence): Declare.
2076         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
2077         load_multiple_sequence, store_multiple_sequence): Delete
2078         declarations.
2079         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
2080         declarations.
2081         * config/arm/ldmstm.md: New file.
2082         * config/arm/arm.c (arm_regs_in_sequence): New array.
2083         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
2084         CHECK_REGS.  All callers changed.
2085         If SAVED_ORDER is nonnull, copy the computed order into it.
2086         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
2087         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
2088         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
2089         If SAVED_ORDER is nonnull, copy the computed order into it.
2090         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
2091         like REGS.  Handle Thumb mode.
2092         (arm_gen_load_multiple_1): New function, broken out of
2093         arm_gen_load_multiple.
2094         (arm_gen_store_multiple_1): New function, broken out of
2095         arm_gen_store_multiple.
2096         (arm_gen_multiple_op): New function, with code from
2097         arm_gen_load_multiple and arm_gen_store_multiple moved here.
2098         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
2099         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
2100         changed.
2101         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
2102         * config/arm/predicates.md (commutative_binary_operator): New.
2103         (load_multiple_operation, store_multiple_operation): Handle more
2104         variants of these patterns with different starting offsets.  Handle
2105         Thumb-1.
2106         * config/arm/arm.md: Include "ldmstm.md".
2107         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
2108         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
2109         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
2110         peepholes): Delete.
2111         * config/arm/ldmstm.md: New file.
2112         * config/arm/arm-ldmstm.ml: New file.
2113
2114         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
2115         if statement which adds extra costs to frame-related expressions.
2116
2117 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2118
2119         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
2120
2121 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
2122
2123         PR target/45142
2124         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
2125         alternative 2.
2126         (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
2127         split V4SI operands.
2128
2129 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
2130
2131         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
2132         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
2133         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
2134         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
2135
2136 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
2137
2138         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
2139         LOCAL_INCLUDE_DIR.
2140
2141 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
2142
2143         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
2144         used in the call to optab_for_tree_code.  Fix the second
2145         is_widening_mult_p call.  Check that both unwidened operands
2146         have the same sign.
2147
2148 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
2149
2150         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
2151
2152 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
2153
2154         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
2155
2156 2010-07-30  DJ Delorie  <dj@redhat.com>
2157
2158         * config/rx/predicates.md (rx_constshift_operand): New.
2159         * config/rx/rx.md (zs_cond): New.
2160         (cbranchsi4): Remove mode.
2161         (*cbranchsi4_<code>): Likewise.
2162         (*tstbranchsi4_<code>): New.
2163         (*tstbranchsi4r_<code>): New.
2164         (*tstbranchsi4m_eq): New.
2165         (*tstbranchsi4m_ne): New.
2166         (cbranchsf4): Remove mode.
2167         (*cbranchsf4_<code>): Likewise.
2168
2169 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
2170
2171         * rtlanal.c (simplify_subreg_regno): Don't treat
2172         HARD_FRAME_POINTER_REGNUM specially.
2173
2174 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
2175
2176         * common.opt (-G): Don't define option here.
2177         * config/g.opt: New.
2178         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
2179         rs6000/powerpc and score targets.
2180         * opts.c (common_handle_option): Don't handle -G here.
2181         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
2182         * config/frv/frv.c (frv_handle_option): Handle -G.
2183         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
2184         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
2185         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
2186         * config/mips/mips.c (mips_handle_option): Handle -G.
2187         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
2188         * config/score/score.c (score_handle_option): Handle -G.
2189
2190 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
2191
2192         * config/mmix/mmix.c: Include basic-block.h.
2193
2194 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
2195
2196         PR debug/45055
2197         PR rtl-optimization/45137
2198         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
2199         prototypes.
2200         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
2201         New functions.
2202         * combine.c (next_nonnote_nondebug_insn): Removed.
2203         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
2204         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
2205         * sched-deps.c (sched_analyze_insn): Likewise.
2206         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
2207         * rtlanal.c (canonicalize_condition): Likewise.
2208         * postreload.c (reload_combine_recognize_pattern): Likewise.
2209         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
2210
2211 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
2212
2213         * config/i386/i386.md (int_cond): Remove code iterator.
2214         (fp_cond): Ditto.
2215         (cbranch<mode>4): Use ordered_comparison_operator predicate
2216         for operator0.
2217         (cstore<mode>4): Ditto for operator1.
2218         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
2219         (add<mode>cc): ditto.
2220
2221 2010-07-30  Richard Guenther  <rguenther@suse.de>
2222
2223         PR middle-end/45141
2224         * expr.c (expand_expr_real_1): Check for not handled base address.
2225
2226 2010-07-30  Richard Guenther  <rguenther@suse.de>
2227
2228         * ipa-prop.c (ipa_modify_formal_parameters): Use
2229         build_distinct_type_copy.
2230
2231 2010-07-30  Anthony Green  <green@moxielogic.com>
2232
2233         * config/moxie/rtems.h: New file.
2234         * config.gcc: Add moxie-rtems support.
2235
2236 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
2237
2238         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
2239         df flags as in run_fast_df_dce.
2240
2241 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
2242
2243         Revert:
2244         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
2245
2246         * rtl.def (NOTE): Swap operands 4 and 5.
2247         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
2248         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
2249         Adjust accordingly.
2250         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
2251
2252 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
2253
2254         PR debug/45110
2255         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
2256         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
2257         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
2258         formal parameters.
2259         (gen_decl_die): Change return type to dw_die_ref, return what
2260         gen_formal_parameter_die returned.
2261
2262 2010-07-29  Martin Jambor  <mjambor@suse.cz>
2263
2264         * dbgcnt.def (eipa_sra): New counter.
2265         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
2266
2267 2010-07-29  Xinliang David Li  <davidxl@google.com>
2268
2269         PR bootstrap/45119
2270         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
2271         in revision 162652.
2272
2273 2010-07-29  Richard Guenther  <rguenther@suse.de>
2274
2275         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
2276         (TV_TREE_STORE_CCP): Likewise.
2277         (TV_TREE_REDPHI): Likewise.
2278
2279 2010-07-29  Richard Guenther  <rguenther@suse.de>
2280
2281         * double-int.h (double_int_and_not): New function.
2282         * combine.c (try_combine): Use it.
2283         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
2284
2285 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
2286
2287         PR rtl-optimization/42575
2288         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
2289         Argument AU removed.  All callers changed.  Ignore artificial refs.
2290         Use return value of df_word_lr_simulate_defs to decide whether an insn
2291         is necessary.
2292         (fast_dce): Rename arg to WORD_LEVEL.
2293         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
2294         static.
2295         (pass_fast_rtl_byte_dce): Delete.
2296         * dce.h (run_word_dce): Declare.
2297         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
2298         All callers changed.  Simplify code to only deal with two-word regs.
2299         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
2300         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
2301         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
2302         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
2303         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
2304         (df_word_lr_mark_ref): Declare.
2305         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
2306         df_word_lr_simulate_uses): Declare or rename from byte variants.
2307         (df_byte_lr_simulate_artificial_refs_at_top,
2308         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
2309         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
2310         declarations.
2311         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
2312         (enum df_mm): Delete.
2313         * df-byte-scan.c: Delete file.
2314         * df-problems.c (df_word_lr_problem_data): Renamed from
2315         df_byte_lr_problem_data, all members deleted except for
2316         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
2317         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
2318         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
2319         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
2320         df_byte_lr_confluence_0): Delete functions.
2321         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
2322         callers changed.
2323         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
2324         Don't initialize members that were deleted, don't try to discover data
2325         about registers.  Ignore hard regs.
2326         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
2327         (df_word_lr_mark_ref): New function.
2328         (df_word_lr_bb_local_compute): Renamed from
2329         df_byte_bb_lr_local_compute; all callers changed.  Use
2330         df_word_lr_mark_ref.  Assert that artificial refs don't include
2331         pseudos.  Ignore hard registers.
2332         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
2333         Assert that exit block uses don't contain pseudos.
2334         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
2335         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
2336         callers changed.  Ignore hard regs.
2337         (df_word_lr_transfer_function): Renamed from
2338         df_byte_lr_transfer_function; all callers changed.
2339         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
2340         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
2341         changed.
2342         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
2343         callers changed.
2344         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
2345         confluence operator 0 set to NULL.
2346         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
2347         callers changed.
2348         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
2349         Return bool, true if bitmap changed or insn otherwise necessary.
2350         All callers changed.  Simplify using df_word_lr_mark_ref.
2351         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
2352         all callers changed.  Simplify using df_word_lr_mark_ref.
2353         * lower-subreg.c: Include "dce.h"
2354         (decompose_multiword_subregs): Call run_word_dce if df available.
2355         * Makefile.in (lower-subreg.o): Adjust dependencies.
2356         (df-byte-scan.o): Delete.
2357         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
2358
2359 2010-07-29  Richard Guenther  <rguenther@suse.de>
2360
2361         * tree.c (build_vector): Assert that the vector constant
2362         has enough elements.
2363         (build_vector_from_ctor): Pad with trailing zeros.
2364
2365 2010-07-29  Richard Guenther  <rguenther@suse.de>
2366
2367         PR tree-optimization/45120
2368         * tree-ssa-structalias.c (get_constraint_for_component_ref):
2369         Handle offset in DEREFs properly.
2370         (get_constraint_for_1): Handle MEM_REF offset properly.
2371
2372 2010-07-29  Richard Guenther  <rguenther@suse.de>
2373
2374         PR middle-end/45034
2375         * convert.c (convert_to_integer): Always use an unsigned
2376         type for narrowed negate and bitwise not.
2377
2378 2010-07-29  Ira Rosen  <irar@il.ibm.com>
2379
2380         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
2381         to outer loop when creating reduction epilogue for double reduction,
2382         and switch back to the inner loop when updating the phi nodes.
2383         Update uses of outer loop exit phi nodes in double reduction (instead
2384         of uses of reduction).
2385
2386 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
2387
2388         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
2389         popcount on power7 and parity on power6 systems.
2390         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
2391         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
2392         instructions.
2393
2394         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
2395         (UNSPEC_PARITY): Ditto.
2396         (SFDF): New iterator for SF/DF.
2397         (rreg2): New mode attribute for floating register constraint.
2398         (TARGET_FLOAT): New mode attribute for whether single/double float
2399         is supported.
2400         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
2401         pattern.
2402         (parity<mode>2_cmpb): New insn for parity on power6 and newer
2403         machines.
2404         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
2405         pattern.  Add support for fcpsgn instruction added in power6.
2406         (copysignsf3): Delete.
2407         (copysigndf3): Delete.
2408         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
2409         instead of if_then_else in RTL to avoid problems with -0.
2410
2411         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
2412         of if_then_else to mirror scalar code.
2413         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
2414         rs6000.md.
2415
2416         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
2417         instead of if_then_else.
2418
2419 2010-07-28  Xinliang David Li  <davidxl@google.com>
2420
2421         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
2422         (dump_cand): Dump var_before/after.
2423         (htab_inv_expr_eq): New function.
2424         (htab_inv_expr_hash): New function.
2425         (tree_ssa_iv_optimize_init): Support pseudo invariants.
2426         (add_candidate_1): consider base type precision.
2427         (set_use_iv_cost): New parameter.
2428         (adjust_setup_cost): Use profile information.
2429         (get_address_cost): Do not hard code width in computing address
2430         offset limits.
2431         (compare_aff_trees): New function.
2432         (get_loop_invariant_expr_id): New function.
2433         (get_computation_cost_at): New parameter and use profile information.
2434         (get_computation_cost): New parameter.
2435         (determine_use_iv_cost_generic): Pass new parameter.
2436         (determine_use_iv_cost_address): Ditto.
2437         (determine_use_iv_cost_condition): Ditto.
2438         (autoinc_possible_for_pair): Ditto.
2439         (determine_use_iv_costs): More dumps.
2440         (iv_ca_get_num_inv_exprs): New function.
2441         (iv_ca_recount_cost): Consider loop invariants in register pressure
2442         cost.
2443         (iv_ca_add_use): New parameter.
2444         (iv_ca_dump): Better dumping.
2445         (iv_ca_extend): New parameter.
2446         (try_add_cand_for): Attempt to get better partial solution.
2447         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
2448         (create_new-ivs): More dumps.
2449         (rewrite_use_compare): Ditto.
2450         (free_loop_data): More cleanup.
2451         (treee_ssa_iv_optimize_finalize): Ditto.
2452
2453 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
2454
2455         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
2456         * config/i386/i386.c (ix86_profile_before_prologue): New.
2457         (override_options): Add special handling for -mfentry.
2458         (ix86_function_regparm): Likewise.
2459         (ix86_function_sseregparm): Likewise.
2460         (ix86_frame_pointer_required): Likewise.
2461         (ix86_expand_prologue): Check for ms_hook_prologue.
2462         (x86_function_profiler): Adjust mcount output.
2463         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
2464         * config/i386/i386.opt (mfentry): New.
2465         * doc/invoke.texi (mfentry): Add documentation.
2466         * doc/tm.texi: Regenerated..
2467         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
2468         * final.c (final_start_function): Replace macro
2469         PROFILE_BEFORE_PROLOGUE by target hook.
2470         * function.c (thread_prologue_and_epilogue_insns): Likewise.
2471         * target.def (profile_before_prologue): New hook.
2472         * targhooks.c (default_profile_before_prologue): New.
2473         * targhooks.h (default_profile_before_prologue): New.
2474
2475 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
2476
2477         PR debug/45105
2478         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
2479
2480         PR debug/45103
2481         * dwarf2out.c (dwarf2out_var_location): Always consider
2482         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
2483
2484 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
2485
2486         PR rtl-optimization/45107
2487         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
2488
2489 2010-07-28  Richard Guenther  <rguenther@suse.de>
2490
2491         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
2492         (set_lattice_value): Do not query an old default value.
2493         (get_value_for_expr): New function.  Properly canonicalize
2494         float values.
2495         (ccp_visit_phi_node): Use it.
2496
2497 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
2498
2499         * config/arm/arm.c (arm_pcs_default): Remove static.
2500         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
2501         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
2502         (arm_pcs_default): Declare.
2503
2504 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
2505
2506         * config/rs6000/rs6000.c (rs6000_override_options):
2507         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
2508         ... to darwin_rs6000_override_options.
2509         (rs6000_return_in_memory): Update preceding comment for darwin
2510         64 bit ABI.  Use TARGET_MACHO inline.
2511         (rs6000_darwin64_struct_check_p): New.
2512         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
2513         (function_arg): Likewise.
2514         (rs6000_arg_partial_bytes): Likewise.
2515         (rs6000_function_value): Likewise.
2516
2517 2010-07-28  Andi Kleen <ak@linux.intel.com>
2518
2519         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
2520
2521 2010-07-28  Richard Guenther  <rguenther@suse.de>
2522
2523         PR middle-end/44903
2524         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
2525         targets try harder to not generate unaligned accesses.
2526
2527 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
2528
2529         PR rtl-optimization/45101
2530         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
2531         for gcse-las.
2532
2533 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
2534
2535         PR tree-optimization/44885
2536         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
2537         with non-aliased component.
2538
2539 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
2540
2541         * config/darwin-driver.c (SWITCH_TAKES_ARG,
2542         WORD_SWITCH_TAKES_ARG): Remove.
2543         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
2544         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
2545         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
2546         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
2547         definitions from gcc.c.
2548         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
2549         defaults.h.
2550         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
2551         Move to defaults.h.
2552         * opts-common.c: Include tm.h.
2553         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
2554         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
2555         Handle more than one argument.  Set canonical_option_num_elements.
2556         (decode_cmdline_options_to_array): Set
2557         canonical_option_num_elements and trailing elements of
2558         canonical_option.
2559         * opts.h (struct cl_decoded_option): Allow four elements in
2560         canonical_option.  Add field canonical_option_num_elements.
2561         * Makefile.in (opts-common.o): Update dependencies.
2562
2563 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
2564
2565         PR middle-end/44790
2566         PR middle-end/44993
2567         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
2568         sure the base has address_mode before adding the offset.
2569
2570 2010-07-27  Xinliang David Li <davidxl@google.com>
2571
2572         * tree-flow.h (create_mem_ref): Add one new parameter.
2573         * tree-ssa-address.c (create_mem_ref): New parameter.
2574         (addr_to_parts): Ditto.
2575         (move_variant_to_index): New function.
2576         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
2577
2578 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
2579
2580         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
2581         4 and 5.
2582         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
2583         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
2584         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
2585         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
2586         CODE_LABELs and NOTEs.
2587         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
2588         * combine.c (try_combine): Likewise.
2589         * ira.c (setup_prohibited_mode_move_regs): Likewise.
2590         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
2591
2592 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
2593
2594         * coretypes.h (struct cl_option_handlers): Declare.
2595         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
2596         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
2597         * langhooks-def.h (lhd_handle_option): Declare.
2598         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
2599         * langhooks.c (lhd_handle_option): New.
2600         * langhooks.h (struct lang_hooks): Update prototype and return
2601         value type of handle_option hook.
2602         * optc-gen.awk: Generate target_flags_explicit definition for the
2603         driver.
2604         * opts-common.c: Include diagnostic.h.
2605         (handle_option): Move from opts.c.  Update prototype and return
2606         value type.  Use handlers structure.
2607         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
2608         handlers structure.
2609         (set_option): Move from opts.c.
2610         * opts.c (common_handle_option): Update prototype and return value
2611         type.  Update calls to handle_option and enable_warning_as_error.
2612         (unknown_option_callback, post_handling_callback,
2613         lang_handle_option, target_handle_option): New.
2614         (handle_option, read_cmdline_option): Move to opts-common.c.
2615         (read_cmdline_options): Update prototype.  Update call to
2616         read_cmdline_option.
2617         (decode_options): Initialize and use handlers structure.
2618         (set_option): Move to opts-common.c.
2619         (enable_warning_as_error): Update prototype.  Update call to
2620         handle_option.
2621         * opts.h (struct cl_option_handler_func, struct
2622         cl_option_handlers): New.
2623         (handle_option, enable_warning_as_error): Update prototypes.
2624         (read_cmdline_option): Declare.
2625         * Makefile.in (opts-common.o): Update dependencies.
2626
2627 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2628
2629         * config/arm/arm.c (params.h): Include.
2630         (arm_override_options): Tune gcse-unrestricted-cost.
2631         * config/arm/t-arm (arm.o): Define dependencies.
2632
2633 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2634
2635         PR target/42495
2636         PR middle-end/42574
2637         * basic-block.h (get_dominated_to_depth): Declare.
2638         * dominance.c (get_dominated_to_depth): New function, use
2639         get_all_dominated_blocks as a base.
2640         (get_all_dominated_blocks): Use get_dominated_to_depth.
2641
2642         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
2643         (hoist_exprs): Remove.
2644         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
2645         (compute_code_hoist_vbeinout): Add debug print outs.
2646         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
2647
2648         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
2649         quadratic behavior.
2650         * params.h (MAX_HOIST_DEPTH): New macro.
2651         * doc/invoke.texi (max-hoist-depth): Document.
2652
2653 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2654
2655         PR rtl-optimization/40956
2656         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
2657         constants.
2658
2659 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2660
2661         PR target/42495
2662         PR middle-end/42574
2663         * config/arm/arm.c (legitimize_pic_address): Use
2664         gen_calculate_pic_address pattern to emit calculation of PIC address.
2665         (will_be_in_index_register): New function.
2666         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
2667         (thumb1_legitimate_address_p): Use it provided !strict_p.
2668         * config/arm/arm.md (calculate_pic_address): New expand and split.
2669
2670 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2671
2672         PR target/42495
2673         PR middle-end/42574
2674         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
2675         * config/arm/arm.md (define_split "J", define_split "K"): Make
2676         IRA/reload friendly.
2677
2678 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2679
2680         * gcse.c (insert_insn_end_basic_block): Update signature, remove
2681         unused checks.
2682         (pre_edge_insert, hoist_code): Update.
2683
2684 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2685
2686         PR target/42495
2687         PR middle-end/42574
2688         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
2689
2690 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2691
2692         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
2693
2694 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2695
2696         PR rtl-optimization/40956
2697         PR target/42495
2698         PR middle-end/42574
2699         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
2700         for hoisting.
2701         (hoist_code): Count occurences in current block too.
2702
2703 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2704
2705         * gcse.c (struct expr:max_distance): New field.
2706         (doing_code_hoisting_p): New static variable.
2707         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
2708         simple expressions, don't change behavior for PRE.  Set max_distance.
2709         (insert_expr_in_table): Set new max_distance field.
2710         (hash_scan_set): Update.
2711         (hoist_expr_reaches_here_p): Stop search after max_distance
2712         instructions.
2713         (find_occr_in_bb): New static function.  Use it in ...
2714         (hoist_code): Calculate sizes of basic block before any changes are
2715         done.  Pass max_distance to hoist_expr_reaches_here_p.
2716         (one_code_hoisting_pass): Set doing_code_hoisting_p.
2717
2718         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
2719         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
2720         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
2721         macros.
2722         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
2723         Document.
2724
2725 2010-07-27  Jeff Law  <law@redhat.com>
2726             Maxim Kuvyrkov  <maxim@codesourcery.com>
2727
2728         * gcse.c (compute_transpout, transpout): Remove, move logic
2729         to prune_expressions.
2730         (compute_pre_data): Move pruning of trapping expressions ...
2731         (prune_expressions): ... here.  New static function.
2732         (compute_code_hoist_data): Use it.
2733         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
2734
2735 2010-07-27  Xinliang David Li  <davidxl@google.com>
2736
2737         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
2738         (rewrite_use_address): Adjust iv update position when needed.
2739
2740 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2741
2742         * dbgcnt.def (hoist_insn): New debug counter.
2743         * gcse.c (hoist_code): Use it.
2744
2745 2010-07-27  Xinliang David Li  <davidxl@google.com>
2746
2747         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
2748         (niter_for_single_dom_exit): Passes additional parameter.
2749         (iv_period): Fix comments.
2750         (may_eliminate_iv): Handles multiple exit loops properly.
2751         (free_tree_niter_desc): New function.
2752         (free_loop_data): Frees up loop iteration descriptors.
2753
2754 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
2755
2756         PR target/44542
2757         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
2758         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
2759         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
2760         (expand_one_var): Don't consider DECL_ALIGN for variables for
2761         which expand_one_stack_var_at has been already called.
2762
2763         PR testsuite/44701
2764         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
2765         constraints on IA-64.
2766
2767 2010-07-27  Jie Zhang  <jie@codesourcery.com>
2768
2769         PR target/44290
2770         Revert:
2771         2010-07-23  Jie Zhang  <jie@codesourcery.com>
2772
2773         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
2774         false if ! tree_versionable_function_p.
2775
2776 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
2777
2778         * dwarf2out.c (add_data_member_location_attribute): Use
2779         add_AT_unsigned instead of add_AT_int if offset is non-negative.
2780
2781 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
2782
2783         * postreload.c (try_replace_in_use): New static function.
2784         (reload_combine_recognize_const_pattern): Use it here.  Allow
2785         substituting into a final add insn, and substituting into a memory
2786         reference in an insn that sets the reg.
2787
2788 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
2789
2790         * common.opt (o): Add MissingArgError.
2791         * doc/options.texi (MissingArgError): Document.
2792         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
2793         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
2794         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2795         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
2796         * langhooks.h (struct lang_hooks): Remove missing_argument.
2797         * optc-gen.awk: Handle MissingArgError and output new structure
2798         field initializers.
2799         * opts.c (read_cmdline_option): Use missing_argument_error field
2800         instead of missing_argument langhook.
2801         * opts.h (struct cl_option): Add missing_argument_error field.
2802         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
2803
2804 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
2805
2806         PR target/29090
2807         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
2808         Darwin64 ABI, for zero-sized objects.
2809
2810 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
2811
2812         PR target/35491
2813         PR target/29090
2814
2815         Merge from Apple local 4.2.1.
2816         2005-05-11  Stan Shebs  <shebs@apple.com>
2817         Fix 64-bit varargs for Darwin (Radar 4028089).
2818         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
2819         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
2820         Add argument, add case for 8-byte register half-filled with a float.
2821         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
2822         single-precision floats specially.
2823
2824 2010-07-27  Ira Rosen  <irar@il.ibm.com>
2825
2826         PR tree-optimization/44152
2827         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
2828         complex numbers for further check.
2829         (vect_supported_load_permutation_p): Check nodes with
2830         complex numbers.
2831
2832 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
2833
2834         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
2835         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
2836         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
2837         (LANG_HOOKS_INITIALIZER): Add new hooks.
2838         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
2839         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
2840         and complain_wrong_lang_p.  Update init_options prototype.
2841         * c-objc-common.c (c_initialize_diagnostics): First call
2842         c_common_initialize_diagnostics.
2843         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
2844         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
2845         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
2846         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
2847         (hook_uint_void_0): New.
2848         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
2849         (hook_uint_void_0): New.
2850         * opts-common.c (decode_cmdline_option,
2851         decode_cmdline_options_to_array): Also fill in canonical_option field.
2852         * opts.c (complain_wrong_lang): Use langhook to determine whether
2853         to complain instead of special-casing LTO.
2854         (decode_options): Separate lang_mask determination with
2855         option_lang_mask hook from call of init_options hook.
2856         * opts.h (struct cl_decoded_option): Add canonical_option.
2857
2858 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
2859
2860         PR tree-optimization/45083
2861         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
2862
2863 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
2864
2865         * postreload.c (reload_combine_recognize_const_pattern): Move test
2866         for limiting the insn movement to the right scope.
2867
2868         PR rtl-optimization/45051
2869         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
2870         than reg_mentioned_p.
2871
2872 2010-07-26  Richard Henderson  <rth@redhat.com>
2873
2874         PR target/44132
2875         * tree-emutls.c: New file.
2876         * Makefile.in (OBJS-common): Add it.
2877         * tree-pass.h (pass_ipa_lower_emutls): Declare.
2878         * passes.c (init_optimization_passes): Add it.
2879
2880         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
2881         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
2882         * expr.c (emutls_var_address): Delete.
2883         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
2884         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
2885         (emutls_finish): Delete.
2886         * toplev.c (compile_file): Don't call it.
2887         * tree.h (emutls_decl): Delete.
2888         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
2889         (emutls_finish, emutls_finalize_control_var): Delete.
2890         (emutls_object_type): Move to tree-emutls.c.
2891         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
2892         default_emutls_var_fields, get_emutls_object_type,
2893         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
2894         default_emutls_var_init): Likewise.
2895         (get_variable_section): Don't special case emutls.
2896         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
2897         default_elf_select_section, default_unique_section,
2898         default_encode_section_info): Likewise.
2899         * varpool.c (decide_is_variable_needed): Likewise.
2900         * gimple-iterator.c (update_call_edge_frequencies): New
2901         (gsi_insert_on_edge_immediate): Use it.
2902         (gsi_insert_seq_on_edge_immediate): Likewise.
2903         (gsi_commit_one_edge_insert): Likewise.
2904
2905         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
2906         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
2907         (x86_64_elf_unique_section): Likewise.
2908
2909 2010-07-26  Jan Hubicka  <jh@suse.cz>
2910
2911         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
2912         GTY((skip)).
2913
2914 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
2915
2916         * target.def (output_source_filename): New hook.
2917         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
2918         * doc/tm.texi: Regenerate.
2919         * toplev.c (output_file_directive) Remove function.
2920         * toplev.h (output_file_directive) Remove.
2921         * output.h (default_asm_output_source_filename,
2922         output_file_directive): Declare.
2923         * varasm.h (default_asm_output_source_filename,
2924         output_file_directive): New functions.
2925
2926         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
2927         * config/mips/mips-protos.h (mips_output_filename): Remove.
2928         * config/mips/mips.c (mips_output_filename): Make Static.
2929         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
2930
2931 2010-07-26  Richard Guenther  <rguenther@suse.de>
2932
2933         PR tree-optimization/43784
2934         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
2935         if the destination is used by the call.
2936
2937 2010-07-26  Richard Guenther  <rguenther@suse.de>
2938
2939         PR middle-end/45073
2940         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
2941         SSA updating on being in SSA form.
2942
2943 2010-07-26  Richard Guenther  <rguenther@suse.de>
2944
2945         PR middle-end/45056
2946         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
2947
2948 2010-07-26  Richard Guenther  <rguenther@suse.de>
2949
2950         PR tree-optimization/45071
2951         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
2952         adjust op->opcode.
2953
2954 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
2955
2956         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
2957         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
2958         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
2959         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
2960         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
2961         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
2962         save_r31, return_r31, save_interrupt, return_interrupt,
2963         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
2964         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
2965         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
2966         new ABI requirements.
2967         (save_r6_r9, L_callt_save_r6_r9): Remove.
2968         * config/v850/predicates.md (even_reg_operand, disp23_operand,
2969         const_float_1_operand const_float_0_operand): New Predicates.
2970         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
2971         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
2972         * config/v850/t-v850: Update multilibs for new target variants.
2973         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
2974         * config/v850/t-v850e: Likewise.
2975         * config/v850/v850.c (v850_issue_rate): New.
2976         (v850_strict_argument_naming): New.
2977         (function_arg): Modify to generate a different ABI.
2978         (print_operand): Update case 'z' to support float modes.
2979         (output_move_single): Modify to generate appropriate and better
2980         assembly.
2981         (v850_float_z_comparison_operator, v850_select_cc_mode,
2982         v850_float_nz_comparison_operator,  v850_gen_float_compare,
2983         v850_gen_compare): New functions to support comparison of float values.
2984         (ep_memory_offset): Add support for V850E2 targets.
2985         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
2986         (INTERRUPT_REGPARM_NUM): Remove.
2987         (compute_register_save_size): Add extra case to save/restore long call.
2988         (use_prolog_function): New function to support prologue.
2989         (expand_prologue): Add support for V850E2 targets and modified
2990         as per the current ABI requirements.
2991         (expand_epilogue): Likewise.
2992         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
2993         (construct_save_jarl): Likewise.
2994         (construct_dispose_instruction): Update as per the current ABI
2995         requirements.
2996         (construct_prepare_instruction): Likewise.
2997         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
2998         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
2999         (CPP_SPEC): Updated to support v850e2 targets.
3000         (STRICT_ALIGNMENT): Modified.
3001         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
3002         (FIXED_REGISTERS): Likewise.
3003         (CALL_USED_REGISTERS): Likewise.
3004         (CONDITIONAL_REGISTER_USAGE): Updated.
3005         (HARD_REGNO_MODE_OK): Updated.
3006         (reg_class): Updated to add even registers.
3007         (REG_CLASS_NAMES): Likewise.
3008         (REG_CLASS_CONTENTS): Likewise.
3009         (REGNO_REG_CLASS): Updated for CC registers.
3010         (REG_CLASS_FROM_LETTER): Added support for even registers.
3011         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
3012         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
3013         ARG_POINTER_REGNUM): Updated.
3014         (FUNCTION_ARG_ADVANCE): Define.
3015         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
3016         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
3017         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
3018         (GO_IF_LEGITIMATE_ADDRESS): Updated.
3019         (SELECT_CC_MODE): Define.
3020         (REGISTER_NAMES): Updated to add psw and fcc registers.
3021         (ADDITIONAL_REGISTER_NAMES): Updated.
3022         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
3023         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
3024         * config/v850/v850.md (define_constants): Define new constants.
3025         (type): Update store,bit1,macc,div,fpu and single attributes.
3026         (cpu): New attribute.
3027         (cc): Add set_z attribute.
3028         (unsign23byte_load, sign23byte_load, unsign23hword_load,
3029         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
3030         23word_store): New instructions for 23-bit displacement load and store.
3031         (movqi_internal, movhi_internal): Update the attributes.
3032         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
3033         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
3034         the attributes.
3035         (v850_tst1): Modified using CC_REGNUM.
3036         (tstsi): Remove.
3037         (cmpsi): Modified as define_expand from define_insn.
3038         (cmpsi_insn, cmpsf, cmpdf): New instructions.
3039         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
3040         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
3041         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
3042         one_cmplsi2): Clobber the CC_REGNUM register.
3043         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
3044         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
3045         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
3046         (setf_insn, set_z_insn, set_nz_insn): New instructions for
3047         v850e2v3 target.
3048         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
3049         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
3050         targets.
3051         (sasf_1, sasf_2): Remove.
3052         (sasf): New instruction.
3053         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
3054         targets. CC_REGNUM register is clobbered and attributes are
3055         updated.
3056         (branch_z_normal, branch_z_invert, branch_nz_normal,
3057         branch_nz_invert): New branch related instructions.
3058         (jump): Updated the attributes.
3059         (switch): Update to support new targets. CC_REGNUM register is
3060         clobbered and attributes are updated.
3061         (call_internal_short, call_internal_long, call_value_internal_short,
3062         call_value_internal_long): Updated the attributes.
3063         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
3064         clobbered and attributes are updated.
3065         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
3066         Update to support new targets. CC_REGNUM register is clobbered.
3067         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
3068         instructions.
3069         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
3070         are updated.
3071         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
3072         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
3073         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
3074         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
3075         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
3076         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
3077         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
3078         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
3079         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
3080         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
3081         point instructions defined for V850e2v3 target.
3082         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
3083         Add support for V850E2 targets and CC_REGNUM register is clobbered.
3084         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
3085         support for new targets.
3086         * config/v850/v850-modes.def: New file.
3087         * config/v850/v850.opt(mstrict-align): Remove.
3088         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
3089         mv850e2v3): New command line options for V850.
3090         * config.gcc: Update the newly added files.
3091         * doc/invoke.texi: Update the newly added command line options for
3092         V850 target.
3093
3094 2010-07-26  Richard Guenther  <rguenther@suse.de>
3095
3096         PR tree-optimization/45052
3097         * ipa-pure-const.c (check_stmt): Check volatileness.
3098
3099 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
3100
3101         PR target/44707
3102         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
3103         * config/sparc/sparc.c: Include reload.h.
3104         (legitimize_tls_address): Rename into...
3105         (sparc_legitimize_tls_address): ...this.
3106         (legitimize_pic_address): Rename into...
3107         (sparc_legitimize_pic_address): ...this.
3108         (sparc_expand_move): Adjust to above renaming.
3109         (sparc_tls_referenced_p): Likewise.
3110         (sparc_legitimize_tls_address): Likewise.
3111         (sparc_legitimize_pic_address): Likewise.
3112         (sparc_legitimize_address): Likewise.
3113         (sparc_output_mi_thunk): Likewise.
3114         (sparc_legitimize_reload_address): New global function.  Recognize
3115         (lo_sum (high ...) ...) patterns generated by earlier passes.
3116         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
3117
3118 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
3119
3120         PR target/44484
3121         * config/sparc/predicates.md (memory_reg_operand): Delete.
3122         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
3123         (*sync_compare_and_swap): Encode the address form in the pattern.
3124         (*sync_compare_and_swapdi_v8plus): Likewise.
3125
3126 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
3127
3128         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
3129         Streamline paragraph on compatibility with the system compiler.
3130
3131 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
3132
3133         PR middle-end/45035
3134         * alias.c (true_dependence_1): Fix thinko in merge of old
3135         true_dependence and canon_true_dependence.
3136
3137 2010-07-23  Jan Hubicka  <jh@suse.cz>
3138
3139         * lto-streamer-out.c (write_symbol): Fix visibilities of external
3140         references.
3141
3142 2010-07-23  Le-Chun Wu  <lcwu@google.com>
3143
3144         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
3145         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
3146         and an unnecessary assignment.
3147         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
3148         self-assign warning.
3149         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
3150         unnecessary self-init.
3151
3152 2010-07-23  Richard Guenther  <rguenther@suse.de>
3153
3154         PR lto/43071
3155         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
3156         for -flto and -fwhopr.
3157
3158 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
3159
3160         PR target/41943
3161         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
3162         (stmp-int-hdrs): Prefix/postfix headers by include_next.
3163         * config.gcc (user_headers_inc_next_pre): New.
3164         (user_headers_inc_next_post): Likewise.
3165         (*-w64-mingw*): Use for float.h post-fixing, and for
3166         stddef.h/stdarg.h pre-fixing by include_next.
3167         * configure.ac (user_headers_inc_next_post): New.
3168         (user_headers_inc_next_pre): New.
3169         * configure: Regenerated.
3170
3171 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3172
3173         * configure.ac: Don't disable TLS on Solaris 8/9 by default
3174         Set tga_func for Solaris 2/x86 resp. SPARC.
3175         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
3176         (LIB_THREAD_LDFLAGS_SPEC): Define.
3177         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
3178         * configure: Regenerate.
3179         * config.in: Regenerate.
3180         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
3181         -pthread, -threads, LIB_TLS_SPEC with -pthread.
3182         * doc/install.texi (Specific, *-*-solaris2*): Document use of
3183         alternate thread libraries on Solaris 8.
3184         Document TLS patch requirements.
3185         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
3186         Document tls.
3187
3188         PR target/18788
3189         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
3190         -shared.
3191
3192 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
3193
3194         * tree.h (struct tree_base): Add nameless_flag bitfield.
3195         (TYPE_NAMELESS, DECL_NAMELESS): Define.
3196         * omp-low.c (create_omp_child_function, scan_omp_parallel,
3197         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
3198         DECL_ARTIFICIAL where needed.
3199         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
3200         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
3201         has DECL_NAMELESS set.
3202
3203 2010-07-23  Martin Jambor  <mjambor@suse.cz>
3204
3205         PR tree-optimization/44915
3206         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
3207         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
3208         (analyze_function): Likewise.
3209
3210 2010-07-23  Martin Jambor  <mjambor@suse.cz>
3211
3212         PR tree-optimization/44914
3213         * tree-sra.c (sra_modify_function_body): Return true if CFG was
3214         changed, add purging dead eh edges.
3215         (ipa_sra_modify_function_body): Return true if CFG was changed,
3216         simplify purging dead eh edges.
3217         (modify_function): Return true if CFG was changed.
3218         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
3219         was changed.
3220         (ipa_early_sra): Likewise.
3221
3222 2010-07-23  Jie Zhang  <jie@codesourcery.com>
3223
3224         PR target/44290
3225         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
3226         if "naked".
3227         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
3228         false if ! tree_versionable_function_p.
3229
3230 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
3231
3232         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
3233         * ipa-pure-const.c (special_builtlin_state): Remove
3234         BUILT_IN_ARGS_INFO case.
3235         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
3236         * builtins.c (expand_builtin): Likewise.
3237         (expand_builtin_args_info): Remove.
3238         * doc/tm.texi (__builtin_args_info): Remove.
3239         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
3240         * doc/tm.text.in: Likewise.
3241
3242 2010-07-23  Richard Guenther  <rguenther@suse.de>
3243
3244         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
3245         (lto_symtab_merge_decls_2): Likewise.
3246         * tree-ssa.c (useless_type_conversion_p): Likewise.
3247         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3248         * gimple.c (gtc_visited2, gtc_ob2): Remove.
3249         (struct type_pair_d): Make same_p an array indexed by mode.
3250         Update comment.
3251         (lookup_type_pair): Update initialization.
3252         (struct sccs): Adjust same_p type.
3253         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
3254         Adjust.
3255         (print_gimple_types_stats): Likewise.
3256         * gimple.h (enum gtc_mode): New.
3257         (gimple_types_compatible_p): Adjust prototype.
3258
3259 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
3260
3261         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
3262         again after processing insn.
3263
3264 2010-07-23  Jie Zhang  <jie@codesourcery.com>
3265
3266         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
3267         proper words when !tree_versionable_function_p.
3268
3269 2010-07-23  Richard Guenther  <rguenther@suse.de>
3270
3271         PR tree-optimization/45037
3272         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
3273
3274 2010-07-23  Jie Zhang  <jie@codesourcery.com>
3275
3276         * doc/extend.texi: Remove IP2K from the description of naked attribute.
3277         Add MCORE instead.
3278
3279 2010-07-10  Andi Kleen  <ak@linux.intel.com>
3280
3281         PR lto/44992
3282         * lto-opts.c (lto_write_options): Add NULL file_data argument to
3283         lto_get_section_name.
3284         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
3285         * lto-streamer-out.c (produce_asm): Likewise.
3286         (copy_function): Likewise.
3287         (produce_symtab): Likewise.
3288         (produce_asm_for_decls): Likewise.
3289         * lto-streamer.c (lto_get_section_name): Add file_data argument.
3290         Rewrite to add random postfix to LTO sections.
3291         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
3292         (lto_get_section_name): Add file_data argument to prototype.
3293
3294 2010-07-10  Andi Kleen  <ak@linux.intel.com>
3295
3296         * lto-section-in.c (lto_section_name): Synchronize names
3297         with lto_get_section_name.
3298
3299 2010-07-10  Andi Kleen  <ak@linux.intel.com>
3300
3301         * lto-opts.c (lto_read_file_options): Check for missing section.
3302
3303 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
3304
3305         * ira.c (check_allocation): Correctly handle the case where an allocno
3306         with two objects was allocated to a single reg.
3307
3308 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
3309
3310         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
3311         (is_widening_mult_p): Likewise.
3312         (convert_to_widen): Use them.
3313         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
3314         well as integer ones.
3315
3316 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
3317
3318         * alias.c (true_dependence_1): New function, merged version of
3319         true_dependence and canon_true_dependence.
3320         (true_dependence): Simplify.
3321         (canon_true_dependence): Simplify.
3322
3323 2010-07-22  Richard Henderson  <rth@redhat.com>
3324
3325         PR target/45027
3326         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
3327         of V4SFmode for the SSE saves; increase stack alignment if needed.
3328         (ix86_gimplify_va_arg): Don't increase stack alignment here.
3329
3330 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
3331
3332         PR bootstrap/45028
3333         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
3334         call cprop_find_used_regs again via note_uses.
3335
3336 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
3337
3338         * alias.c (get_alias_set): Fix formatting issues.
3339
3340 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
3341
3342         PR middle-end/44878
3343         * stmt.c (expand_value_return):  Call promote_function_mode with
3344         a for_return argument of 2 when returning by reference.
3345
3346 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
3347
3348         PR debug/45024
3349         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
3350         unit DIE if we can find the scope DIE.
3351
3352 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
3353
3354         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
3355         changed.  Initialize OBJECT_SUBWORD.
3356         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
3357         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
3358         all callers changed.
3359         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
3360         (finish_allocno): Likewise.
3361         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
3362         (remove_low_level_allocnos): Likewise.
3363         (update_bad_spill_attribute): Likewise.
3364         (setup_min_max_allocno_live_range_point): Likewise.
3365         (sort_conflict_id_map): Likewise.
3366         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
3367         (ior_hard_reg_conflicts): New function.
3368         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
3369         (compress_conflict_vecs): Iterate over objects, not allocnos.
3370         (ira_add_live_range_to_object): New function.
3371         (object_range_compare_func): Renamed from allocno_range_compare_func.
3372         All callers changed.
3373         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
3374         subobjects, widen the min/max range of the lowest-order object to
3375         potentially include all other such low-order objects.
3376         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
3377         (check_allocation): Likewise.  Use more fine-grained tests for register
3378         conflicts.
3379         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
3380         allocno subobjects.
3381         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
3382         choices about which bits to set in each set.  Don't use
3383         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
3384         using the multiple sets we computed.
3385         (push_allocno_to_stack): Iterate over allocno subobjects.
3386         (all_conflicting_hard_regs_coalesced): New static function.
3387         (setup_allocno_available_regs_num): Use it.
3388         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
3389         subobjects.
3390         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
3391         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
3392         by ALLOCNO_NUM_OBJECTS.
3393         (calculate_spill_cost): Likewise.
3394         (color_pass): Express if statement in a more normal way.
3395         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
3396         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
3397         (setup_slot_coalesced_allocno_live_ranges): Likewise.
3398         (allocno_reload_assign): Likewise.
3399         (ira_reassign_pseudos): Likewise.
3400         (fast_allocation): Likewise.
3401         * ira-conflicts.c (build_conflict_bit_table): Likewise.
3402         (print_allocno_conflicts): Likewise.
3403         (ira_build_conflicts): Likewise.
3404         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
3405         callers changed.  Test subword 0 of each allocno for conflicts.
3406         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
3407         callers changed.  Iterate over allocno subobjects.
3408         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
3409         * ira-int.h (struct ira_allocno): New member: num_objects.
3410         Rename object to objects and change it into an array.
3411         (ALLOCNO_OBJECT): Add new argument N.
3412         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
3413         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
3414         (ior_hard_reg_conflicts): Declare.
3415         (ira_add_live_range_to_object): Declare.
3416         (ira_allocno_object_iterator): New.
3417         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
3418         (FOR_EACH_ALLOCNO_OBJECT): New macro.
3419         * ira-lives.c (objects_live): Renamed from allocnos_live; all
3420         uses changed.
3421         (allocnos_processed): New sparseset.
3422         (make_object_born): Renamed from make_allocno_born; take an
3423         ira_object_t argument.  All callers changed.
3424         (make_object_dead): Renamed from make_allocno_dead; take an
3425         ira_object_t argument.  All callers changed.
3426         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
3427         All callers changed.
3428         (mark_pseudo_regno_live): Iterate over allocno subobjects.
3429         (mark_pseudo_regno_dead): Likewise.
3430         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
3431         functions.
3432         (mark_ref_live): Detect subword accesses and call
3433         mark_pseudo_regno_subword_live as appropriate.
3434         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
3435         (process_bb_nodes_live): Deal with object-related updates first; set
3436         and test bits in allocnos_processed to avoid computing allocno
3437         statistics more than once.
3438         (create_start_finish_chains): Iterate over objects, not allocnos.
3439         (print_object_live_ranges): New function.
3440         (print_allocno_live_ranges): Use it.
3441         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
3442         and objects_live.
3443
3444 2010-07-22  Richard Guenther  <rguenther@suse.de>
3445
3446         PR lto/42451
3447         * gimple.c (gtc_next_dfs_num): New global.
3448         (struct sccs): Make value a union, add integer same_p member.
3449         (gtc_visit): New function.
3450         (gimple_types_compatible_p_1): New function, split out from ...
3451         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
3452         (iterative_hash_gimple_type): Adjust for sccs change.
3453
3454 2010-07-22  Martin Jambor  <mjambor@suse.cz>
3455
3456         PR tree-optimization/44891
3457         * tree-sra.c: Include gimple-pretty-print.h.
3458         (replace_uses_with_default_def_ssa_name): Renamed to
3459         get_repl_default_def_ssa_name, return the new SSA name instead of
3460         replacing the old one.
3461         (sra_modify_assign): Dump a message when removing a load, if the LHS
3462         is an SSA_NAME, do not do any propagation, just set the RHS to a
3463         default definition SSA NAME, type convert if necessary.
3464         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
3465
3466 2010-07-22  Richard Guenther  <rguenther@suse.de>
3467
3468         PR tree-optimization/45017
3469         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
3470         TYPE_PRECISION of integral types in addition to size.
3471
3472 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
3473
3474         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
3475         when no C library is specified.
3476
3477 2010-07-22  Martin Jambor  <mjambor@suse.cz>
3478
3479         * ipa-prop.h (struct ipa_node_params): Updated comment.
3480         (struct ipa_edge_args): Likewise.
3481         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
3482
3483 2010-07-22  Martin Jambor  <mjambor@suse.cz>
3484
3485         * cgraphunit.c (verify_edge_count_and_frequency): New function.
3486         (verify_cgraph_node): Verify frequencies of indirect edges.
3487         * tree-inline.c (tree_function_versioning): Update frequencies of
3488         indirect edges.
3489
3490 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3491
3492         PR target/43698
3493         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
3494         Set *arm_rev to be predicable.
3495
3496 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
3497
3498         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
3499         (LINK_COMMAND_SPEC_A): New.
3500         (DSYMUTIL): New.
3501         (DSYMUTIL_SPEC): New.
3502         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
3503         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
3504
3505 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
3506
3507         * calls.c (load_register_parameters): Move check for zero
3508         sized items so that only the call to
3509         mem_overlaps_already_clobbered_arg_p () is protected.
3510
3511 2010-07-22  Jan Hubicka  <jh@suse.cz>
3512
3513         * ipa-pure-const.c (varying_state): Break out from ...
3514         (get_function_state): ... here; always return varying_state
3515         when state would be NULL otherwise.
3516         (remove_node_data): Do not free varying state.
3517
3518 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
3519
3520         PR bootstrap/44970
3521         PR middle-end/45009
3522         * postreload.c: Include "target.h".
3523         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
3524         into account.
3525         (fixup_debug_insns): Don't copy the rtx.
3526         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
3527         Don't copy when replacing.  Call fixup_debug_insns in the case where
3528         we merged one add with another.
3529         (reload_combine_recognize_pattern): Fail if there aren't any uses.
3530         Try harder to determine whether we're picking a valid index register.
3531         Don't set store_ruid for an insn we're going to scan in the
3532         next iteration.
3533         (reload_combine): Remove unused code.
3534         (reload_combine_note_use): When updating use information for
3535         an old insn, ignore a use that occurs after store_ruid.
3536         * Makefile.in (postreload.o): Update dependencies.
3537
3538         * function.c (record_hard_reg_sets): Restrict the previous change
3539         to cases where the incoming nominal mode is the same as the
3540         incoming promoted mode and everything happens in MODE_INT.
3541
3542 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
3543
3544         PR debug/45015
3545         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
3546         ASM_OPERANDS_OUTPUT_IDX.
3547         (adjust_insn): For inline asm with multiple sets ensure first
3548         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
3549         the insn.
3550
3551 2010-07-21  Richard Henderson  <rth@redhat.com>
3552
3553         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
3554         comparison for avoiding xmm register saves.  Emit the xmm register
3555         saves explicitly.
3556         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
3557         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
3558         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
3559         Remove patterns and the associated splitters.
3560
3561 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
3562
3563         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
3564         and imagine parts of a complex, so that they can have the same
3565         base and fall into the same group.
3566
3567 2010-07-21  Richard Guenther  <rguenther@suse.de>
3568
3569         PR lto/45018
3570         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
3571         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
3572         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
3573
3574 2010-07-21  Martin Jambor  <mjambor@suse.cz>
3575
3576         PR tree-optimization/44900
3577         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
3578         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
3579
3580 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
3581
3582         PR middle-end/44738
3583         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
3584
3585 2010-07-21  Richard Guenther  <rguenther@suse.de>
3586
3587         PR middle-end/45013
3588         * tree-ssa.c (useless_type_conversion_p): Dispatch to
3589         gimple_types_compatible_p only when in lto.
3590         * gimple.c (gimple_types_compatible_p): Use canonical types
3591         to speed up comparison.
3592
3593 2010-07-21  Richard Guenther  <rguenther@suse.de>
3594
3595         * tree-flow.h (referenced_var): Move define ...
3596         * tree-flow-inline.h (referenced_var): ... here as an inline
3597         function.  Assert here ...
3598         * tree-dfa.c (referenced_var_lookup): ... instead of here.
3599         * tree-ssa.c (maybe_optimize_var): Check if the variable
3600         is in referenced vars.
3601         (execute_update_addresses_taken): Remove old broken check.
3602         * gimple-pretty-print.c (pp_points_to_solution): Use
3603         referenced_var_lookup.
3604         * tree-into-ssa.c (dump_decl_set): Likewise.
3605
3606 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
3607
3608         PR debug/45003
3609         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
3610         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
3611         ZERO_EXTEND here.
3612
3613 2010-07-20  Richard Henderson  <rth@redhat.com>
3614
3615         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
3616
3617 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
3618
3619         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
3620         computing the sum of the stack pointer and a large constant.
3621         * config/arm/constraints.md (M): Remove superfluous parentheses.
3622         (Pc): New constraint.
3623
3624 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
3625
3626         PR debug/45006
3627         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
3628         operand's type if exp is tcc_unary class tree.
3629
3630 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
3631
3632         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
3633         Reverse sense of if_then_else condition.
3634
3635 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
3636
3637         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
3638         * config/rs6000/rs6000.c (rs6000_override_options): Set
3639         rs6000_block_move_inline_limit appropriately.
3640         (expand_block_move): Use rs6000_block_move_inline_limit.
3641         * doc/invoke.texi (mblock-move-inline-limit): Document.
3642
3643 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
3644
3645         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
3646         FROM and TO.  All callers changed.  Don't look for tracked uses,
3647         just scan the RTL for DEBUG_INSNs and substitute.
3648         (reload_combine_recognize_pattern): Call fixup_debug_insns.
3649         (reload_combine): Ignore DEBUG_INSNs.
3650
3651 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
3652
3653         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
3654         depth to 8 from 5.
3655
3656         PR debug/45003
3657         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
3658         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
3659         instead of the result's type.
3660
3661 2010-07-20  Richard Guenther  <rguenther@suse.de>
3662
3663         PR tree-optimization/44977
3664         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
3665         SSA form.
3666
3667 2010-07-20  Richard Guenther  <rguenther@suse.de>
3668
3669         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
3670         (lto_symtab_merge_decls_2): Likewise.
3671         * gimple.h (gimple_types_compatible_p): Declare.
3672         * gimple.c (gimple_queue_type_fixup): Remove.
3673         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
3674         (gimple_compatible_complete_and_incomplete_type_p): New function.
3675         (gimple_types_compatible_p): Adjust.
3676         (gimple_register_type): Remove type fixup code.
3677         (print_gimple_types_stats): Adjust.
3678         (free_gimple_type_tables): Likewise.
3679         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
3680         * tree-ssa.c (useless_type_conversion_p): Likewise.
3681
3682 2010-07-20  Richard Guenther  <rguenther@suse.de>
3683
3684         PR middle-end/44971
3685         PR middle-end/44988
3686         * tree-ssa.c (maybe_optimize_var): New function split out from ...
3687         (execute_update_addresses_taken): ... here.
3688         (non_rewritable_mem_ref_base): Likewise.
3689         (execute_update_addresses_taken): Do not iterate over all referenced
3690         vars but just all local decls and parms.
3691         Properly check call and asm arguments and rewrite call arguments.
3692
3693 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
3694
3695         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
3696         to top level.
3697         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
3698         definitions ...
3699         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
3700         New macro.
3701         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
3702
3703 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
3704
3705         * gengtype.c (start_root_entry): New function, split out from
3706         write_root.  Check whether V is null and raise an error if so.
3707         (write_field_root): Check for V being null.  Don't raise an error here;
3708         set V to null instead.
3709         (write_root): Update comment above function.  Use start_root_entry.
3710
3711 2010-07-19  Xinliang David Li  <davidxl@google.com>
3712
3713         PR testsuite/44932
3714         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
3715         def edges.
3716         (find_uninit_use): Add dump.
3717         (is_use_properly_guarded): Ditto.
3718         (warn_uninitialized_phi): Ditto.
3719         (execute_late_warn_uninitialized): Ditto.
3720
3721 2010-07-19  Richard Guenther  <rguenther@suse.de>
3722
3723         PR middle-end/44941
3724         * expr.c (emit_block_move_hints): Move zero size check first.
3725         Move asserts to more useful places.
3726         * calls.c (load_register_parameters): Check for zero size.
3727
3728 2010-07-19  Richard Henderson  <rth@redhat.com>
3729
3730         * tree-optimize.c (execute_all_early_local_passes): New.  Change
3731         cgraph_state here ...
3732         (execute_early_local_optimizations): ... not here.  Remove.
3733         (pass_early_local_passes, pass_all_early_optimizations): Update.
3734
3735 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
3736
3737         * postreload.c (reload_combine_closest_single_use): Ignore the
3738         number of uses for DEBUG_INSNs.
3739         (fixup_debug_insns): New static function.
3740         (reload_combine_recognize_const_pattern): Use it.  Don't let the
3741         main loop be affected by DEBUG_INSNs.
3742         Really disallow moving adds past a jump insn.
3743         (reload_combine_recognize_pattern): Don't update use_ruid here.
3744         (reload_combine_note_use): Do it here.
3745         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
3746
3747 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
3748
3749         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
3750         of a loop.
3751         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
3752
3753 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
3754
3755         * config/i386/darwin.h: Define darwin_emit_branch_islands.
3756         (TARGET_MACHO_BRANCH_ISLANDS): New.
3757         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
3758         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
3759         default value.
3760         * config/i386/i386.c (output_pic_addr_const): Do not emit
3761         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
3762         (x86_output_mi_thunk): Adjust symbol creation.
3763         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
3764         Remove out of date comment.
3765         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
3766         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
3767         (DARWIN_GENERATE_ISLANDS): Ditto.
3768         (output_call):  Do not emit branch islands unless
3769         darwin_emit_branch_islands is set.
3770         * config/darwin.c: Declare darwin_emit_branch_islands.
3771         (machopic_indirect_data_reference): Do not emit unless
3772         darwin_emit_branch_islands is set.
3773         (darwin_override_options): Set darwin_emit_branch_islands
3774         where it is needed.
3775         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
3776
3777 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3778
3779         * doc/sourcebuild.texi (Effective-Target Keywords): Document
3780         sse_runtime, sse2_runtime.
3781
3782 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
3783
3784         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
3785         low half of a single-register SCmode return value before ORing
3786         it with the high half.
3787         * config/mips/mips16.S (MERGE_GPRf): Likewise.
3788
3789 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3790
3791         PR target/44805
3792         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
3793         on all targets.
3794
3795 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
3796
3797         PR target/42235
3798         * postreload.c (reload_cse_move2add): Return bool, true if anything.
3799         changed.  All callers changed.
3800         (move2add_use_add2_insn): Likewise.
3801         (move2add_use_add3_insn): Likewise.
3802         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
3803         reload_combine.
3804         (RELOAD_COMBINE_MAX_USES): Bump to 16.
3805         (last_jump_ruid): New static variable.
3806         (struct reg_use): New members CONTAINING_MEM and RUID.
3807         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
3808         (reload_combine_split_one_ruid, reload_combine_split_ruids,
3809         reload_combine_purge_insn_uses, reload_combine_closest_single_use
3810         reload_combine_purge_reg_uses_after_ruid,
3811         reload_combine_recognize_const_pattern): New static functions.
3812         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
3813         is true for our reg and that we have available index regs.
3814         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
3815         callers changed.  Use them to initialize fields in struct reg_use.
3816         (reload_combine): Initialize last_jump_ruid.  Be careful when to
3817         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
3818         Call reload_combine_recognize_const_pattern.
3819         (reload_combine_note_store): Update REAL_STORE_RUID field.
3820
3821 2010-07-16  Jason Merrill  <jason@redhat.com>
3822
3823         * Makefile.in (opts-common.o): Depend on options.h.
3824
3825 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
3826
3827         * tree.c (build_common_builtin_nodes): Use build_function_type_list
3828         instead of build_function_type.
3829         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
3830         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
3831
3832 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
3833
3834         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
3835         do all the work.
3836         (rs6000_emit_int_cmove): Use function pointers for insn generation.
3837         Don't force values into registers unnecessarily.
3838         (output_isel): Assert that we're not given conditions we can't handle.
3839         Delete corresponding code.
3840         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
3841         scc_comparison_operator constraint.  Permit 0 for the consequent
3842         operand.  Permit any GPR for the alternative operand.
3843         (isel_unsigned_<mode>): Likewise.
3844
3845 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
3846
3847         PR target/44942
3848         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
3849         argument to const_tree.
3850         * config/i386/i386.c (function_arg_advance): If padding needs to be
3851         inserted before argument, increment cum->words by number of padding
3852         words as well.
3853         (contains_aligned_value_p): Change argument to const_tree.
3854         (ix86_function_arg_boundary): Change second argument to const_tree.
3855
3856 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
3857
3858         PR target/42235
3859         * function.c (record_hard_reg_sets): New static function.
3860         (assign_parm_setup_reg): If an optab for extending exists and the
3861         generated code clobbbers no hard regs, emit the insn directly and
3862         create a REG_EQUIV note.
3863
3864 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
3865
3866         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
3867         TREE_CHAIN.
3868         * c-typeck.c (push_init_level): Likewise.
3869         (process_init_element): Likewise.
3870
3871 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
3872
3873         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
3874         (integer_three_node): Add.
3875         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
3876         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
3877         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
3878         of call build_int_cst.
3879         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
3880         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
3881         (find_interesting_uses_address): Ditto.
3882         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
3883         * tree-eh.c (lower_eh_constructs_2): Ditto.
3884         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
3885         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
3886         * expmed.c (expand_divmod): Ditto.
3887         * tree-mudflap.c (mx_register_decls): Ditto.
3888         * varasm.c (array_size_for_constructor): Ditto.
3889         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
3890         * c-parser.c (c_parser_postfix_expression): Ditto.
3891
3892 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
3893
3894         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
3895         New static variables.
3896         (reload_combine_recognize_pattern): New static function, broken out
3897         of reload_combine.
3898         (reload_combine): Use it.  Only initialize first_index_reg and
3899         last_index_reg once.
3900
3901 2010-07-15  Richard Henderson  <rth@redhat.com>
3902
3903         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
3904         when done.
3905
3906 2010-07-15  Jan Hubicka  <jh@suse.cz>
3907
3908         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
3909         comdats for broken gold.
3910         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
3911
3912 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
3913
3914         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
3915
3916 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
3917
3918         * tree.h (DECL_CHAIN): Define.
3919         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3920         * c-decl.c: Likewise.
3921         * c-parser.c: Likewise.
3922         * c-typeck.c: Likewise.
3923         * cfgexpand.c: Likewise.
3924         * cgraph.c: Likewise.
3925         * cgraphunit.c: Likewise.
3926         * combine.c: Likewise.
3927         * config/alpha/alpha.c: Likewise.
3928         * config/arm/arm.c: Likewise.
3929         * config/frv/frv.c: Likewise.
3930         * config/i386/i386.c: Likewise.
3931         * config/i386/winnt-cxx.c: Likewise.
3932         * config/ia64/ia64.c: Likewise.
3933         * config/iq2000/iq2000.c: Likewise.
3934         * config/mep/mep.c: Likewise.
3935         * config/mips/mips.c: Likewise.
3936         * config/pa/som.h: Likewise.
3937         * config/rs6000/rs6000.c: Likewise.
3938         * config/s390/s390.c: Likewise.
3939         * config/sh/sh.c: Likewise.
3940         * config/sh/symbian-cxx.c: Likewise.
3941         * config/sparc/sparc.c: Likewise.
3942         * config/spu/spu.c: Likewise.
3943         * config/stormy16/stormy16.c: Likewise.
3944         * config/vxworks.c: Likewise.
3945         * config/xtensa/xtensa.c: Likewise.
3946         * coverage.c: Likewise.
3947         * dbxout.c: Likewise.
3948         * dwarf2out.c: Likewise.
3949         * emit-rtl.c: Likewise.
3950         * expr.c: Likewise.
3951         * function.c: Likewise.
3952         * gimple-low.c: Likewise.
3953         * gimple-pretty-print.c: Likewise.
3954         * gimplify.c: Likewise.
3955         * integrate.c: Likewise.
3956         * ipa-inline.c: Likewise.
3957         * ipa-prop.c: Likewise.
3958         * ipa-split.c: Likewise.
3959         * ipa-struct-reorg.c: Likewise.
3960         * ipa-type-escape.c: Likewise.
3961         * langhooks.c: Likewise.
3962         * lto-cgraph.c: Likewise.
3963         * omp-low.c: Likewise.
3964         * stor-layout.c: Likewise.
3965         * tree-cfg.c: Likewise.
3966         * tree-complex.c: Likewise.
3967         * tree-dfa.c: Likewise.
3968         * tree-dump.c: Likewise.
3969         * tree-inline.c: Likewise.
3970         * tree-mudflap.c: Likewise.
3971         * tree-nested.c: Likewise.
3972         * tree-object-size.c: Likewise.
3973         * tree-pretty-print.c: Likewise.
3974         * tree-sra.c: Likewise.
3975         * tree-ssa-live.c: Likewise.
3976         * tree-ssa-loop-niter.c: Likewise.
3977         * tree-ssa-math-opts.c: Likewise.
3978         * tree-ssa-reassoc.c: Likewise.
3979         * tree-ssa-sccvn.c: Likewise.
3980         * tree-ssa-structalias.c: Likewise.
3981         * tree-tailcall.c: Likewise.
3982         * tree-vrp.c: Likewise.
3983         * tree.c: Likewise.
3984         * var-tracking.c: Likewise.
3985         * varasm.c: Likewise.
3986
3987 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3988
3989         PR target/44877
3990         * config/spu/spu.c (spu_expand_builtin_1): Allow references
3991         (as well as pointers) as argument to mask_for_load builtins.
3992
3993 2010-07-15  Richard Guenther  <rguenther@suse.de>
3994
3995         PR tree-optimization/44946
3996         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
3997         with accessing only padding properly.
3998
3999 2010-07-15  Jan Hubicka  <jh@suse.cz>
4000
4001         * ipa.c (function_and_variable_visibility): Variables marked as used
4002         should not be localized.
4003
4004 2010-07-15  Jan Hubicka  <jh@suse.cz>
4005
4006         * cgraph.c: Include lto-streamer.h
4007         (change_decl_assembler_name): Work when assembler name hash is at place.
4008         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
4009         be sure to rename it to avoid name clash.
4010         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
4011         Localize hidden symbols only when locally defined.
4012
4013 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
4014
4015         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
4016
4017 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
4018             Kevin F. Quinn  <kevquinn@gentoo.org>
4019
4020         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
4021         * common.opt: Add -Wtrampolines.
4022         * doc/invoke.texi: Add -Wtrampolines.
4023
4024 2010-07-15  Jie Zhang  <jie@codesourcery.com>
4025
4026         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
4027         cortex_a8_issue_ls.
4028
4029 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
4030
4031         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
4032         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
4033
4034 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4035
4036         * config/spu/spu.c (reg_names): Remove prototype.
4037         (call_used_regs): Likewise.
4038
4039 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
4040
4041         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
4042         "unused" with attribute "used".
4043         (__JCR_END__): Likewise.
4044         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
4045         "used" attribute.
4046         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
4047
4048 2010-07-14  Richard Guenther  <rguenther@suse.de>
4049
4050         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
4051         (maybe_fixup_decls): Likewise.
4052         (input_gimple_stmt): Do not fixup anything.
4053         * lto-streamer-out.c (output_gimple_stmt): Make sure all
4054         non-automatic variable uses are wrapped inside a MEM_REF.
4055
4056 2010-07-14  Richard Henderson  <rth@redhat.com>
4057
4058         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
4059         for functions.
4060         * varasm.c (assemble_variable): Remove early exit for functions;
4061         assert that we're given a variable.
4062
4063 2010-07-14  Jie Zhang  <jie@codesourcery.com>
4064
4065         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
4066         cortex_a8_default when neon_type is not none.
4067
4068 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
4069
4070         * lower-subreg.c (subreg_context): New static bitmap.
4071         (decompose_multiword_subregs): Allocate and free it.
4072         (find_decomposable_subregs): Set a bit in it for a register that
4073         occurs in a subreg that changes mode but not size.
4074         (can_decompose_p): Test it instead of non_decomposable_context.
4075
4076 2010-07-14  Richard Guenther  <rguenther@suse.de>
4077
4078         PR tree-optimization/44824
4079         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
4080         is_gimple_mem_ref_addr.
4081         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
4082         non-decl_address_invariant_p addresses.
4083
4084 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
4085
4086         * reload.c (find_reloads): Revert code to penalize small register
4087         classes that was brought in with the IRA merge.
4088
4089 2010-07-14  Richard Guenther  <rguenther@suse.de>
4090
4091         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
4092         as base of ARRAY_REFs.
4093
4094 2010-07-14  Richard Guenther  <rguenther@suse.de>
4095
4096         PR middle-end/44930
4097         * tree-pretty-print.c (do_niy): Do not print a newline.
4098
4099 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
4100
4101         * ira-int.h (struct ira_object): New.
4102         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
4103         (struct ira_allocno): Remove members min, max,
4104         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
4105         conflict_allocnos_num and conflict_vec_p.  Add new member object.
4106         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
4107         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
4108         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
4109         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
4110         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
4111         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
4112         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
4113         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
4114         an ira_object_t rather than ira_allocno_t.  All uses changed.
4115         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
4116         contains a vector of ira_object_t; all uses changed.
4117         (ira_objects_num): Declare variable.
4118         (ira_create_allocno_object): Declare function.
4119         (ira_conflict_vector_profitable_p): Adjust prototype.
4120         (ira_allocate_conflict_vec): Renamed from
4121         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
4122         (ira_allocate_object_conflicts): Renamed from
4123         ira_allocate_allocno_conflicts; first arg now ira_object_t.
4124         (struct ira_object_iterator): New.
4125         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
4126         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
4127         to conflict_vec_p.  All uses changed.
4128         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
4129         Changed to take into account that conflicts are now tracked for
4130         objects.
4131         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
4132         Args changed to accept ira_object_t.  All uses changed.
4133         (allocnos_conflict_p): New static function.
4134         (collected_conflict_objects): Renamed from collected_allocno_objects;
4135         now a vector of ira_object_t.  All uses changed.
4136         (build_conflict_bit_table): Changed to take into account that
4137         conflicts are now tracked for objects.
4138         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
4139         (print_allocno_conflicts, ira_build_conflicts): Likewise.
4140         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
4141         setup_allocno_left_conflicts_size, allocno_reload_assign,
4142         fast_allocation): Likewise.
4143         * ira-lives.c (make_hard_regno_born, make_allocno_born)
4144         process_single_reg_class_operands, process_bb_node_lives): Likewise.
4145         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
4146         Likewise.
4147         * ira-build.c (ira_objects_num): New variable.
4148         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
4149         contains a vector of ira_object_t; all uses changed.
4150         (ira_object_id_map_vec): Corresponding change.
4151         (object_pool): New static variable.
4152         (initiate_allocnos): Initialize it.
4153         (finish_allocnos): Free it.
4154         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
4155         New functions.
4156         (ira_create_allocno): Don't set members that were removed.
4157         (ira_set_allocno_cover_class): Don't change conflict hard regs.
4158         (merge_hard_reg_conflicts): Changed to take into account that
4159         conflicts are now tracked for objects.
4160         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
4161         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
4162         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
4163         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
4164         setup_min_max_conflict_allocno_ids, ):  Likewise.
4165         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
4166         to ira_object_t; all callers changed.
4167         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
4168         to ira_object_t, all callers changed.
4169         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
4170         to ira_object_t, all callers changed.
4171         (conflict_check, curr_conflict_check_tick): Renamed from
4172         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
4173         changed.
4174         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
4175         arg changed to ira_object_t, all callers changed.
4176         (create_cap_allocno): Call ira_create_allocno_object.
4177         (finish_allocno): Free the corresponding object.
4178         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
4179         callers changed.  Adjusted for dealing with objects.
4180         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
4181         dealing with objects.
4182         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
4183
4184         * ira-int.h (struct live_range): Rename allocno member to object
4185         and change type to ira_object_t.
4186         (struct ira_object): New member live_ranges.
4187         (struct ira_allocno): Remove member live_ranges.
4188         (ALLOCNO_LIVE_RANGES): Remove.
4189         (OBJECT_LIVE_RANGES): New macro.
4190         (ira_create_live_range, ira_copy_live_range_list,
4191         ira_merge_live_range_list, ira_live_ranges_intersect_p,
4192         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
4193         * ira-build.c (ira_create_object): Initialize live ranges here.
4194         (ira_create_allocno): Not here.
4195         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
4196         changed to ira_object_t, all callers changed.
4197         (copy_live_range): Rename from copy_allocno_live_range, all callers
4198         changed.
4199         (ira_copy_live_range_list): Rename from
4200         ira_copy_allocno_live_range_list, all callers changed.
4201         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
4202         all callers changed.
4203         (ira_live_ranges_intersect_p): Rename from
4204         ira_allocno_live_ranges_intersect_p, all callers changed.
4205         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
4206         callers changed.
4207         (ira_finish_live_range_list): Rename from
4208         ira_finish_allocno_live_range_list, all callers changed.
4209         (change_object_in_range_list): Rename from change_allocno_in_range_list,
4210         last arg changed to ira_object_t, all callers changed.
4211         (finish_allocno): Changed to expect live ranges in the allocno's object.
4212         (move_allocno_live_ranges, copy_allocno_live_ranges,
4213         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
4214         ira_flattening, ira_build): Likewise.
4215         * ira-color.c (allocnos_have_intersected_live_ranges_p,
4216         slot_coalesced_allocno_live_ranges_intersect,
4217         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
4218         * ira-conflicts.c (build_conflict_bit_table): Likewise.
4219         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4220         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
4221         make_allocno_dead, create_start_finish_chains,
4222         remove_some_program_points_and_update_live_ranges,
4223         ira_debug_live_range_list): Likewise.
4224
4225         * ira-int.h (ira_object_conflict_iterator): Rename from
4226         ira_allocno_conflict_iterator.
4227         (ira_object_conflict_iter_init): Rename from
4228         ira_allocno_conflict_iter_init, second arg changed to
4229         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
4230         FOR_EACH_ALLOCNO_CONFLICT.
4231         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
4232         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
4233         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
4234         * ira-conflicts.c (print_allocno_conflicts): Likewise.
4235
4236 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
4237
4238         PR other/44874
4239         * tree-dump.c (dump_options): Add enumerate_locals entry.
4240         Add TDF_NOID exclusion to all entry.
4241         * tree-dump.h (dump_enumerated_decls): Declare.
4242         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
4243         Don't display type uid.
4244         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
4245         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
4246         * tree-ssa-live.c: Include gimple.h.
4247         (numbered_tree_d): New struct.
4248         (numbered_tree): New typedef.
4249         (DEF_VEC_O (numbered_tree): New.
4250         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
4251         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
4252         (dump_enumerated_decls): Likewise.
4253         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
4254         debug info and flag_dump_final_insns, call dump_enumerated_decls.
4255         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
4256         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
4257
4258 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
4259
4260         * expmed.h (MAX_BITS_PER_WORD): Move to...
4261         * defaults.h (MAX_BITS_PER_WORD): ...here.
4262
4263 2010-07-13  DJ Delorie  <dj@redhat.com>
4264
4265         * config/h8300/h8300.c (h8300_init_once): Default to
4266         -fstrict_volatile_bitfields.
4267
4268         * config/sh/sh.c (sh_override_options): Default to
4269         -fstrict_volatile_bitfields.
4270
4271         * config/rx/rx.c (rx_option_override): New.
4272
4273         * config/m32c/m32c.c (m32c_override_options): Default to
4274         -fstrict_volatile_bitfields.
4275
4276 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
4277
4278         * tree.h (build_function_call_expr): Delete.
4279         (build_call_expr_loc_array): New function.
4280         (build_call_expr_loc_vec): New function.
4281         * tree-flow.h (struct omp_region): Change type of ws_args field
4282         to a VEC.
4283         * builtins.c (build_function_call_expr): Delete.
4284         (build_call_expr_loc_array): New function.
4285         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
4286         (build_call_expr): Likewise.
4287         (build_call_expr_loc_vec): New function.
4288         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
4289         build_function_call_expr.
4290         * expr.c (emutls_var_address): Likewise.
4291         * varasm.c (emutls_common_1): Likewise.
4292         * omp-low.c (expand_omp_atomic_mutex): Likewise.
4293         (expand_omp_taskreg): Adjust for new type of region->ws_args.
4294         (get_ws_args_for): Return a VEC instead of a tree.
4295         (expand_parallel_call): Call build_call_expr_loc_vec instead of
4296         build_function_call_expr.
4297         * stor-layout.c (self_referential_size): Likewise.
4298
4299 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
4300
4301         PR testsuite/44701
4302         * recog.c (constrain_operands): Allow side-effects in memory
4303         operands if either < or > constraint is used, rather than if
4304         both < and > is used.
4305
4306 2010-07-13  Richard Guenther  <rguenther@suse.de>
4307
4308         PR middle-end/44911
4309         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
4310         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
4311         without name.
4312
4313 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
4314
4315         PR target/44761
4316         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
4317         to variable emited.
4318         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
4319         * config/sh/sh.md (symGOT_load): Likewise.
4320         (symDTPOFF2reg): Likewise.
4321         (symTPOFF2reg): Likewise.
4322
4323 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4324
4325         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
4326         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
4327
4328 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4329
4330         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
4331         explanation.
4332         Find ucontext_t * on Solaris 11.
4333         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
4334         Handle new Solaris 11 __sighndlr patterns.
4335
4336 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
4337
4338         PR debug/44901
4339         * vec.h (VEC_block_remove): Fix comment.
4340         * tree-ssa-live.c (remove_unused_locals): Don't use
4341         VEC_unordered_remove on local_decls, instead replace a single
4342         vector element in each iteration if at least one element had
4343         to be removed and VEC_truncate at the end.
4344         * omp-low.c (expand_omp_taskreg): Likewise.
4345
4346 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4347
4348         * c-decl.c (finish_function): Fix typo in comment.
4349
4350 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
4351
4352         PR bootstrap/44921
4353         * postreload.c (move2add_use_add3_insn): Silence gcc warning
4354         on min_regno.
4355
4356 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
4357
4358         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
4359         (simplify_stmt_using_ranges): Use it.
4360
4361 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4362
4363         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
4364         member.  Do not mark as GTY(()).
4365         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
4366         (spu_builtin_decls): New static variable.
4367         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
4368         (spu_init_builtins): Likewise.
4369         (spu_builtin_mul_widen_even): Likewise.
4370         (spu_builtin_mul_widen_odd): Likewise.
4371         (spu_builtin_mask_for_load): Likewise.
4372         (spu_builtin_vec_perm): Likewise.
4373         * config/spu/spu-c.c: Include "target.h".
4374         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
4375         of using spu_builtins[].fndecl.
4376
4377 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4378
4379         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
4380         imply -minterlink-mips16.
4381
4382 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4383
4384         * config/mips/mips.h (mips16_globals): Declare.
4385         (SWITCHABLE_TARGET): Define.
4386         * config/mips/mips.c: Include target-globals.h.
4387         (mips16_globals): New variable.
4388         (mips_set_mips16_mode): Use save_target_globals and
4389         restore_target_globals instead of target_reinit.
4390
4391 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4392
4393         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
4394         to say that the function can be called more than once.
4395         * target-globals.c (save_target_globals): Call init_reg_sets.
4396
4397 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4398
4399         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
4400         * bb-reorder.h: New file.
4401         * bb-reorder.c (default_target_bb_reorder): New variable.
4402         (this_target_bb_reorder): New conditional variable.
4403         (uncond_jump_length): Redefine as a macro.
4404         * target-globals.h (this_target_bb_reorder): Declare.
4405         (target_globals): Add a bb_reorder field.
4406         (restore_target_globals): Copy the bb_reorder field to
4407         this_target_bb-reorder.
4408         * target-globals.c: Include bb-reorder.h.
4409         (default_target_globals): Initialize the bb_reorder field.
4410         (save_target_globals): Likewise.
4411
4412 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4413
4414         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
4415         * gcse.h: New file.
4416         * gcse.c: Include gcse.h.
4417         (default_target_gcse): New variable.
4418         (this_target_gcse): New conditional variable.
4419         (can_copy): Redefine as a macro.
4420         (can_copy_init_p): New macro.
4421         (can_copy_p): Remove can_copy_init_p.
4422         * target-globals.h (this_target_gcse): Declare.
4423         (target_globals): Add a gcse field.
4424         (restore_target_globals): Copy the gcse field to this_target_gcse.
4425         * target-globals.c: Include gcse.h.
4426         (default_target_globals): Initialize the gcse field.
4427         (save_target_globals): Likewise.
4428
4429 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4430
4431         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
4432         and x_ira_prohibited_mode_move_regs_initialized_p.
4433         (ira_prohibited_mode_move_regs): Redefine as a macro.
4434         * ira.c (ira_prohibited_mode_move_regs): Delete.
4435         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
4436
4437 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4438
4439         * reload.h (target_reload): Add x_cached_reg_save_code and
4440         x_cached_reg_restore_code.
4441         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
4442         Redefine as macros.
4443
4444 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4445
4446         * Makefile.in (target-globals.o): Depend on builtins.h.
4447         * builtins.h: New file.
4448         * builtins.c: Include builtins.h.
4449         (default_target_builtins): New variable.
4450         (this_target_builtins): New conditional variable.
4451         (apply_args_mode, apply_result_mode): Redefine as macros.
4452         * target-globals.h (this_target_builtins): Declare.
4453         (target_globals): Add a builtins field.
4454         (restore_target_globals): Copy the builtins field to
4455         this_target_builtins.
4456         * target-globals.c: Include builtins.h.
4457         (default_target_globals): Initialize the builtins field.
4458         (save_target_globals): Likewise.
4459
4460 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4461
4462         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
4463         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
4464         from expmed.c.
4465         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
4466         (alg_hash, alg_hash_used_p): New macros.
4467         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
4468         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
4469         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
4470
4471 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4472
4473         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
4474         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
4475         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
4476         (this_op_costs, costs_classes): Redefine as macros.
4477         (record_reg_classes): Don't take op_costs as a parameter.
4478         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
4479         (scan_one_insn): Update call to record_operand_costs.
4480
4481 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4482
4483         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
4484         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
4485         (target_ira_int): New structure.
4486         (default_target_ira_int): Declare.
4487         (this_target_ira_int): Declare as a variable or define as a macro.
4488         (ira_reg_mode_hard_regset, ira_register_move_cost)
4489         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
4490         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
4491         (prohibited_class_mode_regs, ira_important_classes_num)
4492         (ira_important_classes, ira_reg_class_intersect)
4493         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
4494         (ira_reg_class_union): Redefine as macros.
4495         * ira.h (target_ira): New structure.
4496         (default_target_ira): Declare.
4497         (this_target_ira): Declare as a variable or define as a macro.
4498         (ira_available_class_regs, ira_hard_regno_cover_class)
4499         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
4500         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
4501         (ira_class_hard_regs_num): Redefine as macros.
4502         * ira.c (default_target_ira, default_target_ira_int): New variables.
4503         (this_target_ira, this_target_ira_int): New conditional variables.
4504         (ira_reg_mode_hard_regset, ira_memory_move_cost)
4505         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
4506         (ira_class_subset_p): Delete.
4507         (no_unit_alloc_regs): Redefine as a macro.
4508         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
4509         (ira_class_hard_regs_num, ira_class_hard_reg_index)
4510         (ira_available_class_regs): Delete.
4511         (alloc_reg_class_subclasses): Redefine as a macro.
4512         (ira_reg_class_cover_size, ira_reg_class_cover)
4513         (ira_important_classes_num, ira_important_classes)
4514         (ira_important_class_nums, ira_class_translate): Delete.
4515         (cover_class_order): Document the variable's lifetime.
4516         (reorder_important_classes): Don't set ira_important_class_nums.
4517         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
4518         (ira_reg_class_super_classes, ira_reg_class_union)
4519         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
4520         Delete.
4521         (setup_reg_class_nregs): Don't set ira_max_regs.
4522         (prohibited_class_mode_regs): Delete.
4523         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
4524         (target_globals): Add ira and ira_int fields.
4525         (restore_target_globals): Copy the ira field to this_target_ira
4526         and the ira_int field to this_target_ira_int.
4527         * target-globals.c: Include ira-int.h.
4528         (default_target_globals): Initialize the ira and ira_int fields.
4529         (save_target_globals): Likewise.
4530
4531 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4532
4533         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
4534         * cfgloop.h (target_cfgloop): New structure.
4535         (default_target_cfgloop): Declare.
4536         (this_target_cfgloop): Declare as a variable or define as a macro.
4537         (target_avail_regs, target_clobbered_regs, target_res_regs)
4538         (target_reg_cost, target_spill_cost): Redefine as macros.
4539         * cfgloopanal.c (default_target_cfgloop): New variable.
4540         (this_target_cfgloop): New conditional variable.
4541         (target_avail_regs, target_clobbered_regs, target_res_regs)
4542         (target_reg_cost, target_spill_cost): Delete.
4543         * target-globals.h (this_target_cfgloop): Declare.
4544         (target_globals): Add a cfgloop field.
4545         (restore_target_globals): Copy the cfgloop field to
4546         this_target_cfgloop.
4547         * target-globals.c: Include cfgloop.h.
4548         (default_target_globals): Initialize the cfgloop field.
4549         (save_target_globals): Likewise.
4550
4551 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4552
4553         * regs.h (target_regs): Add x_direct_load, x_direct_store and
4554         x_float_extend_from_mem.
4555         (direct_load, direct_store, float_extend_from_mem): New macros.
4556         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
4557
4558 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4559
4560         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
4561         (target-globals.o): Depend on $(LIBFUNCS_H).
4562         * libfuncs.h: Include hashtab.h.
4563         (libfunc_entry): Moved from optabs.c.
4564         (target_libfuncs): New structure.
4565         (default_target_libfuncs): Declare.
4566         (this_target_libfuncs): Declare as a variable or define as a macro.
4567         (libfunc_table): Redefine as a macro.
4568         * optabs.c (default_target_libfuncs): New variable.
4569         (this_target_libfuncs): New conditional variable.
4570         (libfunc_table): Delete.
4571         (libfunc_entry): Moved to optabs.h.
4572         (libfunc_hash): Redefine as a macro.
4573         (hash_libfunc, eq_libfunc): Fix comments.
4574         (init_optabs): Use libfunc_hash to detect cases where the function
4575         has already been called.  Clear the hash table instead of
4576         recreating it.
4577         * target-globals.h (this_target_libfuncs): Declare.
4578         (target_globals): Add a libfuncs field.
4579         (restore_target_globals): Copy the libfuncs field to
4580         this_target_libfuncs.
4581         * target-globals.c: Include libfuncs.h.
4582         (default_target_globals): Initialize the libfuncs field.
4583         (save_target_globals): Likewise.
4584
4585 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4586
4587         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
4588         in all dependency lists.
4589
4590 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4591
4592         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
4593         * optabs.h (target_optabs): New structure.
4594         (default_target_optabs): Declare.
4595         (this_target_optabs): Declare as a variable or define as a macro.
4596         (optab_table, convert_optab_table, direct_optab_table): Redefine
4597         as macros.
4598         * optabs.c (default_target_optabs): New variable.
4599         (this_target_optabs): New conditional variable.
4600         (optab_table, convert_optab_table, direct_optab_table): Delete.
4601         * target-globals.h (this_target_optabs): Declare.
4602         (target_globals): Add a optabs field.
4603         (restore_target_globals): Copy the optabs field to
4604         this_target_optabs.
4605         * target-globals.c: Include expr.h and optabs.h.
4606         (default_target_globals): Initialize the optabs field.
4607         (save_target_globals): Likewise.
4608
4609 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4610
4611         * flags.h (target_flagstate): Add x_flag_excess_precision.
4612         (flag_excess_precision): Redefine as a macro.
4613         * toplev.c (flag_excess_precision): Delete.
4614
4615 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4616
4617         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
4618         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
4619         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
4620         (no_caller_save_reg_set): Redefine as a macro.
4621         * reload.h (target_reload): Add x_caller_save_initialized_p and
4622         x_regno_save_mode.
4623         (caller_save_initialized_p): Redefine as a macro.
4624         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
4625         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
4626         (regno_save_mode): Redefine as a macro.
4627
4628 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4629
4630         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
4631         * expmed.h: New file.
4632         * expmed.c (default_target_costs): New variable.
4633         (this_target_costs): New conditional variable.
4634         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
4635         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
4636         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
4637         * target-globals.h (this_target_expmed): Declare.
4638         (target_globals): Add a expmed field.
4639         (restore_target_globals): Copy the expmed field to
4640         this_target_expmed.
4641         * target-globals.c: Include expmed.h.
4642         (default_target_globals): Initialize the expmed field.
4643         (save_target_globals): Likewise.
4644
4645 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4646
4647         * Makefile.in (target-globals.o): Depend on reload.h.
4648         * reload.h (target_reload): New structure.
4649         (default_target_reload): Declare.
4650         (this_target_reload): Declare as a variable or define as a macro.
4651         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
4652         * reload1.c (default_target_reload): New variable
4653         (this_target_reload): New conditional variable.
4654         (indirect_symref_ok, double_reg_address_ok): Delete.
4655         (spill_indirect_levels): Redefine as a macro.
4656         * target-globals.h (this_target_reload): Declare.
4657         (target_globals): Add a reload field.
4658         (restore_target_globals): Copy the reload field to
4659         this_target_reload.
4660         * target-globals.c: Include hard-reg-set.h.
4661         (default_target_globals): Initialize the reload field.
4662         (save_target_globals): Likewise.
4663
4664 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4665
4666         * rtl.h (target_rtl): Add x_static_reg_base_value.
4667         * alias.c (static_reg_base_value): Redefine as a macro.
4668
4669 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4670
4671         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
4672         (GTFILES): Remove reginfo.c.
4673         * rtl.h (target_rtl): Add x_top_of_stack.
4674         (top_of_stack): New macro.
4675         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
4676         (top_of_stack): Delete.
4677
4678 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4679
4680         * regs.h (target_regs): Add x_hard_regs_of_mode,
4681         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
4682         x_may_move_out_cost and x_last_mode_for_init_move_cost.
4683         (have_regs_of_mode, contains_reg_of_mode, move_cost)
4684         (may_move_in_cost, may_move_out_cost): Redefine as macros.
4685         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
4686         (may_move_in_cost, may_move_out_cost): Delete.
4687         (last_mode_for_init_move_cost): Redefine as a macro.
4688
4689 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4690
4691         * hard-reg-set.h (target_hard_regs): New structure.
4692         (default_target_hard_regs): Declare.
4693         (this_target_hard_regs): Declare as a variable or define as a macro.
4694         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
4695         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
4696         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
4697         (reg_class_size, reg_class_subclasses, reg_class_subunion)
4698         (reg_class_superunion, reg_names): Redefine as macros.
4699         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
4700         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
4701         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
4702         (reg_class_contents, reg_class_size, reg_class_subclasses)
4703         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
4704         (default_target_hard_regs): New variable
4705         (this_target_hard_regs, initial_call_really_used_regs)
4706         (initial_reg_alloc_order): New conditional variables.
4707         (initial_reg_names): New variable.
4708         (init_reg_sets): Assert that initial_call_really_used_regs,
4709         initial_reg_alloc_order and initial_reg_names
4710         are all the same size as their variable counterparts.  Use them to
4711         initialize those counterparts.
4712         * target-globals.h (this_target_hard_regs): Declare.
4713         (target_globals): Add a hard_regs field.
4714         (restore_target_globals): Copy the hard_regs field to
4715         this_target_hard_regs.
4716         * target-globals.c: Include hard-reg-set.h.
4717         (default_target_globals): Initialize the hard_regs field.
4718         (save_target_globals): Likewise.
4719
4720 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4721
4722         * Makefile.in (target-globals.o): Depend on $(RTL_H).
4723         * rtl.h (target_rtl): New structure.
4724         (default_target_rtl): Declare.
4725         (this_target_rtl): Declare as a variable or define as a macro.
4726         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
4727         Redefine as macros.
4728         * emit-rtl.c (default_target_rtl): New variable.
4729         (this_target_rtl): New conditional variable.
4730         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
4731         (return_address_pointer_rtx): Delete.
4732         (initial_regno_reg_rtx): New macro.
4733         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
4734         (init_emit_regs): Likewise.
4735         * target-globals.h (this_target_rtl): Declare.
4736         (target_globals): Add a rtl field.
4737         (restore_target_globals): Copy the rtl field to this_target_rtl.
4738         * target-globals.c: Include rtl.h.
4739         (default_target_globals): Initialize the rtl field.
4740         (save_target_globals): Likewise.
4741
4742 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4743
4744         * Makefile.in (target-globals.o): Depend on $(REGS_H).
4745         * regs.h (target_reg_modes): New structure.
4746         (default_target_reg_modes): Declare.
4747         (this_target_reg_modes): Declare as a variable or define as a macro.
4748         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
4749         * reginfo.c (default_target_reg_modes): New variable.
4750         (this_target_reg_modes): New conditional variable.
4751         (hard_regno_nregs, reg_raw_mode): Delete.
4752         * target-globals.h (this_target_regs): Declare.
4753         (target_globals): Add a regs field.
4754         (restore_target_globals): Copy the regs field to this_target_regs.
4755         * target-globals.c: Include regs.h.
4756         (default_target_globals): Initialize the regs field.
4757         (save_target_globals): Likewise.
4758
4759 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4760
4761         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
4762         * doc/tm.texi: Regenerate.
4763         * Makefile.in (OBJS-common): Add target-globals.o.
4764         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
4765         and target-globals.h.
4766         (target-globals.o): New rule.
4767         (GTFILES): Include $(srcdir)/target-globals.h.
4768         * defaults.h (SWITCHABLE_TARGET): Define.
4769         * gengtype.c (open_base_files): Add target-globals.h to the
4770         list of includes.
4771         * target-globals.h: New file.
4772         * target-globals.c: Likewise.
4773
4774         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
4775         * flags.h (target_flag_state): New structure.
4776         (default_target_flag_state): Declare.
4777         (this_target_flag_state): Declare as a variable or define as a macro.
4778         (align_loops_log): Redefine as a macro.
4779         (align_loops_max_skip, align_jumps_log): Likewise.
4780         (align_jumps_max_skip, align_labels_log): Likewise.
4781         (align_labels_max_skip, align_functions_log): Likewise.
4782         * toplev.c (default_target_flag_state): New variable.
4783         (this_target_flag_state): New conditional variable.
4784         (align_loops_log): Delete.
4785         (align_loops_max_skip, align_jumps_log): Likewise.
4786         (align_jumps_max_skip, align_labels_log): Likewise.
4787         (align_labels_max_skip, align_functions_log): Likewise.
4788         * target-globals.h (this_target_flag_state): Declare.
4789         (target_globals): Add a flag_state field.
4790         (restore_target_globals): Copy the flag_state field to
4791         this_target_flag_state.
4792         * target-globals.c: Include flags.h.
4793         (default_target_globals): Initialize the flag_state field.
4794         (save_target_globals): Likewise.
4795
4796 2010-07-12  Jie Zhang  <jie@codesourcery.com>
4797
4798         * postreload.c (reg_symbol_ref[]): New.
4799         (move2add_use_add2_insn): New.
4800         (move2add_use_add3_insn): New.
4801         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
4802         (move2add_note_store): Likewise.
4803
4804 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
4805
4806         PR rtl-optimization/44752
4807         * genautomata.c (main): Don't emit an empty file even if there
4808         is no automaton.
4809
4810 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4811
4812         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
4813         ix86_solaris_return_in_memory.
4814         * config/i386-protos.h: Reflect this.
4815         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
4816         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
4817         Move ...
4818         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
4819
4820 2010-07-12  Jie Zhang  <jie@codesourcery.com>
4821
4822         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
4823         align the stack when it's going to be saved.
4824
4825 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4826
4827         PR pch/14940
4828         * config/host-solaris.c (mmap_fixed): New function.
4829         (sol_gt_pch_get_address): Use it.
4830         (sol_gt_pch_use_address): Likewise.
4831
4832 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4833
4834         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
4835         pentiumpro on Solaris 8 and 9/x86.
4836         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
4837         Document SSE/SSE2 support.
4838         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
4839
4840 2010-07-12  Andi Kleen  <ak@linux.intel.com>
4841
4842         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
4843         instead of gcc_assert to print better error message for multiple
4844         prevailing defs.
4845
4846 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
4847
4848         * config/i386/i386.c (ix86_asm_output_function_label): Change format
4849         string placeholder from 0x%x to %#x.
4850         (ix86_code_end): Use putc to output '\n'.
4851         (ix86_print_operand) <case ';'>: Use putc to output ';'.
4852
4853 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
4854
4855         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
4856         in directive -export.
4857
4858 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
4859
4860         * reginfo.h (reg_classes_intersect_p): Change arguments type to
4861         reg_class_t.
4862         * rtl.h (reg_classes_intersect_p): Adjust prototype.
4863
4864         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
4865         Remove macros.
4866         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
4867         rs6000_memory_move_cost): Remove
4868         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
4869         TARGET_MEMORY_MOVE_COST): Define.
4870         (rs6000_register_move_cost): Make static. Change arguments type from
4871         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
4872         (rs6000_memory_move_cost): Make static. Change arguments type from
4873         'enum reg_class' to reg_class_t.
4874
4875 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
4876
4877         PR middle-end/42505
4878         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
4879         lookup code into....
4880         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
4881         new functions.
4882         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
4883         * cfgloopanal.c (target_clobbered_regs): Define.
4884         (init_set_costs): Initialize target_clobbered_regs.
4885         (estimate_reg_pressure_cost): Add call_p argument.  When true,
4886         adjust the number of available registers to exclude the
4887         call-clobbered registers.
4888         * cfgloop.h (target_clobbered_regs): Declare.
4889         (estimate_reg_pressure_cost): Adjust declaration.
4890         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
4891         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
4892         (determine_set_costs): Dump target_clobbered_regs.
4893         (loop_body_includes_call): New function.
4894         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
4895         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
4896         call_p flag through.
4897         (best_gain_for_invariant): Likewise.
4898         (find_invariants_to_move): Likewise.
4899         (move_single_loop_invariants): Likewise, using already-computed
4900         has_call field.
4901
4902 2010-07-10  Richard Guenther  <rguenther@suse.de>
4903             Joern Rennecke  <joern.rennecke@embecosm.com>
4904
4905         PR debug/44832
4906         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
4907         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
4908         unless they have DECL_IGNORED_P set.
4909
4910 2010-07-10  Richard Guenther  <rguenther@suse.de>
4911
4912         PR lto/44889
4913         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
4914         helper function.
4915         (gimple_types_compatible_p): Similar to pointed-to
4916         types allow and merge a mix of complete and incomplete aggregate.
4917         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
4918         (iterative_hash_gimple_type): Adjust for that.
4919
4920 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
4921
4922         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
4923
4924 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
4925
4926         PR objc/44140
4927         * config/darwin.c (output_objc_section_asm_op): Save and restore
4928         section when outputting ObjC section list.
4929
4930 2010-07-09  Jan Hubicka  <jh@suse.cz>
4931
4932         * lto-streamer-out.c (produce_symtab): Do not write alias
4933         cgraph/varpool nodes.
4934
4935 2010-07-09  Jan Hubicka  <jh@suse.cz>
4936
4937         * tree-inline.c (declare_return_variable): Fix ICE while
4938         inlining DECL_BY_VALUE function not in SSA form
4939
4940 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
4941
4942         PR tree-optimization/44576
4943         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
4944         New.  Pull out from is_loop_prefetching_profitable to implement
4945         the trip count to ahead ratio heuristic.
4946         (mem_ref_count_reasonable_p): New.  Pull out from
4947         is_loop_prefetching_profitable to implement the instruction to
4948         memory reference ratio heuristic.  Also consider not reasonable if
4949         the memory reference count is above a threshold (to avoid
4950         explosive compilation time.
4951         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
4952         is_loop_prefetching_profitable to implement the instruction to
4953         prefetch ratio heuristic.
4954         (is_loop_prefetching_profitable): Removed.
4955         (loop_prefetch_arrays): Distribute the cost analysis across the
4956         function to allow early exit of the prefetch analysis.
4957         is_loop_prefetching_profitable is splitted into three functions,
4958         with each one called as early as possible.
4959         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
4960         number of memory references in a loop is considered too many.
4961
4962 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
4963
4964         * reload.c (find_reloads): Don't clear badop if we have a winreg
4965         alternative, but not win, and the class only has fixed regs.
4966         * hard-reg-set.h (class_only_fixed_regs): Declare.
4967         * reginfo.c (class_only_fixed_regs): New array.
4968         (init_reg_sets_1): Initialize it.
4969         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
4970         discourage alternatives using the stack pointer.
4971
4972         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
4973
4974         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
4975
4976         * config/arm/arm.md (cbranchqi4): Fix array size.
4977         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
4978         calculating length.
4979
4980 2010-07-09  Richard Guenther  <rguenther@suse.de>
4981
4982         * gimple.c (struct type_fixup_s): New struct and VEC type.
4983         (gimple_register_type_fixups): New static global.
4984         (gimple_queue_type_fixup): New function.
4985         (gimple_types_compatible_p): Queue type fixups instead of
4986         applying them here.
4987         (gimple_register_type): Apply queued fixups for the
4988         canonical type.  Empty the type fixup queue.
4989
4990 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
4991
4992         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
4993         * configure: Regenerate.
4994         * config.in: Ditto.
4995
4996 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
4997             Denys Vlasenko  <dvlasenk@redhat.com>
4998             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4999
5000         PR tree-optimization/28632
5001         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
5002         (extract_range_from_binary_expr): Further optimize
5003         BIT_AND_EXPR and BIT_IOR_EXPR.
5004
5005 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
5006
5007         * tree-if-conv.c (fold_or_predicates): New.
5008         (add_to_predicate_list): Call it.
5009
5010 2010-07-09  Richard Guenther  <rguenther@suse.de>
5011
5012         PR middle-end/44890
5013         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
5014         if base is a pointer.
5015         * tree-cfg.c (verify_expr): Update MEM_REF checking.
5016
5017 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
5018
5019         PR target/44877
5020         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
5021         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
5022         builtin mask for load/store builtins.
5023
5024 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
5025
5026         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
5027         for "lock addl".
5028         * configure: Regenerate.
5029         * config/i386/i386.c (ix86_print_operand) <case ';'>:
5030         Remove TARGET_MACHO.
5031
5032 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
5033
5034         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
5035         default ISA flags.
5036         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
5037
5038 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
5039
5040         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
5041
5042 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
5043
5044         * config/picochip/picochip.md (commsTestPort): Emit more
5045         efficient sequence for tstport instruction.
5046
5047 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
5048
5049         * config/i386/i386.c (ix86_veclib_handler): Make static.
5050
5051 2010-07-09  Richard Guenther  <rguenther@suse.de>
5052
5053         PR tree-optimization/44852
5054         * tree-ssa-alias.c: Include toplev.h for exact_log2.
5055         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
5056         in MEM_REF.
5057         (indirect_refs_may_alias_p): Likewise.
5058         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
5059
5060 2010-07-09  Richard Guenther  <rguenther@suse.de>
5061
5062         PR tree-optimization/44882
5063         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
5064         sets do conflict.
5065         (vectorizable_load): Likewise.
5066
5067 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
5068
5069         PR target/40657
5070         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
5071         All callers changed.
5072         Handle the case when we're called for the epilogue.
5073         (thumb_unexpanded_epilogue): Use it.
5074         (thumb1_expand_epilogue): Likewise.
5075
5076 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
5077
5078         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
5079         both ranges are range_int_cst_p with non-negative minimum,
5080         try harder to derive smaller range.
5081
5082 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5083
5084         * genrecog.c: Include diagnostic-core.h before toplev.h.
5085         * genoutput.c: Likewise.
5086         * genextract.c: Likewise.
5087         * genautomata.c: Likewise.
5088         * genemit.c: Likewise.
5089         * genpeep.c: Likewise.
5090         * genattrtab.c: Likewise.
5091         * genconditions.c: Likewise.
5092         * genpreds.c: Likewise.
5093
5094 2010-07-08  Andi Kleen  <ak@linux.intel.com>
5095
5096         * lto-section-in.c (lto_section_name): Add missing comma.
5097
5098 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
5099
5100         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
5101         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
5102         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
5103         (ia64_override_options): Rename to...
5104         (ia64_option_override): ... this one. Make static.
5105
5106 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5107
5108         PR middle-end/44843
5109         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
5110         pointed-to type of the offset in a MEM_REF to compute the alignment.
5111
5112 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
5113
5114         * final.c (final_scan_insn): Replace
5115         TARGET_UNWIND_INFO macro check by unwind_emit
5116         hook NULL check.
5117         * targhooks.c (default_unwind_emit): Removed.
5118         * targhooks.h (default_unwind_emit): Likewise.
5119         * target.def (unwind_emit): Set default value to NULL.
5120
5121         * config/i386/i386-protos.h (ix86_asm_output_function_label):
5122         New prototype.
5123         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
5124         for NULL fntype argument and allow 64-bit targets.
5125         (ix86_asm_output_function_label): New function.
5126         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
5127         (ix86_handle_fndecl_attribute): Likewise.
5128         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
5129         * doc/doc/tm.texi: Regenerated.
5130         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
5131         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
5132         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
5133         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
5134         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
5135         * config/elfos.h: Likewise.
5136         * config/i386/cygming.h: Likewise.
5137         * config/netbsd-aout.h: Likewise.
5138         * config/openbsd.h: Likewise.
5139         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
5140         by ix86_asm_output_function_label function call.
5141         * varasm.c (assemble_start_function): Use
5142         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
5143
5144 2010-07-08  Jan Hubicka  <jh@suse.cz>
5145
5146         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
5147         New function.
5148         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
5149         Declare.
5150         * ipa-cp.c (ipcp_estimate_growth): Use it.
5151         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
5152         Likewise.
5153
5154 2010-07-08  Jan Hubicka  <jh@suse.cz>
5155
5156         * tree-inline.c (declare_return_variable): Allocate annotation for new
5157         temporary.
5158
5159 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
5160
5161         PR tree-optimization/44710
5162         * tree-if-conv.c (parse_predicate): New.
5163         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
5164         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
5165
5166 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
5167
5168         * common.opt (ftree-loop-if-convert): New flag.
5169         * doc/invoke.texi (ftree-loop-if-convert): Documented.
5170         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
5171         when flag_tree_loop_if_convert is set.
5172
5173 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
5174
5175         * config/i386/i386.c: Use short syntax for function calls
5176         through function pointers.
5177         * config/i386/i386.md: Ditto.
5178
5179 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5180
5181         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
5182
5183 2010-07-08  Richard Guenther  <rguenther@suse.de>
5184
5185         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
5186         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
5187
5188 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
5189
5190         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
5191         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
5192         (loc_list_from_tree): Likewise.
5193         (output_loc_operands): Handle outputting DW_OP_const[48]u
5194         with loc->dtprel set.
5195         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
5196
5197 2010-07-08  Jan Hubicka  <jh@suse.cz>
5198
5199         * ipa.c: Include pointer-set.h
5200         (cgraph_externally_visible_p): New attribute ALIASED;
5201         when in LTO, hidden symbols are local unless they are aliased.
5202         (function_and_variable_visibility): Compute aliased nodes;
5203         handle LTO and hidden symbol on functions and vars.
5204         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
5205         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
5206
5207 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5208
5209         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
5210         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5211         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5212         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5213         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5214         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
5215         (ix86_gen_probe_stack_range): Likewise.
5216         (override_options): Set them.
5217         (ix86_target_stack_probe): New function.
5218         (ix86_compute_frame_layout): Force use of push instructions to
5219         save registers if stack checking with probes is enabled.
5220         (get_scratch_register_on_entry): New function.
5221         (release_scratch_register_on_entry): Likewise.
5222         (ix86_adjust_stack_and_probe): Likewise.
5223         (output_adjust_stack_and_probe): Likewise.
5224         (ix86_emit_probe_stack_range): Likewise.
5225         (output_probe_stack_range): Likewise.
5226         (ix86_expand_prologue): Emit stack checking code if static built-in
5227         stack checking is enabled.
5228         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
5229         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
5230         (output_adjust_stack_and_probe): Likewise.
5231         (output_probe_stack_range): Likewise.
5232         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
5233         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
5234         TARGET_STACK_PROBE.
5235         (allocate_stack_worker_64): Likewise.
5236         (allocate_stack): Likewise.
5237         (adjust_stack_and_probe): New insn.
5238         (probe_stack_range): Likewise.
5239
5240 2010-07-08  Richard Guenther  <rguenther@suse.de>
5241
5242         PR tree-optimization/44831
5243         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
5244         a MEM_REF preserving TBAA info of the original dereference.
5245         Dereference the original pointer if the address is not invariant.
5246         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
5247         at least one invariant address that we are going to dereference.
5248
5249 2010-07-08  Richard Guenther  <rguenther@suse.de>
5250
5251         PR tree-optimization/44861
5252         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
5253         information when building MEM_REFs.
5254         (vectorizable_load): Likewise.
5255         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
5256
5257 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5258
5259         * config/sol2-c.c: Do not include diagnostic-core.h.
5260
5261 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5262
5263         PR bootstrap/44768
5264         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
5265         with respect to current_function_decl. Pass decl of the function.
5266         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
5267         * ipa-inline.c (compute_inline_parameters): Pass decl to
5268         estimated_stack_frame_size.
5269
5270 2010-07-08  Richard Guenther  <rguenther@suse.de>
5271
5272         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
5273         New function.
5274         (valueize_refs): Call it.
5275
5276 2010-07-08  Richard Guenther  <rguenther@suse.de>
5277
5278         PR rtl-optimization/44838
5279         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
5280         SSA form do not use pointer equivalence.
5281
5282 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5283
5284         * dwarf2out.c (AT_linkage_name): Delete.
5285         (add_linkage_attr): New function.
5286         (add_linkage_name): Call it to emit the linkage attribute.
5287         (dwarf2out_finish): Likewise.
5288         (move_linkage_attr): Explicitly accept both attribute variants.
5289
5290 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5291
5292         * toplev.h: Do not include diagnostic-core.h.
5293         Include diagnostic-core.h in every file that includes toplev.h.
5294         * c-tree.h: Do not include toplev.h.
5295         * pretty-print.h: Update comment.
5296         * Makefile.in: Update dependencies.
5297         * alias.c: Include diagnostic-core.h in every file that includes
5298         toplev.h.
5299         * attribs.c: Likewise.
5300         * auto-inc-dec.c: Likewise.
5301         * bb-reorder.c: Likewise.
5302         * bt-load.c: Likewise.
5303         * caller-save.c: Likewise.
5304         * calls.c: Likewise.
5305         * cfg.c: Likewise.
5306         * cfganal.c: Likewise.
5307         * cfgbuild.c: Likewise.
5308         * cfgcleanup.c: Likewise.
5309         * cfghooks.c: Likewise.
5310         * cfgloop.c: Likewise.
5311         * combine.c: Likewise.
5312         * config/alpha/alpha.c: Likewise.
5313         * config/arc/arc.c: Likewise.
5314         * config/arm/arm.c: Likewise.
5315         * config/arm/pe.c: Likewise.
5316         * config/avr/avr.c: Likewise.
5317         * config/bfin/bfin.c: Likewise.
5318         * config/cris/cris.c: Likewise.
5319         * config/crx/crx.c: Likewise.
5320         * config/darwin-c.c: Likewise.
5321         * config/darwin.c: Likewise.
5322         * config/fr30/fr30.c: Likewise.
5323         * config/frv/frv.c: Likewise.
5324         * config/h8300/h8300.c: Likewise.
5325         * config/host-darwin.c: Likewise.
5326         * config/i386/i386.c: Likewise.
5327         * config/i386/netware.c: Likewise.
5328         * config/i386/nwld.c: Likewise.
5329         * config/i386/winnt-cxx.c: Likewise.
5330         * config/i386/winnt-stubs.c: Likewise.
5331         * config/i386/winnt.c: Likewise.
5332         * config/ia64/ia64-c.c: Likewise.
5333         * config/ia64/ia64.c: Likewise.
5334         * config/iq2000/iq2000.c: Likewise.
5335         * config/lm32/lm32.c: Likewise.
5336         * config/m32c/m32c-pragma.c: Likewise.
5337         * config/m32c/m32c.c: Likewise.
5338         * config/m32r/m32r.c: Likewise.
5339         * config/m68hc11/m68hc11.c: Likewise.
5340         * config/m68k/m68k.c: Likewise.
5341         * config/mcore/mcore.c: Likewise.
5342         * config/mep/mep-pragma.c: Likewise.
5343         * config/mep/mep.c: Likewise.
5344         * config/mmix/mmix.c: Likewise.
5345         * config/mn10300/mn10300.c: Likewise.
5346         * config/moxie/moxie.c: Likewise.
5347         * config/pa/pa.c: Likewise.
5348         * config/pdp11/pdp11.c: Likewise.
5349         * config/picochip/picochip.c: Likewise.
5350         * config/rs6000/rs6000-c.c: Likewise.
5351         * config/rs6000/rs6000.c: Likewise.
5352         * config/rx/rx.c: Likewise.
5353         * config/s390/s390.c: Likewise.
5354         * config/score/score.c: Likewise.
5355         * config/score/score3.c: Likewise.
5356         * config/score/score7.c: Likewise.
5357         * config/sh/sh.c: Likewise.
5358         * config/sh/symbian-base.c: Likewise.
5359         * config/sh/symbian-c.c: Likewise.
5360         * config/sh/symbian-cxx.c: Likewise.
5361         * config/sol2-c.c: Likewise.
5362         * config/sol2.c: Likewise.
5363         * config/sparc/sparc.c: Likewise.
5364         * config/spu/spu.c: Likewise.
5365         * config/stormy16/stormy16.c: Likewise.
5366         * config/v850/v850-c.c: Likewise.
5367         * config/v850/v850.c: Likewise.
5368         * config/vax/vax.c: Likewise.
5369         * config/vxworks.c: Likewise.
5370         * config/xtensa/xtensa.c: Likewise.
5371         * convert.c: Likewise.
5372         * cse.c: Likewise.
5373         * cselib.c: Likewise.
5374         * dbgcnt.c: Likewise.
5375         * dbxout.c: Likewise.
5376         * ddg.c: Likewise.
5377         * dominance.c: Likewise.
5378         * emit-rtl.c: Likewise.
5379         * explow.c: Likewise.
5380         * expmed.c: Likewise.
5381         * fixed-value.c: Likewise.
5382         * fold-const.c: Likewise.
5383         * fwprop.c: Likewise.
5384         * gcse.c: Likewise.
5385         * ggc-common.c: Likewise.
5386         * ggc-page.c: Likewise.
5387         * ggc-zone.c: Likewise.
5388         * gimple-low.c: Likewise.
5389         * gimplify.c: Likewise.
5390         * graph.c: Likewise.
5391         * haifa-sched.c: Likewise.
5392         * ifcvt.c: Likewise.
5393         * implicit-zee.c: Likewise.
5394         * integrate.c: Likewise.
5395         * ira-build.c: Likewise.
5396         * ira-color.c: Likewise.
5397         * ira-conflicts.c: Likewise.
5398         * ira-costs.c: Likewise.
5399         * ira-lives.c: Likewise.
5400         * ira.c: Likewise.
5401         * lists.c: Likewise.
5402         * loop-doloop.c: Likewise.
5403         * loop-iv.c: Likewise.
5404         * lto-opts.c: Likewise.
5405         * lto-symtab.c: Likewise.
5406         * main.c: Likewise.
5407         * modulo-sched.c: Likewise.
5408         * optabs.c: Likewise.
5409         * params.c: Likewise.
5410         * plugin.c: Likewise.
5411         * postreload-gcse.c: Likewise.
5412         * postreload.c: Likewise.
5413         * predict.c: Likewise.
5414         * profile.c: Likewise.
5415         * real.c: Likewise.
5416         * regcprop.c: Likewise.
5417         * reginfo.c: Likewise.
5418         * regmove.c: Likewise.
5419         * reorg.c: Likewise.
5420         * resource.c: Likewise.
5421         * rtl.c: Likewise.
5422         * rtlanal.c: Likewise.
5423         * sched-deps.c: Likewise.
5424         * sched-ebb.c: Likewise.
5425         * sched-rgn.c: Likewise.
5426         * sdbout.c: Likewise.
5427         * sel-sched-dump.c: Likewise.
5428         * sel-sched-ir.c: Likewise.
5429         * simplify-rtx.c: Likewise.
5430         * stmt.c: Likewise.
5431         * stor-layout.c: Likewise.
5432         * store-motion.c: Likewise.
5433         * targhooks.c: Likewise.
5434         * tree-cfg.c: Likewise.
5435         * tree-cfgcleanup.c: Likewise.
5436         * tree-dump.c: Likewise.
5437         * tree-eh.c: Likewise.
5438         * tree-inline.c: Likewise.
5439         * tree-nomudflap.c: Likewise.
5440         * tree-object-size.c: Likewise.
5441         * tree-optimize.c: Likewise.
5442         * tree-outof-ssa.c: Likewise.
5443         * tree-phinodes.c: Likewise.
5444         * tree-profile.c: Likewise.
5445         * tree-ssa-ccp.c: Likewise.
5446         * tree-ssa-coalesce.c: Likewise.
5447         * tree-ssa-live.c: Likewise.
5448         * tree-ssa-loop-niter.c: Likewise.
5449         * tree-ssa-loop-prefetch.c: Likewise.
5450         * tree-ssa-loop.c: Likewise.
5451         * tree-ssa-structalias.c: Likewise.
5452         * tree-ssa-uninit.c: Likewise.
5453         * tree-ssa.c: Likewise.
5454         * tree-vect-data-refs.c: Likewise.
5455         * tree-vect-loop-manip.c: Likewise.
5456         * tree-vect-loop.c: Likewise.
5457         * tree-vect-patterns.c: Likewise.
5458         * tree-vect-stmts.c: Likewise.
5459         * tree-vrp.c: Likewise.
5460         * varasm.c: Likewise.
5461         * vec.c: Likewise.
5462         * web.c: Likewise.
5463         * xcoffout.c: Likewise.
5464
5465 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
5466
5467         * gengtype.c (write_field_root): New function.
5468         (write_root): Use it.
5469
5470 2010-07-07  Wei Guozhi  <carrot@google.com>
5471
5472         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
5473         of lowest bits to lshift/compare): Add a missing line.
5474
5475 2010-07-07  Wei Guozhi  <carrot@google.com>
5476
5477         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
5478         of lowest bits to lshift/compare): New.
5479
5480 2010-07-07  Tom Tromey  <tromey@redhat.com>
5481
5482         * doc/tm.texi: Update.
5483         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
5484         Add @hook.
5485         * target.def (want_debug_pub_sections): New hook.
5486         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
5487         * dwarf2out.c (add_pubname_string): Check
5488         targetm.want_debug_pub_sections.
5489         (add_pubname): Likewise.
5490         (add_pubtype): Likewise.
5491
5492 2010-07-07  Jie Zhang  <jie@codesourcery.com>
5493
5494         * genautomata.c (output_automata_list_min_issue_delay_code):
5495         Correctly decompress min_issue_delay.
5496
5497 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
5498
5499         PR rtl-optimization/44404
5500         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
5501         possible, use reg_overlap_mentioned_p instead.
5502
5503 2010-07-07  Duncan Sands  <baldrick@free.fr>
5504
5505         PR middle-end/41355
5506         * tree.c (build_function_type_skip_args): Copy the original type using
5507         build_distinct_type_copy rather than copy_node.
5508
5509 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
5510
5511         PR target/44850
5512         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
5513         revision 161876.
5514         (ix86_expand_prologue): Likewise.
5515         (ix86_handle_fndecl_attribute): Likewise.
5516         (ix86_asm_declare_function_name): Likewise.
5517         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5518         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5519         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
5520         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
5521         * doc/extend.texi: Likewise.
5522
5523 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
5524
5525         PR target/44844
5526         * config/i386/i386.md (rdrand<mode>): Changed to expand to
5527         retry if the carry flag isn't valid.
5528         (rdrand<mode>_1): New.
5529
5530 2010-07-07  Richard Guenther  <rguenther@suse.de>
5531
5532         PR middle-end/44790
5533         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
5534         for expanding the constant offset for MEM_REFs.
5535
5536 2010-07-07  Richard Guenther  <rguenther@suse.de>
5537
5538         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
5539         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
5540         * gimple.h (is_gimple_operand): Remove.
5541         * gimple.c (is_gimple_operand): Likewise.
5542         (walk_gimple_op): Fix wi->val_only setting for calls.
5543         * tree-cfg.c (verify_gimple_call): Fix argument validation.
5544         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
5545         invalid gimple calls.
5546
5547 2010-07-06  Jan Hubicka  <jh@suse.cz>
5548
5549         * lto-cgraph.c (output_cgraph): Add missing declaration.
5550
5551 2010-07-06  Jan Hubicka  <jh@suse.cz>
5552
5553         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
5554         partition.
5555
5556 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
5557
5558         * doc/gimple.texi (GIMPLE_DEBUG): Document.
5559         * doc/rtl.texi (Debug Information): New node.
5560         (NOTE_INSN_VAR_LOCATION): Document.
5561         (debug_insn): Likewise.
5562         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
5563
5564 2010-07-07  Jan Hubicka  <jh@suse.cz>
5565
5566         With parts by Richard Guenther.
5567
5568         PR middle-end/44813
5569         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
5570         for functions passed by reference.
5571         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
5572         in memory when passed by reference.
5573         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
5574         beggining.
5575         * ipa-split.c (split_function): Cleanup way return value is passed;
5576         handle SSA DECL_BY_REFERENCE retvals.
5577         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
5578         DECL_BY_REFERENCE is set.
5579         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
5580         find_what_p_points_to): Handle RESULT_DECL.
5581         * tree-inline.c (declare_return_variable): Get new entry_block argument;
5582         when passing by reference ensure that RESULT_DECL is gimple_val.
5583         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
5584         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
5585
5586 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
5587
5588         PR rtl-optimization/44787
5589         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
5590         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
5591
5592 2010-07-06  Jan Hubicka  <jh@suse.cz>
5593
5594         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
5595         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
5596         with body can prevail.
5597         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
5598         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
5599         * cgraph.c (cgraph_get_node_or_alias): New function.
5600         * cgraph.h (cgraph_get_node_or_alias): Declare.
5601
5602 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
5603
5604         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
5605         support.
5606         (ix86_expand_prologue): Likewise.
5607         (ix86_handle_fndecl_attribute): Likewise.
5608         (ix86_asm_declare_function_name): New function for
5609         ASM_DECLARE_FUNCTION_NAME.
5610         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
5611         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
5612         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
5613         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
5614         * doc/extend.texi: Adjust documentation about ms_hook_prologue
5615         attribute.
5616
5617 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
5618
5619         * config/i386/i386.md (immediate_operand): New mode attribute.
5620
5621         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
5622         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
5623         using P mode iterator.
5624         (pro_epilogue_adjust_stack_di_2): Rename from
5625         pro_epilogue_adjust_stack_rex64_2.
5626
5627         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
5628
5629 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
5630
5631         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
5632         through gen_mov_insv_1 function pointer.
5633         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
5634         gen_truncxf<mode>2 through gen_truncxf function pointer.
5635         (remainder<mode>3): Ditto.
5636         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
5637         (allocate_stack): Call gen_allocate_stack_worker_64 or
5638         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
5639         function pointer.
5640         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
5641         function pointer.
5642
5643 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
5644
5645         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
5646         operand constraint instead of <r><i>m.
5647
5648 2010-07-06  Richard Guenther  <rguenther@suse.de>
5649
5650         PR middle-end/44828
5651         * convert.c (convert_to_integer): Watch out for overflowing
5652         MULT_EXPR as well.
5653
5654 2010-07-05  Jan Hubicka  <jh@suse.cz>
5655
5656         * lto-streamer.c (write_symbol_vec): Rename to ...
5657         (write_symbol) ... this one; write only symbol given and when
5658         present in cache. Sanity check that what is defined is present
5659         in cgraph/varpool with body/finalized decl.
5660         (write_symbols_of_kind): Remove.
5661         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
5662         pairs to produce symtab.
5663         (produce_asm_for_decls): Update call of produce_symtab; don't do so
5664         when doing WPA streaming.
5665
5666 2010-07-05  Jan Hubicka  <jh@suse.cz>
5667
5668         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
5669         function is still available to fold into.
5670
5671 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
5672
5673         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
5674         * function.h (struct_function): Change type of local_decls field
5675         to a VEC.
5676         (add_local_decl): New function.
5677         (FOR_EACH_LOCAL_DECL): New macro.
5678         * cfgexpand.c (init_vars_expansion): Adjust for new type of
5679         cfun->local_decls.
5680         (estimated_stack_frame_size): Likewise.
5681         (expand_used_vars): Likewise.
5682         * cgraphbuild.c (build_cgraph_edges): Likewise.
5683         * function.c (instantiate_decls_1): Likewise.
5684         * ipa-struct-reorg.c (build_data_structure): Likewise.
5685         * ipa-type-escape.c (analyze_function): Likewise.
5686         * lto-streamer-in.c (input_function): Likewise.
5687         * lto-streamer-out.c (output_function): Likewise.
5688         * tree-ssa-live.c (remove_unused_locals): Likewise.
5689         * tree.c (free_lang_data_in_decl): Likewise.
5690         (find_decls_types_in_node): Likewise.
5691         * omp-low.c (remove_exit_barrier): Likewise.
5692         (expand_omp_taskreg): Likewise.
5693         (list2chain): Rename to...
5694         (vec2chain): ...this.  Adjust.
5695         * cgraphunit.c (assemble_thunk): Call add_local_decl.
5696         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
5697         * gimple-low.c (record_vars_into): Likewise.
5698         * tree-inline.c (remap_decls): Likewise.
5699         (declare_return_variable): Likewise.
5700         (declare_inline_vars): Likewise.
5701         (copy_forbidden): Adjust for new type of cfun->local_decls.
5702         (add_local_variables): New function.
5703         (expand_call_inline): Call it.
5704         (tree_function_versioning): Likewise.
5705
5706 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
5707
5708         AVX Programming Reference (June, 2010)
5709         * config/i386/cpuid.h (bit_F16C): New.
5710         (bit_RDRND): Likewise.
5711         (bit_FSGSBASE): Likewise.
5712
5713         * config/i386/i386-builtin-types.def: Add
5714         "DEF_FUNCTION_TYPE (UINT16)", function types for
5715         float16 <-> float conversions and
5716         "DEF_FUNCTION_TYPE (VOID, UINT64)".
5717
5718         * config/i386/i386-c.c (ix86_target_macros_internal): Support
5719         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
5720         OPTION_MASK_ISA_F16C.
5721
5722         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
5723         (OPTION_MASK_ISA_RDRND_SET): Likewise.
5724         (OPTION_MASK_ISA_F16C_SET): Likewise.
5725         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
5726         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
5727         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
5728         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
5729         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
5730         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
5731         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
5732         (override_options): Handle them.
5733         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
5734         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
5735         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
5736         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
5737         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
5738         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
5739         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
5740         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
5741         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
5742         (bdesc_args): Likewise.
5743         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
5744         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
5745         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
5746         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
5747         Handle non-memory store.
5748
5749         * config/i386/i386.h (TARGET_FSGSBASE): New.
5750         (TARGET_RDRND): Likewise.
5751         (TARGET_F12C): Likewise.
5752
5753         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
5754         (UNSPEC_VCVTPS2PH): Likewise.
5755         (UNSPECV_RDFSBASE): Likewise.
5756         (UNSPECV_RDGSBASE): Likewise.
5757         (UNSPECV_WRFSBASE): Likewise.
5758         (UNSPECV_WRGSBASE): Likewise.
5759         (UNSPECV_RDRAND): Likewise.
5760         (rdfsbase<mode>): Likewise.
5761         (rdgsbase<mode>): Likewise.
5762         (wrfsbase<mode>): Likewise.
5763         (wrgsbase<mode>): Likewise.
5764         (rdrand<mode>): Likewise.
5765
5766         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
5767
5768         * config/i386/immintrin.h (_rdrand_u16): New.
5769         (_rdrand_u32): Likewise.
5770         (_readfsbase_u32): Likewise.
5771         (_readfsbase_u64): Likewise.
5772         (_readgsbase_u32): Likewise.
5773         (_readgsbase_u64): Likewise.
5774         (_writefsbase_u32): Likewise.
5775         (_writefsbase_u64): Likewise.
5776         (_writegsbase_u32): Likewise.
5777         (_writegsbase_u64): Likewise.
5778         (_rdrand_u64): Likewise.
5779         (_cvtsh_ss): Likewise.
5780         (_mm_cvtph_ps): Likewise.
5781         (_mm256_cvtph_ps): Likewise.
5782         (_cvtss_sh): Likewise.
5783         (_mm_cvtps_ph): Likewise.
5784         (_mm256_cvtps_ph): Likewise.
5785
5786         * config/i386/sse.md (vcvtph2ps): New.
5787         (*vcvtph2ps_load): Likewise.
5788         (vcvtph2ps256): Likewise.
5789         (vcvtps2ph): Likewise.
5790         (*vcvtps2ph): Likewise.
5791         (*vcvtps2ph_store): Likewise.
5792         (vcvtps2ph256): Likewise.
5793
5794         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
5795
5796         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
5797
5798 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
5799
5800         PR bootstrap/44512
5801         * genenums.c (main): Output include of insn-constants.h
5802         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
5803
5804 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
5805
5806         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
5807         (override_options): Initialize it.
5808         (ix86_expand_prologue): Use it.
5809
5810 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
5811
5812         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
5813
5814 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
5815
5816         * double-int.h (fit_double_type): Remove declaration.
5817         * double-int.c (fit_double_type): Remove function.
5818         * tree.h (int_fits_type_p): Adjust prototype.
5819         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
5820         instead of fit_double_type.
5821         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
5822         instead of fit_double_type and build_int_cst_wide.
5823         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
5824         instead of fit_double_type and build_int_cst_wide.
5825         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
5826         of fit_double_type.
5827
5828 2010-07-05  Jan Hubicka  <jh@suse.cz>
5829
5830         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
5831         in_other_partition.
5832         * lto-cgraph.c (referenced_from_other_partition_p,
5833         reachable_from_other_partition_p): Use in_other_partition flags.
5834         (output_node, output_varpool_node): COMDAT nodes always have private
5835         copies and thus are never used from other partition.
5836
5837 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
5838
5839         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
5840         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
5841         * config/ia64/ia64.c Include reload.h.
5842         (ia64_memory_move_cost): New function.
5843         (TARGET_MEMORY_MOVE_COST): Define.
5844         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
5845         memory_move_cost.
5846
5847 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
5848
5849         PR middle-end/42505
5850         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
5851         comments about cost model.
5852         (try_add_cand_for):  Add second strategy for choosing initial set
5853         based on original IVs, controlled by ORIGINALP argument.
5854         (get_initial_solution): Add ORIGINALP argument.
5855         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
5856         (find_optimal_iv_set): Try two different strategies for choosing
5857         the IV set, and return the one with lower cost.
5858
5859 2010-07-05  Richard Guenther  <rguenther@suse.de>
5860
5861         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
5862
5863 2010-07-05  Richard Guenther  <rguenther@suse.de>
5864
5865         * tree.c (reference_alias_ptr_type): New function.
5866         * tree.h (reference_alias_ptr_type): Declare.
5867         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
5868         allow non-TARGET_MEM_REF new refs.
5869         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
5870         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
5871         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
5872         (create_mem_ref): Get alias pointer type.  Adjust calls to
5873         create_mem_ref_raw.
5874         (maybe_fold_tmr): Likewise.
5875         * tree-flow.h (create_mem_ref): Adjust prototype.
5876
5877 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
5878
5879         PR c++/44808
5880         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
5881         *from_p is VAR_DECL.
5882
5883 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
5884
5885         * tree.h (build_call_list): Remove.
5886         * tree.c (build_call_list): Remove.
5887
5888 2010-07-05  Richard Guenther  <rguenther@suse.de>
5889
5890         * double-int.h (double_int_sub): Declare.
5891         * double-int.c (double_int_sub): New function.
5892         * dwarf2out.c (field_byte_offset): Use it.
5893         * fixed-value.c (do_fixed_add): Likewise.
5894         (do_fixed_multiply): Likewise.
5895         (do_fixed_divide): Likewise.
5896         * tree-predcom.c (add_ref_to_chain): Likewise.
5897         (determine_roots_comp): Likewise.
5898         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
5899
5900 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
5901
5902         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
5903         implementations.
5904
5905 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
5906
5907         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
5908         * arm-modes.def (CC_NOTB): Don't define.
5909         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
5910         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
5911         (LTUGEU): New code_iterator.
5912         (cnb, optab): New corresponding code_attrs.
5913         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
5914         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
5915         using LTUGEU.
5916         (addsi3_carryin_shift_<optab>): Likewise.
5917         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
5918         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
5919         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
5920         (subsi3_compare): Renamed from subsi3_compare0_c.
5921         Change CC_NOTB to CC.
5922         (arm_subsi3_insn): Allow constants for operand 0.
5923         (compare_scc peephole for eq case): New.
5924         (compare_scc splitters): Change CC_NOTB to CC.
5925
5926 2010-07-05  Richard Guenther  <rguenther@suse.de>
5927
5928         * tree-ssa-loop-im.c (for_each_index): Do not handle
5929         ALIGN_INDIRECT_REF.
5930         (gen_lsm_tmp_name): Likewise.
5931         * tree-dump.c (dequeue_and_dump): Likewise.
5932         * tree-pretty-print.c (dump_generic_node): Likewise.
5933         (op_code_prio): Likewise.
5934         (op_symbol_code): Likewise.
5935         * tree.c (staticp): Likewise.
5936         (build1_stat): Likewise.
5937         * tree.h (INDIRECT_REF_P): Likewise.
5938         * fold-const.c (maybe_lvalue_p): Likewise.
5939         (operand_equal_p): Likewise.
5940         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5941         (ao_ref_init_from_vn_reference): Likewise.
5942         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
5943         (find_interesting_uses_address): Likewise.
5944         * dwarf2out.c (loc_list_from_tree): Likewise.
5945         * gimplify.c (gimplify_expr): Likewise.
5946         * tree-eh.c (tree_could_trap_p): Likewise.
5947         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
5948         * cfgexpand.c (expand_debug_expr): Likewise.
5949         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
5950         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
5951         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
5952         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
5953         * tree-ssa-operands.c (get_expr_operands): Likewise.
5954         * expr.c (safe_from_p): Likewise.
5955         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
5956         * tree-vect-data-refs.c (vect_setup_realignment): Build
5957         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
5958         * tree-vect-stmts.c (vectorizable_load): Likewise.
5959         * tree.def (ALIGN_INDIRECT_REF): Remove.
5960
5961 2010-07-05  Richard Guenther  <rguenther@suse.de>
5962
5963         PR tree-optimization/44784
5964         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
5965         for inserted stmts.
5966         (find_or_generate_expression): Fix SCCVN insertion check.
5967
5968 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
5969
5970         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
5971         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
5972         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
5973         directives.
5974
5975 2010-07-05  Ira Rosen  <irar@il.ibm.com>
5976
5977         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
5978         statements that are not vectorized.
5979         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
5980         in INSIDE_COST.
5981
5982 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
5983
5984         PR bootstrap/44820
5985         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
5986
5987 2010-07-05  Richard Guenther  <rguenther@suse.de>
5988
5989         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
5990         RESULT_DECLs properly.
5991
5992 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
5993
5994         PR rtl-optimization/44695
5995         * config/i386/i386.md (extract_code): Removed.
5996         (<u>divmodqi4): Likewise.
5997         (divmodqi4): New.
5998         (udivmodqi4): Likewise.
5999         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
6000         (udivmodhiqi3): Likewise.
6001
6002 2010-07-04  Jan Hubicka  <jh@suse.cz>
6003
6004         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
6005
6006 2010-07-04  Jan Hubicka  <jh@suse.cz>
6007
6008         * cgraphunit.c (init_cgraph): Only initialize dump file if it
6009         is not already initialized.
6010
6011 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
6012
6013         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
6014         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
6015         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
6016         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
6017         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
6018         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
6019         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
6020         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
6021         (sync_new_nand_optab): Redefine as macros.
6022         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
6023         Delete.
6024         (direct_optab_index): New enum.
6025         (direct_optab_d): New structure.
6026         (direct_optab): New typedef.
6027         (direct_optab_table): Declare.
6028         (direct_optab_handler, set_direct_optab_handler): New functions.
6029         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
6030         (sync_lock_release_optab): New macros.
6031         * optabs.c (direct_optab_table): New variable.
6032         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
6033         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
6034         cmpstr_optab and cmpstrn_optab.
6035         (emit_conditional_move): Likewise for movcc_optab.
6036         (can_conditionally_move_p): Likewise for movcc_gen_code.
6037         (init_insn_codes): Clear direct_optab_table.
6038         (init_optabs): Don't initialize the new "direct optabs" here.
6039         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
6040         vcond_gen_code.
6041         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
6042         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
6043         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
6044         (expand_sync_operation): Likewise other sync_*_optabs.
6045         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
6046         to sync_compare_and_swap_optab.
6047         (expand_sync_lock_test_and_set): Use direct_optab_handler for
6048         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
6049         to the names of both.
6050         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
6051         cmpstr_optab and cmpstrn_optab.
6052         (expand_builtin_lock_release): Likewise sync_lock_release.
6053         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
6054         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
6055         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
6056         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
6057         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
6058         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
6059         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
6060         (sync_lock_test_and_set, sync_lock_release): Delete.
6061         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
6062         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
6063         * genopinit.c (optabs): Use set_direct_optab_handler for the new
6064         macro optabs.
6065         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
6066         the "optab" local variable.  Use direct_optab_handler for optab and
6067         sync_compare_and_swap_optab.
6068         * reload1.c (reload_in_optab, reload_out_optab): Delete.
6069         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
6070         reload_in_optab and reload_out_optab.
6071         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
6072         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
6073         * config/pa/pa.c (pa_secondary_reload): Likewise.
6074         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
6075         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
6076         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
6077         (VMSupportsCS8_builtin): Likewise.
6078
6079 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
6080
6081         * optabs.h (optab_handlers): Change type of insn_code to int.
6082         (optab_handler, set_optab_handler, convert_optab_handler)
6083         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
6084         CODE_FOR_nothing".
6085         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
6086         (init_insn_codes): Zero both the above arrays.
6087         (init_optabs): Never call init_insn_codes first time around.
6088
6089 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
6090
6091         * optabs.h (optab_handler, convert_optab_handler): Turn into
6092         inline functions that return an insn code.
6093         (set_optab_handler, set_convert_optab_handler): New functions.
6094         * builtins.c: Replace optab_handler(X)->insn_code with
6095         optab_handler or set_optab_handler thoughout.  Likewise
6096         convert_optab_handler(X)->insn_code with convert_optab_handler
6097         and set_convert_optab_handler.
6098         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
6099         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
6100         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
6101         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
6102         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
6103         config/spu/spu.c: Likewise.
6104
6105 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
6106
6107         PR target/44531
6108         * config.gcc (sh*-*-*): Use regular expressions instead of
6109         the 'i' modifier for sed substitutions.
6110
6111 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
6112
6113         * gimple.c (gimple_body): Comments added.
6114
6115 2010-07-04  Richard Guenther  <rguenther@suse.de>
6116
6117         PR middle-end/44809
6118         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
6119         of an INDIRECT_REF.
6120
6121 2010-07-04  Richard Guenther  <rguenther@suse.de>
6122
6123         PR tree-optimization/44479
6124         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
6125         extra SSA name copy statements which preserves points-to
6126         information.
6127         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6128         Copy points-to information for all pointers.  Properly handle
6129         MEM_REFs.
6130         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
6131         copy statements.
6132         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
6133         dependency.
6134
6135 2010-07-04  Richard Guenther  <rguenther@suse.de>
6136
6137         PR middle-end/44785
6138         * tree-inline.c (initialize_inlined_parameters): Do not
6139         re-use pointer-map slot over remap_type call.
6140
6141 2010-07-04  Richard Guenther  <rguenther@suse.de>
6142
6143         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
6144
6145 2010-07-04  Richard Guenther  <rguenther@suse.de>
6146
6147         PR tree-optimization/44656
6148         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
6149         again after value-replacing in the defintions lhs.
6150
6151 2010-07-04  Ira Rosen  <irar@il.ibm.com>
6152             Revital Eres  <eres@il.ibm.com>
6153
6154         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
6155         Document new arguments.
6156         * doc/tm.texi: Regenerate.
6157         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
6158         Handle unaligned store.
6159         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
6160         * target.def (builtin_vectorization_cost): Add new arguments.
6161         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
6162         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
6163         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
6164         (vect_vfa_segment_size): Fix indentation.
6165         * tree-vectorizer.h (struct _vect_peel_info): New.
6166         (struct _vect_peel_extended_info): New.
6167         (struct _loop_vec_info): Add new field for peeling hash table and a
6168         macro for its access.
6169         (VECT_MAX_COST): Define.
6170         (vect_get_load_cost): Declare.
6171         (vect_get_store_cost, vect_get_known_peeling_cost,
6172         vect_get_single_scalar_iteraion_cost): Likewise.
6173         (vect_supportable_dr_alignment): Add new argument.
6174         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
6175         field.
6176         (destroy_loop_vec_info): Free peeling hash table.
6177         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
6178         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
6179         vect_analyze_slp. Fix indentation.
6180         (vect_get_single_scalar_iteraion_cost): New function.
6181         (vect_get_known_peeling_cost): Likewise.
6182         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
6183         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
6184         statement. Move outside cost calculation inside unknown peeling case.
6185         Call vect_get_known_peeling_cost for known amount of peeling.
6186         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
6187         reference to the print message of forced alignment.
6188         (vect_verify_datarefs_alignment): Update call to
6189         vect_supportable_dr_alignment.
6190         (vect_get_data_access_cost): New function.
6191         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
6192         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
6193         vect_peeling_hash_choose_best_peeling): Likewise.
6194         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
6195         to store all the accesses in the loop and find best possible access to
6196         align using peeling for known alignment case. For unknown alignment
6197         check if stores are preferred or if peeling is worthy.
6198         (vect_find_same_alignment_drs): Analyze pairs of loads too.
6199         (vect_supportable_dr_alignment): Add new argument and check aligned
6200         accesses according to it.
6201         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
6202         (cost_for_stmt): Call vect_get_stmt_cost.
6203         (vect_model_simple_cost): Likewise.
6204         (vect_model_store_cost): Call vect_get_stmt_cost. Call
6205         vect_get_store_cost to calculate the cost of the statement.
6206         (vect_get_store_cost): New function.
6207         (vect_model_load_cost): Call vect_get_stmt_cost. Call
6208         vect_get_load_cost to calculate the cost of the statement.
6209         (vect_get_load_cost): New function.
6210         (vectorizable_store): Update call to vect_supportable_dr_alignment.
6211         (vectorizable_load): Likewise.
6212         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
6213         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
6214         arguments. Handle unaligned store.
6215         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
6216         (rs6000_builtin_support_vector_misalignment): Return true for word and
6217         double word alignments for VSX.
6218         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
6219         vect_supportable_dr_alignment and builtin_vectorization_cost.
6220
6221 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6222
6223         PR target/44597
6224         * config/pa/predicates.md (prefetch_cc_operand): Remove.
6225         (prefetch_nocc_operand): Likewise.
6226         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
6227         (prefetch_20): New insn.
6228         (prefetch_cc): Remove.
6229         (prefetch_nocc): Likewise.
6230
6231 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6232
6233         * expr.c (vector_mode_valid_p): Move to c-common.c.
6234         * expr.h (vector_mode_valid_p): Do not declare here.
6235         * system.h: Poison GCC_EXPR_H in front-ends.
6236         * Makefile.in: Update dependencies.
6237
6238 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6239
6240         PR target/44705
6241         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
6242
6243 2010-07-03  Jan Hubicka  <jh@suse.cz>
6244
6245         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
6246         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
6247         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
6248         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
6249         Likewise.
6250
6251         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
6252         Update timevars.V
6253         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
6254         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
6255         TV_IPA_LTO_DECL_OUT): New.
6256         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
6257
6258 2010-07-03  Jan Hubicka  <jh@suse.cz>
6259
6260         * ipa-inline.c (update_edge_key): Break out from ...
6261         update_callers_keys): ... here;
6262         (update_callee_keys): Update only the edges from caller to callee.
6263         (update_all_calle_keys): Do what update_calle_keys did.
6264         (decide_inlining_of_small_functions): Avoid recomputing of all
6265         callees when badness increase.
6266
6267 2010-07-03  Jie Zhang  <jie@codesourcery.com>
6268
6269         * config/arm/arm.c (arm_attr_length_move_neon): New.
6270         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
6271         * config/arm/neon.md (define_mode_attr V_slen): Remove.
6272         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
6273         to compute length attribute.
6274
6275 2010-07-03  Jie Zhang  <jie@codesourcery.com>
6276
6277         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
6278         as predicate for operand 1 and remove its constraint.
6279         * config/arm/predicates.md (vfp_register_operand): New.
6280         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
6281         (*push_fp_multi): Likewise.
6282
6283 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
6284
6285         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
6286
6287 2010-07-03  Jan Hubicka  <jh@suse.cz>
6288
6289         * config/i386/i386.c (override_options): Revert accidental commit.
6290
6291 2010-07-02  Le-Chun Wu  <lcwu@google.com>
6292
6293         PR c++/44128
6294         * doc/invoke.texi: Update documentation of -Wshadow.
6295
6296 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
6297             Julian Brown  <julian@codesourcery.com>
6298             Sandra Loosemore <sandra@codesourcery.com>
6299
6300         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
6301         comparisons.  Adjust to take both operands.
6302         (arm_select_cc_mode): Handle DImode comparisons.
6303         (arm_gen_compare_reg): Generate a scratch register for DImode
6304         comparisons which require one.  Use xor for Thumb equality checks.
6305         (arm_const_double_by_immediates): New.
6306         (arm_print_operand): Allow 'Q' and 'R' for constants.
6307         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
6308         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
6309         arm_canonicalize_comparison.
6310         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
6311         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
6312         prototype.
6313         (arm_const_double_by_immediates): Declare.
6314         * config/arm/constraints.md (Di): New constraint.
6315         * config/arm/predicates.md (arm_immediate_di_operand)
6316         (arm_di_operand, cmpdi_operand): New.
6317         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
6318         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
6319         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
6320         (cstoredi4): Handle non-Cirrus also.
6321
6322 2010-07-02  Julian Brown  <julian@codesourcery.com>
6323             Sandra Loosemore <sandra@codesourcery.com>
6324
6325         PR target/43703
6326         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
6327         (smax<mode>3): Disable for NEON float modes when
6328         flag_unsafe_math_optimizations is false.
6329         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
6330         (*mul<mode>3_neon)
6331         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
6332         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
6333         for NEON float modes when flag_unsafe_math_optimizations is false.
6334         (quad_halves_<code>v4sf): Only enable if
6335         flag_unsafe_math_optimizations is true.
6336         * doc/invoke.texi (ARM Options): Add note about floating point
6337         vectorization requiring -funsafe-math-optimizations.
6338
6339 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
6340             Julian Brown  <julian@codesourcery.com>
6341
6342         * config/arm/neon.md (UNSPEC_VABA): Delete.
6343         (UNSPEC_VABAL): Delete.
6344         (UNSPEC_VABS): Delete.
6345         (UNSPEC_VMUL_N): Delete.
6346         (adddi3_neon): New.
6347         (subdi3_neon): New.
6348         (mul<mode>3add<mode>_neon): Make the pattern named.
6349         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
6350         (neon_vadd<mode>): Replace with define_expand, and move the remaining
6351         unspec parts...
6352         (neon_vadd<mode>_unspec): ...to this.
6353         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
6354         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
6355         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
6356         (neon_vaba<mode>): Rewrite in terms of vabd.
6357         (neon_vabal<mode>): Rewrite in terms of vabdl.
6358         (neon_vabs<mode>): Rewrite without unspec.
6359         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
6360         (*arm_subdi3): Likewise.
6361         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
6362         No_op attribute to disable assembly output checks.
6363         * config/arm/arm_neon.h: Regenerated.
6364         * doc/arm-neon-intrinsics.texi: Regenerated.
6365
6366 2010-07-02  Jan Hubicka  <jh@suse.cz>
6367
6368         * ipa-split.c (split_function): For aggregate values, set the return
6369         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
6370         *<retval> = fncall.part ().
6371         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
6372
6373 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
6374
6375         * config/arm/neon.md (UNSPEC_VAND): Delete.
6376         (UNSPEC_VBIC): Delete.
6377         (UNSPEC_VCLZ): Delete.
6378         (UNSPEC_VCNT): Delete.
6379         (UNSPEC_VEOR): Delete.
6380         (UNSPEC_VORN): Delete.
6381         (UNSPEC_VORR): Delete.
6382         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
6383         core registers too.
6384         (anddi3_neon): Likewise.
6385         (orndi3_neon): Likewise.
6386         (bicdi3_neon): Likewise.
6387         (xordi3_neon): Likewise.
6388         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
6389         rid of unspec and handle unused operand.
6390         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
6391         * config/arm/predicates.md (imm_for_neon_logic_operand):
6392         Require TARGET_NEON.
6393         (imm_for_neon_inv_logic_operand): Likewise.
6394         * config/arm/arm.md (define_split for logical_binary_operator):
6395         Disable for NEON registers.
6396         (anddi3): Add new define_expand, and rename the insn.  Disable
6397         this insn for NEON, where anddi3_neon now applies.
6398         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
6399         (iordi3): As for anddi3.
6400         (xordi3): Likewise.
6401         * config/arm/neon.ml (Vand): Split DImode variants and mark them
6402         as No_op to disable testing for exact instruction match.
6403         (Vorr): Likewise.
6404         (Veor): Likewise.
6405         (Vbic): Likewise.
6406         (Vorn): Likewise.
6407         * config/arm/arm_neon.h: Regenerated.
6408         * doc/arm-neon-intrinsics.texi: Regenerated.
6409
6410 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
6411
6412         * expr.h (emit_stack_probe): Declare.
6413         * explow.c (emit_stack_probe): Make global.
6414         (anti_adjust_stack_and_probe): Fix comments.
6415         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
6416         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6417         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6418         * config/sparc/sparc.c: Include except.h.
6419         (sparc_emit_probe_stack_range): New function.
6420         (output_probe_stack_range): Likewise.
6421         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
6422         built-in stack checking is enabled.
6423         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
6424         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
6425         (probe_stack_range): New insn.
6426
6427 2010-07-02  Richard Guenther  <rguenther@suse.de>
6428
6429         PR target/43958
6430         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
6431         for argument alignment.
6432
6433 2010-07-02  Jan Hubicka  <jh@suse.cz>
6434
6435         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
6436         walk backwards from entry_bb to check only those basic block of header
6437         that might lead to execution of split part.
6438         (consider_split) ... here.
6439         (find_return_bb): Allow assignment in return BB.
6440         (find_retval): New.
6441         (split_function): Fix name of cloned function; take care of updating
6442         return value in return_bb containing move.
6443
6444 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
6445
6446         PR target/44771
6447         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
6448         used variable insn.
6449
6450 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
6451
6452         * implicit-zee.c (combine_reaching_defs): Fix long lines.
6453         (is_set_with_extension_DI): Delete.
6454         (struct zero_extend_info): New structure.
6455         (add_removable_zero_extend): New function.
6456         (find_removable_zero_extends): Use note_stores to find SETs.
6457         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
6458
6459 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
6460
6461         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
6462         is_miss_rate_acceptable. Pull total_positions computation
6463         out of the loops.  Early return if miss_positions exceeds
6464         the acceptable threshold.
6465         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
6466         is_miss_rate_acceptable after renaming of compute_miss_rate.
6467
6468 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
6469
6470         PR middle-end/44576
6471         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
6472         of 1000) for miss rate if the address diference is greater than or
6473         equal to the cache line size (the two reference will never hit the
6474         same cache line).
6475
6476 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
6477
6478         PR target/42835
6479         * config/arm/arm-modes.def (CC_NOTB): New mode.
6480         * config/arm/arm.c (get_arm_condition_code): Handle it.
6481         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
6482         * config/arm/arm.md (subsi3_compare0_c): New pattern.
6483         (compare_scc): Now a define_and_split.  Add a number of extra
6484         splitters before it.
6485
6486         PR target/42172
6487         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
6488         and ZERO_EXTEND.
6489         (arm_rtx_costs_1): Likewise.
6490         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
6491         * config/arm/arm.md (is_arch6): New attribute.
6492         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
6493         extendqisi2): Tighten the code somewhat, avoiding invalid
6494         RTL to occur in the expander patterns.
6495         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
6496         (thumb1_zero_extendhisi2_v6): Delete.
6497         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
6498         (thumb1_extendhisi2_v6): Delete.
6499         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
6500         (thumb1_extendqisi2_v6): Delete.
6501         (zero_extendhisi2 for register input splitter): New.
6502         (zero_extendqisi2 for register input splitter): New.
6503         (thumb1_extendhisi2 for register input splitter): New.
6504         (extendhisi2 for register input splitter): New.
6505         (extendqisi2 for register input splitter): New.
6506         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
6507         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
6508         and add support for a register alternative requiring a split.
6509         (thumb1_zero_extendqisi2): Likewise.
6510         (arm_zero_extendqisi2): Likewise.
6511         (arm_extendhisi2): Likewise.
6512         (arm_extendqisi2): Likewise.
6513
6514 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
6515
6516         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
6517         instead of an unspec.
6518         (neon_expand_vector_init): Likewise.
6519         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
6520         (UNSPEC_VDUP_LANE): Delete.
6521         (UNSPEC VDUP_N): Delete.
6522         (UNSPEC_VGET_HIGH): Delete.
6523         (UNSPEC_VGET_LANE): Delete.
6524         (UNSPEC_VGET_LOW): Delete.
6525         (UNSPEC_VMVN): Delete.
6526         (UNSPEC_VSET_LANE): Delete.
6527         (V_double_vector_mode): New.
6528         (vec_set<mode>_internal): Make code emitted match that for the
6529         corresponding intrinsics.
6530         (vec_setv2di_internal): Likewise.
6531         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
6532         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
6533         (neon_vset_lane<mode>): Combine double and quad patterns and
6534         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
6535         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
6536         (neon_vdup_n<mode>): Rewrite RTL without unspec.
6537         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
6538         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
6539         with neon_vdup_lanev2di, adjusting the pattern from the latter
6540         to be predicable for consistency.
6541         (neon_vdup_lane<mode>_internal): New.
6542         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
6543         to avoid using an unspec.
6544         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
6545         (neon_vdup_lanev2di): Turn into a define_expand.
6546         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
6547         (neon_vget_high<mode>): Replace with....
6548         (neon_vget_highv16qi): New pattern using canonical RTL.
6549         (neon_vget_highv8hi): Likewise.
6550         (neon_vget_highv4si): Likewise.
6551         (neon_vget_highv4sf): Likewise.
6552         (neon_vget_highv2di): Likewise.
6553         (neon_vget_low<mode>): Replace with....
6554         (neon_vget_lowv16qi): New pattern using canonical RTL.
6555         (neon_vget_lowv8hi): Likewise.
6556         (neon_vget_lowv4si): Likewise.
6557         (neon_vget_lowv4sf): Likewise.
6558         (neon_vget_lowv2di): Likewise.
6559
6560         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
6561         test for this emitting vmov.
6562         (Vset_lane): Likewise.
6563         (Vdup_n): Likewise.
6564         (Vmov_n): Likewise.
6565
6566         * doc/arm-neon-intrinsics.texi: Regenerated.
6567
6568 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
6569
6570         * config/arm/neon.md (vec_extractv2di): Correct error in register
6571         numbering to reconcile with neon_vget_lanev2di.
6572
6573 2010-07-02  Richard Guenther  <rguenther@suse.de>
6574
6575         * tree-ssa-structalias.c (pt_solution_set_var): New function.
6576         * tree-ssa-alias.h (pt_solution_set_var): Declare.
6577         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
6578         points-to information.
6579
6580 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
6581
6582         * config/s390/s390.c (override_options): Adopt prefetching
6583         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
6584
6585 2010-07-02  Jan Hubicka  <jh@suse.cz>
6586
6587         * df-problems.c (df_kill_notes): Do not collect dead  notes.
6588         (df_set_note): Just call add_reg_note.
6589         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
6590         df_create_unused_note): Do not deal with lists of old notes.
6591         (df_note_bb_compute): Likewise.
6592
6593 2010-07-02  Richard Guenther  <rguenther@suse.de>
6594
6595         * tree-ssa-structalias.c (find_func_aliases): Handle
6596         pointer alignment via BIT_AND_EXPR.
6597         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
6598
6599 2010-07-02  Richard Guenther  <rguenther@suse.de>
6600
6601         * tree-data-ref.c (initialize_data_dependence_relation): Handle
6602         mismatching number of dimensions properly.
6603
6604 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6605
6606         PR target/44707
6607         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
6608         (lo_sum (high ...) ...) patterns generated by earlier passes.
6609
6610 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6611
6612         * doc/install.texi (Prerequisites): Document Perl requirement on
6613         Solaris 2.
6614         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
6615
6616 2010-07-02  Richard Guenther  <rguenther@suse.de>
6617
6618         PR middle-end/44777
6619         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
6620
6621 2010-07-02  Jan Hubicka  <jh@suse.cz>
6622
6623         PR middle-end/44706
6624         * predict.c (predict_paths_for_bb): Handle case when control dependence
6625         BB has only abnormal edges.
6626
6627 2010-07-02  Richard Guenther  <rguenther@suse.de>
6628
6629         PR tree-optimization/44748
6630         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
6631         the embedded conversion in MEM_REFs.
6632
6633 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
6634
6635         * reload.c: Include toplev.h.
6636         * recog.c:  Likewise.
6637         * Makefile.in: Adjust dependencies.
6638
6639 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
6640
6641         PR debug/44694
6642         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
6643         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
6644
6645 2010-07-01  Richard Guenther  <rguenther@suse.de>
6646
6647         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
6648         types for offsets.
6649
6650 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
6651
6652         PR target/44732
6653         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
6654         Fix argument types.
6655
6656 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
6657
6658         PR target/44727
6659         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
6660         Make sure operand 0 dies.
6661
6662 2010-07-01  Richard Guenther  <rguenther@suse.de>
6663
6664         PR middle-end/42834
6665         PR middle-end/44468
6666         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
6667         * doc/generic.texi (References to storage): Document MEM_REF.
6668         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
6669         (print_call_name): Likewise.
6670         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
6671         (build_simple_mem_ref_loc): New function.
6672         (mem_ref_offset): Likewise.
6673         * tree.h (build_simple_mem_ref_loc): Declare.
6674         (build_simple_mem_ref): Define.
6675         (mem_ref_offset): Declare.
6676         * fold-const.c: Include tree-flow.h.
6677         (operand_equal_p): Handle MEM_REF.
6678         (build_fold_addr_expr_with_type_loc): Likewise.
6679         (fold_comparison): Likewise.
6680         (fold_unary_loc): Fold
6681         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
6682         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
6683         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
6684         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
6685         (ptr_deref_may_alias_ref_p_1): Likewise.
6686         (ao_ref_base_alias_set): Properly differentiate base object for
6687         offset and TBAA.
6688         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
6689         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
6690         (indirect_refs_may_alias_p): Likewise.
6691         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
6692         chasing code.
6693         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
6694         (call_may_clobber_ref_p_1): Likewise.
6695         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
6696         * expr.c (expand_assignment): Handle MEM_REF.
6697         (store_expr): Handle MEM_REFs from STRING_CSTs.
6698         (store_field): If expanding a MEM_REF of a non-addressable
6699         decl use bitfield operations.
6700         (get_inner_reference): Handle MEM_REF.
6701         (expand_expr_addr_expr_1): Likewise.
6702         (expand_expr_real_1): Likewise.
6703         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
6704         * alias.c (ao_ref_from_mem): Handle MEM_REF.
6705         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
6706         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
6707         (dr_analyze_indices): Likewise.
6708         (dr_analyze_alias): Likewise.
6709         (object_address_invariant_in_loop_p): Likewise.
6710         * gimplify.c (mark_addressable): Handle MEM_REF.
6711         (gimplify_cond_expr): Build MEM_REFs.
6712         (gimplify_modify_expr_to_memcpy): Likewise.
6713         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
6714         (gimple_fold_indirect_ref): Adjust.
6715         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
6716         * tree.def (MEM_REF): New tree code.
6717         * tree-dfa.c: Include toplev.h.
6718         (get_ref_base_and_extent): Handle MEM_REF.
6719         (get_addr_base_and_unit_offset): New function.
6720         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
6721         * gimple-fold.c (may_propagate_address_into_dereference): Handle
6722         MEM_REF.
6723         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
6724         accesses if the array has just one dimension.  Remove always true
6725         parameter.  Do not require type compatibility here.
6726         (maybe_fold_offset_to_component_ref): Remove.
6727         (maybe_fold_stmt_indirect): Remove.
6728         (maybe_fold_reference): Remove INDIRECT_REF handling.
6729         Fold back to non-MEM_REF.
6730         (maybe_fold_offset_to_address): Simplify.  Deal with type
6731         mismatches here.
6732         (maybe_fold_reference): Likewise.
6733         (maybe_fold_stmt_addition): Likewise.  Also handle
6734         &ARRAY + I in addition to &ARRAY[0] + I.
6735         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
6736         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
6737         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
6738         * tree-ssa.c (useless_type_conversion_p): Make most pointer
6739         conversions useless.
6740         (warn_uninitialized_var): Handle MEM_REF.
6741         (maybe_rewrite_mem_ref_base): New function.
6742         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
6743         to SSA form.
6744         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
6745         INDIRECT_REF handling.
6746         (copy_tree_body_r): Handle MEM_REF.
6747         * gimple.c (is_gimple_addressable): Adjust.
6748         (is_gimple_address): Likewise.
6749         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
6750         invariant base are invariant.
6751         (is_gimple_min_lval): Adjust.
6752         (is_gimple_mem_ref_addr): New function.
6753         (get_base_address): Handle MEM_REF.
6754         (count_ptr_derefs): Likewise.
6755         (get_base_loadstore): Likewise.
6756         * gimple.h (is_gimple_mem_ref_addr): Declare.
6757         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
6758         * tree-cfg.c (verify_address): New function, split out from ...
6759         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
6760         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
6761         INDIRECT_REFs.
6762         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
6763         INDIRECT_REF.  Allow conversions.
6764         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
6765         a register does not change its size.
6766         (verify_types_in_gimple_reference): Verify MEM_REF.
6767         (verify_gimple_assign_single): Disallow INDIRECT_REF.
6768         Handle MEM_REF.
6769         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
6770         New.
6771         (mark_address_taken): Handle MEM_REF.
6772         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
6773         (get_asm_expr_operands): Pass opf_not_non_addressable.
6774         (get_expr_operands): Handle opf_[not_]non_addressable.
6775         Handle MEM_REF.  Remove INDIRECT_REF handling.
6776         * tree-vrp.c (check_array_ref): Handle MEM_REF.
6777         (search_for_addr_array): Likewise.
6778         (check_array_bounds): Likewise.
6779         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
6780         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
6781         (ref_always_accessed_p): Likewise.
6782         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
6783         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
6784         Handle MEM_REF.
6785         * cgraphbuild.c (mark_load): Properly check for NULL result
6786         from get_base_address.
6787         (mark_store): Likewise.
6788         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
6789         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
6790         handling for MEM_REF.
6791         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
6792         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
6793         * builtins.c (stabilize_va_list_loc): Use the function ABI
6794         valist type if we couldn't canonicalize the argument type.
6795         Always dereference with the canonical va-list type.
6796         (maybe_emit_free_warning): Handle MEM_REF.
6797         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
6798         memmove to memcpy.
6799         * builtins.c (fold_builtin_memory_op): Use ref-all types
6800         for all memcpy foldings.
6801         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
6802         (build_outer_var_ref): Likewise.
6803         (scan_omp_1_op): Likewise.
6804         (lower_rec_input_clauses): Likewise.
6805         (lower_lastprivate_clauses): Likewise.
6806         (lower_reduction_clauses): Likewise.
6807         (lower_copyprivate_clauses): Likewise.
6808         (expand_omp_atomic_pipeline): Likewise.
6809         (expand_omp_atomic_mutex): Likewise.
6810         (create_task_copyfn): Likewise.
6811         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
6812         Remove old union trick.  Initialize constant offsets.
6813         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
6814         INDIRECT_REF.  Init base_alias_set properly.
6815         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
6816         (vn_reference_fold_indirect): Adjust for MEM_REFs.
6817         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
6818         for ARRAY_REFs.
6819         (may_insert): Remove.
6820         (visit_reference_op_load): Do not test may_insert.
6821         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
6822         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
6823         a field to store the constant offset this op applies.
6824         (run_scc_vn): Adjust prototype.
6825         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
6826         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
6827         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
6828         bother about volatile qualifiers on pointers.
6829         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
6830         * tree-ssa-loop-ivopts.c
6831         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
6832         (strip_offset_1): Likewise.
6833         (find_interesting_uses_address): Replace INDIRECT_REF handling with
6834         MEM_REF handling.
6835         (get_computation_cost_at): Likewise.
6836         * ipa-pure-const.c (check_op): Handle MEM_REF.
6837         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
6838         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
6839         and constants.
6840         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
6841         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
6842         (eliminate_local_variables_1): Likewise.
6843         (create_call_for_reduction_1): Likewise.
6844         (create_loads_for_reductions): Likewise.
6845         (create_loads_and_stores_for_name): Likewise.
6846         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
6847         (ssa_accessed_in_tree): Handle MEM_REF.
6848         (ssa_accessed_in_assign_rhs): Likewise.
6849         (update_type_size): Likewise.
6850         (analyze_accesses_for_call_stmt): Likewise.
6851         (analyze_accesses_for_assign_stmt): Likewise.
6852         (transform_access_sites): Likewise.
6853         (transform_allocation_sites): Likewise.
6854         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
6855         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
6856         not handle INDIRECT_REF.
6857         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
6858         (cond_store_replacement): Likewise.
6859         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
6860         MEM_REF, no not handle INDIRECT_REFs.
6861         (insert_into_preds_of_block): Properly initialize avail.
6862         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
6863         for ARRAY_REFs.  Properly handle reference lookups that
6864         require a bit re-interpretation.
6865         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
6866         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
6867         (build_ref_for_offset_1): Remove.
6868         (build_ref_for_offset): Build MEM_REFs.
6869         (gate_intra_sra): Disable for now.
6870         (sra_ipa_modify_expr): Handle MEM_REF.
6871         (ipa_early_sra_gate): Disable for now.
6872         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
6873         MEM_REF handling.
6874         (disqualify_base_of_expr): Likewise.
6875         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
6876         MEM_REF handling.
6877         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
6878         Use mem_ref_offset.  Remove bogus folding.
6879         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
6880         (make_fancy_name_1): Add support for MEM_REF.
6881         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
6882         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
6883         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
6884         (compute_complex_ancestor_jump_func): Likewise.
6885         (ipa_analyze_virtual_call_uses): Likewise.
6886         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
6887         INDIRECT_REF folding with more generalized MEM_REF folding.
6888         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
6889         (forward_propagate_addr_into_variable_array_index): Also handle
6890         &ARRAY + I in addition to &ARRAY[0] + I.
6891         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
6892         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
6893         creates assignments with overlap.
6894         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
6895         (get_frame_field): Likewise.
6896         (get_nonlocal_debug_decl): Likewise.
6897         (convert_nonlocal_reference_op): Likewise.
6898         (struct nesting_info): Add mem_refs pointer-set.
6899         (create_nesting_tree): Allocate it.
6900         (convert_local_reference_op): Insert to be folded mem-refs.
6901         (fold_mem_refs): New function.
6902         (finalize_nesting_tree_1): Perform defered folding of mem-refs
6903         (free_nesting_tree): Free the pointer-set.
6904         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
6905         (vectorizable_load): Likewise.
6906         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
6907         (propagate_with_phi): Likewise.
6908         * tree-object-size.c (addr_object_size): Handle MEM_REFs
6909         instead of INDIRECT_REFs.
6910         (compute_object_offset): Handle MEM_REF.
6911         (plus_stmt_object_size): Handle MEM_REF.
6912         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
6913         for &MEM_REF.
6914         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
6915         (symbol_marked_for_renaming): Likewise.
6916         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
6917         (fold-const.o): Add $(TREE_FLOW_H).
6918         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
6919         (find_func_clobbers): Likewise.
6920         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
6921         (decompose_access): Likewise.
6922         (replace_field_acc): Likewise.
6923         (replace_field_access_stmt): Likewise.
6924         (insert_new_var_in_stmt): Likewise.
6925         (get_stmt_accesses): Likewise.
6926         (reorg_structs_drive): Disable.
6927         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
6928         (ix86_canonical_va_list_type): Likewise.
6929
6930 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
6931
6932         PR other/44566
6933         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
6934         * target.def (struct gcc_target): Replace enum reg_class with
6935         reg_class_t in hook argument / return types.
6936         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
6937         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
6938         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
6939         * targhooks.h (default_branch_target_register_class): Likewise.
6940         (default_ira_cover_classes, default_secondary_reload): Likewise.
6941         (default_memory_move_cost, default_register_move_cost): Likewise.
6942         * targhooks.c (default_branch_target_register_class): Likewise.
6943         (default_ira_cover_classes, default_secondary_reload): Likewise.
6944         (default_memory_move_cost, default_register_move_cost): Likewise.
6945         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
6946         * bt-load.c (branch_target_load_optimize): Likewise.
6947         * ira.c (setup_cover_and_important_classes): Likewise.
6948         * ira-costs.c (copy_cost): Likewise.
6949         * reload1.c (emit_input_reload_insns): Likewise.
6950         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
6951         * config/frv/frv.c (frv_secondary_reload): Likewise.
6952         * config/s390/s390.c (s390_secondary_reload): Likewise.
6953         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
6954         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
6955         (ix86_register_move_cost): Likewise.
6956         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
6957         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
6958         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
6959         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
6960         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
6961         (rs6000_ira_cover_classes): Likewise.
6962         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
6963         * config/picochip/picochip-protos.h (picochip_secondary_reload):
6964         Likewise.
6965         * config/pa/pa.c (pa_secondary_reload): Likewise.
6966         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
6967         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
6968         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
6969         * doc/tm.texi: Regenerate.
6970
6971 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
6972
6973         PR bootstrrap/44726
6974         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
6975         use.
6976         (build_alias_set_optimal_p): Likewise.
6977         (build_base_obj_set_for_drs): Likewise.
6978
6979 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
6980
6981         * target.def: Remove comment about licensing problems of function
6982         declarations.
6983
6984         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
6985         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
6986         * doc/tm.texi: Regenerate.
6987
6988         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
6989         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
6990
6991         * target.def (enum_va_list_p): Use DEFHOOK.
6992         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
6993         Rename ptype to ptree.
6994         * doc/tm.texi: Regenerate.
6995
6996         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
6997         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
6998         * doc/tm.texi: Regenerate.
6999
7000         * target.def (memory_move_cost): Use DEFHOOK.
7001         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
7002         Rename regclass AKA class to rclass.
7003         * doc/tm.texi: Regenerate.
7004
7005         * target.def (pragma_parse): Use DEFHOOK.
7006         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
7007         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
7008         * doc/tm.texi: Regenerate.
7009
7010         * target.def (pass_by_reference): Use DEFHOOK.
7011         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
7012         * doc/tm.texi: Regenerate.
7013
7014         * target.def (resolve_overloaded_builtin): Rename params to arglist.
7015         Use DEFHOOK.
7016         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
7017         * doc/tm.texi: Regenerate.
7018
7019         * target.def (return_pops_args): Use DEFHOOK.
7020         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
7021         Rename stack-size to size.
7022         * doc/tm.texi: Regenerate.
7023
7024         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
7025         last-sched_cycle to last_clock, cur_cycle to clock.
7026         * doc/tm.texi.in: Use @hook.
7027         * doc/tm.texi: Regenerate.
7028
7029         * target.def (print_operand, print_operand_address): Update comment.
7030         (print_operand_punct_valid_p): Likewise.
7031
7032 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7033
7034         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
7035         to rtl.h.
7036         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
7037         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
7038         * rtl-error.h: New.
7039         * regrename.c: Do not include toplev.h. Include rtl-error.h.
7040         * rtl-error.c: Likewise.
7041         * reload.c: Likewise.
7042         * recog.c:  Likewise.
7043         * sel-sched.c: Likewise.
7044         * function.c: Likewise.
7045         * reg-stack.c: Likewise.
7046         * cfgrtl.c: Likewise.
7047         * reload1.c: Likewise.
7048         * final.c: Include rtl-error.
7049         * Makefile.in: Adjust dependencies.
7050
7051 2010-06-30  Jan Hubicka  <jh@suse.cz>
7052
7053         PR middle-end/PR44706
7054         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
7055         to return the value.
7056
7057 2010-06-30  Michael Matz  <matz@suse.de>
7058
7059         PR bootstrap/44699
7060         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
7061         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
7062         a gimple reg, attach the original VDEF to the last store in the
7063         sequence.
7064
7065 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
7066
7067         PR other/44034
7068         * config/darwin.c (darwin_override_options): Use renamed
7069         targetm.asm_out.emit_unwind_label.
7070
7071 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
7072
7073         PR tree-optimization/39799
7074         * tree-inline.c (remap_ssa_name): Initialize variable only if
7075         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
7076
7077 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
7078
7079         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
7080
7081 2010-06-30  Richard Guenther  <rguenther@suse.de>
7082
7083         PR target/44722
7084         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
7085         against oscillation with reverse peephole2.
7086
7087 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
7088
7089         PR target/44721
7090         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
7091         Fix last commit.
7092
7093 2010-06-30  Nick Clifton  <nickc@redhat.com>
7094
7095         * config/rx/rx-modes.def: New file.
7096         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
7097         (CC_REGNUM): Define.
7098         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
7099         register.
7100         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
7101         (SELECT_CC_MODE): Define.
7102         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
7103         (reg:CC CC_REG) instead of (cc0).
7104         (attr "cc"): Delete.
7105         (cbranchsi4): Do not split compare and branch here. Instead move
7106         it to...
7107         (cbranchsi4_<code>): ... here.  New patterns.
7108         (cmpsi): Call rx-compare_redundant to find out if it is necessary
7109         to emit the compare instruction.
7110         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
7111         cc_status flags.
7112         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
7113         FIRST_PSEUDO_REGNUM.
7114         (rx_expand_prologue, rx_expand_epilogue): Likewise.
7115         (rx_notice_update_cc): Delete.
7116         (rx_cc_modes_compatible): New function.
7117         (flags_needed_for_conditional): New function.
7118         (flags_from_mode): New function.
7119         (rx_compare_redundant): New function - scans backwards through
7120         insn list to find out if condition flags are already set correctly.
7121         (TARGET_CC_MODES_COMPATIBLE): Define.
7122         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
7123
7124         * config/rx/rx.h (BRANCH_COST): Define.
7125         (REGISTER_MOVE_COST): Define.
7126         * config/rx/predicates (rx_source_operand): Allow all constant types.
7127         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
7128         (tstsi4): New pattern.
7129         * config/rx/rx.c (rx_memory_move_cost): Define.
7130         (TARGET_MEMORY_MOVE_COST): Define.
7131
7132 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7133
7134         * tree.h (block_may_fallthru): Declare here.
7135         * tree-flow.h (block_may_fallthru): Do not declare here.
7136         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
7137         bitmap.h
7138         * Makefile.in (c-typeck.o): Update dependencies.
7139
7140 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
7141
7142         PR debug/44694
7143         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
7144         * cselib.c (cfa_base_preserved_regno): New static variable.
7145         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
7146         of REGNO (cfa_base_preserved_val->locs->loc).
7147         (cselib_preserve_cfa_base_value): Add regno argument, set
7148         cfa_base_preserved_regno to it.
7149         (cselib_invalidate_regno): Allow removal of registers other than
7150         cfa_base_preserved_regno from cfa_base_preserved_val.
7151         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
7152         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
7153         of MEM addresses, if not on LHS.
7154         (reverse_op): Don't add reverse ops for cfa_base_rtx.
7155         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
7156
7157 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
7158
7159         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
7160         static variables.
7161         (peep2_buf_position): New static function.
7162         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
7163         peephole2_optimize): Use it.
7164         (peep2_attempt, peep2_update_life): New static functions, broken out
7165         of peephole2_optimize.
7166         (peep2_fill_buffer): New static function.
7167         (peephole2_optimize): Change the main loop to try to fill the buffer
7168         with the maximum number of insns before matching them against
7169         peepholes.  Use a forward scan.  Remove special case for targets with
7170         conditional execution.
7171         * genrecog.c (change_state): Delete dead code.
7172         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
7173         Rewrite so as not to expect the second insn to have had a peephole
7174         applied yet.
7175
7176 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7177
7178         * genhooks.c (emit_findices): Cast field precision to int.
7179         (emit_documentation): Likewise.
7180
7181 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
7182
7183         PR tree-optimization/43801
7184         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
7185         if old_decl was DECL_ONE_ONLY.
7186
7187         PR debug/44668
7188         * dwarf2out.c (add_accessibility_attribute): New function.
7189         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
7190         instead of adding DW_AT_accessibility manually.
7191         (gen_enumeration_type_die, gen_struct_or_union_type_die,
7192         gen_typedef_die): Use it.
7193
7194 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7195
7196         * vmsdbgout.c (full_name): Just output the file name if not native.
7197
7198 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7199
7200         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
7201         (funcnam_table): New static table.
7202         (funcnum_table): New static table.
7203         (write_rtnbeg): Write value saved in funcnum_table.
7204         (write_rtnend): Write value saved in funcnum_table.
7205         (vmsdbgout_begin_function): Save current function info in
7206         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
7207         (vmsdbgout_finish): Iterate over funcnum_table.
7208
7209 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7210
7211         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
7212         (vmsdbgout_type_decl): Declare
7213         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
7214         (FUNC_EPILOGUE_LABEL): New macro
7215         (vmsdbgout_begin_epilogue): New function.
7216         (vmsdbgout_type_decl): New function.
7217
7218 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7219
7220         * vmsdbg.h: Update copyright.
7221
7222 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7223
7224         * vmsdbg.h (DST_K_TBG): New DST constant.
7225         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
7226         (write_modbeg): Cast module_language to avoid warning.
7227         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
7228
7229 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
7230
7231         PR other/44034
7232         * target.def, doc/tm.texi.in, genhooks.c: New files.
7233         * target.h: Instead of defining individual hook members,
7234         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
7235         include target.def.
7236         * target-def.h: Instead of defining individual hook initializers,
7237         include target-hooks-def.h.
7238         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
7239         targetm.live_on_entry -> targetm.extra_live_on_entry
7240         targetm.sched.md_finish ->targetm.sched.finish
7241         targetm.sched.md_init -> targetm.sched.init
7242         targetm.sched.md_init_global -> targetm.sched.init_global
7243         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
7244         targetm.asm_out.except_table_label ->
7245           targetm.asm_out.emit_except_table_label
7246         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
7247         targetm.target_help -> targetm.help
7248         targetm.vectorize.builtin_support_vector_misalignment ->
7249           targetm.vectorize.support_vector_misalignment
7250         targetm.file_start_app_off -> targetm.asm_file_start_app_off
7251         targetm.file_start_file_directive ->
7252          targetm.asm_file_start_file_directive
7253         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
7254         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
7255         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
7256         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
7257           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
7258         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
7259           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
7260         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
7261         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
7262         * Makefile.in (TARGET_H): Depend on target.def.
7263         (TARGET_DEF_H): Depend on target-hooks-def.h.
7264         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
7265         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
7266         * doc/tm.texi: Regenerate.
7267
7268         * Makefile.in (s-tm-texi): Remove stray tab / rule.
7269
7270         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
7271         (targetm.sched.init): Likewise.
7272
7273 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7274
7275         PR bootstrap/44713
7276         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
7277         (function_arg_advance_32): Const-ify TYPE parameter.
7278         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
7279         (ix86_function_arg_advance): Change type of NAMED to bool.
7280         (function_arg_32): Const-ify CUM and TYPE parameters.
7281         (function_arg_64): Likewise.  Change type of NAMED to bool.
7282         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
7283         to bool.
7284         (ix86_function_arg): Change type of NAMED to bool.
7285         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
7286         last argument as a bool.
7287
7288 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
7289
7290         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
7291         (OVERRIDE_OPTIONS): Add note of obsolescence.
7292         Replace references with references to TARGET_OPTION_OVERRIDE.
7293         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
7294          the macro).
7295         * targhooks.c (default_target_option_override): New function.
7296         * targhooks.h (default_target_option_override): Declare.
7297         * target.h (struct gcc_target): Add override member to
7298         target_option member.
7299         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
7300         targetm.target_option.override call.
7301         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
7302         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
7303
7304 2010-06-29  Jan Hubicka  <jh@suse.cz>
7305
7306         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
7307
7308 2010-06-29  Jan Hubicka  <jh@suse.cz>
7309
7310         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
7311         unreachable.
7312         (rebuild_frequencies): New function.
7313         * predict.h (rebuild_frequencies): Declare.
7314         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
7315         entry block and edge reaching new_entry.
7316         (tree_function_versioning): When doing partial cloning, rebuild
7317         frequencies when done.
7318         * passes.c (execute_function_todo): Use rebild_frequencies.
7319
7320 2010-06-29  Richard Guenther  <rguenther@suse.de>
7321
7322         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
7323         * tree-flow.h (enum noalias_state): Remove.
7324         (struct var_ann_d): Remove noalias_state member.
7325
7326 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
7327
7328         PR target/43902
7329         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
7330         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
7331         (maddhidi4): Likewise.
7332
7333         Revert parts of the change for PR25130.
7334         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
7335         MEM_ALIAS_SET.
7336
7337 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7338
7339         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
7340         targetm.calls.function_incoming_arg, and
7341         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
7342         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
7343         * target.h (struct gcc_target): Add function_arg_advance,
7344         function_arg, and function_incoming_arg fields.
7345         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
7346         (TARGET_FUNCTION_INCOMING_ARG): Define.
7347         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
7348         and TARGET_FUNCTION_INCOMING_ARG.
7349         * targhooks.h (default_function_arg_advance): Declare.
7350         (default_function_arg, default_function_incoming_arg): Declare.
7351         * targhooks.c (default_function_arg_advance): New function.
7352         (default_function_arg, default_function_incoming_arg): New function.
7353         * config/i386/i386.c (function_arg_advance): Rename to...
7354         (ix86_function_arg_advance): ...this.  Make static.
7355         (function_arg): Rename to...
7356         (ix86_function_arg): ...this.  Make static.
7357         (TARGET_FUNCTION_ARG_ADVANCE): Define.
7358         (TARGET_FUNCTION_ARG): Define.
7359         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
7360         (FUNCTION_ARG): Delete.
7361         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
7362         (function_arg): Delete prototype.
7363
7364 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7365
7366         * reginfo.c (init_reg_sets_1): Adjust comments.
7367         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
7368         * calls.c (prepare_call_address): Likewise.
7369         (emit_call_1): Use targetm.calls.return_pops_args.
7370         (expand_call): Likewise.
7371         * function.c (assign_parms): Likewise.
7372         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
7373         * target.h (struct gcc_target) [struct calls]: Add
7374         return_pops_args field.
7375         * targhooks.h (default_return_pops_args): Declare.
7376         * targhooks.c (default_return_pops_args): Define.
7377         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
7378         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
7379         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
7380         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
7381         documentation.
7382         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
7383         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
7384         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
7385         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
7386         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
7387         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
7388         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
7389         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
7390         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
7391         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
7392         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
7393         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
7394         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
7395         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
7396         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
7397         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
7398         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
7399         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
7400         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
7401         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
7402         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
7403         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
7404         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
7405         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
7406         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
7407         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
7408         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
7409         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
7410         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
7411         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
7412         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
7413         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
7414         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
7415         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
7416         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
7417         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
7418         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
7419         * config/i386/i386.c (ix86_return_pops_args): Make static.
7420         Constify arguments.
7421         (TARGET_RETURN_POPS_ARGS): Define.
7422         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
7423         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
7424         (TARGET_RETURN_POPS_ARGS): Define.
7425         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
7426         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
7427         (TARGET_RETURN_POPS_ARGS): Define.
7428
7429 2010-06-29  Richard Guenther  <rguenther@suse.de>
7430
7431         PR middle-end/44667
7432         * tree-inline.c (initialize_inlined_parameters): Make sure
7433         to remap the inlined parameter variable substitutions types.
7434
7435 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
7436
7437         PR rtl-optimization/44659
7438         * combine.c (make_compound_operation) <SUBREG>: Do not return the
7439         result of force_to_mode if it partially re-expanded the compound.
7440
7441 2010-06-28  Jan Hubicka  <jh@suse.cz>
7442
7443         PR middle-end/44671
7444         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
7445         RESULT_DECL.
7446
7447 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
7448
7449         * double-int.h (force_fit_type_double): Remove declaration.
7450         * double-int.c (force_fit_type_double): Move to tree.c.
7451         * tree.h (force_fit_type_double): Declare.
7452         * tree.h (force_fit_type_double): Moved from double-int.c. Use
7453         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
7454         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
7455         * convert.c (convert_to_pointer): Adjust call to
7456         force_fit_type_double.
7457         * tree-vrp.c (extract_range_from_assert,
7458         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
7459         * fold-const.c: Update comment.
7460         (int_const_binop, fold_convert_const_int_from_int,
7461         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
7462         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
7463         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
7464         round_up_loc): Adjust call to force_fit_type_double.
7465
7466 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
7467
7468         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
7469
7470 2010-06-28  Martin Jambor  <mjambor@suse.cz>
7471
7472         * tree-sra.c (convert_callers): New parameter, change fndecls of
7473         recursive calls.
7474         (modify_function): Pass the old decl to convert_callers.
7475
7476 2010-06-28  Martin Jambor  <mjambor@suse.cz>
7477
7478         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
7479         ipa_check_create_node_params and ipa_initialize_node_params with
7480         checking asserts they are not necessary.
7481
7482 2010-06-28  Jan Hubicka  <jh@suse.cz>
7483
7484         PR tree-optimization/44687
7485         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
7486
7487 2010-06-28  Martin Jambor  <mjambor@suse.cz>
7488
7489         PR c++/44535
7490         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
7491         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
7492         instead of BINFO_BASE_BINFO.
7493
7494 2010-06-28  Michael Matz  <matz@suse.de>
7495
7496         PR middle-end/44592
7497         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
7498         proper VDEF chain for intermediate stores in the sequence.
7499
7500 2010-06-28  Jan Hubicka  <jh@suse.cz>
7501
7502         PR tree-optimization/44357
7503         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
7504         uninlinable functions.
7505
7506 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
7507
7508         * config.gcc (powerpc*-*-*): Handle titan.
7509         * config/rs6000/rs6000.c (titan_cost): New costs.
7510         (rs6000_override_options): Add "titan" to processor_target_table.
7511         Add Titan to branch alignment logic.
7512         Correctly set rs6000_cost for titan.
7513         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
7514         * config/rs6000/titan.md: New file.
7515         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
7516
7517 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
7518
7519         * tree-browser.c (TB_history_stack): Convert to a VEC.
7520         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
7521         (TB_history_prev): Likewise.
7522
7523 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
7524
7525         * vec.h (vec_heap_free): Add parentheses around free.
7526
7527 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
7528
7529         * system.h: Poison GCC_EXCEPT_H for front-end files.
7530
7531         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
7532         langhook.
7533         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
7534         Define to NULL by default.
7535         * except.h: Define GCC_EXCEPT_H.
7536         (doing_eh): Remove prototype.
7537         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
7538         (lang_protect_cleanup_actions): Remove.
7539         * except.c (lang_protect_cleanup_actions): Remove.
7540         (doing_eh): Remove.
7541         (gen_eh_region): Don't check doing_eh here.
7542         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
7543         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
7544         instead of lang_protect_cleanup_actions.
7545         * omp-low.c (maybe_catch_exception): Likewise.
7546         * Makefile.in: Update dependencies.
7547
7548 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
7549
7550         * cgraph.h (struct varpool_node): new used_from_object_file flag.
7551         (struct cgraph_local_info): new used_from_object_file flag.
7552         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
7553         (cgraph_clone_node): initialize used_from_object_file.
7554         (cgraph_create_virtual_clone): initialize used_from_object_file.
7555         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
7556         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
7557         when compiling with -fwhole-program.
7558         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
7559         internal resolver.
7560         * ipa.c (function_and_variable_visibility): Set externally_visible
7561         flag of varpool_node if used_from_object_file flag is set.
7562         (cgraph_externally_visible_p): check used_from_object_file flag.
7563         * doc/invoke.texi (-fwhole-program option): Change description of
7564         externally_visible attribute accordingly.
7565         * doc/extend.texi (externally_visible): Ditto.
7566
7567 2010-06-27  Jan Hubicka  <jh@suse.cz>
7568
7569         * params.def (max-inline-insns-auto): Default to 40.
7570         * doc/invoke.texi (max-inline-insns-auto): Document the change.
7571
7572 2010-06-27  Jan Hubicka  <jh@suse.cz>
7573
7574         PR middle-end/44671
7575         PR middle-end/44686
7576         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
7577         signature change.
7578         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
7579         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
7580
7581 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
7582
7583         * target.h (struct gcc_target): Add register_move_cost field.
7584         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
7585         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
7586         * targhooks.c (default_register_move_cost): New function.
7587         * targhooks.h (default_register_move_cost): Declare function.
7588         * defaults.h (REGISTER_MOVE_COST): Delete.
7589         * ira-int.h (ira_register_move_cost): Update comment.
7590         * ira.c (ira_register_move_cost): Update comment.
7591         * reload.h (register_move_cost): Declare.
7592         * reginfo.c (register_move_cost): New function.
7593         (move_cost): Update comment.
7594         (init_move_cost, memory_move_secondary_cost): Replace
7595         REGISTER_MOVE_COST with register_move_cost.
7596         * postreload.c (reload_cse_simplify_set): (Ditto.).
7597         * reload.c (find_valid_class, find_reloads): (Ditto.).
7598         * reload1.c (choose_reload_regs): (Ditto.).
7599         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
7600         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
7601         * doc/md.texi (can_create_pseudo_p): Update documentation.
7602
7603         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
7604         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
7605         * config/i386/i386.h (ix86_memory_move_cost): Make static.
7606         (TARGET_MEMORY_MOVE_COST): Define.
7607
7608         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
7609         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
7610         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
7611         (TARGET_MEMORY_MOVE_COST): Define.
7612
7613 2010-06-27  Richard Guenther  <rguenther@suse.de>
7614
7615         PR tree-optimization/44683
7616         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
7617         false edge from the inverted condition.
7618
7619 2010-06-27  Richard Guenther  <rguenther@suse.de>
7620
7621         PR middle-end/44684
7622         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
7623         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
7624         for register LHS.  Or non-store assignments.
7625
7626 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
7627
7628         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
7629         (sparc_emit_set_const64): Likewise.  Remove disabled code.
7630         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
7631         (sparc_emit_set_const64): Likewise.
7632
7633 2010-06-26  Catherine Moore  <clm@codesourcery.com>
7634
7635         * config/mips/mips.md (alu_type): New attribute.
7636         (type): Infer type from alu_type.
7637         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
7638         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
7639         *subsi3_extended, negsi2, negdi2, *low<mode>,
7640         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
7641         xor<mode>3, *nor<mode>3,
7642         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
7643         *zero_extendhi_truncqi):  Set alu_type instead of type.
7644
7645 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
7646
7647         * config/alpha/alpha.c (alpha_need_linkage): Adjust
7648         splay_tree_new_ggc call.
7649         (alpha_use_linkage): Likewise.
7650
7651 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
7652
7653         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
7654         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
7655         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
7656         (static_specs): Remove switches_need_spaces.
7657         (process_command, do_self_spec): Hardcode handling "-o" instead of
7658         checking switches_need_spaces.
7659         * system.h (SWITCHES_NEED_SPACES): Poison.
7660
7661 2010-06-26  Richard Guenther  <rguenther@suse.de>
7662
7663         PR tree-optimization/44393
7664         * tree-loop-distribution.c (generate_loops_for_partition): Fix
7665         stmt removal and VOP renaming.
7666         (generate_memset_zero): Remove redundant stmt updating.
7667         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
7668         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
7669
7670 2010-06-26  Jan Hubicka  <jh@suse.cz>
7671
7672         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
7673         edges comming from header are equivalent.
7674         (visit_bb): Handle PHIs correctly.
7675         * tree-inline.c (copy_phis_for_bb): Be able to copy
7676         PHI from entry edge.
7677         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
7678
7679 2010-06-26  Richard Guenther  <rguenther@suse.de>
7680
7681         PR middle-end/44674
7682         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
7683         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
7684
7685 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
7686
7687         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
7688         add_infile, alloc_switch): New.
7689         (process_command): Remove variable lang_n_infiles.  Process
7690         options in a single pass.  Use new functions for allocating
7691         infiles and switches arrays.  Properly skip operands of
7692         -Xpreprocessor and -Xassembler.
7693
7694 2010-06-26  Jan Hubicka  <jh@suse.cz>
7695
7696         PR middle-end/44671
7697         * cgraphunit.c (cgraph_function_versioning): Remove wrong
7698         cgraph_make_decl_local call; fix typo copying RTL data.
7699
7700 2010-06-25  DJ Delorie  <dj@redhat.com>
7701
7702         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
7703         (m32c_output_aligned_common): Likewise.
7704         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
7705         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
7706         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
7707         (m32c_register_pragmas): Register it.
7708         * config/m32c/m32c.c (m32c_get_pragma_address): New.
7709         (m32c_insert_attributes): Set #pragma address decls volatile.
7710         (pragma_entry_eq): New.
7711         (pragma_entry_hash): New.
7712         (m32c_note_pragma_address): New.
7713         (m32c_get_pragma_address): New.
7714         (m32c_output_aligned_common): New.
7715         * doc/extend.texi: Document the new pragma.
7716
7717         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
7718         also.
7719         * config/m32c/predicates.md (m32c_any_operand): Check the code
7720         instead of memory_operand so as to allow matching volatile MEMs.
7721         (m32c_nonimmediate_operand): Likewise.
7722         (mra_operand): Allow volatiles.
7723
7724 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
7725
7726         PR debug/44610
7727         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
7728         address if the offset is unknown.
7729
7730 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
7731
7732         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
7733         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
7734         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
7735         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
7736         to ia64_start_function. Invoke it.
7737         * config/ia64/ia64.c (ia64_start_function): Call new function
7738         dwarf2out_vms_debug_main_pointer.
7739
7740 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
7741
7742         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
7743         statements computing the true predicate.
7744
7745 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
7746
7747         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
7748         to boolean_true_node.
7749         (reset_bb_predicate): New.
7750         (predicate_bbs): Call reset_bb_predicate.
7751
7752 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
7753
7754         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
7755         (tree_if_conversion): Returns true when something has been changed.
7756         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
7757         changed something.
7758
7759 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
7760
7761         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
7762         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
7763         * tree-if-conv.c: Include dbgcnt.h.
7764         (tree_if_conversion): Use if_conversion_tree to count the number of
7765         if-convertible loops.
7766
7767 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
7768
7769         * common.opt (fprefetch-loop-arrays): Re-define
7770         -fprefetch-loop-arrays as a tri-state option with the initial
7771         value of -1.
7772         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
7773         pass only when flag_prefetch_loop_arrays > 0.
7774         * toplev.c (process_options): Note that, with tri-states,
7775         flag_prefetch_loop_arrays>0 means prefetching is enabled.
7776         * config/i386/i386.c (override_options): Enable prefetching at -O3
7777         for a set of CPUs that sw prefetching is helpful.
7778         (software_prefetching_beneficial_p): New.  Return TRUE if software
7779         prefetching is beneficial for the given CPU.
7780
7781 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
7782
7783         PR rtl-optimization/44326
7784         * implicit-zee.c (find_removable_zero_extends): Replace
7785         INSN_P with NONDEBUG_INSN_P.
7786
7787 2010-06-25  Martin Jambor  <mjambor@suse.cz>
7788
7789         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
7790         (struct ipa_node_params): Removed the modification_analysis_done flag.
7791         (ipa_is_param_modified): Removed.
7792         (ipa_analyze_node): Declare.
7793         (ipa_compute_jump_functions): Remove declaration.
7794         (ipa_count_arguments): Likewise.
7795         (ipa_detect_param_modifications): Likewise.
7796         (ipa_analyze_params_uses): Likewise.
7797         * ipa-prop.c (struct param_analysis_info): New type.
7798         (visit_store_addr_for_mod_analysis): Removed.
7799         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
7800         moved down in the file.
7801         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
7802         (ipa_count_arguments): Made static.
7803         (mark_modified): New function.
7804         (is_parm_modified_before_call): New function.
7805         (compute_pass_through_member_ptrs): New parameter parms_info, call
7806         is_parm_modified_before_call instead of ipa_is_param_modified.
7807         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
7808         it to compute_pass_through_member_ptrs.
7809         (ipa_compute_jump_functions): New parameter parms_info, pass it to
7810         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
7811         on the callee if it is analyzed.  Made static.
7812         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
7813         is_parm_modified_before_call instead of ipa_is_param_modified.
7814         (ipa_analyze_call_uses): New parameter parms_info, pass it to
7815         ipa_analyze_indirect_call_uses.
7816         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
7817         ipa_analyze_call_uses.
7818         (ipa_analyze_params_uses): New parameter parms_info, pass it to
7819         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
7820         (ipa_analyze_node): New function.
7821         (ipa_print_node_params): Do not dump the modified flag.
7822         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
7823         it.  Do not stream the modified parameter flag.
7824         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
7825         it.  Do not stream the modified parameter flag.
7826         * ipa-cp.c (ipcp_analyze_node): Removed.
7827         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
7828         with only a call to ipa_analyze_node.
7829         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
7830         node with only a call to ipa_analyze_node.
7831
7832 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7833
7834         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
7835
7836 2010-06-25  Jan Hubicka  <jh@suse.cz>
7837
7838         * tree-pass.h (pass_split_functions): Declare.
7839         * opts.c (decode_options): Enable function splitting at -O2
7840         * timevar.def (TV_IPA_FNSPLIT): New macro.
7841         * ipa-split.c: New file.
7842         * common.opt (-fpartial-inlining): New flag.
7843         * Makefile.in (ipa-split.o): New object file.
7844         * passes.c (init_optimization_passes): Add ipa-split.
7845         * params.def (partial-inlining-entry-probability): New parameters.
7846         * doc/invoke.texi (-fpartial-inlining): New.
7847
7848 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7849
7850         PR 44665
7851         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
7852         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
7853         (gimplify_expr): Likewise.
7854
7855 2010-06-25  Martin Jambor  <mjambor@suse.cz>
7856
7857         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
7858         statements instead of bailing out on them.
7859         (ipa_analyze_indirect_call_uses): Do not require that loads from the
7860         parameter are in the same BB as the condition.  Update comments.
7861
7862 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
7863
7864         PR middle-end/43866
7865         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
7866         true or always false, return NULL_TREE.
7867         (tree_unswitch_single_loop): Optimize conditions even when reaching
7868         max-unswitch-level parameter.  If num > 0, optimize first all conditions
7869         using entry checks, then do still reachable block discovery and consider
7870         only conditions in still reachable basic blocks in the loop.
7871
7872         PR tree-optimization/44539
7873         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
7874         the call doesn't have LHS, but has VDEF.
7875
7876 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
7877
7878         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
7879         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
7880         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
7881         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
7882         * system.h (MODIFY_TARGET_NAME): Poison.
7883
7884 2010-06-25  Alan Modra  <amodra@gmail.com>
7885
7886         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
7887         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
7888         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
7889         CMODEL_LARGE as default.
7890         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
7891         (offsettable_ok_by_alignment): Delete.
7892         (rs6000_emit_move): Remove mcmodel=medium optimization.
7893
7894 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
7895
7896         With large parts from Jim Wilson:
7897         PR target/43902
7898         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
7899         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
7900         * optabs.c (optab_for_tree_code): Likewise.
7901         (expand_widen_pattern_expr): Likewise.
7902         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
7903         out of execute_optimize_widening_mul.
7904         (convert_plusminus_to_widen): New function.
7905         (execute_optimize_widening_mul): Use the two new functions.
7906         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
7907         Remove code to generate widening multiply-accumulate.  Add support
7908         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
7909         * gimple-pretty-print.c (dump_ternary_rhs): New function.
7910         (dump_gimple_assign): Call it when appropriate.
7911         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
7912         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
7913         (expand_gimple_stmt_1): Likewise.
7914         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
7915         WIDEN_MULT_MINUS_EXPR.
7916         * tree-ssa-operands.c (get_expr_operands): Likewise.
7917         * tree-inline.c (estimate_operator_cost): Likewise.
7918         * gimple.c (extract_ops_from_tree_1): Renamed from
7919         extract_ops_from_tree.  Add new arg for a third operand; fill it.
7920         (gimple_build_assign_stat): Support operations with three operands.
7921         (gimple_build_assign_with_ops_stat): Likewise.
7922         (gimple_assign_set_rhs_from_tree): Likewise.
7923         (gimple_assign_set_rhs_with_ops_1): Renamed from
7924         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
7925         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
7926         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
7927         WIDEN_MULT_MINUS_EXPR.
7928         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
7929         (extract_ops_from_tree_1): Adjust declaration.
7930         (gimple_assign_set_rhs_with_ops_1): Likewise.
7931         (gimple_build_assign_with_ops): Pass NULL for last operand.
7932         (gimple_build_assign_with_ops3): New macro.
7933         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
7934         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
7935         functions.
7936         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
7937         (verify_gimple_assign): Call it.
7938         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
7939         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
7940         functions for dealing with three-operand statements.
7941         * tree.c (commutative_ternary_tree_code): New function.
7942         * tree.h (commutative_ternary_tree_code): Declare it.
7943         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
7944         ternary statements.
7945         (gimple_assign_nonzero_warnv_p): Likewise.
7946         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
7947         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
7948         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
7949         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
7950         (struct hashtable_expr): New member ternary in the union.
7951         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
7952         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
7953         (iterative_hash_hashable_expr): Likewise.
7954         (print_expr_hash_elt): Handle EXPR_TERNARY.
7955         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
7956         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
7957         statements.  Handle GIMPLE_TERNARY_RHS.
7958
7959 2010-06-25  Jan Hubicka  <jh@suse.cz>
7960
7961         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
7962
7963 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
7964
7965         PR c/44517
7966         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
7967         parameters are not good.
7968         (c_parser_parameter_declaration): Error unknown type name if the type
7969         name can't start declaration specifiers.
7970
7971 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
7972
7973         * gcc.c (translate_options): Don't mention +e in comment.
7974         (process_command): Don't handle +e specially.
7975
7976 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
7977
7978         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
7979
7980         * ira-build.c (merge_hard_reg_conflicts): New function.
7981         (create_cap_allocno, copy_info_to_removed_store_destinations,
7982         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
7983         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
7984         (remove_unnecessary_allocnos, remove_low_level_allocnos)
7985         copy_nifo_to_removed_store_destination): Use them.
7986         * ira-lives.c (make_hard_regno_born): New function, split out of
7987         make_regno_born.
7988         (make_allocno_born): Likewise.
7989         (make_hard_regno_dead): New function, split out of make_regno_dead.
7990         (make_allocno_dead): Likewise.
7991         (inc_register_pressure): New function, split out of set_allocno_live.
7992         (dec_register_pressure): New function, split out of clear_allocno_live.
7993         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
7994         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
7995         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
7996         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
7997         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
7998         mark_pseudo_regno_live.
7999         (process_bb_node_lives): Use mark_pseudo_regno_live,
8000         make_hard_regno_born and make_allocno_dead.
8001         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
8002         set_allocno_live, clear_allocno_live): Delete functions.
8003
8004         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
8005         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
8006         functions.
8007         (ira_flattening): Use ira_parent_allocno.
8008         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
8009         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
8010
8011         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
8012         statement.
8013
8014         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
8015         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
8016         minmax_set_iter_cond, minmax_set_iter_next,
8017         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
8018         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
8019         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
8020         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
8021         uses changed.
8022
8023         * ira-int.h (struct live_range, live_range_t): Renamed from struct
8024         ira_allocno_live_range and allocno_live_range_t; all uses changed.
8025         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
8026         All uses changed.
8027
8028 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
8029
8030         * thumb2.md (thumb2_tlobits_cbranch): Delete.
8031         (peephole2 to convert zero_extract/compare of single bit to
8032          lshift/compare): New.
8033
8034 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
8035
8036         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
8037         recursive call and call to 'int_const_binop'.
8038         (build_range_check, fold_cond_expr_with_comparison, unextend,
8039         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
8040         multiple_of_p): Adjust call to const_binop.
8041
8042 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
8043
8044         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
8045         determine size of XFmode operand.
8046         (XFmode extended DFmode push splitter): Ditto.
8047         (XFmode extended SFmode push splitter): Ditto.
8048
8049 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8050
8051         PR target/44588
8052         * config/i386/i386.md (extract_code): New.
8053         (<u>divmodqi4): Likewise.
8054         (divmodhiqi3): Likewise.
8055         (udivmodhiqi3): Likewise.
8056         (<u>divqi3): Remvoved.
8057
8058 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
8059
8060         PR middle-end/44492
8061         * recog.h (struct recog_data): Add is_asm field.
8062         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
8063         present in constraints of inline-asm operand and memory operand
8064         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
8065         (extract_insn): Initialize recog_data.is_asm.
8066         * doc/md.texi (Constraints): Document operand side-effect rules.
8067
8068 2010-06-24  Andi Kleen  <ak@linux.intel.com>
8069
8070         * c-parser.c (c_parser_conditional_expression): Call
8071         warn_for_omitted_condop.
8072         * doc/invoke.texi: Document omitted condop warning.
8073
8074 2010-06-24  Nick Clifton<nickc@redhat.com>
8075
8076         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
8077         insn in the sequence is a jump insn before setting its label.
8078
8079 2010-06-24  Alan Modra  <amodra@gmail.com>
8080
8081         * collect2.c (main): Match exactly --version and --help.
8082
8083 2010-06-24  DJ Delorie  <dj@redhat.com>
8084
8085         * config/m32c/m32c-pragma.c: Don't include rtl.h.
8086
8087 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
8088
8089         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
8090         using X87MODEF mode iterator.
8091         (pushsf splitter): Macroize splitter using P mode iterator.
8092         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
8093         mode iterator.
8094
8095         (*movxf_internal): Rename from *movxf_integer.
8096         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
8097         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
8098         (*movdf_internal): Rename from *movdf_integer.
8099         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
8100         (*movsf_internal): Rename from *movdf_1.
8101
8102 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
8103
8104         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
8105         (const_gimple_seq_node): Removed typedefs.
8106
8107         * gimple.h (gimple_seq_node_d, gimple_seq_node)
8108         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
8109
8110 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
8111
8112         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
8113         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
8114         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
8115         and CODE_FOR_vec_extract_lo_v4df.
8116
8117         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
8118         Changed to define_insn_and_split.
8119         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
8120         (vec_extract_lo_v16hi): Likewise.
8121         (vec_extract_lo_v32qi): Likewise.
8122         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
8123         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
8124
8125 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
8126
8127         PR target/44640
8128         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
8129         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
8130         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
8131         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
8132         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
8133
8134         PR target/44640
8135         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
8136
8137         PR other/44644
8138         * df-core.c (struct df): Rename to df_d.
8139         * df.h (struct df): Likewise.
8140         * dse.h (struct df): Remove forward declaration.
8141         * recog.h (struct insn_data): Rename to:
8142         (struct_insn_data_d).  Adjusted all users.
8143
8144 2010-06-23  Arnaud Charlet  <charlet@adacore.com
8145
8146         PR ada/22220
8147         * doc/install.texi: Update requirements to build GNAT.
8148
8149 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
8150
8151         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
8152         enum type.
8153         (m68k_sched_attr_opx_type): Remove unreachable return.
8154         (m68k_sched_attr_opy_type): Likewise.
8155         (m68k_sched_attr_size): Likewise.
8156         (sched_get_opxy_mem_type): Likewise.
8157         (m68k_sched_attr_op_mem): Likewise.
8158
8159 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
8160
8161         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
8162         new statement and adjust VDEF only if necessary.  Remove superfluous
8163         call to maybe_clean_or_replace_eh_stmt.
8164         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
8165         copy the flags.
8166         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
8167         * tree-inline.c (copy_bb): ...and not there.
8168
8169 2010-06-22  Cary Coutant  <ccoutant@google.com>
8170
8171         * dwarf2out.c (is_nested_in_subprogram): New function.
8172         (should_move_die_to_comdat): Use it.
8173         (copy_ancestor_tree): Don't mark DIEs here.
8174         (copy_decls_walk): Start walk from root of newly-added tree;
8175         mark DIEs here instead.
8176
8177 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8178
8179         * config/i386/i386.md (unit): Also check sseishft1.
8180
8181 2010-06-22  Jan Hubicka  <jh@suse.cz>
8182
8183         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
8184         enabled.
8185
8186 2010-06-22  Jan Hubicka  <jh@suse.cz>
8187
8188         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
8189         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
8190         Return true if something changed.
8191         * df.h (df_confluence_function_n): Return bool.
8192         * df-core.c (df_worklist_propagate_forward,
8193         df_worklist_propagate_backward): Track changes and ages.
8194         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
8195         track ages.
8196         * dse.c (dse_confluence_n): Return always true.
8197
8198 2010-06-22  Jan Hubicka  <jh@suse.cz>
8199
8200         * bitmap.c (bitmap_clear_bit): Micro optimize.
8201
8202 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
8203
8204         * config/i386/i386.md (SWI1248x): New mode iterator.
8205         (SWI48x): Ditto.
8206         (SWI12): Ditto.
8207         (SWI24): Ditto.
8208
8209         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
8210         SWI1248x mode iterator.
8211         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
8212         using SWI124 mode iterator.
8213         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
8214         mode iterator.
8215         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
8216         *pushdi2_prologue_rex64 using P mode iterator.
8217         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
8218         using SWI48 mode iterator.
8219         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
8220         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
8221         using SWI1248x mode iterator.
8222         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
8223         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
8224         SWI48 mode iterator.
8225         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
8226         iterator.
8227         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
8228         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
8229         SWI12 mode iterator.
8230         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
8231         SWI12 mode iterator.
8232         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
8233         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
8234         SWI24 mode iterator.
8235         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
8236         SWI48 mode iterator.
8237         (mov<mode>_insn_1): New expander.
8238         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
8239         using SWI48x mode iterator.
8240
8241         (*movoi_internal_avx): Rename from *movoi_internal.
8242         (*movti_internal_rex64): Rename from *movti_rex64.
8243         (*movti_internal_sse): Rename from *movti_sse.
8244         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
8245         (*movdi_internal): Rename from *movdi_2.
8246         (*movsi_internal): Rename from *movsi_1.
8247         (*movhi_internal): Rename from *movhi_1.
8248         (*movqi_internal): Rename from *movqi_1.
8249
8250         (insv): Update the call to gen_movsi_insv_1 for rename.
8251         * config/i386/i386.c (promote_duplicated_reg): Ditto.
8252
8253 2010-06-22  Jan Hubicka  <jh@suse.cz>
8254
8255         * passes.c (execute_function_todo): Move call of statistics_fini_pass
8256         to ...
8257         (execute_todo) ... this one.
8258
8259 2010-06-22  Alan Modra  <amodra@gmail.com>
8260
8261         PR target/44364
8262         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
8263         * caller-save.c (insert_restore, insert_save): Use non-validate
8264         form of adjust_address.
8265
8266 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8267
8268         PR target/39690
8269         * config/pa/pa.c (override_options): Disable
8270         -freorder-blocks-and-partition.
8271
8272 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
8273
8274         PR target/44615
8275         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
8276
8277         * config/i386/i386.md (type): Add sseishft1
8278
8279         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
8280         (ppro_insn_load): Likewise.
8281         (ppro_insn_store): Likewise.
8282         (ppro_insn_both): Likewise.
8283
8284         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
8285         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
8286         for type.
8287         (*vec_extractv2di_1_avx): Likewise.
8288         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
8289         type.  Remove atom_unit.
8290         (*vec_extractv2di_1_sse2): Likewise.
8291
8292 2010-06-21  DJ Delorie  <dj@redhat.com>
8293
8294         * diagnostic.h (diagnostic_classification_change_t): New.
8295         (diagnostic_context): Add history and push/pop list.
8296         (diagnostic_push_diagnostics): Declare.
8297         (diagnostic_pop_diagnostics): Declare.
8298         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
8299         from pragmas in a history chain instead of the global table.
8300         (diagnostic_push_diagnostics): New.
8301         (diagnostic_pop_diagnostics): New.
8302         (diagnostic_report_diagnostic): Scan history chain to find state
8303         of diagnostics as of the diagnostic location.
8304         * opts.c (set_option): Pass UNKNOWN_LOCATION to
8305         diagnostic_classify_diagnostic.
8306         (enable_warning_as_error): Likewise.
8307         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
8308         use in the history chain.
8309         * doc/extend.texi: Document pragma GCC diagnostic changes.
8310
8311 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
8312
8313         * dwarf2out.c (add_linkage_name): New function.  Don't add
8314         anything to DW_TAG_member DIEs.
8315         (add_name_and_src_coords_attributes): Use it.
8316         (gen_variable_die): Call it for C++ static data members if
8317         specification is DW_TAG_member.
8318
8319         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
8320         C++ char16_t and char32_t.
8321
8322         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
8323         * genattrtab.c: Include vecprim.h.
8324         (cached_attrs, cached_attr_count, attrs_seen_once,
8325         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
8326         attrs_cached_after): New variables.
8327         (find_attrs_to_cache): New function.
8328         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
8329         (write_test_expr): Add attrs_cached argument, return it too,
8330         attempt to cache non-const attributes used more than once in
8331         a single case handling.
8332         (write_attr_get): Use find_attrs_to_cache, for caching candidates
8333         emit cached_* variables.  Adjust write_attr_set callers.
8334         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
8335         to find attributes that should be cached in this block.  Adjust
8336         write_test_expr callers.
8337         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
8338         callers.
8339         (make_automaton_attrs): Adjust write_test_expr caller.
8340
8341         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
8342         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
8343         (make_automaton_attrs): If find_tune_attr returns non-NULL,
8344         write separate internal_dfa_insn_code_* and insn_default_latency_*
8345         functions for each attribute's value and emit init_sched_attrs
8346         function and function pointers.
8347         * genattr.c (const_attrs, reservations): New variables.
8348         (gen_attr): Add const attributes to const_attrs vector.
8349         (check_tune_attr, find_tune_attr): New functions.
8350         (main): Add reservations to reservations vector.  If find_tune_attr
8351         returns true, add prototype for init_sched_attrs and make
8352         internal_dfa_insn_code and insn_default_latency function pointers,
8353         otherwise define init_sched_attrs as dummy macro.
8354         * cfgexpand.c: Include insn-attr.h.
8355         (gimple_expand_cfg): Call init_sched_attrs.
8356
8357         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
8358
8359         PR target/44575
8360         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
8361         va_arg from a set of register save slots into a temporary,
8362         if the container is bigger than type size, do the copying
8363         using smaller mode or using memcpy.
8364
8365         PR bootstrap/44426
8366         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
8367         prototype.
8368         (sel_print_to_dot): Remove macro.
8369         (sel_print): Likewise.  New prototype.
8370         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
8371         (sel_print): New function.
8372
8373 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8374
8375         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
8376         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
8377
8378 2010-06-21  Nick Clifton  <nickc@redhat.com>
8379
8380         * config/rx/rx.h (PTRDIFF_TYPE): Define.
8381         (SMALL_REGISTER_CLASS): Define (to zero).
8382         (PRINT_OPERAND): Delete.
8383         (PRINT_OPERAND_ADDRESS): Delete.
8384         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
8385         (rx_print_operand_address): Delete prototype.
8386         * config/rx/rx.c (rx_print_operand): Make static.
8387         Allow %H and %L to handle CONST_DOUBLEs.
8388         (rx_print_operand_address): Make static.
8389         (rx_gen_move_template): Rename local variable 'template' to
8390         out_template.
8391         (rx_function_arg): Do not pass unknown sized objects in registers.
8392         (TARGET_PRINT_OPERAND): Define.
8393         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8394
8395 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8396
8397         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
8398
8399 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
8400
8401         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
8402         stack-alignment for simple leaf-functions.
8403
8404 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
8405
8406         * doc/install.texi: Document bootstrap-lto.
8407
8408 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
8409
8410         PR debug/44248
8411         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
8412         (input_function): Drop them here, if VTA is disabled.
8413
8414 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
8415
8416         PR target/44546
8417         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
8418         New predicate.
8419         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
8420         ix86_swapped_fp_comparsion_operator instead of
8421         ix86_fp_comparison_operator.
8422
8423         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
8424         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
8425         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
8426         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
8427         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
8428         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
8429
8430 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
8431
8432         PR other/32998
8433         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
8434         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
8435         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
8436         (decode_cmdline_option): Update for this return value.  Set
8437         orig_option_with_args_text field.  Set arg field for unknown
8438         options.  Make static.
8439         (decode_cmdline_options_to_array): New.
8440         (prune_options): Update handling of find_opt return value.
8441         * opts.c (read_cmdline_option): Take decoded option.  Return void.
8442         (read_cmdline_options): Take decoded options.
8443         (decode_options): Add parameters for decoded options.  Use
8444         decode_cmdline_options_to_array.  Use decoded options for -O
8445         scan.  Use integral_argument for -O parameters.  Update call to
8446         read_cmdline_options.
8447         (enable_warning_as_error): Update handling of find_opt return value.
8448         * opts.h: Update comment on unknown options.
8449         (struct cl_decoded_option): Update comments on opt_index and arg.
8450         Add orig_option_with_args_text.
8451         (decode_cmdline_option): Remove.
8452         (decode_cmdline_options_to_array): Declare.
8453         (decode_options): Update prototype.
8454         * toplev.c (save_argv): Remove.
8455         (save_decoded_options, save_decoded_options_count): New.
8456         (read_integral_parameter): Remove.
8457         (print_switch_values): Use decoded options.
8458         (toplev_main): Don't set save_argv.  Update call to decode_options.
8459         * toplev.h (read_integral_parameter): Remove.
8460         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
8461
8462 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
8463
8464         PR target/44072
8465         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
8466         immediate.
8467         * constraints.md (Pw, Px): New constraints.
8468         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
8469
8470 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
8471
8472         * config/i386/sse.md (fma4modesuffixf4): Removed.
8473         (ssemodesuffixf2s): Likewise.
8474         (ssemodesuffixf4): Likewise.
8475         (ssemodesuffixf2c): Likewise.
8476         (ssescalarmodesuffix2s): Likewise.
8477         (avxmodesuffixf2c): Likewise.
8478         (ssemodesuffix): New.
8479         (ssescalarmodesuffix): Likewise.
8480         Update patterns with ssemodesuffix and ssescalarmodesuffix.
8481
8482 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
8483
8484         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
8485
8486 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
8487
8488         * stor-layout.c (debug_rli): Remove unused local variables.
8489
8490 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
8491
8492         PR rtl-optimization/40900
8493         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
8494         original expression for later reuse.
8495         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
8496         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
8497
8498 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
8499
8500         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
8501         double_int_fits_in_uhwi_p): Implement as static inline.
8502         (double_int_xor): New inline function.
8503         (double_int_lrotate, double_int_rrotate, double_int_max,
8504         double_int_umax, double_int_smax, double_int_min, double_int_umin,
8505         double_int_smin): Declare.
8506         (lrotate_double, rrotate_double): Remove declaration.
8507         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
8508         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
8509         (double_int_lrotate, double_int_rrotate, double_int_max,
8510         double_int_umax, double_int_smax, double_int_min, double_int_umin,
8511         double_int_smin): New function.
8512         * fold-const.c (int_const_binop): Clean up, use double_int_*
8513         functions.
8514         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
8515         double_int_* and immed_double_int_const functions.
8516
8517 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
8518
8519         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
8520         * function.c (types_used_by_cur_var_decl): Likewise.
8521         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
8522
8523 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
8524
8525         * tree.h (record_layout_info): Change type of pending_statics field
8526         to a VEC.
8527         * stor-layout.c (start_record_layout): Store NULL into
8528         pending_statics.
8529         (debug_rli): Call debug_vec_tree instead of debug_tree.
8530         (place_field): Likewise.
8531         (finish_record_layout): Likewise.
8532
8533 2010-06-18  Alan Modra  <amodra@gmail.com>
8534
8535         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
8536
8537 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8538
8539         PR target/43740
8540         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
8541         for SET source operand from SET destination operand.
8542
8543 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
8544
8545         PR rtl-optimization/39871
8546         * reload1.c (init_eliminable_invariants): For flag_pic, disable
8547         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
8548         (function_invariant_p): Rule out a plus of frame or arg pointer with
8549         a SYMBOL_REF.
8550         * ira.c (find_reg_equiv_invariant_const): Likewise.
8551
8552 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
8553
8554         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
8555         print_operand_address and puts to output the operand for CONST.
8556
8557 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
8558
8559         PR debug/44572
8560         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
8561         hook.
8562
8563 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8564
8565         * v850-protos.h (print_operand): Delete.
8566         (print_operand_address): Delete.
8567         * v850.h (PRINT_OPERAND): Delete.
8568         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8569         (PRINT_OPERAND_ADDRESS): Delete.
8570         * v850.c (print_operand_address): Rename to...
8571         (v850_print_operand_address): ...this.  Make static. Call
8572         v850_print_operand.
8573         (print_operand): Rename to...
8574         (v850_print_operand): ...this.  Make static.  Call
8575         v850_print_operand_address.
8576         (v850_print_operand_punct_valid_p): New function.
8577         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8578         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8579
8580 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8581
8582         * config/sh/sh-protos.h (print_operand): Delete.
8583         (print_operand_address): Delete.
8584         * config/sh/sh.h (PRINT_OPERAND): Delete.
8585         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8586         (PRINT_OPERAND_ADDRESS): Delete.
8587         * config/sh/sh.c (sh_print_operand_address): Make static.
8588         (sh_print_operand): Make static.  Call sh_print_operand_address
8589         and sh_print_operand.
8590         (sh_print_operand_punct_valid_p): New function.
8591         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8592         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8593
8594 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8595
8596         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
8597         (mcore_print_operand_address): Delete.
8598         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
8599         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8600         (PRINT_OPERAND_ADDRESS): Delete.
8601         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
8602         (mcore_print_operand): Make static.
8603         (mcore_print_operand_punct_valid_p): New function.
8604         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
8605         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8606
8607 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8608
8609         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
8610         (print_operand_address): Delete.
8611         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
8612         (PRINT_OPERAND_ADDRESS): Delete.
8613         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
8614         static.
8615         (m68hc11_print_operand): Make static.
8616         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8617
8618 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8619
8620         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
8621         (m32r_print_operand_address): Delete.
8622         * config/m32r/m32r.h (m32r_punct_chars): Delete.
8623         (PRINT_OPERAND): Delete.
8624         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8625         (PRINT_OPERAND_ADDRESS): Delete.
8626         * config/m32r/m32r.c (m32r_punct_chars): Make static.
8627         (m32r_print_operand_address): Make static.
8628         (m32r_print_operand): Make static.
8629         (m32r_print_operand_punct_valid_p): New function.
8630         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8631         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8632
8633 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8634
8635         * config/iq2000/iq2000-protos.h (print_operand): Delete.
8636         (print_operand_address): Delete.
8637         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
8638         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8639         (PRINT_OPERAND_ADDRESS): Delete.
8640         (iq2000_print_operand_punct): Delete.
8641         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
8642         (iq2000_print_operand_address): Make static.
8643         (iq2000_print_operand): Make static.
8644         (iq2000_print_operand_punct_valid_p): New function.
8645         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8646         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8647
8648 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8649
8650         * config/frv/frv-protos.h (frv_print_operand): Delete.
8651         (frv_print_operand_address): Delete.
8652         * config/frv/frv.h (PRINT_OPERAND): Delete.
8653         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8654         (PRINT_OPERAND_ADDRESS): Delete.
8655         * config/frv/frv.c (frv_print_operand_address): Make static.
8656         (frv_print_operand): Make static.
8657         (frv_print_operand_punct_valid_p): New function.
8658         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8659         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8660
8661 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8662
8663         * tree.h (vec_member): Declare.
8664         * tree.c (vec_member): Define.
8665
8666 2010-06-17  Richard Guenther  <rguenther@suse.de>
8667
8668         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
8669         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
8670
8671 2010-06-17  Richard Guenther  <rguenther@suse.de>
8672
8673         * tree-inline.c (declare_return_variable): Remove bogus code.
8674
8675 2010-06-17  Richard Guenther  <rguenther@suse.de>
8676
8677         * gimplify.c (gimplify_bind_expr): Always promote complex
8678         and vector variables to registers if possible.
8679
8680 2010-06-17  Richard Guenther  <rguenther@suse.de>
8681
8682         * expr.c (get_inner_reference): Use double_int for bit_offset
8683         calculation.
8684
8685 2010-06-16  DJ Delorie  <dj@redhat.com>
8686
8687         * common.opt (-fstrict-volatile-bitfields): new.
8688         * doc/invoke.texi: Document it.
8689         * fold-const.c (optimize_bit_field_compare): For volatile
8690         bitfields, use the field's type to determine the mode, not the
8691         field's size.
8692         * expr.c (expand_assignment): Likewise.
8693         (get_inner_reference): Likewise.
8694         (expand_expr_real_1): Likewise.
8695         * expmed.c (store_fixed_bit_field): Likewise.
8696         (extract_bit_field_1): Likewise.
8697         (extract_fixed_bit_field): Likewise.
8698
8699 2010-06-16  Richard Guenther  <rguenther@suse.de>
8700
8701         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
8702
8703 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
8704
8705         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
8706         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
8707         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
8708         * debug.c: Likewise.
8709         * sdbout.c: Likewise.
8710         * vmsdbgout.c: Likewise.
8711         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
8712         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
8713         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
8714         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
8715         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
8716         * dwarf2out.c (dw_fde_struct): New fields
8717         dw_fde_vms_{end,begin}_prologue.
8718         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
8719         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
8720         (dwarf2out_vms_end_prologue): New function.
8721         (dwarf2out_vms_begin_epilogue): New function.
8722         (dw_val_struct): New value dw_val_class_vms_delta.
8723         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
8724         begin_epilogue for VMS.
8725         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
8726         new static functions.
8727         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
8728         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
8729         static functions.
8730         (print_die): New case dw_val_class_vms_delta.
8731         (attr_checksum): Likewise.
8732         (same_dw_val_p: Likewise.
8733         (size_of_die): Likewise.
8734         (value_format): Likewise.
8735         (output_die): Likewise.
8736         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
8737         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
8738         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
8739         dwarf2out_cfi_begin_epilogue
8740         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
8741
8742 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
8743
8744         * config/cris/cris-protos.h (cris_print_operand): Delete.
8745         (cris_print_operand_address): Delete.
8746         * config/cris/cris.h (PRINT_OPERAND): Delete.
8747         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8748         (PRINT_OPERAND_ADDRESS): Delete.
8749         * config/cris/cris.c (cris_print_operand_address): Make static.
8750         (cris_print_operand): Make static.
8751         (cris_print_operand_punct_valid_p): New function.
8752         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8753         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8754
8755 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
8756
8757         * config/arm/arm-protos.h (arm_print_operand): Delete.
8758         (arm_print_operand_address): Delete.
8759         * config/arm/arm.h (PRINT_OPERAND): Delete.
8760         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8761         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
8762         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
8763         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
8764         (arm_print_operand): Make static.
8765         (arm_print_operand_punct_valid_p): New function.
8766         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8767         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8768
8769 2010-06-16  Nick Clifton  <nickc@redhat.com>
8770
8771         * config/rx/constraints.md (NEGint4): New constraint.
8772         * config/rx/rx.md (attr cc): Add set_zsc.
8773         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
8774         initialised.
8775         (cmpsf): Likewise.
8776         (call_internal): Clobber the cc0 register.
8777         (call_value_internal): Likewise.
8778         (cstoresi4): Likewise.
8779         (movsieq): Likewise.
8780         (movsine): Likewise.
8781         (addsi3): Add alternative to handle small negative constants.
8782         (sunsi3): Likewise.
8783         (addsi3): Do not set the O bit in the cc0 register.
8784         (adddi3): Likewise.
8785         (subsi3): Likewise.
8786         (subdi3): Likewise.
8787         (andsi3): Reorder alternatives to prefer shorter forms.
8788         (mulsi3): Likewise.
8789         (iorsi3): Likewise.
8790         (negsi2): Note that the cc0 flags are set.
8791         (rotlsi3): Note that only the Z and S bits are set in cc0.
8792         (lshrsi3): Likewise.
8793         (ashlsi3): Likewise.
8794         (subsf3): Use %Q for the MEM operand.
8795         (fix_truncsfsi2): Likewise.
8796         (floatsisf2): Likewise.
8797         (bitset): Remove early clobber from destination.
8798         (bitset_in_memory): Likewise.
8799         (lrintsf2): Clobber the cc0 register.
8800         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
8801         (rx_print_operand): Handle %N.
8802
8803 2010-06-16  Jan Hubicka  <jh@suse.cz>
8804
8805         * df-core.c (df_compact_blocks): Free problem_temps vector.
8806
8807 2010-06-16  Martin Jambor  <mjambor@suse.cz>
8808
8809         PR tree-optimization/43905
8810         * tree-sra.c: Include tree-inline.h.
8811         (create_abstract_origin): Removed.
8812         (modify_function): Version the call graph node instead of creating
8813         abstract origins and dealing with same_body aliases.
8814         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
8815         function is versionable.
8816         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
8817
8818 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
8819
8820         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
8821         (CHOOSE_DYNAMIC_LINKER): Update.
8822
8823 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
8824
8825         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
8826         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
8827         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
8828         *prefetch_3dnow_rex.
8829
8830 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
8831
8832         * target.h (struct asm_out):Add declare_constant_name field.
8833         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
8834         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
8835         * output.h (default_asm_declare_constant_name): Declare.
8836         (assemble_label): Update prototype.
8837         * varasm.c (assemble_constant_contents): Use
8838         targetm.asm_out.declare_constant_name target hook.
8839         (assemble_label): Add 'file' argument.
8840         (default_asm_declare_constant_name): New function.
8841         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
8842         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
8843         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
8844
8845         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
8846         * config/darwin.c (darwin_asm_declare_constant_name): New function.
8847         (machopic_output_indirection): Update assemble_label argument list.
8848         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
8849         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
8850
8851 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
8852
8853         PR middle-end/44391
8854         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
8855         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
8856
8857 2010-06-15  Richard Guenther  <rguenther@suse.de>
8858
8859         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
8860
8861 2010-06-15  Paul Brook  <paul@codesourcery.com>
8862
8863         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
8864         hard-float ABI.
8865
8866 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
8867
8868         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
8869         don't get a vector type for output.
8870
8871 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
8872
8873         PR fortran/44536
8874         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
8875         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
8876         (LANG_HOOKS_DECLS): Add it.
8877         * gimplify.c (omp_notice_variable): Call
8878         lang_hooks.decls.omp_report_decl.
8879
8880 2010-06-15  Martin Jambor  <mjambor@suse.cz>
8881
8882         PR lto/44464
8883         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
8884         on the newly dead SSA name.
8885
8886 2010-06-15  Alan Modra  <amodra@gmail.com>
8887
8888         * doc/invoke.texi: Add mcmodel to powerpc options.
8889         * configure.ac: Add HAVE_LD_LARGE_TOC test.
8890         * configure: Regenerate.
8891         * config.in: Regenerate.
8892         * config/rs6000/linux64.opt (mcmodel): New.
8893         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
8894         (TARGET_CMODEL, SET_CMODEL): Define.
8895         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
8896         select CMODEL_MEDIUM default.
8897         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
8898         (TARGET_CMODEL): Define default.
8899         * config/rs6000/rs6000.c (cmodel): New variable.
8900         (rs6000_explicit_options): Add cmodel field.
8901         (rs6000_handle_option): Handle -mcmodel.
8902         (create_TOC_reference): Add largetoc_reg param.  Generate high,
8903         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
8904         (rs6000_delegitimize_address): Recognise new toc reference rtl
8905         and minimal-toc rtl.
8906         (rs6000_legitimize_reload_address): Handle new toc references.
8907         (print_operand_address): Handle legitimate_constant_pool_address_p
8908         match before lo_sum.
8909         (rs6000_eliminate_indexed_memrefs): Tidy.
8910         (rs6000_emit_move): Tweak threshold for inlining constants.
8911         Keep rs6000_emit_allocate_stack large stack frame offsets
8912         loaded into r0 inline.
8913         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
8914         (tocrel_base, tocrel_offset): New variables.
8915         (toc_relative_expr_p): Set them here.
8916         (print_operand_address): Skip over any offset on constant pool address.
8917         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
8918         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
8919         (offsettable_ok_by_alignment): New function.
8920         (rs6000_emit_move): Address suitably aligned local symbol_refs
8921         relative to the toc pointer for -mcmodel=medium.
8922         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
8923         strict param.  Allow lo_sum version of addressing.  Verify reg
8924         used for -mminimal-toc and -mcmodel != small.  Update all callers.
8925         * config/rs6000/constraints.md: Update for above change.
8926         * config/rs6000/predicates.md: Likewise.
8927         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
8928         code.
8929         (tls_gd): Split for -mcmodel=medium/large.
8930         (tls_gd_high, tls_gd_low): New.
8931         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
8932         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
8933         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
8934         (largetoc_high, largetoc_low): New.
8935         (cmptf_internal2): Add clobber.
8936         * config/rs6000/rs6000-protos.h: Update.
8937
8938 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
8939
8940         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
8941         true if no prefetch is going to be generated for a given group.
8942         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
8943         estimate the prefetch_count.
8944         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
8945         prefetch count by considering the unroll_factor and prefetch_mod
8946         for is_loop_prefetching_profitable.
8947
8948 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
8949
8950         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
8951         anything if the argument is not a MEM.
8952
8953 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
8954
8955         PR debug/43650
8956         PR debug/44181
8957         PR debug/44247
8958         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
8959         debug stmts.
8960         (canonicalize_loop_ivs): Likewise.
8961
8962 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
8963
8964         PR debug/43656
8965         * haifa-sched.c (setup_insn_reg_pressure_info,
8966         update_register_pressure): Reject debug insns.
8967         (ready_sort): Don't setup reg pressure for debug insns.
8968         (schedule_insn): Don't update reg pressure for debug insns.
8969
8970 2010-06-14  Richard Guenther  <rguenther@suse.de>
8971
8972         * lto-streamer.c (cached_bp): Remove.
8973         (bitpack_delete): Likewise.
8974         (bitpack_create): Likewise.
8975         (bp_get_next_word): Likewise.
8976         (bp_pack_value, bp_unpack_value): Move ...
8977         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
8978         Re-implement.
8979         (struct bitpack_d): Likewise.
8980         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
8981         New inline functions.
8982         * lto-streamer-out.c (lto_output_bitpack): Remove.
8983         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
8984         (pack_value_fields): Adjust.
8985         (lto_write_tree): Likewise.
8986         (output_gimple_stmt): Likewise.
8987         (output_function): Likewise.
8988         * lto-streamer-in.c (input_gimple_stmt): Adjust.
8989         (input_function): Likewise.
8990         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
8991         (lto_input_bitpack): Remove.
8992         (lto_materialize_tree): Adjust.
8993         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
8994         * lto-cgraph.c (lto_output_edge): Adjust.
8995         (lto_output_node): Likewise.
8996         (lto_output_varpool_node): Likewise.
8997         (lto_output_ref): Likewise.
8998         (input_node): Likewise.
8999         (input_varpool_node): Likewise.
9000         (input_ref): Likewise.
9001         (input_edge): Likewise.
9002         (output_node_opt_summary): Likewise.
9003         (input_node_opt_summary): Likewise.
9004         * ipa-pure-const.c (pure_const_write_summary): Likewise.
9005         (pure_const_read_summary): Likewise.
9006         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
9007         (ipa_read_indirect_edge_info): Likewise.
9008         (ipa_write_node_info): Likewise.
9009         (ipa_read_node_info): Likewise.
9010
9011 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
9012
9013         PR target/44534
9014         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
9015         (vec_extract_lo_v16hi): Likewise.
9016         (vec_extract_lo_v32qi): Likewise.
9017
9018 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
9019
9020         PR bootstrap/44426
9021         * tree.h (build_call_expr): Don't define as vararg macro, instead
9022         add a prototype.
9023         * builtins.c (build_call_nofold): Remove.
9024         (expand_builtin_int_roundingfn, expand_builtin_pow,
9025         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
9026         expand_builtin_memset_args, expand_builtin_strcmp,
9027         expand_builtin_strncmp, expand_builtin_memory_chk): Use
9028         build_call_nofold_loc instead of build_call_nofold.
9029         (build_call_expr): New function.
9030
9031         PR tree-optimization/44508
9032         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
9033         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
9034         don't eliminate trivially dead stmts.
9035         * tree-vrp.c (vrp_finalize): Pass false as last argument
9036         to substitute_and_fold.
9037         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
9038         to substitute_and_fold.
9039         * tree-ssa-ccp.c (ccp_finalize): Likewise.
9040
9041         PR bootstrap/44509
9042         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
9043
9044 2010-06-14  Ira Rosen  <irar@il.ibm.com>
9045
9046         PR tree-optimization/44507
9047         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
9048         to build initial vector for BIT_AND_EXPR.
9049         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
9050
9051 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
9052
9053         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
9054         adjust z10prop set_attr.
9055
9056 2010-06-13  Jan Hubicka  <jh@suse.cz>
9057
9058         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
9059         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
9060         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
9061         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
9062         datastructure checks into checking asserts.
9063         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
9064         * tree-ssa-sccvn.c (VN_INFO): Likewise.
9065         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
9066         df_ref_create_structure): Likewise.
9067         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
9068         pool_free): Use gcc_checking_assert.
9069         * alias.c (get_alias_set): Likewise.
9070         * var-tracking.c (variable_htab_free, shared_hash_copy,
9071         canonicalize_values_mark, variable_merge_over_cur): Likewise.
9072         * lto-streamer.c (bp_unpack_value): Likewise.
9073
9074 2010-06-13  Richard Guenther  <rguenther@suse.de>
9075
9076         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
9077         Do not stream but initialize TYPE_CANONICAL to NULL.
9078         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
9079         * gimple.c (gimple_types_compatible_p): Disregard
9080         TYPE_STRUCTURAL_EQUALITY_P.
9081         (gimple_register_type): Use TYPE_CANONICAL as cache.
9082         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
9083         before registering common types.
9084         * config/i386/i386.c (ix86_function_arg_boundary): Do not
9085         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
9086         * tree.h (TYPE_CANONICAL): Clarify documentation.
9087
9088 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
9089
9090         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9091         LIBCALL_VALUE): Remove macros.
9092         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
9093         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9094         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9095         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
9096         (ia64_function_value): Make static. Handle receiving the function
9097         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
9098
9099 2010-06-12  Jan Hubicka  <jh@suse.cz>
9100
9101         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
9102         at correct place.
9103
9104 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
9105
9106         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
9107
9108 2010-06-12  Jan Hubicka  <jh@suse.cz>
9109
9110         * df-core.c (df_clear_bb_info): New function.
9111         (df_set_blocks): bb_info is always allocated.
9112         (df_get_bb_info): Use block_info_elt_size.
9113         (df_set_bb_info): Likewise.
9114         (df_compact_blocks): Update for new block_info.
9115         (grow_bb_info): New function.
9116         * df-problems.c (df_grow_bb_info): Move to df-core.c
9117         (df_rd_set_bb_info): Remove.
9118         (df_rd_free_bb_info): Do not free block pool.
9119         (df_rd_alloc): Do not create pool, use check for
9120         obstack presence instead of NULL pointer for new blocks.
9121         (df_rd_free): DO not free alloc pool; clear block_info.
9122         (problem_RD): Add size of block info structure.
9123         (df_lr_set_bb_info): Remove.
9124         (df_lr_free_bb_info): Do not free block pool.
9125         (df_lr_alloc): Do not create pool, use check for
9126         obstack presence instead of NULL pointer for new blocks.
9127         (df_lr_free): DO not free alloc pool; clear block_info.
9128         (problem_LR): Add size of block info structure.
9129         (df_live_set_bb_info): Remove.
9130         (df_live_free_bb_info): Do not free block pool.
9131         (df_live_alloc): Do not create pool, use check for
9132         obstack presence instead of NULL pointer for new blocks.
9133         (df_live_free): DO not free alloc pool; clear block_info.
9134         (problem_LIVE): Add size of block info structure.
9135         (problem_CHAIN): Add size of block info structure.
9136         (df_byte_lr_set_bb_info): Remove.
9137         (df_byte_lr_free_bb_info): Do not free block pool.
9138         (df_byte_lr_alloc): Do not create pool, use check for
9139         obstack presence instead of NULL pointer for new blocks.
9140         (df_byte_lr_free): DO not free alloc pool; clear block_info.
9141         (problem_BYTE_LR): Add size of block info structure.
9142         (problem_NOTE): Add size of block info structure.
9143         (df_byte_MD_set_bb_info): Remove.
9144         (df_byte_MD_free_bb_info): Do not free block pool.
9145         (df_byte_MD_alloc): Do not create pool, use check for
9146         obstack presence instead of NULL pointer for new blocks.
9147         (df_byte_MD_free): DO not free alloc pool; clear block_info.
9148         (problem_BD): Add size of block info structure.
9149         * df-scan.c (df_scan_free_internal): Free block pool.
9150         (df_scan_set_bb_info): Remove.
9151         (df_scan_free_bb_info): Check for artificial_defs instead
9152         of bb_info being non-NULL.
9153         (df_scan_alloc): DO not create df_scan_block pool.
9154         (problem_SCAN): Set size of block info.
9155         (df_bb_refs_record): Do not allocate bb_info.
9156         * df.h (df_problem): Add block_info_elt_size.
9157         (struct dataflow): Change block_info to void *.
9158         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
9159         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
9160         in-line structures.
9161
9162 2010-06-12  Jan Hubicka  <jh@suse.cz>
9163
9164         PR tree-optimize/44485
9165         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
9166         containing use of return value of noreturn function.
9167
9168 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
9169
9170         * targhooks.c (default_function_value): Don't use
9171         FUNCTION_OUTGOING_VALUE.
9172         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
9173         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
9174
9175 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
9176
9177         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
9178         Add crtfastmath.o to extra_parts.
9179         * config/mips/crtfastmath.c: New.
9180         * config/mips/linux.h (ENDFILE_SPEC): New.
9181
9182 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
9183
9184         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
9185         old_type in parameter.
9186         (gcc_type_for_value): Update call to gcc_type_for_interval.
9187         (compute_type_for_level_1): Renamed compute_type_for_level.
9188         Update call to gcc_type_for_interval.
9189
9190 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
9191
9192         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
9193         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
9194
9195 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
9196
9197         * opts-common.c: Include options.h.
9198         (integral_argument): Move from opts.c.
9199         (decode_cmdline_option): New.  Based on read_cmdline_option.
9200         * opts.c (integral_argument): Move to opts-common.c.
9201         (read_cmdline_option): Move most contents to
9202         decode_cmdline_option.  Use %qs in diagnostics.
9203         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
9204         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
9205         decode_cmdline_option): New.
9206
9207 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
9208
9209         PR target/44481
9210         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
9211         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
9212         (partiysi2_cmp): Ditto.
9213         (*partiyhi2_cmp): Ditto.
9214         (*parityqi2_cmp): Remove.
9215
9216 2010-06-11  Jan Hubicka  <jh@suse.cz>
9217
9218         * bitmap.h (bmp_iter_next_bit): New.
9219         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
9220
9221 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
9222             Eric Botcazou  <ebotcazou@adacore.com>
9223
9224         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
9225         computed cost.
9226
9227 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
9228
9229         * config/i386/i386.md (unspec): New define_c_enum.
9230         (unspecv): Ditto.
9231
9232 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
9233
9234         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
9235
9236 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
9237
9238         PR middle-end/44483
9239         * tree-if-conv.c (bb_predicate_s): New struct.
9240         (bb_predicate_p): New.
9241         (bb_has_predicate): New.
9242         (bb_predicate): New.
9243         (set_bb_predicate): New.
9244         (bb_predicate_gimplified_stmts): New.
9245         (set_bb_predicate_gimplified_stmts): New.
9246         (add_bb_predicate_gimplified_stmts): New.
9247         (init_bb_predicate): New.
9248         (free_bb_predicate): New.
9249         (is_predicated): Use bb_predicate.
9250         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
9251         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
9252         before processing their successors.
9253         (clean_predicate_lists): Removed.
9254         (find_phi_replacement_condition): Use bb_predicate.
9255         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
9256         computations.
9257         (insert_gimplified_predicates): New.
9258         (combine_blocks): Call insert_gimplified_predicates.
9259         (tree_if_conversion): Call free_bb_predicate instead of
9260         clean_predicate_lists.
9261
9262 2010-10-11  Paul Brook  <paul@codesourcery.com>
9263
9264         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
9265         * config/arm/arm.c (all_architectures): Change v7e-m default to
9266         cortexm4.
9267         * config/arm/arm-cores.def: Add cortex-m4.
9268         * config/arm/arm-tune.md: Regenerate.
9269
9270 2010-06-11  Jan Hubicka  <jh@suse.cz>
9271
9272         * ipa-pure-const.c (special_builtlin_state): New function.
9273         (check_call): Use it instead of special casign BUILT_IN_RETURN.
9274         (propagate_pure_const): Use it.
9275
9276 2010-06-11  Jan Hubicka  <jh@suse.cz>
9277
9278         * df-problems.c (df_live_scratch): Convert to bitmap_head.
9279         (df_live_alloc): Initialize df_live_scratch when initializing
9280         problem_data.
9281         (df_live_transfer_function): Update uses of df_live_scratch.
9282         (df_live_free): Free problem_data; clear df_live_scratch before
9283         releasing the obstack.
9284         (df_md_free): Free problem data.
9285
9286 2010-06-11  Jan Hubicka  <jh@suse.cz>
9287
9288         * doc/invoke.texi (Wsuggest-attribute): Document.
9289         (Wmissing-noreturn): Remove.
9290         * ipa-pure-const.c (warn_function_noreturn): New function.
9291         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
9292         warn_missing_noreturn.
9293         * common.opt (Wsuggest-attribute=noreturn): New.
9294         * tree-flow.h (warn_function_noreturn): Declare.
9295         * tree-cfg.c (execute_warn_function_noreturn): Use
9296         warn_function_noreturn.
9297         (gate_warn_function_noreturn): New.
9298         (pass_warn_function_noreturn): Update.
9299
9300 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9301
9302         * c-typeck.c (handle_warn_cast_qual): Add loc
9303         parameter. Improve warning message.
9304         (build_c_cast): Pass location to handle_warn_cast_qual.
9305
9306 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
9307
9308         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
9309         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
9310         insn mnemonic.
9311         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
9312
9313 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
9314
9315         Fix bootstap on mips
9316         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
9317         be naming typedefs.
9318
9319 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
9320
9321         * system.h (helper_const_non_const_cast): New inline for
9322         gcc version <= 4.0.
9323         (CONST_CAST2): For gcc version <= 4.0 use
9324         new helper to do const/non-const casting.
9325
9326 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9327
9328         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
9329         * Makefile.in (OBJS-common): Include insn-enums.o.
9330         (insn-enums.o): New rule.
9331         (simple_generated_c): Add insn-enums.c.
9332         (build/genenums.o): New rule.
9333         (genprogmd): Add "enums".
9334         * genconstants.c (print_enum_type): Declare a C string array
9335         for each enum.
9336         * genenums.c: New file.
9337         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
9338         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
9339         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
9340
9341 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9342
9343         * doc/md.texi (define_enum_attr): Document.
9344         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
9345         * read-md.h (lookup_enum_type): Declare.
9346         * read-md.c (lookup_enum_type): New function.
9347         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
9348         * genattrtab.c (attr_desc): Add an enum_name field.
9349         (evaluate_eq_attr): Take the associated attribute as argument.
9350         Get the enum prefix from the enum_name field, if defined.
9351         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
9352         (simplify_test_exp): Pass attr to evaluate_eq_attr.
9353         (add_attr_value): New function, split out from...
9354         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
9355         (write_test_expr): Pass attr to evaluate_eq_attr.
9356         (write_attr_get): Use the enum_name as the enum tag, if defined.
9357         (write_attr_valueq): Use the enum_name as a prefix, if defined.
9358         (find_attr): Initialize enum_name.
9359         (main): Handle DEFINE_ENUM_ATTR.
9360         * gensupport.c (process_rtx): Likewise.
9361         * config/mips/mips.h (mips_tune_attr): Delete.
9362         * config/mips/mips.md (cpu): Use define_attr_enum.
9363
9364 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9365
9366         * doc/md.texi (define_c_enum, define_enum): Document.
9367         * read-md.h (md_constant): Add a parent_enum field.
9368         (enum_value, enum_type): New structures.
9369         (upcase_string, traverse_enum_types): Declare.
9370         * read-md.c (enum_types): New variable.
9371         (upcase_string, add_constant): New functions.
9372         (handle_constants): Don't create the hash table here.
9373         Use add_constant.
9374         (traverse_md_constants): Don't check for a null md_constants.
9375         (decimal_string, handle_enum, traverse_enum_types): New functions.
9376         (read_md_files): Initialize md_constants and md_enums.
9377         * genconstants.c (print_md_constant): Ignore info argument.
9378         Only print constants that belong to no enum.
9379         (print_enum_type): New function.
9380         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
9381         for each defined enum type.
9382         * config/mips/mips.md (processor): New define_enum.
9383         (unspec): New define_c_enum.
9384         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
9385         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
9386         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
9387         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
9388         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
9389         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
9390         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
9391         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
9392         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
9393         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
9394         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
9395         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
9396         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
9397         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
9398         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
9399         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
9400         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
9401         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
9402         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
9403         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
9404         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
9405         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
9406         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
9407         (UNSPEC_RDDSP): Move to mips-dsp.md.
9408         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
9409         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
9410         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
9411         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
9412         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
9413         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
9414         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
9415         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
9416         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
9417         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
9418         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
9419         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
9420         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
9421         Moved to mips-dspr2.md.
9422         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
9423         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
9424         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
9425         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
9426         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
9427         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
9428         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
9429         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
9430         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
9431         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
9432         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
9433         UNSPEC_LOONGSON_PSADBH)
9434         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
9435         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
9436         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
9437         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
9438         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
9439         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
9440         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
9441         (cpu): Update comment.
9442         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
9443         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
9444         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
9445         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
9446         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
9447         UNSPEC_LOONGSON_PCMPEQ)
9448         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
9449         UNSPEC_LOONGSON_PINSR_0)
9450         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
9451         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
9452         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
9453         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
9454         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
9455         UNSPEC_LOONGSON_PSADBH)
9456         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
9457         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
9458         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
9459         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
9460         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
9461         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
9462         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
9463         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
9464         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
9465         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
9466         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
9467         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
9468         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
9469         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
9470         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
9471         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
9472         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
9473         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
9474         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
9475         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
9476         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
9477         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
9478         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
9479         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
9480         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
9481         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
9482         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
9483         (UNSPEC_RDDSP): Moved from mips.md.
9484         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
9485         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
9486         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
9487         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
9488         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
9489         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
9490         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
9491         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
9492         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
9493         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
9494         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
9495         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
9496         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
9497         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
9498         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
9499         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
9500         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
9501         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
9502         (UNSPEC_SCC): Moved from mips.md.
9503         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
9504         "processor_type" to "processor".
9505         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
9506         * config/mips/mips.h (processor_type): Delete.
9507         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
9508         "processor_type" to "processor".
9509
9510 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9511
9512         * configure.ac (tm_include_list): Add insn-constants.h.
9513         * configure: Regenerate.
9514         * Makefile.in (GTM_H): Move insn-constants.h here from...
9515         (TM_H): ...here.
9516         * mkconfig.sh: Remove special handling for insn-constants.h.
9517
9518 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9519
9520         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
9521         (BUILD_MD): ...this new variable.
9522         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
9523         that include the old contents of simple_generated_h and
9524         simple_generated_c.
9525         (simple_generated_h, simple_generated_c): Include them.  Add
9526         insn-constants.h.
9527         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
9528         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
9529         Remove these dependencies from the main rule and include
9530         insn-conditions.md in the command line only if it appears
9531         in the dependency list.
9532         (insn-constants.h, s-constants): Delete.
9533         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
9534         or gensupport.h.
9535         (build/genmddeps.o): Likewise.
9536         (genprogrtl): New variable that contains everything from genprogmd
9537         except mddeps and constants.
9538         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
9539         depend on $(BUILD_MD)
9540         (genprog): New variable.  Make these programs depend on
9541         $(BUILD_ERRORS).
9542         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
9543         (main): Use read_md_files instead of init_rtx_reader_args.
9544         * genconstants.c: As for genmddeps.c.
9545         * read-md.h (read_skip_construct): Declare.
9546         * read-md.c (read_skip_construct): New function.
9547         (handle_file): Allow a null handle_directive, skipping the
9548         construct if so.
9549         (parse_include): Update the comment accordingly.
9550
9551 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9552
9553         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
9554         * genmddeps.c: Include read-md.h.
9555         (main): Call init_rtx_reader_args instead of init_md_reader_args.
9556         * genattr.c (main): Likewise.
9557         * genattrtab.c (main): Likewise.
9558         * genautomata.c (main): Likewise.
9559         * gencodes.c (main): Likewise.
9560         * genconditions.c (main): Likewise.
9561         * genconfig.c (main): Likewise.
9562         * genconstants.c (main): Likewise.
9563         * genemit.c (main): Likewise.
9564         * genextract.c (main): Likewise.
9565         * genflags.c (main): Likewise.
9566         * genopinit.c (main): Likewise.
9567         * genoutput.c (main): Likewise.
9568         * genpeep.c (main): Likewise.
9569         * genrecog.c (main): Likewise.
9570         * genpreds.c (main): Likewise.
9571         * gensupport.h (in_fname): Move to read-md.h.
9572         (init_md_reader_args_cb): Rename to...
9573         (init_rtx_reader_args_cb): ...this and return a bool.
9574         (init_md_reader_args): Rename to...
9575         (init_rtx_reader_args): ...this and return a bool.
9576         (include_callback): Move to read-md.h.
9577         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
9578         (file_name_list, first_dir_md_include): Move to read-md.c
9579         (first_bracket_include): Delete unused variable.
9580         (last_dir_md_include): Move to read-md.c.
9581         (process_include): Delete, moving code to read-md.c:handle_include.
9582         (process_rtx): Don't handle INCLUDE.
9583         (save_string): Delete.
9584         (rtx_handle_directive): New function.
9585         (init_md_reader_args_cb): Rename to...
9586         (init_rtx_reader_args_cb): ...this and return a boolean success value.
9587         Use read_md_args.
9588         (init_md_reader_args): Rename to...
9589         (init_rtx_reader_args): ...this and return a boolean success value.
9590         * rtl.def (INCLUDE): Delete.
9591         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
9592         argument.
9593         * read-rtl.c (read_conditions): Don't gobble ')' here.
9594         (read_mapping): Likewise.
9595         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
9596         Handle top-level non-rtx constructs here rather than in read_rtx_1.
9597         Store the whole queue in *X.  Remove call to init_md_reader.
9598         (read_rtx_1): Rename to...
9599         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
9600         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
9601         here.
9602         (read_nested_rtx): New function.  Handle (nil) here rather than
9603         in read_rtx_code.
9604         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
9605         gobble ')' here.
9606         * read-md.h (directive_handler_t): New type.
9607         (in_fname, include_callback): Moved from read-md.h.
9608         (read_constants, init_md_reader): Delete.
9609         (read_md_files): Declare.
9610         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
9611         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
9612         from gensupport.c.
9613         (read_constants): Rename to...
9614         (handle_constants): ...this.  Don't gobble ')' here.
9615         (handle_include, handle_file, handle_toplevel_file)
9616         (parse_include): New functions, mostly taken from gensupport.c.
9617         (init_md_reader): Subsume into...
9618         (read_md_files): ...this new function.
9619
9620 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9621
9622         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
9623         (unread_char): Decrement read_md_lineno after putting back '\n'.
9624         * read-md.c (fatal_with_file_and_line): Push back any characters
9625         that we decide not to add to the context.
9626         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
9627         fatal_expected_char in cases where '/' ends a line (for example).
9628         (read_name): Don't increment read_md_lineno here.
9629         (read_escape): Likewise.
9630         (read_quoted_string): Likewise.
9631         (read_braced_string): Likewise.
9632
9633 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9634
9635         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
9636         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
9637         * genconstants.c: Include read-md.h.
9638         * read-rtl.c (md_constants): Move to read-md.c.
9639         (md_name): Move to read-md.h.
9640         (initialize_iterators): Use leading_string_hash instead of def_hash
9641         and leading_string_eq_p instead of def_name_eq_p.
9642         (read_name): Move to read-md.c.
9643         (def_hash, def_name_eq_p): Delete.
9644         (read_constants, traverse_md_constants): Move to read-md.c.
9645         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
9646         * read-md.h: Include hashtab.h.
9647         (md_name): Moved from read-rtl.c.
9648         (md_constant): Moved from read-md.h.
9649         (leading_string_hash, leading_string_eq_p, read_name)
9650         (read_constants, traverse_md_constants): Declare.
9651         * read-md.c (md_constants): Moved from read-rtl.c.
9652         (leading_string_hash, leading_string_eq_p): New functions.
9653         (read_name, read_constants, traverse_md_constants): Moved from
9654         read-rtl.c.
9655
9656 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9657
9658         * read-rtl.c (md_name): New structure.
9659         (read_name): Take an md_name instead of a buffer pointer.
9660         Use the "string" field instead of strcpy when expanding constants.
9661         (read_constants): Remove the tmp_char argument.  Update the calls
9662         to read_name, using two local name buffers instead of the tmp_char
9663         argument.  Merge the constant-creation code.
9664         (read_conditions): Remove the tmp_char argument.  Update the calls
9665         to read_name, using a local name buffer instead of the tmp_char
9666         argument.
9667         (read_mapping): Replace tmp_char variable with a local name buffer.
9668         Update the calls to read_name.
9669         (read_rtx_1): Likewise.  Update the calls to read_constants and
9670         read_conditions.
9671
9672 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9673
9674         * Makefile.in (build/read-md.o): Depend on errors.h.
9675         * read-md.h (error_with_line): Declare.
9676         * read-md.c: Include errors.h.
9677         (message_with_line_1): New function, extracted from...
9678         (message_with_line): ...here.
9679         (error_with_line): New function.
9680         * genattrtab.c: If a call to message_with_line is followed by
9681         "have_error = 1;", replace both statements with a call to
9682         error_with_line.
9683         * genoutput.c: Likewise.
9684         * genpreds.c: Likewise.
9685         * genrecog.c: If a call to message_with_line is followed by
9686         "error_count++;", replace both statements with a call to
9687         error_with_line.
9688         (errorcount): Delete.
9689         (main): Don't check it.
9690         * gensupport.c: If a call to message_with_line is followed by
9691         "errors = 1;", replace both statements with a call to error_with_line.
9692         (errors): Delete.
9693         (process_define_cond_exec): Check have_error instead of errors.
9694         (init_md_reader_args_cb): Likewise.  Don't set errors.
9695
9696 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9697
9698         * read-md.h (read_md_file): Declare.
9699         (read_char, unread_char): New functions.
9700         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
9701         (read_quoted_string, read_string): Remove FILE * argument.
9702         * read-md.c (read_md_file): New variable.
9703         (read_md_filename, read_md_lineno): Update comments and remove
9704         unnecessary initialization.
9705         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
9706         (read_escape, read_quoted_string, read_braced_string, read_string):
9707         Remove FILE * argument.  Update calls accordingly, using read_char
9708         and unread_char instead of getc and ungetc.
9709         * rtl.h (read_rtx): Remove FILE * argument.
9710         * read-rtl.c (iterator_group): Remove FILE * argument from
9711         "find_builtin".
9712         (iterator_traverse_data): Remove "infile" field.
9713         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
9714         (add_mapping, read_name, read_constants, read_conditions)
9715         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
9716         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
9717         Remove file arguments from all calls, using read_char and unread_char
9718         instead of getc and ungetc.
9719         * gensupport.c (process_include): Preserve read_md_file around
9720         the include.  Set read_md_file to the handle of the included file.
9721         Update call to read_rtx.
9722         (init_md_reader_args_cb): Set read_md_file to the handle of the file
9723         and remove local FILE *.  Update calls to read_rtx.
9724
9725 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9726
9727         * read-md.h (read_rtx_lineno): Rename to...
9728         (read_md_lineno): ...this.
9729         (read_rtx_filename): Rename to...
9730         (read_md_filename): ...this.
9731         (copy_rtx_ptr_loc): Rename to...
9732         (copy_md_ptr_loc): ...this.
9733         (print_rtx_ptr_loc): Rename to...
9734         (print_md_ptr_loc): ...this.
9735         * read-md.c: Likewise.  Update references after renaming.
9736         (string_obstack): Replace RTL with MD in comment.
9737         (set_rtx_ptr_loc): Rename to...
9738         (set_md_ptr_loc): ...this.
9739         (get_rtx_ptr_loc): Rename to...
9740         (get_md_ptr_loc): ...this.
9741         * genconditions.c: Update references after renaming.
9742         * genemit.c: Likewise.
9743         * genoutput.c: Likewise.
9744         * genpreds.c: Likewise.
9745         * gensupport.c: Likewise.
9746         * read-rtl.c: Likewise.
9747
9748 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9749
9750         * Makefile.in (READ_MD_H): New variable.
9751         (BUILD_RTL): Add build/read-md.o.
9752         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
9753         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
9754         (build/genattrtab.o, build/genconditions.o build/genemit.o)
9755         (build/genextract.o, build/genflags.o, build/genoutput.o)
9756         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
9757         (build/read-md.o): New rule.
9758         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
9759         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
9760         * coretypes.h: ...here.
9761         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
9762         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
9763         * genattr.c: Include read-md.h.
9764         * genattrtab.c: Likewise.
9765         * genconditions.c: Likewise.
9766         * genemit.c: Likewise.
9767         * genextract.c: Likewise.
9768         * genflags.c: Likewise.
9769         * genoutput.c: Likewise.
9770         * genpreds.c: Likewise.
9771         * genrecog.c: Likewise.
9772         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
9773         (join_c_conditions, print_c_condition, read_rtx_filename)
9774         (read_rtx_lineno): Move to read-md.h.
9775         * read-rtl.c: Include read-md.h.
9776         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
9777         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
9778         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
9779         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
9780         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
9781         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
9782         (read_braced_string, read_string): Move to read-md.c.
9783         (read_rtx): Move some initialization to init_md_reader and call
9784         init_md_reader here.
9785         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
9786         Move to read-md.h.
9787         * gensupport.c: Include read-md.h.
9788         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
9789         * read-md.h, read-md.c: New files.
9790
9791 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
9792
9793         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9794         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9795         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
9796         * config/moxie/moxie.c (moxie_function_value): Make static.
9797         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
9798         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9799
9800 2010-06-10  Martin Jambor  <mjambor@suse.cz>
9801
9802         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
9803         * dbgcnt.def (tree_sra): New counter.
9804         * tree-sra.c: Include dbgcnt.h.
9805         (gate_intra_sra): Check tree_sra debug counter.
9806
9807 2010-06-10  Martin Jambor  <mjambor@suse.cz>
9808
9809         PR tree-optimization/44258
9810         * tree-sra.c (build_access_subtree): Return false iff there is a
9811         partial overlap.
9812         (build_access_trees): Likewise.
9813         (analyze_all_variable_accesses): Disqualify candidates if
9814         build_access_trees returns true for them.
9815
9816 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
9817
9818         PR debug/41371
9819         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
9820         tail-recurse into canonical node.  Fast-forward over
9821         non-canonical VALUEs.
9822
9823 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
9824
9825         PR boostrap/44470
9826         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
9827         (*addsi_1_zext) <TYPE_LEA>: Likewise.
9828         (add lea splitter): Likewise.
9829         (add_zext lea splitter): Likewise.
9830
9831 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
9832
9833         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
9834
9835 2010-06-10  Jan Hubicka  <jh@suse.cz>
9836
9837         * df-problems.c (df_live_problem_data): Add live_bitmaps.
9838         (df_live_alloc): Initialize problem data and live_osbtacks.
9839         (df_live_finalize): Remove obstack, problem data; do not
9840         clear all bitmaps.
9841         (df_live_top_dump, df_live_bottom_dump): Do not dump old
9842         data when not allocated.
9843         (df_live_verify_solution_start): Do not allocate problem data.
9844         (df_live_verify_solution_end): Check if out is allocated.
9845         (struct df_md_problem_data): New structure.
9846         (df_md_alloc): Allocate problem data.
9847         (df_md_free): Free problem data; do not clear bitmaps.
9848
9849 2010-06-10  Jan Beulich  <jbeulich@novell.com>
9850
9851         PR bootstrap/37304
9852         * configure.ac: Replace $() with ${} when intending to expand
9853         variables rather than invoking commands.
9854         * configure: Re-generate.
9855
9856 2010-06-10  Jan Hubicka  <jh@suse.cz>
9857
9858         PR rtl-optimization/44460
9859         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
9860         TYPE_NEEDS_CONSTRUCTING sanity check.
9861
9862 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
9863
9864         * doc/include/fdl.texi: Move to GFDL version 1.3.
9865
9866         * doc/cpp.texi: Move to GFDL version 1.3.
9867         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
9868         * doc/gccint.texi: Move to GFDL version 1.3.
9869         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
9870         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
9871         * doc/invoke.texi: Move to GFDL version 1.3.
9872
9873 2010-06-09  Jan Hubicka  <jh@suse.cz>
9874
9875         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
9876         Break out from ...
9877         (propagate) ... here; swap the order.
9878
9879 2010-06-09  Jan Hubicka  <jh@suse.cz>
9880
9881         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
9882         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
9883         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
9884         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
9885
9886 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
9887
9888         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
9889         Do not the gather memory reference in the outer loop if the step
9890         is not a constant.
9891
9892 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
9893
9894         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
9895         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
9896         8 to 4.  Minor change of the related comments.
9897
9898 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
9899
9900         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
9901         the scev analysis when the variable is not used outside the loop
9902         in a close phi node: call compute_overall_effect_of_inner_loop.
9903
9904 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
9905
9906         * graphite-sese-to-poly.c (single_pred_cond): Renamed
9907         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
9908         (build_sese_conditions_before): Renamed call to single_pred_cond.
9909         (build_sese_conditions_after): Same.
9910
9911 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
9912
9913         * graphite-poly.h: Fix comments and indentation.
9914         * graphite-sese-to-poly.c: Same.
9915         (build_sese_conditions_before): Compute stmt and gbb only when needed.
9916         * tree-chrec.c: Fix comments and indentation.
9917         (tree-ssa-loop-niter.c): Same.
9918
9919 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
9920
9921         PR rtl-optimization/42461
9922         * dce.c (deletable_insn_p): Return true for const or pure calls again.
9923         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
9924
9925 2010-06-09  Jan Hubicka  <jh@suse.cz>
9926
9927         * bitmap.c (bitmap_and): Walk array forward.
9928         (bitmap_and_compl_into): Likewise.
9929         (bitmap_xor): Likewise.
9930         (bitmap_xor_into):  Likewise.
9931         (bitmap_equal_p): Likewise.
9932         (bitmap_intersect_p): Likewise.
9933         (bitmap_intersect_compl_p): Likewise.
9934         (bitmap_ior_and_into): Likewise.
9935         (bitmap_elt_copy): Likewise.
9936         (bitmap_and_compl): Likewise.
9937         (bitmap_elt_ior): Likewise.
9938
9939 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
9940
9941         * opts-common.c (prune_options): Ensure replacement argv array
9942         is correctly terminated by a NULL entry.
9943
9944 2010-06-09  Jan Hubicka  <jh@suse.cz>
9945
9946         * cgraph.h (varpool_first_static_initializer,
9947         varpool_next_static_initializer): Make checking only when
9948         checking enabled.
9949         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
9950         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
9951         gcc_assert to gcc_checking_assert.
9952         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
9953         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
9954         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
9955         op_iter_init_phiuse, op_iter_init_phidef,
9956         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
9957         gcc_checking_assert.
9958         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
9959         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
9960         partition_is_global, live_on_entry, live_on_exit,
9961         live_merge_and_clear): Likewise.
9962         * system.h (gcc_checking_assert): New macro.
9963         * gimple.h (set_bb_seq): Use gcc_checking_assert.
9964
9965 2010-06-09  Jason Merrill  <jason@redhat.com>
9966
9967         * Makefile.in (TAGS): Collect tags info from c-family.
9968
9969 2010-06-09  Jan Hubicka  <jh@suse.cz>
9970
9971         * gimple.h (gcc_gimple_checking_assert): New macro.
9972         (gimple_set_def_ops, gimple_set_use_ops,
9973         gimple_set_vuse, gimple_set_vdef,
9974         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
9975         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
9976         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
9977         gimple_asm_output_op, gimple_asm_output_op_ptr,
9978         gimple_asm_set_output_op, gimple_asm_clobber_op,
9979         gimple_asm_set_clobber_op, gimple_asm_label_op,
9980         gimple_asm_set_label_op, gimple_try_set_kind,
9981         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
9982         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
9983         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
9984         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
9985         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
9986         gimple_omp_for_set_initial, gimple_omp_for_final,
9987         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
9988         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
9989         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
9990         conditional with ENABLE_GIMPLE_CHECKING.
9991         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
9992
9993 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
9994
9995         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
9996         (get_computation_cost_at): Use it.
9997         (determine_use_iv_cost_condition): Likewise.
9998         (determine_iv_cost): Likewise.
9999
10000 2010-06-09  Richard Guenther  <rguenther@suse.de>
10001
10002         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
10003         replace constants.
10004
10005 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
10006
10007         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
10008
10009 2010-06-09  Martin Jambor  <mjambor@suse.cz>
10010
10011         PR tree-optimization/44423
10012         * tree-sra.c (dump_access): Dump also grp_assignment_read.
10013         (analyze_access_subtree): Pass negative allow_replacements to children
10014         if the current type is scalar.
10015
10016 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
10017
10018         PR testsuite/42843
10019         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
10020         * doc/plugins.texi (Plugin license check): Update information
10021         on type of plugin_is_GPL_compatible.
10022         * Makefile.in (PLUGINCC): Define as $(COMPILER).
10023         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
10024
10025 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
10026
10027         * config/arm/arm.c (thumb2_reorg): New function.
10028         (arm_reorg): Call it.
10029         * config/arm/thumb2.md (define_peephole2 for flag clobbering
10030         arithmetic operations): Delete.
10031
10032 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
10033
10034         PR target/44067
10035         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
10036         e500v2 target.
10037
10038 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
10039
10040         PR plugins/44459
10041         * gcc-plugin.h: Encapsulate all declarations in extern "C".
10042
10043 2010-06-08  Jan Hubicka  <jh@suse.cz>
10044
10045         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
10046         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
10047
10048 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
10049
10050         PR tree-optimization/39874
10051         PR middle-end/28685
10052         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
10053         Declare.
10054         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
10055         same_bool_result_p): New.
10056         (and_var_with_comparison, and_var_with_comparison_1,
10057         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
10058         (or_var_with_comparison, or_var_with_comparison_1,
10059         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
10060         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
10061         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
10062         of combine_comparisons.
10063         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
10064
10065 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
10066
10067         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
10068         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10069         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
10070         pdp11_function_value_regno_p): New functions.
10071         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10072         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10073
10074 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
10075
10076         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
10077         Thumb-2 in the MINUS case.
10078
10079 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10080
10081         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
10082
10083         * doc/gty.texi (GTY Options): Document typed GC allocation and
10084         variable_size GTY option.
10085
10086         * ggc-internal.h: New.
10087
10088         * ggc.h: Update copyright year.
10089         (digit_string): Move to stringpool.c.
10090         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
10091         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
10092         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
10093         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
10094         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
10095         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
10096         (ggc_force_collect, ggc_get_size, ggc_statistics)
10097         (ggc_print_common_statistics): Move to ggc-internal.h.
10098         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
10099         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
10100         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
10101         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
10102         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
10103         (ggc_alloc_zone_pass_stat): Remove.
10104         (ggc_internal_alloc_stat, ggc_internal_alloc)
10105         (ggc_internal_cleared_alloc_stat): New.
10106         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
10107         (ggc_internal_vec_alloc_stat)
10108         (ggc_internal_cleared_vec_alloc_stat)
10109         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
10110         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
10111         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
10112         (ggc_cleared_alloc_ptr_array_two_args): New.
10113         (htab_create_ggc, splay_tree_new_ggc): Redefine.
10114         (ggc_splay_alloc): Change the type of the first argument to
10115         enum gt_types_enum.
10116         (ggc_alloc_string): Make macro.
10117         (ggc_alloc_string_stat): New.
10118         (ggc_strdup): Redefine.
10119         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
10120         (ggc_alloc_rtvec_sized): New.
10121         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
10122         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
10123         (ggc_internal_cleared_alloc_zone_stat)
10124         (ggc_internal_zone_alloc_stat)
10125         (ggc_internal_zone_cleared_alloc_stat)
10126         (ggc_internal_zone_vec_alloc_stat)
10127         (ggc_alloc_zone_rtx_def_stat)
10128         (ggc_alloc_zone_tree_node_stat)
10129         (ggc_alloc_zone_cleared_tree_node_stat)
10130         (ggc_alloc_cleared_gimple_statement_d_stat): New.
10131
10132         * ggc-common.c: Include ggc-internal.h.
10133         (ggc_internal_cleared_alloc_stat): Rename from
10134         ggc_alloc_cleared_stat.
10135         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
10136         (ggc_calloc): Remove.
10137         (ggc_cleared_alloc_htab_ignore_args): New.
10138         (ggc_cleared_alloc_ptr_array_two_args): New.
10139         (ggc_splay_alloc): Add obj_type parameter.
10140         (init_ggc_heuristics): Formatting fixes.
10141
10142         * ggc-none.c: Update copyright year.
10143         (ggc_alloc_stat): Rename to ggc_alloc_stat.
10144         (ggc_alloc_cleared_stat): Rename to
10145         ggc_internal_cleared_alloc_stat.
10146         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
10147
10148         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
10149         Remove references to ggc_alloc in comments.
10150         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
10151         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
10152         (new_ggc_zone, destroy_ggc_zone): Remove.
10153         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
10154
10155         * ggc-zone.c: Include ggc-internal.h.  Remove references to
10156         ggc_alloc in comments.
10157         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
10158         (ggc_internal_alloc_zone_pass_stat): New.
10159         (ggc_internal_cleared_alloc_zone_stat): New.
10160         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
10161         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
10162         (new_ggc_zone, destroy_ggc_zone): Remove.
10163
10164         * stringpool.c: Update copyright year.  Include ggc-internal.h
10165         (digit_vector): Make static.
10166         (digit_string): Moved from ggc.h.
10167         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
10168         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
10169
10170         * Makefile.in (GGC_INTERNAL_H): New.
10171         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
10172         $(GGC_INTERNAL_H) to dependencies.
10173
10174         * gentype.c: Update copyright year.
10175         (walk_type): Accept variable_size GTY option.
10176         (USED_BY_TYPED_GC_P): New macro.
10177         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
10178         whitespace at the end of strings.
10179         (get_type_specifier, variable_size_p): New functions.
10180         (alloc_quantity, alloc_zone): New enums.
10181         (write_typed_alloc_def): New function.
10182         (write_typed_struct_alloc_def): Likewise.
10183         (write_typed_typed_typedef_alloc_def): Likewise.
10184         (write_typed_alloc_defns): Likewise.
10185         (output_typename, write_splay_tree_allocator_def): Likewise.
10186         (write_splay_tree_allocators): Likewise.
10187         (main): Call write_typed_alloc_defns and
10188         write_splay_tree_allocators.
10189
10190         * lto-streamer.h (lto_file_decl_data_ptr): New.
10191
10192         * passes.c (order): Define using cgraph_node_ptr.
10193
10194         * strinpool.c (struct string_pool_data): Declare nested_ptr using
10195         ht_identifier_ptr.
10196
10197         * gimple.h (union gimple_statement_d): Likewise.
10198
10199         * rtl.h (struct rtx_def): Likewise.
10200         (struct rtvec_def): Likewise.
10201
10202         * tree.h (union tree_node): Likewise.
10203
10204         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
10205
10206         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
10207
10208         * tree-scalar-evolution.c (scev_initialize): Likewise.
10209
10210         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
10211
10212         * dwarf2asm.c (dw2_force_const_mem): Likewise.
10213
10214         * omp-low.c (lower_omp_critical): Likewise.
10215
10216         * bitmap.h (struct bitmap_head_def): Update comment to not
10217         reference ggc_alloc.
10218
10219         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
10220
10221         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
10222
10223         * ipa-prop.c (duplicate_ggc_array): Rename to
10224         duplicate_ipa_jump_func_array.  Use typed GC allocation.
10225         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
10226
10227         * gimple.c (gimple_alloc_stat): Use
10228         ggc_alloc_cleared_gimple_statement_d_stat.
10229
10230         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
10231
10232         * tree.c (make_node_stat): Use
10233         ggc_alloc_zone_cleared_tree_node_stat.
10234         (make_tree_vec_stat): Likewise.
10235         (build_vl_exp_stat): Likewise.
10236         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
10237         (make_tree_binfo_stat): Likewise.
10238         (tree_cons_stat): Likewise.
10239
10240         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
10241         (shallow_copy_rtx_stat): Likewise.
10242         (make_node_stat): Likewise.
10243
10244         * lto-symtab.c: Fix comment.
10245
10246         * tree-cfg.c (create_bb): Update comment to not reference
10247         ggc_alloc_cleared.
10248         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
10249
10250         * varpool.c (varpool_node): Use typed GC allocation.
10251         (varpool_extra_name_alias): Likewise.
10252
10253         * varasm.c (emutls_decl): Likewise.
10254         (get_unnamed_section): Likewise.
10255         (get_noswitch_section): Likewise.
10256         (get_section): Likewise.
10257         (get_block_for_section): Likewise.
10258         (build_constant_desc): Likewise.
10259         (create_constant_pool): Likewise.
10260         (force_const_mem): Likewise.
10261
10262         * tree.c (build_vl_exp_stat): Likewise.
10263         (build_real): Likewise.
10264         (build_string): Likewise.
10265         (decl_debug_expr_insert): Likewise.
10266         (decl_value_expr_insert): Likewise.
10267         (type_hash_add): Likewise.
10268         (build_omp_clause): Likewise.
10269
10270         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
10271
10272         * tree-ssa.c (init_tree_ssa): Likewise.
10273
10274         * tree-ssa-structalias.c (heapvar_insert): Likewise.
10275
10276         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
10277
10278         * tree-ssa-loop-niter.c (record_estimate): Likewise.
10279
10280         * tree-ssa-alias.c (get_ptr_info): Likewise.
10281
10282         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
10283
10284         * tree-phinodes.c (allocate_phi_node): Likewise.
10285
10286         * tree-iterator.c (tsi_link_before): Likewise.
10287         (tsi_link_after): Likewise.
10288
10289         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
10290
10291         * tree-dfa.c (create_var_ann): Likewise.
10292
10293         * tree-cfg.c (create_bb): Likewise.
10294
10295         * toplev.c (alloc_for_identifier_to_locale): Likewise.
10296         (general_init): Likewise.
10297
10298         * stringpool.c (stringpool_ggc_alloc): Likewise.
10299         (gt_pch_save_stringpool): Likewise.
10300
10301         * sese.c (if_region_set_false_region): Likewise.
10302
10303         * passes.c (do_per_function_toporder): Likewise.
10304
10305         * optabs.c (set_optab_libfunc): Likewise.
10306         (set_conv_libfunc): Likewise.
10307
10308         * lto-symtab.c (lto_symtab_register_decl): Likewise.
10309
10310         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
10311         (input_eh_region): Likewise.
10312         (input_eh_lp): Likewise.
10313         (make_new_block): Likewise.
10314         (unpack_ts_real_cst_value_fields): Likewise.
10315
10316         * lto-section-in.c (lto_new_in_decl_state): Likewise.
10317
10318         * lto-cgraph.c (input_node_opt_summary): Likewise.
10319
10320         * loop-init.c (loop_optimizer_init): Likewise.
10321
10322         * lambda.h (lambda_vector_new): Likewise.
10323
10324         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
10325
10326         * ira.c (update_equiv_regs): Likewise.
10327
10328         * ipa.c (cgraph_node_set_new): Likewise.
10329         (cgraph_node_set_add): Likewise.
10330         (varpool_node_set_new): Likewise.
10331         (varpool_node_set_add): Likewise.
10332
10333         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
10334         (duplicate_ipa_jump_func_array): Likewise.
10335         (ipa_read_node_info): Likewise.
10336
10337         * ipa-cp.c (ipcp_create_replace_map): Likewise.
10338
10339         * integrate.c (get_hard_reg_initial_val): Likewise.
10340
10341         * gimple.c (gimple_alloc_stat): Likewise.
10342         (gimple_build_omp_for): Likewise.
10343         (gimple_seq_alloc): Likewise.
10344         (gimple_copy): Likewise.
10345
10346         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
10347         (gsi_insert_after_without_update): Likewise.
10348
10349         * function.c (add_frame_space): Likewise.
10350         (insert_temp_slot_address): Likewise.
10351         (assign_stack_temp_for_type): Likewise.
10352         (allocate_struct_function): Likewise.
10353         (types_used_by_var_decl_insert): Likewise.
10354
10355         * except.c (init_eh_for_function): Likewise.
10356         (gen_eh_region): Likewise.
10357         (gen_eh_region_catch): Likewise.
10358         (gen_eh_landing_pad): Likewise.
10359         (add_call_site): Likewise.
10360
10361         * emit-rtl.c (get_mem_attrs): Likewise.
10362         (get_reg_attrs): Likewise.
10363         (start_sequence): Likewise.
10364         (init_emit): Likewise.
10365
10366         * dwarf2out.c (new_cfi): Likewise.
10367         (queue_reg_save): Likewise.
10368         (dwarf2out_frame_init): Likewise.
10369         (new_loc_descr): Likewise.
10370         (find_AT_string): Likewise.
10371         (new_die): Likewise.
10372         (add_var_loc_to_decl): Likewise.
10373         (clone_die): Likewise.
10374         (clone_as_declaration): Likewise.
10375         (break_out_comdat_types): Likewise.
10376         (new_loc_list): Likewise.
10377         (loc_descriptor): Likewise.
10378         (add_loc_descr_to_each): Likewise.
10379         (add_const_value_attribute): Likewise.
10380         (tree_add_const_value_attribute): Likewise.
10381         (add_comp_dir_attribute): Likewise.
10382         (add_name_and_src_coords_attributes): Likewise.
10383         (lookup_filename): Likewise.
10384         (store_vcall_insn): Likewise.
10385         (dwarf2out_init): Likewise.
10386
10387         * dbxout.c (dbxout_init): Likewise.
10388
10389         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10390
10391         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
10392
10393         * config/score/score7.c (score7_output_external): Likewise.
10394
10395         * config/score/score3.c (score3_output_external): Likewise.
10396
10397         * config/s390/s390.c (s390_init_machine_status): Likewise.
10398
10399         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
10400         (rs6000_init_machine_status): Likewise.
10401         (output_toc): Likewise.
10402
10403         * config/pa/pa.c (pa_init_machine_status): Likewise.
10404         (get_deferred_plabel): Likewise.
10405
10406         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
10407
10408         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
10409
10410         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
10411
10412         * config/mep/mep.c (mep_init_machine_status): Likewise.
10413         (mep_note_pragma_flag): Likewise.
10414
10415         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
10416
10417         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
10418
10419         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
10420
10421         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
10422         (i386_pe_maybe_record_exported_symbol): Likewise.
10423
10424         * config/i386/i386.c (get_dllimport_decl): Likewise.
10425         (ix86_init_machine_status): Likewise.
10426         (assign_386_stack_local): Likewise.
10427
10428         * config/frv/frv.c (frv_init_machine_status): Likewise.
10429
10430         * config/darwin.c (machopic_indirection_name): Likewise.
10431
10432         * config/cris/cris.c (cris_init_machine_status): Likewise.
10433
10434         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
10435
10436         * config/avr/avr.c (avr_init_machine_status): Likewise.
10437
10438         * config/arm/arm.c (arm_init_machine_status): Likewise.
10439
10440         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
10441         (alpha_need_linkage): Likewise.
10442         (alpha_use_linkage): Likewise.
10443
10444         * cgraph.c (cgraph_allocate_node): Likewise.
10445         (cgraph_create_edge_1): Likewise.
10446         (cgraph_create_indirect_edge): Likewise.
10447         (cgraph_add_asm_node): Likewise.
10448
10449         * cfgrtl.c (init_rtl_bb_info): Likewise.
10450
10451         * cfgloop.c (alloc_loop): Likewise.
10452         (rescan_loop_exit): Likewise.
10453
10454         * cfg.c (init_flow): Likewise.
10455         (alloc_block): Likewise.
10456         (unchecked_make_edge): Likewise.
10457
10458         * c-parser.c (c_parse_init): Likewise.
10459         (c_parse_file): Likewise.
10460
10461         * c-decl.c (bind): Likewise.
10462         (record_inline_static): Likewise.
10463         (push_scope): Likewise.
10464         (make_label): Likewise.
10465         (lookup_label_for_goto): Likewise.
10466         (finish_struct): Likewise.
10467         (finish_enum): Likewise.
10468         (c_push_function_context): Likewise.
10469
10470         * bitmap.c (bitmap_element_allocate): Likewise.
10471         (bitmap_gc_alloc_stat): Likewise.
10472
10473         * alias.c (record_alias_subset): Likewise.
10474         (init_alias_analysis): Likewise.
10475
10476 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
10477
10478         * fold-const.c (fold_comparison): Remove redundant parenthesis.
10479         * tree-inline.c (expand_call_inline): Pass translated return value of
10480         cgraph_inline_failed_string to diagnostic function.
10481
10482 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
10483             Shujing Zhao  <pearly.zhao@oracle.com>
10484
10485         PR c/37724
10486         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
10487         implicit bad conversions is initialization.
10488         (error_init): Use gmsgid instead of msgid for argument name and change
10489         the call for error.
10490         (pedwarn_init): Use gmsgid instead of msgid for argument name and
10491         change the call for pedwarn.
10492         (warning_init): Use gmsgid instead of msgid for argument name and
10493         change the call for warning.
10494
10495 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
10496
10497         * config/mips/mips-protos.h (mips_print_operand): Delete.
10498         (mips_print_operand_address): Delete.
10499         * config/mips/mips.h (mips_print_operand_punct): Delete.
10500         (PRINT_OPERAND): Delete.
10501         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10502         (PRINT_OPERAND_ADDRESS): Delete.
10503         * config/mips/mips.c (mips_print_operand_punct): Make static.
10504         (mips_print_operand_address): Make static.
10505         (mips_print_operand): Make static.  Call
10506         mips_print_operand_punct_valid_p.
10507         (mips_print_operand_punct_valid_p): New function.
10508         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10509         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10510
10511 2010-06-07  Jan Hubicka  <jh@suse.cz>
10512
10513         PR middle-end/44454
10514         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
10515         are allocated.
10516
10517 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
10518
10519         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
10520         name of RECORD.
10521
10522 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10523
10524         * doc/sourcebuild.texi (Effective-Target Keywords, Other
10525         attributes): Document gas.
10526
10527 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
10528
10529         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
10530         <TYPE_LEA>: Split instruction.
10531         <default>: Remove alternative 2 handling.
10532         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
10533         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
10534         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
10535
10536         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
10537         (ashift_zext lea splitter): Use DImode for multiplication.
10538
10539         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
10540         to generate addition.
10541
10542 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
10543
10544         * common.opt (fira-verbose): Use Var.
10545         (fpcc-struct-return): Use Init instead of VarExists.
10546         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
10547         toplev.c.
10548         * flags.h (flag_signed_char, flag_short_enums,
10549         flag_pcc_struct_return, flag_ira_verbose,
10550         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
10551         * toplev.c (flag_detailed_statistics, flag_signed_char,
10552         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
10553         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
10554         * toplev.h (flag_crossjumping, flag_if_conversion,
10555         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
10556         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
10557         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
10558         flag_cprop_registers, time_report, flag_ira_loop_pressure,
10559         flag_ira_coalesce, flag_ira_move_spills,
10560         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
10561
10562 2010-06-07  Jan Hubicka  <jh@suse.cz>
10563
10564         * df-core.c (df_analyze_problem): Do verification after allocation.
10565
10566         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
10567         (df_lr_alloc): Initialize problem data; move bitmaps to
10568         lr_bitmaps obstack.
10569         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
10570         (df_lr_verify_solution_start): Do not initialize problem data;
10571         allocate bitmaps in lr_bitmaps.
10572         (df_lr_verify_solution_end): Do not free problem data.
10573
10574 2010-06-07  Jan Hubicka  <jh@suse.cz>
10575
10576         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
10577         if caller is noreturn.
10578         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
10579         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
10580         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
10581         * ipa-pure-const.c (check_decl): Add IPA parameter.
10582         (state_from_flags): New function.
10583         (better_state, worse_state): New functions.
10584         (check_call): When in IPA mode, do not care about callees.
10585         (check_load, check_store): Update.
10586         (check_ipa_load, check_ipa_store): New.
10587         (check_stmt): When in IPA mode, use IPA checkers.
10588         (analyze_function): Use state_from_flags.
10589         (propagate): Check indirect edges and references.
10590
10591 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
10592
10593         PR rtl-optimization/44404
10594         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
10595         of count_occurrences to see if it's safe to modify mem_insn.
10596
10597 2010-06-07  Richard Guenther  <rguenther@suse.de>
10598
10599         * gimplify.c (gimplify_cleanup_point_expr): For empty body
10600         and EH-only cleanup drop the cleanup instead of inserting it
10601         unconditionally.
10602
10603 2010-06-07  Ira Rosen  <irar@il.ibm.com>
10604
10605         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
10606         documentation.
10607         * targhooks.c (default_builtin_vectorization_cost): New function.
10608         * targhooks.h (default_builtin_vectorization_cost): Declare.
10609         * target.h (enum vect_cost_for_stmt): Define.
10610         (builtin_vectorization_cost): Change argument and comment.
10611         * tree-vectorizer.h: Remove cost model macros.
10612         * tree-vect-loop.c: Include target.h.
10613         (vect_get_cost): New function.
10614         (vect_estimate_min_profitable_iters): Replace cost model macros with
10615         calls to vect_get_cost.
10616         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
10617         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
10618         default implementation.
10619         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
10620         calls to target hook builtin_vectorization_cost.
10621         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
10622         Likewise.
10623         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
10624         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
10625         implementation to return costs.
10626         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
10627         * config/spu/spu.h: Remove vectorizer cost model macros.
10628         * config/i386/i386.h: Likewise.
10629         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
10630         a call to target hook builtin_vectorization_cost.
10631
10632 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
10633
10634         PR target/44319
10635         * config/i386/i386.c (override_options): Turn zee pass on for level 2
10636         and above and defer till target is known.
10637         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
10638         turn off otherwise.
10639
10640 2010-05-25  Jan Hubicka  <jh@suse.cz>
10641
10642         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
10643         (df_compact_blocks): Likewise.
10644         * df.h (struct df): Turn hardware_regs_used,
10645         regular_block_artificial_uses, eh_block_artificial_uses,
10646         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
10647         bitmap_head.
10648         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
10649         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
10650         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
10651         df_scan_blocks, df_insn_delete, df_insn_rescan,
10652         df_insn_rescan_debug_internal, df_insn_rescan_all,
10653         df_process_deferred_rescans, df_process_deferred_rescans,
10654         df_notes_rescan, df_get_call_refs, df_get_call_refs,
10655         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
10656         df_record_entry_block_defs, df_record_exit_block_uses,
10657         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
10658         df_scan_verify): Update.
10659
10660 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
10661
10662         PR c++/44188
10663         * c-common.c (is_typedef_decl): Move this definition ...
10664         * tree.c (is_typedef_decl): ... here.
10665         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
10666         * c-common.h (is_typedef_decl): Move this declaration ...
10667         * tree.h (is_typedef_decl): ... here.
10668         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
10669         * dwarf2out.c (is_naming_typedef_decl): New function.
10670         (gen_tagged_type_die): Split out of ...
10671         (gen_type_die_with_usage): ... this function. When an anonymous
10672         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
10673         is emitted for the typedef.
10674         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
10675         anonymous tagged types.
10676
10677 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10678
10679         PR c/20000
10680         * c-decl.c (grokdeclarator): Delete warning.
10681
10682 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
10683
10684         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
10685         newly built CALL_EXPR.
10686         * tree-profile.c (tree_profiling): Don't profile functions produced
10687         for built-in stuff.
10688
10689 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
10690
10691         PR bootstrap/44427
10692         PR bootstrap/44428
10693         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
10694         endianness-independent.
10695
10696 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
10697
10698         * c-common.c: Move to c-family/.
10699         * c-common.def: Likewise.
10700         * c-common.h: Likewise.
10701         * c-cppbuiltin.c: Likewise.
10702         * c-dump.c: Likewise.
10703         * c-format.c: Likewise.
10704         * c-format.h : Likewise.
10705         * c-gimplify.c: Likewise.
10706         * c-lex.c: Likewise.
10707         * c-omp.c: Likewise.
10708         * c.opt: Likewise.
10709         * c-opts.c: Likewise.
10710         * c-pch.c: Likewise.
10711         * c-ppoutput.c: Likewise.
10712         * c-pragma.c: Likewise.
10713         * c-pragma.h: Likewise.
10714         * c-pretty-print.c: Likewise.
10715         * c-pretty-print.h: Likewise.
10716         * c-semantics.c: Likewise.
10717         * stub-objc.c: Likewise.
10718
10719         * gengtype.c (get_file_langdir): Special-case files in c-family/.
10720         (get_output_file_with_visibility): Fix name for c-common.h.
10721         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
10722
10723         * c-tree.h: Update include path for moved files.
10724         * c-lang.c: Likewise.
10725         * c-lang.h: Likewise.
10726         * c-parser.c: Likewise.
10727         * c-convert.c: Likewise.
10728         * c-decl.c: Likewise.
10729         * c-objc-common.c: Likewise.
10730         * configure.ac: Make sure c-family/ exists in the build directory.
10731         * configure: Regenerate.
10732         * Makefile.in: Update paths for moved files.  Regroup files per
10733         location and update dependencies.  Move generated_files down after
10734         ALL_GTFILES_H.
10735
10736         * config/spu/spu-c.c: Update paths for moved files.
10737         * config/mep/mep-pragma.c: Likewise.
10738         * config/darwin-c.c: Likewise.
10739         * config/i386/msformat-c.c: Likewise.
10740         * config/i386/i386-c.c: Likewise.
10741         * config/avr/avr-c.c: Likewise.
10742         * config/sol2-c.c: Likewise.
10743         * config/ia64/ia64-c.c: Likewise.
10744         * config/rs6000/rs6000-c.c: Likewise.
10745         * config/arm/arm.c: Likewise.
10746         * config/arm/arm-c.c: Likewise.
10747         * config/h8300/h8300.c: Likewise.
10748         * config/v850/v850-c.c: Likewise.
10749
10750         * config/t-darwin: Fix dependencies for moved files.
10751         * config/t-sol2: Fix dependencies for moved files.
10752         * config/mep/t-mep: Fix dependencies for moved files.
10753         * config/ia64/t-ia64: Fix dependencies for moved files.
10754         * config/rs6000/t-rs6000: Fix dependencies for moved files.
10755         * config/v850/t-v850: Fix dependencies for moved files.
10756         * config/v850/t-v850e: Fix dependencies for moved files.
10757
10758         * config/m32c/m32c-pragma.c
10759
10760         * po/exgettext: Look in c-family/ also.
10761
10762 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
10763
10764         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
10765         (mark_control_dependent_edges_necessary): Call it instead of marking
10766         the last statement manually.
10767         (propagate_necessity): Likewise.
10768
10769 2010-06-05  Jan Hubicka  <jh@suse.cz>
10770
10771         * basic-block.h (compute_dominance_frontiers): Updated.
10772         (compute_idf): Likewise.
10773
10774         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
10775         for dominance frontiers.
10776         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
10777         (insert_updated_phi_nodes_for): Likewise.
10778         (update_ssa): Likewise.
10779         * cfganal.c (compute_dominance_frontiers_1): Likewise.
10780         (compute_dominance_frontiers): Likewise.
10781         (compute_idf): Likewise.
10782         * df-problems.c (df_md_local_compute): Likewise.
10783
10784 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
10785
10786         * target.h (struct gcc_target): Add memory_move_cost field.
10787         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
10788         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
10789         * targhooks.c (default_memory_move_cost): New function.
10790         * targhooks.h (default_memory_move_cost): Declare function.
10791         * reload.h (memory_move_cost): Declare.
10792         (memory_move_secondary_cost): Change type of 'in' argument to bool.
10793         * reginfo.c (memory_move_cost): New function.
10794         (memory_move_secondary_cost): Change type of 'in' argument to bool.
10795         * ira.h (ira_memory_move_cost): Update comment.
10796         * ira.c (ira_memory_move_cost): Update comment.
10797         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
10798         with memory_move_cost.
10799         * postreload.c (reload_cse_simplify_set): (Ditto.).
10800         * reload1.c (choose_reload_regs): (Ditto.).
10801         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
10802         (MEMORY_MOVE_COST):  Revise documentation.
10803
10804         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
10805         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
10806         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
10807         type of 'in' argument to bool.
10808         (TARGET_MEMORY_MOVE_COST): Define.
10809
10810 2010-06-05  Jan Hubicka  <jh@suse.cz>
10811
10812         * ipa-pure-const.c (propagate): Fix typo in handling of functions
10813         that cannot return.  Be more careful when merging the results with
10814         previously known ones.
10815
10816 2010-06-05  Matthias Klose  <doko@ubuntu.com>
10817
10818         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
10819         function to add the -iplugindir option.
10820         (find_plugindir_spec_function): Add new declaration and function.
10821         (static_spec_func): Use it for "find-plugindir".
10822
10823 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
10824
10825         PR c++/44361
10826         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
10827         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
10828         statement expression.
10829
10830 2010-06-05  Jan Hubicka  <jh@suse.cz>
10831
10832         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
10833         (df_rd_problem_data): Convert sparse_invalidated_by_call,
10834         dense_invalidated_by_call to bitmap head.
10835         (df_rd_alloc, df_rd_bb_local_compute_process_def,
10836         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
10837         df_rd_start_dump, df_lr_verify_transfer_functions,
10838         df_live_verify_transfer_functions, df_chain_create_bb,
10839         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
10840         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
10841         df_simulate_one_insn_forwards, df_md_alloc,
10842         df_md_bb_local_compute_process_def,
10843         df_md_bb_local_compute_process_def, df_md_local_compute,
10844         df_md_transfer_function df_md_free): Update.
10845
10846 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
10847
10848         PR c/44322
10849         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
10850         target type for ADDR_EXPR; require no changes to qualifiers except
10851         for function types.
10852         * c-tree.h (c_build_type_variant): Remove.
10853
10854 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
10855
10856         * genautomata.c (get_excl_set): Do work per element, not per char.
10857         (check_presence_pattern_sets): Similar.
10858         (check_absence_pattern_sets): Similar.
10859
10860 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
10861
10862         * genautomata.c (curr_state_pass_num): Delete.
10863         (min_issue_delay_pass_states): Delete.
10864         (min_issue_delay): Delete.
10865         (initiate_min_issue_delay_pass_states): Delete.
10866         (output_min_issue_delay_table): Compute min_issue_delay_vect
10867         using a breadth-first search variant.
10868         (output_tables): Don't call initiate_min_issue_delay_pass_states.
10869
10870 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
10871
10872         PR boostrap/44421
10873         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
10874         (df_byte_lr_bb_local_compute): Likewise.
10875
10876 2010-06-03  Jason Merrill  <jason@redhat.com>
10877
10878         Implement noexcept operator (5.3.7)
10879         * c-common.c (c_common_reswords): Add noexcept.
10880         * c-common.h (enum rid): Add RID_NOEXCEPT.
10881
10882 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
10883
10884         * config/darwin-driver.c (darwin_default_min_version): Use
10885         GCC-specific formats in diagnostics.
10886         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
10887         diagnostics.
10888         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
10889         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
10890         eval_spec_function, handle_braces, process_brace_body, main,
10891         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
10892         getenv_spec_function, compare_version_strings,
10893         version_compare_spec_function): Use GCC-specific formats in
10894         diagnostics.
10895
10896 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
10897
10898         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
10899         that operand 0 and operand 1 are equal.
10900         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
10901         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
10902         and operand 1 are equal.
10903         <default>: Ditto.  Remove ??? comment.
10904         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
10905         and operand 1 are equal.
10906         <default>: Ditto.  Remove ??? comment.
10907         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
10908         are equal.
10909         (*add<mode>_4) <default>: Ditto.
10910         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
10911
10912 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
10913
10914         * config/i386/i386-protos.h (ix86_print_operand): Declare.
10915         * config/i386/i386.c (ix86_print_operand): Make non-static.
10916         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
10917         * output.h (output_operand): Declare.
10918         * final.c (output_operand): Make non-static.
10919
10920 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
10921
10922         PR rtl-optimization/44013
10923         * sched-deps.c (add_dependence_list_and_free): Don't free lists
10924         when processing debug insns.
10925
10926         PR debug/41371
10927         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
10928         recursing.  Check that recursion is bounded.  Rename inner var
10929         to avoid hiding incoming argument.
10930
10931 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
10932
10933         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
10934         operands[2] == 255.
10935         (*addqi_3): Ditto.
10936         (*addqi_4): Ditto.
10937         (*addqi_5): Ditto.
10938         (*addqi_ext_1_rex64): Ditto.
10939         (*addqi_ext_1): Ditto.
10940
10941         (*addqi_4): Check for incdec_operand in QImode.
10942
10943         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
10944         using SWI mode iterator.
10945         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
10946         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
10947         mode iterator.
10948         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
10949         using SWI mode iterator.
10950
10951 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10952
10953         PR c/25880
10954         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
10955         * c-format.c (gcc_diag_flag_specs): Add hash.
10956         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
10957         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
10958         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
10959         pp_c_cv_qualifiers. Handle qualifiers spelling here.
10960         (pp_c_type_qualifier_list): Call the function above.
10961         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
10962         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
10963         (WARN_FOR_QUALIFIERS): New macro.
10964         (convert_for_assignment): Use it.
10965
10966 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
10967
10968         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
10969
10970 2010-06-04  Jan Hubicka  <jh@suse.cz>
10971
10972         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
10973         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
10974         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
10975         DF_BYTE_LR_OUT): Update for embedded bitmaps.
10976         * fwprop.c (single_def_use_enter_block): Likewise.
10977         * ddg.c (create_ddg_dep_from_intra_loop_link,
10978         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
10979         * loop-iv.c (latch_dominating_def): Likewise.
10980         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
10981         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
10982         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
10983         df_rd_transfer_function, df_rd_top_dump,
10984         df_rd_bottom_dump): Update.
10985         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
10986         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
10987         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
10988         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
10989         df_lr_verify_solution_start, df_lr_verify_solution_end,
10990         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
10991         df_live_free_bb_info, df_live_alloc, df_live_reset,
10992         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
10993         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
10994         df_live_verify_solution_start, df_live_verify_solution_end,
10995         df_live_verify_transfer_functions, df_chain_create_bb,
10996         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
10997         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
10998         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
10999         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
11000         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
11001         df_byte_lr_transfer_function, df_byte_lr_top_dump,
11002         df_byte_lr_bottom_dump, df_create_unused_note,
11003         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
11004         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
11005         df_md_transfer_function, df_md_init, df_md_confluence_0,
11006         df_md_confluence_n,
11007         df_md_top_dump, df_md_bottom_dump): Update.
11008         (struct df_lr_problem_data): Embedd bitmap headers.
11009
11010 2010-06-04  Jan Hubicka  <jh@suse.cz>
11011
11012         * dce.c (dce_process_block): Do not re-scan already marked
11013         instructions.
11014
11015 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
11016
11017         PR rtl-optimization/39871
11018         PR rtl-optimization/40615
11019         PR rtl-optimization/42500
11020         PR rtl-optimization/42502
11021         * ira.c (init_reg_equiv_memory_loc: New function.
11022         (ira): Call it twice.
11023         * reload.h (calculate_elim_costs_all_insns): Declare.
11024         * ira-costs.c: Include "reload.h".
11025         (regno_equiv_gains): New static variable.
11026         (init_costs): Allocate it.
11027         (finish_costs): Free it.
11028         (ira_costs): Call calculate_elim_costs_all_insns.
11029         (find_costs_and_classes): Take estimated elimination costs
11030         into account.
11031         (ira_adjust_equiv_reg_cost): New function.
11032         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
11033         * reload1.c (init_eliminable_invariants, free_reg_equiv,
11034         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
11035         (elim_bb): New static variable.
11036         (reload): Move code out of here into init_eliminable_invariants and
11037         free_reg_equiv.  Call them.
11038         (calculate_elim_costs_all_insns): New function.
11039         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
11040         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
11041         but call note_reg_elim_costly if we turned a valid memory address
11042         into an invalid one.
11043         * Makefile.in (ira-costs.o): Depend on reload.h.
11044
11045 2010-06-04  Julian Brown  <julian@codesourcery.com>
11046
11047         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
11048         for pool ranges.
11049
11050 2010-06-04  Richard Guenther  <rguenther@suse.de>
11051
11052         PR lto/41584
11053         * cgraph.h (struct varpool_node): Add lto_file_data field.
11054         * lto-cgraph.c (input_varpool_node): Initialize it.
11055
11056 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
11057
11058         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
11059         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
11060         predicate in "type" attribute calculation.
11061         (*addsi_1_zext): Ditto.
11062         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
11063         (*addsi_2_zext): Ditto.
11064         (*add<mode>_3): Ditto.
11065         (*addsi_3_zext): Ditto.
11066         (*add<mode>_5): Ditto.
11067
11068 2010-06-03  Jan Hubicka  <jh@suse.cz>
11069
11070         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
11071         of bitmap_bit_p.
11072         * cfganal.c (compute_dominance_frontiers_1): Likewise.
11073
11074 2010-06-03  Jan Hubicka  <jh@suse.cz>
11075
11076         * df-problems.c (df_create_unused_note, df_note_bb_compute):
11077         micro-optimize the checks when to add new note.
11078
11079 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
11080
11081         * final.c (output_asm_insn): Call
11082         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
11083         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
11084         (output_address): Call targetm.asm_out.print_operand_address.
11085         Update comments.
11086         * target.h (struct gcc_target): Add print_operand,
11087         print_operand_address, and print_operand_punct_valid_p fields.
11088         * targhooks.h (default_print_operand): Declare.
11089         (default_print_operand_address): Declare.
11090         (default_print_operand_punct_valid_p): Declare.
11091         * targhooks.c (default_print_operand): Define.
11092         (default_print_operand_address): Define.
11093         (default_print_operand_punct_valid_p): Define.
11094         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
11095         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
11096         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
11097         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
11098         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
11099         * vmsdbgout.c (addr_const_to_string): Update comment.
11100         * config/i386/i386.c (print_operand): Rename to...
11101         (ix86_print_operand): ...this.  Make static.
11102         (print_operand_address): Rename to...
11103         (ix86_print_operand_address): ...this.  Make static.  Call
11104         ix86_print_operand instead of PRINT_OPERAND.
11105         (ix86_print_operand_punct_valid_p): New function.
11106         (TARGET_PRINT_OPERAND): Define.
11107         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11108         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11109         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
11110         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11111         (PRINT_OPERAND): Delete.
11112         (PRINT_OPERAND_ADDRESS): Delete.
11113         * config/i386/i386-protos.h (print_operand): Delete prototype.
11114         (print_operand_address): Delete prototype.
11115
11116 2010-06-03  Richard Guenther  <rguenther@suse.de>
11117
11118         PR tree-optimization/44403
11119         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11120         Preserve pointer qualifiers.
11121         (vect_create_data_ref_ptr): Likewise.
11122
11123 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
11124
11125         PR c++/44294
11126         * defaults.h (MAX_FIXED_MODE_SIZE): New.
11127
11128         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
11129
11130 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
11131
11132         PR debug/44375
11133         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
11134         return false if merging the bbs would lead to goto_locus
11135         location being lost from the IL.
11136
11137 2010-06-03  Jan Hubicka  <jh@suse.cz>
11138             Jakub Jelinek  <jakub@redhat.com>
11139
11140         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
11141         set->regs[i] is NULL or has just one entry.
11142
11143 2010-06-03  Jan Hubicka  <jh@suse.cz>
11144
11145         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
11146         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
11147
11148 2010-06-03  Paul Brook  <paul@codesourcery.com>
11149
11150         * config/arm/arm.c (FL_TUNE): Define.
11151         (arm_default_cpu, arm_cpu_select): Remove.
11152         (all_cores): Populate core field.
11153         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
11154         (arm_find_cpu): New function.
11155         (arm_handle_option): Lookup cpu/architecture names.
11156         (arm_override_options): Cleanup mcpu/march/mtune handling.
11157         (arm_file_start): Ditto.
11158
11159 2010-06-03  Alan Modra  <amodra@gmail.com>
11160
11161         PR target/44169
11162         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
11163         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
11164         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
11165         (rs6000_emit_load_toc_table): Likewise.
11166
11167 2010-06-02  Jan Hubicka  <jh@suse.cz>
11168
11169         * passes.c (init_optimization_passes): Put ipa reference
11170         after ipa pure-const.
11171
11172 2010-06-02  Jan Hubicka  <jh@suse.cz>
11173
11174         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
11175         calls_read_all and calls_write_all.
11176         (get_reference_optimization_summary): Fix formatting.
11177         (is_proper_for_analysis): Check that decl is not readonly.
11178         (propagate_bits): Check CONST/PURE/noreturn flags.
11179         (ipa_init): Move all_module_statics to optimization_summary_obstack.
11180         (analyze_function): Ignore indirect edges.
11181         (copy_global_bitmap): For all module statics, do nothing.
11182         (generate_summary): Do not print calls_read_all/calls_write_all.
11183         (read_write_all_from_decl): Take node as argument; check
11184         cgraph_node_cannot_return.
11185         (propagate): Reorganize read_all/write_all computation;
11186         check indirect edges; check ecf flags; use all_module_statics
11187         in the results; do not free all_module_statics.
11188         (stream_out_bitmap): Handle all_module_statics.
11189         (ipa_reference_write_optimization_summary): Likewise; use
11190         varpool/cgraph encoders to get boundaries.
11191         (ipa_reference_read_optimization_summary): Read in all_module_statics;
11192         use it when possible.
11193
11194 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11195
11196         PR target/44218
11197         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
11198         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
11199
11200         * doc/extend.texi (powerpc builtins): Document vec_recip,
11201         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
11202
11203         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
11204         (rs6000_emit_swrsqrt): Ditto.
11205         (rs6000_emit_swdivsf): Delete.
11206         (rs6000_emit_swdivdf): Ditto.
11207         (rs6000_emit_swrsqrtsf): Ditto.
11208
11209         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
11210         describe the reciprocal estimate support for each type.
11211         (recip_options): Map -mrecip=<opt> into option bits.
11212         (gen_2arg_fn_t): New typedef for binary rtx gen function.
11213         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
11214         reciprocal estimate instructions.
11215         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
11216         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
11217         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
11218         cost information if -mdebug=cost or -mdebug=reg.
11219         (rs6000_override_options): Set -mrecip-precision for power6, and
11220         power7 machines.  If -mvsx or -mdfp, enable various options that
11221         came in previous instruction set ISAs, unless the option was
11222         explicitly disabled by the command line option.  Parse
11223         -mrecip=<opt> options.
11224         (rs6000_builtin_vectorized_function): Add support for vectorizing
11225         the reciprocal estimate builtins and expansions.
11226         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
11227         (bdesc_2arg): Add reciprocal estimate builtins.
11228         (bdesc_1arg): Add reciprocal square root estimate builtins.
11229         (rs6000_expand_builtin): Rewrite to use a switch statement,
11230         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
11231         (rs6000_init_builtins): Create declarations for reciprocal
11232         estimate builtins.
11233         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
11234         sized, prefer traditional floating point registers, if integer
11235         vector types, prefer altivec registers.  Don't actually look at
11236         the memory address any more.
11237         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
11238         builtins.
11239         (rs6000_load_constant_and_splat): New helper function to load up
11240         the constant for reciprocal estimate instructions.
11241         (rs6000_emit_madd): New helper function for generating
11242         multiply/add type instructions, based on the current switches.
11243         (rs6000_emit_msub): Ditto.
11244         (rs6000_emit_mnsub): Ditto.
11245         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
11246         replace a divide with a reciprocal estimate and fixup, adding
11247         support for machines with high precision and vectors.
11248         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
11249         low precision machines.
11250         (rs6000_emit_swdiv): New common function to be called to replace a
11251         division with reciprocal estimate and fixup.
11252         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
11253         for double and vector types.  Add support for high precision machines.
11254
11255         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
11256         the reciprocal estimate instructions can be generated.
11257         (TARGET_FRE): Ditto.
11258         (TARGET_FRSQRTES): Ditto.
11259         (TARGET_FRSQRTE): Ditto.
11260         (RS6000_RECIP_*): New macros for reciprocal estimate support.
11261
11262         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
11263         square root estimate on vectors.
11264         (re<mode>2): New insn for reciprocal division estimate on vectors.
11265
11266         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
11267         New builtin.
11268         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
11269         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
11270         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
11271         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
11272         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
11273         (RS6000_BUILTIN_RSQRT): Ditto.
11274         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
11275         floating point builtin.
11276
11277         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
11278         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
11279         __RECIP_PRECISION__ based on the command line switches.
11280         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
11281
11282         * config/rs6000/rs6000.opt (-mrecip): Document add support for
11283         replacing division instructions with reciprocal estimate and fixup.
11284         (-mrecip=<opt>): New option.
11285         (-mrecip-precision): Ditto.
11286
11287         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
11288         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
11289         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
11290         precision scalar.
11291
11292         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
11293         (UNSPEC_VREFP): Ditto.
11294         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
11295         conterparts with regard to support of -mno-fused-madd and -ffast-math.
11296         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
11297         reciprocal estimate instructions to be generated.
11298         (altivec_vrefp): Ditto.
11299
11300         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
11301         estimate support.
11302         (rreg): New mode attribute for reciprocal estimate support.
11303         (recip<mode>3): New insn for division using reciprocal estimate
11304         and fixup builtins.
11305         (divide define_split): New define_split to convert floating point
11306         division to use reciprocal estimate if the user used the
11307         appropriate options and the split is run when we can add new
11308         pseudo registers for the fixup.
11309         (rsqrt<mode>2): New insn for reciprocal square root support.
11310         (recipsf3): Move into recip<mode>3.
11311         (recipdf3): Ditto.
11312         (fres): Use TARGET_FRES.
11313         (rsqrtsf2): Move into rsqrt<mode>2.
11314         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
11315         (copysignsf3): Add support for VSX.
11316         (fred): Use TARGET_FRE.
11317         (fred_fpr): Ditto.
11318         (rsqrtdf_internal1): New function for frsqrte instruciton.
11319
11320         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
11321         (vec_rsqrt): Ditto.
11322
11323 2010-06-03  Richard Guenther  <rguenther@suse.de>
11324
11325         PR middle-end/44291
11326         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
11327         (set_user_assembler_libfunc): Likewise.
11328
11329 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
11330
11331         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
11332         defaults.h.
11333         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
11334         to defaults.h
11335         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
11336         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
11337         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
11338         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
11339         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
11340         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
11341         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
11342         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
11343         * defaults.h: Updated for above mentioned changes.
11344
11345 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
11346
11347         * c-common.c: Remove header include of tm_p.h.
11348         * Makefile.in (c-common.o): Remove TM_P_H dependency.
11349
11350 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
11351
11352         * tree.h (struct tree_decl_map): New type.
11353         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
11354         (tree_decl_map_hash): New prototype.
11355         (debug_expr_for_decl, value_expr_for_decl): Change into
11356         tree_decl_map hashtab from tree_map.
11357         (init_ttree): Adjust initialization.
11358         (tree_decl_map_hash): New function.
11359         (decl_debug_expr_lookup, decl_debug_expr_insert,
11360         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
11361
11362 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11363
11364         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
11365         linker emulations.
11366         * configure: Regenerate.
11367         * config.in: Regenerate.
11368
11369         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
11370         (X86_64_EMULATION): Define.
11371         (TARGET_LD_EMULATION): Use them.
11372
11373         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
11374         (SPARC64_EMULATION): Define.
11375         (LINK_ARCH_SPEC): Use them.
11376
11377 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
11378
11379         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
11380         smallest_mode_for_size for computing the precision types of new
11381         graphite IVs.  Do not call lang_hooks.types.type_for_size.
11382
11383 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
11384
11385         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
11386         information.
11387         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
11388
11389 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
11390
11391         PR middle-end/44363
11392         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
11393         return false instead.
11394
11395 2010-06-02  Jan Hubicka  <jh@suse.cz>
11396
11397         PR middle-end/44295
11398         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
11399         create new cgraph node to check callee.
11400
11401 2010-06-02  Richard Guenther  <rguenther@suse.de>
11402
11403         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
11404
11405 2010-06-02  Richard Guenther  <rguenther@suse.de>
11406
11407         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
11408         (lto_wrapper_cleanup): ... this.  Do not exit.
11409         (fatal): Adjust.  Exit here.
11410         (fatal_perror): Likewise.
11411         (fatal_signal): New function.
11412         (main): Set up signal handlers to cleanup temporary files.
11413         * Makefile.in (lto-wrapper.o): Adjust dependencies.
11414
11415 2010-06-02  Richard Guenther  <rguenther@suse.de>
11416
11417         PR tree-optimization/44377
11418         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
11419
11420 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11421
11422         * config/s390/2097.md (z10_fhex): Remove insn reservation.
11423         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
11424         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
11425         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
11426         instruction.
11427         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
11428
11429 2010-06-02  Jan Hubicka  <jh@suse.cz>
11430
11431         * bitmap.c (bitmap_descriptor): Add search_iter.
11432         (bitmap_find_bit): Increment it.
11433         (print_statistics): Print it.
11434
11435 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
11436
11437         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
11438         instead of gimple_build_call_vec.  Delete unnecessary local variable.
11439
11440 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
11441
11442         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
11443         change from yesterday.
11444
11445 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
11446
11447         * c-ada-spec.c: Clean up redundant includes.
11448
11449 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
11450
11451         * gimplify.c: Do not include except.h and optabs.h.
11452         (gimplify_body): Do not initialize RTL profiling.
11453         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
11454         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
11455         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
11456         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
11457         langhooks.h.
11458
11459         * tree-pretty-print.h: Include pretty-print.h.
11460         * gimple-pretty-print.h: Include pretty-print.h.
11461
11462         * tree-pretty-print.c: Do not include diagnostic.h.
11463         * tree-vrp.c: Likewise.
11464         * tree-tailcall.c: Likewise
11465         * tree-scalar-evolution.c: Likewise
11466         * tree-ssa-dse.c: Likewise
11467         * tree-chrec.c: Likewise
11468         * tree-ssa-sccvn.c: Likewise
11469         * tree-ssa-copyrename.c: Likewise
11470         * tree-nomudflap.c: Likewise
11471         * tree-call-cdce.c: Likewise
11472         * tree-stdarg.c: Likewise
11473         * tree-ssa-math-opts.c: Likewise
11474         * tree-nrv.c: Likewise
11475         * tree-ssa-sink.c: Likewise
11476         * tree-browser.c: Likewise
11477         * tree-ssa-loop-ivcanon.c: Likewise
11478         * tree-ssa-loop.c: Likewise
11479         * tree-parloops.c: Likewise
11480         * tree-ssa-address.c: Likewise
11481         * tree-ssa-ifcombine.c: Likewise
11482         * tree-if-conv.c: Likewise
11483         * tree-data-ref.c: Likewise
11484         * tree-affine.c: Likewise
11485         * tree-ssa-phiopt.c: Likewise
11486         * tree-ssa-coalesce.c: Likewise
11487         * tree-ssa-pre.c: Likewise
11488         * tree-ssa-live.c: Likewise
11489         * tree-predcom.c: Likewise
11490         * tree-ssa-forwprop.c: Likewise
11491         * tree-ssa-dce.c: Likewise
11492         * tree-ssa-ter.c: Likewise
11493         * tree-ssa-loop-prefetch.c: Likewise
11494         * tree-optimize.c: Likewise
11495         * tree-ssa-phiprop.c: Likewise
11496         * tree-object-size.c: Likewise
11497         * tree-outof-ssa.c: Likewise
11498         * tree-ssa-structalias.c: Likewise
11499         * tree-switch-conversion.c: Likewise
11500         * tree-ssa-reassoc.c: Likewise
11501         * tree-ssa-operands.c: Likewise
11502         * tree-vectorizer.c: Likewise
11503         * tree-vect-data-refs.c: Likewise
11504         * tree-vect-generic.c: Likewise
11505         * tree-vect-stmts.c: Likewise
11506         * tree-vect-patterns.c: Likewise
11507         * tree-vect-slp.c: Likewise
11508         * tree-vect-loop.c: Likewise
11509         * tree-ssa-loop-ivopts.c: Likewise
11510         * tree-ssa-loop-im.c: Likewise
11511         * tree-ssa-loop-niter.c: Likewise
11512         * tree-ssa-loop-unswitch.c: Likewise
11513         * tree-ssa-loop-manip.c: Likewise
11514         * tree-ssa-loop-ch.c: Likewise
11515         * tree-dump.c: Likewise
11516         * tree-complex.c: Likewise
11517
11518         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
11519         * tree-ssa-uninit.c: Likewise
11520         * tree-ssa-threadupdate.c: Likewise
11521         * tree-ssa-uncprop.c: Likewise
11522         * tree-ssa-ccp.c: Likewise
11523         * tree-ssa-dom.c: Likewise
11524         * tree-ssa-propagate.c: Likewise
11525         * tree-ssa-alias.c: Likewise
11526         * tree-dfa.c: Likewise
11527         * tree-cfgcleanup.c: Likewise
11528         * tree-sra.c: Likewise
11529         * tree-ssa-copy.c: Likewise
11530         * tree-ssa.c: Likewise
11531         * tree-profile.c: Likewise
11532         * tree-cfg.c: Likewise
11533         * tree-ssa-threadedge.c: Likewise
11534         * tree-vect-loop-manip.c: Likewise
11535
11536         * tree-inline.c: Do not include diagnostic.h and expr.h.
11537         Include rtl.h.
11538         (copy_decl_for_dup_finish): Do not use NULL_RTX.
11539
11540         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
11541         * tree-loop-distribution.c: Likewise.
11542
11543 2010-06-01  Jan Hubicka  <jh@suse.cz>
11544
11545         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
11546
11547 2010-06-01  Jan Hubicka  <jh@suse.cz>
11548
11549         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
11550         remove return value.
11551         (split_bbs_on_noreturn_calls) .... here.
11552         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
11553         * tree-flow.h (fixup_noreturn_call): New.
11554
11555 2010-06-01  Jan Hubicka  <jh@suse.cz>
11556
11557         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
11558
11559 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
11560
11561         * tree.h (build_nt_call_list): Delete.
11562         * tree.c (build_nt_call_list): Delete.
11563
11564 2010-06-01  Jan Hubicka  <jh@suse.cz>
11565
11566         * fwprop.c: Make emit-rtl.h include last.
11567         * rtlanal.c: Include emit-rtl.h.
11568         * genautomata.c: Output emit-rtl include into insn-automata.c
11569         * df-scan.c: Include emit-rtl.h.
11570         * haifa-sched.c: Indlude emit-rtl.h.
11571         * mode-switching.c: Indlude emit-rtl.h.
11572         * graph.c: Indlude emit-rtl.h.
11573         * sel-sched.c: Include emit-rtl.h.
11574         * sel-sched-ir.c: Include emit-rtl.h.
11575         * ira-build.c: Include emit-rtl.h.
11576         * emit-rtl.c (first_insn, last_insn): Remove defines.
11577         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
11578         Move to emit-rtl.h.
11579         (set_new_first_and_last_insn, get_last_insn_anywhere,
11580         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
11581         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
11582         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
11583         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
11584         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
11585         Use accessor functions.
11586         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
11587          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
11588         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
11589         mem_expr_equal_p): Move here from rtl.h.
11590         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
11591         Move here from emit-rtl.c; make inline.
11592         * cfglayout.h: Include emit-rtl.h.
11593         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
11594          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
11595         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
11596         mem_expr_equal_p, get_insns, set_first-insn,
11597         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
11598         * reg-stack.c: Include emit-rtl.h.
11599         * dce.c: Likewise.
11600
11601 2010-06-01  Jan Hubicka  <jh@suse.cz>
11602
11603         * cgraph.h (tree_function_versioning): Update prototype.
11604         (cgraph_function_versioning): Update prototype.
11605         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
11606         bitmap.
11607         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
11608         (cgraph_materialize_clone, save_inline_function_body): Update use of
11609         tree_function_versioning.
11610         * tree-inline.c (copy_bb): Look for previous copied block to link
11611         after; fix debug output.
11612         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
11613         (copy_body): Likewise.
11614         (expand_call_inline): Update use of copy_body.
11615         (tree_function_versioning): Update use of copy body; accept
11616         blocks_to_copy and new_entry.
11617
11618 2010-06-01  Jan Hubicka  <jh@suse.cz>
11619
11620         * gegenrtl.c: Remove unnecesary prototypes.
11621         (gendecl): Remove.
11622         (gendef): Produce static inline.
11623         (gencode): Remove.
11624         (main): Do not decode parameters; generate header only.
11625         * Makefile.in (genrtl.c): Remove.
11626
11627 2010-06-01  Jan Hubicka  <jh@suse.cz>
11628
11629         * tree-switch-conversion.c (build_one_array): Make it readonly.
11630
11631 2010-06-01  Richard Guenther  <rguenther@suse.de>
11632
11633         * optabs.c (init_optabs): Guard all accesses to reinit.
11634         * ipa-pure-const.c (propagate): Fix another typo.
11635         * opts.c (common_handle_option): Split assignment to bool.
11636         * c-opts.c (c_common_handle_option): Likewise.
11637
11638 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
11639             Matthew Gingell  <gingell@adacore.com>
11640
11641         * doc/invoke.texi: Mention -fdump-ada-spec.
11642         * tree-dump.c (dump_files): Add ada-spec.
11643         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
11644         * tree-pass.h (tree_dump_index): Add TDI_ada.
11645         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
11646         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
11647         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
11648         * c-decl.c: Include c-ada-spec.h.
11649         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
11650         functions.
11651         (c_write_global_declarations): Add handling of -fdump-ada-spec.
11652         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
11653         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
11654         * c-ada-spec.h, c-ada-spec.c: New files.
11655
11656 2010-06-01  Richard Guenther  <rguenther@suse.de>
11657
11658         PR lto/43853
11659         * ipa-pure-const.c (get_function_state): Hand back varying state
11660         if we do not have one.
11661         (has_function_state): New function.
11662         (duplicate_node_data): Adjust.
11663         (remove_node_data): Likewise.
11664         (pure_const_write_summary): Likewise.
11665         (propagate): Likewise.  Fix typo.
11666
11667 2010-06-01  Jan Hubicka  <jh@suse.cz>
11668
11669         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
11670         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
11671         (execute_all_ipa_transforms): Do not play with the states.
11672
11673 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
11674
11675         * config/arm/t-linux-androideabi: New.
11676         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
11677
11678 2010-06-01  Jan Hubicka  <jh@suse.cz>
11679
11680         * tree-inline.c (estimate_num_insns): For stdarg functions look
11681         into call statement to count cost of argument passing.
11682
11683 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
11684
11685         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
11686         argument for fprintf.
11687         (ix86_output_addr_diff_elt): Likewise.
11688         (x86_function_profiler): Likewise.
11689         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
11690         (LPREFIX): Likewise.
11691         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
11692
11693 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
11694
11695         PR target/44338
11696         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
11697         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
11698         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
11699         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
11700         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
11701         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
11702         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
11703         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
11704         TARGET_FUSED_MADD.
11705
11706 2010-05-31  Jan Hubicka  <jh@suse.cz>
11707
11708         * tree.h (tree_range_check_failed): Declare noreturn.
11709
11710 2010-05-31  Jan Hubicka  <jh@suse.cz>
11711
11712         * gimple.c (gimple_call_builtin_p): New function.
11713         * gimple.h (gimple_call_builtin_p): Declare.
11714         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
11715         to exit.
11716         (execute_warn_function_return): BUILT_IN_RETURN is return.
11717         (split_critical_edges): Return edges are not critical.
11718         (is_ctrl_altering_stmt): Builtin_in_return is altering.
11719         (gimple_verify_flow_info): Handle built_in_return.
11720         (execute_warn_function_return): Handle built_in_return.
11721         * ipa-pure-const.c (check_call): Ignore builtin_return.
11722
11723 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
11724
11725         PR middle-end/44337
11726         * expr.c (expand_assignment): Don't store anything for out-of-bounds
11727         array accesses with non-MEM.
11728
11729         PR tree-optimization/44182
11730         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
11731         newly needs to end a bb is followed by debug stmts, instead return
11732         true from the function at the end.
11733         (maybe_move_debug_stmts_to_successors): New function.
11734         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
11735
11736 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
11737
11738         PR target/44161
11739         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
11740
11741 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
11742
11743         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
11744         for nested functions in non-optimized compilation.
11745
11746 2010-05-31  Richard Guenther  <rguenther@suse.de>
11747
11748         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
11749
11750 2010-05-30  Jan Hubicka  <jh@suse.cz>
11751
11752         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
11753
11754 2010-05-30  Richard Guenther  <rguenther@suse.de>
11755
11756         PR lto/42975
11757         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
11758         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
11759         no longer needed.
11760
11761 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
11762
11763         * config/darwin.c (output_objc_section_asm_op): Add comment.
11764         (name_needs_quotes): Add '_' to list of valid comment chars.
11765         (machopic_output_function_base_name): Remove unneeded quotes.
11766         (darwin_encode_section_info): Adjust asm whitespace.
11767         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
11768         (ASM_OUTPUT_LOCAL): Ditto.
11769         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
11770         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
11771         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
11772
11773 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
11774
11775         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
11776         RS6000_OUTPUT_BASENAME unconditionally.
11777         (rs6000_output_function_epilogue): Likewise.
11778
11779 2010-05-30  Jan Hubicka  <jh@suse.cz>
11780
11781         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
11782         nodes.
11783
11784 2010-05-30  Richard Guenther  <rguenther@suse.de>
11785
11786         * tree-cfg.c (verify_gimple_assign_single): Implement
11787         verification for COND_EXPR rhs.
11788
11789 2010-05-30  Jan Hubicka  <jh@suse.cz>
11790
11791         * cgraph.h (cgraph_dump_file): Declare.
11792         * cgraphunit.c (cgraph_dump_file): Export.
11793         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
11794
11795 2010-05-30  Jan Hubicka  <jh@suse.cz>
11796
11797         * dwarf2out.c (reference_to_unused,
11798         premark_types_used_by_global_vars_helper): Avoid creation of new
11799         varpool nodes.
11800
11801 2010-05-30  Jan Hubicka  <jh@suse.cz>
11802
11803         * cgraph.h (cgraph_node_cannot_return,
11804         cgraph_edge_cannot_lead_to_return): New functions.
11805         * cgraph.c (cgraph_node_cannot_return,
11806         cgraph_edge_cannot_lead_to_return): Use them.
11807         * ipa-pure-const.c (pure_const_names): New static var.
11808         (check_call): Handle calls not leading to return.
11809         (pure_const_read_summary): Dump info read.
11810         (propagate): Dump info about propagation process; ignore side effects
11811         of functions not leading to exit; fix handling of pure functions.
11812
11813 2010-05-30  Jan Hubicka  <jh@suse.cz>
11814
11815         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
11816         for tail call epilogues.
11817
11818 2010-05-30  Jan Hubicka  <jh@suse.cz>
11819
11820         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
11821         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
11822         dump files.
11823
11824 2010-05-29  Jan Hubicka  <jh@suse.cz>
11825
11826         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
11827         node; remove references in node we no longer keep in cgrpah but need
11828         body of.
11829
11830 2010-05-29  Jan Hubicka  <jh@suse.cz>
11831
11832         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
11833
11834 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11835
11836         PR target/44165
11837         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
11838
11839 2010-05-29  Jan Hubicka  <jh@suse.cz>
11840
11841         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
11842         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
11843         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
11844         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
11845         debug_names_replaced_by, debug_update_ssa): Likewise.
11846         * sbitmap.c (debug_sbitmap): Likewise.
11847         * genrecog.c (debug_decision, debug_decision_list): Likewise.
11848         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
11849         debug_tree_chain): Likewise.
11850         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
11851         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
11852         * optabs.c (debug_optab_libfuncs): Likewise.
11853         (verify_loop_closed_ssa): Likewise.
11854         * value-prof.c (verify_histograms): Likewise.
11855         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
11856         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
11857         * cfghooks.c (verify_flow_info): Likewise.
11858         * fold-const.c (debug_fold_checksum): Likewise.
11859         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
11860         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
11861         Likewise.
11862         * omega.c (debug_omega_problem): Likewise.
11863         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
11864         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
11865         * dominance.c (verify_dominators, debug_dominance_info,
11866         debug_dominance_tree): Likewise.
11867         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
11868         * df_regno_debug, df_ref_debug,
11869         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
11870         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
11871         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
11872         * sel-sched.c (debug_state): Likewise.
11873         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
11874         Likewise.
11875         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
11876         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
11877         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
11878         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
11879         Likewise.
11880         * c-pretty-print.c (debug_c_tree): Likewise.
11881         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
11882         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
11883         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
11884         * ebitmap.c (debug_ebitmap): Likewise.
11885         * function.c (debug_find_var_in_block_tree): Likewise.
11886         * print-rtl.c (debug_rtx): Likewise.
11887         (debug_rtx_count): Likewise.
11888         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
11889         * stor-layout.c (debug_rli): Likewise.
11890         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
11891         * tree-data-ref.c (debug_data_references,
11892         debug_data_dependence_relations, debug_data_reference,
11893         debug_data_dependence_relation, debug_rdg_vertex,
11894         debug_rdg_component, debug_rdg): Likewise.
11895         * tree-affine.c (debug_aff): Likewise.
11896         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
11897         Likewise.
11898         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
11899         * emit-rtl.c (verify_rtl_sharing): Likewise.
11900         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
11901         debug_value_expressions): Likewise.
11902         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
11903         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
11904         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
11905         * cfglayout.c (verify_insn_chain): Likewise.
11906         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
11907         debug_clast_stmt, debug_generated_program): Likewise.
11908         * ggc-page.c (debug_print_page_list): Likewise.
11909         * tree-ssa-ter.c (debug_ter): Likewise.
11910         * graphite-dependences.c (debug_pddr): Likewise.
11911         * sched-deps.c (debug_ds): Likewise.
11912         * tree-ssa.c (verify_ssa): Likewise.
11913         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
11914         debug_scattering_functions, debug_iteration_domains, debug_pdr,
11915         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
11916         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
11917         * tree-inline.c (debug_find_tree): Likewise.
11918         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
11919         debug_ppl_powerset_matrix): Likewise.
11920         * var-tracking.c (debug_dv): Likewise.
11921         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
11922         * cfgloop.c (verify_loop_structure): Likewise.
11923         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
11924         * c-common.c (verify_sequence_points): Likewise.
11925         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
11926         debug_candidates, debug_rgn_dependencies): Likewise.
11927         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
11928         * debug_constraint_graph, debug_solution_for_var,
11929         debug_sa_points_to_info): Likewise.
11930         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
11931         Likewie.
11932         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
11933         debug_loops, debug_loop, debug_loop_num): Likewise.
11934         * passes.c (debug_pass): Likewise.
11935         (dump_properties): Likewise; add cfglayout property.
11936         (debug_properties): Likewise.
11937         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
11938         * varpool.c (debug_varpool): Likewise.
11939         * regcprop.c (debug_value_data): Likewise.
11940         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
11941         debug_immediate_uses_for): Likewise.
11942
11943 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
11944
11945         PR bootstrap/44315
11946         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
11947         Filter out insn-flags.h.
11948
11949 2010-05-29  Jan Hubicka  <jh@suse.cz>
11950
11951         * cgraph.h (struct varpool_node_set_def,
11952         struct cgraph_node_set_def): Remove unused AUX pointer.
11953         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
11954         VEC_empty macro.
11955
11956 2010-05-29  Jan Hubicka  <jh@suse.cz>
11957
11958         PR middle-end/44324
11959         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
11960
11961 2010-05-29  Richard Guenther  <rguenther@suse.de>
11962
11963         * lto-streamer.c (cached_bp): New global variable.
11964         (bitpack_create): Return the cached bitpack, if available.
11965         (bitpack_delete): Clear and cache the bitpack, if appropriate.
11966         (bp_pack_value): Remove redundant asserts.
11967
11968 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
11969
11970         PR middle-end/44306
11971         * tree-if-conv.c (is_true_predicate): New.
11972         (is_predicated): Use is_true_predicate.
11973         (add_to_predicate_list): Same.  Do not use unshare_expr.
11974         (add_to_dst_predicate_list): Same.
11975
11976 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
11977
11978         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
11979         field on edges.
11980         (predicate_bbs): Same.
11981         (clean_predicate_lists): Same.
11982         (find_phi_replacement_condition): Do not AND the predicate from
11983         edge->aux.
11984
11985 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
11986
11987         PR bootstrap/44315
11988         * Makefile.in (build/gencondmd.o): Add a missing `\'.
11989
11990 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11991
11992         PR target/44261
11993         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
11994         (negdf2): Adjust expander pattern and use negdf2_slow.
11995         (negsf2): Likewise.
11996
11997 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
11998
11999         * basic-block.h (struct control_flow_graph): Move last_label_uid field
12000         up.
12001         * df.h (struct df_base_ref): Move regno field up.
12002         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
12003         * expr.h (struct separate_ops): Move location field up.
12004         * optabs.h (struct optab_d): Move libcall_basename field down.
12005         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
12006         * config/i386/i386.h (struct machine_function): Convert call_abi field
12007         into a bitfield.  Move cfa field to the end of the structure.
12008
12009 2010-05-29  Jan Hubicka  <jh@suse.cz>
12010
12011         * varpool.c (varpool_get_node): Fix lookup.
12012
12013 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12014
12015         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
12016         RTL specific prototypes with #ifdef RTX_CODE.
12017         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
12018         * config/spu/t-spu-elf: Fix dependencies.
12019
12020         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
12021
12022 2010-05-29  Mike Stump  <mikestump@comcast.net>
12023
12024         PR bootstrap/44315
12025         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
12026         TM_H when building to avoid dependency loops.
12027
12028 2010-05-29  Jan Hubicka  <jh@suse.cz>
12029
12030         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
12031         refs and body; not the whole node for masters of materialized clones.
12032
12033 2010-05-29  Mike Stump  <mikestump@comcast.net>
12034
12035         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
12036
12037 2010-05-29  Jan Hubicka  <jh@suse.cz>
12038
12039         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
12040         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
12041         use of clone_function_name.
12042         * cgraph.h (cgraph_create_virtual_clone,
12043         cgraph_function_versioning): update prototypes.
12044         (clone_function_name): Declare.
12045         * ipa-cp.c (ipcp_insert_stage): Update call of
12046         cgraph_create_virtual_clone.
12047         * omp-low.c (create_omp_child_function_name): Use
12048         cgraph_create_virtual_clone.
12049         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
12050         (cgraph_function_versioning): Take SUFFIX argument; produce new name
12051         and make decl local.
12052
12053 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12054
12055         * vec.h: Include statistics.h
12056         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
12057         with VEC_H.
12058
12059 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12060
12061         * c-lex.c: Do not include c-tree.h.
12062         * c-pretty-print.c: Likewise.
12063         * c-opts.c: Likewise.
12064         * c-gimplify.c: Likewise.
12065         * c-common.c: Likewise.
12066         * c-dump.c: Likewise.  Include c-common.h.
12067
12068 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12069
12070         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
12071         before including diagnostic-core.h.
12072         (c_cpp_error): New prototype moved from c-tree.h.
12073         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
12074         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
12075         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
12076         (c_cpp_error): Prototype moved to c-common.h.
12077         * Makefile.in: Update dependency for C_COMMON_H.
12078
12079 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12080
12081         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
12082         * c-common.c (c_register_addr_space): Remove here.
12083         * c-decl.c (c_register_addr_space): Re-add here.
12084
12085 2010-05-28  Mike Stump  <mikestump@comcast.net>
12086
12087         * config/darwin-c.c: Remove c-tree.h include.
12088
12089 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12090
12091         * gcc.c: Include diagnostic.h.
12092         (error_count): Remove.  All users changed to use errorcount.
12093         (programname): Remove.  All users changed to use progname.
12094         (fancy_abort, internal_error, fatal_error, error, warning, inform,
12095         fnotice): Remove.
12096         (execute): Don't include "Internal error" and bug reporting
12097         information in argument of internal_error call.
12098         (process_command): Don't increment error_count after calling
12099         perror_with_name.
12100         (input_filename): Rename to gcc_input_filename.  All users
12101         changed.
12102         (main): Call diagnostic_initialize.  Register delete_temp_files
12103         with atexit.  Use seen_error to test for errors.
12104         * gcc.h: Include diagnostic-core.h.
12105         (fatal_error, error, warning): Remove.
12106         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
12107         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
12108         (gcc.o): Update dependencies.
12109
12110 2010-05-28  Jeff Law  <law@redhat.com>
12111
12112         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
12113         functions.
12114         * ira.h (ira_bad_reload_regno): Declare
12115         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
12116
12117         * ira-color.c (update_curr_costs): Free updated hard reg costs.
12118         (ira_reassign_conflict_allocnos): Remove bogus asserts.
12119         (allocno_reload_assign): Likewise.
12120
12121 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
12122
12123         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
12124         build1_stat.
12125
12126 2010-05-28  Richard Guenther  <rguenther@suse.de>
12127
12128         PR lto/44312
12129         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
12130         Stream fixed-point constants mode.
12131         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
12132         and TYPE_PRECISION.
12133         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
12134         Stream fixed-point constants mode.
12135         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
12136         and TYPE_PRECISION.
12137
12138 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
12139
12140         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
12141         only place it was called from.
12142         (number_of_latch_executions): Do not return chrec_dont_know when the
12143         may_be_zero is a runtime condition: instead, return a COND_EXPR
12144         including the may_be_zero condition.
12145         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
12146         of nb_iterations.
12147         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
12148         COND_EXPRs.
12149
12150 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
12151
12152         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
12153         generate COND_EXPRs for degenerate_phi_result.
12154
12155 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
12156
12157         PR middle-end/44293
12158         * tree-if-conv.c (if_convertible_loop_p): Check the
12159         if-convertibility of phi nodes in non predicated BBs.
12160
12161 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12162
12163         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
12164
12165 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12166
12167         PR driver/15303
12168         * gcc.c (inform, warning, inform): New functions.
12169         (fatal_ice): Rename to internal_error; change cmsgid parameter to
12170         gmsgid.  All callers changed.
12171         (notice): Rename to fnotice; add parameter fp.  All callers changed.
12172         (fatal_error): Rename to fatal_signal.  All users changed.
12173         (fatal): Rename to fatal_error; change cmsgid parameter to
12174         gmsgid.  All callers changed.
12175         (process_command): Use warning instead of error for warnings.
12176         (end_going_arg): Don't use _() around argument of error.
12177         (do_spec_1): Use inform for message from %n specs.  Use warning
12178         instead of error for warnings.
12179         (main): Use inform for comparison messages.  Use warning for
12180         message about unused linker input.
12181         (error): Increment error_count.  Print "error: ".
12182         * gcc.h (fatal): Change to fatal_error.
12183         (warning): Declare.
12184         * config/darwin-driver.c (darwin_default_min_version): Use warning
12185         instead of fprintf for warnings.
12186         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
12187
12188 2010-05-28  Julian Brown  <julian@codesourcery.com>
12189
12190         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
12191         (*thumb2_addsi3_compare0_scratch): New.
12192         * config/arm/constraints.md (Pv): New.
12193         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
12194         for ARM mode only.
12195         (*addsi3_compare0_scratch): Likewise.
12196
12197 2010-05-28  Jan Hubicka  <jh@suse.cz>
12198
12199         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
12200         check.
12201         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
12202         only on local statics.
12203
12204 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
12205
12206         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
12207
12208 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
12209
12210         PR bootstrap/44314
12211         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
12212         (OPTION_GLIBC): Define.
12213
12214 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
12215
12216         PR debug/41048
12217         * dwarf2out.c (double_int_type_size_in_bits): New function.
12218         (round_up_to_align): Change first argument and return value to
12219         double_int.
12220         (field_byte_offset): Work internally on double_ints.
12221
12222         PR target/43636
12223         * builtins.c (expand_movstr): Use a temporary pseudo instead
12224         of target even when target is not NULL and not const0_rtx, but
12225         fails movstr predicate.
12226         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
12227
12228 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12229
12230         * final.c (rest_of_clean_state): Use %m in errors instead of
12231         strerror (errno).
12232         * gengtype.c (read_input_list, close_output_files): Use xstrerror
12233         instead of strerror.
12234         * toplev.c (process_options): Use %m in errors instead of strerror
12235         (errno).
12236         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
12237         (errno).
12238
12239 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
12240
12241         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
12242         (ix86_canonical_va_list_type): Make static.  Add declaration.
12243         (ix86_enum_va_list): Make static.  Reindent.
12244         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
12245         (ix86_canonical_va_list_type): Ditto.
12246         (ix86_enum_va_list): Ditto.
12247
12248 2010-05-28  Richard Guenther  <rguenther@suse.de>
12249
12250         * lto-wrapper.c (run_gcc): With -save-temps generate a
12251         user-visible ltrans filename.  Fixup ltrans unit numbering.
12252
12253 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
12254
12255         * c-common.c (c_common_nodes_and_builtins): Replace use
12256         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
12257         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
12258         to ix86_enum_va_list.
12259         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
12260         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
12261         (TARGET_ENUM_VA_LIST_P): Add hook description.
12262         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
12263         * target.h (gcc_target): Add enum_va_list hook.
12264
12265         PR bootstrap/44299
12266         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
12267         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
12268         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
12269
12270 2010-05-28  Alan Modra  <amodra@gmail.com>
12271
12272         PR target/44266
12273         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
12274         emit_library_call machinery to set up __tls_get_addr calls.
12275
12276 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12277
12278         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
12279
12280 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
12281
12282         Revert fix for PR c++/44188
12283         * c-common.c (is_typedef_decl): Revert the moving of  this
12284         definition ...
12285         * tree.c (is_typedef_decl): ... here.
12286         (typdef_variant_p): Revert the moving of this  definition
12287         here from gcc/cp/tree.c.
12288         * c-common.h (is_typedef_decl): Revert the moving of this
12289         declaration ...
12290         * tree.h (is_typedef_decl): ... here.
12291         (typedef_variant_p): Revert the moving of this  declaration here
12292         from gcc/cp/cp-tree.h
12293         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
12294         (gen_tagged_type_die): Revert the splitting out of ...
12295         (gen_type_die_with_usage): ... this function. Revert the anonymous
12296         tagged type handling.
12297         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
12298         typedefs naming anonymous tagged types.
12299
12300 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
12301
12302         * config/rs6000/rs6000-modes.def (PSImode): Delete.
12303
12304 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
12305
12306         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
12307         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
12308         throughout.
12309         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
12310         "xer" to "ca".
12311         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
12312         XER_REGS to CA_REGS throughout.
12313         * config/rs6000/rs6000.h: Same.
12314         (ADDITIONAL_REGISTER_NAMES): Add "xer".
12315         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
12316         that mode_iterator "P" is the size for arithmetic carries as well.
12317         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
12318
12319 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
12320
12321         PR bootstrap/44255
12322         * combine.c (struct rtx_subst_pair): Define unconditionally.
12323         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
12324         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
12325         Call make_compound_operation on pair->to.
12326         (propagate_for_debug): Don't call make_compound_operation here.
12327         Always use simplify_replace_fn_rtx.
12328
12329 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
12330
12331         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
12332         * config/xtensa/xtensa.c (override_options): Check
12333           TARGET_FORCE_NO_PIC and set flag_pic.
12334         * config/xtensa/xtensa.opt: Document -mforce-no-pic
12335
12336 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
12337
12338         PR bootstrap/44299
12339         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
12340         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
12341
12342 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
12343
12344         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
12345         toplev.h.
12346         * diagnostic.c: Don't include toplev.h.
12347         (progname): Define.  Moved from toplev.c.
12348         (seen_error): New function.
12349         * diagnostic.h: Include diagnostic-core.h.
12350         (diagnostic_t, emit_diagnostic): Don't declare here.
12351         * toplev.c (progname): Move to toplev.c.
12352         (emit_debug_global_declarations, compile_file, finalize,
12353         do_compile, toplev_main): Use seen_error.
12354         * toplev.h: Include diagnostic-core.h.
12355         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
12356         internal_error, warning, warning_at, error, error_n, error_at,
12357         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
12358         verbatim, fnotice, progname): Move to diagnostic-core.h.
12359         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
12360         (expand_builtin_expect): Use seen_error.
12361         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
12362         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
12363         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
12364         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
12365         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
12366         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
12367         errorcount for errors.
12368         * c-opts.c (c_common_finish): Use seen_error.
12369         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
12370         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
12371         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
12372         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
12373         (get_coverage_counts): Use seen_error.
12374         * dwarf2out.c (dwarf2out_finish): Use seen_error.
12375         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
12376         gimplify_body): Use seen_error.
12377         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
12378         * ipa-pure-const.c (gate_pure_const): Use seen_error.
12379         * ipa-reference.c (gate_reference): Use seen_error.
12380         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
12381         * lambda-code.c: Include diagnostic-core.h instead of
12382         diagnostic.h.
12383         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
12384         * lto-compress.c: Include diagnostic-core.h instead of
12385         diagnostic.h.
12386         * lto-section-in.c: Include diagnostic-core.h instead of
12387         diagnostic.h.
12388         * lto-streamer-out.c: Include diagnostic-core.h instead of
12389         diagnostic.h.
12390         * lto-streamer.c: Include diagnostic-core.h instead of
12391         diagnostic.h.
12392         (gate_lto_out): Use seen_error.
12393         * matrix-reorg.c: Include diagnostic-core.h instead of
12394         diagnostic.h.
12395         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
12396         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
12397         (gate_expand_omp, lower_omp_1): Use seen_error.
12398         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
12399         (rest_of_decl_compilation, rest_of_type_compilation,
12400         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
12401         * tree-cfg.c (label_to_block_fn): Use seen_error.
12402         * tree-inline.c (optimize_inline_calls): Use seen_error.
12403         * tree-mudflap.c (mudflap_finish_file): Use
12404         seen_error.
12405         * tree-optimize.c (gate_all_optimizations,
12406         gate_all_early_local_passes, gate_all_early_optimizations): Use
12407         seen_error.
12408         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
12409         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
12410         (varpool_remove_unreferenced_decls,
12411         varpool_assemble_pending_decls): Use seen_error.
12412         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
12413         (TOPLEV_H, DIAGNOSTIC_H): Update.
12414         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
12415         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
12416         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
12417         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
12418         coverage.o, lambda-code.o): Update dependencies.
12419
12420 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
12421
12422         PR c++/44188
12423         * c-common.c (is_typedef_decl): Move this definition ...
12424         * tree.c (is_typedef_decl): ... here.
12425         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
12426         * c-common.h (is_typedef_decl): Move this declaration ...
12427         * tree.h (is_typedef_decl): ... here.
12428         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
12429         * dwarf2out.c (is_naming_typedef_decl): New function.
12430         (gen_tagged_type_die): Split out of ...
12431         (gen_type_die_with_usage): ... this function. When an anonymous
12432         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
12433         is emitted for the typedef.
12434         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
12435         anonymous tagged types.
12436
12437 2010-05-27  Jason Merrill  <jason@redhat.com>
12438
12439         * print-tree.c (debug_vec_tree): New fn.
12440         (print_vec_tree): New fn.
12441         * tree.h: Declare them.
12442         * gdbinit.in (pvt): New command.
12443
12444         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
12445
12446         * gdbinit.in (pdd): New command.
12447
12448 2010-05-27  Jan Hubicka  <jh@suse.cz>
12449
12450         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
12451         (update_caller_keys): Return early if there are no callers;
12452         only update fibheap when decresing the key.
12453         (update_callee_keys): Avoid recursion.
12454         (decide_inlining_of_small_functions): When badness does not match;
12455         re-insert into fibheap.
12456
12457 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
12458
12459         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
12460         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
12461         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
12462         (ALL_HOST_OBJS): Now a union of the above two.
12463         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
12464         all files in ALL_HOST_FRONTEND_OBJS.
12465         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
12466
12467         * c-common.c: Pretend to be a backend file by undefining
12468         IN_GCC_FRONTEND (still need rtl.h here).
12469
12470 2010-05-27  Jan Hubicka  <jh@suse.cz>
12471
12472         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
12473         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
12474
12475 2010-05-27  Jan Hubicka  <jh@suse.cz>
12476
12477         * sched-ebb.c: Rename struct deps to struct deps_desc.
12478         * ddg.c: Likewise.
12479         * sel-sched-ir.c: Likewise.
12480         * sched-deps.c: Likewise.
12481         * sched-int.h: Likewise.
12482         * sched-rgn.c: Likewise.
12483
12484 2010-05-27  Jon Beniston  <jon@beniston.com>
12485
12486         PR 43726
12487         * config/lm32/lm32.h: Remove definition of
12488         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
12489
12490 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
12491
12492         PR lto/44230
12493         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
12494
12495 2010-05-27  Richard Guenther  <rguenther@suse.de>
12496
12497         PR tree-optimization/44284
12498         * tree-vect-stmts.c (vectorizable_assignment): Handle
12499         sign-changing conversions as simple copy.
12500
12501 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12502
12503         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
12504         Bionic C library.
12505         (__gthread_active_p): Check for pthread_create if compiling against
12506         Bionic C library.
12507
12508 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12509
12510         Support compilation for Android platform.  Reimplement -mandroid.
12511
12512         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
12513         (*android*): Set ANDROID_DEFAULT.
12514         (arm*-*-linux*): Include linux-android.h.
12515         (arm*-*-eabi*): Don't include previous -mandroid implementation.
12516         * config/arm/eabi.h: Remove, move Android-specific parts ...
12517         * config/linux-android.h: ... here.  New file.
12518         * config/arm/eabi.opt: Rename to ...
12519         * config/linux-android.opt: ... this.
12520         (mandroid): Allow -mno-android option.  Initialize based on
12521         ANDROID_DEFAULT.
12522         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
12523         Move logic to corresponding LINUX_TARGET_* macros.
12524         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
12525         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
12526         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
12527         Android definitions.
12528         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
12529         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
12530         Document.
12531
12532 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12533
12534         Add support for Bionic C library
12535
12536         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
12537         macro.
12538         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
12539         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
12540
12541         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
12542         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
12543         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
12544         to support multiple C libraries.  Handle Bionic.
12545         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
12546         (BIONIC_DYNAMIC_LINKER64): Define.
12547         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
12548         Update.
12549         (TARGET_HAS_SINCOS): Enable for Bionic.
12550
12551         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
12552         the last option specified on command line take effect.
12553         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
12554         (mbionic): New.
12555         (mglibc, muclibc): Update.
12556
12557         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
12558         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
12559         DEFAULT_LIBC.
12560
12561         * doc/invoke.texi (-mglibc, -muclibc): Update.
12562         (-mbionic): Document.
12563
12564 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12565
12566         * c-common.h (c_register_addr_space): Add prototype.
12567         (ADDR_SPACE_KEYWORD): Remove.
12568         * c-common.c (c_register_addr_space): New function.
12569         (c_addr_space_name): Reimplement.
12570         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
12571
12572         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
12573         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
12574
12575         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
12576         Remove TARGET_ADDR_SPACE_KEYWORDS.
12577
12578 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
12579
12580         * input.c: New file.
12581         * input.h (main_input_filename): Move declaration to toplev.h.
12582         * toplev.c (input_location, line_table): Move to input.c
12583         * toplev.h (main_input_filename): Move declaration from input.h.
12584         * tree.c (expand_location): Move to input.c.
12585         * Makefile.in (OBJS-common): Add input.o.
12586         (input.o): Add dependencies.
12587
12588 2010-05-27  Richard Guenther  <rguenther@suse.de>
12589
12590         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
12591         for non-existant files.
12592         (fork_execute): Mark args_name file as deleted.
12593
12594 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
12595
12596         PR bootstrp/44287
12597         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
12598         (narrow_signed_type): Likewise.
12599
12600 2010-05-26  Jan Hubicka  <jh@suse.cz>
12601
12602         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
12603         edge only when checking is enabled; check using former_clone_of;
12604         check inline clones too.
12605         (cgraph_materialize_clone): Record former_clone_of pointer.
12606         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
12607         combining redirections; dump args_to_skip bitmap
12608         (cgraph_materialize_all_clones): Do no redirection here.
12609         * ipa-inline.c (inline_transform): Do redirection here.
12610         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
12611         cheking only).
12612
12613 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12614
12615         * config/avr/avr-c.c: Do not include regs.h.
12616         Include cpplib.h for cpp_define and tree.h for c-common.h.
12617         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
12618         * config/avr/t-avr: Fix dependencies for avr-c.o.
12619
12620 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12621
12622         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
12623         string instead of SYMBOL_REF rtx.
12624         * rtl.h (set_stack_check_libfunc): Move prototype from here...
12625         * libfuncs.h: ...to here.  Adjust for explow.c change.
12626
12627 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
12628
12629         * pretty-print.c: Don't include ggc.h.
12630         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
12631         (identifier_to_locale): Use them for allocation.
12632         * pretty-print.h (identifier_to_locale_alloc,
12633         identifier_to_locale_free): Declare.
12634         * toplev.c (alloc_for_identifier_to_locale): New.
12635         (general_init): Set identifier_to_locale_alloc and
12636         identifier_to_locale_free.
12637         * Makefile.in (pretty-print.o): Update dependencies.
12638
12639 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
12640
12641         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
12642         pointer types if they have different alignment or mode.
12643
12644 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
12645
12646         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
12647         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12648         * config/sparc/sparc-protos.h (function_value): Remove declaration.
12649         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
12650         sparc_function_value_regno_p): New functions.
12651         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12652         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12653         (function_value): Rename to...
12654         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
12655         argument to 'outgoing'.
12656         (function_arg_record_value, function_arg_union_value,
12657         function_arg_vector_value): Update comment.
12658
12659 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
12660
12661         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
12662         (fde_needed_for_eh_p): New predicate.
12663         (output_call_frame_info): Use it throughout to decide whether FDEs
12664         are needed for EH purpose.
12665         (dwarf2out_begin_prologue): Reorder assignments.
12666
12667 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12668
12669         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
12670         special case loop->header.
12671         (is_predicated): New.
12672         (if_convertible_loop_p): Call it.
12673
12674 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12675
12676         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
12677         iterator in parameter.  Do not generate code during the analysis.
12678         (tree_if_convert_cond_stmt): Removed.
12679         (tree_if_convert_stmt): Removed.
12680         (predicate_bbs): New.
12681         (if_convertible_loop_p): Call predicate_bbs.
12682         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
12683         now contains all the analysis part.
12684
12685 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12686
12687         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
12688         statements in the analysis part.
12689         (tree_if_convert_stmt): Update comment.
12690         (remove_conditions_and_labels): New.
12691         (combine_blocks): Call remove_conditions_and_labels.
12692         (tree_if_conversion): Update comment.
12693
12694 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12695
12696         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
12697         than 2 predecessors or more than 2 successors.
12698
12699 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12700
12701         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
12702         of loops in which the data dependence analysis fails.
12703
12704 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12705
12706         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
12707         CDI_POST_DOMINATORS.
12708         (tree_if_conversion): Same.
12709
12710 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12711
12712         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
12713
12714 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12715
12716         * tree-if-conv.c: Update copyright years.  Fix comments.
12717         Fix indentation.
12718
12719 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
12720
12721         * builtin-types.def (BT_INT128): New primitive type.
12722         (BT_UINT128): Likewise.
12723         * c-common.c (c_common_r): Add __int128 keyword.
12724         (c_common_type_for_size): Handle __int128.
12725         (c_common_type_for_mode): Likewise.
12726         (c_common_signed_or_unsigned_type): Likewise.
12727         (c_common_nodes_and_builtins): Add builtin type
12728         if target supports 128-bit integer scalar.
12729         * c-common.h (enum rid): Add RID_INT128.
12730         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
12731         if target supports 128-bit integer scalar.
12732         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
12733         (finish_declspecs): Likewise.
12734         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
12735         (c_token_starts_declspecs): Likewise.
12736         (c_parser_declspecs): Likewise.
12737         (c_parser_attributes): Likewise.
12738         (c_parser_objc_selector): Likewise.
12739         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
12740         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
12741         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
12742         * tree.c (make_or_reuse_type): Likewise.
12743         (make_unsigned_type): Likewise.
12744         (build_common_tree_nodes_2): Likewise.
12745         * tree.h (enum integer_type_kind): Add itk_int128 and
12746         itk_unsigned_int128.
12747         (int128_integer_type_node): New define.
12748         (int128_unsigned_type_node): New define.
12749         * doc/extend.texi: Add documentation about __int128 type.
12750
12751 2010-05-26  Richard Guenther  <rguenther@suse.de>
12752
12753         * tree-ssa-sccvn.c (copy_nary): Adjust.
12754         (copy_phis): Rename to ...
12755         (copy_phi): ... this.  Adjust.
12756         (copy_references): Rename to ...
12757         (copy_reference): ... this.  Adjust.
12758         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
12759         result into the valid table.
12760
12761 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12762
12763         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
12764         insn-config.h, insn-codes.h, recog.h, and optabs.h.
12765
12766 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12767
12768         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
12769
12770 2010-05-26  Richard Guenther  <rguenther@suse.de>
12771
12772         * opts.c (common_handle_option): Handle OPT_Ofast.
12773
12774 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
12775
12776         * diagnostic.c: Don't include opts.h.
12777         (permissive_error_option): Define.
12778         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
12779         for classify_diagnostic.  Don't use memset for
12780         classify_diagnostic.  Initialize new and recently added fields.
12781         (diagnostic_classify_diagnostic): Use context->n_opts instead of
12782         N_OPTS.
12783         (diagnostic_report_diagnostic): Pass context parameter to
12784         diagnostic_report_warnings_p.  Use option_enabled and option_name
12785         hooks from context.
12786         (emit_diagnostic): Use permissive_error_option.
12787         (permerror): Likewise.
12788         * diagnostic.h: Don't include options.h.
12789         (struct diagnostic_context): Add n_opts, opt_permissive,
12790         inhibit_warnings, warn_system_headers, option_enabled and
12791         option_name fields.  Change classify_diagnostic to a pointer.
12792         * opts-diagnostic.h: New file.
12793         * opts.c: Include opts-diagnostic.h.
12794         (common_handle_option): Set global_dc fields for -Wfatal-errors,
12795         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
12796         (option_name): New function.
12797         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
12798         (c_common_handle_option): Set global_dc->permissive for
12799         -fpermissive.
12800         * c-common.c (c_cpp_error): Save and restore
12801         global_dc->warn_system_headers, not variable warn_system_headers.
12802         * toplev.c: Include opts-diagnostic.h.
12803         (general_init): Update call to diagnostic_initialize.  Set
12804         global_dc->show_column, global_dc->option_enabled and
12805         global_dc->option_name.
12806         (process_options): Don't set global_dc fields here.
12807         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
12808         (diagnostic.o, opts.o, toplev.o): Update dependencies.
12809
12810 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
12811
12812         * config/picochip/picochip.md (movsi): Split a movsi from a
12813         const after reload.
12814
12815 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12816
12817         * ggc-zone.c: Update copyright year.
12818         (poison_region): Mark memory for Valgrind as undefined before
12819         memset () call and inaccessible afterwards.
12820         (ggc_pch_total_size): Change type of i to int.
12821
12822 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12823
12824         * ggc-common.c (ggc_free_overhead): Allow empty slot.
12825
12826 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12827
12828         * ggc-common.c: Update copyright year.
12829         (ggc_rlimit_bound): Remove prototype.  Compile only if
12830         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
12831         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
12832         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
12833         (ggc_min_heapsize_heuristic): Likewise.
12834
12835 2010-05-26  Richard Guenther  <rguenther@suse.de>
12836
12837         PR rtl-optimization/44164
12838         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
12839         no-common access-path disambiguation.
12840         (indirect_ref_may_alias_decl_p): Adjust.
12841         (indirect_refs_may_alias_p): Likewise.
12842         (refs_may_alias_p_1): Likewise.
12843
12844 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12845
12846         * c-typeck.c: Do not include expr.h.
12847
12848 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12849
12850         * rtl.h (decl_default_tls_model): Move prototype from here...
12851         * output.h: ...to here.
12852         * c-decl.c: Do not include rtl.h.
12853         * c-pragma.c: Likewise.
12854         * c-parser.c: Likewise.
12855         * c-gimplify.c: Likewise.  And also not hard-reg-set.
12856         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
12857         FIXME note for it.  Add a FIXME note for expr.h.
12858         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
12859         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
12860         defined.
12861
12862 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
12863
12864         PR target/44199
12865         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
12866         or total_size is larger than red zone size for non-V4 ABI, emit a
12867         stack_tie resp. frame_tie insn before stack pointer restore.
12868         * config/rs6000/rs6000.md (frame_tie): New insn.
12869
12870 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
12871
12872         * function.h (struct function): Add can_throw_non_call_exceptions bit.
12873         * lto-streamer-in.c (input_function): Stream it in.
12874         * lto-streamer-out.c (output_function): Stream it out.
12875         * function.c (allocate_struct_function): Set it.
12876         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
12877         for flag_non_call_exceptions.
12878         * cfgbuild.c (control_flow_insn_p): Likewise.
12879         (make_edges): Likewise.
12880         * cfgexpand.c (expand_stack_alignment): Likewise.
12881         * combine.c (distribute_notes): Likewise.
12882         * cse.c (cse_extended_basic_block): Likewise.
12883         * except.c (insn_could_throw_p): Likewise.
12884         * gcse.c (simple_mem): Likewise.
12885         * ipa-pure-const.c (check_call): Likewise.
12886         (check_stmt ): Likewise.
12887         * lower-subreg.c (lower-subreg.c): Likewise.
12888         * optabs.c (emit_libcall_block): Likewise.
12889         (prepare_cmp_insn): Likewise.
12890         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
12891         * postreload.c (rest_of_handle_postreload): Likewise.
12892         * reload1.c (reload_as_needed): Likewise.
12893         (emit_input_reload_insns): Likewise.
12894         (emit_output_reload_insns): Likewise.
12895         (fixup_abnormal_edges): Likewise.
12896         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
12897         * store-motion.c (find_moveable_store): Likewise.
12898         * tree-eh.c (stmt_could_throw_p): Likewise.
12899         (tree_could_throw_p): Likewise.
12900         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
12901         * config/arm/arm.c (arm_expand_prologue): Likewise.
12902         (thumb1_expand_prologue): Likewise.
12903         * config/rx/rx.md (cbranchsf4): Likewise.
12904         (cmpsf): Likewise.
12905         * config/s390/s390.c (s390_emit_prologue): Likewise.
12906         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
12907         (inline_forbidden_into_p): New predicate.
12908         (expand_call_inline): Use it to forbid inlining.
12909         (tree_can_inline_p): Likewise.
12910
12911 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
12912
12913         * config/i386/i386-c.c: Do not include rtl.h.
12914         * config/i386/t-i386: Update dependencies.
12915
12916 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
12917
12918         * attribs.c: Do not include rtl.h.
12919         * Makefile.in: Update dependencies.
12920
12921 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
12922
12923         * double-int.h (double_int_and): New.
12924         * combine.c (try_combine): Clean up, use double_int_* and
12925         immed_double_int_const functions.
12926
12927 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12928
12929         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
12930         stderr to /dev/null instead of grep -q.
12931         * configure: Regenerate.
12932
12933 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
12934
12935         * Makefile.in (EXCEPT_H): Fix typo.
12936
12937 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
12938
12939         * ira-build.c (update_conflict_hard_reg_costs): New.
12940         (ira_build): Call update_conflict_hard_reg_costs.
12941
12942 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
12943
12944         PR debug/41371
12945         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
12946         ENABLE_CHECKING.
12947         (intersect_loc_chains): Walk the s2var's loc_chain together
12948         with s1node chain as long as the locations are equal, don't
12949         call find_loc_in_1pdv in that case.
12950
12951         PR debug/42801
12952         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
12953         (copy_bind_expr): ... instead of here.
12954         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
12955         if the block hasn't been remapped.
12956         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
12957         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
12958
12959 2010-05-25  Richard Guenther  <rguenther@suse.de>
12960
12961         PR middle-end/44069
12962         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
12963         out-of-bounds array accesses.
12964
12965 2010-05-25  Richard Guenther  <rguenther@suse.de>
12966
12967         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
12968         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
12969         (run_gcc): Re-organize to make cleanup easier.
12970
12971 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12972
12973         * config/s390/s390.c (optimization_options): Fix and move the
12974         flag_prefetch_loop_arrays override ...
12975         (override_options): ... here.
12976
12977 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
12978
12979         * diagnostic.c: Don't include plugin.h.
12980         (diagnostic_report_diagnostic): Don't handle plugins specially
12981         here.  Pass context to internal_error callback.
12982         * diagnostic.h (struct diagnostic_context): Add context parameter
12983         to internal_error callback.
12984         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
12985         * plugin.h (struct diagnostic_context): Declare.
12986         (warn_if_plugins, plugins_internal_error_function): Declare.
12987         * toplev.c (general_init): Set global_dc->internal_error.
12988         * Makefile.in (diagnostic.o): Update dependencies.
12989
12990 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
12991
12992         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
12993         * config/rs6000/t-darwin64: New.
12994         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
12995         build crt2.
12996
12997 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
12998
12999         PR 44203
13000         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
13001         match the original (and intended) behaviour before r159557.  This
13002         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
13003         in two ways.
13004
13005 2010-05-25  Richard Guenther  <rguenther@suse.de>
13006
13007         * doc/invoke.texi: Document -Ofast.
13008         * target.h (struct gcc_target): Add handle_ofast.
13009         * target-def.h (TARGET_HANDLE_OFAST): Add.
13010         (TARGET_INITIALIZER): Adjust.
13011         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
13012         * common.opt (Ofast): Add.
13013
13014 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
13015
13016         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
13017         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
13018
13019 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
13020
13021         PR target/43610
13022         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
13023         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
13024         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
13025         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
13026
13027 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
13028
13029         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
13030         DW_OP_minus with negated offset instead of DW_OP_plus.
13031         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
13032
13033 2010-05-25  Wei Guozhi  <carrot@google.com>
13034
13035         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
13036         tst instruction and a new alternative.
13037         * config/arm/constraints.md (Pu): New constraint.
13038
13039 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
13040
13041         * function.c (assign_stack_local_1): Initialize variable
13042         to avoid warning when bootstrapping at -O3.
13043
13044 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
13045
13046         * configure.ac (all_lang_makefiles): Remove everything related to it.
13047         * configure: Regenerate.
13048         * Makefile.in: Fix reference to ada Make-lang.in.
13049         Remove support for LANG_MAKEFILES.
13050
13051 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
13052             Sandra Loosemore  <sandra@codesourcery.com>
13053
13054         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
13055         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
13056         description.  Add arm_neon_fp16_ok.
13057         (Add Options): Add arm_neon and arm_neon_fp16.
13058
13059 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
13060
13061         * diagnostic.c: Don't include flags.h.
13062         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
13063         context parameters.  Check flags in the context passed as a parameter.
13064         (diagnostic_build_prefix): Add context parameter.  Check
13065         show_column flag in context.
13066         (diagnostic_action_after_output): Check fatal_errors flag in context.
13067         (diagnostic_report_current_module): Check show_column flag in context.
13068         (default_diagnostic_starter): Update call to
13069         diagnostic_build_prefix.
13070         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
13071         (emit_diagnostic): Pass context to permissive_error_kind.
13072         (permerror): Pass context to permissive_error_kind.
13073         * diagnostic.h (struct diagnostic_context): Add show_column,
13074         pedantic_errors, permissive and fatal_errors fields.
13075         (diagnostic_build_prefix): Update prototype.
13076         * langhooks.c
13077         * toplev.c (process_options): Set flags in global_dc from
13078         flag_show_column, flag_pedantic_errors, flag_permissive,
13079         flag_fatal_errors.
13080         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
13081         to diagnostic_build_prefix.
13082         * Makefile.in (diagnostic.o): Update dependencies.
13083
13084 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13085
13086         * config/i386/ia32intrin.h (__crc32q): Define only if
13087         __SSE4_2__ is defined.
13088
13089 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
13090
13091         PR target/44132
13092         PR middle-end/43602
13093         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
13094         DECL_VISIBILITY_SPECIFIED.
13095         (emutls_decl): Set DECL_PRESERVE_P and copy
13096         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
13097         (emutls_finalize_control_var): New callback.
13098         (emutls_finish): Finalize emutls control variables.
13099         * toplev.c (compile_file): Move the call to emutls_finish ()
13100         before varpool_assemble_pending_decls ().
13101
13102 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
13103
13104         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
13105         added to the preprocessor condition.
13106
13107 2010-05-24  Paul Brook  <paul@codesourcery.com>
13108
13109         * gengtype-lex.l: Add HARD_REG_SET.
13110         * expr.c (expand_expr_real_1): Record writes to hard registers.
13111         * function.c (rtl_data): Add asm_clobbers.
13112         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
13113         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
13114         Use crtl->asm_clobbers.
13115
13116 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13117
13118         * doc/makefile.texi (Makefile): Mention stages 'profile'
13119         and 'feedback' for profiledbootstrap.
13120
13121 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13122
13123         PR target/44245
13124         * config/i386/i386.c (def_builtin): Properly check
13125         OPTION_MASK_ISA_64BIT.
13126
13127 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
13128
13129         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
13130         typedefs with different but compatible types.  Allow duplicate
13131         typedefs with the same type except for pedantic non-C1X, but give
13132         warning for variably modified types.
13133         * c-typeck.c (tagged_types_tu_compatible_p,
13134         function_types_compatible_p, type_lists_compatible_p,
13135         comptypes_internal): Add parameter different_types_p; set
13136         *different_types_p for different but compatible types.  All
13137         callers changed.
13138         (comptypes_check_different_types): New.
13139         * c-tree.h (comptypes_check_different_types): Declare.
13140
13141 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
13142
13143         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
13144         * jump.c: Include basic-block.h.
13145         * profile.c: Likewise.
13146         * tree-profile.c: Likewise.
13147         * coverage.c: Likewise.
13148         * basic-block.h (optimize_function_for_size_p): Move to function.h.
13149         (optimize_function_for_speed_p): Likewise.
13150         * function.h (optimize_function_for_size_p,
13151         optimize_function_for_speed_p): Moved here from basic-block.h.
13152         * Makefile.in: Update dependencies.
13153
13154 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13155
13156         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
13157         before calling make; allow override through $MAKE.
13158         * doc/invoke.texi (Optimize Options): Document override.
13159
13160 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
13161
13162         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
13163         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13164         (rs6000_mode_dependent_address_ptr): Make static.
13165         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13166         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
13167         Remove.
13168
13169 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
13170
13171         PR target/43869
13172         * config/i386/i386.c: Make sure that the correct regparm is passed.
13173
13174 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
13175
13176         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
13177         * sbitmap.c: ...to here to internalize sbitmap element access.
13178         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
13179         Explain why basic-block.h is included.
13180         * function.h: Include tm.h for CUMULATIVE_ARGS.
13181         * Makefile.in: Update dependencies.
13182
13183 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
13184
13185         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
13186         New core types.
13187         * sbitmap.h (struct sbitmap_def): Do not typedef here.
13188         * sbitmap.c: Include sbitmap.h.
13189         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
13190         hard-reg-set.h.  Split everything related to regsets out from here...
13191         * regset.h: ...to here.  New file.
13192         * df.h: Include regset.h and sbitmap.h.
13193         * tree-flow.h: Likewise.
13194         * cfgloop.h: Likewise.
13195         * except.h: Do not include sbitmap.h.  Include hashtab.h.
13196         * cgraph.h: Include vec.h and function.h.
13197         * reload.h (struct insn_chain): Change types of live_throughout
13198         and dead_or_set from regset_head to bitmap_head.
13199         (compute_use_by_pseudos): Be defined also if regset.h is not included.
13200         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
13201         spilled_regs from regset_head to bitmap_head to avoid dependency
13202         in regset.h.
13203         * sel-sched-ir.h: Include regset.h.
13204         * reload.c: Include df.h before reload.h.
13205         * caller-save.c: Likewise.
13206         * reload1.c: Likewise.
13207         * ira.c: Likewise.
13208         (mark_elimination): Update type of r to bitmap, consistent with
13209         DF_LR_IN.
13210         * dominance.c: Include bitmap.h.
13211         * modulo-sched.c: Include df.h.
13212         * cfganal.c: Include bitmap.h and sbitmap.h.
13213         * cfgbuild.c: Include sbitmap.h.
13214         * lcm.c: Include sbitmap.h.
13215         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
13216         * domwalk.c: Include sbitmap.h, exclude ggc.h.
13217         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
13218         * cselib.c: Include bitmap.h.
13219         * tree-optimize.c: Include regset.h.
13220         * stmt.c: Include bitmap.h.
13221         * Makefile.in: Update dependencies.
13222
13223 2010-05-22  Jan Hubicka  <jh@suse.cz>
13224
13225         * cgraph.h (struct varpool_node): Add same_comdat_group.
13226         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
13227         pointer.
13228         (output_varpool): Update call of lto_output_varpool_node.
13229         (input_varpool): Read same_comdat_group pointer.
13230         (input_varpool_1): Fixup same_comdat_group pointer.
13231         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
13232         group is needed, all are.
13233         * varpool.c (varpool_remove_node): Remove node from same comdat group
13234         linklist too.
13235         (varpool_analyze_pending_decls): Walk same comdat groups.
13236
13237 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
13238
13239         * rtl.h (union rtunion_def): Remove rt_bit member.
13240         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
13241         * print-rtl (print_rtx): Do not print the member.
13242         * gengtype.c (adjust_field_rtx_def): Do not handle it.
13243         * gengenrtl.c (type_from_format): Likewise.
13244         (accessor_from_format): Likewise.
13245
13246 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
13247
13248         * dbgcnt.c: Include toplev.h instead of errors.h.
13249         * ira-emit.c: Don't include errors.h.
13250         * ira.c: Include toplev.h instead of errors.h.
13251         * lto-compress.c: Include toplev.h instead of errors.h.
13252         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
13253         ira.o, dbgcnt.o): Update dependencies.
13254
13255 2010-05-22  Richard Guenther  <rguenther@suse.de>
13256
13257         * gimple.c (gimple_types_compatible_p): Check type qualifications
13258         before merging pointer to complete and pointer to incomplete type.
13259         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
13260         we use our own resolution algorithm.  The gold linker plugin
13261         doesn't do the job we want it to do here.
13262
13263 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
13264
13265         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13266         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13267         (sparc_mode_dependent_address_p): New function.
13268
13269 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
13270
13271         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
13272
13273         * timevar.c: Do not include any core headers.
13274         (timevar_print): De-i18n-ize.
13275         (print_time): Likewise.
13276         * timevar.h (timevar_push, timevar_pop): Make inline functions.
13277
13278 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
13279
13280         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
13281         langhooks-def.h.
13282         (diagnostic_initialize): Initialize x_data not last_function.
13283         (diagnostic_report_current_function): Move to tree-diagnostic.c.
13284         (default_diagnostic_starter): Call
13285         diagnostic_report_current_module not
13286         diagnostic_report_current_function.
13287         (diagnostic_report_diagnostic): Initialize x_data not
13288         abstract_origin.
13289         (verbatim): Likewise.
13290         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
13291         x_data.
13292         (struct diagnostic_context): Change last_function to x_data.
13293         (diagnostic_auxiliary_data): Replace with
13294         diagnostic_context_auxiliary_data and
13295         diagnostic_info_auxiliary_data.
13296         (diagnostic_last_function_changed, diagnostic_set_last_function,
13297         diagnostic_report_current_function): Move to tree-diagnostic.h.
13298         (print_declaration, dump_generic_node, print_generic_stmt,
13299         print_generic_stmt_indented, print_generic_expr,
13300         print_generic_decl, debug_c_tree, dump_omp_clauses,
13301         print_call_name, debug_generic_expr, debug_generic_stmt,
13302         debug_tree_chain, default_tree_printer): Move to
13303         tree-pretty-print.h.
13304         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
13305         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
13306         gimple-pretty-print.h.
13307         * pretty-print.c: Don't include tree.h
13308         (pp_base_format): Don't handle %K here.
13309         (pp_base_tree_identifier): Move to tree-pretty-print.c.
13310         * pretty-print.h (text_info): Change abstract_origin to x_data.
13311         (pp_tree_identifier, pp_unsupported_tree,
13312         pp_base_tree_identifier): Move to tree-pretty-print.h.
13313         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
13314         tree-pretty-print.h: New files.
13315         * tree-pretty-print.c: Include tree-pretty-print.h.
13316         (percent_K_format): New.  Moved from pretty-print.c.
13317         (pp_base_tree_identifier): Move from pretty-print.c.
13318         * c-objc-common.c: Include tree-pretty-print.h.
13319         (c_tree_printer): Handle %K here.
13320         * langhooks.c: Include tree-diagnostic.h.
13321         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
13322         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
13323         (default_tree_printer): Handle %K using percent_K_format.
13324         (general_init): Use default_tree_diagnostic_starter.
13325         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
13326         (free_lang_data): Use default_tree_diagnostic_starter.
13327         * c-pretty-print.c: Include tree-pretty-print.h.
13328         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13329         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13330         * dwarf2out.c: Include tree-pretty-print.h.
13331         * except.c: Include tree-pretty-print.h.
13332         * gimple-pretty-print.c: Include tree-pretty-print.h and
13333         gimple-pretty-print.h.
13334         * gimplify.c: Include tree-pretty-print.h.
13335         * graphite-poly.c: Include tree-pretty-print.h and
13336         gimple-pretty-print.h.
13337         * ipa-cp.c: Include tree-pretty-print.h.
13338         * ipa-inline.c: Include gimple-pretty-print.h.
13339         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13340         * ipa-pure-const.c: Include gimple-pretty-print.h.
13341         * ipa-struct-reorg.c: Include tree-pretty-print.h and
13342         gimple-pretty-print.h.
13343         * ipa-type-escape.c: Include tree-pretty-print.h.
13344         * print-rtl.c: Include tree-pretty-print.h.
13345         * print-tree.c: Include gimple-pretty-print.h.
13346         * sese.c: Include tree-pretty-print.h.
13347         * tree-affine.c: Include tree-pretty-print.h.
13348         * tree-browser.c: Include tree-pretty-print.h.
13349         * tree-call-cdce.c: Include gimple-pretty-print.h.
13350         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13351         * tree-chrec.c: Include tree-pretty-print.h.
13352         * tree-data-ref.c: Include tree-pretty-print.h and
13353         gimple-pretty-print.h.
13354         * tree-dfa.c: Include tree-pretty-print.h.
13355         * tree-if-conv.c: Include tree-pretty-print.h and
13356         gimple-pretty-print.h.
13357         * tree-inline.c: Include tree-pretty-print.h.
13358         * tree-into-ssa.c: Include tree-pretty-print.h and
13359         gimple-pretty-print.h.
13360         * tree-nrv.c: Include tree-pretty-print.h.
13361         * tree-object-size.c: Include tree-pretty-print.h and
13362         gimple-pretty-print.h.
13363         * tree-outof-ssa.c: Include tree-pretty-print.h and
13364         gimple-pretty-print.h.
13365         * tree-parloops.c: Include tree-pretty-print.h and
13366         gimple-pretty-print.h.
13367         * tree-predcom.c: Include tree-pretty-print.h and
13368         gimple-pretty-print.h.
13369         * tree-scalar-evolution.c: Include tree-pretty-print.h and
13370         gimple-pretty-print.h.
13371         * tree-sra.c: Include tree-pretty-print.h.
13372         * tree-ssa-address.c: Include tree-pretty-print.h.
13373         * tree-ssa-alias.c: Include tree-pretty-print.h.
13374         * tree-ssa-ccp.c: Include tree-pretty-print.h and
13375         gimple-pretty-print.h.
13376         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
13377         * tree-ssa-copy.c: Include tree-pretty-print.h and
13378         gimple-pretty-print.h.
13379         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
13380         * tree-ssa-dce.c: Include tree-pretty-print.h and
13381         gimple-pretty-print.h.
13382         * tree-ssa-dom.c: Include tree-pretty-print.h and
13383         gimple-pretty-print.h.
13384         * tree-ssa-dse.c: Include gimple-pretty-print.h.
13385         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
13386         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
13387         * tree-ssa-live.c: Include tree-pretty-print.h and
13388         gimple-pretty-print.h.
13389         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
13390         gimple-pretty-print.h.
13391         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
13392         gimple-pretty-print.h.
13393         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
13394         gimple-pretty-print.h.
13395         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
13396         gimple-pretty-print.h.
13397         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
13398         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
13399         * tree-ssa-operands.c: Include tree-pretty-print.h and
13400         gimple-pretty-print.h.
13401         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
13402         gimple-pretty-print.h.
13403         * tree-ssa-pre.c: Include tree-pretty-print.h and
13404         gimple-pretty-print.h.
13405         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
13406         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
13407         gimple-pretty-print.h.
13408         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
13409         gimple-pretty-print.h.
13410         * tree-ssa-sink.c: Include gimple-pretty-print.h.
13411         * tree-ssa-ter.c: Include tree-pretty-print.h and
13412         gimple-pretty-print.h.
13413         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
13414         * tree-ssa.c: Include tree-pretty-print.h and
13415         gimple-pretty-print.h.
13416         * tree-stdarg.c: Include gimple-pretty-print.h.
13417         * tree-switch-conversion.c: Include gimple-pretty-print.h.
13418         * tree-tailcall.c: Include tree-pretty-print.h and
13419         gimple-pretty-print.h.
13420         * tree-vect-data-refs.c: Include tree-pretty-print.h and
13421         gimple-pretty-print.h.
13422         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
13423         gimple-pretty-print.h.
13424         * tree-vect-loop.c: Include tree-pretty-print.h and
13425         gimple-pretty-print.h.
13426         * tree-vect-patterns.c: Include gimple-pretty-print.h.
13427         * tree-vect-slp.c: Include tree-pretty-print.h and
13428         gimple-pretty-print.h.
13429         * tree-vect-stmts.c: Include tree-pretty-print.h and
13430         gimple-pretty-print.h.
13431         * tree-vectorizer.c: Include tree-pretty-print.h.
13432         * tree-vrp.c: Include tree-pretty-print.h and
13433         gimple-pretty-print.h.
13434         * value-prof.c: Include tree-pretty-print.h and
13435         gimple-pretty-print.h.
13436         * var-tracking.c: Include tree-pretty-print.h.
13437         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
13438         (tree-diagnostic.o): New dependencies.
13439         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
13440         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
13441         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
13442         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
13443         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
13444         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
13445         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
13446         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
13447         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
13448         tree-ssa-address.o, tree-ssa-loop-niter.o,
13449         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
13450         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
13451         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
13452         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
13453         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
13454         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
13455         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
13456         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
13457         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
13458         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
13459         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
13460         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
13461         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
13462         tree-switch-conversion.o, var-tracking.o, value-prof.o,
13463         cfgexpand.o, pretty-print.o): Update dependencies.
13464
13465 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
13466
13467         * tree-ssa-structalias.c: Remove tm_p.h from include.
13468
13469 2010-05-21  Jeff Law  <law@redhat.com>
13470
13471         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
13472
13473 2010-05-21  Jason Merrill  <jason@redhat.com>
13474
13475         * tree-eh.c (cleanup_is_dead_in): New.
13476         (lower_try_finally): Don't generate a dead cleanup region.
13477         (lower_cleanup): Likewise.
13478
13479 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
13480
13481         PR debug/44223
13482         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
13483         unchain each use from the cyclic next_regno_use chain first.
13484
13485 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
13486
13487         * real: Do not include gmp.h, mpfr.h, and mpc.h.
13488         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
13489         (real_value_negate, real_value_abs): New prototypes.
13490         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
13491         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
13492         new include file for interface between MPFR and REAL_VALUE_TYPE.
13493         * real.c: Include realmpfr.h.
13494         (real_arithmetic2): Remove legacy function.
13495         (real_value_negate): New.
13496         (real_value_abs): New.
13497         (mfpr_from_real, real_from_mpfr): Move from here...
13498         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
13499         * builtins.c: Include realmpfr.h.
13500         * fold-const.c: Include realmpfr.h.
13501         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
13502         (fold_negate_const): Likewise.
13503         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
13504         * toplev.c: Include realmpfr.h.
13505         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
13506         and real_value_negate.
13507         * fixed-value.c (check_real_for_fixed_mode): Likewise.
13508         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
13509         (vfp3_const_double_index): Likewise.
13510         (arm_print_operand): Likewise.
13511         * Makefile.in: Update dependencies.
13512
13513 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13514
13515         * config/s390/s390.c (override_options): Increase the default
13516         of max-completely-peel-times.
13517
13518 2010-05-21  Julian Brown  <julian@codesourcery.com>
13519             Mark Mitchell  <mark@codesourcery.com>
13520
13521         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
13522         sibling calls for Thumb-1.
13523         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
13524         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
13525         Thumb-2.
13526         (*call_insn, *call_value_insn): Don't use for Thumb-2.
13527         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
13528         for Thumb-2.
13529         (return): New expander.
13530         (*arm_return): New name for ARM return insn.
13531         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
13532
13533 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
13534
13535         * config.gcc (sparc64-*-rtems*): New target.
13536
13537 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
13538
13539         * tree.c (build_function_decl_skip_args): Fix grammar.
13540         (build_function_type_list_1): Fix typos, adjust formatting.
13541
13542 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
13543
13544         * tree.h: Include real.h and fixed-value.h as basic datatypes.
13545         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
13546         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
13547         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
13548         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
13549         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
13550         tree-pretty-print.c, tree-loop-distribution.c,
13551         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
13552         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
13553         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
13554         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
13555         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
13556         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
13557         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
13558         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
13559         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
13560         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
13561         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
13562         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
13563         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
13564         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
13565         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
13566         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
13567         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
13568         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
13569         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
13570         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
13571         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
13572         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
13573         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
13574         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
13575         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
13576         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
13577         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
13578         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
13579         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
13580         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
13581         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
13582         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
13583         config/score/score7.c, config/score/score.c, config/arm/arm.c,
13584         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
13585         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
13586         config/bfin/bfin.c: Clean up redundant includes.
13587         * Makefile.in: Update accordingly.
13588
13589 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
13590
13591         PR middle-end/44204
13592         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
13593         statement has no arguments.
13594
13595 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
13596
13597         PR/44139
13598         * varasm.c (emutls_decl): Merge attributes to new decl.
13599
13600 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
13601
13602         PR middle-end/44101
13603         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
13604         around the uniquized constructor if its type requires a conversion.
13605
13606 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
13607
13608         PR debug/44205
13609         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
13610         at -O0 goto_locus of any of the incoming edges differs from
13611         goto_locus of outgoing edge, or gimple_location of any of the
13612         labels differs.
13613
13614 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
13615
13616         * ira.c (ira_non_ordered_class_hard_regs): Define.
13617         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
13618         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
13619         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
13620         cost of unaligned hard regs when allocating multi-reg pseudos.
13621
13622 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
13623
13624         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
13625         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
13626         for TARGET_NO_FLOAT.
13627         * config/mips/mips.c (mips_file_start): Expand conditional expression
13628         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
13629         (mips_override_options): Move -mno-float override -msoft-float and
13630         -mhard-float.
13631         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
13632         Condition(TARGET_SUPPORTS_NO_FLOAT).
13633         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
13634         __mips_no_float here.
13635         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
13636         (TARGET_SUPPORTS_NO_FLOAT): Define.
13637         * config/mips/sdemtk.opt: Delete.
13638
13639 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
13640
13641         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
13642
13643 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
13644
13645         PR target/43733
13646         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
13647         * configure: Regenerate.
13648         * config.in: Regenerate.
13649         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
13650         instead of sahf only for 64bit targets.
13651
13652 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
13653
13654         PR debug/44178
13655         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
13656         setup_ref_regs for DEBUG_INSNs.
13657
13658 2010-05-20  Jan Hubicka  <jh@suse.cz>
13659
13660         PR middle-end/44197
13661         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
13662
13663 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
13664
13665         PR bootstrap/43870
13666         * df-scan.c (df_ref_compare): Stabilize sort.
13667
13668 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
13669
13670         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
13671         argument.  Don't use DW_OP_piece if offset is non-zero,
13672         put offset into second DW_OP_bit_piece argument.
13673         (dw_sra_loc_expr): Adjust callers.  For memory expressions
13674         compute offset.
13675
13676 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
13677
13678         PR target/44202
13679         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
13680         settings for 16-bit-constant "addo" alternative.
13681
13682 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
13683
13684         * config/mips/mips-dsp.md (add<DSPV:mode>3,
13685         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
13686
13687         PR target/43764
13688         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
13689         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
13690         Use it.
13691
13692 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
13693
13694         * diagnostic.c (FLOAT, FFS): Don't undefine.
13695         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
13696         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
13697         include ordering.
13698
13699 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
13700
13701         * combine.c (propagate_for_debug): Call make_compound_operation
13702         on the source value.
13703         (try_combine): When implementing a split chosen by find_split_point,
13704         either copy i2src or set it to null.  Assert that i2src is not null
13705         before substituting into CALL_INSN_FUNCTION_USAGE.
13706
13707 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
13708
13709         * double-int.h (double_int_ior): New function.
13710         * tree.h (build_int_cst_wide_type): Remove.
13711         * tree.c (build_int_cst_wide_type): Remove.
13712         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
13713         of build_int_cst_wide_type.
13714         * stor-layout.c (set_sizetype): (Ditto.).
13715         * dojump.c (do_jump): Use build_int_cstu instead of
13716         build_int_cst_wide_type.
13717
13718 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
13719
13720         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
13721         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
13722         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
13723         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
13724         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
13725         propagate the 'data' argument to copy_tree_r.
13726         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
13727         Propagate 'data' argument to walk_tree.
13728         (copy_if_shared): New function.
13729         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
13730         (unmark_visited): New function.
13731         (unshare_body): Call copy_if_shared instead of doing it manually.
13732         (unvisit_body): Call unmark_visited instead of doing it manually.
13733
13734 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
13735
13736         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
13737         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
13738         * hooks.c: Likewise.
13739         * target-def.h (TARGET_FOLD_BUILTIN): Define to
13740         hook_tree_tree_int_treep_bool_null.
13741         * target.h (struct gcc_target): Update signature of fold_builtin
13742         field.
13743         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
13744         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
13745         instead of the call expression.
13746         (fold_builtin_call_array): Pass n and argarray directly.
13747         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
13748         consing a list.
13749         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
13750         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
13751         `i' and use it in place of `arity'.
13752         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
13753         Dereference `args' directly.
13754         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
13755
13756 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13757
13758         * doc/sourcebuild.texi (Effective-Target Keywords): Document
13759         3dnow, sse3, sse2.
13760         (Directives): Document optional dg-require-effective-target
13761         selector.
13762
13763 2010-05-19  Richard Guenther  <rguenther@suse.de>
13764
13765         PR lto/44196
13766         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
13767
13768 2010-05-19  Richard Guenther  <rguenther@suse.de>
13769
13770         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
13771         * common.opt (fwhopr=): New.
13772         * opts.c (common_handle_option): Handle OPT_fwhopr.
13773         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
13774         * collect2.c (main): Match -fwhopr*.
13775         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
13776         Execute ltrans stage in parallel when jobs is bigger than 1.
13777
13778 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13779
13780         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
13781         pentiumpro on Solaris 8/x86 with Sun as.
13782         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
13783         hidden alias bug.
13784         (gcc_cv_as_ix86_quad): Check for .quad directive.
13785         * configure: Regenerate.
13786         * config.in: Regenerate.
13787         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
13788
13789 2010-05-19  Martin Jambor  <mjambor@suse.cz>
13790
13791         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
13792         also for indirect edges.  Actual printing moved...
13793         (ipa_print_node_jump_functions_for_edge): ...here.
13794         (ipa_compute_jump_functions): Renamed to
13795         ipa_compute_jump_functions_for_edge and made static.
13796         (ipa_compute_jump_functions): New function.
13797         (make_edge_direct_to_target): Check if the number of arguments on
13798         the newly direct edge is the same as the number of parametrs of
13799         the callee.
13800         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
13801         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
13802         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
13803         analysis functions unconditionally, call the new
13804         ipa_analyze_params_uses on the node instead of every edge.
13805
13806 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
13807
13808         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
13809         to tree.
13810         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
13811         also checks for a constant int vs.  non-constant but
13812         loop-invariant steps.
13813         (find_or_create_group): Change the sort algorithm to only consider
13814         steps that are constant ints.
13815         (idx_analyze_ref): Adopt code to handle a tree instead of a
13816         HOST_WIDE_INT for step.
13817         (gather_memory_references_ref): Handle tree instead of int and be
13818         prepared to see a NULL_TREE.
13819         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
13820         prefetches if the step cannot be calculated at compile time.
13821         (issue_prefetch_ref): Issue prefetches for non-constant but
13822         loop-invariant steps.
13823
13824 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
13825
13826         Revert:
13827         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
13828
13829         * tree.h (build_call_list): Remove.
13830         * tree.c (build_call_list): Remove.
13831
13832 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
13833
13834         * tree.h (build_call_list): Remove.
13835         * tree.c (build_call_list): Remove.
13836
13837 2010-05-18  Jan Hubicka  <jh@suse.cz>
13838
13839         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
13840
13841 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
13842
13843         PR rtl-optimization/43332
13844         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
13845
13846 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
13847
13848         * tree.h (build_int_cstu): Implement as static inline.
13849         * tree.c (build_int_cstu): Remove function.
13850         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
13851         sign extended.
13852
13853 2010-05-18  Richard Guenther  <rguenther@suse.de>
13854
13855         PR lto/44143
13856         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
13857         (debug): Initialize from -save-temps.
13858         (collect_execute): Print command-line when verbose.
13859         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
13860         for ltrans invocation.  Produce -dumpbase flag again.
13861         (process_args): Remove.
13862         (main): Simplify.
13863         * collect2.c (maybe_run_lto_and_relink): Only pass object
13864         files to lto-wrapper.
13865         * gcc.c (LINK_COMMAND_SPEC): Likewise.
13866
13867 2010-05-18  Jan Hubicka  <jh@suse.cz>
13868
13869         * opts.c (decode_options): Do not disable whopr at ipa_cp.
13870         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
13871
13872 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
13873
13874         PR lto/44184
13875         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
13876         in a GIMPLE_ASM.
13877         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
13878         in a GIMPLE_ASM.
13879
13880 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
13881
13882         PR debug/41371
13883         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
13884         rtx_equal_p inline.
13885
13886 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
13887
13888         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
13889         lto-macho as lto_binary_reader.
13890
13891         * darwin.c (darwin_asm_named_section): Do not add assembler comment
13892         after .section directive; just print it before the directive instead.
13893
13894 2010-05-17  Jan Hubicka  <jh@suse.cz>
13895
13896         * cgraph.c (cgraph_create_virtual_clone): Only check
13897         versionable_function_p when not in wpa and checking is enabled.
13898         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
13899         there are no more functions to materialize.
13900
13901 2010-05-17  Jan Hubicka  <jh@suse.cz>
13902
13903         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
13904         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
13905         New functions.
13906         (output_cgraph): Call output_cgraph_opt_summary.
13907         (input_cgrpah): Call input_cgraph_opt_summary.
13908         (output_cgraph_opt_summary_p, output_node_opt_summary,
13909         input_node_opt_summary, input_cgraph_opt_section): New functions.
13910         * lto-section-in.c (lto_section_name): Add cgraphopt.
13911         * tree-inline.c (tree_function_versioning): Handle parm_num.
13912         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
13913         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
13914
13915 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
13916
13917         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
13918         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
13919         the insn to prefetch ratio heuristic to loops with known trip count.
13920
13921 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
13922
13923         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
13924         (schedule_prefetches): Do not generate a prefetch if the unroll factor
13925         is far from what is required by the prefetch.
13926
13927 2010-05-17  Jan Hubicka  <jh@suse.cz>
13928
13929         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
13930         (ipcp_estimate_growth): Likewise.
13931         (ipcp_const_param_count): Likewise.
13932         (ipcp_insert_stage): Likewise.
13933         * ipa-prop.c (visit_load_for_mod_analysis): New function.
13934         (visit_store_addr_for_mod_analysis): Set used flag.
13935         (ipa_detect_param_modifications): Set used flag for SSE params;
13936         update use of walk_stmt_load_store_addr_ops.
13937         (ipa_print_node_params): Print used flag.
13938         (ipa_write_node_info): Stream used flag.
13939         (ipa_read_node_info): Likewise.
13940         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
13941         (ipa_is_param_used): New function.
13942         (lto_ipa_fixup_call_notes): Remove unused declaration.
13943
13944 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13945
13946         PR target/44074
13947         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
13948         * configure: Regenerate.
13949         * config.in: Regenerate.
13950         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
13951         !HAVE_AS_IX86_REP_LOCK_PREFIX.
13952         Don't emit whitespace.
13953         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
13954         (*rep_movsi): Likewise.
13955         (*rep_movsi_rex64): Likewise.
13956         (*rep_movqi): Likewise.
13957         (*rep_movqi_rex64): Likewise.
13958         (*rep_stosdi_rex64): Likewise.
13959         (*rep_stossi): Likewise.
13960         (*rep_stossi_rex64): Likewise.
13961         (*rep_stosqi): Likewise.
13962         (*rep_stosqi_rex64): Likewise.
13963         (*cmpstrnqi_nz_1): Use {%;} after repz.
13964         (*cmpstrnqi_nz_rex_1): Likewise.
13965         (*cmpstrnqi_1): Likewise.
13966         (*cmpstrnqi_rex_1): Likewise.
13967         (*strlenqi_1): Use {%;} after repnz.
13968         (*strlenqi_rex_1): Likewise.
13969         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
13970         (*sync_compare_and_swap<mode>): Likewise.
13971         (sync_double_compare_and_swap<mode>): Likewise.
13972         (*sync_double_compare_and_swapdi_pic): Likewise.
13973         (sync_old_add<mode>): Likewise.
13974         (sync_add<mode>): Likewise.
13975         (sync_sub<mode>): Likewise.
13976         (sync_<code><mode>): Likewise.
13977
13978 2010-05-17  Martin Jambor  <mjambor@suse.cz>
13979
13980         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
13981         otr_token and polymorphic.
13982         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
13983         (cgraph_clone_edge): Copy the above fields.
13984         * tree.c (get_binfo_at_offset): New function.
13985         * tree.h (get_binfo_at_offset): Declare.
13986         * ipa-prop.h (enum jump_func_type): Added known_type jump function
13987         type, reordered items, updated comments.
13988         (union jump_func_value): Added base_type field, reordered fields.
13989         (enum ipa_lattice_type): Moved down in the file.
13990         (struct ipa_param_descriptor): New field polymorphic.
13991         (ipa_is_param_polymorphic): New function.
13992         * ipa-prop.c: Include gimple.h and gimple-fold.h.
13993         (ipa_print_node_jump_functions): Print known type jump functions.
13994         (compute_complex_pass_through): Renamed to...
13995         (compute_complex_assign_jump_func): this.
13996         (compute_complex_ancestor_jump_func): New function.
13997         (compute_known_type_jump_func): Likewise.
13998         (compute_scalar_jump_functions): Create known type and complex ancestor
13999         jump functions.
14000         (ipa_note_param_call): New parameter polymorphic, set the corresponding
14001         flag in the call note accordingly.
14002         (ipa_analyze_call_uses): Renamed to...
14003         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
14004         variable var only in the block where it is used.
14005         (ipa_analyze_virtual_call_uses): New function.
14006         (ipa_analyze_call_uses): Likewise.
14007         (combine_known_type_and_ancestor_jfs): Likewise.
14008         (update_jump_functions_after_inlining): Implemented handling of a
14009         number of new jump function types combination.
14010         (print_edge_addition_message): Removed.
14011         (make_edge_direct_to_target): New function.
14012         (try_make_edge_direct_simple_call): Likewise.
14013         (try_make_edge_direct_virtual_call): Likewise.
14014         (update_call_notes_after_inlining): Renamed to...
14015         (update_indirect_edges_after_inlining): this.  Moved edge creation for
14016         indirect calls to try_make_edge_direct_simple_call, also calls
14017         try_make_edge_direct_virtual_call for virtual calls.
14018         (ipa_print_node_params): Changed the header message.
14019         (ipa_write_jump_function): Stream also known type jump functions.
14020         (ipa_read_jump_function): Likewise.
14021         (ipa_write_indirect_edge_info): Stream new fields in
14022         cgraph_indirect_call_info.
14023         (ipa_read_indirect_edge_info): Likewise.
14024         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
14025         GIMPLE_FOLD_H.
14026
14027 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14028
14029         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
14030
14031 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
14032
14033         * tree.h (CALL_EXPR_ARGS): Delete.
14034         (call_expr_arglist): Delete.
14035         * tree.c (call_expr_arglist): Delete.
14036         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
14037         targetm.fold_builtin.
14038         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
14039         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
14040         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
14041         arglist parameter.  Use CALL_EXPR_ARG.
14042         (picochip_expand_builtin_3op): Likewise.
14043         (picochip_expand_builtin_2opvoid): Likewise.
14044         (picochip_expand_array_get): Likewise.
14045         (picochip_expand_array_put): Likewise.
14046         (picochip_expand_array_testport): Likewise.
14047         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
14048         rather than arglist.
14049         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
14050         CALL_EXPR_ARGS.
14051         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
14052         than TREE_VALUE and TREE_CHAIN.
14053         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
14054         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
14055         the arglist.
14056
14057 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
14058
14059         PR bootstrap/42347
14060         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
14061         to have no fallthru edge.
14062
14063         PR middle-end/44102
14064         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
14065         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
14066         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
14067         add BARRIER after previous bb if needed.
14068
14069 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
14070
14071         * tree.c (build_function_type_list_1): Remove bogus assert condition.
14072
14073 2010-05-17  Alan Modra  <amodra@gmail.com>
14074
14075         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
14076         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
14077         with copy_reg rtx param.
14078         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
14079         Correct cases where code for ABI_V4 did not initialise the reg
14080         used to access frame.  Also leave frame_reg_rtx as sp for large
14081         frames that save no regs.
14082
14083 2010-05-17  Martin Jambor  <mjambor@suse.cz>
14084
14085         PR middle-end/44133
14086         * tree-sra.c (create_access_replacement): New parameter rename, mark
14087         the replaement for renaming only when it is true.
14088         (get_access_replacement): Pass true in the rename parameter of
14089         create_access_replacement.
14090         (get_unrenamed_access_replacement): New function.
14091         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
14092         replacement declaration from it.
14093
14094 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
14095
14096         * function.c (try_fit_stack_local, add_frame_space): New static
14097         functions.
14098         (assign_stack_local_1): Use them.  Look for opportunities to use
14099         space previously wasted on alignment.
14100         * function.h (struct frame_space): New.
14101         (struct rtl_data): Add FRAME_SPACE_LIST member.
14102         * reload1.c (something_was_spilled): New static variable.
14103         (alter_reg): Set it.
14104         (reload): Test it in addition to testing if the frame size changed.
14105
14106 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
14107
14108         * config/s390/s390.c: Define sane prefetch settings and activate
14109         flag_prefetch_loop_arrays on -O3.
14110         * config/s390/s390.h: Declare that read can use write prefetch.
14111
14112 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
14113
14114         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
14115         build.
14116
14117 2010-05-16  Jan Hubicka  <jh@suse.cz>
14118
14119         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
14120         function body; do not check stdarg field of struct function.
14121
14122 2010-05-16  Jan Hubicka  <jh@suse.cz>
14123
14124         * cgraph.c (dump_cgraph_node): Dump versionable flag.
14125         * cgraph.h (cgraph_local_info): Add versionable flag.
14126         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
14127         (ipcp_versionable_function_p): Use it.
14128         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
14129         versionable flag.
14130
14131 2010-05-16  Jan Hubicka  <jh@suse.cz>
14132
14133         * cgraph.c (cgraph_clone_node): Take decl argument and insert
14134         clone into hash when it is different from orig.
14135         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
14136         * cgraph.h (cgraph_clone_node): Update prototype.
14137         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
14138         (lto_cgraph_encoder_delete): Delete body map.
14139         (lto_cgraph_encoder_size): Move to header.
14140         (lto_cgraph_encoder_encode_body_p,
14141         lto_set_cgraph_encoder_encode_body): New.
14142         (lto_output_node): Do not take written_decls argument; output clone_of
14143         pointer.
14144         (add_node_to): Add include_body_argument; call
14145         lto_set_cgraph_encoder_encode_body on master of the clone.
14146         (add_references): Update use of add_node_to.
14147         (compute_ltrans_boundary): Likewise.
14148         (output_cgraph): Do not create written_decls bitmap.
14149         (input_node): Take nodes argument; stream in clone_of correctly.
14150         (input_cgraph_1): Update use of input_node.
14151         * lto-streamer-out.c (lto_output): Use encoder info to decide
14152         what bodies to output.
14153         * ipa-inline.c (cgraph_clone_inlined_nodes,
14154         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
14155         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
14156         (lto_cgraph_encoder_size): Define here.
14157         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
14158         Declare.
14159
14160 2010-05-16  Richard Guenther  <rguenther@suse.de>
14161
14162         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
14163         -fipa-type-escape.
14164         * ipa-type-escape.c (gate_type_escape_vars): Run when
14165         -fipa-struct-reorg runs.
14166         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
14167         * common.opt (fipa-type-escape): Remove.
14168
14169 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
14170
14171         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
14172         (decode_options): Likewise.
14173         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
14174
14175 2010-05-16  Jan Hubicka  <jh@suse.cz>
14176
14177         * ipa.c (function_and_variable_visibility): Also bring local all
14178         aliases.
14179
14180 2010-05-16  Richard Guenther  <rguenther@suse.de>
14181
14182         * alias.c (nonoverlapping_memrefs_p): Remove use of
14183         IPA type-escape information.
14184
14185 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
14186
14187         * c-common.c (c_common_reswords): Add _Static_assert for C.
14188         * c-parser.c (c_token_starts_declaration,
14189         c_parser_next_token_starts_declaration,
14190         c_parser_static_assert_declaration_no_semi,
14191         c_parser_static_assert_declaration): New.
14192         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
14193         Handle static assertions if static_assert_ok.
14194         (c_parser_external_declaration, c_parser_declaration_or_fndef,
14195         c_parser_compound_statement_nostart, c_parser_label,
14196         c_parser_for_statement, c_parser_objc_methodprotolist,
14197         c_parser_omp_for_loop): All callers of
14198         c_parser_declaration_or_fndef changed.
14199         (c_parser_struct_declaration): Handle static assertions.
14200         (c_parser_compound_statement_nostart): Use
14201         c_parser_next_token_starts_declaration and
14202         c_token_starts_declaration to detect start of declarations.
14203         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
14204         Likewise.
14205
14206 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
14207
14208         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
14209         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14210         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14211         TARGET_FUNCTION_VALUE_REGNO_P): Define.
14212         (mmix_function_outgoing_value): Rename to...
14213         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
14214         (mmix_function_value_regno_p): Make static.
14215         (mmix_libcall_value): New function.
14216         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
14217         mmix_function_value_regno_p): Remove declaration.
14218
14219 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
14220
14221         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
14222         BUILT_IN_ALLOCA if stack checking is enabled.
14223
14224 2010-05-16  Richard Guenther  <rguenther@suse.de>
14225
14226         * var-tracking.c (vars_copy_1): Inline ...
14227         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
14228         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
14229         (variable_merge_over_cur): Adjust.  Merge asserts.
14230         (variable_merge_over_src): Likewise.
14231         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
14232         (variable_post_merge_new_vals): Merge asserts.
14233         (variable_post_merge_perm_vals): Likewise.
14234         (find_mem_expr_in_1pdv): Likewise.
14235         (dataflow_set_different_value): Remove.
14236         (onepart_variable_different_p): Merge asserts.
14237         (variable_different_p): Likewise.
14238         (dataflow_set_different_1): Inline ...
14239         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
14240         (emit_notes_for_differences_1): Merge asserts.
14241
14242 2010-05-16  Richard Guenther  <rguenther@suse.de>
14243
14244         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
14245         * optabs.c (libfunc_decl_hash): Likewise.
14246         * varasm.c (emutls_decl): Likewise.
14247
14248 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
14249
14250         * c-decl.c: Don't include gimple.h.
14251         (merge_decls): Do not copy gimple_body.
14252
14253 2010-05-15  Jason Merrill  <jason@redhat.com>
14254
14255         * c.opt: Add -fnothrow-opt.
14256
14257 2010-05-15  Jan Hubicka  <jh@suse.cz>
14258
14259         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
14260         analyzed.
14261         * passes.c (ipa_write_summaries): Write all analyzed nodes.
14262
14263 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
14264
14265         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
14266         * Makefile.in: Add it.
14267         Fix all other Makefile dependencies for changes below.
14268         * tree.h: Include it instead of defining VEC primitives here.
14269         * gimple.h: Likewise.
14270         * rtl.h: Likewise.
14271         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
14272         * except.h: Include vecir.h, break dependence on tree.h.
14273
14274         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
14275         Move from here...
14276         * tree-iterator.c: ...to here.
14277         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
14278
14279         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
14280         tm_p.h.
14281         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
14282         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
14283         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
14284         tree-mudflap.h, and target.h.
14285         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
14286         predict.h, tree-inline.h, gimple.h, and langhooks.h.
14287         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
14288         Add FIXME for why gimple.h is still included (should be unnecessary
14289         since GCC 4.5 gimplification unit-at-a-time).
14290         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
14291         * c-pragma.c: Add FIXME for why function.h needs to be included just
14292         for cfun, at front-end level.
14293         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
14294         Do not include ggc.h, but include vecprim.h for VEC(char).
14295         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
14296         Explain why target.h is included.
14297         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
14298         Explain why gimple.h is included.
14299         * c-ppoutput.c: Do not include tm.h.
14300         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
14301         * c-parses.c: Explain why rtl.h is included, and that this (and only
14302         this) is also why tm.h must be included.
14303         Do not include except.h.
14304         * c-lang.c: Do not include ggc.h.
14305
14306 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
14307
14308         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
14309
14310 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
14311
14312         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
14313         unions by default if those structs and unions have no tags.  Do
14314         not condition anonymous struct and unions handling on flag_iso.
14315         Allow anonymous structs and unions for C1X.
14316         (finish_struct): Do not diagnose lack of named fields when
14317         anonymous structs and unions present for C1X.  Accept flexible
14318         array members in structure with anonymous structs or unions but no
14319         directly named fields.
14320         * doc/extend.texi (Unnamed Fields): Update.
14321
14322 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
14323
14324         * gimple.h (compare_field_offset): Rename into...
14325         (gimple_compare_field_offset): ...this.
14326         * gimple.c (compare_field_offset): Rename into...
14327         (gimple_compare_field_offset): ...this.  Compare the full access if
14328         the offset is self-referential.
14329         (gimple_types_compatible_p): Adjust for above renaming.
14330         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
14331         DECL_NONADDRESSABLE_P flag of fields before merging them.
14332
14333 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
14334
14335         * tree.h (ctor_to_list): Delete.
14336         * tree.c (ctor_to_list): Delete.
14337
14338 2010-05-15  Jan Hubicka  <jh@suse.cz>
14339
14340         * ipa-reference.c: Include toplev.h
14341         (is_proper_for_analysis): Only add to all_module_statics
14342         if it is allocated.
14343         (write_node_summary_p, stream_out_bitmap,
14344         ipa_reference_write_optimization_summary,
14345         ipa_reference_read_optimization_summary): New.
14346         (struct ipa_opt_pass_d pass_ipa_reference): Add
14347         optimization summary streaming.
14348         * lto-cgraph.c (referenced_from_this_partition_p,
14349         reachable_from_this_partition_p): New functions.
14350         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
14351         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
14352         * opts.c (decode_options): Enable ipa_reference.
14353         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
14354         * lto-streamer.h (referenced_from_this_partition_p,
14355         reachable_from_this_partition_p): Declare.
14356
14357 2010-05-15  Richard Guenther  <rguenther@suse.de>
14358
14359         PR tree-optimization/44038
14360         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
14361         taking the address of a V_C_E of a constant.
14362
14363 2010-05-14  Jan Hubicka  <jh@suse.cz>
14364
14365         * tree.h (memory_identifier_string): Remove.
14366         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
14367         (ipa_reference_global_vars_info_d): Remove statics_not_read and
14368         statics_not_written.
14369         (ipa_reference_optimization_summary_d): New structure.
14370         (ipa_reference_optimization_summary_t): New type and vector.
14371         (ipa_reference_vars_info_d): Embedd structures instead of using
14372         pointers.
14373         (reference_vars_to_consider): Remove out of GGC space.
14374         (module_statics_escape): Remove.
14375         (global_info_obstack): Rename to ...
14376         (optimization_summary_obstack): ... this one.
14377         (initialization_status_t): Remove.
14378         (memory_identifier_string): Remove.
14379         (get_reference_vars_info): Fix indenting.
14380         (set_reference_vars_info): Likewise.
14381         (get_reference_optimization_summary): New.
14382         (set_reference_optimization_summary): New.
14383         (get_global_reference_vars_info): Remove.
14384         (ipa_reference_get_read_global): Remove.
14385         (ipa_reference_get_written_global): Remove.
14386         (ipa_reference_get_not_read_global): Update.
14387         (ipa_reference_get_not_written_global): Update.
14388         (is_proper_for_analysis): Outlaw addressable.
14389         (propagate_bits): Update for new datastructures.
14390         (analyze_variable): Remove.
14391         (init_function_info): Update for new datastructures.
14392         (clean_function_local_data): Remove.
14393         (clean_function): Remove.
14394         (copy_global_bitmap): Use optimizations_summary_obstack.
14395         (duplicate_node_data): Duplicate optimization summary only.
14396         (remove_node_data): Remove optimization summary only.
14397         (generate_summary): Do not analyze variables; do not compute
14398         module_statics_escape; do not prune solutions by it.
14399         (read_write_all_from_decl): Fix typos in comments.
14400         (propagate): Doscover readonly and nonaddressable first;
14401         update for new datastructures; share global bitmaps.
14402         * ipa-reference.h (ipa_reference_get_read_global,
14403         ipa_reference_get_written_global): Remove.
14404         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
14405         * Makefile.in: Remove ipa-refereference from GT files.
14406
14407 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
14408
14409         PR debug/44112
14410         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
14411         for all SYMBOL_REF_DECLs.
14412
14413 2010-05-14  Jan Hubicka  <jh@suse.cz>
14414
14415         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
14416         (varpool_all_refs_explicit_p): New inline function.
14417         * ipa-reference.c: Update comment.
14418         (module_statics_written): Remove.
14419         (get_static_decl): Remove.
14420         (ipa_init): Do not initialize module_statics_written.
14421         (analyze_function): Likewise.
14422         (generate_summary): Likewise; do not compute module_statics_readonly
14423         and do not update variable flags.
14424         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
14425         * ipa.c: Inlucde flags.h
14426         (cgraph_local_node_p): New.
14427         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
14428         promote functions to local.
14429         (ipa_discover_readonly_nonaddressable_vars): New function.
14430         (function_and_variable_visibility): Use cgraph_local_node_p.
14431         * varpool.c (varpool_finalize_decl): Set force_output for
14432         DECL_PRESERVE_P vars.
14433
14434 2010-05-14  Jan Hubicka  <jh@suse.cz>
14435
14436         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
14437
14438 2010-05-14  Richard Guenther  <rguenther@suse.de>
14439
14440         PR tree-optimization/44119
14441         * tree-ssa-pre.c (eliminate): Properly mark replacement of
14442         a PHI node necessary.
14443
14444 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
14445
14446         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
14447
14448 2010-05-14  Jason Merrill  <jason@redhat.com>
14449
14450         PR c++/44127
14451         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
14452         (gimple_call_set_nothrow): New.
14453         * gimple.c (gimple_build_call_from_tree): Call it.
14454         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
14455
14456         PR c++/44127
14457         * gimplify.c (gimplify_seq_add_stmt): No longer static.
14458         * gimple.h: Declare it.
14459         * gimple.c (gimple_build_eh_filter): No ops.
14460
14461 2010-05-14  Jan Hubicka  <jh@suse.cz>
14462
14463         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
14464         nodes already in queue.
14465         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
14466         re-enqueueing node.
14467
14468 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
14469
14470         PR debug/44136
14471         * cfgexpand.c (expand_debug_expr): If non-memory op0
14472         has BLKmode, return NULL.
14473
14474 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
14475
14476         * config.gcc: Add support for --with-cpu option for bdver1.
14477         * config/i386/i386.h (TARGET_BDVER1): New macro.
14478         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
14479         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
14480         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
14481         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
14482         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
14483         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
14484         (processor_type): Add PROCESSOR_BDVER1.
14485         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
14486         processor_type in config/i386/i386.h.
14487         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
14488         movaps <reg, reg> instead of movapd <reg, reg> when replacing
14489         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
14490         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
14491         to emit packed xor instead of packed double/packed integer
14492         xor for SSE and AVX when moving a zero value.
14493         * config/i386/sse.md: Add check for
14494         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
14495         movapd/movdqa for SSE and AVX.
14496         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
14497         single logical operations i.e and, or and xor instead of packed double
14498         logical operations for SSE and AVX.
14499         * config/i386/i386-c.c (ix86_target_macros_internal):
14500         Add PROCESSOR_BDVER1.
14501         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
14502         (has_fma4, has_xop): New.
14503         * config/i386/i386.c (bdver1_cost): New variable.
14504         (m_BDVER1): New macro.
14505         (m_AMD_MULTIPLE): Add m_BDVER1.
14506         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
14507         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
14508         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
14509         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
14510         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
14511         x86_tune_sse_partial_reg_dependency,
14512         x86_tune_sse_unaligned_load_optimal,
14513         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
14514         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
14515         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
14516         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
14517         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
14518         Enable/disable for bdver1.
14519         (processor_target_table): Add bdver1_cost.
14520         (cpu_names): Add bdver1.
14521         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
14522          processor_alias_table.
14523         (ix86_expand_vector_move_misalign): Change.
14524         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
14525         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
14526         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
14527         of movupd/movdqu for SSE and AVX.
14528         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
14529         (ix86_tune_adjust_cost): Add code for bdver1.
14530         (standard_sse_constant_opcode): Add check for
14531         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
14532         of packed double xor for SSE and AVX.
14533
14534 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
14535
14536         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
14537         result to unsigned.
14538
14539 2010-05-14  Tristan Gingold  <gingold@adacore.com>
14540
14541         * toplev.c (default_debug_hooks): Remove this variable.
14542         (process_options): Remove assignments to default_debug_hooks.
14543
14544 2010-05-14  Martin Jambor  <mjambor@suse.cz>
14545
14546         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
14547         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
14548         * langhooks.h (struct lang_hooks_for_decls): Removed field
14549         fold_obj_type_ref.
14550         * tree.c (free_lang_data): Remove assignment to
14551         lang_hooks.fold_obj_type_ref.
14552         * tree.def (OBJ_TYPE_REF): Update comment.
14553
14554 2010-05-14  Richard Guenther  <rguenther@suse.de>
14555
14556         PR tree-optimization/44124
14557         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
14558
14559 2010-05-14  Alan Modra  <amodra@gmail.com>
14560
14561         PR target/44075
14562         * config/rs6000/rs6000.c (struct machine_function): Reorder
14563         fields for better packing.  Add lr_save_state.
14564         (rs6000_ra_ever_killed): Return lr_save_state if set.
14565         (rs6000_emit_eh_reg_restore): Set lr_save_state.
14566
14567 2010-05-13  Jan Hubicka  <jh@suse.cz>
14568
14569         * varpool.c (decide_is_variable_needed): Drop code checking
14570         TREE_SYMBOL_REFERENCED.
14571
14572 2010-05-13  Jan Hubicka  <jh@suse.cz>
14573
14574         * final.c (output_addr_const): Do not call mark_decl_referenced.
14575         * cgraphunit.c (process_function_and_variable_attributes): Use
14576         mark_needed_node dirrectly.
14577         (assemble_thunk): Do not call mark_decl_referenced.
14578
14579 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
14580
14581         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
14582
14583 2010-05-13  Jeff Law  <law@redhat.com>
14584
14585         * ira-conflicts.c (print_allocno_conflicts): New function broken out
14586         from...
14587         (print_conflicts): Call print_allocno_conflicts.
14588
14589 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
14590
14591         PR debug/44104
14592         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
14593         if it is NULL.
14594
14595 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
14596
14597         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
14598         t-mingw-w64 or t-mingw-w32 for multilib configuration.
14599         * config/i386/t-mingw-w32: New.
14600         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
14601
14602 2010-05-13  Martin Jambor  <mjambor@suse.cz>
14603
14604         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
14605         gimple-fold.c).
14606         * gimple-fold.c (get_base_binfo_for_type): New function.
14607         (gimple_get_relevant_ref_binfo): Likewise.
14608         (gimple_fold_obj_type_ref_known_binfo): Likewise.
14609         (gimple_fold_obj_type_ref): Likewise.
14610         (fold_gimple_call): Simplify condition for folding virtual calls
14611         and call gimple_fold_obj_type_ref.
14612         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
14613         (gimple_fold_obj_type_ref_known_binfo): Likewise.
14614
14615 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
14616
14617         * config/rs6000/rs6000-protos.h
14618         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
14619         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
14620         (rs6000_debug_mode_dependent_address)
14621         (rs6000_mode_dependent_address_ptr): Likewise.
14622
14623 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
14624
14625         PR debug/43983
14626         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
14627         by SRA.
14628         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
14629         * tree-sra.c (create_access_replacement): Call unshare_expr before
14630         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
14631         * dwarf2out.c: Include tree-flow.h.
14632         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
14633         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
14634         Handle DW_OP_bit_piece.
14635         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
14636         construct_piece_list, adjust_piece_list): New functions.
14637         (add_var_loc_to_decl): Handle SRA optimized variables.
14638         Adjust for var_loc_note to loc field renaming.
14639         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
14640         in VAR_LOCATION note.
14641         (new_loc_descr_op_bit_piece): New function.
14642         (dw_sra_loc_expr): New function.
14643         (dw_loc_list): Use it.  Don't handle the last range after the
14644         loop, handle it inside of the loop.  Adjust for var_loc_note
14645         to loc field renaming.
14646         (add_location_or_const_value_attribute): Only special case
14647         single entry loc lists if loc is NOTE_P.  Adjust for
14648         var_loc_note to loc field renaming.
14649         (dwarf2out_var_location): Don't set newloc->var_loc_note
14650         and newloc->next here.
14651
14652 2010-05-12  Jan Hubicka  <jh@suse.cz>
14653
14654         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
14655         flag.
14656         * cgraph.h (cgraph_only_called_directly_p,
14657         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
14658         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
14659         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
14660         (assemble
14661         * ipa.c (cgraph_remove_unreachable_nodes): Use
14662         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
14663         flags.
14664         * tree-inline.c (copy_bb): Check address_taken flag.
14665         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
14666         externally_visible flag.
14667
14668 2010-05-12  Jason Merrill  <jason@redhat.com>
14669
14670         PR bootstrap/44048
14671         PR target/44099
14672         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
14673         * sdbout.c (plain_type_1): Likewise.
14674         * dwarf2out.c (is_base_type): Likewise.
14675         (gen_type_die_with_usage): Likewise.  Generate
14676         DW_TAG_unspecified_type for any LANG_TYPE.
14677
14678 2010-05-12  Jan Hubicka  <jh@suse.cz>
14679
14680         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
14681         indrect edges too.
14682         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
14683         (cgraph_clone_edge): Update.
14684         (cgraph_node_remove_callees): Remove indirect calls too.
14685         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
14686         (cgraph_create_indirect_edge): Update prototype.
14687         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
14688         is_proper_for_analysis.
14689         (add_new_function, visited_nodes, function_insertion_hook_holder,
14690         get_local_reference_vars_info, mark_address_taken, mark_address,
14691         mark_load, mark_store, check_asm_memory_clobber, check_call,
14692         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
14693         (ipa_init): Do not initialize visited_nodes;
14694         function_insertion_hook_holder.
14695         (analyze_variable): Rewrite.
14696         (analyze_function): Rewrite.
14697         (copy_local_bitmap): Remove.
14698         (duplicate_node_dat): Do not duplicate local info.
14699         (generate_summary): Simplify to only walk cgraph.
14700         (write_node_summary_p, ipa_reference_write_summary,
14701         ipa_reference_read_summary): Remove.
14702         (propagate): Do not remove function insertion;
14703         generate summary.
14704         (pass_ipa_reference): NULLify summary handling fields.
14705         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
14706         (input_edge): Input ecf_flags.
14707         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
14708         (update_indirect_edges_after_inlining): Ignore edges with unknown
14709         param.
14710
14711 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
14712
14713         * implicit-zee.c: New file.
14714         * tree-pass.h (pass_implicit_zee): Declare.
14715         * passes.c (init_optimization_passes): Add zee pass.
14716         * common.opt (fzee): New flag.
14717         * timevar.def (TV_ZEE): Define.
14718         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
14719         and beyond.
14720         * Makefile.in (implicit-zee.o): Add new build file.
14721
14722 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
14723             Nathan Froyd  <froydnj@codesourcery.com>
14724
14725         * c-common.c (sync_resolve_params): Remove write-only variable.
14726
14727 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
14728
14729         * target.h (struct gcc_target): Add mode_dependent_address_p field.
14730         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
14731         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
14732         * targhooks.c (default_mode_dependent_address_p): New function.
14733         * targhooks.h (default_mode_dependent_address_p): Declare function.
14734         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
14735         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
14736         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
14737         target hook. Change return type to bool.
14738         * recog.h (mode_dependent_address_p): Change return type to bool.
14739
14740 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
14741             Nathan Froyd  <froydnj@codesourcery.com>
14742
14743         * tree-mudflap.c (build_function_type_0, build_function_type_1,
14744         build_function_type_2, build_function_type_3): Remove.
14745         (mudflap_init): Use build_function_type_list.
14746
14747 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
14748             Nathan Froyd  <froydnj@codesourcery.com>
14749
14750         * coverage.c (build_fn_info_value): Call build_constructor instead of
14751         build_constructor_from_list.
14752         (build_ctr_info_value): Likewise.
14753         (build_gcov_info): Likewise.
14754
14755 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
14756
14757         * tree.c (build_constructor): Compute TREE_CONSTANT for the
14758         resultant constructor.
14759         (build_constructor_single): Don't set TREE_CONSTANT.
14760         (build_constructor_from_list): Don't compute TREE_CONSTANT.
14761
14762 2010-05-12  Jan Hubicka  <jh@suse.cz>
14763
14764         * cgraph.h (struct varpool_node): Add aux.
14765         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
14766         * varpool.c (varpool_remove_node): Do not remove initializer.
14767         (varpool_reset_queue): Export.
14768         (varpool_finalize_decl): Volatile vars are forced to be output.
14769         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
14770         replaced decl.
14771         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
14772         process_references, varpool_can_remove_if_no_refs): New functions.
14773         (cgraph_remove_unreachable_nodes): Handle variables too.
14774
14775 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
14776
14777         PR target/44088
14778         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
14779
14780 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
14781
14782         PR middle-end/44085
14783         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
14784         change value of ORT_TASK.
14785         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
14786         (omp_notice_threadprivate_variable): New function.
14787         (omp_notice_variable): Call it for threadprivate variables.
14788         If enclosing ctx is a task, print enclosing task rather than
14789         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
14790         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
14791         if task has untied clause.
14792
14793         PR debug/42278
14794         * dwarf2out.c (base_type_die): Don't add name attribute here.
14795         (modified_type_die): Instead of sizetype use
14796         its underlying original type.  If a DW_TAG_base_type doesn't
14797         have name added, add __unknown__.
14798         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
14799         always call force_type_die instead.
14800
14801 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
14802
14803         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
14804         for __stack_chk_guard.
14805
14806 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
14807
14808         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
14809         don't call start_source_file debug hook here...
14810         (finish_options): ... but here, after outputting predefined and
14811         command line defines and undefs.
14812
14813         PR middle-end/44071
14814         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
14815         no fallthru edge.
14816         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
14817         optimizing away empty bb with no successors, move over its
14818         footer chain to fallthru predecessor.
14819         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
14820         (rtl_split_edge): For asm goto call patch_jump_insn even if
14821         splitting fallthru edge.
14822
14823         PR c++/44059
14824         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
14825         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
14826         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
14827         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
14828         on DW.ref.* decls.
14829
14830         PR c++/44062
14831         * c-parser.c (c_parser_expression): Mark LHS of a comma
14832         expression as read if it is a decl, handled component or
14833         COMPOUND_EXPR with that on the RHS.
14834         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
14835         if it is a decl or handled component.
14836
14837 2010-05-11  Jan Hubicka  <jh@suse.cz>
14838
14839         * lto-symtab.c (lto_symtab_free): New function.
14840         * lto-streamer.h (lto_symtab_free): Declare.
14841
14842 2010-05-11  Jan Hubicka  <jh@suse.cz>
14843
14844         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
14845         that if function is needed it is reachable.
14846         (lto_output_node): See if it the function is reachable or referenced.
14847         (output_cgraph): Update call of lto_output_node.
14848         * lto-streamer.h (reachable_from_other_partition_p): Declare.
14849
14850 2010-05-11  Jan Hubicka  <jh@suse.cz>
14851
14852         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
14853         Mark as used.
14854
14855 2010-05-11  Jan Hubicka  <jh@suse.cz>
14856
14857         PR tree-optimize/44063
14858         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
14859         queue.
14860         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
14861         limits.
14862         (estimate_function_body_sizes): Compute sizes even when disregarding.
14863
14864 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
14865
14866         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
14867
14868 2010-05-11  Jan Hubicka  <jh@suse.cz>
14869
14870         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
14871         into every boundary.
14872
14873 2010-05-11  Jan Hubicka  <jh@suse.cz>
14874
14875         * matrix-reorg.c (matrix_reorg): Rebuild edges.
14876
14877 2010-05-11  Jan Hubicka  <jh@suse.cz>
14878
14879         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
14880         lto_streamer_cache_delete): Put nodes into heap.
14881         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
14882         heap.
14883
14884 2010-05-11  Jan Hubicka  <jh@suse.cz>
14885
14886         * cgraphbuild.c (cgraph_rebuild_references): New.
14887         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
14888         out extern inlines.
14889         * cgraph.h (cgraph_rebuild_references): Declare.
14890         * tree-inline.c (tree_function_versioning): Use it.
14891         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
14892
14893 2010-05-11  Jan Hubicka  <jh@suse.cz>
14894
14895         * cgraph.c: Include ipa-utils.h
14896         (cgraph_create_virtual_clone): Update references.
14897         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
14898
14899 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
14900
14901         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
14902         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
14903         cache size.
14904
14905 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
14906
14907         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
14908
14909 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
14910
14911         * gcc.c (execute): For -### don't quote arguments that
14912         contain just alphanumerics and _/-. characters.
14913         * doc/invoke.texi: Document that change for -###.
14914
14915         PR debug/44023
14916         * df-problems.c (struct dead_debug): Add to_rescan field.
14917         (dead_debug_init): Clear to_rescan field.
14918         (dead_debug_finish): Rescan all debug insns in to_rescan
14919         bitmap and free the bitmap.
14920         (dead_debug_insert_before): Instead of rescanning debug insns
14921         immediately queue their rescanning until dead_debug_finish.
14922         (df_note_bb_compute): After dead_debug_add do continue instead
14923         of break.
14924
14925 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
14926
14927         PR debug/44028
14928         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
14929         clear also INSN_REG_USE_LIST.
14930
14931 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14932
14933         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
14934
14935 2010-05-10  Jan Hubicka  <jh@suse.cz>
14936
14937         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
14938         commited change.
14939
14940 2010-05-10  Jan Hubicka  <jh@suse.cz>
14941
14942         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
14943         Allocate encoders.
14944         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
14945         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
14946         (lto_streamer_cache_create): Init alloc pool.
14947         (lto_streamer_cache_delete): Free alloc pool.
14948         * lto-streamer.h: Include alloc pool.
14949         (lto_streamer_cache_d): Use alloc pool.
14950         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
14951
14952 2010-05-10  Jan Hubicka  <jh@suse.cz>
14953
14954         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
14955         * cgraphbuild.c: Include except.h
14956         (record_type_list, record_eh_tables): New function.
14957         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
14958
14959 2010-05-10  Jan Hubicka  <jh@suse.cz>
14960
14961         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
14962         __frame_dummy_init_array_entry, force_to_data): Attribute as used
14963         rather than unused.
14964
14965 2010-05-10  Michael Matz  <matz@suse.de>
14966
14967         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
14968         (can_reassociate_p): Use FLOAT_TYPE_P.
14969         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
14970         (vect_force_simple_reduction): ... this.
14971         * tree-parloops.c (gather_scalar_reductions): Use
14972         vect_force_simple_reduction.
14973         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
14974         vect_is_simple_reduction, add modify argument, if true rewrite
14975         "a-b" into "a+(-b)".
14976         (vect_is_simple_reduction, vect_force_simple_reduction): New
14977         functions.
14978         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
14979
14980 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
14981             Vladimir Makarov  <vmakarov@redhat.com>
14982
14983         PR rtl-optimization/44012
14984         * ira-build.c (remove_unnecessary_allocnos): Nullify
14985         regno_allocno_map of the removed allocno.
14986
14987 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14988
14989         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
14990         to /dev/null.
14991         * configure: Regenerate.
14992
14993 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14994
14995         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
14996         unused.
14997         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
14998         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
14999         support in Sun ld.
15000         * configure: Regenerate.
15001
15002 2010-05-10  Richard Guenther  <rguenther@suse.de>
15003
15004         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
15005         marked if the entry identifier is marked.
15006
15007 2010-05-10  Richard Guenther  <rguenther@suse.de>
15008
15009         * c-common.c (struct c_common_attributes): Add fnspec attribute.
15010         (handle_fnspec_attribute): New function.
15011         * gimple.h (gimple_call_return_flags): Declare.
15012         (gimple_call_arg_flags): Likewise.
15013         * gimple.c (gimple_call_arg_flags): New function.
15014         (gimple_call_return_flags): Likewise.
15015         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
15016         New argument flags.
15017         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
15018         return value flags.
15019         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
15020         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
15021         main work to ...
15022         (make_heapvar_for): ... this new function.
15023         (handle_rhs_call): Handle fnspec attribute argument specifiers.
15024         (handle_lhs_call): Likewise.
15025         (find_func_aliases): Adjust.
15026
15027 2010-05-10  Richard Guenther  <rguenther@suse.de>
15028
15029         PR tree-optimization/44050
15030         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
15031
15032 2010-05-10  Wei Guozhi  <carrot@google.com>
15033
15034         PR target/42879
15035         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
15036
15037 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
15038
15039         PR c/10676
15040         * c-typeck.c (lookup_field): Take a type directly.  Update
15041         recursive calls.
15042         (build_component_ref): Update call to lookup_field.
15043         (set_init_label): Use lookup_field to find initialized field.
15044         Handle returned list of fields like a sequence of designators.
15045
15046 2010-05-09  Richard Guenther  <rguenther@suse.de>
15047
15048         PR middle-end/44024
15049         * fold-const.c (tree_single_nonzero_warnv_p): Properly
15050         handle &FUNCTION_DECL.
15051
15052 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
15053
15054         PR c/4784
15055         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
15056         structures and unions recursively.
15057         (detect_field_duplicates): Move duplicate detection with a hash to
15058         detect_field_duplicates_hash.  Always use a hash if anonymous
15059         structures or unions are present.
15060         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
15061         give errors.
15062
15063 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
15064
15065         PR target/44046
15066         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
15067         detect Atom, Core 2 and Core i7.
15068
15069 2010-05-09  Richard Guenther  <rguenther@suse.de>
15070
15071         * gcc.c (store_arg): Handle temporary file deletion for
15072         joined arguments.
15073
15074 2010-05-09  Richard Guenther  <rguenther@suse.de>
15075
15076         PR middle-end/44043
15077         * ipa-inline.c (estimate_function_body_sizes): Return after
15078         disregarding inline limits.
15079
15080 2010-05-09  Richard Guenther  <rguenther@suse.de>
15081
15082         * gcc.c (store_arg): Revert last change.
15083
15084 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
15085
15086         PR middle-end/28685
15087         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
15088         (optimize_ops_list): Call it.
15089
15090 2010-05-08  Richard Guenther  <rguenther@suse.de>
15091
15092         PR tree-optimization/44030
15093         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
15094         NECESSARY flag if we propagate from a inserted expression.
15095
15096 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
15097
15098         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
15099         domain types as equal if they are both PLACEHOLDER_EXPRs.
15100
15101 2010-05-08  Richard Guenther  <rguenther@suse.de>
15102
15103         * lto-wrapper.c (run_gcc): Remove linker output from
15104         command line for LTRANS invocation.
15105
15106 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
15107
15108         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
15109         lto-macho as lto_binary_reader.
15110         * target.h (struct gcc_target): New hooks lto_start and lto_end.
15111         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
15112         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
15113         in lto_start and lto_end calls.
15114         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
15115         magic numbers.
15116         (scan_prog_file): Update is_elf_or_coff call.
15117         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
15118
15119         * collect2.c (main): Fix enum comparison.
15120
15121         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
15122         Add prototypes.
15123         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
15124         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
15125         and TARGET_ASM_LTO_END.
15126         * darwin.c: Include obstack.h and lto-streamer.h.
15127         (lto_section_names_offset, lto_section_names_obstack,
15128         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
15129         global variables.
15130         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
15131         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
15132         to a temporary file.
15133         (darwin_asm_lto_end): New function.  Restore asm_out_file.
15134         (darwin_asm_named_section): For LTO sections, replace the name with
15135         the offset of the section name in a string table, and build this
15136         table.
15137         (darwin_file_start): Initialize global vars for LTO support.
15138         (darwin_file_end): If output to asm_out_file was redirected, append it
15139         to the proper asm_out_file here.  Add the section names section.
15140
15141 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
15142
15143         * c-pragma.c (pending_weak_d, pending_weak): New.
15144         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
15145         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
15146         handle_pragma_weak): Update the uses of pending_weaks.
15147
15148 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15149
15150         PR documentation/44016
15151         * doc/standards.texi (Standards): Link to unversioned
15152         cxx0x_status.html page.
15153
15154 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
15155
15156         PR target/43708
15157         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
15158         in addition to TREE_USED, to avoid "set but unused" warnings.
15159
15160 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
15161
15162         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
15163         (is_loop_prefetching_profitable): Do not insert prefetches
15164         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
15165         times the prefetch ahead distance.
15166
15167 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
15168
15169         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
15170         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
15171         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
15172         the unroll_factor.
15173
15174 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
15175
15176         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
15177         a diagnostic info when the insn-to-mem ratio is too small.
15178
15179 2010-05-07  Richard Guenther  <rguenther@suse.de>
15180
15181         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
15182         the linker plugin.
15183         (store_arg): Queue temp_filename for deletion instead of
15184         the whole argument.
15185
15186 2010-05-07  Richard Guenther  <rguenther@suse.de>
15187
15188         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
15189         (run_gcc): Handle LTRANS phase invocation.
15190         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
15191
15192 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
15193
15194         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
15195         this is also meaningful on PARM_DECLs and RESULT_DECLs.
15196
15197 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15198
15199         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
15200
15201 2010-05-07  Richard Guenther  <rguenther@suse.de>
15202
15203         PR tree-optimization/44020
15204         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
15205         code when PRE is not yet initialized.
15206
15207 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15208
15209         * config/mips/dbxmdebug.h: Remove.
15210         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
15211
15212 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
15213
15214         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
15215         with null pointer and also warn about ordered comparison of zero with
15216         pointer if -Wextra.
15217
15218 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15219
15220         * graphite-blocking.c
15221         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
15222         * graphite-clast-to-gimple.c
15223         (clast_to_gcc_expression): Same.
15224         (precision_for_value): Same.
15225         (precision_for_interval): Same.
15226         (gcc_type_for_interval): Same.
15227         (graphite_create_new_guard): Same.
15228         (compute_bounds_for_level): Same.
15229         (graphite_create_new_loop_guard): Same.
15230         * graphite-interchange.c
15231         (build_linearized_memory_access): Same.
15232         (pdr_stride_in_loop): Same.
15233         (memory_strides_in_loop_1): Same.
15234         (memory_strides_in_loop): Same.
15235         (extend_scattering): Same.
15236         (psct_scattering_dim_for_loop_depth): Same.
15237         (pbb_number_of_iterations): Same.
15238         * graphite-poly.h
15239         (debug_iteration_domains): Same.
15240         * graphite-ppl.c
15241         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
15242         (ppl_set_inhomogeneous_gmp): Same.
15243         (ppl_strip_loop): Same.
15244         (ppl_lexico_compare_linear_expressions): Same.
15245         (ppl_read_polyhedron_matrix): Same.
15246         (ppl_max_for_le_pointset): Same.
15247         * graphite-ppl.h
15248         (ppl_read_polyhedron_matrix): Same.
15249         (tree_int_to_gmp): Same.
15250         (gmp_cst_to_tree): Same.
15251         (ppl_set_inhomogeneous): Same.
15252         (ppl_set_inhomogeneous_tree): Same.
15253         (ppl_set_coef): Same.
15254         (ppl_set_coef_tree): Same.
15255         * graphite-sese-to-poly.c
15256         (build_pbb_scattering_polyhedrons): Same.
15257         (build_scop_scattering): Same.
15258         (scan_tree_for_params_right_scev): Same.
15259         (scan_tree_for_params): Same.
15260         (find_params_in_bb): Same.
15261         (find_scop_parameters): Same.
15262         (add_upper_bounds_from_estimated_nit): Same.
15263         (build_loop_iteration_domains): Same.
15264         (add_condition_to_domain): Same.
15265         (pdr_add_memory_accesses): Same.
15266
15267 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15268
15269         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
15270         CLooG's value_* macros to their respective mpz_* counterparts.
15271         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
15272         (graphite_create_new_loop_guard): Same.
15273         * graphite-interchange.c (build_linearized_memory_access): Same.
15274         (pdr_stride_in_loop): Same.
15275         (memory_strides_in_loop_1): Same.
15276         (1st_interchange_profitable_p): Same.
15277         * graphite-poly.c (extend_scattering): Same.
15278         (psct_scattering_dim_for_loop_depth): Same.
15279         (pbb_number_of_iterations): Same.
15280         (pbb_number_of_iterations_at_time): Same.
15281         * graphite-poly.h (new_1st_loop): Same.
15282         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
15283         (oppose_constraint): Same.
15284         (insert_constraint_into_matrix): Same.
15285         (ppl_set_inhomogeneous_gmp): Same.
15286         (ppl_set_coef_gmp): Same.
15287         (ppl_strip_loop): Same.
15288         (ppl_lexico_compare_linear_expressions): Same.
15289         (ppl_max_for_le_pointset): Same.
15290         (ppl_min_for_le_pointset): Same.
15291         (ppl_build_realtion): Same.
15292         * graphite-ppl.h (gmp_cst_to_tree): Same.
15293         (ppl_set_inhomogeneous): Same.
15294         (ppl_set_inhomogeneous_tree): Same.
15295         (ppl_set_coef): Same.
15296         (ppl_set_coef_tree): Same.
15297         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
15298         (build_scop_scattering): Same.
15299         (add_value_to_dim): Same.
15300         (scan_tree_for_params_right_scev): Same.
15301         (scan_tree_for_params_int): Same.
15302         (scan_tree_for_params): Same.
15303         (find_params_in_bb): Same.
15304         (find_scop_parameters): Same.
15305         (add_upper_bounds_from_estimated_nit): Same.
15306         (build_loop_iteration_domains): Same.
15307         (create_linear_expr_from_tree): Same.
15308         (add_condition_to_domain): Same.
15309         (pdr_add_memory_accesses): Same.
15310
15311 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
15312             Jason Merrill  <jason@redhat.com>
15313
15314         * c-common.c (c_common_reswords): Add nullptr.
15315         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
15316         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
15317         (gen_type_die_with_usage): Likewise.
15318         * dbxout.c (dbxout_type): Likewise.
15319         * sdbout.c (plain_type_1): Likewise.
15320
15321 2010-05-06  Jason Merrill  <jason@redhat.com>
15322
15323         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
15324         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
15325         ret appropriately.
15326         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
15327
15328         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
15329         stripping WITH_SIZE_EXPR.
15330         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
15331         change.
15332
15333 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15334
15335         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
15336         list of obsolete configurations.
15337         Disabled check for obsolete configurations.
15338         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
15339         Removed support for previous versions.
15340         * config/mips/iris.h: Removed.
15341         * config/mips/iris5.h: Removed.
15342         * config/mips/iris6.h: Merged old iris.h contents.
15343         (TARGET_IRIX): Removed.
15344         (DRIVER_SELF_SPECS): Removed mabi=32.
15345         (IDENT_ASM_OP): Removed undef.
15346         (STARTFILE_SPEC): Removed mabi=32.
15347         (ENDFILE_SPEC): Likewise.
15348         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
15349         (MACHINE_TYPE): Update for IRIX 6.5.
15350         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
15351         TARGET_IRIX by TARGET_IRIX6.
15352         (mips_file_start): Likewise.
15353         (mips_output_external): Remove IRIX 5/6 O32 support.
15354         (mips_output_function_prologue): Likewise.
15355         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
15356         TARGET_IRIX6.
15357         (TARGET_CPU_CPP_BUILTINS): Likewise.
15358         (TARGET_IRIX): Removed.
15359         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
15360         (MULTILIB_DIRNAMES): Removed 32.
15361         (MULTILIB_OSDIRNAMES): Removed ../lib.
15362         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
15363         (Specific, mips-sgi-irix5): Document removal.
15364         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
15365         Remove references to older IRIX 6 releases and the O32 ABI.
15366
15367 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
15368
15369         PR bootstrap/43994
15370         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
15371         instead of DF_REF_REAL_REG.
15372
15373 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
15374
15375         PR target/43888
15376         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
15377         handling to still return true for x64 targets.
15378
15379 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
15380
15381         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
15382
15383 2010-05-06  Jan Hubicka  <jh@suse.cz>
15384
15385         PR tree-optimization/43791
15386         * ipa-inline.c (update_caller_keys): Remove bogus
15387         disregard_inline_limits check.
15388
15389 2010-05-06  Michael Matz  <matz@suse.de>
15390
15391         PR tree-optimization/43984
15392         * tree-ssa-pre.c (inserted_phi_names): Remove.
15393         (inserted_exprs): Change to bitmap.
15394         (create_expression_by_pieces): Set bits, don't append to vector.
15395         (insert_into_preds_of_block): Don't handle inserted_phi_names.
15396         (eliminate): Don't look at inserted_phi_names, remove deleted
15397         insns from inserted_exprs.
15398         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
15399         (init_pre, fini_pre): Allocate and free bitmaps.
15400         (execute_pre): Insert insns on edges before elimination.
15401
15402 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
15403
15404         * tree.c (initializer_zerop): Handle STRING_CST.
15405
15406 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15407
15408         PR 40989
15409         * doc/invoke.texi (Wimplicit): Document as C only.
15410         * opts.c (common_handle_option): Add argument kind.
15411         (handle_option): Rename as read_cmdline_option. Factor out code to...
15412         (handle_option): ... here. New.
15413         (handle_options): Rename as read_cmdline_options.
15414         (decode_options): Update call.
15415         (set_option): Use option index instead of option pointer. Classify
15416         diagnostics correctly.
15417         (enable_warning_as_error): Call handle_option.
15418         * opts.h (set_option): Update declaration.
15419         (handle_option): Declare.
15420         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
15421         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
15422         * c-opts.c (set_Wimplicit): Delete.
15423         (c_family_lang_mask): New static constant.
15424         (c_common_handle_option): Add argument kind. Use handle_option
15425         instead of set_Wimplicit.
15426         (c_common_post_options): warn_implicit and warn_implicit_int
15427         are disabled by default.
15428         * c-common.c (warn_implicit): Do not define here.
15429         * c-common.h (warn_implicit): Do not declare here.
15430         (c_common_handle_option): Update declaration.
15431         * lto-opts.c (lto_reissue_options): Update call to set_option.
15432
15433 2010-05-06  Richard Guenther  <rguenther@suse.de>
15434
15435         PR tree-optimization/43571
15436         * domwalk.c (walk_dominator_tree): Walk the dominator
15437         sons in more optimal order.
15438
15439 2010-05-06  Richard Guenther  <rguenther@suse.de>
15440
15441         PR tree-optimization/43934
15442         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
15443         (stmt_cost): Likewise.
15444         (extract_true_false_args_from_phi): New helper.
15445         (determine_max_movement): For PHI nodes verify we can hoist them
15446         and compute their cost.
15447         (determine_invariantness_stmt): Handle PHI nodes.
15448         (move_computations_stmt): Likewise.  Hoist PHI nodes in
15449         if-converted form using COND_EXPRs.
15450         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
15451         (tree_ssa_lim): Likewise.
15452         * tree-flow.h (tree_ssa_lim): Adjust prototype.
15453         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
15454
15455 2010-05-06  Richard Guenther  <rguenther@suse.de>
15456
15457         PR tree-optimization/43987
15458         * tree-ssa-structalias.c (could_have_pointers): For possibly
15459         address-taken variables force pointers to be recorded.
15460         (create_variable_info_for_1): Likewise.
15461         (push_fields_onto_fieldstack): Pass in wheter all fields
15462         must have pointers.
15463         (find_func_aliases): Query types instead of vars whether
15464         they contain pointers where appropriate.
15465
15466 2010-05-06  Jan Hubicka  <jh@suse.cz>
15467
15468         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
15469         (record_reference, mark_address, mark_load, mark_store): Record
15470         references.
15471         (record_references_in_initializer): Update call of record_references.
15472         (rebuild_cgraph_edges): Remove all references before rebuiding.
15473         * cgraph.c (cgraph_create_node): Clear ref list.
15474         (cgraph_remove_node): Remove references.
15475         (dump_cgraph_node): Dump references.
15476         (cgraph_clone_node): Clone references.
15477         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
15478         (struct cgraph_node, varpool_node): Add ref_lst.
15479         * ipa-ref.c: New file.
15480         * ipa-ref.h: New file.
15481         * ipa-ref-inline.h: New file.
15482         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
15483         (referenced_from_other_partition_p): New function.
15484         (lto_output_varpool_node): Take set arugment; call
15485         referenced_from_other_partition.
15486         (lto_output_ref): New.
15487         (add_references): New.
15488         (output_refs): New.
15489         (output_cgraph): Compute boundary based on references; output refs.
15490         (output_varpool): Accept cgraph_node_set argument.
15491         (input_ref): New.
15492         (input_refs): New.
15493         (input_cgraph): Call input_refs.
15494         * lto-section-in.c (lto_section_name): Add refs.
15495         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
15496         (ipa-ref.o): New file.
15497         * varpool.c (varpool_node): Clear ipa ref list.
15498         (varpool_remove_node): Remove references.
15499         (dump_varpool_node): Dump references.
15500         (varpool_assemble_decl): Only compile finalized ones.
15501         (varpool_extra_name_alias): Initialize ref list.
15502         * lto-streamer.c (lto-get_section_name): Add .refs section.
15503         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
15504         (referenced_from_other_partition_p): Declared.
15505
15506 2010-05-06  Ira Rosen  <irar@il.ibm.com>
15507
15508         PR tree-optimization/43901
15509         * tree-vect-stmts.c (vectorizable_call): Assert that vector
15510         type is not NULL if it's transformation phase, and return
15511         FALSE if it's analysis.
15512         (vectorizable_conversion, vectorizable_operation,
15513         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
15514
15515 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
15516
15517         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
15518         Delete.
15519         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
15520         New define.
15521         * config/mips/mips-protos.h
15522         (mips_small_register_classes_for_mode_p): Delete prototype.
15523
15524 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
15525
15526         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
15527         * config/arm/arm.c (multiple_operation_profitable_p,
15528         compute_offset_order): New static functions.
15529         (load_multiple_sequence, store_multiple_sequence): Use them.
15530         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
15531         memory offsets, not register numbers.
15532         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
15533
15534 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
15535
15536         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
15537         (get_pending_sizes, put_pending_size, put_pending_sizes):
15538         Update the uses of pending_sizes.
15539         * c-decl.c (store_parm_decls): Likewise.
15540         * c-tree.h (struct c_arg_info): Likewise.
15541         * tree.h: Update the prototype for get_pending_sizes and
15542         put_pending_sizes.
15543
15544 2010-05-05  Jason Merrill  <jason@redhat.com>
15545
15546         PR debug/43370
15547         * c-common.c (handle_aligned_attribute): Respect
15548         ATTR_FLAG_TYPE_IN_PLACE.
15549
15550         PR testsuite/43758
15551         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
15552         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
15553         (TARGET_INITIALIZER): Use it.
15554         * c-common.c (attribute_takes_identifier_p): Call it.
15555         * c-common.h: Update prototype.
15556         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
15557         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
15558
15559 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
15560
15561         PR debug/43950
15562         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
15563         DW_ID_down_case for Fortran compilation units.
15564
15565 2010-05-05  Jan Hubicka  <jh@suse.cz>
15566
15567         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
15568         handle aliases.
15569
15570 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
15571
15572         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
15573         a variable-sized RESULT_DECL.
15574
15575 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
15576
15577         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
15578
15579 2010-05-05  Jason Merrill  <jason@redhat.com>
15580
15581         PR c++/43787
15582         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
15583         returns GS_OK.
15584         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
15585
15586 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
15587             Jakub Jelinek  <jakub@redhat.com>
15588
15589         PR debug/43478
15590         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
15591         (dead_debug_init, dead_debug_finish): New functions.
15592         (dead_debug_add, dead_debug_insert_before): Likewise.
15593         (df_note_bb_compute): Initialize a dead_debug object, add dead
15594         debug uses to it, insert debug bind insns before death insns,
15595         reset debug insns that refer to pending uses at the end.
15596         * rtl.h (make_debug_expr_from_rtl): New prototype.
15597         * varasm.c (make_debug_expr_from_rtl): New function.
15598
15599 2010-05-05  Jan Hubicka  <jh@suse.cz>
15600
15601         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
15602         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
15603         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
15604         lto_varpool_encoder_deref, lto_varpool_encoder_size,
15605         lto_varpool_encoder_encode_initializer_p,
15606         lto_set_varpool_encoder_encode_initializer): New functions.
15607         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
15608         call output_varpool.
15609         (input_varpool_node): Do not always set analyzed.
15610         (input_cgraph_1): Return vector of cgraph nodes.
15611         (input_varpool_1): Return vector of varpools.
15612         (input_cgraph): Free the vectors.
15613         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15614         output only initializers needed.
15615         (lto_output): Only call output_cgraph.
15616         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
15617         * lto-section-out.c (lto_new_out_decl_state): Initialize
15618         state->varpool_node_encoder.
15619         * lto-streamer.h (lto_varpool_encoder_d): New.
15620         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
15621         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
15622         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
15623         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
15624         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
15625         Declare.
15626         (output_varpool, input_varpool): Remove declarations.
15627
15628 2010-05-05  Jan Hubicka  <jh@suse.cz>
15629
15630         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
15631         with body can prevail.
15632
15633 2010-05-05  Jan Hubicka  <jh@suse.cz>
15634
15635         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
15636         size.
15637
15638 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15639
15640         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
15641
15642         * gengtype.h (erro_at_line): Constify pos argument.
15643
15644         * gengtype.c: Include hashtab.h.
15645         (enum gc_used): Document GC_MAYBE_POINTED_TO.
15646         (error_at_line): Constify pos argument.
15647         (do_typedef): Initialize p->opt field.
15648         (get_file_gtfilename): Fix comment typo.
15649         (struct walk_type_data): Constify line field.
15650         (get_output_file_for_structure): New function.
15651         (write_local_func_for_structure): Constify orig_s argument.
15652         Use get_output_file_for_structure.
15653         (write_func_for_structure): Use get_output_file_for_structure.
15654         (INDENT): New define.
15655         (dump_pair, dump_type, dump_type_list, dump_typekind)
15656         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
15657         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
15658         functions.
15659         (seen_types): New variable.
15660         (main): New variable do_dump.  Process "-d" command line option.
15661         Call dump_everything if dump requested.
15662
15663 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
15664
15665         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
15666         in a temporary instead of invoking the macro multiple times.
15667         (track_expr_p): Likewise.
15668
15669 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
15670
15671         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
15672         per new semantics.
15673         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
15674         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
15675         conditions for printing notes.
15676         * common.opt (-Wcoverage-mismatch): Allow negative, default to
15677         true, update documentation.
15678         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
15679
15680 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
15681
15682         PR c/43981
15683         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
15684         on dimen.
15685
15686 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
15687
15688         PR target/43799
15689         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
15690         (*sse_prologue_save_insn1): Likewise.
15691         (SSE prologue save splitter): Likewise.
15692
15693 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
15694
15695         * tree.c (free_lang_data_in_one_sizepos): New inline function.
15696         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
15697         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
15698         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
15699         all decls.  Call it on DECL_FIELD_OFFSET of fields.
15700         (find_decls_types_r): Follow DECL_VALUE_EXPR.
15701         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
15702
15703 2010-05-04  Martin Jambor  <mjambor@suse.cz>
15704
15705         * tree-sra.c (build_access_from_expr_1): The first parameter type
15706         changed to simple tree.
15707         (build_access_from_expr): Likewise, gsi parameter was eliminated.
15708         (scan_assign_result): Renamed to assignment_mod_result, enum elements
15709         renamed as well.
15710         (build_accesses_from_assign): Removed all parameters except for a
15711         simple gimple statement.  Now returns a simple bool.
15712         (scan_function): All non-analysis parts moved to separate functions
15713         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
15714         parameters and updated both callers.
15715         (sra_modify_expr): Removed parameter data.
15716         (sra_modify_function_body): New function.
15717         (perform_intra_sra): Call sra_modify_function_body to modify the
15718         function body.
15719         (replace_removed_params_ssa_names): Parameter data changed into
15720         adjustments vector.
15721         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
15722         changed the parameter dont_convert to convert with the opposite
15723         meaning.
15724         (sra_ipa_modify_assign): Parameter data changed into adjustments
15725         vector, return value changed to bool.
15726         (ipa_sra_modify_function_body): New function.
15727         (sra_ipa_reset_debug_stmts): Updated a comment.
15728         (modify_function): Use ipa_sra_modify_function_body to modify function
15729         body.
15730
15731 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
15732
15733         PR middle-end/43671
15734         * alias.c (true_dependence): Handle the same VALUE in x and mem.
15735         (canon_true_dependence): Likewise.
15736         (write_dependence_p): Likewise.
15737
15738 2010-05-04  Jan Hubicka  <jh@suse.cz>
15739
15740         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
15741         * cgraphbuild.c: Include ipa-utils.h
15742         (record_reference_ctx): New struct.
15743         (record_reference): Simplify to work on initializers; not statements.
15744         (mark_address, mark_load, mark_store): New.
15745         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
15746         walk PHI nodes too.
15747         (record_references_in_initializer): Update use of record_reference.
15748         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
15749         walk PHI nodes too.
15750
15751 2010-05-04  Jan Hubicka  <jh@suse.cz>
15752
15753         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
15754         node will be removed anyway.
15755         (lto_varpool_replace_node): Allow also unanalyzed nodes;
15756         relink aliases of node into prevailing node.
15757         * varpool.c (varpool_remove_node): Remove aliases properly;
15758         when removing node, remove all its aliases too; remove DECL_INITIAL
15759         of removed node; ggc_free the varpool node.
15760
15761 2010-05-04  Richard Guenther  <rguenther@suse.de>
15762
15763         PR tree-optimization/43879
15764         * tree-ssa-structalias.c (alias_get_name): Use
15765         DECL_ASSEMBLER_NAME if available.
15766         (create_function_info_for): Return the varinfo node.
15767         (ipa_pta_execute): Associate same-body aliases and extra names
15768         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
15769
15770 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
15771
15772         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
15773
15774 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
15775
15776         PR bootstrap/43964
15777         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
15778         only if HONOR_REG_ALLOC_ORDER is not defined.
15779
15780 2010-05-04  Richard Guenther  <rguenther@suse.de>
15781
15782         PR tree-optimization/43949
15783         * tree-vrp.c (extract_range_from_binary_expr): Only handle
15784         TRUNC_MOD_EXPR.
15785
15786 2010-04-26  Jason Merrill  <jason@redhat.com>
15787
15788         * c.opt (-fstrict-enums): New.
15789         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
15790
15791 2010-05-03  David Ung  <davidu@mips.com>
15792             James E. Wilson  <wilson@codesourcery.com>
15793
15794         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
15795         emit the trap instruction before the divide for TUNE_74K.
15796
15797 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
15798
15799         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
15800         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
15801         based on the above, for new target hook.
15802
15803         * hooks.c (hook_bool_mode_true): New generic hook.
15804         * hooks.h (hook_bool_mode_true): Add prototype.
15805
15806         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
15807         target hook.
15808         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
15809         target hook, set to hook_bool_mode_false.
15810         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
15811         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
15812         with targetm.small_register_classes_for_mode_p.
15813         (find_reusable_reload): Likewise.
15814         (combine_reloads): Likewise.
15815         * reload1.c (reload_as_needed): Likewise.
15816         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
15817         * ifcvt.c (noce_process_if_block, check_cond_move_block,
15818         dead_or_predicable): Likewise.
15819         * regmove.c (optimize_reg_copy_1): Likewise.
15820         * calls.c (prepare_call_address): Likewise.
15821         (precompute_register_parameters): Likewise.
15822
15823         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
15824         hook definition.
15825         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
15826         implementation of the hook that considers all register classes
15827         small except for SH64.
15828         (sh_override_options): Use the new hook.
15829         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
15830         Add prototype.
15831
15832         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
15833         hook definition.
15834         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
15835         implementation of the hook that considers all register classes
15836         small for THUMB1.
15837         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
15838         Add prototype.
15839
15840         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
15841         hook definition.
15842         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
15843         implementation of the hook that considers all register classes
15844         small for MIPS16.
15845         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
15846         Add prototype.
15847
15848         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
15849         hook definition.
15850         * config/m32c/m32c.h: Likewise.
15851         * config/pdp11/pdp11.h: Likewise.
15852         * config/avr/avr.h: Likewise.
15853         * config/xtensa/xtensa.h: Likewise.
15854         * config/m68hc11/m68hc11.h: Likewise.
15855         * config/mn10300/mn10300.h: Likewise.
15856         * config/mcore/mcore.h: Likewise.
15857         * config/h8300/h8300.h: Likewise.
15858         * config/bfin/bfin.h: Likewise.
15859
15860         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
15861         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
15862
15863 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
15864
15865         * double-int.h (tree_to_double_int): Remove macro.
15866         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
15867         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
15868         (tree_to_double_int): New function.
15869         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
15870         Move ...
15871         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
15872
15873 2010-05-03  Richard Guenther  <rguenther@suse.de>
15874
15875         PR tree-optimization/43971
15876         * tree-ssa-structalias.c (get_constraint_for_1): Fix
15877         constraints in the !flag_delete_null_pointer_checks case.
15878
15879 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
15880
15881         PR debug/43972
15882         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
15883         result mode matches original rtl mode.
15884
15885 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
15886
15887         PR target/43888
15888         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
15889
15890 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
15891
15892         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
15893         when processing flag options.
15894
15895 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
15896
15897         * gcov-iov.c (main): Change format string placeholder
15898         from %#08x to 0x%08x.
15899         * genchecksum.c (dosum): Change format string placeholder
15900         from %#02x to 0x%02x.
15901
15902 2010-05-02  Richard Guenther  <rguenther@suse.de>
15903
15904         PR tree-optimization/43879
15905         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
15906
15907 2010-05-02  Bruno Haible  <bruno@clisp.org>
15908
15909         * doc/extend.texi (Function Attributes): Fix a typo.
15910
15911 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
15912
15913         Revert:
15914         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
15915         placeholder from 0x%x to %#x.
15916         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
15917         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
15918         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
15919         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
15920         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
15921         * config/i386/i386.c (ix86_target_string): Ditto.
15922         * config/i386/i386.c (output_pic_addr_const): Ditto.
15923         (print_operand): Ditto.
15924
15925 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
15926
15927         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
15928         placeholder from 0x%x to %#x.
15929         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
15930         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
15931         (ASM_OUTPUT_DEBUG_DATA): Ditto.
15932         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
15933         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
15934         * optc-gen.awk: Ditto.
15935         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
15936         (HOST_WIDE_INT_PRINT_HEX): Ditto.
15937         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
15938         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
15939
15940 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
15941
15942         * target.h (struct calls): Add function_value_regno_p field.
15943         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
15944         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
15945         * targhooks.c (default_function_value_regno_p): New function.
15946         * targhooks.h (default_function_value_regno_p): Declare function.
15947         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
15948         * builtins.c. (apply_result_size): (Ditto.).
15949         * combine.c. (likely_spilled_retval_p): (Ditto.).
15950         * mode-switching.c. Include 'target.h'.
15951         (create_pre_exit): Use function_value_regno_p hook.
15952         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
15953         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
15954         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
15955
15956         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
15957         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
15958         (ix86_function_value_regno_p): Declare as static, change argument
15959         type to const unsigned int.
15960         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
15961
15962 2010-05-01  Richard Guenther  <rguenther@suse.de>
15963
15964         PR tree-optimization/43949
15965         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
15966         types.
15967         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
15968
15969 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
15970
15971         * rtl.h (CONST_DOUBLE_P): Define.
15972         (rtx_to_double_int): Declare.
15973         * emit-rtl.c (rtx_to_double_int): New function.
15974         * dwarf2out.c (insert_double): New function.
15975         (loc_descriptor, add_const_value_attribute): Clean up, use
15976         rtx_to_double_int and insert_double functions.
15977
15978 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
15979
15980         * doc/extend.texi (Inline): Add missing return keyword to examples.
15981         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
15982         "command-line".
15983
15984 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
15985
15986         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
15987         the variable part of the offset as well.  Use highest_pow2_factor for
15988         all alignment checks.
15989
15990 2010-04-30  Richard Guenther  <rguenther@suse.de>
15991
15992         PR tree-optimization/43879
15993         * tree-ssa-structalias.c (type_could_have_pointers): Functions
15994         can have pointers.
15995
15996 2010-04-30  Jan Hubicka  <jh@suse.cz>
15997
15998         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
15999         varpool.
16000         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
16001
16002 2010-04-30  Jan Hubicka  <jh@suse.cz>
16003
16004         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
16005         New.
16006         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
16007         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
16008         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
16009         cgraph_node_set_needs_ltrans_p): Remove.
16010
16011 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
16012
16013         * sdbout.c: Include vec.h, do not include varray.h.
16014         (deferred_global_decls, sdbout_global_decl,
16015         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
16016         * toplev.c: Do not include varray.h.
16017         (dump_memory_report): Do not dump VARRAY statistics.
16018         * gengtype.c (open_base_file): Ignore varray.h.
16019         * Makefile.in: Update for abovementioned changes.
16020         Remove all traces of varray.c and varray.h.
16021         * varray.c: Remove file.
16022         * varray.h: Remove file.
16023
16024 2010-04-30  Jan Hubicka  <jh@suse.cz>
16025
16026         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
16027         references.
16028
16029 2010-04-30  Jan Hubicka  <jh@suse.cz>
16030
16031         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
16032         needed.
16033
16034 2010-04-30  Richard Guenther  <rguenther@suse.de>
16035
16036         * tree-ssa-structalias.c (get_constraint_for_1): Generate
16037         constraints for CONSTRUCTOR.
16038
16039 2010-04-30  Richard Guenther  <rguenther@suse.de>
16040
16041         PR lto/43946
16042         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
16043         first after all lowering passes.
16044
16045 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
16046
16047         * toplev.c: Include varray.h for statistics dumping.
16048         * tree.h: Do not declare varray_head_tag.
16049         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
16050         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
16051         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
16052         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
16053         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
16054         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
16055         c-common.c, c-common.h, reg-stack.c, basic-block.h,
16056         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
16057         include varray.h.
16058         * Makefile.in: Update for abovementioned changes.
16059
16060 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
16061
16062         PR debug/43942
16063         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
16064
16065 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
16066
16067         * config/picochip/picochip.c (picochip_legitimize_address): Define.
16068         Use this function to do machine-specific conversion.
16069         (picochip_legitimize_reload_address): Likewise.
16070         (picochip_legitimate_address_p): Check valid base register only if
16071         strict.
16072         (picochip_check_conditional_copy): Check for modw only if opnd is
16073         register.
16074         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
16075         to call the function in c.
16076         * config/picochip/picochip-protos.h
16077         (picochip_legitimize_reload_address): Define.
16078         * config/picochip/picochip.md (supported_compare1): Define.
16079
16080 2010-04-30  Jan Hubicka  <jh@suse.cz>
16081
16082         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
16083         (cgraph_global_info): Remove inlined.
16084         (LTO_cgraph_tag_names): Remove.
16085         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
16086         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
16087         simplify cgraph tags and document.
16088         (lto_output_node): Use only LTO_cgraph_unavail_node and
16089         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
16090         for_functions_valid, global info, process and output flags.
16091         (input_overwrite_node): Initialize estimated stack size and
16092         estimated growth.  Do not read flags we no longer store.
16093         (input_node): Likewise do not read info no longer stored.
16094         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
16095         flag.
16096
16097 2010-04-30  Richard Guenther  <rguenther@suse.de>
16098
16099         PR tree-optimization/43879
16100         * tree-ssa-structalias.c (get_constraint_for_1): Properly
16101         handle non-zero initializers.
16102
16103 2010-04-30  Richard Guenther  <rguenther@suse.de>
16104
16105         * builtins.c (fold_builtin_1): Delete free (0).
16106
16107 2010-04-29  Jan Hubicka  <jh@suse.cz>
16108
16109         * gengtype.c (open_base_files): Add lto-streamer.h
16110         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
16111         (pass_ipa_cp): GGC collect.
16112         * toplev. (compile_file): Do not output symbols.
16113         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
16114         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
16115         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
16116         * lto-section-in.c: Include ggc.h
16117         (lto_new_in_decl_state): Alloc in GGC.
16118         (lto_delete_in_decl_state): Likewise.
16119         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
16120         Collect.
16121
16122 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
16123
16124         PR target/42895
16125         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
16126         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
16127         (HONOR_REG_ALLOC_ORDER): Describe new macro.
16128         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
16129         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
16130         account only if HONOR_REG_ALLOC_ORDER is not defined.
16131         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
16132         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
16133
16134 2010-04-29  Jon Grant  <04@jguk.org>
16135
16136         * collect2.c (vflag): Change type from int to bool.
16137         (debug): Likewise.
16138         (helpflag): New global bool.
16139         (main): Set vflag and debug with boolean, not integer truth values.
16140         Accept new "--help" option and output usage text if found.
16141         * collect2.h (vflag): Update prototype.
16142         (debug): Likewise.
16143
16144 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
16145
16146         PR bootstrap/43936
16147         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
16148
16149 2010-04-29  Richard Guenther  <rguenther@suse.de>
16150
16151         PR bootstrap/43935
16152         * plugin.h (invoke_plugin_callbacks): Annotate arguments
16153         with ATTRIBUTE_UNUSED.
16154
16155 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
16156
16157         PR target/43921
16158         * config/i386/i386.c (get_some_local_dynamic_name): Replace
16159         INSN_P with NONDEBUG_INSN_P.
16160         (distance_non_agu_define): Likewise.
16161         (distance_agu_use): Likewise.
16162
16163 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
16164
16165         From Dominique d'Humieres  <dominiq@lps.ens.fr>
16166         PR bootstrap/43858
16167         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
16168         test_set.
16169
16170 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
16171
16172         * plugin.h (invoke_plugin_callbacks): New inline function.
16173         * plugin.c (flag_plugin_added): New global flag.
16174         (add_new_plugin): Initialize above flag.
16175         (invoke_plugin_callbacks): Rename to ...
16176         (invoke_plugin_callbacks_full): ... this.
16177
16178 2010-04-28  Jan Hubicka  <jh@suse.cz>
16179
16180         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
16181         (lto_varpool_replace_node): New.
16182         (lto_symtab_resolve_symbols): Resolve varpool nodes.
16183         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
16184         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
16185         * cgraph.h (varpool_node_ptr): New type.
16186         (varpool_node_ptr): New vector.
16187         (varpool_node_set_def): New structure.
16188         (varpool_node_set): New type.
16189         (varpool_node_set): New vector.
16190         (varpool_node_set_element_def): New structure.
16191         (varpool_node_set_element, const_varpool_node_set_element): New types.
16192         (varpool_node_set_iterator): New type.
16193         (varpool_node): Add prev pointers, add used_from_other_partition,
16194         in_other_partition.
16195         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
16196         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
16197         varpool_get_node, varpool_remove_node): Declare.
16198         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
16199         varpool_node_set_size): New inlines.
16200         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
16201         * tree-pass.h (varpool_node_set_def): Forward declare.
16202         (ipa_opt_pass_d): Summary writting takes vnode sets too.
16203         (ipa_write_optimization_summaries): Update prototype.
16204         * ipa-cp.c (ipcp_write_summary): Update.
16205         * ipa-reference.c (ipa_reference_write_summary): Update.
16206         * lto-cgraph.c (lto_output_varpool_node): New static function.
16207         (output_varpool): New function.
16208         (input_varpool_node): New static function.
16209         (input_varpool_1): New function.
16210         (input_cgraph): Input varpool.
16211         * ipa-pure-const.c (pure_const_write_summary): Update.
16212         * lto-streamer-out.c (lto_output): Update, output varpool too.
16213         (write_global_stream): Kill WPA hack.
16214         (produce_asm_for_decls): Update.
16215         (output_alias_pair_p): Handle variables.
16216         (output_unreferenced_globals): Output only needed partition of varpool.
16217         * ipa-inline.c (inline_write_summary): Update.
16218         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
16219         cgraph.
16220         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
16221         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
16222         varpool_node_set_new, varpool_node_set_add,
16223         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
16224         debug_varpool_node_set): New functions.
16225         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
16226         (execute_one_pass): Process new decls too.
16227         (ipa_write_summaries_2): Pass around vsets.
16228         (ipa_write_summaries_1): Likewise.
16229         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
16230         to add.
16231         (ipa_write_optimization_summaries_1): Pass around vsets.
16232         (ipa_write_optimization_summaries): Likewise.
16233         * varpool.c (varpool_get_node): New.
16234         (varpool_node): Update doubly linked lists.
16235         (varpool_remove_node): New.
16236         (dump_varpool_node): More dumping.
16237         (varpool_enqueue_needed_node): Update doubly linked lists.
16238         (decide_is_variable_needed): Kill ltrans hack.
16239         (varpool_finalize_decl): Kill lto hack.
16240         (varpool_assemble_decl): Skip decls in other partitions.
16241         (varpool_assemble_pending_decls): Update doubly linkes lists.
16242         (varpool_empty_needed_queue): Likewise.
16243         (varpool_extra_name_alias): Likewise.
16244         * lto-streamer.c (lto_get_section_name): Add vars section.
16245         * lto-streamer.h (lto_section_type): Update.
16246         (output_varpool, input_varpool): Declare.
16247
16248 2010-04-28  Mike Stump  <mikestump@comcast.net>
16249
16250         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
16251
16252 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
16253
16254         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
16255         record or union type with RECORD_OR_UNION_TYPE_P predicate.
16256         (lto_input_ts_type_tree_pointers): Likewise.
16257         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
16258         (lto_output_ts_type_tree_pointers): Likewise.
16259
16260 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
16261
16262         Uniquization of constants at the Tree level
16263         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
16264         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
16265         bit to the end.
16266         (tree_output_constant_def): Declare.
16267         * gimplify.c (gimplify_init_constructor): When using block copy, first
16268         uniquize the constant constructor on the RHS.
16269         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
16270         DECL_IN_CONSTANT_POOL flag.
16271         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
16272         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
16273         constant pool.
16274         (assemble_variable): Deal with symbols belonging to the tree constant
16275         pool.
16276         (get_constant_section): Add ALIGN parameter and simplify.
16277         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
16278         (assemble_constant_contents): Use the expression of the VAR_DECL.
16279         (output_constant_def_contents): Use the alignment of the VAR_DECL.
16280         (tree_output_constant_def): New global function.
16281         (mark_constant): Use the expression of the VAR_DECL.
16282         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
16283         its expression.
16284         (output_object_block): Likewise and assemble the expression.
16285
16286 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
16287
16288         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
16289         hash_tree, eq_tree): New tree hash table.
16290         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
16291         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
16292         lto_orig_address_remove): Reimplement.
16293
16294 2010-04-28  Xinliang David Li  <davidxl@google.com>
16295
16296         PR c/42643
16297         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
16298         (compute_uninit_opnds_pos): New function.
16299         (is_non_loop_exit_postdominating): New function.
16300         (compute_control_dep_chain): New function.
16301         (find_pdom): New function.
16302         (convert_control_dep_chain_into_preds): New function.
16303         (find_predicates): New function.
16304         (find_control_equiv_block): New function.
16305         (collect_phi_def_edges): New function.
16306         (find_def_preds): New function.
16307         (find_dom): New function.
16308         (dump_predicates): New function.
16309         (get_cmp_code): New function.
16310         (is_value_included_in): New function.
16311         (find_matching_predicate_in_rest_chains): New function.
16312         (use_pred_not_overlap_with_undef_path_pred): New function.
16313         (is_use_properly_guarded): New function.
16314         (normalize_cond_1): New function.
16315         (is_and_or_or): New function.
16316         (normalize_cond): New function.
16317         (is_gcond_subset_of): New function.
16318         (is_subset_of_any): New function.
16319         (is_or_set_subset_of): New function.
16320         (is_and_set_subset_of): New function.
16321         (is_norm_cond_subset_of): New function.
16322         (is_pred_expr_subset_of): New function.
16323         (is_pred_chain_subset_of): New function.
16324         (is_included_in): New function.
16325         (is_superset_of): New function.
16326         (find_uninit_use): New function.
16327         (warn_uninitialized_phi): New function.
16328         (compute_possibly_undefined_names): New function.
16329         (ssa_undefined_value_p): New function.
16330         (execute_late_warn_uninitialized): New function.
16331         * tree-ssa.c (ssa_undefined_value_p): Removed.
16332         (warn_uninit): Changed to extern.
16333         (warn_uninitialized_phi): Removed.
16334         (warn_uninitialized_vars): Changed to extern.
16335         (execute_late_warn_uninitialized): Removed
16336         * tree-flow.h: Add new prototypes.
16337         * timevar.def: Add new time variable.
16338         * Makefile.in: Add new build file.
16339
16340 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
16341
16342         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
16343         type if available.
16344
16345 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16346
16347         PR target/22224
16348         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
16349
16350 2010-04-28  Martin Jambor  <mjambor@suse.cz>
16351
16352         * cgraph.h (struct cgraph_node): New field indirect_calls.
16353         (struct cgraph_indirect_call_info): New type.
16354         (struct cgraph_edge): Removed field indirect_call. New fields
16355         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
16356         (cgraph_create_indirect_edge): Declare.
16357         (cgraph_make_edge_direct): Likewise.
16358         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
16359         * ipa-prop.h (struct ipa_param_call_note): Removed.
16360         (struct ipa_node_params): Removed field param_calls.
16361         (ipa_create_all_structures_for_iinln): Declare.
16362         * cgraph.c: Described indirect edges and uids in initial comment.
16363         (cgraph_add_edge_to_call_site_hash): New function.
16364         (cgraph_edge): Search also among the indirect edges, use
16365         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
16366         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
16367         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
16368         site hash.
16369         (initialize_inline_failed): Assign a reason to indirect edges.
16370         (cgraph_create_edge_1): New function.
16371         (cgraph_create_edge): Moved some functionality to
16372         cgraph_create_edge_1.
16373         (cgraph_create_indirect_edge): New function.
16374         (cgraph_edge_remove_callee): Add an assert checking for
16375         non-indirectness.
16376         (cgraph_edge_remove_caller): Special-case indirect edges.
16377         (cgraph_remove_edge): Likewise.
16378         (cgraph_set_edge_callee): New function.
16379         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
16380         (cgraph_make_edge_direct): New function.
16381         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
16382         the declaration of the call statement matches.
16383         (cgraph_node_remove_callees): Special-case indirect edges.
16384         (cgraph_clone_edge): Likewise.
16385         (cgraph_clone_node): Clone also the indirect edges.
16386         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
16387         indirect_call, dump count of indirect_calls edges.
16388         * ipa-prop.c (iinlining_processed_edges): New variable.
16389         (ipa_note_param_call): Create indirect edges instead of
16390         creating notes.  New parameter node.
16391         (ipa_analyze_call_uses): New parameter node, pass it on to
16392         ipa_note_param_call.
16393         (ipa_analyze_stmt_uses): Likewise.
16394         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
16395         (print_edge_addition_message): Work on edges rather than on notes.
16396         (update_call_notes_after_inlining): Likewise, renamed to
16397         update_indirect_edges_after_inlining.
16398         (ipa_create_all_structures_for_iinln): New function.
16399         (ipa_free_node_params_substructures): Do not free notes.
16400         (ipa_edge_duplication_hook): Propagate bits within
16401         iinlining_processed_edges bitmap.
16402         (ipa_node_duplication_hook): Do not duplicate notes.
16403         (free_all_ipa_structures_after_ipa_cp): Renamed to
16404         ipa_free_all_structures_after_ipa_cp.
16405         (free_all_ipa_structures_after_iinln): Renamed to
16406         ipa_free_all_structures_after_iinln.
16407         (ipa_write_param_call_note): Removed.
16408         (ipa_read_param_call_note): Removed.
16409         (ipa_write_indirect_edge_info): New function.
16410         (ipa_read_indirect_edge_info): Likewise.
16411         (ipa_write_node_info): Do not stream notes, do stream information
16412         in indirect edges.
16413         (ipa_read_node_info): Likewise.
16414         (lto_ipa_fixup_call_notes): Removed.
16415         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
16416         * ipa-inline.c (pass_ipa_inline): Likewise.
16417         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
16418         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
16419         * tree-inline.c (copy_bb): Removed an unnecessary double check for
16420         is_gimple_call.
16421         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
16422         edges.
16423         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
16424         (output_cgraph): Stream also indirect edges.
16425         (lto_output_edge): Added capability to stream indirect edges.
16426         (input_edge): Likewise.
16427         (input_cgraph_1): Likewise.
16428         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
16429         of indirect edges.
16430
16431 2010-04-28  Richard Guenther  <rguenther@suse.de>
16432
16433         PR tree-optimization/43879
16434         PR tree-optimization/43909
16435         * tree-ssa-structalias.c (struct variable_info): Add
16436         only_restrict_pointers flag.
16437         (new_var_info): Initialize it.  Increment stats.total_vars here.
16438         (create_function_info_for): Do not increment stats.total_vars here.
16439         (get_function_part_constraint): Fix build with C++.
16440         (insert_into_field_list): Remove.
16441         (push_fields_onto_fieldstack): Properly merge fields.
16442         (create_variable_info_for): Split and simplify.
16443         (create_variable_info_for_1): New piece.
16444         (intra_create_variable_infos): Properly make restrict constraints
16445         from parameters.
16446
16447 2010-04-28  Richard Guenther  <rguenther@suse.de>
16448
16449         PR c++/43880
16450         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
16451
16452 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16453             Jan Hubicka  <hubicka@ucw.cz>
16454
16455         * doc/invoke.texi (-Wsuggest-attribute=const,
16456         -Wsuggest-attribute=pure): Document.
16457         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
16458         (function_always_visible_to_compiler_p,
16459         suggest_attribute, warn_function_pure, warn_function_const):
16460         New functions.
16461         (check_call): Improve debug info.
16462         (analyze_function): Do not check availability.
16463         (add_new_function): Check availability.
16464         (propagate): Output warnings.
16465         (skip_function_for_local_pure_const): New function.
16466         (local_pure_const): Use it; output warnings.
16467         * common.opt (Wsuggest-attribute=const,
16468         Wsuggest-attribute=pure): New.
16469
16470 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
16471
16472         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
16473         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
16474         or DW_CFA_def_cfa_offset{,_sf}.
16475
16476 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
16477
16478         * tree.h: Fix truncated long macros.
16479
16480 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
16481
16482         * collect2.c (TARGET_64BIT): Redefine to target's default.
16483         * tlink.c: Likewise.
16484         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
16485         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
16486         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
16487         for underscoring __USER_LABEL_PREFIX__.
16488         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
16489         (SUB_LINK_ENTRY32): New.
16490         (SUB_LINK_ENTRY64): New.
16491         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
16492         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
16493         (SUB_LINK_ENTRY64): New.
16494         (SUB_LINK_ENTRY): New.
16495         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
16496         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
16497         x64 target is choosen.
16498         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
16499         * configure: Regenerated.
16500         * configure.ac (leading-mingw64-underscores): Option added.
16501
16502 2010-04-27  Jan Hubicka  <jh@suse.cz>
16503
16504         * doc/invoke.texi (-fipa-profile): Document.
16505         * opts.c (decode_options): Enable ipa-profile at -O1.
16506         * timevar.def (TV_IPA_PROFILE): Define.
16507         * common.opt (fipa-profile): Add.
16508         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
16509         flag for clones.
16510         (cgraph_propagate_frequency): Handle only local ones.
16511         * tree-pass.h (pass_ipa_profile): Declare.
16512         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
16513         (pass_ipa_profile): Use TV_IPA_PROFILE.
16514         * ipa.c (ipa_profile): New function.
16515         (gate_ipa_profile): Likewise.
16516         (pass_ipa_profile): New global variable.
16517         * passes.c (pass_ipa_profile): New.
16518
16519 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
16520
16521         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
16522
16523 2010-04-27  Martin Jambor  <mjambor@suse.cz>
16524
16525         PR middle-end/43812
16526         * ipa.c (dissolve_same_comdat_group_list): New function.
16527         (function_and_variable_visibility): Call
16528         dissolve_same_comdat_group_list when comdat group contains external or
16529         newly local nodes.
16530         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
16531         lists are circular and that they contain only DECL_ONE_ONLY nodes.
16532
16533 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
16534
16535         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
16536         (const_hash_1) <VECTOR_CST>: New case.
16537         (compare_constant) <VECTOR_CST>: Likewise.
16538         <ADDR_EXPR>: Deal with LABEL_REFs.
16539         (copy_constant) <VECTOR_CST>: New case.
16540
16541 2010-04-27  Jan Hubicka  <jh@suse.cz>
16542
16543         * cgraph.c (cgraph_propagate_frequency): New function.
16544         * cgraph.h (cgraph_propagate_frequency): Declare.
16545         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
16546         cgraph_propagate_frequency.
16547
16548 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
16549
16550         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
16551
16552 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
16553
16554         PR target/40657
16555         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
16556         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
16557         here to determine which regs to push and how much stack to reserve.
16558
16559 2010-04-27  Jie Zhang  <jie@codesourcery.com>
16560
16561         * doc/gimple.texi (gimple_statement_with_ops): Remove
16562         addresses_taken field.
16563         (gimple_statement_with_memory_ops): Likewise.
16564
16565 2010-04-27  Jan Hubicka  <jh@suse.cz>
16566
16567         * tree-inline.c (eni_inlining_weights): Remove.
16568         (estimate_num_insns): Special case more builtins.
16569
16570 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
16571
16572         PR c/32207
16573         * c-typeck.c (build_binary_op): Move forward check for comparison
16574         pointer with null pointer constant and adjust the diagnostic message.
16575
16576 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
16577
16578         PR lto/42776
16579         * configure.ac (gcc_cv_as_section_has_align): Set if installed
16580         binutils supports extended .section directive needed by LTO, or
16581         warn if older binutils found.
16582         (LTO_BINARY_READER): New AC_SUBST'd variable.
16583         (LTO_USE_LIBELF): Likewise.
16584         * gcc/config.gcc (lto_binary_reader): New target-specific configure
16585         variable.
16586         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
16587         (LTO_USE_LIBELF): Likewise.
16588         * configure: Regenerate.
16589
16590         * collect2.c (is_elf): Rename from this ...
16591         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
16592          object files in addition to ELF-formatted ones.
16593         (scan_prog_file): Caller updated.  Also allow for LTO info marker
16594         symbol to be prefixed or not by an extra underscore.
16595
16596         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
16597         * config/i386/winnt.c: Also #include lto-streamer.h
16598         (i386_pe_asm_named_section): Specify 1-byte section alignment for
16599         LTO named sections.
16600         (i386_pe_asm_output_aligned_decl_common): Add comment.
16601         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
16602
16603 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
16604
16605         PR target/43889
16606         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
16607         Add missing earlyclobber for second alternative.
16608
16609 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
16610
16611         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
16612         bits for artificial defs at the top of the block.
16613         * fwprop.c (single_def_use_enter_block): Don't call it.
16614
16615 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
16616
16617         PR 43715
16618         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
16619         instead of "$gcc_cv_objdump -T".
16620         Use "-undefined dynamic_lookup" on darwin.
16621         * gcc/configure: Regenerate.
16622
16623 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
16624
16625         PR c/43893
16626         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
16627
16628 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
16629
16630         * c-parser.c (struct c_token): Move location field up.
16631         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
16632         (struct c_declspecs): Convert typespec_word, storage_class, and
16633         default_int_p into bitfields.
16634         (struct c_declarator): Move loc field up.
16635
16636 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
16637
16638         * cfgloop.h (struct loop): Move can_be_parallel field up.
16639         * ipa-prop.h (struct ip_node_params): Move bitfields up.
16640         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
16641         down.
16642         (struct iv_cand): Convert pos field into a bitfield.
16643         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
16644         field up.
16645         (struct _stmt_vec_info): Shuffle fields for better packing.
16646
16647 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
16648
16649         * varasm.c (IN_NAMED_SECTION): Remove guard.
16650         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
16651         (IN_NAMED_SECTION_P): ...this.
16652         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
16653         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
16654
16655 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
16656
16657         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
16658         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
16659         of shadowing it.  Fix comments.
16660
16661 2010-04-26  Jan Hubicka  <jh@suse.cz>
16662
16663         * cgraph.c (cgraph_create_node): Set node frequency to normal.
16664         (cgraph_clone_node): Copy function frequency.
16665         * cgraph.h (node_frequency): New enum
16666         (struct cgraph_node): Add.
16667         * final.c (rest_of_clean_state): Update.
16668         * lto-cgraph.c (lto_output_node): Output node frequency.
16669         (input_overwrite_node): Input node frequency.
16670         * tre-ssa-loop-ivopts (computation_cost): Update.
16671         * lto-streamer-out.c (output_function): Do not output function
16672         frequency.
16673         * predict.c (maybe_hot_frequency_p): Update and handle functions
16674         executed once.
16675         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
16676         attribute lookup.
16677         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
16678         (compute_function_frequency): Set noreturn functions to be executed
16679         once.
16680         (choose_function_section): Update.
16681         * lto-streamer-in.c (input_function): Do not input function frequency.
16682         * function.c (allocate_struct_function): Do not initialize function
16683         frequency.
16684         * function.h (function_frequency): Remove.
16685         (struct function): Remove function frequency.
16686         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
16687         (try_update): Update.
16688         * tree-inline.c (initialize_cfun): Do not update function frequency.
16689         * passes.c (pass_init_dump_file): Update.
16690         * i386.c (ix86_compute_frame_layout): Update.
16691         (ix86_pad_returns): Update.
16692
16693 2010-04-26  Jie Zhang  <jie@codesourcery.com>
16694
16695         PR tree-optimization/43833
16696         * tree-vrp.c (range_int_cst_p): New.
16697         (range_int_cst_singleton_p): New.
16698         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
16699         when both operands are constants.  Use range_int_cst_p in
16700         BIT_IOR_EXPR case.
16701
16702 2010-04-26  Jan Hubicka  <jh@suse.cz>
16703
16704         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
16705
16706 2010-04-26  Richard Guenther  <rguenther@suse.de>
16707
16708         PR lto/43080
16709         * gimple.c (gimple_decl_printable_name): Deal gracefully
16710         with a NULL DECL_NAME.
16711
16712 2010-04-26  Richard Guenther  <rguenther@suse.de>
16713
16714         PR lto/42425
16715         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
16716         if emitting debug information and it is either a function
16717         or a namespace decl.
16718
16719 2010-04-26  Ira Rosen  <irar@il.ibm.com>
16720
16721         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
16722         determine if the statement is vectorizable, and a macro to access it.
16723         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
16724         Skip statements that can't be vectorized. If the analysis fails,
16725         mark the statement as unvectorizable if vectorizing basic block.
16726         (vect_compute_data_refs_alignment): Likewise.
16727         (vect_verify_datarefs_alignment): Skip statements marked as
16728         unvectorizable. Add print.
16729         (vect_analyze_group_access): Skip statements that can't be
16730         vectorized. If the analysis fails, mark the statement as
16731         unvectorizable if vectorizing basic block.
16732         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
16733         * tree-vect-stmts.c (vectorizable_store): Fix the number of
16734         generated stmts for SLP.
16735         (new_stmt_vec_info): Initialize the new field.
16736         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
16737         statements marked as unvectorizable.
16738
16739 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
16740
16741         * c-common.c (flag_isoc1x): New.
16742         (flag_isoc99): Update comment.
16743         * c-common.h (flag_isoc1x): New.
16744         (flag_isoc99): Update comment.
16745         * c-cppbuiltin.c (builtin_define_float_constants): Also define
16746         __<type>_DECIMAL_DIG__.
16747         * c-opts.c (set_std_c1x): New.
16748         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
16749         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
16750         * c.opt (-std=c1x, -std=gnu1x): New options.
16751         * doc/cpp.texi: Mention -std=c1x.
16752         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
16753         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
16754         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
16755         * doc/standards.texi: Mention C1X.
16756         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
16757         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
16758         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
16759         Define for C1X.
16760
16761 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
16762
16763         * config/i386/gmon-sol2.c (_mcleanup): Change format string
16764         placeholder from 0x%x to %#x.
16765         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
16766         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
16767         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
16768         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
16769         * config/i386/i386.c (ix86_target_string): Ditto.
16770         (output_pic_addr_const): Ditto.
16771         (print_operand): Ditto.
16772
16773 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
16774
16775         * combine.c (find_split_point): Add third argument.  Use it
16776         to find nested multiply-accumulate instructions.  Adjust calls.
16777         (try_combine): Adjust call to find_split_point.
16778
16779 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
16780
16781         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
16782
16783 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
16784
16785         PR tree-optimization/41442
16786         * fold-const.c (merge_truthop_with_opposite_arm): New function.
16787         (fold_binary_loc): Call it.
16788
16789 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16790
16791         * toplev.c (general_init): Set default for fdiagnostics-show-option.
16792         * opts.c (common_handle_option): Allow disabling it.
16793         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
16794
16795 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
16796
16797         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
16798         between modes if both types are integral.
16799
16800 2010-04-23  Richard Guenther  <rguenther@suse.de>
16801
16802         PR tree-optimization/43572
16803         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
16804
16805 2010-04-23  Richard Guenther  <rguenther@suse.de>
16806
16807         PR lto/43455
16808         * tree-inline.c (tree_can_inline_p): Also check compatibility
16809         of return types.
16810
16811 2010-04-23  Martin Jambor  <mjambor@suse.cz>
16812
16813         PR tree-optimization/43846
16814         * tree-sra.c (struct access): New flag grp_assignment_read.
16815         (build_accesses_from_assign): Set grp_assignment_read.
16816         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
16817         (enum mark_read_status): New type.
16818         (analyze_access_subtree): Propagate grp_assignment_read, create
16819         accesses also if both direct_read and root->grp_assignment_read.
16820
16821 2010-04-23  Martin Jambor  <mjambor@suse.cz>
16822
16823         PR middle-end/43835
16824         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
16825         function does not have type attributes.
16826
16827 2010-04-23  Richard Guenther  <rguenther@suse.de>
16828
16829         PR lto/42653
16830         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
16831         of FUNCTION_DECLs.
16832
16833 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16834
16835         * sese.h (create_if_region_on_edge): Remove.
16836
16837         * sese.c (create_if_region_on_edge): Make static.
16838
16839         * tree-inline.c: Do not include ggc.h.
16840
16841         * expr.c: Do not include ggc.h.
16842
16843         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
16844         dependencies.
16845
16846 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
16847
16848         PR target/43744
16849         * config/sh/sh.c (find_barrier): Don't emit a constant pool
16850         in the middle of insns for casesi_worker_2.
16851
16852 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
16853
16854         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
16855
16856 2010-04-22  Ira Rosen  <irar@il.ibm.com>
16857
16858         PR tree-optimization/43842
16859         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
16860         loop unrolling in update of exit phis. Fix comment.
16861         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
16862         least two reduction statements in the loop before starting SLP
16863         analysis.
16864
16865 2010-04-22  Nick Clifton  <nickc@redhat.com>
16866
16867         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
16868
16869 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
16870
16871         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
16872         to simplify a + ~a.
16873
16874 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16875
16876         * tree-parloops.c (loop_parallel_p): New argument
16877         parloop_obstack.  Pass it down.
16878         (parallelize_loops): New variable parloop_obstack.  Initialize it,
16879         pass it down, free it.
16880
16881         * tree-loop-linear.c (linear_transform_loops): Pass down
16882         lambda_obstack.
16883
16884         * tree-data-ref.h (lambda_compute_access_matrices): New argument
16885         of type struct obstack *.
16886
16887         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
16888         scratch_obstack.  Initialize it, pass down, free it.
16889
16890         * lambda.h (lambda_loop_new): Remove.
16891         (lambda_matrix_new, lambda_matrix_inverse)
16892         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
16893         argument of type struct obstack *.
16894
16895         * lambda-trans.c (lambda_trans_matrix_new): New argument
16896         lambda_obstack.  Pass it down, use obstack allocation for ret.
16897         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
16898         it down.
16899
16900         * lambda-mat.c (lambda_matrix_get_column)
16901         (lambda_matrix_project_to_null): Remove.
16902         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
16903         allocation for mat.
16904         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
16905         lambda_obstack.
16906
16907         * lambda-code.c (lambda_loop_new): New function.
16908         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
16909         (lambda_compute_auxillary_space, lambda_compute_target_space)
16910         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
16911         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
16912         (build_access_matrix): New argument lambda_obstack.  Use obstack
16913         allocation for am.
16914         (lambda_compute_step_signs, lambda_compute_access_matrices): New
16915         argument lambda_obstack.  Pass it down.
16916
16917 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
16918
16919         * optabs.h (expand_widening_mult): Declare.
16920
16921 2010-04-22  Richard Guenther  <rguenther@suse.de>
16922
16923         PR tree-optimization/43845
16924         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
16925         lookup the CALL_EXPR function and arguments.
16926
16927 2010-04-22  Nick Clifton  <nickc@redhat.com>
16928
16929         * config/stormy16/stormy16.c
16930         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
16931         * config/stormy16/stormy16.h: Tidy up formatting.
16932         (DONT_USE_BUILTIN_SETJMP): Remove definition.
16933         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
16934         (ineqbranchsi): Delete pattern.
16935         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
16936         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
16937         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
16938         stormy16-lib2-ucmpsi2.c.
16939
16940 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
16941
16942         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
16943         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
16944         extra set merge_set_noclobber, and use it to relax the final test
16945         slightly.
16946         * df.h (df_simulate_find_noclobber_defs): Declare.
16947         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
16948         conditional defs.
16949         (df_simulate_find_noclobber_defs): New function.
16950
16951 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
16952
16953         * config/i386/i386.md: Use {} around multi-line preparation statements.
16954
16955 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16956
16957         * c-tree.h (push_init_level, pop_init_level, set_init_index)
16958         (process_init_element): New argument of type struct obstack *.
16959
16960         * c-typeck.c (push_init_level, pop_init_level, set_designator)
16961         (set_init_index, set_init_label, set_nonincremental_init)
16962         (set_nonincremental_init_from_string, find_init_member)
16963         (output_init_element, output_pending_init_elements)
16964         (process_init_element): New argument braced_init_obstack.  Pass it
16965         down.
16966         (push_range_stack, add_pending_init): New argument
16967         braced_init_obstack.  Use obstack allocation.
16968
16969         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
16970         braced_init_obstack.  Pass it down.
16971         (c_parser_braced_init): New variables ret, braced_init_obstack.
16972         Initialize obstack, pass it down and finally free it.
16973
16974 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
16975
16976         PR middle-end/29274
16977         * tree-pass.h (pass_optimize_widening_mul): Declare.
16978         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
16979         gate_optimize_widening_mul): New static functions.
16980         (pass_optimize_widening_mul): New.
16981         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
16982         <case MULT_EXPR>: Remove support for widening multiplies.
16983         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
16984         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
16985         simplify_gen_unary rather than directly building extensions.
16986         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
16987         WIDEN_MULT_EXPR.
16988         * expmed.c (expand_widening_mult): New function.
16989         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
16990
16991 2010-04-21  Jan Hubicka  <jh@suse.cz>
16992
16993         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
16994         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
16995         * lto-wpa-fixup.c: Remove.
16996         * Makefile.in (lto-wpa-fixup.o): Remove.
16997         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
16998         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
16999         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
17000
17001 2010-04-21  Jan Hubicka  <jh@suse.cz>
17002
17003         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
17004         add write_optimization_summary, read_optimization_summary.
17005         (ipa_write_summaries_of_cgraph_node_set): Remove.
17006         (ipa_write_optimization_summaries): Declare.
17007         (ipa_read_optimization_summaries): Declare.
17008         * ipa-cp.c (pass_ipa_cp): Update.
17009         * ipa-reference.c (pass_ipa_reference): Update.
17010         * ipa-pure-const.c (pass_ipa_pure_const): Update.
17011         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
17012         Update.
17013         * ipa-inline.c (pass_ipa_inline): Update.
17014         * ipa.c (pass_ipa_whole_program): Update.
17015         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
17016         * passes.c (ipa_write_summaries_1): Do not test wpa.
17017         (ipa_write_optimization_summaries_1): New.
17018         (ipa_write_optimization_summaries): New.
17019         (ipa_read_summaries): Do not test ltrans.
17020         (ipa_read_optimization_summaries_1): New.
17021         (ipa_read_optimization_summaries): New.
17022
17023 2010-04-21  Jan Hubicka  <jh@suse.cz>
17024
17025         * lto-cgraph.c (lto_output_node): Do not output comdat groups
17026         for boundary nodes.
17027         (output_cgraph): Do not arrange comdat groups for boundary nodes.
17028
17029 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
17030
17031         PR debug/40040
17032         * dwarf2out.c (add_name_and_src_coords_attributes): Add
17033         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
17034
17035 2010-04-21  Jan Hubicka  <jh@suse.cz>
17036
17037         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
17038
17039 2010-04-21  Jan Hubicka  <jh@suse.cz>
17040
17041         * varpool.c (decide_is_variable_needed): Variable is always needed
17042         during ltrans.
17043
17044 2010-04-21  Jan Hubicka  <jh@suse.cz>
17045
17046         * opts.c (decode_options): Enable pure-const pass for whopr.
17047
17048 2010-04-21  Jan Hubicka  <jh@suse.cz>
17049
17050         * cgraph.c (dump_cgraph_node): Dump also assembler name.
17051         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
17052         at WPA dumping.
17053         (cgraph_decide_inlining): Do not expect callee to be removed in all
17054         cases.
17055
17056 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
17057
17058         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
17059
17060 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
17061
17062         * config/i386/i386.md (x86_shrd): Add athlon_decode and
17063         amdfam10_decode attributes.
17064
17065 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
17066
17067         PR middle-end/43570
17068         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
17069         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
17070         (lower_copyprivate_clauses): Use private var in outer
17071         context instead of original var.  Make sure the types
17072         are correct for VLAs.
17073
17074 2010-04-21  Richard Guenther  <rguenther@suse.de>
17075
17076         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
17077         to non-pointer objects.
17078
17079 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
17080
17081         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
17082         last chain entry if it starts with the still current label.
17083         (add_location_or_const_value_attribute): Check that
17084         loc_list->first->next is NULL instead of comparing ->first with ->last.
17085         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
17086         to add_var_loc_to_decl.
17087
17088         * dwarf2out.c (output_call_frame_info): For dw_cie_version
17089         >= 4 add also address size and segment size fields into CIE header.
17090
17091         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
17092         long as address size is the same as sizeof (void *) and
17093         segment size is 0.
17094         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
17095         address size or segment size is unexpected, return DW_EH_PE_omit.
17096         (classify_object_over_fdes): If get_cie_encoding returned
17097         DW_EH_PE_omit, return -1.
17098         (init_object): If classify_object_over_fdes returned -1,
17099         pretend there were no FDEs at all.
17100
17101 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
17102
17103         * config/i386/i386.md (bswap<mode>2): Macroize expander from
17104         bswap{si,di}2 using SWI48 mode iterator.
17105         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
17106         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
17107         set modrm attribute of bswap insn to 0 and remove length attribute.
17108         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
17109         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
17110         set mode attribute to <MODE> and remove length attribute.
17111
17112 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
17113
17114         PR rtl-optimization/43520
17115         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
17116         zero available registers.
17117
17118 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17119
17120         * builtins.c (fold_builtin_cproj): Fold more cases.
17121
17122 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17123
17124         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
17125         (fold_builtin_1): Fold builtin cproj.
17126         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
17127         Use ATTR_CONST_NOTHROW_LIST.
17128
17129 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
17130
17131         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
17132         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
17133         ffsi2_no_cmove for !TARGET_CMOVE.
17134         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
17135         (ffssi2): Remove expander.
17136         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
17137         mode iterator.
17138         (ctz<mode>2): Ditto from ctz{si,di}2.
17139         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
17140         mode iterator.
17141         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
17142         mode iterator.
17143
17144 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
17145
17146         * dwarf2out.c (AT_linkage_name): Define.
17147         (clone_as_declaration): Handle DW_AT_linkage_name.
17148         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
17149         of DW_AT_MIPS_linkage_name.
17150         (move_linkage_attr): Likewise.
17151         (dwarf2out_finish): Likewise.
17152
17153 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
17154
17155         PR middle-end/41952
17156         * fold-const.c (fold_comparison): New folding rule.
17157
17158 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
17159
17160         * double-int.h (double_int_setbit): Declare.
17161         * double-int.c (double_int_setbit): New function.
17162         * rtl.h (immed_double_int_const): Declare.
17163         * emit-rtl.c (immed_double_int_const): New function.
17164         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
17165         and immed_double_int_const functions.
17166         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
17167         expand_copysign_bit): (Ditto.).
17168         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
17169         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
17170         * dojump.c (prefer_and_bit_test): (Ditto.).
17171         * expr.c (convert_modes, reduce_to_bit_field_precision,
17172         const_vector_from_tree): (Ditto.).
17173         * expmed.c (mask_rtx, lshift_value): (Ditto.).
17174
17175 2010-04-20  Jan Hubicka  <jh@suse.cz>
17176
17177         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
17178         (dump_cgraph_node): Dump new flags.
17179         * cgraph.h (struct cgraph_node): Add flags
17180         reachable_from_other_partition and in_other_partition.
17181         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
17182         other partition can not be removed.
17183         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
17184         the other partition must be output; silence sanity checking on
17185         leaking functions bodies from other paritition.
17186         * lto-cgraph.c (reachable_from_other_partition_p): New function.
17187         (lto_output_node): Output new flags; do not sanity check that inline
17188         clones are output; drop lto_forced_extern_inline_p code; do not mock
17189         visibility flags at partition boundaries.
17190         (add_node_to): New function.
17191         (output_cgraph): Use it to sort functions so masters appear before
17192         clones.
17193         (input_overwrite_node): Input new flags.
17194         * passes.c (ipa_write_summaries): Do not call
17195         lto_new_extern_inline_states.
17196         * lto-section-out.c (forced_extern_inline,
17197         lto_new_extern_inline_states lto_delete_extern_inline_states,
17198         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
17199         * lto-streamer.h (lto_new_extern_inline_states,
17200         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
17201         lto_forced_extern_inline_p): Kill.
17202
17203 2010-04-20  Richard Guenther  <rguenther@suse.de>
17204
17205         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
17206         from vars that can have pointers.
17207         (process_constraint): Dump useless constraints.
17208
17209 2010-04-20  Richard Guenther  <rguenther@suse.de>
17210
17211         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
17212         (dump_sa_points_to_info): Remove asserts.
17213         (init_base_vars): nothing_id isn't an escape point nor does it
17214         have pointers.
17215
17216 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
17217
17218         * tree.h (TYPE_REF_IS_RVALUE): Define.
17219         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
17220         should_move_die_to_comdat, prune_unused_types_walk): Handle
17221         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
17222         (modified_type_die, gen_reference_type_die): Emit
17223         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
17224         if TYPE_REF_IS_RVALUE and -gdwarf-4.
17225
17226 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17227
17228         PR target/43635
17229         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
17230         calls for -fpic -m31 if they have been sibcall optimized.
17231
17232 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
17233
17234         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
17235         ar.lc fixed and call-used.
17236
17237         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
17238
17239 2010-04-19  Jan Hubicka  <jh@suse.cz>
17240
17241         * opts.c (decode_options): Disable whpr incompatible passes.
17242         * lto/lto.c (lto_1_to_1_map): Skip clones.
17243         (read_cgraph_and_symbols): Do not mark everything as needed.
17244         (do_whole_program_analysis): Do map only after optimizing;
17245         set proper cgraph_state; use passmanager.
17246
17247 2010-04-19  DJ Delorie  <dj@redhat.com>
17248
17249         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
17250         POINTER_PLUS_EXPR and fix them.
17251
17252 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
17253
17254         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
17255         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
17256         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
17257         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
17258         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
17259         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
17260         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
17261         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
17262         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
17263         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
17264         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
17265
17266 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
17267
17268         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
17269         (check_cond_move_block): Likewise.
17270         (cond_move_process_if_block): Likewise.
17271         (noce_find_if_block): Improve formatting.
17272         (find_if_header): Pass 0 to memset and tweak conditions.
17273         (cond_exec_find_if_block): Fix long lines and tweak conditions.
17274
17275 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
17276
17277         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
17278         for -gdwarf-4.
17279
17280         PR middle-end/43337
17281         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
17282         with non-local decl doesn't need chain.
17283
17284 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
17285
17286         * ira-color.c (allocno_reload_assign): Avoid accumulating
17287         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
17288
17289 2010-04-19  Martin Jambor  <mjambor@suse.cz>
17290
17291         * gimple.h (create_tmp_reg): Declare.
17292         * gimplify.c (create_tmp_reg): New function.
17293         (gimplify_return_expr): Use create_tmp_reg.
17294         (gimplify_omp_atomic): Likewise.
17295         (gimple_regimplify_operands): Likewise.
17296         * tree-dfa.c (make_rename_temp): Likewise.
17297         * tree-predcom.c (predcom_tmp_var): Likewise.
17298         (reassociate_to_the_same_stmt): Likewise.
17299         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
17300         (get_replaced_param_substitute): Likewise.
17301         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
17302         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
17303         * tree-ssa-pre.c (get_representative_for): Likewise.
17304         (create_expression_by_pieces): Likewise.
17305         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
17306         (create_tailcall_accumulator): Likewise.
17307
17308 2010-04-19  Martin Jambor  <mjambor@suse.cz>
17309
17310         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
17311         new_stmt.
17312         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
17313
17314 2010-04-19  Richard Guenther  <rguenther@suse.de>
17315
17316         PR tree-optimization/43796
17317         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
17318         from SCEV in the lattice.
17319         (vrp_visit_phi_node): Dump change.
17320
17321 2010-04-19  Richard Guenther  <rguenther@suse.de>
17322
17323         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
17324         * configure: Re-generated.
17325
17326 2010-04-19  Richard Guenther  <rguenther@suse.de>
17327
17328         PR tree-optimization/43783
17329         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
17330         constant ARRAY_REF operands two and three if possible.
17331
17332 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
17333
17334         PR target/43766
17335         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
17336
17337 2010-04-19  Jie Zhang  <jie@codesourcery.com>
17338
17339         PR target/43662
17340         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
17341
17342 2010-04-19  Ira Rosen  <irar@il.ibm.com>
17343
17344         PR tree-optimization/37027
17345         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
17346         and macro to access it.
17347         (vectorizable_reduction): Add argument.
17348         (vect_get_slp_defs): Likewise.
17349         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
17350         statements for possible use in SLP.
17351         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
17352         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
17353         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
17354         add new argument.
17355         (vectorizable_reduction): Likewise.
17356         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
17357         vect_get_slp_defs.
17358         (vectorizable_type_demotion, vectorizable_type_promotion,
17359         vectorizable_store): Likewise.
17360         (vect_analyze_stmt): Update call to vectorizable_reduction.
17361         (vect_transform_stmt): Likewise.
17362         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
17363         (vect_build_slp_tree): Fix indentation. Check that there are no loads
17364         from different interleaving chains in same node.
17365         (vect_slp_rearrange_stmts): New function.
17366         (vect_supported_load_permutation_p): Allow load permutations for
17367         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
17368         inside SLP nodes if necessary.
17369         (vect_analyze_slp_instance): Handle reductions.
17370         (vect_analyze_slp): Try to build SLP instances originating from groups
17371         of reductions.
17372         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
17373         (vect_get_constant_vectors): Create initial vectors for reductions
17374         according to reduction code. Add new argument.
17375         (vect_get_slp_defs): Add new argument, pass it to
17376         vect_get_constant_vectors.
17377         (vect_schedule_slp_instance): Remove SLP tree root statements.
17378
17379 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
17380
17381         * tree.h (ENUM_IS_SCOPED): Define.
17382         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
17383         for ENUM_IS_SCOPED enums.
17384
17385 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
17386
17387         * fold-const.c (fold_comparison): Use ssizetype.
17388         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
17389         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
17390         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
17391         * tree-object-size.c (compute_object_sizes): Use size_type_node.
17392
17393         * tree.h (initialize_sizetypes): Remove parameter.
17394         (build_common_tree_nodes): Remove second parameter.
17395         * stor-layout.c (initialize_sizetypes): Remove parameter.
17396         Always create an unsigned type.
17397         (set_sizetype): Assert that the passed type is unsigned and simplify.
17398         * tree.c (build_common_tree_nodes): Remove second parameter.
17399         Adjust call to initialize_sizetypes.
17400         * c-decl.c (c_init_decl_processing): Remove second argument in call to
17401         build_common_tree_nodes.
17402
17403 2010-04-18  Matthias Klose  <doko@ubuntu.com>
17404
17405         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
17406
17407 2010-04-18  Ira Rosen  <irar@il.ibm.com>
17408
17409         PR tree-optimization/43771
17410         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
17411         load permutation doesn't have gaps.
17412
17413 2010-04-18  Jan Hubicka  <jh@suse.cz>
17414
17415         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
17416         (sse_prologue_save_insn expander): Use new pattern.
17417         (sse_prologue_save_insn1): New pattern and splitter.
17418         (sse_prologue_save_insn): Update to deal also with 64bit aligned
17419         blocks.
17420         * i386.c (setup_incoming_varargs_64): Do not compute jump
17421         destination here.
17422         (ix86_gimplify_va_arg): Update alignment needed.
17423         (ix86_local_alignment): Do not align all local arrays to 128bit.
17424
17425 2010-04-17  Jan Hubicka  <jh@suse.cz>
17426
17427         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
17428
17429 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
17430
17431         * arm.md (negdi2): Remove redundant code to force values into a
17432         register.
17433
17434 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
17435
17436         * arm/bpabi.S: Add EABI alignment attributes to objects.
17437         * arm/bpabi-v6m.S: Likewise.
17438         * arm/crti.asm: Likewise.
17439         * arm/crtn.asm: Likewise.
17440         * arm/lib1funcs.asm: Likewise.
17441         * arm/libunwind.S: Likewise.
17442
17443 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
17444
17445         * arm-protos.h (tune_params): New structure.
17446         * arm.c (current_tune): New variable.
17447         (arm_constant_limit): Delete.
17448         (struct processors): Add pointer to the tune parameters.
17449         (arm_slowmul_tune): New tuning option.
17450         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
17451         (all_cores): Adjust to pick up the tuning model.
17452         (arm_constant_limit): New function.
17453         (arm_override_options): Select the appropriate tuning model.  Delete
17454         initialization of arm_const_limit.
17455         (arm_split_constant): Use the new constant-limit model.
17456         (arm_rtx_costs): Pick up the current tuning model.
17457         * arm.md (is_strongarm, is_xscale): Delete.
17458         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
17459         for Xscale variant architectures.
17460         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
17461
17462 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17463
17464         * config/arm/arm.c (arm_gen_constant): Remove unused variable
17465         can_shift.
17466         (arm_rtx_costs_1): Remove unused variable extra_cost.
17467         (arm_unwind_emit_set): Use variable offset.
17468         (thumb1_output_casesi): Remove unused variable flags.
17469
17470 2010-04-16  Jeff Law  <law@redhat.com>
17471
17472         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
17473         needing assignment rather than doing a two-phase assignment.  Remove
17474         unused variable 'm'.
17475
17476 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
17477
17478         PR bootstrap/43767
17479         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
17480
17481 2010-04-16  Doug Kwan  <dougkwan@google.com>
17482
17483         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
17484         (next_operand_entry_id): New static variable.
17485         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
17486         (add_to_ops_vec): Assigned unique ID to operand entry.
17487         (struct oecount_s): New field ID.
17488         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
17489         (undistribute_ops_list): Assign unique IDs to oecounts.
17490         (init_reassoc): reset next_operand_entry_id.
17491
17492 2010-04-16  Doug Kwan  <dougkwan@google.com>
17493
17494         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
17495         missing left parenthesis.
17496
17497 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
17498
17499         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
17500         *btdi_rex64 using SWI48 mode iterator.
17501         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
17502         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
17503         *jcc_btdi_mask_rex64.
17504
17505 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
17506
17507         * double-int.h (tree_to_double_int): Convert to macro.
17508         * double-int.c (tree_to_double_int): Remove.
17509
17510 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
17511
17512         PR debug/43762
17513         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
17514         with want_address 2 and in case a single element list might be
17515         possible, call it again with want_address 0.
17516
17517 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
17518
17519         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
17520         case 'W' print operands for HI mode.
17521         * config/h8300/h8300.h (Y0, Y2) : New constraints.
17522         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
17523         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
17524         * config/h8300/predicate.md (bit_register_indirect_operand): New.
17525
17526         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
17527
17528         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
17529         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
17530         #xx:3 and #xx:4 mode.
17531
17532         * config/h8300/h8300.md (inverted load with HImode dest): Add
17533         support for H8300SX.
17534
17535         * config/h8300/predicate.md (bit_operand): Allow immediate values that
17536         satisfy 'U' constraint.
17537
17538 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17539
17540         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
17541         * configure: Regenerate.
17542         * config.in: Regenerate.
17543         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
17544         works.
17545
17546 2010-04-16  Richard Guenther  <rguenther@suse.de>
17547
17548         * tree.h (struct tree_decl_minimal): Move pt_uid ...
17549         (struct tree_decl_common): ... here.
17550         (DECL_PT_UID): Adjust.
17551         (SET_DECL_PT_UID): Likewise.
17552         (DECL_PT_UID_SET_P): Likewise.
17553
17554 2010-04-16  Richard Guenther  <rguenther@suse.de>
17555
17556         PR tree-optimization/43572
17557         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
17558         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
17559         * tree-flow.h (is_call_clobbered): Remove.
17560         * tree-flow-inline.h (is_call_clobbered): Likewise.
17561         * tree-dfa.c (dump_variable): Do not dump call clobber state.
17562         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
17563         (execute_return_slot_opt): Adjust.
17564         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
17565         check for call clobbered vars here.
17566         (find_tail_calls): Move tailcall verification to the
17567         proper place.
17568
17569 2010-04-16  Diego Novillo  <dnovillo@google.com>
17570
17571         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
17572
17573 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
17574
17575         PR target/40603
17576         * config/arm/arm.md (cbranchqi4): New pattern.
17577         * config/arm/predicates.md (const0_operand,
17578         cbranchqi4_comparison_operator): New predicates.
17579
17580 2010-04-16  Richard Guenther  <rguenther@suse.de>
17581
17582         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
17583         (dump_gimple_stmt): Likewise.
17584
17585 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
17586
17587         * recog.h (struct recog_data): New field is_operator.
17588         (struct insn_operand_data): New field is_operator.
17589         * recog.c (extract_insn): Set recog_data.is_operator.
17590         * genoutput.c (output_operand_data): Emit code to set the
17591         is_operator field.
17592         * reload.c (find_reloads): Use it rather than testing for an
17593         empty constraint string.
17594
17595         PR target/41514
17596         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
17597         If the previous insn is a cbranchsi4_insn with the same arguments,
17598         omit the compare instruction.
17599
17600         * config/arm/arm.md (addsi3_cbranch): If destination is a high
17601         register, inputs must be low registers and we need a low register
17602         scratch.  Handle alternative 2 like alternative 3.
17603
17604 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
17605
17606         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
17607         don't call get_addr on both.  If one expression is a VALUE and
17608         the other a REG, check VALUE's locs if the REG isn't among them.
17609
17610 2010-04-16  Christian Bruel  <christian.bruel@st.com>
17611
17612         * config/sh/sh.h (sh_frame_pointer_required): New function.
17613         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
17614         (flag_omit_frame_pointer) Set.
17615         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
17616         (rounded_frame_size): Adjust size with outgoing_args_size.
17617         (sh_set_return_address): Must return from stack pointer.
17618         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
17619         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
17620         (ACCUMULATE_OUTGOING_ARGS): Define.
17621         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
17622         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
17623
17624 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
17625
17626         PR target/43471
17627         * config/sh/sh.c (sh_legitimize_reload_address): Use
17628         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
17629         Remove a unneeded check for offset_base.
17630
17631 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
17632
17633         * configure: Regenerated.
17634
17635 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17636
17637         * config/s390/s390.c (s390_call_save_register_used): Switch back
17638         to HARD_REGNO_NREGS.
17639
17640 2010-04-15  Richard Guenther  <rguenther@suse.de>
17641
17642         * alias.c (alias_set_subset_of): Handle alias-set zero
17643         child properly.
17644
17645 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
17646             Julian Brown  <julian@codesourcery.com>
17647
17648         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
17649         alternatives according to use of high and low regs.
17650         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17651         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
17652         optimizing for size on Thumb-2.
17653
17654 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
17655
17656         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
17657
17658 2010-04-15  Richard Guenther  <rguenther@suse.de>
17659
17660         * tree-ssa-structalias.c (struct variable_info): Add
17661         is_fn_info flag.
17662         (new_var_info): Initialize it.
17663         (dump_constraints): Support printing last added constraints.
17664         (debug_constraints): Adjust.
17665         (dump_constraint_graph): Likewise.
17666         (make_heapvar_for): Check for NULL cfun.
17667         (get_function_part_constraint): New function.
17668         (get_fi_for_callee): Likewise.
17669         (find_func_aliases): Properly implement IPA PTA constraints.
17670         (process_ipa_clobber): New function.
17671         (find_func_clobbers): Likewise.
17672         (insert_into_field_list_sorted): Remove.
17673         (create_function_info_for): Properly allocate vars for IPA mode.
17674         Do not use insert_into_field_list_sorted.
17675         (create_variable_info_for): Properly generate constraints for
17676         global vars in IPA mode.
17677         (dump_solution_for_var): Always dump the solution.
17678         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
17679         (find_what_var_points_to): Adjust.
17680         (pt_solution_set): Change.
17681         (pt_solution_ior_into): New function.
17682         (pt_solution_empty_p): Export.
17683         (pt_solution_includes_global): Adjust.
17684         (pt_solution_includes_1): Likewise.
17685         (pt_solutions_intersect_1): Likewise.
17686         (dump_sa_points_to_info): Check some invariants.
17687         (solve_constraints): Move constraint dumping ...
17688         (compute_points_to_sets): ... here.
17689         (ipa_pta_execute): ... and here.
17690         (compute_may_aliases): Do not re-compute points-to info
17691         locally if IPA info is available.
17692         (ipa_escaped_pt): New global var.
17693         (ipa_pta_execute): Properly implement IPA PTA.
17694         * tree-into-ssa.c (dump_decl_set): Support dumping
17695         decls not in referenced-vars.
17696         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
17697         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
17698         (dump_points_to_solution): Likewise.
17699         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
17700         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
17701         (remap_gimple_stmt): Reset call clobber/use information if necessary.
17702         (copy_decl_to_var): Copy DECL_PT_UID.
17703         (copy_result_decl_to_var): Likewise.
17704         * tree.c (make_node_stat): Initialize DECL_PT_UID.
17705         (copy_node_stat): Copy it.
17706         * tree.h (DECL_PT_UID): New macro.
17707         (SET_DECL_PT_UID): Likewise.
17708         (DECL_PT_UID_SET_P): Likewise.
17709         (struct tree_decl_minimal): Add pt_uid member.
17710         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
17711         (pt_solution_empty_p): Declare.
17712         (pt_solution_set): Adjust.
17713         (ipa_escaped_pt): Declare.
17714         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
17715         * gimple-pretty-print.c (pp_points_to_solution): New function.
17716         (dump_gimple_call): Dump call clobber/use information.
17717         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
17718         * tree-pass.h (TDF_ALIAS): New dump option.
17719         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
17720         * doc/invoke.texi (-fipa-pta): Update documentation.
17721
17722 2010-04-15  Richard Guenther  <rguenther@suse.de>
17723
17724         * Makefile.in (OBJS-common): Add gimple-fold.o.
17725         (gimple-fold.o): New rule.
17726         * tree.h (maybe_fold_offset_to_reference,
17727         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
17728         prototypes ...
17729         * gimple.h: ... here.
17730         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
17731         may_propagate_address_into_dereference): Move prototypes ...
17732         * gimple.h: ... here.
17733         * tree-ssa-ccp.c (get_symbol_constant_value,
17734         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
17735         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
17736         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
17737         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
17738         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
17739         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
17740         gimplify_and_update_call_from_tree): Move ...
17741         * gimple-fold.c: ... here.  New file.
17742         (ccp_fold_builtin): Rename to ...
17743         (gimple_fold_builtin): ... this.
17744         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
17745
17746 2010-04-15  Richard Guenther  <rguenther@suse.de>
17747
17748         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
17749         fit_double_type, force_fit_type_double, add_double_with_sign,
17750         neg_double, mul_double_with_sign, lshift_double, rshift_double,
17751         lrotate_double, rrotate_double, div_and_round_double): Move ...
17752         * double-int.c: ... here.
17753         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
17754         add_double, neg_double, mul_double_with_sign, mul_double,
17755         lshift_double, rshift_double, lrotate_double, rrotate_double,
17756         div_and_round_double): Move prototypes ...
17757         * double-int.h: ... here.
17758
17759 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
17760
17761         PR target/43742
17762         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
17763         matching constraints to ensure inputs match the output.
17764
17765 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
17766
17767         PR target/43742
17768         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
17769         in an input-only operand.
17770
17771 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
17772
17773         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
17774         (double_int_not, double_int_lshift, double_int_rshift): Declare.
17775         (double_int_negative_p): Convert to static inline function.
17776         * double-int.c (double_int_lshift, double_int_lshift): New functions.
17777         (double_int_negative_p): Remove.
17778         * tree.h (lshift_double, rshift_double):
17779         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
17780         * fold-const.c (fold_convert_const_int_from_real,
17781         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
17782         (lshift_double): Change type of arith argument to bool.
17783         (rshift_double): Change type of arith argument to bool. Correct
17784         comment.
17785         * expmed.c (mask_rtx, lshift_value): (Ditto.).
17786
17787 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
17788
17789         PR target/21803
17790         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
17791         at the start and end of the then/else blocks, and omit them from the
17792         conversion.
17793         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
17794         argument; all callers changed.  Pass zero to old_insns_match_p instead.
17795         (flow_find_head_matching_sequence): New function.
17796         (old_insns_match_p): Check REG_EH_REGION notes for calls.
17797         * basic-block.h (flow_find_cross_jump,
17798         flow_find_head_matching_sequence): Declare functions.
17799
17800 2010-04-14  Jason Merrill  <jason@redhat.com>
17801
17802         PR c++/36625
17803         * c-common.c (attribute_takes_identifier_p): New fn.
17804         * c-common.h: Declare it.
17805
17806 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17807
17808         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
17809         splitter condition.
17810         (*udivmod<mode>4): Ditto.
17811
17812 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17813
17814         * config/i386/i386.md (maxmin_int): Rename code attribute from
17815         maxminiprefix and update all users.
17816         (maxmin_float): Ditto from maxminfprefix.
17817         (logic): Ditto from logicprefix.
17818         (absneg_mnemonic): Ditto from absnegprefix.
17819         * config/i386/mmx.md: Update all users of maxminiprefix,
17820         maxminfprefix and logicprefix for rename.
17821         * config/i386/sse.md: Ditto.
17822         * config/i386/sync.md (sync_<code><mode>): Update for
17823         logicprefix rename.
17824
17825 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17826
17827         PR 42966
17828         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
17829         warnings converted to errors.
17830
17831 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17832
17833         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
17834         used insn_type variable.
17835         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
17836         to avoid set-but-not-used warning.
17837
17838 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17839
17840         * df-core.c (df_ref_debug): Change format string placeholder
17841         from 0x%x to %#x.
17842         * dwarf2asm.c (dw2_asm_output_data_raw,
17843         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
17844         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
17845         * dwarf2out.c (output_cfi, output_cfi_directive,
17846         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
17847         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
17848         Ditto.
17849         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
17850         * print-rtl.c (print_rtx): Ditto.
17851
17852 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17853
17854         PR middle-end/42694
17855         * builtins.c (expand_builtin_pow_root): New function to expand pow
17856         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
17857         series of sqrt and cbrt calls under -ffast-math.
17858         (expand_builtin_pow): Call it.
17859
17860 2010-04-14  Michael Matz  <matz@suse.de>
17861
17862         PR tree-optimization/42963
17863         * tree-cfg.c (touched_switch_bbs): New static variable.
17864         (group_case_labels_stmt): New function broken out from ...
17865         (group_case_labels): ... here, use the above.
17866         (start_recording_case_labels): Allocate touched_switch_bbs.
17867         (end_recording_case_labels): Deallocate it, call
17868         group_case_labels_stmt.
17869         (gimple_redirect_edge_and_branch): Remember index of affected BB.
17870
17871 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17872
17873         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
17874         from insn template.
17875
17876 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17877
17878         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
17879
17880 2010-04-13  Jan Hubicka  <jh@suse.cz>
17881
17882         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
17883         of optimized out static functions.
17884         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
17885         cost computation.  Also sanity check for overflows.
17886         (update_caller_keys): Update cgraph_edge_badness call; properly
17887         update fibheap and sanity check that it is up to date.
17888         (add_new_edges_to_heap): Update cgraph_edge_badness.
17889         (cgraph_decide_inlining_of_small_function): Likewise;
17890         add sanity checking that badness in heap is up to date;
17891         improve dumping of reason; Update badness of calls to the
17892         offline copy of function currently inlined; dump badness
17893         of functions not inlined because of unit growth limits.
17894
17895 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
17896
17897         PR middle-end/32628
17898         * c-common.c (pointer_int_sum): Disregard overflow that occured only
17899         because of sign-extension change when converting to sizetype here...
17900         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
17901
17902         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
17903         the folding to constants.  Remove redundant final conversion.
17904         (fold_binary) <associate>: Do not associate if the re-association of
17905         constants alone overflows.
17906         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
17907         to the end of the list.
17908         (multiple_of_p) <COND_EXPR>: New case.
17909
17910 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17911
17912         * opt-functions.awk (opt_sanitized_name): New.
17913         (opt_enum): New.
17914         * optc-gen.awk: Use it
17915         * opth-gen.awk: Use it.
17916
17917 2010-04-13  Martin Jambor  <mjambor@suse.cz>
17918
17919         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
17920         (sra_modify_assign): Delete stmts loading dead data even if racc has no
17921         children.  Call replace_uses_with_default_def_ssa_name to handle
17922         SSA_NAES on lhs.
17923
17924 2010-04-13  Michael Matz  <matz@suse.de>
17925
17926         PR middle-end/43730
17927         * builtins.c (expand_builtin_interclass_mathfn): Also create
17928         a register if the predicate doesn't match.
17929
17930 2010-04-13  Diego Novillo  <dnovillo@google.com>
17931
17932         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
17933         * c-pch.c: Include timevar.h.
17934         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
17935         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
17936         * ggc-common.c: Include timevar.h.
17937         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
17938         * timevar.def (TV_PCH_SAVE): Define.
17939         (TV_PCH_CPP_SAVE): Define.
17940         (TV_PCH_PTR_REALLOC): Define.
17941         (TV_PCH_PTR_SORT): Define.
17942         (TV_PCH_RESTORE): Define.
17943         (TV_PCH_CPP_RESTORE): Define.
17944
17945 2010-04-13  Michael Matz  <matz@suse.de>
17946
17947         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
17948         into MINUS_EXPRs.
17949         (can_reassociate_p): New function.
17950         (break_up_subtract_bb, reassociate_bb): Use it.
17951
17952 2010-04-13  Richard Guenther  <rguenther@suse.de>
17953
17954         PR bootstrap/43737
17955         * builtins.c (c_readstr): Fix assert.
17956
17957 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
17958
17959         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
17960         when generating cltd insn.
17961
17962         (*ashl<mode>3_1): Remove special handling for register operand 2.
17963         (*ashlsi3_1_zext): Ditto.
17964         (*ashlhi3_1): Ditto.
17965         (*ashlhi3_1_lea): Ditto.
17966         (*ashlqi3_1): Ditto.
17967         (*ashlqi3_1_lea): Ditto.
17968         (*<shiftrt_insn><mode>3_1): Ditto.
17969         (*<shiftrt_insn>si3_1_zext): Ditto.
17970         (*<shiftrt_insn>qi3_1_slp): Ditto.
17971         (*<rotate_insn><mode>3_1): Ditto.
17972         (*<rotate_insn>si3_1_zext): Ditto.
17973         (*<rotate_insn>qi3_1_slp): Ditto.
17974
17975 2010-04-13  Richard Guenther  <rguenther@suse.de>
17976
17977         * tree-ssa-structalias.c (callused_id): Remove.
17978         (call_stmt_vars): New.
17979         (get_call_vi): Likewise.
17980         (lookup_call_use_vi): Likewise.
17981         (lookup_call_clobber_vi): Likewise.
17982         (get_call_use_vi): Likewise.
17983         (get_call_clobber_vi): Likewise.
17984         (make_transitive_closure_constraints): Likewise.
17985         (handle_const_call): Adjust to do per-call call-used handling.
17986         (handle_pure_call): Likewise.
17987         (find_what_var_points_to): Remove general callused handling.
17988         (init_base_vars): Likewise.
17989         (init_alias_vars): Initialize call_stmt_vars.
17990         (compute_points_to_sets): Process call-used and call-clobbered
17991         vars for call statements.
17992         (delete_points_to_sets): Free call_stmt_vars.
17993
17994 2010-04-13  Richard Guenther  <rguenther@suse.de>
17995
17996         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
17997         Only add RW dependence for dependence distance zero.
17998         Adjust maximal vectorization factor according to dependences.
17999         Move alignment handling ...
18000         (vect_find_same_alignment_drs): ... here.  New function.
18001         (vect_analyze_data_ref_dependences): Adjust.
18002         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
18003         (vect_analyze_data_refs): Adjust minimal vectorization factor
18004         according to data references.
18005         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
18006         dependences before determining the vectorization factor.
18007         Analyze alignment after determining the vectorization factor.
18008         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
18009         dependences before alignment.
18010         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
18011         Adjust prototype.
18012         (vect_analyze_data_refs): Likewise.
18013         (MAX_VECTORIZATION_FACTOR): New define.
18014
18015 2010-04-13  Duncan Sands  <baldrick@free.fr>
18016
18017         * except.h (lang_eh_type_covers): Remove.
18018         * except.c (lang_eh_type_covers): Likewise.
18019
18020 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18021             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18022
18023         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
18024         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
18025         UNITS_PER_LONG where it is ABI relevant.
18026         (s390_return_addr_rtx): Likewise.
18027         (s390_back_chain_rtx): Likewise.
18028         (s390_frame_area): Likewise.
18029         (s390_frame_info): Likewise.
18030         (s390_initial_elimination_offset): Likewise.
18031         (save_gprs): Likewise.
18032         (s390_emit_prologue): Likewise.
18033         (s390_emit_epilogue): Likewise.
18034         (s390_function_arg_advance): Likewise.
18035         (s390_function_arg): Likewise.
18036         (s390_va_start): Likewise.
18037         (s390_gimplify_va_arg): Likewise.
18038         (s390_function_profiler): Likewise.
18039         (s390_optimize_prologue): Likewise.
18040         (s390_rtx_costs): Likewise.
18041         (s390_secondary_reload): Likewise.
18042         (s390_promote_function_mode): Likewise.
18043         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
18044         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
18045         registers available.
18046         (s390_unwind_word_mode): New function.
18047         (s390_function_value): Split 64 bit values into register pair if
18048         used as return value.
18049         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
18050         function call parameters.  Handle parallels.
18051         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
18052         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
18053         (DWARF_CIE_DATA_ALIGNMENT): New macro.
18054         (s390_expand_setmem): Remove unused variable src_addr.
18055         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
18056         deal with 64 bit registers.
18057         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
18058         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
18059         (UNITS_PER_LONG): New macro.
18060         * libjava/include/s390-signal.h: Define extended ucontext
18061         structure containing the upper halfs of the 64 bit registers.
18062
18063 2010-04-13  Simon Baldwin  <simonb@google.com>
18064
18065         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
18066
18067 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
18068
18069         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
18070         rvalue on the RHS if the LHS is of a non-renamable type.
18071         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
18072
18073 2010-04-13  Matthias Klose  <doko@ubuntu.com>
18074
18075         * gcc.c (cc1_options): Handle -iplugindir before processing
18076         the cc1 spec. Only add -iplugindir once.
18077         (cpp_unique_options): Add -iplugindir option if -fplugin* options
18078         found.
18079         * common.opt (iplugindir): Remove `Separate' property, initialize.
18080         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
18081         option.
18082         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
18083         (distclean): Remove plugin dir.
18084         * doc/invoke.texi: Document -iplugindir.
18085
18086 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
18087
18088         * doc/plugins.texi (Loading Plugins): Document short
18089         -fplugin=foo option.
18090         (Plugin API): Mention default_plugin_dir_name function.
18091
18092         * gcc.c (find_file_spec_function): Add new declaration.
18093         (static_spec_func): Use it for "find-file".
18094         (find_file_spec_function): Add new function.
18095         (cc1_options): Add -iplugindir option if -fplugin* options found.
18096
18097         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
18098
18099         * plugin.c (add_new_plugin): Updated comment, and handle short
18100         plugin name.
18101         (default_plugin_dir_name): Added new function.
18102
18103         * common.opt (iplugindir): New option to set the plugin directory.
18104
18105 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
18106
18107         * config/i386/i386.md (any_rotate): New code iterator.
18108         (rotate_insn): New code attribute.
18109         (rotate): Ditto.
18110         (SWIM124): New mode iterator.
18111         (<rotate_insn>ti3): New expander.
18112         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
18113         any_rotate code iterator.
18114         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
18115         using any_rotate code iterator and SWIM124 mode iterator.
18116         (ix86_rotlti3): New insn_and_split pattern.
18117         (ix86_rotrti3): Ditto.
18118         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
18119         ix86_rotl{di,ti}3 patterns.
18120         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
18121         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
18122         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
18123         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
18124         code iterator and SWI mode iterator.
18125         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
18126         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
18127         code iterator.
18128         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
18129         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
18130         (bswap rotatert splitter): Add splitter.
18131         (bswap splitter): Macroize splitter using any_rotate code iterator.
18132         Add insn predicate to split only for TARGET_USE_XCHGB or when
18133         optimizing function for size.
18134
18135 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
18136
18137         * config/pa/pa.c (emit_move_sequence): Remove use of
18138         deleted variable flag_argument_noalias.
18139
18140 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18141
18142         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
18143         configurations.
18144         Add to unsupported targets list.
18145         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
18146         sparc*-sun-solaris2.[567]* from target lists.
18147         * configure: Regenerate.
18148         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
18149         removal.
18150         Remove Solaris 7 patch references.
18151         (Specific, sparc-sun-solaris2.7): Removed.
18152         (sparc-sun-solaris2*): Update Solaris 7 example.
18153         (sparc64-*-solaris2*): Likewise.
18154
18155 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18156
18157         * config.build (alpha*-dec-osf4*): Remove.
18158         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
18159         of obsolete configurations.
18160         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
18161         support.
18162         * config/alpha/t-osf4: Renamed to ...
18163         * config/alpha/t-osf5: ... this.
18164         * config/alpha/osf.h: Renamed to ...
18165         * config/alpha/osf5.h: ... this.
18166         Merged old osf5.h contents.
18167         Update comments.
18168         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
18169         (EXTRA_SPECS): Removed.
18170         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
18171         reflect removal of Tru64 UNIX V4.0/V5.0 support.
18172         Document that.
18173
18174 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18175
18176         * doc/contrib.texi (Contributors, Rainer Orth): Update.
18177
18178 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
18179
18180         PR/43702
18181         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
18182         __thiscall convention.
18183
18184 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
18185
18186         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
18187         orig_base.
18188         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
18189
18190 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
18191
18192         * function.c (assign_parms_initialize_all): Add unused attribute
18193         to fntype.
18194
18195 2010-04-12  Richard Guenther  <rguenther@suse.de>
18196
18197         * gsstruct.def (GSS_CALL): New.
18198         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
18199         * gimple.h: Include tree-ssa-alias.h.
18200         (struct gimple_statement_call): New.
18201         (union gimple_statement_struct_d): Add gimple_call member.
18202         (gimple_call_reset_alias_info): Declare.
18203         (gimple_call_use_set): New function.
18204         (gimple_call_clobber_set): Likewise.
18205         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
18206         * gimple.c (gimple_call_reset_alias_info): New function.
18207         (gimple_build_call_1): Call it.
18208         * lto-streamer-in.c (input_gimple_stmt): Likewise.
18209         * tree-inline.c (remap_gimple_stmt): Likewise.
18210         (expand_call_inline): Remove callused handling.
18211         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
18212         * tree-dfa.c (dump_variable): Likewise.
18213         * tree-parloops.c (parallelize_loops): Likewise.
18214         * tree-ssa.c (init_tree_ssa): Likewise.
18215         (delete_tree_ssa): Likewise.
18216         * tree-flow-inline.h (is_call_used): Remove.
18217         * tree-flow.h (struct gimple_df): Remove callused member.
18218         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
18219         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
18220         (ref_maybe_used_by_call_p_1): Simplify.
18221         (call_may_clobber_ref_p_1): Likewise.
18222         * tree-ssa-structalias.c (compute_points_to_sets): Set
18223         the call stmt used and clobbered sets.
18224         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
18225         (find_tail_calls): Verify the tail call.
18226
18227 2010-04-12  Richard Guenther  <rguenther@suse.de>
18228
18229         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
18230         single-iteration always-inline inlining.
18231         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
18232         (cgraph_decide_inlining): Do not handle always-inline specially.
18233         (try_inline): Remove always-inline cycle detection special case.
18234         Do not recurse on always-inlines.
18235         (cgraph_early_inlining): Do not iterate if not optimizing.
18236         (cgraph_gate_early_inlining): remove.
18237         (pass_early_inline): Run unconditionally.
18238         (gate_cgraph_decide_inlining): New function.
18239         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
18240         not inlining or optimizing.
18241         (cgraph_decide_inlining_of_small_functions): Also consider
18242         always-inline functions.
18243         (cgraph_default_inline_p): Return true for nodes which should
18244         disregard inline limits.
18245         (estimate_function_body_sizes): Assume zero size and time for
18246         nodes which are marked as disregarding inline limits.
18247         (cgraph_decide_recursive_inlining): Do not perform recursive
18248         inlining on always-inline nodes.
18249
18250 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
18251
18252         PR bootstrap/43699
18253         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
18254         for exprs satisfying handled_component_p.
18255
18256 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
18257
18258         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
18259         non-constant aggregate elements.
18260
18261         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
18262         is a real initialization.
18263
18264 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
18265
18266         PR c/36774
18267         * c-decl.c (start_function): Move forward check for nested function.
18268
18269 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
18270
18271         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
18272         * config/sh/sh.c: Include reload.h.
18273         (sh_legitimize_reload_address): New.
18274         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
18275         sh_legitimize_reload_address.
18276
18277 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
18278
18279         * config/sh/sh.md (*movqi_pop): New insn pattern.
18280         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
18281
18282 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
18283
18284         * config/i386/i386.md (any_shiftrt): New code iterator.
18285         (shiftrt_insn): New code attribute.
18286         (shiftrt): Ditto.
18287         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
18288         using any_shiftrt code iterator.
18289         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
18290         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
18291         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
18292         pattern from corresponding peephole2 patterns.
18293         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
18294         using any_shiftrt code iterator.
18295         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
18296         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
18297         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
18298         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
18299         *{ashr,lshr}<mode>3_cmp_zext.
18300         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
18301
18302 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
18303
18304         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
18305         scratch register.
18306         (*lshr<mode>3_cconly): Ditto.
18307
18308 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
18309
18310         * config/i386/i386.md (lshr<mode>3): Macroize expander from
18311         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
18312         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
18313         pattern from *lshr{di,ti}3_1 and corresponding splitters using
18314         DWI mode iterator.
18315         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
18316         from corresponding peephole2 patterns.
18317         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
18318         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
18319         and *lshrdi3_1_rex64 using SWI mode iterator.
18320         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
18321         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
18322         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
18323         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
18324         and *lshrdi3_cmp_rex64 using SWI mode iterator.
18325         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
18326         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
18327         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
18328         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
18329         SWI mode iterator.
18330
18331 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
18332
18333         * config/i386/i386.md (ashr<mode>3): Macroize expander from
18334         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
18335         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
18336         pattern from *ashr{di,ti}3_1 and corresponding splitters using
18337         DWI mode iterator.
18338         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
18339         from corresponding peephole2 patterns.
18340         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
18341         (ashrsi3_cvt): Rename from ashrsi3_31.
18342         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
18343         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
18344         and x86_64_shift_adj_3 using SWI48 mode iterator.
18345         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
18346         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
18347         and *ashrdi3_1_rex64 using SWI mode iterator.
18348         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
18349         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
18350         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
18351         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
18352         and *ashrdi3_cmp_rex64 using SWI mode iterator.
18353         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
18354         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
18355         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
18356         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
18357         SWI mode iterator.
18358         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
18359         * config/i386/i386.c (ix86_split_ashr): Update for renamed
18360         x86_shift<mode>_adj_3 expanders.
18361
18362 2010-04-10  Wei Guozhi  <carrot@google.com>
18363
18364         PR target/42601
18365         * config/arm/arm.c (arm_pic_static_addr): New function.
18366         (legitimize_pic_address): Call arm_pic_static_addr when it detects
18367         a static symbol.
18368         (arm_output_addr_const_extra): Output expression for new pattern.
18369         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
18370
18371 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
18372
18373         * ira-costs.c (record_reg_classes): Ignore alternatives that are
18374         not enabled.
18375
18376         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
18377         * web.c: Include "insn-config.h" and "recog.h".
18378         (union_match_dups): New function.
18379         (web_main): Call it.
18380         (union_defs): Don't try to recognize match_dups.
18381
18382         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
18383         if doing so would replace the entire pattern.
18384
18385 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
18386
18387         PR target/43707
18388         PR target/43709
18389         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
18390         and splitter pattern.  Change splitter operand 1 predicate to
18391         nonmemory_operand.
18392
18393 2010-04-09  Martin Jambor  <mjambor@suse.cz>
18394
18395         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
18396         lattices are addresses of CONST_DECLs with the same initial value.
18397         (ipcp_print_all_lattices): Print values of CONST_DECLs.
18398         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
18399
18400 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
18401             Bernd Schmidt  <bernds@codesourcery.com>
18402
18403         * loop-invariant.c (replace_uses): New static function.
18404         (move_invariant_reg): Use it to ensure we can replace the uses.
18405
18406 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
18407
18408         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
18409         function template.
18410         (picochip_override_options): Enable section anchors only above -O1.
18411         (picochip_reorg): Fixed a couple of build warnings.
18412
18413 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18414
18415         * configure.ac (plugin -rdynamic test): Log result.
18416         * configure: Regenerate.
18417         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
18418         (RDYNAMIC_SPEC): Define.
18419         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
18420
18421 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18422
18423         * configure.ac: Determine Sun ld version numbers.
18424         (comdat_group): Restrict GNU ld version checks to gld.
18425         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
18426         (enable_comdat): Support --enable-comdat.
18427         * configure: Regenerate.
18428         * doc/install.texi (Configuration): Document --enable-comdat.
18429
18430 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18431
18432         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
18433         * config/sol2-gld.h: ... here.
18434         * config.gcc (sparc*-*-solaris2*): Reflect this.
18435         (i[34567]86-*-solaris2*): Use it.
18436
18437 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
18438
18439         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
18440         setup_clocks_p.
18441         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
18442
18443 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18444
18445         PR 42965
18446         * diagnostic.c (diagnostic_initialize): Initialize
18447         some_warnings_are_errors.
18448         (diagnostic_finish): New.
18449         (diagnostic_action_after_output): Call it before exiting.
18450         (diagnostic_report_diagnostic): Do not print message here. Set
18451         some_warnings_are_errors.
18452         * diagnostic.h (diagnostic_context): Delete
18453         issue_warnings_are_errors_message. Add some_warnings_are_errors.
18454         (diagnostic_finish): Declare.
18455         * toplev.c (toplev_main): Call it before exit.
18456
18457 2010-04-09  Jason Merrill  <jason@redhat.com>
18458
18459         PR c++/42623
18460         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
18461         for incomplete type.
18462
18463         PR c++/41788
18464         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
18465         based on a warning flag.
18466
18467 2010-04-09  Richard Guenther  <rguenther@suse.de>
18468
18469         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
18470
18471 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
18472
18473         PR bootstrap/43684
18474         * varasm.c (default_assemble_visibility): Wrap vars that are
18475         set, but unused, by targets without GAS.
18476         * config/rs6000/rs6000.c (paired_emit_vector_compare):
18477         Remove set, but unused, vars.
18478         (rs6000_legitimize_tls_address): Likewise.
18479         (altivec_expand_dst_builtin): Likewise.
18480         * config/darwin.c (machopic_classify_symbol): Likewise.
18481         (machopic_indirection_name): Likewise.
18482
18483 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
18484
18485         * config/i386/i386.md (DWI): New mode iterator.
18486         (S): New mode attribute.
18487         (shift_operand): Ditto.
18488         (shift_immediate_operand): Ditto.
18489         (ashl_input_operand): Ditto.
18490         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
18491         using SDWIM mode iterator.
18492         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
18493         pattern from *ashl{di,ti}3_1 and corresponding splitters using
18494         DWI mode iterator.
18495         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
18496         from corresponding peephole2 patterns.
18497         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
18498         and x86_64_shift_adj_1 using SWI48 mode iterator.
18499         (x86_shift<mode>_adj_2): Ditto.
18500         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
18501         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
18502         using SWI48 mode iterator.
18503         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
18504         *ashldi3_cmp_rex64 using SWI mode iterator.
18505         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
18506         *ashldi3_cconly_rex64 using SWI mode iterator.
18507         * config/i386/i386.c (ix86_split_ashl): Update for renamed
18508         x86_shift<mode>_adj_{1,2}.
18509         (ix86_split_ashr): Ditto.
18510         (ix86_split_lshr): Ditto.
18511
18512 2010-04-09  Richard Guenther  <rguenther@suse.de>
18513
18514         * target.h (builtin_conversion): Pass in input and output types.
18515         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
18516         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
18517         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
18518         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
18519
18520         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
18521         Handle AVX modes.
18522         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
18523
18524 2010-04-09  Richard Guenther  <rguenther@suse.de>
18525
18526         PR target/43152
18527         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
18528
18529 2010-04-09  Richard Guenther  <rguenther@suse.de>
18530
18531         * tree-vectorizer.h (struct _stmt_vec_info): Document
18532         that vectype is the type of the LHS.
18533         (supportable_widening_operation, supportable_narrowing_operation):
18534         Get both input and output vector types as arguments.
18535         (vect_is_simple_use_1): Declare.
18536         (get_same_sized_vectype): Likewise.
18537         * tree-vect-loop.c (vect_determine_vectorization_factor):
18538         Set STMT_VINFO_VECTYPE to the vector type of the def.
18539         (vectorizable_reduction): Adjust.
18540         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
18541         Adjust.  Specify the output vector type.
18542         (vect_pattern_recog_1): Adjust.
18543         * tree-vect-stmts.c (get_same_sized_vectype): New function.
18544         (vectorizable_call): Adjust.
18545         (vectorizable_conversion): Likewise.
18546         (vectorizable_operation): Likewise.
18547         (vectorizable_type_demotion): Likewise.
18548         (vectorizable_type_promotion): Likewise.
18549         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
18550         the def.
18551         (vect_is_simple_use_1): New function.
18552         (supportable_widening_operation): Get both input and output
18553         vector types.
18554         (supportable_narrowing_operation): Likewise.
18555         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
18556
18557 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
18558
18559         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
18560         __thiscall and _thiscall as predefined macros.
18561         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
18562         thiscall attribute handling.
18563         (ix86_comp_type_attributes): Likewise.
18564         (ix86_function_regparm): Likewise.
18565         (ix86_return_pops_args): Likewise.
18566         (init_cumulative_args): Likewise.
18567         (find_drap_reg): Likewise.
18568         (ix86_static_chain): Likewise.
18569         (x86_this_parameter): Likewise.
18570         (x86_output_mi_thunk): Likewise.
18571         (ix86_attribute_table): Add description for thiscall attribute.
18572         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
18573         * doc/extend.texi: Add documentation for thiscall.
18574
18575 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18576
18577         PR c++/28584
18578         * c.opt (Wint-to-pointer-cast): Available in C++.
18579         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
18580
18581 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
18582
18583         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
18584         * calls.c (expand_call): Pass the function type to aggregate_value_p.
18585         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
18586         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
18587         function type instead.  Reorder and simplify checks.
18588
18589         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
18590
18591 2010-04-08  Jing Yu  <jingyu@google.com>
18592             Zdenek Dvorak  <ook@ucw.cz>
18593
18594         PR tree-optimization/42720
18595         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
18596         loop unswitch conditions here from ...
18597         (tree_unswitch_single_loop): ... here.
18598
18599 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
18600
18601         * tree-if-conv.c: Fix comments and simplify logic.
18602
18603 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
18604
18605         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
18606         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
18607         (main_tree_if_conversion): Update call to tree_if_conversion.
18608
18609 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18610
18611         PR 42485
18612         * doc/invoke.texi (-b,-V): Delete.
18613         * doc/tm.texi: Do not mention -b.
18614         * gcc.c (display_help): Delete -b and -V.
18615         (process_command): Delete -b and -V.
18616         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
18617
18618 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
18619             Wolfgang Gellerich  <gellerich@de.ibm.com>
18620
18621         Implement target hook for loop unrolling
18622         * target.h (loop_unroll_adjust): Add a new target hook function.
18623         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
18624         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
18625         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
18626         (s390_loop_unroll_adjust): Implement the new target hook for s390.
18627         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
18628         target hook.
18629         (decide_unroll_stupid): Likewise.
18630
18631 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18632
18633         PR target/43643
18634         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
18635
18636 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18637
18638         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
18639         (Specific, *-*-solaris2*): Likewise.
18640         Don't prefer Sun as over GNU as.
18641
18642 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
18643
18644         * config/s390/s390.c (override_options): Adjust the z10 defaults
18645         for max-unroll-times, max-completely-peeled-insns
18646         and max-completely-peel-times.
18647
18648 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18649
18650         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
18651         instructions for z10.
18652         (s390_expand_setmem): Likewise.
18653         (s390_expand_cmpmem): Likewise.
18654
18655 2010-04-08  Richard Guenther  <rguenther@suse.de>
18656
18657         PR tree-optimization/43679
18658         * tree-ssa-pre.c (eliminate): Only propagate copies.
18659
18660 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
18661
18662         PR bootstrap/43681
18663         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
18664         set but not used variable warning.
18665
18666 2010-04-08  Wei Guozhi  <carrot@google.com>
18667
18668         PR target/41653
18669         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
18670         (arm_size_rtx_costs): Call the new function when optimized for size.
18671
18672 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
18673
18674         PR debug/43670
18675         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
18676         op0 is not a MEM, just return NULL instead of assertion
18677         failure.
18678         (discover_nonconstant_array_refs): Don't walk debug stmts.
18679
18680 2010-04-08  Doug Kwan  <dougkwan@google.com>
18681
18682         * configure.ac: Recognize gold and do not use its version number
18683         to test ld features.
18684         * configure: Regenerate.
18685
18686 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
18687
18688         PR middle-end/40815
18689         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
18690         (negate_value): Move code to push elements to broken_up_substracts ...
18691         (eliminate_plus_minus_pair): ... here.  Push operands that have no
18692         negative pair to plus_negates.
18693         (repropagate_negates, init_reassoc, fini_reassoc): Update.
18694
18695 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18696
18697         * doc/install.texi (Configuration): Move description of
18698         --enable-lto, --with-libelf*, --enable-gold from Java section to
18699         general section.
18700
18701         * doc/generic.texi (Working with declarations)
18702         (Function Properties, C and C++ Trees): Fix typos.
18703         * doc/sourcebuild.texi (Top Level): Likewise.
18704
18705 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
18706
18707         PR c/18624
18708         * tree.h (DECL_READ_P): Define.
18709         (struct tree_decl_common): Add decl_read_flag.
18710         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
18711         a set but not used warning.
18712         (merge_decls): Merge DECL_READ_P flag.
18713         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
18714         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
18715         * c-common.c (handle_used_attribute, handle_unused_attribute):
18716         Likewise.
18717         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
18718         New prototypes.
18719         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
18720         New functions.
18721         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
18722         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
18723         c_parser_binary_expression, c_parser_cast_expression,
18724         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
18725         Call default_function_array_read_conversion instead of
18726         default_function_array_conversion where needed.
18727         (c_parser_unary_expression, c_parser_conditional_expression,
18728         c_parser_postfix_expression_after_primary, c_parser_initelt):
18729         Likewise.  Call mark_exp_read where needed.
18730         (c_parser_statement_after_labels, c_parser_asm_operands,
18731         c_parser_typeof_specifier, c_parser_sizeof_expression,
18732         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
18733         where needed.
18734         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
18735         New.
18736         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
18737         (warn_unused_but_set_parameter): Default to warn_unused
18738         && extra_warnings.
18739         * doc/invoke.texi: Document -Wunused-but-set-variable and
18740         -Wunused-but-set-parameter.
18741
18742         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
18743         used count variable.
18744         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
18745         when operandN variables aren't used in the body of the expander
18746         or splitter.
18747         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
18748         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
18749         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
18750         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
18751         FOR_EACH_IMM_USE_ON_STMT): Likewise.
18752         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
18753         * tree.c (PROCESS_ARG): Likewise.
18754
18755 2010-04-07  Simon Baldwin  <simonb@google.com>
18756
18757         * diagnostic.h (diagnostic_override_option_index): New macro to
18758         set a diagnostic's option_index.
18759         * c-tree.h (c_cpp_error): Add warning reason argument.
18760         * opts.c (_warning_as_error_callback): New.
18761         (register_warning_as_error_callback): Store callback for
18762         warnings enabled via enable_warning_as_error.
18763         (enable_warning_as_error): Call callback, minor code tidy.
18764         * opts.h (register_warning_as_error_callback): Declare.
18765         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
18766         response to -Werror=.
18767         (c_common_init_options): Register warning_as_error_callback in opts.c.
18768         * common.opt: Add -Wno-cpp option.
18769         * c-common.c (struct reason_option_codes_t): Map cpp warning
18770         reason codes to gcc option indexes.
18771         * (c_option_controlling_cpp_error): New function, lookup the gcc
18772         option index for a cpp warning reason code.
18773         * (c_cpp_error): Add warning reason argument, call
18774         c_option_controlling_cpp_error for diagnostic_override_option_index.
18775         * doc/invoke.texi: Document -Wno-cpp.
18776
18777 2010-04-07  Richard Guenther  <rguenther@suse.de>
18778
18779         * ipa-reference.c (mark_load): Use get_base_address.
18780         (mark_store): Likewise.
18781
18782         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
18783         inserting GIMPLE_NOPs into the IL.
18784         * tree-ssa-structalias.c (get_constraint_for_component_ref):
18785         Explicitly strip handled components and indirect references.
18786
18787         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
18788         folding address expressions.
18789         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
18790         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
18791         operand_equal_p to compare decls.
18792         (ptr_deref_may_alias_decl_p): Likewise.
18793         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
18794         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
18795         Handle reversed comparison ops.
18796         * tree-sra.c (asm_visit_addr): Use get_base_address.
18797         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
18798         * ipa-reference.c (mark_address): Use get_base_address.
18799
18800 2010-04-07  Richard Guenther  <rguenther@suse.de>
18801
18802         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
18803         Propagate constants everywhere.
18804
18805 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
18806
18807         PR debug/43516
18808         * tree.c (MAX_INT_CACHED_PREC): Define.
18809         (nonstandard_integer_type_cache): New array.
18810         (build_nonstandard_integer_type): Cache results for precision
18811         <= MAX_INT_CACHED_PREC.
18812
18813 2010-04-07  Richard Guenther  <rguenther@suse.de>
18814
18815         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
18816         -fargument-noalias-global, -fargument-noalias-anything): Remove.
18817         * common.opt: Likewise.
18818         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
18819         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
18820         (nonoverlapping_memrefs_p): Likewise.
18821         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
18822         * opts.c (common_handle_option): Handle OPT_fargument_alias,
18823         OPT_fargument_noalias, OPT_fargument_noalias_anything and
18824         OPT_fargument_noalias_global for backward compatibility.
18825
18826 2010-04-07  Richard Guenther  <rguenther@suse.de>
18827
18828         PR tree-optimization/43270
18829         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
18830         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
18831         * tree-ssa-pre.c (phi_translate_1): Adjust.
18832         (fully_constant_expression): Split out vn_reference handling to ...
18833         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
18834         Fold reads from constant strings.
18835         (vn_reference_lookup): Handle fully constant references.
18836         (vn_reference_lookup_pieces): Likewise.
18837         * Makefile.in (expmed.o-warn): Add -Wno-error.
18838
18839 2010-04-07  Martin Jambor  <mjambor@suse.cz>
18840
18841         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
18842
18843 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
18844
18845         PR driver/41594
18846         * gcc.c: Add -static-libstdc++ to list of recognized options.
18847
18848 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18849
18850         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
18851
18852 2010-04-07  Richard Guenther  <rguenther@suse.de>
18853
18854         PR middle-end/42617
18855         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
18856         bases build simple mem attributes to retain points-to information.
18857
18858 2010-04-07  Richard Guenther  <rguenther@suse.de>
18859
18860         PR middle-end/42617
18861         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
18862         preserve points-to related information.
18863
18864 2010-04-07  Richard Guenther  <rguenther@suse.de>
18865
18866         PR middle-end/42617
18867         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
18868         discard plain indirect references.
18869         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
18870         * tree.c (tree_nop_conversion): Likewise.
18871
18872 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
18873
18874         PR debug/43628
18875         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
18876
18877 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
18878
18879         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
18880         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
18881
18882 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
18883
18884         * tree-if-conv.c: Fix indentation and comments.
18885
18886 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
18887
18888         * tree-if-conv.c: Sort static functions in topological order.
18889
18890 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
18891
18892         * tree-if-conv.c: Fix indentation and comments.
18893
18894 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18895
18896         PR middle-end/43519
18897         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
18898         lang_hooks.types.type_for_size instead of
18899         build_nonstandard_integer_type.
18900         When converting an unsigned type to signed, double its precision.
18901         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
18902         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
18903         (graphite_create_new_loop_guard): When ub + 1 wraps around,
18904         use lb <= ub.
18905
18906 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18907
18908         PR middle-end/43519
18909         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
18910         POINTER_PLUS_EXPR for pointer types.
18911
18912 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18913
18914         PR middle-end/43519
18915         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
18916         * graphite-clast-to-gimple.c: Include langhooks.h.
18917         (max_signed_precision_type): New.
18918         (max_precision_type): Takes two types as arguments.
18919         (precision_for_value): New.
18920         (precision_for_interval): New.
18921         (gcc_type_for_interval): New.
18922         (gcc_type_for_value): New.
18923         (gcc_type_for_clast_term): New.
18924         (gcc_type_for_clast_red): New.
18925         (gcc_type_for_clast_bin): New.
18926         (gcc_type_for_clast_expr): Split up into several functions.
18927         (gcc_type_for_clast_eq): Rewritten.
18928         (compute_bounds_for_level): New.
18929         (compute_type_for_level_1): New.
18930         (compute_type_for_level): New.
18931         (gcc_type_for_cloog_iv): Removed.
18932         (gcc_type_for_iv_of_clast_loop): Rewritten.
18933         (graphite_create_new_loop): Compute the lower and upper bound types
18934         with gcc_type_for_clast_expr.
18935         (graphite_create_new_loop_guard): Same.
18936         (find_cloog_iv_in_expr): Removed.
18937         (compute_cloog_iv_types_1): Removed.
18938         (compute_cloog_iv_types): Removed.
18939         (gloog): Do not call compute_cloog_iv_types.
18940         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
18941         GBB_CLOOG_IV_TYPES.
18942         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
18943         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
18944         (GBB_CLOOG_IV_TYPES): Removed.
18945
18946 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18947
18948         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
18949         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
18950         (detect_commutative_reduction): Same.
18951
18952 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18953
18954         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
18955         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
18956         argument.
18957         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
18958         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
18959         (rewrite_commutative_reductions_out_of_ssa): Same.
18960         * passes.c (execute_function_todo): Call verify_ssa for every pass
18961         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
18962         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
18963         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
18964         with an extra argument.
18965         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
18966         verify_ssa only when the extra argument is true.
18967         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
18968         with an extra argument.
18969         (tree_transform_and_unroll_loop): Same.
18970
18971 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18972
18973         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
18974         for all the passes of the LNO having LOOP_CLOSED_SSA.
18975         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
18976         * tree-loop-distribution.c (pass_loop_distribution): Same.
18977         * tree-pass.h (TODO_verify_loops): Removed.
18978         * tree-ssa-loop.c (pass_tree_loop_init): Same.
18979         (pass_lim): Same.
18980         (pass_tree_unswitch): Same.
18981         (pass_predcom): Same.
18982         (pass_vectorize): Same.
18983         (pass_linear_transform): Same.
18984         (pass_graphite_transforms): Same.
18985         (pass_iv_canon): Same.
18986         (pass_complete_unroll): Same.
18987         (pass_complete_unrolli): Same.
18988         (pass_parallelize_loops): Same.
18989         (pass_loop_prefetch): Same.
18990         (pass_iv_optimize): Same.
18991
18992 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
18993
18994         PR middle-end/32824
18995         * passes.c (init_optimization_passes): Move pass_lim before
18996         pass_copy_prop and pass_dce_loop.
18997
18998 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
18999
19000         PR target/43667
19001         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
19002         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
19003         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
19004         MULTI_* defines for 4 argument vpermil2p* builtins.
19005
19006 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
19007
19008         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
19009         * config/i386/i386.c (x86_maybe_negate_const_int): New.
19010         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
19011         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
19012         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
19013         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
19014         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
19015         Use x86_maybe_negate_const_int to output insn mnemonic.
19016         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
19017         check from instruction predicate.  Update comments.
19018         * config/i386/sync.md (sync_add<mode>): Use
19019         x86_maybe_negate_const_int to output insn mnemonic.
19020
19021 2010-04-06  Jan Hubicka  <jh@suse.cz>
19022
19023         PR tree-optimization/42906
19024         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
19025         IGNORE_SELF argument.  Set visited_control_parents for fully
19026         processed BBs.
19027         (find_obviously_necessary_stmts): Update call of
19028         mark_control_dependent_edges_necessary.
19029         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
19030
19031 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
19032
19033         * config/i386/i386.md: Remove comment about 'e' and 'E'
19034         operand modifier.
19035
19036 2010-04-06  Richard Guenther  <rguenther@suse.de>
19037
19038         PR tree-optimization/43627
19039         * tree-vrp.c (extract_range_from_unary_expr): Widenings
19040         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
19041         not varying.
19042
19043 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
19044
19045         * BASE-VER: Change to 4.6.0.
19046
19047         PR target/43638
19048         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
19049         handling.
19050
19051 2010-04-06  Richard Guenther  <rguenther@suse.de>
19052
19053         PR middle-end/43661
19054         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
19055
19056 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19057
19058         * doc/invoke.texi (Optimize Options): Document that LTO
19059         won't remove object access purely due to incompatible
19060         declarations.
19061
19062 2010-04-04  Matthias Klose  <doko@ubuntu.com>
19063
19064         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
19065         Initialize variable.
19066
19067 2010-04-03  Richard Guenther  <rguenther@suse.de>
19068
19069         PR middle-end/42509
19070         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
19071         require a non-NULL MEM_OFFSET.
19072
19073 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
19074
19075         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
19076         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
19077         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
19078         config/alpha/predicates.md, config/arm/arm.md,
19079         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
19080         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
19081         config/darwin9.h, config/darwin.c, config/darwin.h,
19082         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
19083         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
19084         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
19085         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
19086         config/mips/mips.md, config/mn10300/mn10300.c,
19087         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
19088         config/rs6000/aix.h, config/rs6000/dfp.md,
19089         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
19090         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
19091         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
19092         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
19093         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
19094         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
19095         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
19096         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
19097         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
19098         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
19099         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
19100         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
19101         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
19102         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
19103         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
19104         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
19105         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
19106         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
19107         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
19108         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
19109         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
19110         opt-functions.awk, opth-gen.awk, params.def, passes.c,
19111         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
19112         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
19113         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
19114         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
19115         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
19116         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
19117         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
19118         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
19119         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
19120         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
19121         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
19122         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
19123         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
19124         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
19125
19126 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19127
19128         PR other/43620
19129         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
19130         * aclocal.m4: Regenerate.
19131
19132 2010-04-02  Richard Guenther  <rguenther@suse.de>
19133
19134         PR tree-optimization/43629
19135         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
19136         if we have seen a constant value.
19137
19138 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
19139
19140         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
19141
19142 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
19143
19144         PR target/43469
19145         * arm.c (legitimize_tls_address): Adjust call to
19146         gen_tls_load_dot_plus_four.
19147         (arm_note_pic_base): New function.
19148         (arm_cannot_copy_insn_p): Use it.
19149         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
19150         constraint.
19151
19152 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19153
19154         PR bootstrap/43531
19155
19156         Revert:
19157         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19158
19159         * Makefile.in ($(out_object_file)): Depend on
19160         gt-$(basename $(notdir $(out_file))).h.
19161
19162 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
19163
19164         * config.gcc (lm32-*-rtems*): Add t-lm32.
19165
19166 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
19167
19168         * config.gcc: Add lm32-*-rtems*.
19169         * config/lm32/rtems.h: New file.
19170
19171 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
19172
19173         PR target/42609
19174         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
19175
19176 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
19177
19178         * dwarf2out.c (output_compilation_unit_header): For
19179         -gdwarf-4 use version 4 instead of version 3.
19180         (output_line_info): For version 4 and above emit additional
19181         maximum ops per insn header field.
19182         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
19183
19184         * dwarf2out.c (is_c_family, is_java): Remove.
19185         (lower_bound_default): New function.
19186         (add_bound_info, gen_descr_array_type_die): Use it.
19187
19188 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
19189
19190         PR debug/43325
19191         * dwarf2out.c (gen_variable_die): Allow debug info for variable
19192         re-declaration when it happens in a function.
19193
19194 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
19195
19196         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
19197         (cgraph_remove_function_insertion_hook): Same.
19198         (cgraph_call_function_insertion_hooks): Same.
19199
19200 2010-04-01  Richard Guenther  <rguenther@suse.de>
19201
19202         PR middle-end/43614
19203         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
19204         and TREE_THIS_VOLATILE.
19205         (copy_ref_info): Likewise.
19206         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
19207         * tree.c (build6_stat): Ignore side-effects of all but arg5
19208         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
19209         TARGET_MEM_REF.
19210
19211 2010-04-01  Richard Guenther  <rguenther@suse.de>
19212
19213         PR tree-optimization/43607
19214         * ipa-type-escape.c (check_call): Do not access non-existing
19215         arguments.
19216
19217 2010-04-01  Richard Guenther  <rguenther@suse.de>
19218
19219         PR middle-end/43602
19220         Revert
19221         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
19222                     Jack Howarth  <howarth@bromo.med.uc.edu>
19223
19224         * tree-profile.c (tree_init_ic_make_global_vars): Make static
19225         variables TLS.
19226
19227 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19228
19229         * doc/install.texi (Prerequisites): Document libelf usability on
19230         IRIX 5/6 and Solaris 2.
19231         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
19232         Update GNU as, GNU ld requirements.
19233         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
19234         Document Sun Studio compiler download.
19235         Update and simplify as, ld recommendations.
19236         (Specific, *-*-solaris2.7): Note obsoletion, removal.
19237
19238 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19239
19240         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
19241         with_tune_32 to pentium4.
19242
19243 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
19244
19245         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
19246
19247 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19248
19249         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
19250         obsoletion, removal.
19251         Update IDO URL.
19252         Document GNU as requirement.
19253         Update configure requirements.
19254         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
19255         Recomment IRIX 6.5.18+.
19256         Document IDF/IDL requirement.
19257         Document GNU as requirement.
19258         Document GNU ld bootstrap failure.
19259         Remove freeware.sgi.com reference.
19260
19261 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19262
19263         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
19264         UNIX V4.0, V5.0 obsoletion, removal.
19265         Remove --with-gc=simple reference.
19266         Update VM requirements during bootstrap.
19267         Remove -oldas bootstrap description.
19268         Update binutils reference.
19269         Remove comparison failure note.
19270
19271 2010-03-31  Richard Guenther  <rguenther@suse.de>
19272             Zdenek Dvorak  <ook@ucw.cz>
19273             Sebastian Pop  <sebastian.pop@amd.com>
19274
19275         PR middle-end/43464
19276         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
19277         with multiple arguments.
19278         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
19279
19280 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19281
19282         * graphite-dependences.c (print_pddr): Call print_pdr with an
19283         extra argument.
19284         * graphite-poly.c (debug_pdr): Add an extra argument for the
19285         verbosity level.
19286         (print_pdr): Same.
19287         (print_pbb_domain): Same.
19288         (print_pbb): Same.
19289         (print_scop_context): Same.
19290         (print_scop): Same.
19291         (print_cloog): Same.
19292         (debug_pbb_domain): Same.
19293         (debug_pbb): Same.
19294         (print_pdrs): Same.
19295         (debug_pdrs): Same.
19296         (debug_scop_context): Same.
19297         (debug_scop): Same.
19298         (debug_cloog): Same.
19299         (print_scop_params): Same.
19300         (debug_scop_params): Same.
19301         (print_iteration_domain): Same.
19302         (print_iteration_domains): Same.
19303         (debug_iteration_domain): Same.
19304         (debug_iteration_domains): Same.
19305         (print_scattering_function): Same.
19306         (print_scattering_functions): Same.
19307         (debug_scattering_function): Same.
19308         (debug_scattering_functions): Same.
19309         * graphite-poly.h (debug_pdr): Update declaration.
19310         (print_pdr): Same.
19311         (print_pbb_domain): Same.
19312         (print_pbb): Same.
19313         (print_scop_context): Same.
19314         (print_scop): Same.
19315         (print_cloog): Same.
19316         (debug_pbb_domain): Same.
19317         (debug_pbb): Same.
19318         (print_pdrs): Same.
19319         (debug_pdrs): Same.
19320         (debug_scop_context): Same.
19321         (debug_scop): Same.
19322         (debug_cloog): Same.
19323         (print_scop_params): Same.
19324         (debug_scop_params): Same.
19325         (print_iteration_domain): Same.
19326         (print_iteration_domains): Same.
19327         (debug_iteration_domain): Same.
19328         (debug_iteration_domains): Same.
19329         (print_scattering_function): Same.
19330         (print_scattering_functions): Same.
19331         (debug_scattering_function): Same.
19332         (debug_scattering_functions): Same.
19333
19334 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19335
19336         * graphite-poly.c (print_scattering_function_1): New.
19337         (print_scattering_function): Call it.
19338         (print_scop_params): Remove spaces at the end of lines.
19339         (print_cloog): New.
19340         (debug_cloog): New.
19341         * graphite-poly.h (print_cloog): Declared.
19342         (debug_cloog): Declared.
19343
19344 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19345
19346         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
19347         in loop->header.
19348         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
19349         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
19350         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
19351         to switch between adding the IV bump in loop->latch or in loop->header.
19352
19353 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19354
19355         * graphite-poly.c (print_scattering_function): Pretty print following
19356         the scoplib format.
19357         (print_pdr): Same.
19358         (print_pbb_domain): Same.
19359         (dump_gbb_cases): Same.
19360         (dump_gbb_conditions): Same.
19361         (print_pdrs): Same.
19362         (print_pbb): Same.
19363         (print_scop_params): Same.
19364         (print_scop_context): Same.
19365         (print_scop): Same.
19366         (print_pbb_body): New.
19367         (lst_indent_to): New.
19368         (print_lst): Start new lines with a #.
19369         * graphite-poly.h (pbb_bb): New.
19370         (pbb_index): Use pbb_bb.
19371         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
19372         disjuncts.
19373         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
19374
19375 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
19376
19377         * dwarf2out.c (size_of_die): For -gdwarf-4 use
19378         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
19379         and 0 instead of 1 for dw_val_class_flag.
19380         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
19381         dw_val_class_range_list, dw_val_class_loc_list,
19382         dw_val_class_lineptr and dw_val_class_macptr, use
19383         DW_FORM_flag_present for dw_val_class_flag and
19384         DW_FORM_exprloc for dw_val_class_loc.
19385         (output_die): For -gdwarf-4 print dw_val_class_loc
19386         size as uleb128 instead of 1 or 2 bytes and don't print
19387         anything for dw_val_class_flag.
19388
19389         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
19390         instead of cselib_lookup following by tweaking locs->setting_insn.
19391
19392         PR bootstrap/43596
19393         * cselib.c (cselib_process_insn): Clear cselib_current_insn
19394         even before returning from label, setjmp call or volatile asm
19395         handling.
19396
19397 2010-03-31  Richard Guenther  <rguenther@suse.de>
19398
19399         PR middle-end/43600
19400         * cgraphunit.c (cgraph_output_in_order): Do not allocate
19401         temporary data on stack.
19402
19403 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19404
19405         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
19406         (PUSHSECTION_ASM_OP): Remove.
19407         (POPSECTION_ASM_OP): Remove.
19408         (PUSHSECTION_FORMAT): Remove.
19409         * config/sol2.h (PUSHSECTION_FORMAT): Define.
19410         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
19411         * config/sol2.c (solaris_output_init_fini): Use it.
19412
19413 2010-03-31  Jie Zhang  <jie@codesourcery.com>
19414
19415         PR 43574
19416         * opt-functions.awk (var_type_struct): Use signed char type
19417         for simple variables.
19418
19419 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19420
19421         * config/sol2.c: Include output.h.
19422         (solaris_assemble_visibility): New function.
19423         * config/t-sol2 (sol2.o): Add output.h dependency.
19424         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
19425         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
19426         Redefine.
19427
19428 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
19429
19430         PR target/43580
19431         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
19432         V2SImode or XFmode on PRE_DEC.
19433
19434         PR debug/43557
19435         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
19436         BLKmode.
19437
19438 2010-03-31  Jie Zhang  <jie@codesourcery.com>
19439
19440         PR 43562
19441         * reload.h (caller_save_initialized_p): Declare.
19442         * toplev.c (backend_init_target): Don't call
19443         init_caller_save but set caller_save_initialized_p to false.
19444         * caller-save.c (caller_save_initialized_p): Define.
19445         (init_caller_save): Check caller_save_initialized_p.
19446         * ira.c (ira): Call init_caller_save if flag_caller_saves.
19447
19448 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19449
19450         PR target/39048
19451         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
19452         and soft-fp/t-softfp to tmake_file.
19453         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
19454         (LIBGCC2_TF_CEXT): Define.
19455         (TF_SIZE): Define.
19456
19457 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
19458
19459         PR debug/42977
19460         * cselib.c (n_useless_values): Document handling of debug locs.
19461         (n_useless_debug_values, n_debug_values): New variables.
19462         (new_elt_loc_list): Don't add to debug values, keep count.
19463         (promote_debug_loc): New.
19464         (cselib_reset_table): Zero new variables.
19465         (entry_and_rtx_equal_p): Promote debug locs.
19466         (discard_useless_locs): Increment n_useless_debug_values for
19467         debug values.
19468         (remove_useless_values): Adjust n_useless_values and n_debug_values
19469         with n_useless_debug_values.
19470         (add_mem_for_addr): Promote debug locs.
19471         (cselib_lookup_mem): Likewise.
19472         (cselib_lookup_addr): Renamed to...
19473         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
19474         (cselib_log_lookup): ... this.  Turn into...
19475         (cselib_lookup_addr): ... new wrapper.
19476         (cselib_lookup_from_insn): New.
19477         (cselib_invalidate_regno): Increment n_useless_debug_values for
19478         debug values.
19479         (cselib_invalidate_mem): Likewise.
19480         (cselib_process_insn): Take n_deleted and n_debug_values into
19481         account to guard remove_useless_value call.
19482         (cselib_finish): Zero n_useless_debug_values.
19483         * cselib.h (cselib_lookup_from_insn): Declare.
19484         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
19485         (sched_analyze_2): Likewise.
19486
19487 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
19488
19489         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
19490         functions.
19491         (adjust_mems): Replace narrowing SUBREG of expression containing
19492         just PLUS, MINUS, MULT and ASHIFT of registers and constants
19493         with operations in the narrower mode.
19494
19495         PR debug/43593
19496         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
19497         regs_invalidated_by_call instead all call_used_reg_set registers.
19498
19499 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
19500
19501         PR middle-end/43430
19502         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
19503         pointer comparisons with types_compatible_p.
19504         * tree-vect-stmts.c (vectorizable_call): Same.
19505         (vectorizable_condition): Same.
19506
19507 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19508
19509         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
19510         stack check if the mask would be zero.
19511
19512 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
19513             Jack Howarth  <howarth@bromo.med.uc.edu>
19514
19515         * tree-profile.c (tree_init_ic_make_global_vars): Make static
19516         variables TLS.
19517
19518 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
19519
19520         PR other/25232
19521         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
19522         and __unordtf2.
19523         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
19524         Include ___unordxf2 and ___unordtf2.
19525         * config/i386/libgcc-glibc.ver: Do not define inheritance from
19526         GCC_4.4.0 here.
19527
19528 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
19529
19530         * config/lm32/t-lm32: New file.
19531         * config.gcc: Use the above file when targetting lm32.
19532
19533 2010-03-28  Duncan Sands  <baldrick@free.fr>
19534
19535         * Makefile.in (PLUGIN_HEADERS): Add except.h.
19536
19537 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
19538
19539         PR middle-end/43431
19540         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
19541         Improve vectorization cost model diagnostic.
19542
19543 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
19544
19545         PR middle-end/43436
19546         * tree-vect-data-refs.c (vect_analyze_data_refs): When
19547         compute_data_dependences_for_loop returns false, early exit
19548         and output an extra diagnostic for the failed data reference
19549         analysis.
19550
19551 2010-03-29  Richard Guenther  <rguenther@suse.de>
19552
19553         PR tree-optimization/43560
19554         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
19555         (can_sm_ref_p): Treat stores to readonly locations as trapping.
19556
19557 2010-03-29  Jie Zhang  <jie@codesourcery.com>
19558
19559         PR 43564
19560         * toplev.c (process_options): Set optimization_default_node
19561         and optimization_current_node.
19562         * opts.c (decode_options): Don't set optimization_default_node
19563         and optimization_current_node.
19564
19565 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
19566
19567         * config/rtems.h: Abandon -qrtems_debug.
19568
19569 2010-03-28  Jan Hubicka  <jh@suse.cz>
19570
19571         PR tree-optimization/43505
19572         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
19573         map should not be copied.
19574
19575 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19576
19577         PR middle-end/41674
19578         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
19579         cdtors, set DECL_PRESERVE_P.
19580         * ipa.c (cgraph_externally_visible_p): Return true if declaration
19581         should be preseved.
19582
19583 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
19584
19585         PR tree-optimization/43528
19586         * stor-layout.c (place_field): Check that constant fits into
19587         unsigned HWI when skipping calculation of MS bitfield layout.
19588
19589 2010-03-27  Jan Hubicka  <jh@suse.cz>
19590
19591         PR middle-end/43391
19592         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
19593         notice_global_symbol work.
19594
19595 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
19596
19597         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
19598         instead of dwarf2out_decl.
19599         (struct var_loc_node): Remove section_label field.
19600         (dwarf2out_function_decl): New function.
19601         (dwarf2out_var_location): Don't set section_label field.
19602         (dwarf2out_begin_function): Don't empty decl_loc_table here.
19603
19604 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
19605
19606         PR tree-optimization/43544
19607         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
19608         First argument for builtin vectorized function hook is now a
19609         tree to be able to distinguish between machine specific and
19610         standard builtins.
19611         * targhooks.c (default_builtin_vectorized_function): Ditto.
19612         * targhooks.h (default_builtin_vectorized_function): Ditto.
19613         * target.h (struct gcc_target): Ditto.
19614         * tree-vect-stmts.c (vectorizable_function): Ditto.
19615         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
19616         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
19617         Ditto.
19618
19619 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
19620
19621         PR c/43381
19622         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
19623         nested binding iff it is a FUNCTION_DECL.
19624         (store_parm_decls_newstyle): Pass nested=true to bind for
19625         FUNCTION_DECLs amongst parameters.
19626
19627 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
19628
19629         * var-tracking.c (vt_expand_loc_callback): Don't run
19630         cselib_expand_value_rtx_cb in dummy mode if
19631         cselib_dummy_expand_value_rtx_cb returned false.
19632
19633         * var-tracking.c (emit_note_insn_var_location): For one part
19634         notes with offset 0, don't add EXPR_LIST around the location.
19635         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
19636         add_location_or_const_value_attribute): Adjust for that change.
19637
19638         PR debug/43540
19639         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
19640         into first operand and location into second.
19641         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
19642         dw_cfi_oprnd_loc for DW_CFA_expression.
19643         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
19644         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
19645         assume first argument is regnum and second argument is location.
19646
19647 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
19648
19649         PR target/42113
19650         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
19651         of scratch register to DImode.  Split to DImode comparison operator.
19652         Use SImode subreg of scratch register in the multiplication.
19653         (*cmp_sadd_sidi): Ditto.
19654         (*cmp_ssub_si): Ditto.
19655         (*cmp_ssub_sidi): Ditto.
19656
19657 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
19658
19659         PR target/43524
19660         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
19661         Remove invalid assert and wrong comment.
19662
19663 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
19664
19665         PR debug/43516
19666         * flags.h (final_insns_dump_p): New extern.
19667         * final.c (final_insns_dump_p): New variable.
19668         (rest_of_clean_state): Set it before -fdump-final-insns=
19669         dumping, clear afterwards.
19670         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
19671         MEM_ALIAS_SET on MEMs.
19672
19673 2010-03-26  David S. Miller  <davem@davemloft.net>
19674
19675         * configure.ac: Fix sparc GOTDATA_OP bug check.
19676         * configure: Rebuild.
19677
19678 2010-03-26  Alan Modra  <amodra@gmail.com>
19679
19680         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
19681
19682 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19683
19684         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
19685         TLS_SECTION_ASM_FLAG.
19686
19687 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
19688
19689         PR bootstrap/43511
19690         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
19691         Clear first_function_block_is_cold.
19692
19693         PR c/43385
19694         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
19695         argument if the argument is truth_value_p.
19696
19697 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
19698
19699         * config/rs6000/constraints.md: Update copyright year for my changes.
19700
19701         PR target/43484
19702         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
19703         used in reg+reg addressing, swap registers.
19704
19705 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
19706
19707         PR debug/43293
19708         * target.h (struct gcc_target): Add code_end hook.
19709         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
19710         if not yet defined.
19711         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
19712         * toplev.c (compile_file): Call targetm.asm_out.code_end
19713         hook before unwind info/debug info output.
19714         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
19715         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
19716         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
19717         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
19718         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
19719         * config/i386/i386.c (ix86_file_end): Renamed to...
19720         (ix86_code_end): ... this.  Make static.  Don't call
19721         file_end_indicate_exec_stack.  Emit unwind info using
19722         final_start_function/final_end_function.
19723         (darwin_x86_file_end): Remove.
19724         (TARGET_ASM_CODE_END): Define.
19725         * config/i386/i386.h (TARGET_ASM_FILE_END,
19726         NEED_INDICATE_EXEC_STACK): Don't define.
19727         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
19728         (TARGET_ASM_FILE_END): Define to darwin_file_end.
19729         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
19730         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
19731
19732         PR target/43498
19733         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
19734         at the beginning and final_end_function at the end.
19735         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
19736
19737 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19738
19739         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
19740         and Sun as TLS syntax.
19741         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
19742         * configure: Regenerate.
19743         * config.in: Regenerate.
19744         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
19745         (default_elf_asm_named_section): Use it.
19746         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
19747         (i386_output_dwarf_dtprel): Likewise.
19748         (output_addr_const_extra): Likewise.
19749         (output_pic_addr_const): Lowercase @GOTTPOFF.
19750         (output_addr_const_extra): Likewise.
19751         (output_pic_addr_const): Lowercase @GOTNTPOFF.
19752         (output_addr_const_extra): Likewise.
19753         (output_pic_addr_const): Lowercase @INDNTPOFF.
19754         (output_addr_const_extra): Likewise.
19755         (output_pic_addr_const): Lowercase @NTPOFF.
19756         (output_addr_const_extra): Likewise.
19757         (output_pic_addr_const): Lowercase @TPOFF.
19758         (output_addr_const_extra): Likewise.
19759         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
19760         (*tls_global_dynamic_64): Likewise.
19761         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
19762         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
19763
19764         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
19765         (ASM_OUTPUT_TLS_COMMON): Use it.
19766         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
19767
19768         PR target/38118
19769         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
19770         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
19771         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
19772         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
19773         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
19774         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
19775
19776 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19777
19778         * config/i386/i386.c (override_options): Don't accept
19779         -mtls-dialect=sun any longer.
19780         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
19781         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
19782         (*tls_local_dynamic_base_32_sun): Likewise.
19783         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
19784
19785 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
19786
19787         PR debug/43508
19788         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
19789         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
19790
19791         PR debug/43479
19792         * ira.c (adjust_cleared_regs): New function.
19793         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
19794
19795         PR debug/19192
19796         PR debug/43479
19797         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
19798         from gimple_block.
19799         * expr.c (expand_expr_real): Restore previous
19800         curr_insn_source_location and curr_insn_block after
19801         expand_expr_real_1 call.
19802         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
19803         instead of expand_expr_real_1.
19804
19805 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
19806
19807         PR rtl-optimization/43413
19808         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
19809         hard regs too.
19810
19811 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
19812
19813         PR target/43348
19814         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
19815         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
19816
19817 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
19818
19819         * config/i386/i386.c (ix86_target_string): Add -mfma.
19820         Fix a typo in comment.
19821
19822 2010-03-22  Mike Stump  <mikestump@comcast.net>
19823
19824         PR target/23071
19825         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
19826         Don't overly align based upon packed packed fields.
19827
19828 2010-03-22  Jason Merrill  <jason@redhat.com>
19829
19830         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
19831         Use () rather than [], and move before the element type.
19832
19833 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19834
19835         * doc/configfiles.texi (Configuration Files): Removed
19836         fixinc/Makefile*, intl/Makefile.*.
19837         * doc/makefile.texi: Fixed markup. Abstract from version
19838         control system used.
19839         (Makefile): Removed obsolete gcc/java/parse.y example.
19840         * doc/sourcebuild.texi: Likewise.
19841         (Top Level): Added config, gnattools, libdecnumber, libgcc,
19842         libgomp, libssp.  Removed fastjar.
19843         (Miscellaneous Docs): Clarify location.
19844         Added COPYING3, COPYING3.LIB.
19845         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
19846
19847 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19848
19849         PR target/38085
19850         * config/i386/i386.c (x86_function_profiler)
19851         [!NO_PROFILE_COUNTERS]: Fix typo.
19852         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
19853         instead of callq.
19854
19855 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
19856             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19857
19858         * doc/sourcebuild.texi (Test Directives): Split into six
19859         subsections, with most of the current text in new subsections
19860         Directives, Selectors, and Final Actions.
19861         (Directives): Split list of test directives into multiple
19862         subsubsections.
19863         (Selectors): Describe use and syntax of selectors.
19864         (Effective-Target Keywords): Describe all existing keywords.
19865         (Add Options): Describe features for dg-add-options.
19866         (Require Support): Describe variants of dg-require-support.
19867         (Final Actions): Describe commands to use in dg-final.
19868
19869 2010-03-22  Michael Matz  <matz@suse.de>
19870
19871         PR middle-end/43475
19872         * recog.c (validate_replace_rtx_group): Replace also in
19873         REG_EQUAL and REG_EQUIV notes.
19874
19875 2010-03-22  Richard Guenther  <rguenther@suse.de>
19876
19877         PR tree-optimization/43390
19878         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
19879         sure vector extracts are type correct.
19880
19881 2010-03-22  Richard Guenther  <rguenther@suse.de>
19882
19883         PR middle-end/40106
19884         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
19885         x * sqrt (x) even when optimizing for size if the target
19886         has native support for sqrt.
19887
19888 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
19889
19890         * varasm.c (make_decl_rtl_for_debug): Also clear
19891         flag_mudflap for the duration of make_decl_rtl call.
19892
19893         PR debug/43443
19894         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
19895         locs from preserved VALUEs.
19896
19897 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19898
19899         PR middle-end/42718
19900         * pa.md (movmemsi): Set align to one if zero.
19901         (movmemdi): Likewise.
19902
19903 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
19904
19905         PR target/42321
19906         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
19907         with their corresponding prologue pushes.
19908
19909 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
19910
19911         PR target/43156
19912         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
19913         at the begining or end.
19914         (spu_expand_epilogue): Likewise.
19915
19916 2010-03-20  Richard Guenther  <rguenther@suse.de>
19917
19918         PR rtl-optimization/43438
19919         * combine.c (make_extraction): Properly zero-/sign-extend an
19920         extraction of the low part of a CONST_INT.  Also handle
19921         CONST_DOUBLE.
19922
19923 2010-03-19  Mike Stump  <mikestump@comcast.net>
19924
19925         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
19926         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
19927         (override_options): Use SUBTARGET32_DEFAULT_CPU.
19928
19929 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
19930
19931         PR c/43211
19932         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
19933         an error.
19934
19935 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
19936
19937         PR rtl-optimization/42258
19938         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
19939         use that may match DEF.
19940
19941         PR target/40697
19942         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
19943         the cost of loading the constant rather than assuming
19944         COSTS_N_INSNS (1).
19945         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
19946         outer code is AND, do the same tests as the andsi3 expander and
19947         return COSTS_N_INSNS (1) if and is cheap.
19948
19949         * optabs.c (avoid_expensive_constant): Fix formatting.
19950
19951 2010-03-19  Michael Matz  <matz@suse.de>
19952
19953         PR c++/43116
19954         * attribs.c (decl_attributes): When rebuilding a function pointer
19955         type use the same qualifiers as the original pointer type.
19956
19957 2010-03-19  Martin Jambor  <mjambor@suse.cz>
19958
19959         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
19960         and is_gimple_ip_invariant_address.
19961
19962 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19963
19964         Revert
19965         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19966
19967         * config/arm/arm.c (arm_override_options): Turn off
19968         flag_dwarf2_cfi_asm for AAPCS variants.
19969
19970 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19971
19972         PR target/43399
19973         * config/arm/arm.c (emit_multi_reg_push): Update comments.
19974         Use PRE_MODIFY instead of PRE_DEC.
19975         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
19976         (vfp_emit_fstmd): Likewise.
19977
19978 2010-03-19  Michael Matz  <matz@suse.de>
19979
19980         PR target/43305
19981         * builtins.c (expand_builtin_interclass_mathfn,
19982         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
19983         if that fails.
19984
19985 2010-03-19  Richard Guenther  <rguenther@suse.de>
19986
19987         PR tree-optimization/43415
19988         * tree-ssa-pre.c (phi_translate): Split out worker to ...
19989         (phi_translate_1): ... this.
19990         (phi_translate): Move all caching here.  Cache all NARY
19991         and REFERENCE translations.
19992
19993 2010-03-19  David S. Miller  <davem@davemloft.net>
19994
19995         With help from Eric Botcazou.
19996         * config/sparc/sparc.c: Include dwarf2out.h.
19997         (emit_pic_helper): Delete.
19998         (pic_helper_symbol_name): Delete.
19999         (pic_helper_emitted_p): Delete.
20000         (pic_helper_needed): New.
20001         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
20002         (get_pc_thunk_name): New.
20003         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
20004         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
20005         Set pic_helper_needed to true.  Don't call emit_pic_helper.
20006         (sparc_expand_prologue): Update load_pic_register call.
20007         (sparc_output_mi_thunk): Likewise.
20008         (sparc_file_end): Emit a hidden comdat symbol for the PIC
20009         thunk if possible.  Output CFI information as needed.
20010
20011 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
20012             Jack Howarth  <howarth@bromo.med.uc.edu>
20013
20014         PR target/36399
20015         * config/i386/i386.h: Fix ABI on darwin x86-32.
20016
20017 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
20018
20019         * tree.h: Declare make_decl_rtl_for_debug.
20020         * varasm.c (make_decl_rtl_for_debug): New.
20021         * dwarf2out.c (rtl_for_decl_location): Call it.
20022         * cfgexpand.c (expand_debug_expr): Call it.
20023
20024 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
20025
20026         PR bootstrap/43399
20027         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
20028         mem_mode.
20029
20030         PR bootstrap/43403
20031         * var-tracking.c (vt_init_cfa_base): Do nothing if
20032         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
20033
20034 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
20035
20036         PR debug/42873
20037         * var-tracking.c (canonicalize_vars_star): New.
20038         (dataflow_post_merge_adjust): Use it.
20039
20040 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
20041
20042         PR debug/43058
20043         * var-tracking.c (non_suitable_const): New function.
20044         (add_uses): For DEBUG_INSNs with constants, don't record any
20045         value, instead just the constant value itself.
20046         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
20047         is not VAR_LOC_UNKNOWN_P, set var to the constant.
20048         (emit_notes_in_bb): Likewise.
20049         (emit_note_insn_var_location): For onepart variables if
20050         cur_loc is a VOIDmode constant, use DECL_MODE.
20051
20052 2010-03-18  Martin Jambor  <mjambor@suse.cz>
20053
20054         PR middle-end/42450
20055         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
20056         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
20057         all non-clones.  Moved call redirection...
20058         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
20059         (cgraph_materialize_all_clones): Dispose of all
20060         combined_args_to_skip bitmaps.
20061         (verify_cgraph_node): Do not check for edges pointing to wrong
20062         nodes in inline clones.
20063         * tree-inline.c (copy_bb): Call
20064         cgraph_redirect_edge_call_stmt_to_callee.
20065         * ipa.c (cgraph_remove_unreachable_nodes): Call
20066         cgraph_node_remove_callees even when there are used clones.
20067
20068 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
20069
20070         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
20071
20072 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
20073
20074         PR target/43383
20075         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
20076         for 32bit.
20077
20078 2010-03-18  Michael Matz  <matz@suse.de>
20079
20080         PR middle-end/43419
20081         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
20082         into sqrt(x) if we need to preserve signed zeros.
20083
20084 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
20085             Eric Botcazou  <ebotcazou@adacore.com>
20086
20087         PR rtl-optimization/43360
20088         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
20089         note if we don't know its invariant status.
20090
20091 2010-03-18  Michael Matz  <matz@suse.de>
20092
20093         PR tree-optimization/43402
20094         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
20095         PHI chains of ssa names registered for update.
20096
20097 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
20098
20099         PR target/42427
20100         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
20101         non-offsettable and pre_modify update addressing.
20102         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
20103         and "2" alternatives "#".
20104         (*movdd_softfloat32): Make all alternatives "#";
20105         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
20106         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
20107         (*movdf_softfloat32): Make all alternatives "#";
20108         (movdi): Use the new DIFD mode iterator to create a common splitter
20109         for movdi, movdf and movdd patterns.
20110
20111 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
20112
20113         * common.opt (dumpdir): Remove redundant tab.
20114
20115 2010-03-17  Martin Jambor  <mjambor@suse.cz>
20116
20117         PR tree-optimization/43347
20118         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
20119         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
20120
20121 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
20122
20123         PR rtl-optimization/42216
20124         * regrename.c (create_new_chain): New function, broken out from...
20125         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
20126         appending a use to an empty chain.
20127         (build_def_use): Remove previous changes that convert OP_INOUT to
20128         OP_OUT operands; instead detect the case where an OP_INOUT operand
20129         uses a previously untracked register and create an empty chain for it.
20130
20131 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20132
20133         * doc/extend.texi (Function Attributes): Rewrite unfinished
20134         sentence in ms_abi documentation.
20135
20136 2010-03-17  Alan Modra  <amodra@gmail.com>
20137
20138         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
20139         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
20140         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
20141         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
20142
20143 2010-03-16  Richard Henderson  <rth@redhat.com>
20144
20145         PR middle-end/43365
20146         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
20147         (lower_try_finally): Save and restore eh_seq around the expansion
20148         of the try-finally.
20149
20150 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
20151
20152         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
20153         statements before splitting block.
20154
20155 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20156
20157         * doc/sourcebuild.texi (Testsuites): Fix markup.
20158         Use pathnames relative to gcc/testsuite.
20159         (Test Directives): Move description of how timeout is determined.
20160         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
20161         (C Tests): Correct gcc.misc-tests directory.
20162         Framework tests now live in gcc.test-framework.
20163
20164 2010-03-16  Richard Guenther  <rguenther@suse.de>
20165
20166         PR middle-end/43379
20167         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
20168         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
20169
20170 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
20171             Alexandre Oliva  <aoliva@redhat.com>
20172
20173         PR tree-optimization/42917
20174         * lambda-code.c (remove_iv): Skip debug statements.
20175         (lambda_loopnest_to_gcc_loopnest): Likewise.
20176         (not_interesting_stmt): Debug statements are not interesting.
20177
20178 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
20179
20180         PR debug/43051
20181         PR debug/43092
20182         * cselib.c (cselib_preserve_constants,
20183         cfa_base_preserved_val): New static variables.
20184         (preserve_only_constants): New function.
20185         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
20186         clear its REG_VALUES.  If cselib_preserve_constants, don't
20187         empty the whole hash table, but preserve there VALUEs with constants,
20188         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
20189         (cselib_preserve_cfa_base_value): New function.
20190         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
20191         (cselib_init): Change argument to int bitfield.  Set
20192         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
20193         is in it.
20194         (cselib_finish): Clear cselib_preserve_constants and
20195         cfa_base_preserved_val.
20196         * cselib.h (enum cselib_record_what): New enum.
20197         (cselib_init): Change argument to int.
20198         (cselib_preserve_cfa_base_value): New prototype.
20199         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
20200         * dse.c (dse_step1): Likewise.
20201         * cfgcleanup.c (thread_jump): Likewise.
20202         * sched-deps.c (sched_analyze): Likewise.
20203         * gcse.c (local_cprop_pass): Likewise.
20204         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
20205         If FN is non-NULL, call the callback always and whenever it returns
20206         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
20207         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
20208         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
20209         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
20210         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
20211         * var-tracking.c: Include recog.h.
20212         (bb_stack_adjust_offset): Remove.
20213         (vt_stack_adjustments): Don't call it, instead just gather the
20214         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
20215         (adjust_stack_reference): Remove.
20216         (compute_cfa_pointer): New function.
20217         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
20218         (struct adjust_mem_data): New type.
20219         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
20220         functions.
20221         (get_address_mode): New function.
20222         (replace_expr_with_values): Use it.
20223         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
20224         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
20225         (adjust_sets): Remove.
20226         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
20227         Use get_address_mode.
20228         (get_adjusted_src): Remove.
20229         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
20230         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
20231         (add_with_sets): Don't call adjust_sets.
20232         (fp_setter, vt_init_cfa_base): New functions.
20233         (vt_initialize): Change return type to bool.  Move most of pool etc.
20234         initialization to the beginning of the function from end.  Pass
20235         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
20236         If !frame_pointer_needed, call vt_stack_adjustment before mos
20237         vector is filled, call vt_init_cfa_base if argp/framep has been
20238         eliminated to sp.  If frame_pointer_needed and argp/framep has
20239         been eliminated to hard frame pointer, set
20240         hard_frame_pointer_adjustment and call vt_init_cfa_base after
20241         encountering fp setter in the prologue.  For MO_ADJUST, call
20242         log_op_type before pusing the op into mos vector, not afterwards.
20243         Call adjust_insn before cselib_process_insn/add_with_sets,
20244         call cancel_changes (0) afterwards.
20245         (variable_tracking_main_1): Adjust for vt_initialize calling
20246         vt_stack_adjustments and returning whether it succeeded or not.
20247
20248 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
20249
20250         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
20251         debug statements.
20252
20253 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
20254
20255         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
20256         has been set.
20257         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
20258         drap_reg has not been set.
20259
20260 2010-03-15  Michael Matz  <matz@suse.de>
20261
20262         PR middle-end/43300
20263         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
20264         use it to expand block copies.
20265         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
20266         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
20267         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
20268
20269 2010-03-15  Richard Guenther  <rguenther@suse.de>
20270
20271         PR tree-optimization/43367
20272         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
20273         elimination check.
20274
20275 2010-03-15  Richard Guenther  <rguenther@suse.de>
20276
20277         PR tree-optimization/43317
20278         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
20279
20280 2010-03-15  Martin Jambor  <mjambor@suse.cz>
20281
20282         PR tree-optimization/43141
20283         * tree-sra.c (create_abstract_origin): New function.
20284         (modify_function): Call create_abstract_origin.
20285
20286 2010-03-15  Chris Demetriou  <cgd@google.com>
20287
20288         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
20289         wasn't copied.
20290
20291 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20292
20293         PR middle-end/43354
20294         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
20295         call insert_out_of_ssa_copy for default definitions.
20296
20297 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20298
20299         * graphite-clast-to-gimple.c (my_long_long): Defined.
20300         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
20301         * graphite-sese-to-poly.c (my_long_long): Defined.
20302         (scop_ivs_can_be_represented): Use it.
20303
20304 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20305
20306         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
20307         graphite-max-bbs-per-function, and loop-block-tile-size.
20308         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
20309         with "maximum".
20310         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
20311
20312 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20313
20314         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
20315         forward declaration.
20316         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
20317         (add_upper_bounds_from_estimated_nit): New.
20318         (build_loop_iteration_domains): Use it.
20319
20320 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20321
20322         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
20323
20324 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20325
20326         PR middle-end/43306
20327         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
20328         should be an INTEGER_CST.  Also handle CASE_CONVERT.
20329
20330 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20331
20332         * graphite.c (graphite_initialize): To bound the number of bbs per
20333         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
20334         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
20335         * doc/invoke.texi: Document it.
20336
20337 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20338
20339         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
20340         * graphite-sese-to-poly.h (build_poly_scop): Same.
20341
20342 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20343
20344         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
20345         the number of parameters in the scop.  Use as an upper bound
20346         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
20347         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
20348         * doc/invoke.texi: Document it.
20349
20350 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
20351
20352         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
20353         * doc/c-tree.texi: Remove.
20354         * doc/generic.texi: Merge c-tree.texi here.
20355         * doc/gccint.texi (Trees): Remove menu entry.
20356         (c-tree.texi): Remove @include.
20357         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
20358         * doc/languages.texi (Reading RTL): Ditto.
20359
20360 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
20361
20362         PR target/42869
20363         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
20364
20365 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
20366
20367         PR middle-end/42431
20368         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
20369         code added to work around reload clobbering CONST insns.
20370
20371 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
20372
20373         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
20374         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
20375         (cselib_preserve_only_values): Remove retain argument, don't
20376         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
20377         * cselib.h (cselib_preserve_only_values): Remove retain argument.
20378         * var-tracking.c (micro_operation): Move insn field before union.
20379         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
20380         (struct variable_tracking_info_def): Remove n_mos field, change
20381         mos into a vector of micro_operations.
20382         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
20383         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
20384         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
20385         changing into a vector.
20386         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
20387         come before all other uops generated by add_stores.
20388         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
20389         argument removal.
20390         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
20391         a vector.  Run just one pass over the bbs instead of separate counting
20392         and computation phase.
20393         (vt_finalize): Free VTI (bb)->mos vector instead of array.
20394
20395         PR debug/43329
20396         * tree-inline.c (remap_decls): Put old_var rather than origin_var
20397         into *nonlocalized_list vector.
20398         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
20399         even if origin is non-NULL.
20400         (gen_variable_die): Likewise.
20401         (process_scope_var): Don't change origin.
20402         (gen_decl_die): Likewise.
20403         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
20404         before adding new edges instead of after it, fix moving over
20405         debug stmts.
20406
20407 2010-03-11  David S. Miller  <davem@davemloft.net>
20408
20409         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
20410         of four.
20411         * configure: Rebuild.
20412
20413 2010-03-11  Martin Jambor  <mjambor@suse.cz>
20414
20415         PR tree-optimization/43257
20416         * tree.c (assign_assembler_name_if_neeeded): New function.
20417         (free_lang_data_in_cgraph): Assembler name assignment moved to the
20418         above new function.
20419         * tree.h (assign_assembler_name_if_neeeded): Declare.
20420         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
20421         the function if needed.
20422
20423 2010-03-11  Chris Demetriou  <cgd@google.com>
20424
20425         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
20426         include/stdint-gcc.h, and include/stdint.h world-readable.
20427
20428 2010-03-11  Richard Guenther  <rguenther@suse.de>
20429
20430         PR tree-optimization/43255
20431         * tree-vrp.c (process_assert_insertions_for): Do not insert
20432         asserts for trivial conditions.
20433
20434 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20435
20436         PR tree-optimization/43280
20437         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
20438         generation.  Move calculation of size out of the if branch.
20439         (find_bswap): Modify compare number generation.
20440
20441 2010-03-11  Richard Guenther  <rguenther@suse.de>
20442
20443         PR lto/43200
20444         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
20445         (input_gimple_stmt): Fixup handled component types during
20446         operand read.  Also fix up decls in ADDR_EXPRs.
20447
20448 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
20449
20450         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
20451         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
20452
20453 2010-03-10  Jan Hubicka  <jh@suse.cz>
20454
20455         PR c/43288
20456         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
20457         * varasm.c (get_variable_section): Don't do that here...
20458         (make_decl_rtl): ... and here.
20459         (do_assemble_alias): Produce decl RTL.
20460         (assemble_alias): Likewise.
20461
20462 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
20463
20464         PR debug/43290
20465         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
20466         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
20467         of fde->vdrap_reg.
20468         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
20469         (based_loc_descr): Only express drap or vdrap regno based expressions
20470         using DW_OP_fbreg when not optimizing.
20471         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
20472         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
20473         REG_CFA_SET_VDRAP note.
20474
20475 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
20476
20477         PR tree-optimization/43236
20478         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
20479         error in calculation of base address in reverse iteration case.
20480         (generate_builtin): Take number of latch executions if the statement
20481         is in the latch.
20482
20483 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
20484
20485         PR middle-end/42859
20486         * tree-eh.c: Include pointer-set.h.
20487         (lower_eh_dispatch): Filter out duplicate case labels and
20488         remove the unneeded edge when the label is unused.  Return
20489         true when some edges are removed.
20490         (execute_lower_eh_dispatch): When any lowering resulted in
20491         removing an edge, also delete unreachable blocks.
20492
20493 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
20494
20495         PR bootstrap/43287
20496         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
20497         UNSPEC_MACHOPIC_OFFSET.
20498
20499 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
20500
20501         PR target/43294
20502         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
20503         (m68k_delegitimize_address): New function.
20504
20505 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
20506
20507         PR debug/43299
20508         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
20509
20510         PR debug/43299
20511         * var-tracking.c (adjust_sets): New function.
20512         (count_with_sets, add_with_sets): Use it.
20513         (get_adjusted_src): New inline function.
20514         (add_stores): Use it.
20515
20516         PR debug/43304
20517         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
20518         call cselib_dummy_expand_value_rtx_cb instead of
20519         cselib_expand_value_rtx_cb.
20520
20521         PR debug/43293
20522         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
20523         * config/i386/i386.c: Include debug.h and dwarf2out.h.
20524         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
20525         and .cfi_endproc around the pic thunks.
20526         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
20527         all queued unwind info register saves are saved before the call.
20528         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
20529         considered as sp-=4 for unwind info and the pop as sp+=4 which
20530         also clobbers dest, but doesn't actually restore it.
20531
20532         PR debug/43290
20533         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
20534         RTX_FRAME_RELATED_P.
20535
20536 2010-03-09  Jie Zhang  <jie@codesourcery.com>
20537
20538         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
20539         whitespaces in output template.
20540
20541 2010-03-09  Jie Zhang  <jie@codesourcery.com>
20542
20543         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
20544         out array boundary.
20545
20546 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
20547
20548         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
20549         builtins.exp in a separate job.
20550
20551 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20552
20553         * graphite-sese-to-poly.c (add_param_constraints): Use
20554         lower_bound_in_type and upper_bound_in_type.
20555
20556 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20557
20558         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
20559         instead of unsigned_type_node.
20560
20561 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20562             Reza Yazdani  <reza.yazdani@amd.com>
20563
20564         PR middle-end/43065
20565         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
20566         on pointer type parameters.
20567
20568 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
20569
20570         PR middle-end/42644
20571         PR middle-end/42130
20572         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
20573         handle conversions from pointer to integers.
20574         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
20575         induction variable, to be able to work with code generated by CLooG.
20576         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
20577         (build_poly_scop): Bail out if we cannot codegen a loop.
20578
20579 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
20580
20581         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
20582         code generation with gloog_error.
20583
20584 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20585
20586         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
20587         Call fold_convert on all the returned values.
20588         (expand_scalar_variables_expr): Pass to
20589         expand_scalar_variables_ssa_name the type of the resulting expression.
20590
20591 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20592
20593         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
20594         ppl_min_for_le_pointset.
20595         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
20596         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
20597
20598 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20599
20600         * graphite-dependences.c (map_into_dep_poly): Removed.
20601         (dependence_polyhedron_1): Use combine_context_id_scat.
20602
20603 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20604
20605         * graphite-poly.h (struct poly_scattering): Add layout documentation.
20606         (struct poly_bb): Same.
20607         (combine_context_id_scat): New.
20608
20609 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20610
20611         PR middle-end/42326
20612         * sese.c (name_defined_in_loop_p): Return false for default
20613         definitions.
20614
20615 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20616
20617         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
20618         and clean up the logic.
20619
20620 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20621
20622         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
20623         early return.
20624
20625 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
20626
20627         * var-tracking.c (remove_cselib_value_chains): Define only for
20628         ENABLE_CHECKING.
20629         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
20630         delete_slot_part, emit_notes_for_differences_1): Don't call
20631         remove_cselib_value_chains here.
20632         (set_slot_part, emit_notes_for_differences_2): Don't call
20633         add_cselib_value_chains here.
20634         (preserved_values): New vector.
20635         (preserve_value): New function.
20636         (add_uses, add_stores, vt_add_function_parameters): Use it
20637         instead of cselib_preserve_value.
20638         (changed_values_stack): New vector.
20639         (check_changed_vars_0): New function.
20640         (check_changed_vars_1, check_changed_vars_2): Use it.
20641         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
20642         changed_values_stack VALUEs.
20643         (vt_emit_notes): For all preserved_values call
20644         add_cselib_value_chains.  If ENABLE_CHECKING call
20645         remove_cselib_value_chains before verifying value_chains is empty.
20646         Initialize and free changed_values_stack.
20647         (vt_initialize): Initialize preserved_values.
20648         (vt_finalize): Free preserved_values.
20649
20650 2010-03-08  Richard Guenther  <rguenther@suse.de>
20651
20652         PR tree-optimization/43269
20653         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
20654         region detection.
20655
20656 2010-03-08  Martin Jambor  <mjambor@suse.cz>
20657
20658         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
20659         (ipa_is_param_called): Removed.
20660         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
20661         (ipa_print_node_params): Do not print the called flag.
20662         (ipa_write_node_info): Do not stream the called flag.
20663         (ipa_read_node_info): Likewise.
20664
20665 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
20666
20667         PR debug/43176
20668         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
20669         * cselib.c (struct expand_value_data): Add dummy field.
20670         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
20671         dummy to false.
20672         (cselib_dummy_expand_value_rtx_cb): New function.
20673         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
20674         any rtl.
20675         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
20676         * var-tracking.c: Include pointer-set.h.
20677         (variable): Change n_var_parts to char from int.  Add
20678         cur_loc_changed and in_changed_variables fields.
20679         (variable_canonicalize): Remove.
20680         (shared_var_p): New inline function.
20681         (unshare_variable): Maintain cur_loc_changed and
20682         in_changed_variables fields.  If var was in changed_variables,
20683         replace it there with new_var.  Just copy cur_loc instead of
20684         resetting it to something else.
20685         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
20686         (dataflow_set_union): Don't call variable_canonicalize.
20687         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
20688         of their DEBUG_EXPR_TREE_DECLs.
20689         (canonicalize_loc_order_check): Verify that cur_loc is NULL
20690         and in_changed_variables and cur_loc_changed is false.
20691         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
20692         and cur_loc_changed.  Don't update cur_loc here.
20693         (variable_merge_over_src): Don't call variable_canonicalize.
20694         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
20695         removing loc that is equal to cur_loc, clear cur_loc,
20696         set cur_loc_changed and ensure variable_was_changed is called.
20697         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
20698         compare pointers in cur_loc check, if it is equal to loc,
20699         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
20700         (variable_different_p): Remove compare_current_location argument,
20701         don't compare cur_loc.
20702         (dataflow_set_different_1): Adjust variable_different_p caller.
20703         (variable_was_changed): If dv had some var in changed_variables
20704         already, reset in_changed_variables flag for it and propagate
20705         cur_loc_changed over to the new variable.  On empty var
20706         always set cur_loc_changed.  Set in_changed_variables on whatever
20707         var is added to changed_variables.
20708         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
20709         Use shared_var_p.  When removing loc that is equal to cur_loc,
20710         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
20711         end, don't set it to something else, just call variable_was_changed.
20712         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
20713         loc being removed, clear cur_loc and set cur_loc_changed.
20714         Set cur_loc_changed if all locations have been removed.
20715         (struct expand_loc_callback_data): New type.
20716         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
20717         allocated.  Always create SUBREGs if simplify_subreg failed.
20718         Prefer to use cur_loc, when that fails and still in
20719         changed_variables (and seen first time) recompute it.  Set
20720         cur_loc_changed of variables which had to change cur_loc and
20721         compute elcd->cur_loc_changed if any of the subexpressions used
20722         had to change cur_loc.
20723         (vt_expand_loc): Adjust to pass arguments in
20724         expand_loc_callback_data structure.
20725         (vt_expand_loc_dummy): New function.
20726         (emitted_notes): New variable.
20727         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
20728         that weren't used for any other decl in current
20729         emit_notes_for_changes call call vt_expand_loc_dummy to update
20730         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
20731         first loc_chain location if NULL before.  Always use just
20732         cur_loc instead of first loc_chain location.  When cur_loc_changed
20733         is false, when not --enable-checking=rtl just don't emit any note.
20734         When rtl checking, compute the note and assert it is the same
20735         as previous note.  Clear cur_loc_changed and in_changed_variables
20736         at the end before removing from changed_variables.
20737         (check_changed_vars_3): New function.
20738         (emit_notes_for_changes): Traverse changed_vars to call
20739         check_changed_vars_3 on each changed var.
20740         (emit_notes_for_differences_1): Clear cur_loc_changed and
20741         in_changed_variables.  Recompute cur_loc of new_var.
20742         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
20743         (vt_emit_notes): Initialize and destroy emitted_notes.
20744
20745 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
20746
20747         PR rtl-optimization/42220
20748         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
20749         Use verify_reg_tracked to determine if we should use OP_OUT rather
20750         than OP_INOUT.
20751         (build_def_use): If we see an in-out operand for a register that we
20752         know nothing about, treat is an output if possible, fail the block if
20753         not.
20754
20755 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
20756
20757         PR debug/42897
20758         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
20759         permanently.
20760
20761 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
20762
20763         PR debug/42897
20764         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
20765         uses of relevant DEFs that are dead outside the loop too.
20766
20767 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
20768
20769         * var-tracking.c (dataflow_set_merge): Swap src and src2.
20770         Reverted:
20771         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
20772         PR debug/41371
20773         * var-tracking.c (values_to_unmark): New variable.
20774         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
20775         values_to_unmark vector.  Moved body to...
20776         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
20777         instead queue it into values_to_unmark vector.
20778         (vt_find_locations): Free values_to_unmark vector.
20779
20780 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
20781
20782         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
20783         (site.exp): Export them when plugins are enabled.
20784
20785 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
20786
20787         PR middle-end/42326
20788         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
20789         that contain scevs.
20790         (chrec_fold_multiply): Same.
20791
20792 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
20793
20794         PR c/43248
20795         * c-decl.c (build_compound_literal): Return early if init is
20796         an error_mark_node.
20797
20798 2010-03-04  Martin Jambor  <mjambor@suse.cz>
20799
20800         PR tree-optimization/43164
20801         PR tree-optimization/43191
20802         * tree-sra.c (type_consists_of_records_p): Reject records with
20803         zero-size bit-fields at the end.
20804
20805 2010-03-04  Mike Stump  <mikestump@comcast.net>
20806
20807         * Makefile.in (TAGS): Remove *.y.
20808
20809 2010-03-04  Richard Guenther  <rguenther@suse.de>
20810
20811         PR tree-optimization/40761
20812         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
20813         in reverse order.
20814         (my_rev_post_order_compute): New function.
20815         (init_pre): Call it.
20816
20817 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
20818
20819         PR middle-end/43209
20820         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
20821         decrease the cost of an IV candidate when the cost is infinite.
20822
20823 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20824
20825         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
20826         Use '3DNow!' for the extension of that name, ensure normal space
20827         after the string.
20828         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
20829
20830 2010-03-03  Jeff Law  <law@redhat.com>
20831
20832         * PR middle-end/32693
20833         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
20834         than gen_rtx_SUBREG.
20835         (extract_bit_field_1): Likewise.
20836
20837 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
20838
20839         * doc/sourcebuild.texi (Test directives): Document that arguments
20840         include-opts and exclude-opts are now optional for dg-skip-if,
20841         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
20842
20843 2010-03-03  Jason Merrill  <jason@redhat.com>
20844
20845         PR c++/12909
20846         * cgraph.h (varpool_node): Add extra_name field.
20847         * varpool.c (varpool_extra_name_alias): New.
20848         (varpool_assemble_decl): Emit extra name aliases.
20849         (varpool_mark_needed_node): Look past an extra name alias.
20850         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
20851         * lto-streamer-in.c (lto_input_tree): Read it.
20852         * lto-streamer-out.c (output_unreferenced_globals): Write it.
20853
20854 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
20855
20856         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
20857         (sparc*-*-solaris2*): ...this.
20858
20859 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
20860
20861         PR debug/43229
20862         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
20863         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
20864         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
20865         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
20866
20867         PR debug/43237
20868         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
20869         fallthrough to default handling, just with want_address 0 instead of 2.
20870         For single element lists, add_AT_loc directly, otherwise create an
20871         artificial variable DIE and stick location list to it.
20872
20873         PR debug/43177
20874         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
20875         (VAL_EXPR_HAS_REVERSE): Define.
20876         (reverse_op): New function.
20877         (add_stores): For reversible operations add an extra MO_VAL_USE.
20878
20879 2010-03-02  Jason Merrill  <jason@redhat.com>
20880
20881         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
20882
20883 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
20884
20885         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
20886         (sparc64-*-linux*): Likewise.
20887         (sparc64-*-solaris2*): Include assembler files before linker ones.
20888         (sparc-*-solaris2*): Simplify and reorder to match previous case.
20889         * config/sparc/gas.h: Delete.
20890         * config/sparc/sol2-64.h: Add copyright notice.
20891         * config/sparc/sol2-gas-bi.h: Likewise.
20892         * config/sparc/sol2-gld.h: Likewise.
20893         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
20894         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
20895         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
20896         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
20897         (sparc_elf_asm_named_section): Rename into...
20898         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
20899
20900 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
20901
20902         * config/alpha/alpha.c (override_options): Fix -mtune error message.
20903
20904 2010-03-02  Jeff Law  <law@redhat.com>
20905
20906         PR middle-end/42431
20907         * reload1.c (rtx_p, substitute_stack): Declare.
20908         (substitute): Record addresses of changed rtxs.
20909         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
20910         Restore the original rtx when complete.
20911         (reload): Free subsitute_stack when complete.
20912
20913 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
20914
20915         * doc/gccint.texi (menu): Add Testsuites as a chapter.
20916         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
20917         new chapter.
20918         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
20919         LTO Testing, gcov Testing, profopt Testing, compat Testing,
20920         Torture Tests): Change from subsection to section.
20921
20922 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
20923             Steven Bosscher  <steven@gcc.gnu.org>
20924
20925         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
20926         instead of bb.
20927
20928 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
20929
20930         PR middle-end/42640
20931         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
20932         the assignment from the new induction variable to the assignment
20933         of the value from the original loop PHI function.
20934
20935 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
20936             Daniel Jacobowitz  <dan@codesourcery.com>
20937
20938         * doc/sourcebuild.texi (Test directives): Clarify options to
20939         dg-skip-if.
20940
20941 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20942
20943         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
20944         Disable cfi directives unless GCC and gas agree on using read-only
20945         .eh_frame sections for 64-bit.
20946         * configure: Regenerate.
20947
20948 2010-03-01  Richard Guenther  <rguenther@suse.de>
20949
20950         PR tree-optimization/43220
20951         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
20952         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
20953
20954 2010-03-01  Richard Guenther  <rguenther@suse.de>
20955             Martin Jambor  <mjambor@suse.cz>
20956
20957         PR middle-end/41250
20958         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
20959         gimplified parameters.
20960
20961 2010-03-01  Christian Bruel  <christian.bruel@st.com>
20962
20963         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
20964
20965 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
20966
20967         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
20968
20969 2010-03-01  Richard Guenther  <rguenther@suse.de>
20970
20971         PR middle-end/43213
20972         * expr.c (expand_assignment): Use the alias-oracle to tell
20973         if the rhs aliases the result decl.
20974
20975 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20976
20977         PR pch/14940
20978         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
20979         to sol_gt_pch_get_address.
20980         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
20981         64-bit, SPARC and x86.
20982         (sol_gt_pch_get_address): New function.
20983
20984 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
20985
20986         * toplev.h (inform_n, error_n): Declare.
20987         * diagnostic.c (inform_n, error_n): New function.
20988
20989 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
20990
20991         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
20992         has no rtl yet when processing local_decls, queue it and recheck
20993         if deferred stack allocation hasn't assigned it rtl.
20994
20995 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
20996
20997         * config/sh/sh.c (unspec_bbr_uid): New.
20998         (gen_block_redirect): Use it instead of INSN_UID.
20999         (gen_far_branch): Likewise.
21000
21001 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
21002
21003         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
21004         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
21005
21006 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21007
21008         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
21009         (Warning Options): -Wno-conversion-null is valid for
21010         Objective-C++ as well.
21011         * doc/tm.texi (Named Address Spaces): Likewise.
21012         * doc/plugins.texi (Plugins): Replace TABs with spaces.
21013         * doc/tree-ssa.texi (Tree SSA): Likewise.
21014
21015 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
21016
21017         PR bootstrap/43202
21018         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
21019         by default.  Don't set the default arch for
21020         i[34567]86-*-darwin*|x86_64-*-darwin*.
21021
21022 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
21023
21024         PR bootstrap/43202
21025         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
21026         default.  Set the default 32bit/64bit archs with $with_arch
21027         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
21028
21029 2010-02-27  Richard Guenther  <rguenther@suse.de>
21030
21031         PR tree-optimization/43186
21032         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
21033         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
21034         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
21035         unroller iterations.
21036
21037 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
21038
21039         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
21040         required and i[34567]86-*-* targets don't support 64bit ISA.
21041
21042 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
21043
21044         PR ada/43096
21045         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
21046         the same alias set.
21047
21048 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
21049
21050         * config.gcc: Set the default arch at least to Prescott for
21051         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
21052         if SSE math is enabled.
21053
21054 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21055
21056         * diagnostic.c (diagnostic_initialize): Update.
21057         (diagnostic_report_diagnostic): Test inhibit_notes_p for
21058         informative notes.
21059         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
21060         (diagnostic_inhibit_notes): New.
21061         * toplev.c (process_options): inhibit notes with -fcompare-debug.
21062
21063 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21064
21065         PR c/20631
21066         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
21067         * doc/standards.texi: Likewise.
21068         * doc/extend.texi: Likewise.
21069         * doc/trouble.texi: Likewise.
21070         * doc/cppopts.texi: Likewise.
21071         * doc/install.texi: Likewise.
21072         * c.opt (std=c90,std=gnu90): New options.
21073         * c-opts.c (c_common_handle_option): Handle them.
21074
21075 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21076
21077         PR c/24577
21078         * c-decl.c (undeclared_variable): Use an informative note.
21079
21080 2010-02-26  Richard Guenther  <rguenther@suse.de>
21081
21082         PR tree-optimization/43186
21083         * gimple.h (gimple_fold): Remove.
21084         * gimple.c (gimple_fold): Remove.  Inline into single user ...
21085         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
21086         Try harder for conditions.
21087
21088 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
21089
21090         PR debug/43190
21091         * function.c (used_types_insert): Don't skip through named pointer
21092         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
21093         and it is different from the main variant's type.
21094
21095 2010-02-26  Nick Clifton  <nickc@redhat.com>
21096
21097         * config/rx/rx.md (sminsi3): Remove bogus alternative.
21098
21099 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
21100
21101         * config.gcc: Support --with-fpmath=sse for x86.
21102
21103         * config/i386/ssemath.h: New.
21104
21105         * doc/install.texi (--with-fpmath=sse): Documented.
21106
21107 2010-02-26  Richard Guenther  <rguenther@suse.de>
21108
21109         PR tree-optimization/43188
21110         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
21111         vector types of over-aligned element type.
21112
21113 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
21114
21115         PR target/43175
21116         * config/i386/i386.c (expand_vec_perm_blend): Use correct
21117         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
21118
21119 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
21120
21121         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
21122
21123 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
21124
21125         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
21126         * var-tracking.c: Include diagnostic.h.
21127         (debug_dv): New function.
21128         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
21129
21130         PR debug/43160
21131         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
21132         (add_value_chain, add_value_chains, remove_value_chain,
21133         remove_value_chains): Handle DEBUG_EXPRs.
21134         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
21135
21136         PR debug/43161
21137         * regcprop.c (struct queued_debug_insn_change): New type.
21138         (struct value_data_entry): Add debug_insn_changes field.
21139         (struct value_data): Add n_debug_insn_changes field.
21140         (debug_insn_changes_pool): New variable.
21141         (free_debug_insn_changes, apply_debug_insn_changes,
21142         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
21143         (kill_value_one_regno): Call free_debug_insn_changes if needed.
21144         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
21145         fields.
21146         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
21147         changes for them.
21148         (copyprop_hardreg_forward_1): Don't call apply_change_group for
21149         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
21150         changes, call cprop_find_used_regs via note_stores.
21151         (copyprop_hardreg_forward): When copying vd from predecessor
21152         which has any queued DEBUG_INSN changes, make sure the pointers are
21153         cleared.  At the end call df_analyze and then if there are any
21154         DEBUG_INSN changes queued at the end of some basic block for still
21155         live registers, apply them.
21156         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
21157
21158 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
21159
21160         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
21161         (arm*-*-*): Ditto.
21162
21163 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
21164
21165         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
21166         targets.  Set the default with_cpu/with_arch from arch/cpu.
21167         Allow x86-64 and native for with_cpu/with_arch.
21168
21169 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
21170
21171         * ebitmap.c: Change calls to verify_popcount with calls to
21172         sbitmap_verify_popcount.
21173         (ebitmap_clear_bit): Fixed map->cacheindex test and
21174         map>cache update when bit clearing results in an empty
21175         element.
21176
21177 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
21178
21179         PR target/43154
21180         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
21181         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
21182         and support both V2DF and V2DI modes.
21183         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
21184         support both V2DF and V2DI modes.
21185         (general): Delete trailing whitespace from a few patterns.
21186
21187         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21188         V2DF/V2DI interleave high/low builtins.
21189
21190         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
21191         new VSX builtins.
21192
21193         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
21194         interleave high/low functions.
21195
21196 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
21197
21198         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
21199         #pragma extern_prefix.
21200
21201 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
21202
21203         PR debug/43166
21204         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
21205         BLKmode, assert op0 is a MEM and just adjust its mode.
21206
21207         PR debug/43165
21208         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
21209         if bitpos isn't multiple of mode's bitsize.
21210
21211 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21212
21213         * c.opt (-ftemplate-depth=): New.
21214         (-ftemplate-depth-): Deprecate.
21215         * optc-gen.awk: Handle -ftemplate-depth=.
21216         * opth-gen.awk: Likewise.
21217         * c-opts.c (c_common_handle_option): Likewise.
21218         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
21219
21220 2010-02-24  Jason Merrill  <jason@redhat.com>
21221
21222         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
21223
21224 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21225
21226         * cfg.c (alloc_aux_for_block): Remove inline.
21227         (alloc_aux_for_edge): Likewise.
21228
21229 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21230
21231         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
21232
21233 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21234
21235         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
21236         * config/i386/sol2-gas.h: New file.
21237         * config.gcc (i[34567]86-*-solaris2*): Use it.
21238
21239 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21240
21241         PR c/43128
21242         * c-typeck.c (ep_convert_and_check): New.
21243         (build_conditional_expr): Use it.
21244         (build_binary_op): Likewise.
21245
21246 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
21247
21248         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
21249
21250         PR debug/43150
21251         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
21252         bounds even for -O+.
21253         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
21254         expr needs to have DECL_NAME set.
21255
21256 2010-02-24  Nick Clifton  <nickc@redhat.com>
21257
21258         * config/mep/mep.c: Include gimple.h.
21259         (mep_function_uses_sp): Delete unused function.
21260         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
21261         parameters.  Use unsigned integers to count args.  Return a
21262         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
21263
21264 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
21265
21266         PR target/43107
21267         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
21268         greater or equal to nelt instead of 2 * nelt.
21269         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
21270         with nelt - 1.
21271
21272 2010-02-23  Jason Merrill  <jason@redhat.com>
21273
21274         PR debug/42800
21275         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
21276         in cfun->local_decls even if they have register types.
21277
21278         PR c++/42837
21279         * stor-layout.c (place_field): Don't warn about unnecessary
21280         DECL_PACKED if the type is packed.
21281
21282 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
21283
21284         PR target/43139
21285         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
21286         GOTOFF relocs, even when the base reg isn't pic pointer.
21287
21288 2010-02-23  Michael Matz  <matz@suse.de>
21289
21290         PR debug/43077
21291         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
21292         (expand_gimple_basic_block): Generate and use debug temps if there
21293         are debug uses left after the last real use of TERed ssa names.
21294         Unlink debug immediate uses when they are expanded.
21295
21296 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21297
21298         PR 43123
21299         * config/i386/i386.c (override_options): Reorganise to provide
21300         better error messages.
21301
21302 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21303
21304         PR middle-end/43083
21305         * graphite-scop-detection.c (create_single_exit_edge): Move
21306         the call to find_single_exit_edge to....
21307         (create_sese_edges): ...here.  Don't handle multiple edges
21308         exiting the function.
21309         (build_graphite_scops): Don't handle multiple edges
21310         exiting the function.
21311
21312 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21313
21314         PR middle-end/43097
21315         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
21316         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
21317
21318 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21319
21320         PR middle-end/43026
21321         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
21322
21323 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21324
21325         PR c++/43126
21326         * c-typeck.c (convert_arguments): Print declaration location.
21327         * c-common.c (validate_nargs): Rename as
21328         builtin_function_validate_nargs.
21329         (check_builtin_function_arguments): Update.
21330
21331 2010-02-22  Richard Guenther  <rguenther@suse.de>
21332
21333         PR lto/43045
21334         * tree-inline.c (declare_return_variable): Use the type of
21335         the call stmt lhs if available.
21336
21337 2010-02-22  Duncan Sands  <baldrick@free.fr>
21338
21339         * passes.c (register_pass): Always consider all pass lists when
21340         ref_pass_instance_number is zero.
21341
21342 2010-02-22  Richard Guenther  <rguenther@suse.de>
21343
21344         PR tree-optimization/42749
21345         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
21346         parameter.  Do arithmetic in the original type.
21347         (update_accumulator_with_ops): Likewise.
21348         (adjust_accumulator_values): Adjust.
21349
21350 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21351
21352         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
21353         (QI to BLKmode splitter): New splitter.
21354
21355 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
21356
21357         * config/i386/i386.c (initial_ix86_tune_features): Turn on
21358         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
21359
21360 2010-02-22  Richard Guenther  <rguenther@suse.de>
21361
21362         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
21363
21364 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
21365
21366         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
21367         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
21368         ($(T)crti.o, $(T)crtn.o): Remove rules.
21369
21370 2010-02-21  Tobias Burnus  <burnus@net-b.de>
21371
21372         PR fortran/35259
21373         * doc/invoke.texi (-fassociative-math): Document that this
21374         option is automatically enabled for Fortran.
21375
21376 2010-02-20  David S. Miller  <davem@davemloft.net>
21377
21378         * configure.ac: Test if linker and assembler properly support
21379         GOTDATA_OP relocations.
21380         * configure: Rebuild.
21381         * config.in: Likewise.
21382         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
21383         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
21384         (movsi_high_pic): Likewise.
21385         (movdi_lo_sum_pic): Likewise.
21386         (movdi_high_pic): Likewise.
21387         (movsi_pic_gotdata_op): New pattern.
21388         (movdi_pic_gotdata_op): Likewise.
21389         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
21390         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
21391
21392 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
21393
21394         PR target/43067
21395         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
21396         attribute to ssemul.
21397         (xop_mulv2div2di3_high): Ditto.
21398
21399 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21400
21401         PR c++/35669
21402         * c.opt (Wconversion-null): New option.
21403         * doc/invoke.texi (Wconversion-null): Document.
21404
21405 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21406
21407         * common.opt (Wlarger-than-): Add Undocumented.
21408
21409 2010-02-19  Mike Stump  <mikestump@comcast.net>
21410
21411         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
21412
21413 2010-02-19  Jason Merrill  <jason@redhat.com>
21414
21415         PR target/40332
21416         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
21417         * configure: Likewise.
21418
21419 2010-02-20  Alan Modra  <amodra@gmail.com>
21420
21421         PR middle-end/42344
21422         * cgraph.h (cgraph_make_decl_local): Declare.
21423         * cgraph.c (cgraph_make_decl_local): New function.
21424         (cgraph_make_node_local): Use it.
21425         * cgraphunit.c (cgraph_function_versioning): Likewise.
21426         * ipa.c (function_and_variable_visibility): Likewise.
21427
21428 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
21429
21430         PR bootstrap/43121
21431         * except.c (sjlj_emit_function_enter): Don't call
21432         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
21433         directly.
21434         * rtl.h (add_reg_br_prob_note): Remove prototype.
21435
21436 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21437
21438         PR 41779
21439         * c-common.c (conversion_warning): Remove widening conversions
21440         before checking the conversion of integers to reals.
21441
21442 2010-02-19  Mike Stump  <mikestump@comcast.net>
21443
21444         PR middle-end/43125
21445         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
21446
21447         PR objc/43061
21448         * cgraphunit.c (process_function_and_variable_attributes): Check
21449         DECL_PRESERVE_P instead of looking up attribute "used".
21450         * ipa-pure-const.c (check_decl): Likewise.
21451         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
21452         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
21453         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
21454         instead of attribute "used".
21455         * config/sol2-c.c (solaris_pragma_init): Likewise.
21456         (solaris_pragma_fini): Likewise.
21457
21458 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
21459
21460         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
21461         Use XCNEW instead of xcalloc.
21462         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
21463         XNEW instead of xmalloc.
21464         (get_fields): Use XNEWVEC instead of xmalloc.
21465
21466         PR debug/43084
21467         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
21468         populate vars array.
21469         (create_new_general_access): For debug stmts just reset value.
21470         (get_stmt_accesses): For accesses within debug stmts just record them
21471         using add_access_to_acc_sites instead of preventing the peeling or
21472         counting them as accesses.
21473
21474         PR middle-end/42233
21475         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
21476
21477 2010-02-19  Richard Guenther  <rguenther@suse.de>
21478
21479         PR tree-optimization/42916
21480         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
21481         instructions.
21482
21483 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
21484
21485         * configure.ac: Replace all uses of changequote in macro arguments
21486         with proper quoting.
21487
21488 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
21489
21490         PR middle-end/42233
21491         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
21492
21493 2010-02-19  Richard Guenther  <rguenther@suse.de>
21494
21495         PR tree-optimization/42944
21496         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
21497         test for aliasing with errno.
21498
21499 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
21500
21501         PR middle-end/42233
21502         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
21503         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
21504         * dojump.c: Include output.h.
21505         (inv): New inline function.
21506         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
21507         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
21508         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
21509         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
21510         argument, pass it down to other calls.
21511         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
21512         add REG_BR_PROB note to the conditional jump.
21513         * cfgexpand.c (add_reg_br_prob_note): Removed.
21514         (expand_gimple_cond): Don't call it, add the probability
21515         as last argument to jumpif_1/jumpifnot_1.
21516         * Makefile.in (dojump.o): Depend on output.h.
21517         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
21518         callers.
21519         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
21520         * stmt.c (do_jump_if_equal): Likewise.
21521         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
21522         * loop-unswitch.c (compare_and_jump_seq): Likewise.
21523         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
21524         Likewise.
21525         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
21526         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
21527         jumpifnot_1 callers.
21528         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
21529         callers.
21530         (store_expr): Adjust jumpifnot caller.
21531         (store_constructor): Adjust jumpif caller.
21532
21533         PR middle-end/42233
21534         * gimplify.c (gimple_boolify): For __builtin_expect call
21535         gimple_boolify also on its first argument.
21536
21537 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
21538
21539         * configure.ac (gnu-unique-object): Wrap regexps using [] in
21540         changequote block.
21541         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
21542         * configure: Regenerated.
21543
21544 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21545
21546         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
21547         lang_hooks.types_compatible_p instead of comptypes.
21548
21549 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
21550
21551         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
21552         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
21553         if __prefer_thumb__ is defined.
21554
21555 2010-02-18  Martin Jambor  <mjambor@suse.cz>
21556
21557         PR tree-optimization/43066
21558         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
21559         array with zero-sized element type.
21560
21561 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
21562
21563         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
21564         rtx, allocate struct var_loc_node here and return it to the
21565         caller, and only if it is actually needed.
21566         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
21567         move it earlier and return immediately if it returns NULL.
21568
21569 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
21570
21571         * config/sparc/gas.h: New file.  Restore
21572         TARGET_ASM_NAMED_SECTION to its ELF default.
21573         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
21574         check !HAVE_GNU_AS.
21575         * config/sparc/sparc.c (sparc_elf_asm_named_section):
21576         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
21577         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
21578         after sparc/sysv4.h.
21579
21580 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
21581
21582         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
21583
21584 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
21585
21586         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
21587         patterns from predicated pattern.
21588
21589 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
21590
21591         PR target/43103
21592         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
21593         for insn mnemonic suffix.
21594
21595 2010-02-17  Richard Guenther  <rguenther@suse.de>
21596
21597         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
21598         to loop PHI nodes.
21599
21600 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
21601
21602         PR debug/42918
21603         * caller-save.c (save_call_clobbered_regs): If BB ends with
21604         a DEBUG_INSN, move any notes in between last real insn and the last
21605         DEBUG_INSN after the last DEBUG_INSN.
21606
21607 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
21608
21609         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
21610         Fix return type.  Fix argument type.  Explain meaning of return value.
21611
21612 2010-02-16  Richard Guenther  <rguenther@suse.de>
21613
21614         PR tree-optimization/41043
21615         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
21616         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
21617         statements ...
21618         (vrp_visit_phi_node): ... but only for loop PHI nodes.
21619
21620 2010-02-16  Ira Rosen  <irar@il.ibm.com>
21621
21622         PR tree-optimization/43074
21623         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
21624         * tree-vect-loop.c (vect_analyze_loop_operations): Add
21625         vectorizable cycles in hybrid SLP check.
21626         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
21627
21628 2010-02-16  Richard Guenther  <rguenther@suse.de>
21629
21630         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
21631         (true_dependence): If memrefs_conflict_p computes must-alias
21632         trust it.  Move TBAA check after offset-based disambiguation.
21633         (canon_true_dependence): Likewise.
21634
21635 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
21636
21637         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
21638         * doc/invoke.texi: Document it.
21639         * var-tracking.c: Include toplev.h and params.h.
21640         (vt_find_locations): Return bool indicating success.  Compute
21641         hash sizes unconditionally.  Check new parameter, report.
21642         (variable_tracking_main_1): Check vt_find_locations results and
21643         retry.  Renamed from...
21644         (variable_tracking_main): ... this.  New wrapper to preserve
21645         flag_var_tracking_assignments.
21646         * Makefile.in (var-tracking.o): Adjust dependencies.
21647
21648 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
21649             Jakub Jelinek  <jakub@redhat.com>
21650
21651         PR target/42854
21652         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
21653         if weak_import attribute is present.
21654         * config/darwin.c (machopic_select_section): Likewise.
21655
21656 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
21657
21658         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
21659         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
21660         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
21661         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
21662
21663         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
21664         types.
21665
21666         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
21667         Fix argument types.
21668
21669         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
21670         Rewrite text to refer to the names.
21671
21672 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
21673
21674         * config/i386/i386-builtin-types.def
21675         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
21676         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
21677         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
21678         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
21679         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
21680         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
21681         IX86_BUILTIN_VPERMIL2PS256.
21682         (MULTI_ARG_4_DF2_DI_I): Defined.
21683         (MULTI_ARG_4_DF2_DI_I1): Defined.
21684         (MULTI_ARG_4_SF2_SI_I): Defined.
21685         (MULTI_ARG_4_SF2_SI_I1): Defined.
21686         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
21687         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
21688         __builtin_ia32_vpermil2ps256.
21689         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
21690         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
21691         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
21692         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
21693         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
21694         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
21695         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
21696         CODE_FOR_xop_vpermil2v8sf3.
21697         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
21698         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
21699         * config/i386/xopintrin.h (_mm_permute2_pd): New.
21700         (_mm256_permute2_pd): New.
21701         (_mm_permute2_ps): New.
21702         (_mm256_permute2_ps): New.
21703
21704 2010-02-15  Nick Clifton  <nickc@redhat.com>
21705
21706         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
21707         boolean parameters.  Use emit_jump_insn when emitting a pop
21708         instruction containing a return insn.
21709         (push): Use 'true' rather than '1' as second parameter to F.
21710         (h8300_expand_prologue): Likewise.
21711         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
21712         (h8300_expand_epilogue): Likewise.
21713
21714 2010-02-15  Richard Guenther  <rguenther@suse.de>
21715
21716         PR middle-end/43068
21717         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
21718         if that is zero.
21719
21720 2010-02-15  Nick Clifton  <nickc@redhat.com>
21721
21722         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
21723         delta.
21724
21725 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
21726
21727         * intl.c (fake_ngettext): New function.
21728         * intl.h (fake_ngettext): Declare.
21729         (ngettext): Define macro.
21730         * collect2.c (notice_translated): New function.
21731         (main): Use notice_translated and ngettext.
21732         * collect2.h (notice_translated): Declare.
21733
21734 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
21735
21736         * reorg.c (delete_computation): Comment fixes.
21737         * caller-save.c (setup_save_areas): Idem.
21738         * sel-sched-dump.c (dump_lv_set): Idem.
21739         * rtl.def: Idem.
21740
21741 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21742
21743         * config/s390/s390.c (s390_sched_init): New function.
21744         (TARGET_SCHED_INIT): Target hook defined.
21745
21746 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
21747             Jack Howarth  <howarth@bromo.med.uc.edu>
21748             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
21749
21750         PR target/42982
21751         Partial revert of unintended change in fix for PR41605.
21752         * config/darwin.h: Fix typo.
21753         * config/darwin9.h: Same.
21754
21755 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
21756
21757         * c-pch.c (pch_init): Clear v.
21758
21759 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
21760
21761         PR middle-end/42930
21762         * graphite-scop-detection.c (graphite_can_represent_scev): Call
21763         graphite_can_represent_init for MULT_EXPR.
21764
21765 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
21766
21767         PR middle-end/42914
21768         PR middle-end/42530
21769         * graphite-sese-to-poly.c (remove_phi): New.
21770         (translate_scalar_reduction_to_array): Call remove_phi.
21771
21772 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
21773
21774         PR middle-end/42771
21775         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
21776         * graphite-clast-to-gimple.h (gloog): Update declaration.
21777         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
21778         * graphite-poly.h (struct poly_bb): Add missing comments.
21779         (struct scop): Add poly_scop_p field.
21780         (POLY_SCOP_P): New.
21781         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
21782         * graphite.c (graphite_transform_loops): Build the polyhedral
21783         representation for each scop before code generation.
21784         * sese.c (rename_variables_in_operand): Removed.
21785         (rename_variables_in_expr): Return the renamed expression.
21786         (rename_sese_parameters): New.
21787         * sese.h (rename_sese_parameters): Declared.
21788
21789 2010-02-11  Richard Guenther  <rguenther@suse.de>
21790
21791         PR tree-optimization/42998
21792         * tree-ssa-pre.c (create_expression_by_pieces): Treat
21793         POINTER_PLUS_EXPR properly.
21794
21795 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
21796             Changpeng Fang  <changpeng.fang@amd.com>
21797
21798         PR middle-end/40886
21799         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
21800         the cost of an IV candidate when the IV is used in a test against zero.
21801
21802         * gcc.dg/tree-ssa/ivopts-3.c: New.
21803
21804 2010-02-11  Richard Guenther  <rguenther@suse.de>
21805
21806         PR lto/41664
21807         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
21808         pointer-vs-decl case by swapping refs.  Handle some cases
21809         of pointer-vs-decl disambiguations more conservatively.
21810         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
21811         to false after expanding.
21812
21813 2010-02-11  Richard Guenther  <rguenther@suse.de>
21814
21815         PR driver/43021
21816         * gcc.c (process_command): Handle LTO file@offset case more
21817         appropriately.
21818
21819 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
21820
21821         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
21822         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
21823         of DEBUG_INSNs.
21824         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
21825
21826         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
21827         if MEM's mode size isn't DWARF2_ADDR_SIZE.
21828         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
21829         Optimize eq/ne comparisons when both arguments are known to be
21830         zero-extended.
21831         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
21832         Don't mask operands unnecessarily if they are known to be already
21833         zero-extended.
21834
21835 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
21836
21837         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
21838         instead of loop.
21839
21840 2010-02-10  Richard Guenther  <rguenther@suse.de>
21841
21842         PR tree-optimization/43017
21843         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
21844         for wrapping signed arithmetic.
21845
21846 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
21847
21848         PR debug/43010
21849         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
21850         if no debug info should be emitted for it.
21851
21852 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
21853
21854         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
21855         note when flag_exceptions is set.
21856
21857 2010-02-10  Duncan Sands  <baldrick@free.fr>
21858
21859         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
21860
21861 2010-02-10  Richard Guenther  <rguenther@suse.de>
21862
21863         PR c/43007
21864         * tree.c (get_unwidened): Handle constants.
21865         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
21866
21867 2010-02-10  Martin Jambor  <mjambor@suse.cz>
21868
21869         PR lto/42985
21870         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
21871         check for variable argument counts independently.
21872
21873 2010-02-10  Christian Bruel  <christian.bruel@st.com>
21874
21875         PR target/42841
21876         * config/sh/sh.c (find_barrier): Increase length for non delayed
21877         conditional branches.
21878
21879 2010-02-10  Christian Bruel  <christian.bruel@st.com>
21880
21881         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
21882
21883 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
21884
21885         * builtins.c (set_builtin_user_assembler_name): Also handle
21886         ffs if int is smaller than word.
21887
21888 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
21889
21890         PR middle-end/42973
21891         * ira-conflicts.c (get_dup): Remove.
21892         (process_reg_shuffles): Add new parameter.  Use it as an
21893         additional guard for copy generation.
21894         (add_insn_allocno_copies): Rewrite.
21895
21896 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
21897
21898         * common.opt (fsched2-use-traces): Preserved for backward
21899         compatibility.
21900         * doc/invoke.texi: Remove the documentation about option
21901         -fsched2-use-traces.
21902         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
21903         flag_sched2_use_traces.
21904         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
21905         the backward compatibility flag section.
21906
21907 2010-02-09  Richard Guenther  <rguenther@suse.de>
21908
21909         PR tree-optimization/43008
21910         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
21911         make HEAP variables initialized from global memory if they
21912         are not known builtin functions.
21913         (find_func_aliases): Adjust.
21914
21915 2010-02-09  Richard Guenther  <rguenther@suse.de>
21916
21917         PR tree-optimization/43000
21918         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
21919         arithmetic manually.
21920
21921 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
21922
21923         PR tree-optimization/42931
21924         * tree-loop-linear.c (try_interchange_loops): Don't call
21925         double_int_mul if estimated_loop_iterations failed.
21926
21927 2010-02-08  Martin Jambor  <mjambor@suse.cz>
21928
21929         PR middle-end/42898
21930         * tree-sra.c (build_accesses_from_assign): Do not mark in
21931         should_scalarize_away_bitmap if stmt has volatile ops.
21932         (sra_modify_assign): Do not process assigns piecemeal if if stmt
21933         has volatile ops.
21934
21935 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
21936
21937         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
21938
21939 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
21940
21941         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
21942         before the pattern.
21943
21944 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
21945
21946         PR middle-end/42946
21947         * df-core.c (df_finish_pass): Change type of saved_flags to int.
21948
21949 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
21950
21951         PR middle-end/42988
21952         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
21953         to unknown_dependence.
21954         (graphite_legal_transform_dr): Handle the unknown_dependence.
21955         (graphite_carried_dependence_level_k): Same.
21956
21957 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
21958
21959         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
21960
21961 2010-02-07  Richard Guenther  <rguenther@suse.de>
21962
21963         PR middle-end/42991
21964         * expr.c (get_inner_reference): Always initialize *pbitsize.
21965
21966 2010-02-07  Richard Guenther  <rguenther@suse.de>
21967
21968         PR middle-end/42956
21969         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
21970         new ARRAY_REFs on variable size element or minimal index arrays.
21971         Complete.
21972         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
21973         gimple_fold_indirect_ref.
21974
21975 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
21976
21977         PR target/42957
21978         * arm.c (arm_override_options): Just return if the user has specified
21979         an invalid fpu name.
21980
21981 2010-02-03  Jason Merrill  <jason@redhat.com>
21982
21983         PR c++/42870
21984         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
21985         i386_pe_maybe_record_exported_symbol.
21986
21987 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
21988
21989         PR target/42924
21990         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
21991         (pa_delegitimize_address): New function.
21992
21993 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
21994
21995         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
21996         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
21997
21998 2010-02-05  Richard Guenther  <rguenther@suse.de>
21999
22000         PR lto/42762
22001         * lto-streamer-in.c (get_resolution): Deal with references
22002         to undefined functions.
22003
22004 2010-02-05  Richard Guenther  <rguenther@suse.de>
22005
22006         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
22007         (fold_const_aggregate_ref): Likewise.
22008         (ccp_fold_stmt): Substitute loads.
22009         (maybe_fold_reference): Verify types before substituting.
22010         Unshare properly.
22011         (fold_gimple_assign): Unshare properly.
22012         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
22013
22014 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
22015
22016         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
22017         for rs6000_gen_cell_microcode.
22018
22019 2010-02-04  Richard Guenther  <rguenther@suse.de>
22020
22021         PR rtl-optimization/42952
22022         * dse.c (const_or_frame_p): Remove MEM handling.
22023
22024 2010-02-04  Nick Clifton  <nickc@redhat.com>
22025
22026         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
22027         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
22028         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
22029         (mn10300_asm_output_mi_thunk): New function.
22030         (mn10300_can_output_mu_thunk): New function.
22031         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
22032         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
22033         (FUNCTION_ARG): Delete incorrect comment.
22034
22035 2010-02-03  Jason Merrill  <jason@redhat.com>
22036
22037         PR c++/40138
22038         * fold-const.c (operand_equal_p): Handle erroneous types.
22039
22040 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
22041
22042         * config/h8300/h8300.md (can_delay): Fix attibute condition.
22043
22044 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
22045
22046         PR rtl-optimization/42941
22047         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
22048         of xmalloc.
22049
22050 2010-02-03  Jason Merrill  <jason@redhat.com>
22051
22052         PR c++/35652
22053         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
22054
22055 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
22056
22057         PR debug/42896
22058         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
22059         (cselib_reset_table): Renamed from...
22060         (cselib_reset_table_with_next_value): ... this.
22061         (cselib_get_next_uid): Renamed from...
22062         (cselib_get_next_unknown_value): ... this.
22063         * cselib.c (next_uid): Renamed from...
22064         (next_unknown_value): ... this.
22065         (cselib_clear_table): Adjust.
22066         (cselib_reset_table): Adjust.  Renamed from...
22067         (cselib_reset_table_with_next_value): ... this.
22068         (cselib_get_next_uid): Adjust.  Renamed from...
22069         (cselib_get_next_unknown_value): ... this.
22070         (get_value_hash): Use hash.
22071         (cselib_hash_rtx): Likewise.
22072         (new_cselib_val): Adjust.  Set and dump uid.
22073         (cselib_lookup_mem): Pass next_uid as hash.
22074         (cselib_subst_to_values): Likewise.
22075         (cselib_log_lookup): Dump uid.
22076         (cselib_lookup): Pass next_uid as hash.  Adjust.
22077         (cselib_process_insn): Adjust.
22078         (cselib_init): Initialize next_uid.
22079         (cselib_finish): Adjust.
22080         (dump_cselib_table): Likewise.
22081         * dse.c (canon_address): Dump value uid.
22082         * print-rtl.c (print_rtx): Print value uid.
22083         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
22084         (dvuid): New type.
22085         (dv_uid): New function, sort of renamed from...
22086         (dv_htab_hash): ... this, reimplemented in terms of it and...
22087         (dv_uid2hash): ... this.  New.
22088         (variable_htab_eq): Drop excess assertions.
22089         (tie_break_pointers): Removed.
22090         (canon_value_cmp): Compare uids.
22091         (variable_post_merge_New_vals): Print uids.
22092         (vt_add_function_parameters): Adjust.
22093         (vt_initialize): Reset table.  Adjust.
22094
22095 2010-02-03  Richard Guenther  <rguenther@suse.de>
22096
22097         PR tree-optimization/42944
22098         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
22099         (call_may_clobber_ref_p_1): Likewise.  Properly handle
22100         malloc and calloc clobbering errno.
22101
22102 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
22103
22104         * doc/invoke.texi: Fix name of sched1 dump.
22105
22106         * opts.c (decode_options): Set flag_tree_switch_conversion
22107         only conditionally on optimize >= 2.
22108
22109         * gcse.c: Assorted comment fixes in pass description.
22110
22111 2010-02-03  Anthony Green  <green@moxielogic.com>
22112
22113         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
22114         nop padding in order to maintain alignment of storage location of
22115         target function address.
22116         (moxie_trampoline_init): Store target function address at newly
22117         aligned location.
22118         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
22119         to 32.
22120         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
22121
22122 2010-02-03  Richard Guenther  <rguenther@suse.de>
22123
22124         PR middle-end/42927
22125         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
22126
22127 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22128
22129         * config.gcc: Reenable check for obsolete targets.
22130         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
22131         mips-sgi-irix6.[0-4]*.
22132
22133 2010-02-02  Nick Clifton  <nickc@redhat.com>
22134
22135         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
22136         constant size of 4 as being the same as 0.
22137         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
22138         can take values in the range 0..4.
22139
22140 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
22141
22142         PR java/41991
22143         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
22144         as _darwin10_Unwind_FindEnclosingFunction().
22145         * libgcc-libsystem.ver: New.
22146
22147 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
22148
22149         PR target/41399
22150         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
22151         implicitly set registers.
22152
22153 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
22154
22155         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
22156         (arm_override_options): Allow automatic selection of the thread
22157         pointer register if thumb2.
22158         (legitimize_pic_address): Improve code sequences for Thumb2.
22159         (arm_call_tls_get_addr): Likewise.
22160         (legitimize_tls_address): Likewise.
22161         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
22162         (pic_load_addr_32bit): ... this.  New named pattern.
22163         * thumb2.md (pic_load_addr_thumb2): Delete.
22164         (pic_load_dot_plus_four): Delete.
22165         (tls_load_dot_plus_four): New named pattern.
22166
22167 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22168
22169         PR libgomp/29986
22170         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
22171         Document fix for TLS bug.
22172
22173 2010-01-31  Richard Guenther  <rguenther@suse.de>
22174
22175         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
22176         conservatively correct.
22177
22178 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22179
22180         PR target/42850
22181         Revert:
22182         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22183
22184         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
22185
22186 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22187
22188         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
22189
22190 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
22191
22192         * config.gcc: Adjust order of makefile fragments for mingw targets.
22193
22194 2010-01-31  Richard Guenther  <rguenther@suse.de>
22195
22196         PR middle-end/42898
22197         * gimplify.c (gimplify_init_constructor): For volatile LHS
22198         initialize a temporary.
22199
22200 2010-01-31  Matthias Klose  <doko@ubuntu.com>
22201
22202         * configure.ac: Fix __stack_chk_fail check for cross builds configured
22203         --with-headers
22204         * configure: Regenerate.
22205
22206 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
22207
22208         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
22209         the same alias set and their sizes different constantness.
22210         (aliasing_component_refs_p): Revert 2009-10-24 change.
22211
22212 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22213
22214         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
22215         unused.
22216
22217 2010-01-29  Richard Guenther  <rguenther@suse.de>
22218
22219         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
22220         Assert we successfully updated the call.
22221
22222 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
22223
22224         PR rtl-optimization/42889
22225         * df.h (df_set_bb_dirty_nonlr): New prototype.
22226         * df-core.c (df_set_bb_dirty_nonlr): New function.
22227         * df-scan.c (df_insn_rescan): Call it instead of
22228         df_set_bb_dirty for DEBUG_INSNs.
22229
22230 2010-01-29  Richard Guenther  <rguenther@suse.de>
22231
22232         PR middle-end/37448
22233         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
22234         quadratic behavior in most cases.
22235
22236 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
22237
22238         PR target/42891
22239         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
22240         in the call to gen_x86_movsicc_0_m1.
22241
22242 2010-01-28  Richard Guenther  <rguenther@suse.de>
22243
22244         PR tree-optimization/42871
22245         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
22246
22247 2010-01-28  Richard Guenther  <rguenther@suse.de>
22248
22249         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
22250         into call arguments.
22251
22252 2010-01-28  Richard Guenther  <rguenther@suse.de>
22253
22254         PR middle-end/42883
22255         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
22256         the forwarder if the destination is an EH landing pad.
22257
22258 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
22259
22260         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
22261         block list passed to gimple_duplicate_sese_tail.
22262         (parallelize_loops): Avoid parallelization when the function
22263         has_nonlocal_label.
22264         Avoid parallelization when the preheader is IRREDUCIBLE.
22265         Try to optimize when estimated_loop_iterations_int is unresolved.
22266         Add the loop's location to the dump file.
22267         * tree-cfg.c (add_phi_args_after_redirect): Remove.
22268         (gimple_duplicate_sese_tail): Remove the check for the latch.
22269         Redirect nexits to the exit block.
22270         Remove handling of the incoming edges to the latch.
22271         Redirect the backedge from the copied latch to the exit bb.
22272
22273 2010-01-28  Michael Matz  <matz@suse.de>
22274
22275         PR target/42881
22276         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
22277         Wrap force_reg into a sequence, emit it before user.
22278
22279 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
22280
22281         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
22282         (arm_rev): New.
22283         (arm_legacy_rev): Likewise.
22284         (thumb_legacy_rev): Likewise.
22285
22286 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
22287
22288         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
22289         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
22290         on MEM's address failed, try avoid_constant_pool_reference and
22291         recurse if it returned something different.
22292         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
22293         address, try avoid_constant_pool_reference and recurse if it
22294         returned something different.
22295         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
22296         address and avoid_constant_pool_reference returned something
22297         different, don't set have_address.
22298
22299 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
22300
22301         PR debug/42861
22302         * var-tracking.c (val_store): Add modified argument, obey it.
22303         Adjust callers.
22304         (count_uses): Move down logging of main.
22305         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
22306         don't need resolution.
22307         (emit_notes_in_bb): Likewise.
22308
22309 2010-01-27  Richard Guenther  <rguenther@suse.de>
22310
22311         PR middle-end/42878
22312         * tree-inline.c (remap_decl): Delay remapping of SSA name
22313         default definitions until we need them.
22314
22315 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
22316
22317         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
22318         (rs6000_delegitimize_address): New function.
22319
22320         * config/s390/s390.c (s390_delegitimize_address): Call
22321         delegitimize_mem_from_attrs.
22322
22323         PR middle-end/42874
22324         * tree-inline.c (cannot_copy_type_1): Removed.
22325         (copy_forbidden): Don't forbid copying of functions containing
22326         records/unions with variable length fields.
22327
22328 2010-01-27  Christian Bruel  <christian.bruel@st.com>
22329
22330         Revert:
22331         PR target/42841
22332         * config/sh/sh.c (find_barrier): Increase length for non delayed
22333         conditional branches.
22334
22335 2010-01-27  Matthias Klose  <doko@ubuntu.com>
22336
22337         * configure.ac (gnu-unique-object): Fix ldd version check.
22338         * configure: Regenerate.
22339
22340 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22341
22342         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
22343         HAVE_GNU_AS value.
22344         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
22345         Test for HAVE_GNU_AS value.
22346
22347 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22348
22349         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
22350         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
22351         INT64_TYPE): Define.
22352         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
22353         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
22354         INT_LEAST64_TYPE): Define.
22355         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
22356         UINT_LEAST64_TYPE): Define.
22357         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
22358         INT_FAST64_TYPE): Define.
22359         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
22360         UINT_FAST64_TYPE): Define.
22361         (INTMAX_TYPE, UINTMAX_TYPE): Define.
22362         (INTPTR_TYPE, UINTPTR_TYPE): Define.
22363         (SIG_ATOMIC_TYPE): Define.
22364
22365 2010-01-26  Richard Guenther  <rguenther@suse.de>
22366
22367         * df-scan.c (df_scan_set_bb_info): Remove assert.
22368         (df_insn_rescan_debug_internal): Merge asserts.
22369         (df_install_ref): Likewise.
22370         (df_mark_reg): Use bitmap_set_range.
22371         (df_hard_reg_used_p): Remove assert.
22372         (df_hard_reg_used_count): Likewise.
22373
22374 2010-01-26  Richard Guenther  <rguenther@suse.de>
22375
22376         PR rtl-optimization/42685
22377         * web.c (web_main): Ignore DEBUG_INSNs.
22378
22379 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
22380
22381         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
22382
22383         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
22384         Fix types of fndecl and arglist parameters.
22385
22386 2010-01-26  Richard Guenther  <rguenther@suse.de>
22387
22388         PR middle-end/42806
22389         * tree-eh.c (unsplit_eh): Skip debug insns.
22390
22391 2010-01-26  Richard Guenther  <rguenther@suse.de>
22392
22393         PR tree-optimization/42250
22394         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
22395
22396 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
22397
22398         PR fortran/42866
22399         * omp-low.c (expand_omp_sections): Only use single_pred if
22400         l2_bb is single_pred_p.
22401
22402 2010-01-25  Christian Bruel  <christian.bruel@st.com>
22403
22404         PR target/42841
22405         * config/sh/sh.c (find_barrier): Increase length for non delayed
22406         conditional branches.
22407         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
22408
22409 2010-01-24  David S. Miller  <davem@davemloft.net>
22410
22411         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
22412         define if not using GAS.
22413         * config/sparc/sparc.c (sparc_elf_asm_named_section):
22414         Likewise.  Delete SECTION_MERGE code, which is only applicable
22415         when using GAS.
22416
22417 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
22418
22419         PR c++/42748
22420         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
22421         mangling of va_list in system headers.
22422
22423 2010-01-23  Toon Moene  <toon@moene.org>
22424
22425         * tree-predcom.c (combine_chains): Return NULL, not false.
22426
22427 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
22428
22429         * tree-loop-distribution.c (distribute_loop): Fix declaration and
22430         initialization of variable res to agree with return type.
22431
22432 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
22433
22434         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
22435         * tree-sra.c: Add include of expr.h.
22436
22437 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
22438
22439         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
22440         insert the debug stmt on the single non-EH edge from the stmt.
22441
22442 2010-01-22  Richard Henderson  <rth@redhat.com>
22443
22444         PR tree-opt/42833
22445         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
22446         the RHS until after generate_subtree_copies has insertted its
22447         code before the current statement.
22448
22449 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
22450
22451         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
22452
22453         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
22454
22455 2010-01-21  Martin Jambor  <mjambor@suse.cz>
22456
22457         PR tree-optimization/42585
22458         * tree-sra.c (struct access): New field grp_total_scalarization.
22459         (dump_access): Dump the new field.
22460         (should_scalarize_away_bitmap): New variable.
22461         (cannot_scalarize_away_bitmap): Likewise.
22462         (sra_initialize): Allocate new bitmaps.
22463         (sra_deinitialize): Free new bitmaps.
22464         (create_access_1): New function.
22465         (create_access): Parts moved to create_access_1.
22466         (type_consists_of_records_p): New function.
22467         (completely_scalarize_record): Likewise.
22468         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
22469         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
22470         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
22471         access.
22472         (analyze_all_variable_accesses): Completely scalarize small eligible
22473         records.
22474
22475 2010-01-21  Martin Jambor  <mjambor@suse.cz>
22476
22477         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
22478
22479 2010-01-21  Andrew Haley  <aph@redhat.com>
22480
22481         * gcc.c (process_command): Move lang_specific_driver before
22482         setting cc_libexec_prefix.
22483
22484 2010-01-21  Richard Guenther  <rguenther@suse.de>
22485
22486         PR middle-end/19988
22487         * fold-const.c (negate_expr_p): Pretend only negative
22488         real constants are easily negatable.
22489
22490 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
22491             Jason Merrill  <jason@redhat.com>
22492
22493         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
22494         (TYPE_TRANSPARENT_AGGR): this, for union and record.
22495         * calls.c (initialize argument_information): Handle it.
22496         * c-common.c (handle_transparent_union_attribute): Use new name.
22497         * c-decl.c (finish_struct): Ditto.
22498         * c-typeck.c (type_lists_compatible_p): Ditto.
22499         (convert_for_assignment): Use new name and also handle record.
22500         * function.c (aggregate_value_p): Handle it.
22501         (pass_by_reference): Ditto.
22502         (assign_parm_data_types): Ditto.
22503         * print-tree.c (print_node): Ditto.
22504         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
22505         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
22506         * tree.c (first_field): New fn.
22507
22508 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
22509
22510         PR target/42818
22511         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
22512         even when linking statically, for now.
22513
22514 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
22515
22516         PR debug/42715
22517         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
22518         without a cselib val.
22519         (count_uses): Accept MO_VAL_SET with no val on stores.
22520         (add_stores): Likewise.
22521
22522 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22523
22524         * var-tracking.c (check_value_val): Add a compile time assertion.
22525         (dv_is_decl_p): Simplify.
22526         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
22527         gcc_assert if ENABLE_CHECKING.
22528
22529 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
22530
22531         PR debug/42782
22532         * var-tracking.c: Include tree-flow.h.
22533         (mem_dies_at_call): New.
22534         (dataflow_set_preserve_mem_locs): Use it.
22535         (dataflow_set_remove_mem_locs): Likewise.
22536         (dump_var): Renamed from dump_variable.  Adjust all callers.
22537         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
22538         * Makefile.in (var-tracking.o): Adjust deps.
22539
22540 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
22541
22542         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
22543
22544 2010-01-20  Richard Guenther  <rguenther@suse.de>
22545
22546         PR tree-optimization/42717
22547         * tree-ssa-dce.c (get_live_post_dom): Remove.
22548         (forward_edge_to_pdom): Take an arbitrary edge to copy
22549         degenerate PHI args from.
22550         (remove_dead_stmt): Use the first post-dominator even if it
22551         does not contain live statements as redirection destination.
22552
22553 2010-01-20  Richard Guenther  <rguenther@suse.de>
22554
22555         * tree-inline.c (estimate_num_insns): Handle EH builtins.
22556
22557 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22558
22559         * sel-sched.c (create_speculation_check): Remove set but not used
22560         variable twin.
22561         (try_transformation_cache): Remove set but not used variable ds.
22562         (calculate_privileged_insns): Remove set but not used variables
22563         cur_insn and min_spec_insn.
22564         (find_best_expr): Remove set but not used variable avail_n.
22565         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
22566         variable e.
22567         * cgraphunit.c (assemble_thunk): Remove set but not used variable
22568         false_label.
22569         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
22570         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
22571         new_scop_exit_edge.
22572
22573 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
22574
22575         PR bootstrap/42786
22576         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
22577         cpu types.  Add support for *-sse3 cpu types.
22578         (x86_64-*-*): Ditto.
22579
22580 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22581
22582         PR middle-end/42803
22583         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
22584         argument, call initializer_constant_valid_p_1 instead of
22585         initializer_constant_valid_p, pass CACHE to it, return NULL
22586         immediately if first call returns NULL.
22587         (initializer_constant_valid_p_1): New function.
22588         (initializer_constant_valid_p): Use it.
22589
22590 2010-01-20  Thomas Quinot  <quinot@adacore.com>
22591
22592         * tree.def (PLACEHOLDER_EXPR): Fix comment.
22593
22594 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22595
22596         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
22597         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
22598         (loc_list_from_tree): Don't handle unsigned division.  Handle
22599         signed modulo using DW_OP_{over,over,div,mul,minus}.
22600         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
22601         modulo instead of signed.
22602
22603 2010-01-20  DJ Delorie  <dj@redhat.com>
22604
22605         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
22606         (Fpa): Pass it
22607         (h8300_emit_stack_adjustment): Propogate it.
22608         (push): Pass it.
22609         (h8300_expand_prologue): Likewise.
22610         (h8300_expand_epilogue): Likewise.
22611
22612 2010-01-19  Michael Matz  <matz@suse.de>
22613
22614         PR tree-optimization/41783
22615         * tree-data-ref.c (toplevel): Include flags.h.
22616         (dump_data_dependence_relation):  Also dump the inputs if the
22617         result will be unknown.
22618         (split_constant_offset_1): Look through some conversions.
22619         * tree-predcom.c (determine_roots_comp): Restart a new chain if
22620         the offset from last element is too large.
22621         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
22622         (reassociate_to_the_same_stmt): Handle vector registers.
22623         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
22624         (e.g. conversions).
22625         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
22626         wide_prolog_niters argument, emit widening instructions.
22627         (vect_do_peeling_for_alignment): Adjust caller, use widened
22628         variant of the iteration cound.
22629         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
22630
22631 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22632
22633         PR target/38697
22634         * config/arm/neon-testgen.m (emit_automatics): New parameter
22635         features. Adjust for Fixed_return_reg feature.
22636         (test_intrinsic): Call emit_automatics with new feature.
22637         * config/arm/neon.ml: Update copyright years.
22638         (features): New Fixed_return_reg feature.
22639         (ops): Update feature for Vget_low.
22640
22641 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
22642
22643         PR tree-optimization/42719
22644         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
22645         stmt uses.
22646
22647         PR debug/42728
22648         * fwprop.c (all_uses_available_at): Return false if def_set dest
22649         is a REG that is used in def_insn.
22650
22651 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
22652
22653         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
22654
22655         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
22656         Add argument names.
22657
22658         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
22659
22660         * target.h (struct gcc_target) <secondary_reload>: Change type
22661         of last argument to secondary_reload_info *.
22662
22663 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
22664
22665         PR target/42774
22666         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
22667         memory references with unaligned offsets.  Remove CQImode handling.
22668         (unaligned_memory_operand): Return 1 for memory references with
22669         unaligned offsets.  Remove CQImode handling.
22670
22671 2010-01-18  Richard Guenther  <rguenther@suse.de>
22672
22673         PR middle-end/39954
22674         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
22675         builtin calls.
22676
22677 2010-01-18  Richard Guenther  <rguenther@suse.de>
22678
22679         PR tree-optimization/42781
22680         * tree-ssa-structalias.c (find_what_var_points_to): Skip
22681         restrict processing only if the original variable was artificial.
22682
22683 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
22684
22685         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
22686         find number of popped argument bytes.
22687
22688         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
22689         Fix the text that describes the return value for invalid insns.
22690
22691         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
22692
22693         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
22694         Clarify what 'cost of the -dependence' is.  Fix quoting.
22695
22696         * toplev.c (default_get_pch_validity): Rename argument to "sz".
22697         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
22698
22699 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
22700
22701         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
22702         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
22703
22704 2010-01-17  Richard Guenther  <rguenther@suse.de>
22705
22706         PR middle-end/42248
22707         * function.c (split_complex_args): Take a VEC to modify.
22708         (assign_parms_augmented_arg_list): Build a VEC instead of
22709         a chain of PARM_DECLs.
22710         (assign_parms_unsplit_complex): Take a VEC of arguments.
22711         Do not fixup unmodified parms.
22712         (assign_parms): Deal with the VEC.
22713         (gimplify_parameters): Likewise.
22714
22715 2010-01-17  Richard Guenther  <rguenther@suse.de>
22716
22717         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
22718         node existence check.
22719         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
22720         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
22721         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
22722         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
22723         (gimple_execute_on_growing_pred): Likewise.
22724
22725 2010-01-17  Richard Guenther  <rguenther@suse.de>
22726
22727         PR tree-optimization/42773
22728         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
22729         (compute_antic_aux): Likewise.
22730         (compute_partial_antic_aux): Likewise.
22731
22732 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
22733
22734         PR debug/42767
22735         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
22736         and US_TRUNCATE.
22737
22738 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
22739
22740         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
22741         appearance.
22742
22743         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
22744         Fix markup for strict argument.
22745
22746         (TARGET_SCHED_REORDER2): Fix argument types.
22747
22748         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
22749         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
22750
22751         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
22752         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
22753
22754         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
22755         Add argument name.
22756
22757         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
22758         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
22759         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
22760         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
22761         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
22762
22763         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
22764
22765         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
22766
22767         (TARGET_ASM_RELOC_RW_MASK): Add return type.
22768         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
22769
22770         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
22771
22772         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
22773         Use prototype.
22774
22775         (TARGET_ASM_NAMED_SECTION): Fix argument list.
22776
22777         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
22778         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
22779
22780         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
22781
22782         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
22783
22784         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
22785         referring to it.  Fix language.
22786
22787         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
22788
22789         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
22790
22791         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
22792
22793         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
22794
22795         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
22796         '@var{stream}.  Remove stray 'and'.
22797
22798         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
22799
22800         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
22801
22802         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
22803
22804         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
22805         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
22806
22807         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
22808         Fix description of return value.
22809         Rename argument "sz" to "len."
22810
22811         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
22812         Clarify meaning of 'true' return value.
22813
22814         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
22815
22816         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
22817         rep_mode versus mode_rep.
22818
22819         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
22820
22821         (TARGET_BUILTIN_DECL): Fix name.
22822
22823         (TARGET_COMMUTATIVE_P): Fix type of first argument.
22824
22825         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
22826
22827         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
22828
22829         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
22830
22831         (TARGET_RELAXED_ORDERING): Use @deftypevr.
22832
22833         (TARGET_GET_DRAP_RTX): Note that this is a hook.
22834         Clarify language.
22835
22836         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
22837         Rename argument tm_fn to md_fn.
22838
22839         (TARGET_OPTION_PRINT): Fix argument list.
22840
22841 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
22842
22843         PR target/42664
22844         * config/i386/i386.c (ix86_fixup_binary_operands):
22845         Revert FMA4 fixup of operands.
22846
22847 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22848
22849         PR gcc/42525
22850         * Makefile.in (write_entries_to_file, install-plugin):
22851         Use \012 instead of \n with tr.
22852
22853 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
22854
22855         * configure.ac (HAVE_AS_REF): New C macro.
22856         * configure: Regenerate.
22857         * config.in: Likewise.
22858         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
22859         if HAVE_AS_REF.
22860         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
22861         if HAVE_AS_REF.
22862
22863 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
22864
22865         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
22866
22867         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
22868
22869         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
22870
22871         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
22872
22873         (TARGET_IN_SMALL_DATA_P): Fix argument type.
22874
22875         (TARGET_BINDS_LOCAL_P): Fix argument type.
22876
22877         (TARGET_ASM_FILE_END): Use prototype.
22878
22879         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
22880
22881         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
22882
22883         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
22884
22885         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
22886
22887         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
22888         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
22889
22890         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
22891         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
22892
22893         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
22894         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
22895         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
22896         (TARGET_ADDR_SPACE_CONVERT): Likewise.
22897
22898         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
22899
22900         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
22901
22902         (TARGET_INIT_BUILTINS): Use prototype.
22903
22904         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
22905         Put 'const char *' in braces.  Fix parameter types.
22906         (TARGET_INVALID_CONVERSION): Fix parameter types.
22907         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
22908         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
22909
22910         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
22911         Fix argument type.
22912
22913         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
22914
22915         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
22916
22917 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
22918
22919         * doc/tm.texi (TARGET_HELP): Fix return type.
22920
22921         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
22922         in braces.  Fix argument types.
22923
22924         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
22925
22926         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
22927
22928         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
22929
22930         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
22931         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
22932
22933         (TARGET_MANGLE_TYPE): Fix argument types.
22934
22935         (TARGET_IRA_COVER_CLASSES): Use prototype.
22936
22937         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
22938
22939         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
22940
22941         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
22942
22943         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
22944
22945         (TARGET_CALLEE_COPIES): Fix argument types.
22946
22947         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
22948
22949         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
22950
22951         (TARGET_FUNCTION_VALUE): Fix argument types.
22952
22953         (TARGET_RETURN_IN_MSB): Fix argument type.
22954
22955         (TARGET_RETURN_IN_MEMORY): Fix argument types.
22956
22957         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
22958
22959         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
22960
22961         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
22962         agree with return type.
22963
22964         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
22965
22966 2010-01-15  Jing Yu  <jingyu@google.com>
22967
22968         PR rtl-optimization/42691
22969         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
22970         a pseudo to a constant and are merged, and adjust comments.
22971
22972 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
22973
22974         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
22975
22976 2010-01-15  Richard Guenther  <rguenther@suse.de>
22977
22978         PR middle-end/42739
22979         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
22980         labels of computed or non-local gotos to the destination.
22981         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
22982         landing pad label is the first label.
22983
22984 2010-01-15  Richard Guenther  <rguenther@suse.de>
22985
22986         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
22987
22988 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
22989
22990         PR target/42747
22991         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
22992         to allow generation of the xssqrtdp instruction on power7.
22993         (sqrtdf2_fpr): Ditto.
22994
22995 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
22996
22997         PR middle-end/42674
22998         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
22999         functions with noreturn attribute.
23000
23001         PR c++/42608
23002         * varasm.c (declare_weak): Add weak attribute to decl if it
23003         doesn't have one already.
23004         (assemble_external): Only add decls to weak_decls if they also
23005         have weak attribute.
23006
23007 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
23008
23009         * var-tracking.c (var_reg_delete): Don't delete the association
23010         between REGs and values or one-part variables if the register
23011         isn't clobbered.
23012
23013 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
23014
23015         PR debug/42657
23016         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
23017         because its first operand is a non-localized variable.
23018
23019 2010-01-14  Martin Jambor  <mjambor@suse.cz>
23020
23021         PR tree-optimization/42706
23022         * tree-sra.c (encountered_recursive_call): New variable.
23023         (encountered_unchangable_recursive_call): Likewise.
23024         (sra_initialize): Initialize both new variables.
23025         (callsite_has_enough_arguments_p): New function.
23026         (scan_function): Call decl and flags check only for IPA-SRA, check
23027         whether there is a recursive call and whether it has enough arguments.
23028         (all_callers_have_enough_arguments_p): New function.
23029         (convert_callers): Look for recursive calls only when
23030         encountered_recursive_call is set.
23031         (ipa_early_sra): Bail out either if
23032         !all_callers_have_enough_arguments_p or
23033         encountered_unchangable_recursive_call.
23034
23035 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23036
23037         * sel-sched.c: Add 2010 to copyright years.
23038         * sel-sched-ir.c: Likewise.
23039         * sel-sched-ir.h: Likewise.
23040
23041 2010-01-14  Martin Jambor  <mjambor@suse.cz>
23042
23043         PR tree-optimization/42714
23044         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
23045         constructors specially.
23046
23047 2010-01-14  Andi Kleen  <ak@linux.intel.com>
23048
23049         * config/i386/drivers-i386.c (detect_caches_intel):
23050         Add l2sizekb parameter and fill in.
23051         (host_detect_local_cpu): Add l2sizekb, fill in.
23052         Add Atom small cache heuristic.
23053
23054 2010-01-14  Andi Kleen  <ak@linux.intel.com>
23055
23056         * config/i386/drivers-i386.c (detect_caches_cpuid4):
23057         Add level3 parameter and fill in.
23058         (detect_caches_intel): Handle level3 cache.
23059
23060 2010-01-14  Andi Kleen  <ak@linux.intel.com>
23061
23062         * config/i386/drivers-i386.c (host_detect_local_cpu):
23063         Fix core duo detection.
23064
23065 2010-01-14  Andi Kleen  <ak@linux.intel.com>
23066
23067         * config/i386/drivers-i386.c (host_detect_local_cpu):
23068         Fix Atom detection.
23069
23070 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23071
23072         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
23073         (rs6000_variable_issue_1): this.  Use...
23074         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
23075
23076 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23077
23078         * sel-sched-ir.c (sel_restore_other_notes): Rename to
23079         sel_restore_notes.  Update all callers.  Call reemit_notes
23080         for all insns.
23081
23082 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23083
23084         PR rtl-optimization/42246
23085         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
23086         loops.
23087
23088 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23089
23090         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
23091         all successors is the same as number of successors in current region.
23092
23093 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23094
23095         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
23096         to rename is not separable.  Otherwise check that its LHS is not NULL.
23097
23098 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23099
23100         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
23101
23102 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23103
23104         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
23105         available registers when failed to discover LHS register class.
23106         Fix indentation.  Update comment.
23107
23108 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23109             Alexander Monakov  <amonakov@ispras.ru>
23110
23111         PR rtl-optimization/42389
23112         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
23113         to can_issue_more.
23114         (advance_state_on_fence): Likewise.
23115         (sel_target_adjust_priority): Print debug output only when
23116         sched_verbose >= 4, not 2.
23117         (get_expr_cost): Do not issue all unique insns on the next cycle.
23118         (fill_insns): Initialize can_issue_more from the value saved
23119         with the fence.
23120         * sel-sched-ir.c (flist_add): New parameter issue_more.
23121         Init FENCE_ISSUE_MORE with it.
23122         (merge_fences): Likewise.
23123         (init_fences): Update call to flist_add.
23124         (add_to_fences, add_clean_fence_to_fences)
23125         (add_dirty_fence_to_fences): Likewise.
23126         (move_fence_to_fences): Update call to merge_fences.
23127         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
23128         sched groups.
23129         * sel-sched-ir.h (struct _fence): New field issue_more.
23130         (FENCE_ISSUE_MORE): New accessor macro.
23131
23132 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23133
23134         PR rtl-optimization/42388
23135         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
23136         that have no predecessors nor successors.  Do not call move_bb_info
23137         for empty blocks outside of current region.
23138
23139 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23140
23141         PR rtl-optimization/42294
23142         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
23143         * sel-sched.c (move_exprs_to_boundary): Transitively add all
23144         originators' originators.
23145
23146 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23147
23148         PR rtl-optimization/39453
23149         PR rtl-optimization/42246
23150         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
23151         for pipelining_p.
23152         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
23153
23154 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23155             Alexander Monakov  <amonakov@ispras.ru>
23156
23157         PR middle-end/42245
23158         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
23159         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
23160         argument.  Update all callers.
23161         (tidy_control_flow): ... and here.  Recompute topological order
23162         of basic blocks in region if necessary.
23163         (sel_redirect_edge_and_branch): Change return type.  Return true
23164         if topological order might have been invalidated.
23165         (purge_empty_blocks): Export and move from...
23166         * sel-sched.c (purge_empty_blocks): ... here.
23167         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
23168         (maybe_tidy_empty_bb): Delete prototype.
23169         (purge_empty_blocks): Declare.
23170
23171 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23172
23173         PR rtl-optimization/42249
23174         * sel-sched.c (try_replace_dest_reg): When chosen register
23175         and original register is the same, do not bail out early, but
23176         still check all original insns for validity of replacing destination
23177         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
23178         in this case.
23179
23180 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
23181
23182         PR c/42721
23183         Port from no-undefined-overflow branch:
23184         2009-03-09  Richard Guenther  <rguenther@suse.de>
23185
23186         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
23187
23188 2010-01-14  Richard Guenther  <rguenther@suse.de>
23189
23190         PR lto/42665
23191         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
23192
23193 2010-01-14  Ira Rosen  <irar@il.ibm.com>
23194
23195         PR tree-optimization/42709
23196         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
23197         as scalar type in creation of constant vector operand.
23198
23199 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23200
23201         PR testsuite/42414
23202         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
23203         (check-parallel-%): Match `testsuite' directory component only
23204         at the end.
23205
23206 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
23207
23208         PR translation/39521
23209         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
23210         strings with _().
23211
23212 2010-01-13  Richard Guenther  <rguenther@suse.de>
23213
23214         PR tree-optimization/42730
23215         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
23216         offset zero.
23217
23218 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
23219
23220         PR target/pr42542
23221         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
23222         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
23223         them signed.
23224
23225 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
23226
23227         * config/bfin/libgcc-bfin.ver: Regenerate based on current
23228         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
23229         ___umulsi3_highpart.
23230
23231         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
23232         rather than schedule_insns if the pass is enabled.
23233
23234 2010-01-13  Martin Jambor  <mjambor@suse.cz>
23235
23236         PR tree-optimization/42704
23237         * tree-sra.c (sra_modify_assign): Do not delete assignments to
23238         SSA_NAMEs.
23239
23240 2010-01-13  Martin Jambor  <mjambor@suse.cz>
23241
23242         PR tree-optimization/42703
23243         * tree-sra.c (analyze_access_subtree): Check that we can build a
23244         reference to the original data within the aggregate.
23245
23246 2010-01-13  Richard Guenther  <rguenther@suse.de>
23247
23248         PR tree-optimization/42705
23249         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
23250
23251 2010-01-13  Richard Guenther  <rguenther@suse.de>
23252
23253         PR middle-end/42716
23254         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
23255
23256 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
23257
23258         PR debug/41371
23259         * var-tracking.c (values_to_unmark): New variable.
23260         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
23261         values_to_unmark vector.  Moved body to...
23262         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
23263         instead queue it into values_to_unmark vector.
23264         (vt_find_locations): Free values_to_unmark vector.
23265
23266 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
23267
23268         * config/s390/s390.c (override_options): Set
23269         default of max-pending-list-length to 256
23270
23271 2010-01-13  Richard Guenther  <rguenther@suse.de>
23272
23273         PR lto/42678
23274         * tree-pass.h (PROP_gimple_lcx): New.
23275         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
23276         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
23277         before the final cleanup_eh.
23278         (dump_properties): Dump PROP_gimple_lcx.
23279         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
23280         (tree_lower_complex_O0): Remove.
23281         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
23282         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
23283         tree_lower_complex, schedule TODO_update_ssa.
23284         * lto-streamer-out.c (output_function): Stream the functions
23285         properties.
23286         * lto-streamer-in.c (input_function): Likewise.
23287         (lto_read_body): Do not override them here.
23288
23289 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
23290
23291         PR c/42708
23292         * c-typeck.c (build_c_cast): Fold value cast to union type before
23293         wrapping it in a CONSTRUCTOR.
23294
23295 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
23296
23297         PR rtl-optimization/42699
23298         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
23299         involved.
23300
23301 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23302
23303         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
23304         SUBTARGET_WARN_UNUSED_SPEC): Move ...
23305         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
23306         SUBTARGET_WARN_UNUSED_SPEC): ... here
23307         * config/mips/iris5.h (LIBGCC_SPEC): Define.
23308
23309 2010-01-12  Julian Brown  <julian@codesourcery.com>
23310
23311         * config/arm/neon-schedgen.ml (Utils): Don't try to
23312         open missing module.
23313         (find_with_result): New.
23314
23315 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
23316
23317         PR debug/42662
23318         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
23319         sharing when canonicalizing ({lt,ge}u (plus a b) b).
23320
23321         PR tree-optimization/42645
23322         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
23323         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
23324         decl_map, set processing_debug_stmt to -1 and return name without
23325         any remapping.
23326
23327 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
23328
23329         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
23330         binutils version, and reword target configuration description.
23331
23332 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
23333
23334         * config/avr/avr.h (LINKER_NAME): Remove.
23335
23336 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
23337
23338         PR target/42416
23339         * config/rs6000/rs6000.c (rs6000_override_options): On targets
23340         that support VSX, warn for -mno-altivec if vsx is not disabled,
23341         and disable vsx.
23342
23343 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
23344             Shujing Zhao  <pearly.zhao@oracle.com>
23345
23346         PR translation/42469
23347         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
23348         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
23349         character between option name and help text.
23350         * c.opt (imultilib): Likewise.
23351
23352 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
23353
23354         * lto-streamer-out.c (output_unreferenced_globals): Output static
23355         variables.
23356
23357 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
23358
23359         PR rtl-optimization/42621
23360         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
23361         optimizing for size.
23362         (duplicate_computed_gotos): Remove now-redundant check.
23363
23364 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
23365
23366         PR target/37454
23367         * configure.ac: Save and restore LDFLAGS and LIBS
23368         * configure: Regenerate.
23369
23370 2010-01-10  Richard Guenther  <rguenther@suse.de>
23371
23372         PR middle-end/42667
23373         * builtins.c (fold_builtin_strlen): Add type argument and
23374         convert the resulting length to it.
23375         (fold_builtin_1): Adjust.
23376
23377 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
23378
23379         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
23380         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
23381         1 insn.
23382         (num_insns_constant_wide): Adjust for that change.
23383
23384 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23385
23386         PR debug/42631
23387         * web.c (union_defs): Add used argument, to combine uses of
23388         uninitialized regs.
23389         (entry_register): Adjust type and tests of used argument.
23390         (web_main): Widen used for new use.  Pass it to union_defs.
23391         * df.h (union_defs): Adjust prototype.
23392
23393 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23394
23395         PR debug/42630
23396         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
23397         uses in new incoming argument.  Free body.
23398         (reset_debug_uses_in_loop): New.
23399         (analyze_insn_to_expand_var): Call the latter if the former found
23400         anything.  Fix whitespace.  Reject invalid dest overlaps before
23401         going through all insns in the loop.
23402
23403 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23404
23405         PR debug/42629
23406         * haifa-sched.c (dying_use_p): Debug insns don't count.
23407
23408 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23409
23410         PR middle-end/42363
23411         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
23412         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
23413         (verify_gimple_call): Reject LHS in noreturn calls.
23414
23415 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23416
23417         PR debug/42604
23418         PR debug/42395
23419         * tree-vect-loop-manip.c (adjust_info): New type.
23420         (adjust_vec): New pointer to vector.
23421         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
23422         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
23423         (slpeel_update_phis_for_duplicate_loop): Use them.
23424         (slpeel_update_phi_nodes_for_guard1): Likewise.
23425         (slpeel_update_phi_nodes_for_guard2): Likewise.
23426         (slpeel_tree_peel_loop_to_edge): Likewise.
23427         (vect_update_ivs_after_vectorizer): Likewise.
23428
23429 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23430
23431         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
23432         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
23433
23434 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23435
23436         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
23437         bogus uninitialized warning.
23438
23439 2010-01-09  Richard Guenther  <rguenther@suse.de>
23440
23441         PR middle-end/42512
23442         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
23443         the evolution is compatible with the initial condition.
23444
23445 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
23446
23447         * gcc.c (process_command): Update copyright notice dates.
23448         * gcov.c (print_version): Likewise.
23449         * gcov-dump.c (print_version): Likewise.
23450         * mips-tfile.c (main): Likewise.
23451         * mips-tdump.c (main): Likewise.
23452
23453 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
23454
23455         PR target/41885
23456         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
23457         (rotlhi3): Delete.
23458         (rotlhi3_8): Delete.
23459         (rotlsi3): Delete.
23460         (rotlsi3_8): Delete.
23461         (rotlsi3_16): Delete.
23462         (rotlsi3_24): Delete.
23463         (rotl<mode>3): New.
23464         (*rotw<mode>3): New.
23465         (*rotb<mode>3): New.
23466         * config/avr/avr.c (avr_rotate_bytes): New function.
23467         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
23468
23469 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
23470
23471         PR target/37454
23472         * configure.ac: Modify -rdynamic check.
23473         * configure: Regenerate.
23474
23475 2010-01-08  DJ Delorie  <dj@redhat.com>
23476
23477         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
23478         register popping order.
23479
23480 2010-01-08  Richard Guenther  <rguenther@suse.de>
23481
23482         PR lto/42528
23483         * c.opt (fsigned-char): Also let LTO handle this option.
23484         (funsigned-char): Likewise.
23485
23486 2010-01-07  Richard Guenther  <rguenther@suse.de>
23487
23488         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
23489         (gimple_op): Likewise.
23490         (gimple_op_ptr): Likewise.
23491         (gimple_assign_set_lhs): Remove gcc_assert.
23492         (gimple_assign_set_rhs1): Likewise.
23493         (gimple_assign_set_rhs2): Likewise.
23494         (gimple_call_set_lhs): Likewise.
23495         (gimple_call_set_fn): Likewise.
23496         (gimple_call_set_fndecl): Likewise.
23497         (gimple_call_fndecl): Likewise.
23498         (gimple_call_return_type): Likewise.
23499         (gimple_call_set_chain): Likewise.
23500         (gimple_call_num_args): Likewise.
23501         (gimple_call_set_arg): Likewise.
23502         (gimple_cond_set_code): Likewise.
23503         (gimple_cond_set_lhs): Likewise.
23504         (gimple_cond_set_rhs): Likewise.
23505         (gimple_cond_set_true_label): Likewise.
23506         (gimple_cond_set_false_label): Likewise.
23507         (gimple_label_set_label): Likewise.
23508         (gimple_goto_set_dest): Likewise.
23509         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
23510         (gimple_debug_bind_get_value): Likewise.
23511         (gimple_debug_bind_get_value_ptr): Likewise.
23512         (gimple_debug_bind_set_var): Likewise.
23513         (gimple_debug_bind_set_value): Likewise.
23514         (gimple_debug_bind_reset_value): Likewise.
23515         (gimple_debug_bind_has_value_p): Likewise.
23516         (gimple_return_retval_ptr): Remove gcc_assert.
23517         (gimple_return_retval): Likewise.
23518         (gimple_return_set_retval): Likewise.
23519         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
23520         (safe_referenced_var_iterator): Remove.
23521         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
23522         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
23523         (fill_referenced_var_vec): Remove.
23524         (first_readonly_imm_use): Remove redundant gcc_assert.
23525         (phi_arg_index_from_use): Combine gcc_asserts.
23526         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
23527         (first_imm_use_stmt): Remove redundant gcc_assert.
23528         * tree-cfg.c (verify_gimple_call): Verify function and chain
23529         operands.  Verify arguments.
23530         (verify_types_in_gimple_stmt): Verify condition code and labels.
23531
23532 2010-01-07  Richard Guenther  <rguenther@suse.de>
23533
23534         PR tree-optimization/42641
23535         * sese.c (rename_map_elt_info): Use the SSA name version, do
23536         not hash pointers.
23537
23538 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
23539
23540         PR tree-optimization/42625
23541         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
23542         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
23543
23544 2010-01-07  Duncan Sands  <baldrick@free.fr>
23545
23546         * Makefile.in (PLUGIN_HEADERS): Add version.h.
23547
23548 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
23549
23550         PR target/42511
23551         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
23552         note itself is not function_invariant_p.
23553
23554 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
23555
23556         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
23557         Do not add the DF_NOTE problem.
23558         * store-motion.c (execute_rtl_store_motion): Likewise.
23559
23560 2010-01-07  Martin Jambor  <mjambor@suse.cz>
23561
23562         PR tree-optimization/42157
23563         * tree-sra.c (compare_access_positions): Stabilize sort if both
23564         accesses have integer types, return zero immediately if they are the
23565         same.
23566
23567 2010-01-06  Richard Henderson  <rth@redhat.com>
23568
23569         PR middle-end/41883
23570         * haifa-sched.c (add_to_note_list): Merge into ...
23571         (concat_note_lists): ... here, and ...
23572         (unlink_other_notes, rm_other_notes): Merge into...
23573         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
23574         NOTE_INSN_EPILOGUE_BEG.
23575
23576 2010-01-06  Richard Guenther  <rguenther@suse.de>
23577
23578         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
23579         not inline regular functions into always-inline functions.
23580
23581 2010-01-06  Nick Clifton  <nickc@redhat.com>
23582
23583         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
23584         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
23585         used together.
23586         (OVERRIDE_OPTIONS): Delete.
23587         (OPTIMIZATION_OPTIONS): Define.
23588         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
23589         * config/rx/rx.c (rx_handle_option): Issue an error message if
23590         -mcpu=rx200 and -fpu are used together.
23591         (rx_set_optimization_options): New function.  Issue an error
23592         message if an optimization attribute attempts to reset the FPU/
23593         math optimization pairing.
23594         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
23595         * config/rx/rx.opt: Set the default to 32-bit doubles.
23596         * config/rx/t-rx: Add multilibs for -nofpu option.
23597         * doc/invoke.texi: Update documentation of RX options.
23598
23599 2010-01-06  Richard Guenther  <rguenther@suse.de>
23600
23601         * tree-ssa-pre.c (name_to_id): New global.
23602         (alloc_expression_id): Simplify SSA name handling.
23603         (lookup_expression_id): Likewise.
23604         (init_pre): Zero name_to_id.
23605         (fini_pre): Free it.
23606
23607 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
23608
23609         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
23610
23611 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
23612
23613         PR target/42542
23614         * config/i386/sse.md (smaxv2di3): New.
23615         (umaxv2di3): Likewise.
23616         (sminv2di3): Likewise.
23617         (uminv2di3): Likewise.
23618
23619 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
23620
23621         PR target/42564
23622         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
23623         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
23624         (legitimize_tls_address): Likewise.
23625         (sparc_tls_referenced_p): Likewise.
23626         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
23627         and adjust calls to legitimize_pic_address.
23628         (legitimate_constant_p) Use sparc_tls_referenced_p.
23629         (legitimate_pic_operand_p): Likewise.
23630         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
23631         (sparc_tls_symbol_ref_1): Delete.
23632         (sparc_tls_referenced_p): Make static, recognize specific patterns.
23633         (legitimize_tls_address): Make static, handle CONST patterns.
23634         (legitimize_pic_address): Make static, remove unused parameter and
23635         adjust recursive calls.
23636         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
23637         and adjust call to legitimize_pic_address.
23638         (sparc_output_mi_thunk): Likewise.
23639
23640 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
23641             H.J. Lu  <hongjiu.lu@intel.com>
23642
23643         PR target/42542
23644         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
23645         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
23646         operands to make them signed.
23647
23648         Revert:
23649         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
23650
23651         PR target/42542
23652         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
23653         GTU to GT for V4SI and V2DI.
23654
23655         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
23656         (umin<mode>3): Removed.
23657         (uminv8hi3): New.
23658         (uminv4si3): Likewise.
23659
23660 2010-01-05  Martin Jambor  <mjambor@suse.cz>
23661
23662         PR tree-optimization/42462
23663         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
23664         current_function_decl to helper functions and macros.
23665
23666 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23667
23668         PR bootstrap/41771
23669         * flags.h: Don't include real.h.
23670         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
23671         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
23672         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
23673         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
23674         * dominance.c: Update copyright.
23675         * gimple.c (walk_gimple_op): Remove inline.
23676         * tree-ssa-reassoc.c: Include real.h.
23677         * Makefile.in (FLAGS_H): Remove $(REAL_H).
23678         (tree-ssa-reassoc.o): Depend on $(REAL_H).
23679
23680 2010-01-05  Nick Clifton  <nickc@redhat.com>
23681
23682         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
23683         register to push into the stack frame when the accumulator has to
23684         be saved during interrupts.
23685
23686 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
23687
23688         * doc/invoke.texi: Remove the documentation about option
23689         -Wunreachable-code.
23690         * common.opt (Wunreachable-code):  Preserved for backward
23691         compatibility.
23692         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
23693         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
23694         the backward compatibility flag section.
23695
23696 2010-01-05  Richard Guenther  <rguenther@suse.de>
23697
23698         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
23699
23700 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
23701
23702         PR other/42611
23703         * cfgexpand.c (expand_one_var): Diagnose too large variables.
23704
23705         PR tree-optimization/42508
23706         * tree-sra.c (convert_callers): Check for recursive call
23707         by comparing cgraph nodes instead of decls.
23708         (modify_function): Call ipa_modify_formal_parameters also
23709         on all same_body aliases.
23710
23711         * cgraphunit.c (cgraph_materialize_all_clones): Compare
23712         cgraph nodes when checking for same_body aliases.
23713
23714 2010-01-05  Richard Guenther  <rguenther@suse.de>
23715
23716         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
23717         allocation and lookup.
23718         (get_or_alloc_expr_for_constant): Likewise.
23719         (phi_translate): Sink allocation.
23720
23721 2010-01-04  Richard Guenther  <rguenther@suse.de>
23722
23723         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
23724         a new entry only if needed.
23725         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
23726         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
23727         hashtable lookup.
23728         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
23729         the result array.
23730         (phi_translate): Handle CONSTANTs early.
23731
23732 2010-01-04  Martin Jambor  <mjambor@suse.cz>
23733
23734         PR tree-optimization/42398
23735         * tree-sra.c (struct access): Removed flag grp_different_types.
23736         (dump_access): Do not dump the removed flag.
23737         (sort_and_splice_var_accesses): Do not set the removed flag.
23738         (sra_modify_expr): Check for type compatibility directly.
23739
23740 2010-01-04  Martin Jambor  <mjambor@suse.cz>
23741
23742         PR tree-optimization/42366
23743         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
23744         edges with variable number of parameters.
23745         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
23746         flag instead of asserting it.
23747         (ipa_read_node_info): Read uses_analysis_done flag.
23748
23749 2010-01-04  Richard Guenther  <rguenther@suse.de>
23750
23751         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
23752         iterative_hash_* as intended.
23753         (vn_reference_compute_hash): Likewise.  Simplify hashing
23754         SSA names.
23755         (vn_reference_lookup_2): Likewise.
23756         (vn_nary_op_compute_hash): Likewise.
23757         (vn_phi_compute_hash): Likewise.
23758         (expressions_equal_p): Remove strange code.
23759         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
23760         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
23761         (bitmap_insert_into_set_1): Take value-id as parameter.
23762         (add_to_value): Pass it.
23763         (bitmap_insert_into_set): Likewise.
23764         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
23765
23766 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
23767
23768         PR driver/42442
23769         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
23770         (do_self_spec): For switches with SWITCH_IGNORE set set also
23771         SWITCH_IGNORE_PERMANENTLY.
23772         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
23773         of SWITCH_IGNORE.
23774
23775 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
23776
23777         * lto-streamer-out.c (output_unreferenced_globals): Output the full
23778         tree of an unreferenced global var.
23779
23780 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
23781
23782         PR target/42542
23783         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
23784         GTU to GT for V4SI and V2DI.
23785
23786         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
23787         (umin<mode>3): Removed.
23788         (uminv8hi3): New.
23789         (uminv4si3): Likewise.
23790
23791 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
23792
23793         PR lto/42581
23794         * collect2.c (main): Turn on trace in collect2 if -v is passed
23795         to gcc with LTO.
23796
23797 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
23798
23799         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
23800         description of expression operand.
23801
23802 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
23803
23804         * configure.ac: Add install-html to target_list for Make-hooks.
23805         * configure: Regenerate.
23806         * fortran/Make-lang.in (F95_HTMLFILES): New.
23807         (fortran.html): Use it.
23808         (fortran.install-html): New.
23809         * Makefile.in (install-html): Add lang.install-html.
23810         * java/Make-lang.in (JAVA_HTMLFILES): New.
23811         (java.html): Use it.
23812         (java.install-html): New.
23813         * objc/Make-lang.in (objc.install-html): New.
23814         * objcp/Make-lang.in (obj-c++.install-html): New.
23815         * cp/Make-lang.in (c++.install-html): New.
23816         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
23817         * lto/Make-lang.in (lto.install-html): New.
23818
23819 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
23820
23821         PR lto/42520
23822         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
23823
23824 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
23825
23826         PR rtl-optimization/41862
23827         * store-motion.c (store_killed_in_insn, compute_store_table,
23828         remove_reachable_equiv_notes, replace_store_insn,
23829         build_store_vectors): Ignore all DEBUG_INSNs.
23830
23831 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
23832
23833         PR lto/41564
23834         * common.opt: Add dumpdir.
23835
23836         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
23837         isn't specified.
23838         (option_map): Add --dumpdir.
23839
23840         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
23841
23842         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
23843
23844         * opts.c (decode_options): Try dump_dir_name first if
23845         dump_base_name isn't an absolute path.
23846         (common_handle_option): Handle OPT_dumpdir.
23847
23848         * toplev.c (dump_dir_name): New.
23849         (print_switch_values): Also ignore -dumpdir.
23850
23851         * toplev.h (dump_dir_name): New.
23852
23853 2010-01-03  Richard Guenther  <rguenther@suse.de>
23854
23855         PR tree-optimization/42589
23856         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
23857         double-word expansion of bswap32.
23858
23859 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
23860
23861         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
23862         with BLOCK_FOR_INSN.
23863         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
23864         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
23865         noce_process_if_block): Likewise.
23866         * gcse.c (compute_local_properties, insert_expr_in_table,
23867         insert_set_in_table, canon_list_insert, find_avail_set,
23868         pre_insert_copy_insn): Likewise.
23869
23870         * basic-block.h (BLOCK_NUM): Move from here...
23871         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
23872
23873 2010-01-03  Richard Guenther  <rguenther@suse.de>
23874
23875         PR tree-optimization/42438
23876         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
23877         contains_may_not_return_call flag.
23878         (BB_MAY_NOTRETURN): New.
23879         (valid_in_sets): Trapping nary operations are not valid
23880         in blocks that may not return.
23881         (insert_into_preds_of_block): Remove check for trapping expressions.
23882         (compute_avail): Compute also BB_MAY_NOTRETURN.
23883
23884 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
23885
23886         * doc/invoke.texi: Add 2010 to copyright years.
23887
23888 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
23889
23890         * config/sparc/sparc.c: Fix formatting nits.
23891
23892 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
23893             Alexander Monakov  <amonakov@ispras.ru>
23894
23895         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
23896
23897 2010-01-02  Richard Guenther  <rguenther@suse.de>
23898
23899         PR middle-end/42577
23900         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
23901         (simplify_switch_using_ranges): Mark to be removed edges
23902         as non-executable.
23903
23904 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23905
23906         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
23907
23908         * collect2.c (scan_libraries): Add missing argument in call to
23909         scan_prog_file.
23910
23911 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
23912
23913         PR target/42448
23914         * config/alpha/predicates.md (aligned_memory_operand): Return false
23915         for CQImode.
23916         (unaligned_memory_operand): Return true for CQImode.
23917         * config/alpha/alpha.c (get_aligned_mem): Assert that location
23918         doesn not cross aligned SImode word boundary.
23919
23920 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
23921
23922         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
23923         Remove.
23924         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
23925         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
23926
23927 2010-01-02  Richard Guenther  <rguenther@suse.de>
23928
23929         PR lto/41597
23930         * toplev.c (compile_file): Emit LTO marker properly.  Change
23931         it to __gnu_lto_v1.
23932         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
23933
23934 2010-01-01  Richard Guenther  <rguenther@suse.de>
23935
23936         PR debug/42455
23937         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
23938
23939 2010-01-01  Richard Guenther  <rguenther@suse.de>
23940
23941         PR c/42570
23942         * c-decl.c (grokdeclarator): For zero-size arrays force
23943         structural equality checks as layout_type does.
23944
23945 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
23946
23947         * builtins.c: Update copyright to 2010.
23948
23949 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
23950
23951         PR lto/42531
23952         * lto-streamer-out.c (produce_asm): Revert the last change.
23953         (copy_function): Likewise.
23954
23955         * lto-streamer.c (lto_get_section_name): Skip any leading
23956         asterisk in name.
23957
23958 2010-01-01  Richard Guenther  <rguenther@suse.de>
23959
23960         PR middle-end/42559
23961         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
23962         for LABEL_DECLs.
23963
23964 \f
23965 Copyright (C) 2010 Free Software Foundation, Inc.
23966
23967 Copying and distribution of this file, with or without modification,
23968 are permitted in any medium without royalty provided the copyright
23969 notice and this notice are preserved.