OSDN Git Service

* config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-07-08  DJ Delorie  <dj@redhat.com>
2
3         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
4         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
5         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
6         written to.
7         * config/mep/intrinsics.md: Regenerated.
8         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
9         registers when asm() or calls are detected.
10         
11 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12
13         PR c++/31246
14         * gimplify.c (gimplify_expr): Propagate no_warning flag when
15         gimplifying.
16         * gimple (gimple_build_call_from_tree): Likewise.
17         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
18         no_warning flag before warning.
19         
20 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21
22         * tree.c (set_expr_locus): Remove.
23         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
24         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
25         EXPR_LOCATION.
26         * gimplify.c (internal_get_tmp_var): Likewise.
27         (gimplify_call_expr): Likewise.
28         (gimplify_one_sizepos): Likewise.
29
30 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
31
32         PR debug/40666
33         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
34         to variables for debugging purposes.
35
36 2009-06-23  Mark Loeser  <mark@halcy0n.com>
37
38         PR build/40010
39         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
40
41 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
42
43         * pretty-print.c (pp_base_format): Remove %J.
44         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
45         gcc_cxxdiag_char_table): Likewise.
46         (init_dynamic_diag_info): Likewise.
47
48 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
49
50         * pretty-print.c (pp_base_format): Remove %H.
51         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
52         gcc_cxxdiag_char_table): Likewise.
53         (init_dynamic_diag_info): Likewise.
54         * config/mep/mep.c (mep_select_section): Likewise.
55
56 2009-07-07  Duncan Sands  <baldrick@free.fr>
57
58         * final.c (pass_clean_state): Give the pass a name.
59         * passes.c (pass_rest_of_compilation): Likewise.
60         * tree-optimize.c (pass_all_optimizations): Likewise.
61
62 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
63
64         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
65         an extra 'decl' for error_at.
66
67 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
68
69         PR middle-end/40669
70         * tree-tailcall.c (adjust_return_value_with_ops,
71         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
72         if it has complex or vector type.
73
74 2009-07-07  Olivier Hainque  <hainque@adacore.com>
75
76         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
77         pthread symbols.
78
79 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
80
81         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
82
83 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
84
85         * cgraphunit.c: Replace %J by an explicit location. Update all
86         calls.
87         * c-decl.c: Likewise.
88         * function.c: Likewise.
89         * varasm.c: Likewise.
90         * tree-ssa.c: Likewise.
91         * c-common.c: Likewise.
92         * tree-cfg.c: Likewise.
93         * config/spu/spu.c: Likewise.
94         * config/ia64/ia64.c: Likewise.
95         * config/v850/v850.c: Likewise.
96
97 2009-07-06  DJ Delorie  <dj@redhat.com>
98
99         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
100         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
101         unspecified accesses to control registers.
102         * config/mep/intrinsics.md: Regenerate.
103         * config/mep/intrinsics.h: Regenerate.
104         * config/mep/mep-intrin.h: Regenerate.
105         
106 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
107
108         * c-lex.c: Replace %H by an explicit location. Update all calls.
109         * c-common.c: Likewise.
110         * c-decl.c: Likewise.
111         * c-typeck.c: Likewise.
112         * fold-const.c: Likewise.
113         * gimplify.c: Likewise.
114         * stmt.c: Likewise.
115         * tree-cfg.c: Likewise.
116         * tree-ssa-loop-niter.c: Likewise.
117         * tree-vrp.c: Likewise.
118         * value-prof.c: Likewise.
119
120 2009-07-06  Diego Novillo  <dnovillo@google.com>
121
122         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
123         if it has one.  Handle cases where VAR does not have an
124         annotation or cfun is NULL.
125
126 2009-07-06  Diego Novillo  <dnovillo@google.com>
127
128         * tree.c: Include debug.h.
129         (initialize_tree_contains_struct): New.
130         (init_ttree): Call it.
131         (tree_node_structure_for_code): Factor out of ...
132         (tree_node_structure): ... here.
133         * treestruct.def (TS_PHI_NODE): Remove.
134         (TS_GIMPLE_STATEMENT): Remove.
135
136 2009-07-06  Diego Novillo  <dnovillo@google.com>
137
138         * tree-pretty-print.c (dump_generic_node): Protect
139         against NULL op0.
140         (debug_tree_chain): Handle cycles.
141
142 2009-07-06  Nick Clifton  <nickc@redhat.com>
143             DJ Delorie  <dj@redhat.com>
144
145         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
146         __FMOVD_ENABLED__ is defined.
147         * config/sh/sh.h
148         (TARGET_FMOVD): Provide a default definition.
149         (MASK_FMOVD): Likewise.
150         (TARGET_CPU_CPP_BUILTINS): Define
151         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
152         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
153         two fmov instructions depending upon whether TARGET_FMOVD is
154         enabled.
155         (split for DF load from memory into register): Also handle
156         MEMs which consist of REG+DISP addressing.
157         (split for DF store from register to memory): Likewise.
158         (movsf_ie): Always use single fp_mode.
159         * config/sh/sh.c (sh_override_options): Do not automatically
160         enable TARGET_MOVD for the SH2A when supporting doubles - leave
161         that to the -mfmovd command line switch.
162         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
163         (fldi_ok): Always allow.
164         * config/sh/sh.opt (mfmovd): Remove this switch.
165         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
166
167 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
168             Kaz Kojima  <kkojima@gcc.gnu.org>
169
170         PR rtl-optimization/30807
171         * postreload.c (reload_combine): For every new use of REG_SUM,
172         record the use of BASE.
173
174 2009-07-06  Jan Hubicka  <jh@suse.cz>
175
176         * params.def: Revert my accidental commit at 2009-06-30.
177
178 2009-07-04  Ian Lance Taylor  <iant@google.com>
179
180         PR target/40636
181         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
182         EXPORTED_CONST.
183         (mingw_format_attribute_overrides): Likewise.
184
185 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
186
187         PR debug/40596
188         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
189         don't check cfa.reg.  Instead of cfa.indirect use
190         fde && fde->drap_reg != INVALID_REGNUM test.
191
192 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
193
194         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
195
196 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
197
198         PR target/40587
199         * ira.c (build_insn_chain): Use DF_LR_OUT instead of
200         df_get_live_out.
201         
202 2009-07-03  Richard Guenther  <rguenther@suse.de>
203
204         PR tree-optimization/40640
205         * tree-switch-conversion.c (build_arrays): Perform arithmetic
206         in original type.
207
208 2009-07-03  Jan Hubicka  <jh@suse.cz>
209
210         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
211         for size, reduce amount of inlining.
212
213 2009-07-03  Richard Guenther  <rguenther@suse.de>
214
215         PR middle-end/34163
216         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to
217         (T2)t +- (T2)x if t +- x is known to not overflow and
218         the conversion widens the operation.
219         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
220
221 2009-07-03  Jan Hubicka  <jh@suse.cz>
222
223         * ipa-pure-const.c (analyze): Update loop optimizer init.
224         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
225         try_remove_empty_loop, remove_empty_loops): Remove.
226         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
227         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
228         to mark regular loops as neccesary.
229         (degenerate_phi_p): New function.
230         (propagate_necessity, remove_dead_phis): Use it.
231         (forward_edge_to_pdom): Likewise.
232         (eliminate_unnecessary_stmts): Take care to remove uses of results of
233         virtual PHI nodes that became unreachable.
234         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
235         * tree-flow.h (remove_empty_loops): Remove.
236         * passes.c (init_optimization_passes): Remove.
237
238 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
239
240         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
241         can_create_pseudo_p.
242         (*fix_trunc<mode>_i387_1): Ditto.
243         (*floathi<mode>2_1): Ditto.
244         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
245         (*fistdi2_1): Ditto.
246         (*fist<mode>2_1): Ditto.
247         (frndintxf2_floor): Ditto.
248         (*fist<mode>2_floor_1): Ditto.
249         (frndintxf2_ceil): Ditto.
250         (*fist<mode>2_ceil_1): Ditto.
251         (frndintxf2_trunc): Ditto.
252         (frndintxf2_mask_pm): Ditto.
253         (fxam<mode>2_i387_with_temp): Ditto.
254         * config/i386/sse.md (mulv16qi3): Ditto.
255         (*sse2_mulv4si3): Ditto.
256         (mulv2di3): Ditto.
257         (sse4_2_pcmpestr): Ditto.
258         (sse4_2_pcmpistr): Ditto.
259
260 2009-07-03  Jan Hubicka  <jh@suse.cz>
261
262         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
263         (mark_stmt_necessary): Set it.
264         (mark_operand_necessary): Set it.
265         (mark_control_dependent_edges_necessary): Set it.
266         (mark_virtual_phi_result_for_renaming): New function.
267         (get_live_post_dom): New function.
268         (forward_edge_to_pdom): New function.
269         (remove_dead_stmt): Fix handling of control dependences.
270         (tree_dce_init): Init new bitmap.
271         (tree_dce_done): Free it.
272
273 2009-07-02  Richard Guenther  <rguenther@suse.de>
274
275         PR bootstrap/40617
276         * tree-ssa-structalias.c (new_var_info): Initialize
277         is_restrict_var.
278
279 2009-07-02  Jan Hubicka  <jh@suse.cz>
280
281         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
282         local.
283
284 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
285
286         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
287         instead of recomputing it.  Adjust calls.
288         (emit_store_flag): Adjust recursive calls.
289
290 2009-07-02  Richard Guenther  <rguenther@suse.de>
291
292         * tree-ssa-live.c (remove_unused_locals): Do not remove
293         heap variables.
294         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
295         of DECL_EXTERNAL for HEAP variables.
296         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
297         HEAP variables.  Do not adjust RESTRICT vars.
298         (find_what_var_points_to): Nobody cares if something
299         points to READONLY.
300
301 2009-07-02  Ben Elliston  <bje@au.ibm.com>
302
303         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
304         pc_low and pc_high declarations to the top of the function.
305
306 2009-07-01  DJ Delorie  <dj@redhat.com>
307
308         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
309         registers as fixed.
310         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
311         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
312         unspecified accesses to control registers.
313         * config/mep/intrinsics.md: Regenerate.
314         * config/mep/intrinsics.h: Regenerate.
315         * config/mep/mep-intrin.h: Regenerate.
316         
317 2009-07-01  Anthony Green  <green@moxielogic.com>
318
319         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
320         instruction when possible.
321         (moxie_expand_prologue): Ditto.  Also, save an instruction and
322         some complexity by popping off of $r12 instead of $sp.  
323         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
324         operands.
325         
326 2009-07-01  Richard Henderson  <rth@redhat.com>
327
328         PR bootstrap/40347
329         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
330         contained no insns, reposition note before last insn.
331
332 2009-07-01  Richard Henderson  <rth@redhat.com>
333
334         PR debug/40431
335         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
336         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
337
338 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
339
340         PR bootstrap/40558
341         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
342         darwin9 for printing reg addresses with %y.
343
344 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
345
346         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
347         truncation from operands in binary operations.
348
349 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
350
351         Revert:
352         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
353         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
354         subreg of op0 to the original op0.
355
356         * expmed.c (store_bit_field_1): Use a temporary as the destination
357         instead of a paradoxical subreg when we need to truncate the result.
358
359 2009-07-01  DJ Delorie  <dj@redhat.com>
360
361         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
362         names to VLIW variants.
363         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
364         * config/mep/intrinsics.md: Regenerate.
365         * config/mep/intrinsics.h: Regenerate.
366         * config/mep/mep-intrin.h: Regenerate.
367
368 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
369
370         PR debug/40462
371         * jump.c (returnjump_p): Revert last patch.
372         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
373
374 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
375
376         PR target/40575
377         * pa.md (casesi32p): Use jump table label to determine the offset
378         of the jump table.
379         (casesi64p): Likewise.
380
381         * pa.c (forward_branch_p): Return bool type.  Use instruction
382         addresses when available.  Assert that INSN has a jump label.
383         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
384         have a jump label.
385
386 2009-07-01  Richard Guenther  <rguenther@suse.de>
387
388         PR tree-optimization/19831
389         * tree-ssa-dce.c (propagate_necessity): Calls to functions
390         that only act as barriers do not make any previous stores necessary.
391         * tree-ssa-structalias.c (handle_lhs_call): Delay making
392         HEAP variables global, do not add a constraint from nonlocal.
393         (find_func_aliases): Handle escapes through return statements.
394         (compute_points_to_sets): Make escaped HEAP variables global.
395
396 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
397
398         PR bootstrap/40597
399         * expmed.c (emit_store_flag): Perform a conversion if necessary,
400         after reducing a DImode cstore to SImode.
401
402 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
403
404         * expr.c (expand_expr_real_1): Reinstate fallthrough to
405         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
406
407 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
408
409         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
410         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
411         to 0.
412         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
413         and umod_optab if TARGET_BSD_DIVMOD.
414         * config/vax/lib1funcs.asm: New file.
415         * config/vax/t-linux: New file.
416         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
417
418 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
419
420         PR c++/40566
421         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
422         to type arguments that have void type.
423
424         PR debug/40573
425         * dwarf2out.c (gen_formal_parameter_die): Call
426         equate_decl_number_to_die if node is different from origin.
427
428 2009-06-30  Anthony Green  <green@moxielogic.com>
429
430         Clean up moxie port for --enable-build-with-cxx.
431         * config/moxie/moxie.c (moxie_function_value): First two
432         parameters are const_tree, not tree.
433         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
434         (REG_CLASS_NAMES): Ditto.
435         (REGNO_REG_CLASS): Ditto.
436         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
437         (moxie_function_value): Fix constyness of arguments.
438
439 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
440
441         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
442         finalize_size_functions before further processing.
443         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
444         (variable_size): Call self_referential_size on size expressions
445         that contain a PLACEHOLDER_EXPR.
446         (size_functions): New static variable.
447         (copy_self_referential_tree_r): New static function.
448         (self_referential_size): Likewise.
449         (finalize_size_functions): New global function.
450         * tree.c: Include tree-inline.h.
451         (push_without_duplicates): New static function.
452         (find_placeholder_in_expr): New global function.
453         (substitute_in_expr) <tcc_declaration>: Return the replacement object
454         on equality.
455         <tcc_expression>: Likewise.
456         <tcc_vl_exp>: If the replacement object is a constant, try to inline
457         the call in the expression.
458         * tree.h (finalize_size_functions): Declare.
459         (find_placeholder_in_expr): Likewise.
460         (FIND_PLACEHOLDER_IN_EXPR): New macro.
461         (substitute_placeholder_in_expr): Update comment.
462         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
463         is true.
464         (copy_tree_body_r): Likewise.
465         (copy_tree_body): New static function.
466         (maybe_inline_call_in_expr): New global function.
467         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
468         (maybe_inline_call_in_expr): Declare.
469         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
470         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
471         GIMPLE_H.
472
473 2009-06-30  Richard Guenther  <rguenther@suse.de>
474
475         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
476         continue walking.
477         (propagate_necessity): Do not mark reaching defs of stores
478         as necessary.
479
480 2009-06-30  Jan Hubicka  <jh@suse.cz>
481
482         * cfgloopanal.c (check_irred): Move into ...
483         (mark_irreducible_loops): ... here; return true if ireducible
484         loops was found.
485         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
486         (analyze_function): Try to prove loop finiteness.
487         * cfgloop.h (mark_irreducible_loops): Update prototype.
488         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
489
490 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
491
492         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
493
494 2009-06-30  Ira Rosen  <irar@il.ibm.com>
495
496         PR tree-optimization/40542
497         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile 
498         types.
499
500 2009-06-30  Martin Jambor  <mjambor@suse.cz>
501
502         PR tree-optimization/40582
503         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
504         than useless_type_conversion_p.
505         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
506         proper place.
507
508 2009-06-30  Martin Jambor  <mjambor@suse.cz>
509
510         PR middle-end/40554
511         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
512
513 2009-06-30  Richard Guenther  <rguenther@suse.de>
514
515         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
516         use ao_ref references.
517         (walk_aliased_vdefs): Likewise.
518         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
519         * tree-ssa-dce.c (struct ref_data): Remove.
520         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
521         (mark_aliased_reaching_defs_necessary): Adjust.
522         (mark_all_reaching_defs_necessary_1): Likewise.
523
524 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
525
526         PR boostrap/40597
527         * expmed.c (emit_cstore): New name of emit_store_flag_1.
528         (emit_store_flag_1): Extract from emit_store_flag, adjust
529         calls to (what now is) emit_cstore.
530         (emit_store_flag): Call emit_store_flag_1 and also use it
531         for what used to be recursive calls.
532
533 2009-06-30  Wei Guozhi  <carrot@google.com>
534
535         PR/40416
536         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
537         if the target bb post dominates from bb.
538         * config/i386/i386.c (memory_address_length): Check existence of base
539         register before using it.
540
541 2009-06-30  Nick Clifton  <nickc@redhat.com>
542             DJ Delorie  <dj@redhat.com>
543
544         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
545         __FMOVD_ENABLED__ is defined.
546         * config/sh/sh.h
547         (TARGET_FMOVD): Provide a default definition.
548         (MASK_FMOVD): Likewise.
549         (TARGET_CPU_CPP_BUILTINS): Define
550         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
551         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
552         two fmov instructions depending upon whether TARGET_FMOVD is
553         enabled.
554         (split for DF load from memory into register): Also handle
555         MEMs which consist of REG+DISP addressing.
556         (split for DF store from register to memory): Likewise.
557         * config/sh/sh.opt (mfmovd): Remove this switch.
558         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
559         * config/sh/sh.c (sh_override_options): Do not automatically
560         enable TARGET_MOVD for the SH2A when supporting doubles - leave
561         that to the -mfmovd command line switch.
562
563         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
564         the SH4 and SH4A.
565         (fldi_ok): Always allow.
566         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
567
568 2009-06-29  DJ Delorie  <dj@redhat.com>
569
570         * doc/install.texi (mep-x-elf): Correct chip's full name.
571
572 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
573
574         * doc/extend.texi: Fix typo.
575
576 2009-06-29  Tom Tromey  <tromey@redhat.com>
577
578         * dwarf2.h: Remove.
579         * Makefile.in (DWARF2_H): New variable.
580         (except.o): Use it.
581         (dwarf2out.o): Likewise.
582         (dwarf2asm.o): Likewise.
583         * config/i386/t-i386: Use DWARF2_H.
584         * except.c: Include elf/dwarf2.h.
585         * unwind-dw2.c: Include elf/dwarf2.h.
586         * dwarf2out.c: Include elf/dwarf2.h.
587         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
588         <dtprel>: New field.
589         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
590         (size_of_loc_descr): Likewise.
591         (output_loc_operands_raw): Likewise.
592         (output_loc_operands): Handle new dtprel field.
593         (loc_checksum): Update.
594         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
595         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
596         * unwind-dw2-fde.c: Include elf/dwarf2.h.
597         * dwarf2asm.c: Include elf/dwarf2.h.
598         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
599         * config/mmix/mmix.c: Include elf/dwarf2.h.
600         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
601         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
602         * config/sh/sh.c: Include elf/dwarf2.h.
603         * config/i386/i386.c: Include elf/dwarf2.h.
604
605 2009-06-29  DJ Delorie  <dj@redhat.com>
606
607         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
608
609         * doc/extend.texi: Add MeP attributes and pragmas.
610         * doc/invoke.text: Add MeP Options.
611         * doc/contrib.texi: Add MeP contribution.
612         * doc/md.texi: Add MeP constraints.
613         * doc/install.texi: Add MeP target.
614
615 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
616
617         * target.h (struct gcc_target): Add frame_pointer_required field.
618         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
619         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
620         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
621         hook.
622         * reload1.c (update_eliminables): (Ditto.).
623         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
624         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
625         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
626
627         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
628
629         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
630         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
631         (arm_frame_pointer_required): New function.
632
633         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
634         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
635         (avr_frame_pointer_required_p): Declare as static.
636         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
637
638         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
639         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
640         (bfin_frame_pointer_required): Make as static, change return type
641         to bool.
642         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
643
644         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
645         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
646         (cris_frame_pointer_required): New function.
647         
648         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
649
650         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
651         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
652         (fr30_frame_pointer_required): New function.
653         
654         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
655         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
656         (frv_frame_pointer_required): Make as static, change return type
657         to bool.
658         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
659
660         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
661         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
662         (ix86_frame_pointer_required): Make as static, change return type to
663         bool.
664         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
665
666         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
667         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
668
669         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
670
671         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
672         
673         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
674
675         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
676         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
677         (mips_frame_pointer_required): Make as static.
678         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
679         
680         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
681         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
682         (mmix_frame_pointer_required): Mew function.
683
684         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
685         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
686
687         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
688
689         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
690
691         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
692
693         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
694         (CAN_ELIMINATE): Redefine.
695         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
696         (sparc_frame_pointer_required): New function.
697         (sparc_can_eliminate): New function.
698         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
699
700         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
701         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
702
703         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
704         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
705         (xtensa_frame_pointer_required): Make as static, change return type
706         to bool.
707         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
708         Remove.
709
710 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
711
712         * doc/plugins.texi: Document PLUGIN_START_UNIT.
713         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
714         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
715         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
716         (register_callback): Handle PLUGIN_START_UNIT.
717         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
718
719 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
720
721         * tree.c (process_call_operands): Propagate TREE_READONLY from the
722         operands.
723         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
724         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
725
726 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
727
728         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
729         move cost.
730
731 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
732
733         * doc/extend.texi (Additional Floating Types): __float128 is also
734         supported on i386 targets.
735
736 2009-06-29  Richard Guenther  <rguenther@suse.de>
737
738         PR middle-end/14187
739         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
740         flag.
741         (pt_solutions_same_restrict_base): Declare.
742         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
743         flag.
744         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
745         (make_constraint_from, make_copy_constraint): Move earlier.
746         (make_constraint_from_heapvar): New function.
747         (make_constraint_from_restrict): Likewise.
748         (handle_lhs_call): Use it.
749         (find_func_aliases): Use it to track conversions to restrict
750         qualified pointers.
751         (struct fieldoff): Add only_restrict_pointers flag.
752         (push_fields_onto_fieldstack): Initialize it.
753         (create_variable_info_for): Track global restrict qualified pointers.
754         (intra_create_variable_infos): Use make_constraint_from_heapvar.
755         Track restrict qualified pointer arguments.
756         (set_uids_in_ptset): Use varinfo is_global_var flag.
757         (find_what_var_points_to): Set the vars_contains_restrict flag.
758         Always create the points-to solution for sets including restrict tags.
759         (pt_solutions_same_restrict_base): New function.
760         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
761         qualified pointers use pt_solutions_same_restrict_base as
762         additional source for disambiguation.
763
764 2009-06-29  Richard Guenther  <rguenther@suse.de>
765
766         PR middle-end/38212
767         * alias.c (find_base_decl): Remove.
768         (get_deref_alias_set_1): Remove restrict handling.
769         * c-common.c (c_apply_type_quals_to_decl): Do not set
770         DECL_POINTER_ALIAS_SET.
771         * gimplify.c (find_single_pointer_decl_1): Remove.
772         (find_single_pointer_decl): Likewise.
773         (internal_get_tmp_var): Remove restrict handling.
774         (gimple_regimplify_operands): Likewise.
775         * omp-low.c (expand_omp_atomic_pipeline): Do not set
776         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
777         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
778         * tree.c (restrict_base_for_decl): Remove.
779         (init_ttree): Do not allocate it.
780         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
781         LABEL_DECL_UID for label decls.
782         (copy_node_stat): Do not copy restrict information.
783         (decl_restrict_base_lookup): Remove.
784         (decl_restrict_base_insert): Likewise.
785         (print_restrict_base_statistics): Likewise.
786         (dump_tree_statistics): Do not call print_restrict_base_statistics.
787         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
788         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
789         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
790         (LABEL_DECL_UID): Adjust.
791         (DECL_BASED_ON_RESTRICT_P): Remove.
792         (DECL_GET_RESTRICT_BASE): Likewise.
793         (SET_DECL_RESTRICT_BASE): Likewise.
794         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
795
796         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
797         instead of DECL_POINTER_ALIAS_SET.
798         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
799         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
800         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
801
802 2009-06-29  Richard Guenther  <rguenther@suse.de>
803
804         PR tree-optimization/40579
805         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
806         the IL to simplify has constants that overflowed.
807
808 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
809
810         PR tree-optimization/40550
811         * tree-vect-generic.c (expand_vector_operations_1): Compute in
812         vector_compute_type only when the size of vector_compute_type is
813         less than the size of type.
814
815 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
816
817         * fold-const.c (contains_label_1): Fix comments.
818         (contains_label_p): Do not walk trees multiple time.
819
820 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
821
822         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
823         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
824         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
825         ix86_fp_comparison_operator.
826         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
827         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
828         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
829         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
830         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
831         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
832         (related splits): Change predicate to ix86_fp_comparison_operator.
833         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
834         instead of ix86_fp_comparison_codes.
835         (ix86_trivial_fp_comparison_operator,
836         ix86_fp_comparison_operator): New.
837         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
838         (ix86_expand_compare): Eliminate last two parameters.
839         (ix86_fp_jump_nontrivial_p): Kill.
840         * config/i386/i386.c (put_condition_code): Eliminate call to
841         ix86_fp_comparison_codes and subsequent assertion.
842         (ix86_fp_comparison_codes): Eliminate.
843         (ix86_fp_swap_condition): New.
844         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
845         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
846         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
847         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
848         and ix86_fp_swap_condition.
849         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
850         Use ix86_fp_comparison_strategy.
851         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
852         (ix86_fp_jump_nontrivial_p): Eliminate.
853         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
854         call to ix86_expand_compare.
855         (ix86_split_fp_branch, ix86_expand_setcc,
856         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
857         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
858
859 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
860
861         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
862         related to jump_clobbers.
863         * config/arm/arm.md (conds): Remove jump_clob case.
864         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
865         splits): Change comparison_operator to arm_comparison_operator.
866         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
867         Eliminate.
868
869 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
870
871         * dojump.c (do_compare_rtx_and_jump): Try swapping the
872         condition for floating point modes.
873         * expmed.c (emit_store_flag_1): Move here a bigger part
874         of emit_store_flag.
875         (emit_store_flag): Try swapping the condition for floating point
876         modes.
877         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
878
879 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
880
881         * expr.c (expand_expr_real_1): Just use do_store_flag.
882         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
883         emit_store_flag_force.
884         * expmed.c (emit_store_flag_force): Copy here trick
885         previously in expand_expr_real_1.  Try reversing the comparison.
886         (emit_store_flag_1): Work if target is NULL.
887         (emit_store_flag): Work if target is NULL, using the result mode
888         from the comparison.  Use split_comparison, restructure final part
889         to simplify conditionals.
890
891 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
892
893         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
894         * dojump.c (do_jump): Change handling of floating-point
895         ops to use just do_compare_and_jump.
896         (split_comparison): New.
897         (do_compare_rtx_and_jump): Add here logic coming previously
898         in do_jump, using split_comparison.
899
900 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
901
902         PR target/40489
903         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
904
905 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
906
907         * tree-ssa-alias.c: Fix unintentional commit.
908
909 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
910
911         * passes.c (execute_one_pass): Fix unintentional commit.
912
913 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
914
915         * df-problems.c (df_set_seen, df_unset_seen): Delete.
916         (df_rd_local_compute, df_md_local_compute): Inline them.
917
918         (df_md_scratch): New.
919         (df_md_alloc, df_md_free): Allocate/free it.
920         (df_md_local_compute): Only include live registers in init.
921         (df_md_transfer_function): Prune the in-set computed by
922         the confluence function, and the gen-set too.
923
924 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
925
926         PR rtl-optimization/26854
927         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
928         * df-problems.c (df_rd_add_problem): Fix comment.
929         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
930         df_md_simulate_artificial_defs_at_top,
931         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
932         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
933         df_md_transfer_function, df_md_init, df_md_confluence_0,
934         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
935         problem_MD, df_md_add_problem): New.
936         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
937         df_md_get_bb_info): New.
938         (DF_LAST_PROBLEM_PLUS1): Adjust.
939
940         * Makefile.in (fwprop.o): Include domwalk.h.
941         * fwprop.c: Include domwalk.h.
942         (reg_defs, reg_defs_stack): New.
943         (bitmap_only_bit_between): Remove.
944         (process_defs): New.
945         (process_uses): Use reg_defs and local_md instead of
946         bitmap_only_bit_between and local_rd.
947         (single_def_use_enter_block): New, from build_single_def_use_links.
948         (single_def_use_leave_block): New.
949         (build_single_def_use_links): Remove code moved to
950         single_def_use_enter_block, invoke domwalk.
951         (use_killed_between): Adjust comment.
952
953 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
954
955         * bitmap.h (bitmap_ior_and_into): New.
956         * bitmap.c (bitmap_ior_and_into): New.
957
958 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
959
960         * domwalk.h (struct dom_walk_data): Remove all callbacks except
961         before_dom_children_before_stmts and after_dom_children_after_stmts.
962         Rename the two remaining callbacks to just before_dom_children and 
963         after_dom_children. Remove other GIMPLE statement walking bits.
964         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
965         * graphite.c: Do not include domwalk.h.
966         * tree-into-ssa.c (interesting_blocks): New global.
967         (struct mark_def_sites_global_data): Remove it and names_to_rename.
968         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
969         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
970         now that they're not domwalk callbacks.
971         (rewrite_initialize_block): Rename to...
972         (rewrite_enter_block): ... this, place after called functions.  Test
973         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
974         (rewrite_finalize_block): Rename to...
975         (rewrite_leave_block): ... this, place after called functions.
976         (rewrite_update_init_block): Rename to...
977         (rewrite_update_enter_block): ... this, place after called functions.
978         Test interesting_blocks, call rewrite_update_stmt and 
979         rewrite_update_phi_arguments.
980         (rewrite_update_fini_block): Rename to...
981         (rewrite_leave_block): ... this, place after called functions.
982         (rewrite_blocks): Remove last argument, simplify initialization of
983         walk_data.
984         (mark_def_sites_initialize_block): Rename to...
985         (mark_def_sites_block): ... this, call mark_def_sites.
986         (mark_def_sites_blocks): Remove argument, simplify initialization of
987         walk_data.
988         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
989         (update_ssa): Likewise.
990         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
991         callback.
992         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
993         (dom_opt_initialize_block): Rename to...
994         (dom_opt_enter_block): ... this, place after called functions.  Walk
995         statements here, inline propagate_to_outgoing_edges.
996         (dom_opt_finalize_block): Rename to...
997         (dom_opt_leave_block): ... this, place after called functions.
998         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
999         domwalk callback.
1000         (dse_enter_block, dse_record_phi): New.
1001         (dse_record_phis): Delete.
1002         (dse_finalize_block): Rename to...
1003         (dse_leave_block): ... this.
1004         (tree_ssa_dse): Simplify initialization of walk_data.
1005         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
1006         Adjust initialization of walk_data.
1007         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
1008         * tree-ssa-loop-phiopt.c (get_non_trapping):
1009         Adjust initialization of walk_data.
1010         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
1011         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
1012         it's not a domwalk callback.
1013         (uncprop_initialize_block): Rename to...
1014         (dse_enter_block): ... this, call uncprop_into_successor_phis.
1015         (dse_finalize_block): Rename to...
1016         (dse_leave_block): ... this.
1017         (tree_ssa_uncprop): Simplify initialization of walk_data.
1018         * Makefile.in: Adjust dependencies.
1019
1020 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
1021
1022         * arm.md (casesi): Fix test for Thumb1.
1023         (thumb1_casesi_internal_pic): Likewise.
1024         (thumb1_casesi_dispatch): Likewise.
1025
1026 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
1027
1028         * config/arm/arm-cores.def: Added core cortex-m0.
1029         * config/arm/arm-tune.md: Regenerated.
1030         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
1031
1032 2009-06-26  DJ Delorie  <dj@redhat.com>
1033
1034         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
1035
1036         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
1037         the scheduler doesn't tag jump insns.
1038
1039 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
1040
1041         * c-decl.c (merge_decls): Re-indent.
1042
1043 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
1044
1045         PR c/39902
1046         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
1047         Special-case decimal float constants.
1048
1049 2009-06-26  Richard Henderson  <rth@redhat.com>
1050
1051         * function.h (struct function): Add cannot_be_copied_reason,
1052         and cannot_be_copied_set.
1053         * tree-inline.c (has_label_address_in_static_1): Rename from
1054         inline_forbidden_p_2; don't set inline_forbidden_reason here.
1055         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
1056         don't set inline_forbidden_reason.
1057         (copy_forbidden): New function, split out of inline_forbidden_p.
1058         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
1059         (inline_forbidden_p): Use copy_forbidden.
1060         (tree_versionable_function_p): Likewise.
1061         (inlinable_function_p): Merge into tree_inlinable_function_p.
1062         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
1063         * ipa-cp.c (ipcp_versionable_function_p): New function.
1064         (ipcp_cloning_candidate_p): Use it.
1065         (ipcp_node_modifiable_p): Likewise.
1066
1067 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
1068
1069         * builtins.c (expand_builtin_alloca): Handle builtin alloca
1070         that is marked not to be inlined. Remove flag_mudflap use.
1071         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
1072         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
1073
1074 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
1075
1076         PR bootstrap/40338
1077         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
1078         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
1079
1080 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
1081
1082         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
1083         shared libgcc.
1084         (__mingwthr_remove_key_dtor): Likewise.
1085
1086 2009-06-26  Richard Guenther  <rguenther@suse.de>
1087
1088         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
1089
1090 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
1091
1092         PR middle-end/40525
1093         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
1094         try the non-cond_exec path also.
1095
1096 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1097
1098         PR target/40468
1099         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
1100         (output_cbranch): Use new functions.
1101         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
1102         Likewise.
1103
1104 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
1105             Pat Haugen  <pthaugen@us.ibm.com>
1106             Revital Eres <ERES@il.ibm.com>
1107
1108         * config/rs6000/rs6000.c (print_operand): Correct lossage message
1109         for %c error.  Add %x support to print VSX registers as a unified
1110         register set, instead of separate float and altivec registers.
1111         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
1112         %y case, and add support for VSX pre-modify addresses.
1113         (output_toc): Add assert for CONST containing an integer constant
1114         in the PLUS case.
1115         (rs6000_adjust_cost): Add POWER7 support.
1116         (insn_must_be_first_in_group): Ditto.
1117         (insn_must_be_last_in_group): Ditto.
1118         (rs6000_emit_popcount): Ditto.
1119         (rs6000_vector_mode_supported_p): Ditto.
1120
1121         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
1122         Change some of the functions called by macros to being called
1123         through a pointer, so debug functions can be inserted if
1124         -mdebug=addr or -mdebug=cost. 
1125         (rs6000_preferred_reload_class_ptr): Ditto.
1126         (rs6000_secondary_reload_class_ptr): Ditto.
1127         (rs6000_secondary_memory_needed_ptr): Ditto.
1128         (rs6000_cannot_change_mode_class_ptr): Ditto.
1129         (rs6000_secondary_reload_inner): Ditto.
1130         (rs6000_legitimize_reload_address): Ditto.
1131         (rs6000_legitimize_reload_address_ptr): Ditto.
1132         (rs6000_mode_dependent_address): Ditto.
1133         (rs6000_mode_dependent_address_ptr): Ditto.
1134
1135         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
1136         function to return true if the mode allows reg + integer
1137         addresses.
1138         (virtual_stack_registers_memory_p): New function to return true if
1139         the address refers to a virtual stack register.
1140         (rs6000_legitimate_offset_address_p): Move code to say whether a
1141         mode supports reg+int addressing to reg_offset_addressing_ok_p and
1142         call it.
1143         (rs6000_legitimate_address_p): Add checks for modes that only can
1144         do reg+reg addressing.  Start adding VSX support.
1145         (rs6000_legitimize_reload_address): Ditto.
1146         (rs6000_legitimize_address): Ditto.
1147         (rs6000_debug_legitimate_address_p): New debug functions for
1148         -mdebug=addr and -mdebug=cost.
1149         (rs6000_debug_rtx_costs): Ditto.
1150         (rs6000_debug_address_costs): Ditto.
1151         (rs6000_debug_adjust_cost): Ditto.
1152         (rs6000_debug_legitimize_address): Ditto.
1153         (rs6000_legitimize_reload_address_ptr): Point to call normal
1154         function or debug function.  Make functions called via pointer
1155         static.
1156         (rs6000_mode_dependent_address_ptr): Ditto.
1157         (rs6000_secondary_reload_class_ptr): Ditto.
1158         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
1159         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
1160         into a friendlier error.
1161         (rs6000_init_builtins): Add initial VSX support.
1162         (rs6000_adjust_cost): Fix some spacing issues.
1163
1164         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
1165         (REG_CLASS_NAMES): Ditto.
1166         (REG_CLASS_CONTENTS): Ditto.
1167         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
1168         pointer, to add -mdebug=addr support.
1169         (CANNOT_CHANGE_MODE_CLASS): Ditto.
1170         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
1171         -mdebug=addr support.
1172         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
1173         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
1174         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
1175
1176         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
1177         16-bit values.
1178         (bswapsi*): Set attribute types for load/store.  Add combiner
1179         patterns to eliminate zero extend on 64-bit.
1180         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
1181         stdbrx if the hardware supports those instructions.
1182
1183 2009-06-25  Ian Lance Taylor  <iant@google.com>
1184
1185         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
1186         (Link Options): Document -static-libstdc++.
1187
1188 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1189
1190         PR target/38731
1191         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
1192         DATA_ALIGNMENT instead.
1193
1194 2009-06-25  Richard Guenther  <rguenther@suse.de>
1195
1196         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
1197         indirect references against the callused/escaped solutions.
1198         (call_may_clobber_ref_p_1): Likewise.
1199
1200 2009-06-25  Martin Jambor  <mjambor@suse.cz>
1201
1202         PR tree-optimization/40493
1203         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
1204         (enum unscalarized_data_handling): New type.
1205         (handle_unscalarized_data_in_subtree): Return what has been done.
1206         (load_assign_lhs_subreplacements): Handle left flushes differently.
1207         (sra_modify_assign): Use unscalarized_data_handling, simplified
1208         condition determining whether to remove the statement.
1209
1210 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
1211
1212         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
1213         excerpt - @ should be doubled for texinfo.
1214
1215 2009-06-24  Ian Lance Taylor  <iant@google.com>
1216
1217         * config/arc/arc.c: Include "df.h".
1218         (arc_attribute_table): Make static.  Move higher in file.
1219         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
1220         (output_shift): Initialize n later to avoid warning.
1221         * config/arm/arm.c (arm_attribute_table): Make static.  Move
1222         higher in file.
1223         * config/avr/avr.c (avr_attribute_table): Make static.  Move
1224         higher in file.
1225         (reg_class_tab): Change array type from int to enum reg_class.
1226         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
1227         LABEL_REF.
1228         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
1229         (lshrhi3_out): Likewise.
1230         (class_likely_spilled_p): Change return type to bool.
1231         (avr_rtx_costs): Use local code variable with enum type.
1232         * config/avr/avr.md (movmemhi): Use add_reg_note.
1233         (andhi3, andsi3): Don't use AS2 with "and".
1234         (iorhi3, iorsi3): Don't use AS2 with "or".
1235         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
1236         * config/crx/crx.c: Include "df.h".
1237         (crx_attribute_table): Make static.
1238         * config/m32r/m32r.c: Include "df.h".
1239         (m32r_attribute_table): Make static.  Move higher in file.
1240         (pop): Use add_reg_note.
1241         (block_move_call): Change 0 to LCT_NORMAL in function call.
1242         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
1243         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
1244         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
1245         declare, not just when TREE_CODE is defined.
1246         * config/m68hc11/m68hc11.c: Include "expr.h".
1247         (m68hc11_attribute_table): Make static.  Move higher in file.
1248         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
1249         function call.
1250         (m68hc11_register_indirect_p): Likewise.
1251         (m68hc11_function_arg_padding): Change return type to enum
1252         direction.
1253         (emit_move_after_reload): Use add_reg_note.
1254         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
1255         (m68hc11_split_logical): Likewise.
1256         (m68hc11_rtx_costs): Add local code_and outer_code variables with
1257         enum type.
1258         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
1259         to VOIDmode in function call.
1260         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
1261         tree is defined.
1262         (m68hc11_split_logical): Update declaration.
1263         (m68hc11_function_arg_padding): Update declaration.
1264         * config/mcore/mcore.c (regno_reg_class): Change form array of int
1265         to array of enum reg_class.
1266         (mcore_attribute_table): Make static.  Move higher in file.
1267         (mcore_rtx_costs): Add cast to enum type.
1268         * config/mcore/mcore.h (regno_reg_class): Update declaration.
1269         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
1270         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
1271         in file.
1272         * config/sh/predicates.md (trapping_target_operand): Rename and to
1273         and_expr.
1274         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
1275         higher in file.
1276         * config/spu/spu.c (spu_attribute_table): Make static.  Move
1277         higher in file.
1278         * config/v850/v850.c (v850_attribute_table): Make static.  Move
1279         higher in file.
1280         (v850_rtx_costs): Use local code with enum type.
1281         (expand_epilogue): Add cast.
1282         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
1283
1284 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
1285
1286         PR target/40515
1287         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
1288         -m2a-single-only and -m2a-nofpu.
1289         * config/sh/sh.opt: Document m2a generates FPU code.  
1290
1291 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
1292
1293         * defaults.h (CAN_ELIMINATE): Provide default.
1294         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
1295         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
1296         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
1297         * config/spu/spu.h (CAN_ELIMINATE): Delete.
1298         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
1299         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
1300         * config/cris/cris.h (CAN_ELIMINATE): Delete.
1301         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
1302         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
1303         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
1304
1305 2009-06-24  DJ Delorie  <dj@redhat.com>
1306
1307         * mep-ext-cop.cpu: Fix copyright notice.
1308         * mep-default: Fix copyright notice.
1309         * mep-core: Fix copyright notice.
1310         * mep: Fix copyright notice.
1311         * mep-ivc2: Fix copyright notice.
1312         * mep-c5: Fix copyright notice.
1313
1314 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
1315
1316         * doc/contrib.texi (Contributors): 
1317
1318 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
1319         
1320         PR middle-end/40501
1321         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
1322         src and dst operands if necessary.
1323
1324 2009-06-23  DJ Delorie  <dj@redhat.com>
1325
1326         Add MeP port.
1327         * config.gcc: Add mep support.
1328         * recog.c: Resurrect validate_replace_rtx_subexp().
1329         * recog.h: Likewise.
1330         * config/mep/: Add new port:
1331         * config/mep/constraints.md: New file.
1332         * config/mep/default.h: New file.
1333         * config/mep/intrinsics.h: New file.
1334         * config/mep/intrinsics.md: New file.
1335         * config/mep/ivc2-template.h: New file.
1336         * config/mep/mep-c5.cpu: New file.
1337         * config/mep/mep-core.cpu: New file.
1338         * config/mep/mep-default.cpu: New file.
1339         * config/mep/mep-ext-cop.cpu: New file.
1340         * config/mep/mep-intrin.h: New file.
1341         * config/mep/mep-ivc2.cpu: New file.
1342         * config/mep/mep-lib1.asm: New file.
1343         * config/mep/mep-lib2.c: New file.
1344         * config/mep/mep-pragma.c: New file.
1345         * config/mep/mep-protos.h: New file.
1346         * config/mep/mep-tramp.c: New file.
1347         * config/mep/mep.c: New file.
1348         * config/mep/mep.cpu: New file.
1349         * config/mep/mep.h: New file.
1350         * config/mep/mep.md: New file.
1351         * config/mep/mep.opt: New file.
1352         * config/mep/predicates.md: New file.
1353         * config/mep/t-mep: New file.
1354
1355 2009-06-23  Ian Lance Taylor  <iant@google.com>
1356
1357         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
1358         from loose_warn into c_loose_warn and from strict_warn into
1359         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
1360         --enable-build-with-cxx.  Set and substitute
1361         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
1362         * Makefile.in (CXXFLAGS): New variable.
1363         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
1364         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
1365         the default is the same as $(STRICT_WARN).
1366         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
1367         (CXX): New variable.
1368         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
1369         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
1370         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
1371         (HOST_LIBS): New variable.
1372         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
1373         (ALL_CXXFLAGS): New variable.
1374         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
1375         * doc/install.texi (Configuration): Document
1376         --enable-build-with-cxx, --with-stage1-ldflags,
1377         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
1378         * configure: Rebuild.
1379
1380 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1381
1382         * config/arm/arm.c (arm_override_options): Fix braces and formatting
1383         from previous commit.
1384
1385 2009-06-23  Ian Lance Taylor  <iant@google.com>
1386
1387         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
1388
1389 2009-06-23  Ian Lance Taylor  <iant@google.com>
1390
1391         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
1392         with ATTRIBUTE_UNUSED.
1393
1394 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
1395             Pat Haugen  <pthaugen@us.ibm.com>
1396             Revital Eres  <eres@il.ibm.com>
1397
1398         * config.in (HAVE_AS_POPCNTD): Add default definition.
1399         (HAVE_AS_LWSYNC): Ditto.
1400
1401         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
1402         release number.
1403         (gcc_cv_as_powerpc_cmpb): Ditto.
1404         (gcc_cv_as_powerpc_dfp): Ditto.
1405         (gcc_cv_as_powerpc_vsx): Ditto.
1406         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
1407         supporting the popcntd/lwsync instructions.
1408         (gcc_cv_as_powerpc_lwsync): Ditto.
1409         * configure: Regenerate.
1410
1411         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
1412         -mcpu=native and -mcpu=power7.
1413         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
1414
1415         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
1416         a variable instead of a mask to reduce the number of mask bits.
1417         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
1418         (-mbit-word): Ditto.
1419         (-mregnames): Ditto.
1420         * config/rs6000/rs6000.opt (-mupdate): Ditto.
1421         (-mfused-madd): Ditto.
1422
1423         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
1424         2.06 instructions.
1425         (-mvsx): New switch for VSX instructions.
1426         (-misel): Move from a variable to a mask to allow it to be set by
1427         -mcpu=.
1428
1429         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
1430         function declaration to an array declaration.
1431         (rs6000_hard_regno_nregs): New external array declaration.
1432
1433         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
1434         files included by rs6000.md.
1435
1436         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1437         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
1438
1439         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
1440         a target mask.
1441         (rs6000_debug_reg): New -mdebug= variables.
1442         (rs6000_debug_addr): Ditto.
1443         (rs6000_debug_cost): Ditto.
1444         (rs6000_pmode): New variable to hold Pmode.
1445         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
1446         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
1447         calculated at compiler start.
1448         (rs6000_hard_regno_nregs): Change function to an array which holds
1449         HARD_REGNO_NREGS calculated at compiler start.
1450         (rs6000_explicit_options): Delete isel field.
1451         (rs6000_vector_unit): New array to hold which vector unit
1452         supports arithmetic options for a given type.
1453         (rs6000_vector_mem): New array to hold which vector unit supports
1454         memory reference operations for a given type.
1455         (rs6000_vector_align): New array to given the alignment of each
1456         vector type.
1457         (power7_cost): New basic costs for power7.
1458         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
1459         (rs6000_hard_regno_nregs_internal): New function, moved from
1460         HARD_REGNO_NREGS, to calculate the number of registers each hard
1461         register takes for each type.
1462         (rs6000_debug_reg_print): New function for -mdebug=reg support.
1463         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
1464         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
1465         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
1466         unit information here so it is calculated once at compiler startup
1467         time.
1468         (rs6000_override_options): Make -misel a target mask.  Add more
1469         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
1470         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
1471         -mdebug=cost.
1472         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
1473         (rs6000_handle_option): Move -misel from variable to target mask.
1474         (rs6000_builtin_mask_for_load): Add VSX support.
1475         (rs6000_conditional_register_usage): Ditto.
1476         (USE_ALTIVEC_FOR_ARG_P): Ditto.
1477         (function_arg_boundary): Ditto.
1478         (rs6000_expand_builtin): Ditto.
1479         (def_builtin): Make abort message a little friendlier.
1480         (rs6000_emit_int_cmove): Add support for 64-bit isel.
1481
1482         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
1483         assembler support the popcntd instruction instead of a vsx
1484         instruction to enable power7 support.
1485         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
1486         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
1487         option to the assembler if -mcpu=native.
1488         (ASM_CPU_NATIVE_SPEC): Ditto.
1489         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
1490         ISA 2.06 features.
1491         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
1492         the lwsync instruction.
1493         (enum processor_type): Add PROCESSOR_POWER7.
1494         (rs6000_debug_reg): New -mdebug= options.
1495         (rs6000_debug_addr): Ditto.
1496         (rs6000_debug_cost): Ditto.
1497         (rs6000_isel): Delete.
1498         (enum rs6000_vector): New enum to say what vector unit we have.
1499         (VECTOR_UNIT_*): New macros to say which vector unit has
1500         arithmetic operations for a given type.
1501         (VECTOR_MEM_*): New macros to say which vector unit has memory
1502         operations for a given type.
1503         (TARGET_LDBRX): Whether the machine supports the ldbrx
1504         instruction.
1505         (TARGET_ISEL): Delete, -misel moved to be a mask.
1506         (TARGET_ISEL64): New macro for 64-bit isel support.
1507         (UNITS_PER_VSX_WORD): New macro.
1508         (POINTER_SIZE): Move to be an external variable, rather than
1509         calculating whether we are generating 32 ot 64-bit code.
1510         (Pmode): Ditto.
1511         (STACK_BOUNDARY): Add VSX support.
1512         (LOCAL_ALIGNMENT): Ditto.
1513         (SLOW_UNALIGNED_ACCESS): Ditto.
1514         (VSX_REGNO_P): New macro for VSX support.
1515         (VFLOAT_REGNO_P): Ditto.
1516         (VINT_REGNO_P): Ditto.
1517         (VLOGICAL_REGNO_P): Ditto.
1518         (VSX_VECTOR_MODE): Ditto.
1519         (VSX_SCALAR_MODE): Ditto.
1520         (VSX_MODE): Ditto.
1521         (VSX_MOVE_MODE): Ditto.
1522         (VSX_REG_CLASS_P): Ditto.
1523         (HARD_REGNO_NREGS): Instead of calling a function, use an array
1524         lookup.
1525         (UNITS_PER_SIMD_WORD): Add VSX support.
1526         (MODES_TIEABLE_P): Ditto.
1527         (STARTING_FRAME_OFFSET): Ditto.
1528         (STACK_DYNAMIC_OFFSET): Ditto.
1529         (EPILOGUE_USES): Ditto.
1530         (REGNO_REG_CLASS): Move to array lookup.
1531         (CLASS_MAX_NREGS): Ditto.
1532         (rs6000_vector_reg_class): Add declaration.
1533         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
1534         overlap with the floating point and Altivec registers.
1535
1536         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
1537
1538         * config/rs6000/driver-rs6000.c (asm_names): New static array to
1539         give the appropriate asm switches if -mcpu=native.
1540         (host_detect_local_cpu): Add support for "asm".
1541         (host_detect_local_cpu): Follow GNU code guidelines for name.
1542
1543         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
1544         -mbit-word to a variable instead of being a target mask.
1545
1546         * config/rs6000/sync.md (lwsync): If the assembler supports it,
1547         emit the lwsync instruction instead of emitting the instruction as
1548         an integer constant.
1549
1550         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
1551         fixuns_trundfsi2, move expander into rs6000.md.
1552
1553         * config/rs6000/rs6000.md (cpu): Add power7.
1554         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
1555         (logical predicate patterns): Change the single instruction
1556         primitives that set CR0 to be fast_compare instead of compare.
1557         (norsi*): Ditto.
1558         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
1559         (popcntddi2): Ditto.
1560         (popcount<mode>): Ditto.
1561         (floating multiply/add insns): Name the floating point
1562         multiply/add insns.
1563         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
1564         (isel_unsigned_<mode>): Ditto.
1565         (fixuns_trundfsi2): Move expander here from spe.md.
1566         (smindi3): Define if we have -misel on 64-bit systems.
1567         (smaxdi3): Ditto.
1568         (umindi3): Ditto.
1569         (umaxdi3): Ditto.
1570
1571 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
1572
1573         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
1574         extra_objs.
1575         * config/avr/avr.c (avr_current_device): New variable.
1576         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
1577         (avr_arch, mcu_type_s): Move to avr.h.
1578         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
1579         default_data_section_start fields.
1580         (avr_arch): Moved from avr.c.
1581         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
1582         library_name fields.
1583         (avr_current_device, avr_mcu_types, avr_arch_types,
1584         avr_device_to_arch, avr_device_to_data_start,
1585         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
1586         (EXTRA_SPEC_FUNCTIONS): Define.
1587         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
1588         options mapping. Use device_to_arch and device_to_data_start insted.
1589         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
1590         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
1591         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
1592         * config/avr/driver-avr.c: New file.
1593         * config/avr/avr-devices.c: New file.
1594
1595 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
1596
1597         * var-tracking.c (unshare_variable): Force initialized to
1598         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
1599         (set_variable_part): Likewise.
1600         (struct variable_union_info): Remove pos_src field.
1601         (vui_vec, vui_allocated): New variables.
1602         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
1603         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
1604         == 1 use a simpler sorting algorithm.  Compute pos field right
1605         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
1606         Avoid quadratic comparison if !flag_var_tracking_uninit.
1607         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
1608         unshare_variable unconditionally.   
1609         (dataflow_set_different_2): Removed.
1610         (dataflow_set_different): Don't traverse second hash table.
1611         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
1612         unconditionally to var_reg_set or var_mem_set.
1613         (emit_notes_in_bb): Likewise.
1614         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
1615         unshare_variable.
1616         (emit_note_insn_var_location): Don't set initialized to
1617         VAR_INIT_STATUS_INITIALIZED early.
1618         (vt_finalize): Free vui_vec if needed, clear vui_vec and
1619         vui_allocated.
1620         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
1621
1622         * tree-object-size.c (addr_object_size): Instead of checking
1623         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
1624         are no FIELD_DECLs following it.
1625
1626 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
1627
1628         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
1629         order to match bswaps with signed source operands.
1630
1631 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1632
1633         * sdbout.c (sdbout_one_type): Fix braces in switch.
1634
1635 2009-06-23  Richard Guenther  <rguenther@suse.de>
1636
1637         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
1638         member.
1639         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
1640         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
1641         var_callused, callused_tree, var_storedanything, storedanything_tree,
1642         var_integer, integer_tree): Remove global variables.
1643         (new_var_info): Do not pass new id, append the new var to the
1644         global variable vector.
1645         (do_ds_constraint): Use is_global_var member of the variable-info.
1646         (new_scalar_tmp_constraint_exp): Adjust.
1647         (create_function_info_for): Likewise.
1648         (create_variable_info_for): Likewise.
1649         (find_what_var_points_to): Remove dead code.
1650         (init_base_vars): Simplify.
1651         (compute_points_to_sets): Adjust.
1652
1653 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
1654
1655         * combine.c (try_combine): Dump information about the insns we're
1656         combining.
1657
1658 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
1659
1660         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
1661         check when calling force_to_mode on TRUNCATE's operand.
1662
1663 2009-06-22  Ian Lance Taylor  <iant@google.com>
1664
1665         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
1666
1667 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
1668
1669         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
1670
1671 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1672
1673         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
1674         override library linkage flags such as -static-libgcc or
1675         -shared-libgcc.
1676
1677 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
1678
1679         * config/m68k/m68k-devices.def: Add line for MCF5221x.
1680
1681 2009-06-22  Ian Lance Taylor  <iant@google.com>
1682
1683         * config/linux.opt: Put mglibc ahead of muclibc.
1684
1685         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
1686         for duplicate decls.
1687
1688 2009-06-22  Matthias Klose  <doko@ubuntu.com>
1689
1690         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
1691
1692 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
1693
1694         PR objc/28050
1695         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
1696         instead of NULL if a parser error occurs.
1697
1698 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1699
1700         * dwarf2out.c (dwarf2_debug_hooks): Initialize
1701         non-DWARF2_DEBUGGING_INFO version.
1702
1703 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
1704
1705         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
1706         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
1707
1708         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
1709         (LIBGCC2_TF_CEXT): Define.
1710         (TF_SIZE): Define.
1711
1712 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1713
1714         PR target/40463
1715         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
1716
1717 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1718
1719         * config/arm/arm.c (arm_override_options): Disable
1720         -mcaller-super-interworking and -mcallee-super-interworking.
1721         * doc/invoke.texi (ARM Options): Document this.
1722
1723 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
1724
1725         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
1726         * config/arm/constraints.md (j): New constraint for movw operands.
1727         (N): Remove thumb2 meaning.
1728         * config/arm/arm.md (*arm_movw): Delete.
1729         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
1730         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
1731         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
1732
1733 2009-06-22  Martin Jambor  <mjambor@suse.cz>
1734
1735         PR tree-optimization/40492
1736         * tree-sra.c (sra_modify_assign): Pass zero offsets to
1737         build_ref_for_offset.
1738
1739 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
1740
1741         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
1742         JUMP_TABLE_DATA_P predicates where applicable.
1743         * auto-inc-dec.c: Ditto.
1744         * builtins.c: Ditto.
1745         * caller-save.c: Ditto.
1746         * calls.c: Ditto.
1747         * cfgcleanup.c: Ditto.
1748         * cfglayout.c: Ditto.
1749         * cfgrtl.c: Ditto.
1750         * combine.c: Ditto.
1751         * combine-stack-adj.c: Ditto.
1752         * cse.c: Ditto.
1753         * cselib.c: Ditto.
1754         * dbxout.c: Ditto.
1755         * df-scan.c: Ditto.
1756         * dse.c: Ditto.
1757         * dwarf2asm.c: Ditto.
1758         * dwarf2out.c: Ditto.
1759         * emit-rtl.c: Ditto.
1760         * except.c: Ditto.
1761         * explow.c: Ditto.
1762         * expmed.c: Ditto.
1763         * expr.c: Ditto.
1764         * final.c: Ditto.
1765         * function.c: Ditto.
1766         * fwprop.c: Ditto.
1767         * gcse.c: Ditto.
1768         * genpreds.c: Ditto.
1769         * genrecog.c: Ditto.
1770         * ifcvt.c: Ditto.
1771         * ira-costs.c: Ditto.
1772         * ira-lives.c: Ditto.
1773         * jump.c: Ditto.
1774         * loop-iv.c: Ditto.
1775         * lower-subreg.c: Ditto.
1776         * modulo-sched.c: Ditto.
1777         * optabs.c: Ditto.
1778         * postreload.c: Ditto.
1779         * print-rtl.c: Ditto.
1780         * recog.c: Ditto.
1781         * reginfo.c: Ditto.
1782         * regmove.c: Ditto.
1783         * reload1.c: Ditto.
1784         * reload.c: Ditto.
1785         * reorg.c: Ditto.
1786         * rtlanal.c: Ditto.
1787         * rtl.c: Ditto.
1788         * sched-vis.c: Ditto.
1789         * sdbout.c: Ditto.
1790         * sel-sched-ir.c: Ditto.
1791         * simplify-rtx.c: Ditto.
1792         * targhooks.c: Ditto.
1793         * var-tracking.c: Ditto.
1794         * vmsdbgout.c: Ditto.
1795
1796 2009-06-22  Matthias Klose  <doko@ubuntu.com>
1797
1798         * Makefile.in (install-plugin): Always use DESTDIR.
1799
1800 2009-06-22  Olivier Hainque  <hainque@adacore.com>
1801         
1802         * config/pa/pa.c (output_call): Don't optimize post call jumps
1803         into return address adjustments if the call may throw.
1804
1805 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
1806
1807         * arm.c (thumb1_output_casesi): New function.
1808         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
1809         optimizing for size or PIC.
1810         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
1811         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
1812         (casesi): Handle Thumb-1 when optimizing for size or PIC.
1813         (thumb1_casesi_internal_pic): New expand rule.
1814         (thumb1_casesi_dispatch): New pattern.
1815         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
1816         thumb-1 mode.
1817         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
1818         in the text seciton when PIC or optimizing for size.
1819         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
1820         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
1821         preservation properties of code.
1822         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
1823         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
1824         (__gnu_thumb1_case_si): New function.
1825         * t-arm (LIB1ASMSRC): Define here.
1826         (LIB1ASMFUNCS): Add some common functions.
1827         * t-arm-elf (LIB1ASMSRC): Delete.
1828         (LIB1ASMFUNCS): Append to existing set.
1829         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
1830         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
1831         * t-symbian (LIB1ASMFUNCS): Likewise.
1832         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
1833         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
1834
1835 2009-06-21  Richard Guenther  <rguenther@suse.de>
1836
1837         PR tree-optimization/38729
1838         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
1839         to loops with a single exit if -fno-expensive-optimizations.
1840
1841 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
1842
1843         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
1844         (dataflow_set): Change vars type from htab_t to shared_hash.
1845         (shared_hash_pool, empty_shared_hash): New variables.
1846         (vars_clear): Removed.
1847         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
1848         shared_hash_find_slot_unshare, shared_hash_find_slot,
1849         shared_hash_find_slot_noinsert, shared_hash_find): New
1850         static inlines.
1851         (shared_hash_unshare, shared_hash_destroy): New functions.
1852         (unshare_variable): Unshare set->vars if shared, use
1853         shared_hash_htab.
1854         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
1855         (get_init_value, find_src_set_src, dump_dataflow_set,
1856         clobber_variable_part, emit_notes_for_differences): Use
1857         shared_hash_htab.
1858         (dataflow_set_init): Remove second argument, set vars to
1859         empty_shared_hash instead of creating a new htab.
1860         (dataflow_set_clear): Call shared_hash_destroy and set vars
1861         to empty_shared_hash instead of calling vars_clear.
1862         (dataflow_set_copy): Don't call vars_copy, instead just share
1863         the src htab with dst.
1864         (variable_union): Use shared_hash_*, use initially NO_INSERT
1865         lookup if set->vars is shared.  Don't keep slot cleared before
1866         calling unshare_variable.  Unshare set->vars if needed.
1867         Even ->refcount == 1 vars must be unshared if set->vars is shared
1868         and var needs to be modified.
1869         (variable_canonicalize): New function.
1870         (dataflow_set_union): If dst->vars is empty, just share src->vars
1871         with dst->vars and traverse with variable_canonicalize to canonicalize
1872         and unshare what is needed.
1873         (dataflow_set_different): If old_set and new_set use the same shared
1874         htab, they aren't different.  If number of htab elements is different,
1875         htabs are different.  Use shared_hash_*.
1876         (dataflow_set_destroy): Call shared_hash_destroy instead of
1877         htab_delete.
1878         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
1879         second argument to dataflow_set_init.
1880         (vt_initialize): Likewise.  Initialize shared_hash_pool and
1881         empty_shared_hash, move bb in/out initialization afterwards.
1882         Use variable_htab_free instead of NULL as changed_variables del hook.
1883         (variable_was_changed): Change type of second argument to pointer to
1884         dataflow_set.  When inserting var into changed_variables, bump
1885         refcount.  Unshare set->vars if set is shared htab and slot needs to
1886         be cleared.
1887         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
1888         lookup if set->vars is shared.  Unshare set->vars if needed.
1889         Even ->refcount == 1 vars must be unshared if set->vars is shared
1890         and var needs to be modified.  Adjust variable_was_changed caller.
1891         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
1892         vars must be unshared if set->vars is shared and var needs to be
1893         modified.  Adjust variable_was_changed caller.
1894         (emit_note_insn_var_location): Don't pool_free var.
1895         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
1896         instead of 1.
1897         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
1898         free_alloc_pool on shared_hash_pool.
1899
1900 2009-06-20  Anthony Green  <green@moxielogic.com>
1901
1902         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
1903         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
1904
1905 2009-06-20  Richard Guenther  <rguenther@suse.de>
1906
1907         * tree-ssa-structalias.c (find_func_aliases): For memset use
1908         a constraint from NULL if we memset to zero.
1909         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
1910         we explicitly handle that do not read from memory.
1911         (call_may_clobber_ref_p_1): Properly handle builtins that may
1912         set errno.
1913
1914 2009-06-20  Richard Guenther  <rguenther@suse.de>
1915
1916         PR tree-optimization/40495
1917         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
1918         (new_scalar_tmp_constraint_exp): New function.
1919         (process_constraint): Do not create temporary decls.
1920         (process_all_all_constraints): Likewise.
1921         (handle_const_call): Likewise.
1922         (create_function_info_for): Do not set decl.
1923
1924 2009-06-19  Ian Lance Taylor  <iant@google.com>
1925
1926         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
1927         (rs6000_attribute_table): Make static; move before use.
1928
1929 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
1930
1931         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
1932         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
1933         Propagate the TREE_READONLY flag without overwriting it.
1934         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
1935         Propagate the TREE_READONLY flag onto the result.
1936         (process_call_operands): Move around.  Use correct constant value.
1937
1938 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1939
1940         PR target/40482
1941         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
1942         * config/arm/arm.md: Likewise.
1943
1944 2009-06-19  Ian Lance Taylor  <iant@google.com>
1945
1946         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
1947         to GIMPLE_ERROR_MARK.
1948
1949         * c-typeck.c (build_conditional_expr): Add op1_original_type and
1950         op2_original_type parameters.  Warn about using different enum types.
1951         * c-parser.c (c_parser_conditional_expression): Pass original
1952         types to build_conditional_expr.
1953         * c-tree.h (build_conditional_expr): Update declaration.
1954
1955 2009-06-19  Ian Lance Taylor  <iant@google.com>
1956
1957         * config/i386/i386.c (ix86_function_specific_save): Test that
1958         fields match values, rather than testing the values are in a
1959         certain range.
1960
1961 2009-06-19  Richard Guenther  <rguenther@suse.de>
1962
1963         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
1964         ADDR_EXPR pointers.
1965         (ptr_derefs_may_alias_p): Likewise.
1966         (ptr_deref_may_alias_ref_p_1): New function.
1967         (ptr_deref_may_alias_ref_p): Likewise.
1968         (ref_maybe_used_by_call_p_1): Handle builtins that are not
1969         covered by looking at the ESCAPED solution.
1970         (call_may_clobber_ref_p_1): Likewise.
1971         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
1972         Handle NULL_TREE offset.  Do not produce redundant constraints.
1973         (process_all_all_constraints): New helper function.
1974         (do_structure_copy): Use it.
1975         (handle_lhs_call): Likewise.
1976         (find_func_aliases): Handle some builtins with pointer arguments
1977         and/or return values explicitly.
1978
1979 2009-06-19  Ian Lance Taylor  <iant@google.com>
1980
1981         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
1982
1983 2009-06-19  Ian Lance Taylor  <iant@google.com>
1984
1985         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
1986
1987 2009-06-19  Ian Lance Taylor  <iant@google.com>
1988
1989         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
1990         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
1991         version.
1992
1993         * c-decl.c (finish_decl): If -Wc++-compat, warn about
1994         uninitialized const.
1995
1996 2009-06-19  Ian Lance Taylor  <iant@google.com>
1997
1998         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
1999         all uses.
2000
2001         * c-decl.c (in_struct, struct_types): Remove.
2002         (struct c_binding): Add in_struct field.
2003         (c_binding_ptr): Define type, along with VEC.
2004         (struct c_struct_parse_info): Define.
2005         (struct_parse_info): New static variable.
2006         (bind): Initialize in_struct field.
2007         (start_struct): Remove enclosing_in_struct and
2008         enclosing_struct_types parameters.  Add
2009         enclosing_struct_parse_info parameter.  Change all callers.  Set
2010         struct_parse_info rather than in_struct and struct_types.
2011         (grokfield): If -Wc++-compat and there is a symbol binding for the
2012         field name, set the in_struct flag and push it on the
2013         struct_parse_info->fields vector.
2014         (warn_cxx_compat_finish_struct): New static function.
2015         (finish_struct): Remove enclosing_in_struct and
2016         enclosing_struct_types parameters.  Add
2017         enclosing_struct_parse_info parameter.  Change all callers.  Don't
2018         set C_TYPE_DEFINED_IN_STRUCT here.  Call
2019         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
2020         parameter.  Only push on struct_types if warn_cxx_compat.
2021         (finish_enum): Only push on struct_types if warn_cxx_compat.
2022         (declspecs_add_type): Add loc parameter.  Change all callers.
2023         Change all error calls to error_at.  Pass loc, not input_location,
2024         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
2025         defined in a struct.  If -Wc++-compat and parsing a struct, record
2026         that a typedef name was used.
2027         * c-parser.c (c_parser_declspecs): Get location to pass to
2028         declspecs_add_type.
2029         (c_parser_struct_or_union_specifier): Update calls to start_struct
2030         and finish_struct.
2031         * c-tree.h (struct c_struct_parse_info): Declare.
2032         (finish_struct, start_struct): Update declarations.
2033         (declspecs_add_type): Update declaration.
2034
2035 2009-06-19  Ian Lance Taylor  <iant@google.com>
2036
2037         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
2038         variable with an anonymous type.
2039
2040 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
2041
2042         * see.c: Remove for real.
2043
2044 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
2045
2046         * optabs.h (enum optab_index): Add new OTI_significand.
2047         (significand_optab): Define corresponding macro.
2048         * optabs.c (init_optabs): Initialize significand_optab.
2049         * genopinit.c (optabs): Implement significand_optab using
2050         significand?f2 patterns.
2051         * builtins.c (expand_builtin_mathfn): Handle
2052         BUILT_IN_SIGNIFICAND{,F,L}.
2053         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
2054         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
2055
2056         * config/i386/i386.md (significandxf2, significand<mode>2): New
2057         expanders to implement significandf, significand and significandl
2058         built-ins as inline x87 intrinsics.
2059
2060 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
2061
2062         * config/avr/avr.c (avr_override_options): Remove setting value of
2063         PARAM_INLINE_CALL_COST.
2064
2065 2009-06-18  Richard Henderson  <rth@redhat.com>
2066
2067         PR 40488
2068         * tree-pass.h (TDF_ASMNAME): New.
2069         * tree-dump.c (dump_options): Add asmname.
2070         * doc/invoke.texi: Document it.
2071
2072         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
2073         (dump_decl_name): ...here.
2074         (dump_function_name): New flags arg; mind TDF_ASMNAME.
2075         (dump_generic_node): Update dump_function_name calls.
2076         (print_call_name): New flags arg; update all dump calls.
2077         * diagnostic.h (print_call_name): Update.
2078         * gimple-pretty-print.c (dump_gimple_call): Update.
2079
2080 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
2081
2082         PR target/40470
2083         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
2084
2085 2009-06-18  Diego Novillo  <dnovillo@google.com>
2086
2087         * doc/plugins.texi: Document plugin_is_GPL_compatible.
2088         * plugin.c (str_license): Declare.
2089         (try_init_one_plugin): Assert that the symbol
2090         'plugin_is_GPL_compatible' exists.
2091
2092 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
2093
2094         * see.c: Remove.
2095         * Makefile.in (OBJS-common): Remove see.o.
2096         (see.o): Remove.
2097         * common.opt (fsee): Mark as preserved for backward compatibility.
2098         * opts.c (common_handle_option): Add OPT_fsee to the backward 
2099         compatibility section.
2100         * passes.c (init_optimization_passes, pass_see): Remove pass.
2101         * timevar.def (TV_SEE): Remove.
2102         * tree-pass.h (pass_see): Remove declaration.
2103         * doc/invoke.texi (-fsee): Remove documentation.
2104         
2105 2009-06-18  Martin Jambor  <mjambor@suse.cz>
2106
2107         * tree-sra.c: Include statistics.h
2108         (sra_stats): New variable.
2109         (sra_initialize): Clear sra_stats.
2110         (create_access_replacement): Increment sra_stats.replacements.
2111         (get_access_replacement): Do not return twice.
2112         (analyze_all_variable_accesses): Increment statistics counter by the
2113         number of scalarized aggregates.
2114         (generate_subtree_copies): Increment sra_stats.subtree_copies.
2115         (sra_modify_expr): Increment sra_stats.exprs.
2116         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
2117         (sra_modify_assign): Increment sra_stats.exprs,
2118         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
2119         (perform_intra_sra): Update statistics counters.
2120         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
2121
2122 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
2123
2124         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
2125         (arm_scalar_mode_supported_p): New function.
2126
2127 2009-06-18  Paul Brook  <paul@codesourcery.com>
2128             Sandra Loosemore  <sandra@codesourcery.com>
2129
2130         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
2131         (__extendhfsf2, __truncsfhf2): Define.
2132         * config/arm/fp16.c: New file.
2133         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
2134         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
2135
2136 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
2137
2138         * doc/extend.texi (Half-Precision): New section.
2139         * doc/invoke.texi (Option Summary): List -mfp16-format.
2140         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
2141         * config/arm/arm.opt (mfp16-format=): New.
2142         * config/arm/arm.c: Include intl.h.
2143         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
2144         (TARGET_INVALID_RETURN_TYPE): Redefine.
2145         (TARGET_PROMOTED_TYPE): Redefine.
2146         (TARGET_CONVERT_TO_TYPE): Redefine.
2147         (arm_fp16_format): Define.
2148         (all_fpus): Add entry for neon-fp16.
2149         (fp_model_for_fpu): Likewise.
2150         (struct fp16_format): Declare.
2151         (all_fp16_formats): Define.
2152         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
2153         functions.
2154         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
2155         and no ldrh.
2156         (arm_legitimate_index_p): Treat HFmode like HImode.
2157         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
2158         (coproc_secondary_reload_class): Special-case HFmode.
2159         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
2160         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
2161         (arm_init_fp16_builtins): New.
2162         (arm_init_builtins): Call it.
2163         (arm_invalid_parameter_type): New.
2164         (arm_invalid_return_type): New.
2165         (arm_promoted_type): New.
2166         (arm_convert_to_type).
2167         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
2168         format.
2169         (arm_emit_fp16_const): New function.
2170         (arm_mangle_type): Mangle __fp16 as "Dh".
2171         * config/arm/arm.h (TARGET_VFPD32): Make it know about
2172         FPUTYPE_NEON_FP16.
2173         (TARGET_NEON_FP16): New.
2174         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
2175         (enum fputype): Add FPUTYPE_NEON_FP16.
2176         (enum arm_fp16_format_type): Declare.
2177         (arm_fp16_format): Declare.
2178         (LARGEST_EXPONENT_IS_NORMAL): Define.
2179         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
2180         * config/arm/arm-modes.def (HFmode): Define.
2181         * config/arm/vfp.md: (*movhf_vfp): New.
2182         (extendhfsf2): New.
2183         (truncsfhf2): New.
2184         * config/arm/arm.md: (fpu): Add neon_fp16.
2185         (floatsihf2, floatdihf2): New.
2186         (fix_trunchfsi2, fix_trunchfdi2): New.
2187         (truncdfhf2): New.
2188         (extendhfdf2): New.
2189         (movhf): New.
2190         (*arm32_movhf): New.
2191         (*thumb1_movhf): New.
2192         (consttable_2): Add check for HFmode constants.
2193         (consttable_4): Handle HFmode constants.
2194
2195 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
2196
2197         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
2198
2199 2009-06-17  Olivier Hainque  <hainque@adacore.com>
2200
2201         * collect2.c (main): Use CONST_CAST2 to perform char ** to
2202         const char ** conversion in AIX specific section.
2203         
2204 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
2205
2206         * config/i386/i386.c (ix86_special_builtin_type): Remove
2207         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
2208         (bdesc_special_args): Updated.
2209         (ix86_init_mmx_sse_builtins): Likewise.
2210         (ix86_expand_special_args_builtin): Likewise.
2211
2212 2009-06-17  Richard Henderson  <rth@redhat.com>
2213
2214         * tree-pretty-print.c (maybe_dump_asm_name): New.
2215         (dump_decl_name): Use it.
2216         (PRINT_FUNCTION_NAME): Merge into...
2217         (dump_function_name): ... here.  Use maybe_dump_asm_name.
2218
2219 2009-06-17  Cary Coutant  <ccoutant@google.com>
2220
2221         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
2222         Change caller.
2223         * debug.c (struct gcc_debug_hooks): Change placeholder for
2224         source_line hook.
2225         (debug_nothing_int_charstar_int): Replaced by...
2226         (debug_nothing_int_charstar_int_bool): ...this.
2227         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
2228         source_line prototype.
2229         (debug_nothing_int_charstar_int): Replaced by...
2230         (debug_nothing_int_charstar_int_bool): ...this.
2231         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
2232         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
2233         Output is_stmt operand when necessary.
2234         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
2235         (notice_source_line): Add is_stmt parameter.
2236         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
2237         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
2238         Change callers.
2239         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
2240         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
2241
2242 2009-06-17  Ian Lance Taylor  <iant@google.com>
2243
2244         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
2245         Change all uses.
2246         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
2247         call uses.
2248
2249 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
2250
2251         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
2252         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
2253         tree_strip_sign_nop_conversions and
2254         tree_ssa_strip_useless_type_conversions rather than stripping
2255         the operations here.
2256         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
2257         Declare them.
2258         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
2259         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
2260         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
2261         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
2262         functions.
2263
2264 2009-06-17  Michael Eager  <eager@eagercon.com>
2265
2266         * config/rs6000/constraints.md (register_constraint "d"): New.
2267         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
2268         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
2269         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
2270         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
2271         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
2272         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
2273         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
2274         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
2275         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
2276         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
2277         __fctiwz): Same.
2278         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
2279         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
2280         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
2281         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
2282         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
2283         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
2284         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
2285         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
2286         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
2287         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
2288         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
2289         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
2290         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
2291         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
2292
2293 2009-06-16  Ian Lance Taylor  <iant@google.com>
2294
2295         * profile.c (total_num_never_executed): Don't define.
2296         (compute_branch_probabilities): Don't count or print
2297         num_never_executed.
2298         (init_branch_prob): Don't set total_num_never_executed.
2299         (end_branch_prob): Don't print total_num_never_executed.
2300
2301 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
2302
2303         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
2304
2305 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
2306
2307         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
2308         (nabstd2_fpr): Same.
2309
2310 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
2311
2312         * expr.c (expand_assignment): Change complex type check.
2313
2314 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
2315
2316         * doc/plugins.texi (Building GCC plugins): Added new section. 
2317
2318 2009-06-17  Ian Lance Taylor  <iant@google.com>
2319
2320         * c-pch.c (get_ident): Don't set size of templ array.
2321         (pch_init): Don't set size of partial_pch array.
2322
2323         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
2324         string constant to intialize an array whose size is the length of
2325         the string.
2326
2327 2009-06-17  Richard Guenther  <rguenther@suse.de>
2328
2329         PR tree-optimization/40389
2330         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
2331         to addressable types.
2332         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
2333
2334 2009-06-17  Richard Guenther  <rguenther@suse.de>
2335
2336         PR middle-end/40460
2337         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
2338         if there is no evolution of left in the loop bail out.
2339         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
2340         chrec_fold_multiply.
2341
2342 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
2343             Janis Johnson  <janis187@us.ibm.com>
2344
2345         PR target/39254
2346         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
2347         for the symbol ref of a constant that is the source of a move
2348         - nor for any other not-obvious-label-ref constants.
2349
2350 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
2351
2352         * plugin.c (position_pass): Skip newly inserted pass during list
2353         traversal to avoid repeated insertion.
2354
2355 2009-06-16  Ian Lance Taylor  <iant@google.com>
2356
2357         * vec.h (VEC_stack_alloc): Define different version if
2358         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
2359         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
2360         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
2361         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
2362
2363 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
2364
2365         * config.gcc (extra_headers): Add ia32intrin.h for x86.
2366
2367         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
2368         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
2369         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
2370         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
2371         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
2372         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
2373         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
2374         (bdesc_special_args): Add __builtin_ia32_rdtsc and
2375         __builtin_ia32_rdtscp.
2376         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
2377         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
2378         and __builtin_ia32_rorhi.
2379         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
2380         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
2381         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
2382         (ix86_expand_args_builtin): Likewise.
2383         (ix86_expand_special_args_builtin): Likewise.
2384
2385         * config/i386/i386.md (UNSPECV_RDTSCP): New.
2386         (UNSPECV_RDTSC): Likewise.
2387         (UNSPECV_RDPMC): Likewise.
2388         (*bsr): Renamed to ...
2389         (bsr): This
2390         (*bsr_rex64): Renamed to ...
2391         (bsr_rex64): This.
2392         (rdpmc): New.
2393         (*rdpmc): Likewise.
2394         (*rdpmc_rex64): Likewise.
2395         (rdtsc): Likewise.
2396         (*rdtsc): Likewise.
2397         (*rdtsc_rex64): Likewise.
2398         (rdtscp): Likewise.
2399         (*rdtscp): Likewise.
2400         (*rdtscp_rex64): Likewise.
2401
2402         * config/i386/ia32intrin.h: New.
2403
2404         * config/i386/x86intrin.h: Include <ia32intrin.h>.
2405
2406 2009-06-16  Ian Lance Taylor  <iant@google.com>
2407
2408         * ira-build.c (copy_info_to_removed_store_destinations):
2409         Initialize parent_a.
2410
2411 2009-06-16  Ian Lance Taylor  <iant@google.com>
2412
2413         * c-decl.c (grokdeclarator): Change size_varies to bool.
2414
2415 2009-06-16  Ian Lance Taylor  <iant@google.com>
2416
2417         * sel-sched.c: Make forward declarations of move_op_hooks and
2418         fur_hooks explicitly extern.
2419
2420 2009-06-16  Ian Lance Taylor  <iant@google.com>
2421
2422         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
2423         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
2424
2425 2009-06-16  Ian Lance Taylor  <iant@google.com>
2426
2427         * resource.c (mark_referenced_resources): Change
2428         include_delayed_effects parameter to bool.  Change all callers.
2429         (mark_end_of_function_resources): Likewise.
2430         * reorg.c (insn_references_resource_p): Likewise.
2431         (insn_sets_resource_p): Likewise.
2432         * resource.h (mark_referenced_resources): Update declaration.
2433         (mark_end_of_function_resources): Update declaration.
2434
2435 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
2436
2437         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
2438
2439 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
2440
2441         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
2442         GCC can bootstrap on AIX with GNU Binutils 2.20.
2443
2444 2009-06-16  Ian Lance Taylor  <iant@google.com>
2445
2446         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
2447
2448 2009-06-16  Ian Lance Taylor  <iant@google.com>
2449
2450         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
2451         inline, not extern inline.
2452         (exact_log2): Likewise.
2453         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
2454         test CLZ_HWI.
2455         (exact_log2): Likewise, but don't test CTZ_HWI.
2456
2457 2009-06-16  Ian Lance Taylor  <iant@google.com>
2458
2459         * bitmap.c (bitmap_clear): Don't declare as inline.
2460         * gimple.c (gimplify_assign): Likewise.
2461         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
2462         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
2463         (sched_scan_info): Remove duplicate definition.
2464
2465 2009-06-16  Ian Lance Taylor  <iant@google.com>
2466
2467         * c-common.c (skip_evaluation): Don't define.
2468         (c_inhibit_evaluation_warnings): Define global variable.
2469         (overflow_warning): Check c_inhibit_evaluation_warnings rather
2470         than skip_evaluation.
2471         (convert_and_check, warn_for_div_by_zero): Likewise.
2472         * c-common.h (skip_evaluation): Don't declare.
2473         (c_inhibit_evaluation_warnings): Declare.
2474         * c-parser.c (c_parser_typeof_specifier): Set
2475         c_inhibit_evaluation_warnings rather than skip_evaluation.
2476         (c_parser_conditional_expression): Likewise.
2477         (c_parser_binary_expression): Likewise.
2478         (c_parser_sizeof_expression): Likewise.
2479         (c_parser_alignof_expression): Likewise.
2480         * c-typeck.c (build_indirect_ref): Check
2481         c_inhibit_evaluation_warnings rather than skip_evaluation.
2482         (build_conditional_expr, build_binary_op): Likewise.
2483
2484 2009-06-16  Richard Guenther  <rguenther@suse.de>
2485
2486         * tree-ssa-alias.c (is_escape_site): Remove.
2487         * tree-ssa-alias.h (enum escape_type): Remove.
2488         (is_escape_site): Likewise.
2489         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
2490         via casts and asms without deferring to is_escape_site.
2491
2492 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
2493
2494         PR middle-end/40446
2495         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
2496         use gen_lowpart if op0 has complex mode.
2497
2498 2009-06-16  Richard Guenther  <rguenther@suse.de>
2499
2500         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
2501         variables add them to ESCAPED.
2502         (find_func_aliases): Do not make all indirectly stored values escaped.
2503
2504 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
2505
2506         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
2507         make_decl_one_only.
2508
2509 2009-06-16  Martin Jambor  <mjambor@suse.cz>
2510
2511         PR tree-optimization/40432
2512         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
2513         check whether we need to force gimple register operand.
2514
2515 2009-06-16  Martin Jambor  <mjambor@suse.cz>
2516
2517         PR tree-optimization/40413
2518         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
2519         build_ref_for_offset.
2520         (propagate_subacesses_accross_link): Fix a typo in a comment.
2521
2522 2009-06-16  Ira Rosen  <irar@il.ibm.com>
2523
2524         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
2525         with additional parameter.
2526         * tree-vectorizer.h (enum vect_def_type): Add new value
2527         vect_nested_cycle.
2528         (enum vect_relevant): Add comments.
2529         (vect_is_simple_reduction): Add new argument.
2530         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
2531         Detect nested cycles.
2532         (vect_is_simple_reduction): Update documentation, add an argument to
2533         distinguish inner-loop reduction from nested cycle, detect nested
2534         cycles, fix printings and indentation, don't swap operands in case
2535         of nested cycle.
2536         (get_initial_def_for_reduction): Handle subtraction.
2537         (vect_create_epilog_for_reduction): Add new argument to specify
2538         reduction variable.
2539         (vect_finalize_reduction): Handle subtraction, fix comments.
2540         (vectorizable_reduction): Handle nested cycles. In case of nested
2541         cycle keep track of the reduction variable position. Call 
2542         vect_is_simple_reduction with additional parameter. Use original 
2543         statement code in reduction epilogue for nested cycle. Call
2544         vect_create_epilog_for_reduction with additional parameter.
2545         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
2546         inner-loop vectorization.
2547         (vect_recog_widen_sum_pattern): Likewise.
2548         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
2549         and reductions.
2550         (vect_mark_stmts_to_be_vectorized): Likewise.
2551         (vect_get_vec_def_for_operand): Handle nested cycles.
2552
2553 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2554
2555         * doc/invoke.texi (Debugging Options): Fix option index entries
2556         for -fdump-statistics, -frandom-seed add entries for
2557         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
2558         (FRV Options): Fix entries for -mTLS, -mtls.
2559         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
2560         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
2561         (M68hc1x Options): Fix @itemx for -mnominmax.
2562         (MCore Options): Fix entry for -mno-lsim.
2563         (MMIX Options): Fix entry for -mabi=mmixware.
2564         (PDP-11 Options): Fix entry for -mbcopy-builtin.
2565
2566 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
2567
2568         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
2569         Mention the plugin mode of gengtype.
2570         * doc/gty.texi (Source Files Containing Type Information): Likewise.
2571         * gengtype.c: Updated copyright.
2572         (plugin_files, nb_plugin_files) Added new static variables.
2573         (measure_input_list) Care about plugin_files.
2574         (write_rtx_next): Added early return in plugin mode.
2575         (create_file): Updated copyright year in generated file. Added
2576         asserts.
2577         (oprintf): Added early return if NULL outf.
2578         (get_output_file_with_visibility): Care of plugin_files.
2579         (get_output_file_name): May return null.
2580         (write_local): Added early return.
2581         (put_mangled_filename): Ditto.
2582         (finish_root_table): Added check for base_files.
2583         (write_roots): Care about null when plugins.
2584         (main): Added plugin mode.
2585
2586 2009-06-15  Ian Lance Taylor  <iant@google.com>
2587
2588         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
2589         * gcov.c (read_count_file): Add braces around variables declared
2590         before label.
2591
2592         * c.opt (Wjump-misses-init): New warning.
2593         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
2594         -Wall and -Wc++-compat if not already set.
2595         (c_common_post_options): Clear warn_jump_misses_init if it was not
2596         set.
2597         * c-decl.c (struct c_binding): Change type field to a union with
2598         new label field.  Make it the first field in the struct.  Update
2599         references to type to use u.type instead.
2600         (struct c_spot_bindings): Define.
2601         (struct c_goto_bindings): Define.
2602         (c_goto_bindings_p): Define, along with VECs.
2603         (struct c_label_vars): Define.
2604         (struct c_scope): Add has_label_bindings field.
2605         (bind_label, set_spot_bindings): New static functions.
2606         (decl_jump_unsafe, update_spot_bindings): New static functions.
2607         (update_label_decls): New static function.
2608         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
2609         Update binding u.label field to shadowed field.
2610         (c_binding_start_stmt_expr): New function.
2611         (c_binding_end_stmt_expr): New function.
2612         (pushdecl): Don't call c_begin_vm_scope.
2613         (make_label): Add defining and p_label_vars parameters.  Change
2614         all callers.
2615         (lookup_label): Correct test for whether a label has not yet been
2616         defined.  Call bind_label rather than bind.
2617         (warn_about_goto): New static function.
2618         (lookup_label_for_goto): New function.
2619         (declare_label): Call bind_label rather than bind.
2620         (check_earlier_gotos): New static function.
2621         (define_label): Don't give errors about jumping into statement
2622         expressions or scopes of variably modified types.  Call
2623         set_spot_bindings and check_earlier_gotos.  Call bind_label
2624         instead of bind.  Don't set label_context_stack_se or
2625         label_context_stack_vm.
2626         (c_get_switch_bindings): New function.
2627         (c_release_switch_bindings): New function.
2628         (c_check_switch_jump_warnings): New function.
2629         (start_function): Don't set label_context_stack_se or
2630         label_context_stack_vm.
2631         (finish_function): Likewise.
2632         * c-typeck.c (label_context_stack_se): Don't define.
2633         (label_context_stack_vm): Don't define.
2634         (c_finish_goto_label): Call lookup_label_for_goto rather than
2635         lookup_label.  Don't give errors about jumping into a statement
2636         expression or the scope of a variably modified type.  Don't set
2637         label_context_stack_se or label_context_stack_vm.
2638         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
2639         fields.  Add bindings field.
2640         (c_start_case): Don't set deleted fields.  Set bindings field.
2641         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
2642         or blocked_vm.  Call c_check_switch_jump_warnings.
2643         (c_finish_case): Don't test blocked_stmt_expr field.  Call
2644         c_release_switch_bindings.
2645         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
2646         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
2647         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
2648         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
2649         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
2650         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
2651         (c_begin_vm_scope, c_end_vm_scope): Don't define.
2652         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
2653         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
2654         (C_DECL_UNJUMPABLE_VM): Don't define.
2655         (C_DECL_UNDEFINABLE_VM): Don't define.
2656         (struct c_label_list): Don't define.
2657         (struct c_label_context_se): Don't define.
2658         (struct c_label_context_vm): Don't define.
2659         (struct c_spot_bindings): Declare.
2660         (c_bindings_start_stmt_expr): Declare.
2661         (c_bindings_end_stmt_expr): Declare.
2662         (lookup_label_for_goto): Declare.
2663         (c_get_switch_bindings, c_release_switch_bindings): Declare.
2664         (c_check_switch_jump_warnings): Declare.
2665         (label_context_stack_se, label_context_stack_vm): Don't declare.
2666         (c_finish_goto_label): Update declaration.
2667         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
2668         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
2669         (Warning Options): Document -Wjump-misses-init.
2670
2671 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
2672
2673         * tree-object-size.c (addr_object_size): Fix a pasto in the last
2674         change.
2675
2676 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
2677
2678         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
2679
2680 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
2681
2682         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
2683
2684 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
2685
2686         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
2687
2688 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
2689
2690         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
2691         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
2692         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
2693         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
2694         * dwarf2asm.c (dw2_force_const_mem): Update call to
2695         make_decl_one_only.
2696         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
2697         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
2698         * langhooks.c (lhd_comdat_group): Remove.
2699         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
2700         * tree.h (DECL_COMDAT_GROUP): New.
2701         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
2702         (tree_decl_with_vis): Add comdat_group. Remove one_only.
2703         (make_decl_one_only): Change signature.
2704         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
2705         make_decl_one_only.
2706         (make_decl_one_only): Change signature.
2707         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
2708
2709 2009-06-15  Richard Guenther  <rguenther@suse.de>
2710
2711         PR middle-end/40439
2712         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
2713
2714 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2715
2716         * tree-ssa-math-opts.c: Remove extra divide.
2717
2718 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2719
2720         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
2721
2722 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2723
2724         * passes.c: Add bswap pass.
2725         * tree-pass.h: Add pass_optimize_bswap declaration.
2726         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
2727         Include rtl.h, expr.h and optabs.h for optab_handler check.
2728         (struct symbolic_number, pass_optimize_bswap): New definition.
2729         (do_shift_rotate, verify_symbolic_number_p): New functions.
2730         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
2731         (gate_optimize_bswap): New function.
2732         * tree.c (widest_int_cst_value): New function.
2733         * tree.h (widest_int_cst_value): Prototype added.
2734
2735 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
2736
2737         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
2738         REG_EQUAL/REG_EQUIV notes.
2739
2740 2009-06-14  Richard Guenther  <rguenther@suse.de>
2741
2742         PR middle-end/40389
2743         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
2744         has its address taken if NRV was applied and it is addressable.
2745         * tree-ssa-structalias.c (get_constraint_for_address_of): New
2746         function split out from ...
2747         (get_constraint_for_1): ... here.
2748         (handle_rhs_call): Use it to mark the return slot escaped if
2749         it is addressable and NRV was applied.
2750
2751 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
2752
2753         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
2754         Change first argument type to location_t.
2755         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
2756         Do not set input_location.
2757         Use loc instead of input_location throughout.
2758
2759 2009-06-13  Richard Guenther  <rguenther@suse.de>
2760
2761         PR tree-optimization/40421
2762         * tree-predcom.c (should_unroll_loop_p): Remove.
2763         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
2764
2765 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
2766
2767         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2768         Add location argument.
2769
2770 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
2771
2772         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
2773         build_decl.
2774         * config/s390/s390.c (s390_build_builtin_va_list): Same.
2775         (s390_gimplify_va_arg): Pass location to create_artificial_label.
2776         * config/spu/spu-protos.h: Add location to
2777         spu_resolve_overloaded_builtin.
2778         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
2779         spu_build_builtin_va_list.
2780         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
2781         argument.  Pass location to build_function_call_vec.
2782         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
2783         build_decl.
2784         (emit_fpu_switch): Same.
2785         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
2786         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
2787         to build_decl and create_artificial_label.
2788         (xtensa_gimplify_va_arg_expr): Same.
2789         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
2790         (xstormy16_gimplify_va_arg_expr): Same.
2791         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
2792         * config/arm/arm.c (arm_build_builtin_va_list): Same.
2793         * config/mips/mips.c (mips_build_builtin_va_list): Same.
2794         (mips16_build_function_stub): Same.
2795         (mips16_build_call_stub): Same.
2796
2797 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
2798
2799         PR target/40327
2800         * arm/constraints.md (Pa, Pb): New constraints.
2801         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a 
2802         split pattern to deal with them.
2803
2804 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
2805
2806         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
2807         fix index entry for -Xpreprocessor.
2808
2809 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
2810
2811         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2812         Add location argument to build_decl call.
2813         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
2814         (rs6000_init_builtins): Same.
2815         (spe_init_builtins): Same.
2816         (rs6000_gimplify_va_arg): Add location argument to
2817         create_artificial_label call.
2818
2819 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
2820
2821         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
2822         * combine-stack-adj.c (pass_stack_adjustments): Use it.
2823         * Makefile.in: Fix GGC dependency for gcse.o.
2824
2825 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
2826
2827         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
2828         * gimple-pretty-print.c (dump_gimple_stmt): Same.
2829         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
2830         created.
2831         * c-parser.c (c_parser_binary_expression): Use current column while
2832         building binary operations.
2833         * common.opt (fshow-column): Enable by default.
2834         * tree-vrp.c (check_array_ref): Use warning_at.
2835         (check_array_bounds): Use location from call back if expr has no
2836         location.
2837         * tree.h: Add location argument to maybe_fold_*.
2838         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
2839         (maybe_fold_offset_to_array_ref): Add location argument and use it.
2840         (maybe_fold_offset_to_component_ref): Same.
2841         (maybe_fold_offset_to_reference): Same.
2842         (maybe_fold_offset_to_address): Same.
2843         (maybe_fold_stmt_indirect): Same.
2844         (maybe_fold_stmt_addition): Same.
2845         (fold_stmt_r): Pass location to maybe_fold_*.
2846         (fold_gimple_assign): Same.
2847         * c-tree.h: Add location argument to finish_decl,
2848         default_function_array_conversion, store_init_value.
2849         * c-decl.c (define_label): Use error_at.
2850         (c_make_fname_decl): Pass location to finish_decl.
2851         (finish_decl): New location argument.
2852         (build_compound_literal): Pass location to store_init_value.
2853         (grokdeclarator): Pass location to finish_decl.
2854         (grokfield): Same.
2855         * c-typeck.c (array_to_pointer_conversion): New location argument.
2856         (function_to_pointer_conversion): Same.
2857         (default_function_array_conversion): Same.
2858         (parser_build_unary_op): Pass location to overflow_warning.
2859         (parser_build_binary_op): Same.  Use warning_at.
2860         (build_unary_op): Pass location to array_to_pointer_conversion.
2861         (build_c_cast): Pass location to digest_init.
2862         (build_modify_expr): New location argument.
2863         (convert_for_assignment): Same.
2864         (store_init_value): Same.
2865         (digest_init): Same.
2866         (output_init_element): Pass location to digest_init and
2867         array_to_pointer_conversion.
2868         (c_finish_return): Pass location to convert_for_assignment.
2869         * gimplify.c (gimplify_conversion): Pass location to
2870         maybe_fold_offset_to_address.
2871         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
2872         to maybe_fold_stmt_addition.
2873         * c-omp.c (c_finish_omp_atomic): Pass new location to
2874         build_modify_expr.
2875         (c_finish_omp_for): Same.
2876         * c-common.c (overflow_warning): New argument.
2877         * c-common.h: New argument to build_modify_expr, overflow_warning.
2878         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
2879         finish_decl.
2880         (c_parser_initializer): Pass location to
2881         default_function_array_conversion.
2882         (c_parser_initelt): Same.
2883         (c_parser_initval): Same.
2884         (c_parser_asm_operands): Same.
2885         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
2886         (c_parser_conditional_expression): Same.
2887         (c_parser_binary_expression): Add location info to stack.  Use it.
2888         (c_parser_unary_expression): Pass location to
2889         default_function_array_conversion, parser_build_unary_op,
2890         build_indirect_ref, c_parser_postfix_expression_after_primary.
2891         (c_parser_postfix_expression_after_primary): New location argument.
2892         Use it.
2893         (c_parser_expression_conv): Pass location to
2894         default_function_array_conversion.
2895         (c_parser_expr_list): Same.
2896         (c_parser_omp_atomic): Same.
2897         (c_parser_omp_for_loop): Same.
2898         * c-tree.h: (struct c_declarator): Add comment to id_loc.
2899         (build_array_declarator): New argument.
2900         * c-decl.c (build_array_declarator): Add location argument.
2901         (grokdeclarator): Set id_loc for cdk_array.
2902         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
2903         build_array_declarator.
2904         * tree.c (build_omp_clause): Add location argument.
2905         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
2906         (OMP_CLAUSE_LOCATION): New macro.
2907         (struct tree_omp_clause): Add location field.
2908         (build_omp_clause): Add argument.
2909         * testsuite/gcc.dg/gomp/for-1.c: Fix column.
2910         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
2911         build_omp_clause.
2912         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
2913         (cp_parser_omp_clause_collapse): Same.
2914         (cp_parser_omp_clause_default): Same.
2915         (cp_parser_omp_clause_if): Same.
2916         (cp_parser_omp_clause_nowait): Same.
2917         (cp_parser_omp_clause_num_threads): Same.
2918         (cp_parser_omp_clause_ordered): Same.
2919         (cp_parser_omp_clause_schedule): Same.
2920         (cp_parser_omp_clause_untied): Same.
2921         (cp_parser_omp_for_loop): Same.
2922         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
2923         * c-tree.h (c_start_case): Add location argument.
2924         (c_process_expr_stmt): Same.
2925         (c_finish_goto_*): Same.
2926         * tree-parloops.c (initialize_reductions): Pass location to
2927         build_omp_clause.
2928         (create_parallel_loop): Same.
2929         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
2930         (gfc_trans_omp_reduction_list): Same.
2931         (gfc_trans_omp_clauses): Same.
2932         (gfc_trans_omp_do): Same.
2933         * c-typeck.c (c_finish_goto_label): Same.
2934         (c_finish_goto_ptr): New location argument.
2935         (c_start_case): Same.
2936         (emit_side_effect_warnings): Same.
2937         (c_process_expr_stmt): Same.
2938         (c_finish_stmt_expr): Same.
2939         (c_finish_omp_clauses): Use error_at instead of error.
2940         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
2941         build_omp_clause.
2942         * c-omp.c (c_split_parallel_clauses): New location argument.
2943         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
2944         to build_omp_clause.
2945         (convert_local_reference_stmt): Same.
2946         (convert_gimple_call): Same.
2947         * c-common.h (c_split_parallel_clauses): New argument.
2948         * c-parser.c (c_parser_statement_after_labels): Pass location to
2949         c_finish_goto_label.
2950         (c_parser_switch_statement): Pass location to c_start_case.
2951         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
2952         and c_process_expr_stmt.
2953         (c_parser_omp_variable_list): Add location argument.
2954         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
2955         (c_parser_omp_clause_default): Same.
2956         (c_parser_omp_clause_if): Same.
2957         (c_parser_omp_clause_num_threads): Same.
2958         (-c_parser_omp_clause_ordered): Same.
2959         (c_parser_omp_clause_reduction): Pass location to
2960         c_parser_omp_variable_list.
2961         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
2962         (c_parser_omp_clause_untied): Same.
2963         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
2964         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
2965
2966         * c-tree.h (check_for_loop_decls, undeclared_variable,
2967         build_component_ref, build_array_ref, build_external_ref,
2968         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
2969         build_conditional_expr, build_compound_expr, c_cast_expr,
2970         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
2971         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
2972         argument.
2973         * c-semantics.c (build_stmt): Same.
2974         (build_case_label): Same.
2975         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
2976         (undeclared_variable): New argument.
2977         (make_label): Same.
2978         (lookup_label): Pass location on down.
2979         (define_label): Same.
2980         (finish_decl): Same.
2981         (build_compound_literal): Same.
2982         (finish_struct): Same.
2983         (finish_function): Do not set location here.
2984         (check_for_loop_decls): New argument.
2985         * tree.c (save_expr): Set location.
2986         (build_empty_stmt): New argument.
2987         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
2988         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
2989         * builtins.c (gimplify_va_arg_expr): Use locations.
2990         (expand_builtin_sync_operation): Same.
2991         * c-typeck.c (build_component_ref): New argument.
2992         (build_array_ref): Same.
2993         (build_external_ref): Same.
2994         (c_expr_sizeof_expr): Same.
2995         (c_expr_sizeof_type): Same.
2996         (parser_build_unary_op): Same.
2997         (build_conditional_expr): Same.
2998         (build_compound_expr): Pass location on down.
2999         (build_compound_expr): New argument.
3000         (build_c_cast): Same.
3001         (c_cast_expr): Same.
3002         (build_asm_expr): Same.
3003         (c_finish_return): Same.
3004         (c_process_expr_stmt): Pass location on down.
3005         (c_finish_stmt_expr): New argument.
3006         (push_clenaup): Same.
3007         (c_finish_omp_parallel): Same.
3008         (c_finish_omp_task): Same.
3009         * gimplify.c (gimplify_call_expr): Pass location on down.
3010         * c-omp.c (c_finish_omp_master): New argument.
3011         (c_finish_omp_critical): Same.
3012         (c_finish_omp_ordered): Same.
3013         (c_finish_omp_barrier): Same.
3014         (-c_finish_omp_taskwait): Same.
3015         (c_finish_omp_atomic): Same.
3016         (c_finish_omp_flush): Same.
3017         * tree-inline.c (copy_tree_body_r): Pass location on down.
3018         (inline_forbidden_p): Remove use of input_location.
3019         * c-gimplify.c (c_build_bind_expr): New argument.
3020         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
3021         (c_sizeof_or_alignof_type): New argument.
3022         (c_alignof_expr): Same.
3023         (build_va_arg): Same.
3024         (c_add_case_label): Same.
3025         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
3026         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
3027         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
3028         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
3029         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
3030         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
3031         New argument.
3032         * stub-objc.c (objc_build_selector_expr): Same.
3033         (objc_build_throw_stmt): Same.
3034         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
3035         (c_parser_initelt): Same.
3036         (c_parser_compound_statement): Same.
3037         (c_parser_compound_statement_nostart): Same.
3038         (c_parser_label): Same.
3039         (c_parser_statement_after_labels): Same.
3040         (c_parser_if_body): Same.
3041         (c_parser_else_body): Same.
3042         (c_parser_if_statement): Same.
3043         (c_parser_switch_statement): Same.
3044         (c_parser_while_statement): Same.
3045         (c_parser_do_statement): Same.
3046         (c_parser_for_statement): Same.
3047         (c_parser_asm_statement): Same.
3048         (c_parser_conditional_expression): Same.
3049         (c_parser_binary_expression): Same.
3050         (c_parser_cast_expression): Same.
3051         (c_parser_unary_expression): Same.
3052         (c_parser_sizeof_expression): Same.
3053         (c_parser_alignof_expression): Same.
3054         (c_parser_postfix_expression): Same.
3055         (c_parser_expression): Same.
3056         (c_parser_objc_receiver): Same.
3057         (c_parser_omp_variable_list): Same.
3058         (c_parser_omp_structured_block): Same.
3059         (c_parser_omp_atomic): New argument.
3060         (c_parser_omp_barrier): Same.
3061         (c_parser_omp_critical): Same.
3062         (c_parser_omp_flush): Pass location on down.
3063         (c_parser_omp_for_loop): New argument.
3064         (c_parser_omp_for): Same.
3065         (c_parser_omp_master): Same.
3066         (c_parser_omp_ordered): Same.
3067         (c_parser_omp_sections_scope): Same.
3068         (c_parser_omp_sections): Same.
3069         (c_parser_omp_parallel): Same.
3070         (c_parser_omp_single): Same.
3071         (c_parser_omp_task): Same.
3072         (c_parser_omp_taskwait): Pass location on down.
3073         (c_parser_omp_construct): Same.
3074         (c_parser_omp_threadprivate): Same.
3075         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
3076         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
3077         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
3078         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
3079         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
3080         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
3081         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
3082         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
3083         config/i386/i386.c, stmt.c:
3084         Add location argument to the following function definitions and/or
3085         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
3086         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
3087         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
3088         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
3089         do_case, c_finish_bc_stmt, build_compound_literal,
3090         build_function_call.
3091         * c-decl.c (build_compound_literal): Add location argument.
3092         Make all diagnostic calls use location.
3093         (start_struct): Same.
3094         (finish_struct): Same.
3095         (start_enum): Same.
3096         (build_enumerator): Same.
3097         (start_function): Same.
3098         (grokdeclarator): Make all diagnostic calls use location.
3099         (store_parm_decls_oldstyle): Same.
3100         * c-typeck.c (build_function_call): Add location argument.
3101         Make all diagnostic calls use location.
3102         (do_case): Same.
3103         (c_finish_bc_stmt): Same.
3104         * tree-nested.c (get_trampoline_type): Add argument.
3105         Pass location to build_decl.
3106         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
3107         * rtl.h (RTL_LOCATION): New.
3108         * c-common.c (c_add_case_label): Add location argument.
3109         Make all diagnostic calls use location.
3110         * c-common.h: Add location argument to make_fname_decl, do_case,
3111         c_add_case_label, build_function_call, resolve_overloaded_builtin.
3112         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
3113         Set it appropriately for every case.  Pass enum_loc to start_enum
3114         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
3115         parser_xref_tag.
3116         (c_parser_struct_or_union_specifier): Save location.  Use it for
3117         start_struct, finish_struct, and parser_xref_tag.
3118
3119 2009-06-12  Ian Lance Taylor  <iant@google.com>
3120
3121         * fold-const.c (fold_unary): Rename local variable and to and_expr.
3122
3123         * c-opts.c (c_common_handle_option): For -Wc++-compat set
3124         cpp_opts->warn_cxx_operator_names.
3125
3126 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3127
3128         PR tree-opt/38865
3129         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
3130         is returns NULL and OP is a VCE, look through the VCE.
3131
3132 2009-06-12  Ian Lance Taylor  <iant@google.com>
3133
3134         PR bootstrap/40430
3135         * collect2.c (main): Use CONST_CAST2 in code inside #if
3136         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
3137
3138 2009-06-12  Joey Ye  <joey.ye@intel.com>
3139
3140         PR middle-end/39146
3141         * cfgexpand.c (get_decl_align_unit): Update
3142         max_used_stack_slot_alignment with align instead of
3143         stack_alignment_needed.
3144
3145         * function.c (assign_stack_local_1): Update
3146         max_used_stack_slot_alignment with alignment_in_bits instead
3147         of stack_alignment_needed.
3148         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
3149         here.
3150
3151 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
3152
3153         * dwarf2out.c (last_var_location_insn): New variable.
3154         (dwarf2out_end_epilogue): Clear last_var_location_insn.
3155         (dwarf2out_var_location): Don't record anything after last real
3156         insn.  Only change labels if there were any real instructions
3157         in between last note and this one, or if changed sections.
3158
3159 2009-06-11  Richard Henderson  <rth@redhat.com>
3160
3161         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
3162         note when storing the frame pointer in a register.
3163         (FRP): Don't redefine to nothing for epilogue.
3164         (alpha_expand_epilogue): Mark register and sp restores.
3165         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
3166
3167         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
3168         when gen_lowpart is needed.
3169
3170 2009-06-11  Richard Henderson  <rth@redhat.com>
3171
3172         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
3173
3174         * dwarf2out.c (need_data_align_sf_opcode): New.
3175         (div_data_align): Move earlier.
3176         (def_cfa_1, reg_save): Use it.
3177
3178 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
3179
3180         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
3181         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
3182         (ix86_handle_option): Handle OPT_mcrc32.
3183         (ix86_target_string): Add -mcrc32.
3184         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
3185
3186         * config/i386/i386.h (TARGET_CRC32): New.
3187
3188         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
3189         (sse4_2_crc32di): Likewise.
3190
3191         * config/i386/i386.opt (mcrc32): New.
3192
3193         * doc/invoke.texi: Document -mcrc32.
3194
3195 2009-06-11  Richard Henderson  <rth@redhat.com>
3196
3197         * common.opt (gdwarf-): Accept a version number.
3198         * doc/invoke.texi (gdwarf-): Update docs.
3199         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
3200         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
3201         version level, and record it.
3202
3203         * dwarf2.h (DW_CIE_VERSION): Remove.
3204         * dwarf2out.c (DWARF_VERSION): Remove.
3205         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
3206         (output_call_frame_info): Use CIE version 3 for dwarf3,
3207         or if the return register column is out of range for version 1.
3208         (dwarf_stack_op_name): Add all dwarf3 values.
3209         (DEBUG_PUBTYPES_SECTION): New.
3210         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
3211         encoding change for dwarf3.
3212         (output_die) [dw_val_class_die_ref]: Likewise.
3213         (output_compilation_unit_header): Emit correct version for dwarf3.
3214         (output_line_info): Likewise.
3215         (output_pubnames): Update for DWARF_VERSION removal.
3216         (output_aranges): Likewise.
3217         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
3218         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
3219         (dwarf2out_finish): Likewise.
3220
3221 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
3222
3223         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
3224         in r148403.
3225
3226 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
3227
3228         PR c/39252
3229         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
3230         * builtins.c (expand_builtin_unreachable): New function.
3231         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
3232         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
3233         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
3234         successors.
3235         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
3236         searching for missing barriers.
3237
3238 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3239
3240         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
3241         when -fprofile-generate* was passed.
3242         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
3243
3244 2009-06-11  Anthony Green  <green@moxielogic.com>
3245
3246         * config/moxie/moxie.md: Define length attribute for all instructions.
3247         (rCC): Define.
3248         (*b<cond:code>): Support limited branch ranges for new PC-relative
3249         branch instructions.
3250         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
3251
3252 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
3253
3254         * config/i386/i386.c (min_insn_size): Use get_attr_length
3255         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
3256         For __asm return 0.
3257
3258         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
3259         instead of emit_insn_before.
3260
3261 2009-06-10  Ian Lance Taylor  <iant@google.com>
3262
3263         PR bootstrap/40408
3264         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
3265         GIMPLE_SWITCH.
3266
3267 2009-06-10  Revital Eres  <eres@il.ibm.com>
3268
3269         * passes.c (init_optimization_passes): Reschedule
3270         predictive-commoning pass before complete unroll pass.
3271
3272 2009-06-10  Martin Jambor  <mjambor@suse.cz>
3273
3274         * cgraph.c (cgraph_node_can_be_local_p): New function.
3275         (cgraph_make_node_local): New function.
3276         * cgraph.h (cgraph_node_can_be_local_p): Declare.
3277         (cgraph_make_node_local): Declare.
3278
3279 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
3280
3281         * tree.h (tree_base): Add packed_flag and user_align fields.
3282         Decrease size of spare field.
3283         (TYPE_USER_ALIGN): Use user_align from tree_base.
3284         (DECL_USER_ALIGN): Likewise.
3285         (TYPE_PACKED): Use packed_flag from tree_base.
3286         (DECL_PACKED): Likewise.
3287         (tree_type): Delete packed_flag and user_align fields.  Widen
3288         precision field.  Widen mode field and shuffle fields to align
3289         mode on an 8-bit boundary.
3290         (tree_decl_common): Delete decl_flag_1 and user_align fields.
3291         Renumber decl_flag_* fields.  Fix comments.  Widen
3292         decl_common_unused field.
3293         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
3294         (DECL_EXTERNAL): Likewise.
3295         (DECL_BIT_FIELD): Likewise.
3296         (DECL_NONADDRESSABLE_P): Likewise.
3297         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
3298         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
3299
3300 2009-06-10  Ian Lance Taylor  <iant@google.com>
3301
3302         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
3303         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
3304         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
3305         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
3306         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
3307         DEF_VEC_ALLOC_FUNC_P.
3308         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
3309         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
3310         DEF_VEC_ALLOC_FUNC_O.
3311         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
3312         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
3313         DEF_VEC_ALLOC_FUNC_I.
3314         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
3315         (vec_stack_p_reserve_exact_1): Declare.
3316         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
3317         (vec_stack_free): Declare.
3318         (VEC_stack_alloc): Define.
3319         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
3320         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
3321         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
3322         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
3323         for void_p.
3324         (stack_vecs): New static variable.
3325         (vec_stack_p_reserve_exact_1): New function.
3326         (vec_stack_o_reserve_1): New static function.
3327         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
3328         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
3329         (vec_stack_free): New function.
3330         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
3331         (VEC_df_ref_stack_alloc): Define.
3332         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
3333         DEF_VEC_ALLOC_P_STACK.
3334         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
3335         (struct df_collection_rec): Change _vec fields to VEC.  Remove
3336         _use fields.
3337         (df_free_collection_rec): Adjust for new fields.
3338         (df_insn_rescan): Use new df_collection_rec fields.
3339         (df_notes_rescan, df_canonize_collection_rec): Likewise.
3340         (df_ref_create_structure, df_ref_record): Likewise.
3341         (df_get_conditional_uses, df_get_call_refs): Likewise.
3342         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
3343         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
3344         (df_record_exit_block_uses, df_bb_verify): Likewise.
3345         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
3346         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
3347         Remove count parameter.  Change return type to void.  Change all
3348         callers.
3349         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
3350         Remove count parameter.  Change return type to void.  Change all
3351         callers.
3352         (df_install_refs): Change old_vec parameter to VEC.  Remove count
3353         parameter.  Change all callers.
3354         (df_install_mws): Change old_vec parameter to VEC.  Remove count
3355         parameter.  Change all callers.
3356         (df_refs_verify): Change new_rec parameter to VEC.  Change call
3357         callers.
3358         (df_mws_verify): Likewise.
3359
3360 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
3361
3362         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
3363
3364 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
3365
3366         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
3367
3368 2009-06-10  Anthony Green  <green@moxielogic.com>
3369
3370         * config/moxie/crti.asm: New file.
3371         * config/moxie/crtn.asm: New file.
3372         * config/moxie/moxie.c: New file.
3373         * config/moxie/moxie.h: New file.
3374         * config/moxie/sfp-machine.h: New file.
3375         * config/moxie/moxie-protos.h: New file.
3376         * config/moxie/t-moxie: Created.
3377         * config/moxie/t-moxie-softfp: Created.
3378         * config/moxie/moxie.md: Created.
3379         * config/moxie/constraints.md: Created.
3380         * config.gcc: Add moxie support.
3381         * doc/md.texi (Machine Constraints): Add moxie constraints.
3382         * doc/contrib.texi (Contributors): Mention moxie port.
3383         * doc/install.texi (Specific): Mention the moxie port.
3384
3385 2009-06-09  Ian Lance Taylor  <iant@google.com>
3386
3387         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
3388         compiling with C++.
3389         * optabs.c (optab_table): Only use designated initializers if
3390         HAVE_DESIGNATED_INITIALIZERS is defined.
3391         (convert_optab_table): Likewise.
3392         (init_optabs): Always call init_insn_codes if
3393         HAVE_DESIGNATED_INITIALIZERS is not defined.
3394
3395 2009-06-09  Ian Lance Taylor  <iant@google.com>
3396
3397         * targhooks.c (default_builtin_vectorized_function): Change fn
3398         parameter to unsigned int.
3399         (default_builtin_vectorized_conversion): Change code parameter to
3400         unsigned int.
3401         (default_builtin_reciprocal): Change fn parameter to unsigned int.
3402         * targhooks.h: Update declarations.
3403         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
3404         parameter to unsigned int.
3405
3406         * c-typeck.c (comptypes_check_enum_int): New static function.
3407         (comptypes_internal): Add enum_and_int_p parameter.  Change all
3408         callers.
3409         (comp_target_types): Add location parameter.  Change all callers.
3410         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
3411         Change all callers.
3412         (function_types_compatible_p, type_lists_compatible_p): Likewise.
3413         (build_conditional_expr): Add colon_loc parameter.  Change all
3414         callers.
3415         (convert_for_assignment): Add location parameter.  Change all callers.
3416         * c-parser.c (c_parser_conditional_expression): Pass location of
3417         colon to build_conditional_expr.
3418         * c-tree.h (build_conditional_expr): Update declaration.
3419
3420 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
3421
3422         * graphite.c: Revert previous patch.
3423
3424 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
3425
3426         PR bootstrap/40103
3427         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
3428
3429 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
3430
3431         * tree-ssa-loop-prefetch.c
3432         (loop_prefetch_arrays): Fixed a portability problem in printf format
3433         string.
3434
3435 2009-06-09  Martin Jambor  <mjambor@suse.cz>
3436
3437         PR tree-optimization/40351
3438         * tree-sra.c (propagate_subacesses_accross_link): Check that a
3439         refrence to a potential artifical subaccess can be constructed.
3440
3441 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
3442
3443         * config/sh/sh-protos.h (sh_optimization_options): Declare.
3444         (sh_override_options): Likewise.
3445         * config/sh/sh.c: Include params.h.
3446         (sh_optimization_options): New.
3447         (sh_override_options): Likewise.
3448         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
3449         (OVERRIDE_OPTIONS): Use sh_override_options.
3450
3451 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
3452
3453         * dwarf2out.c (emit_cfa_remember): New variable.
3454         (add_fde_cfi): If emit_cfa_remember, recurse to add
3455         DW_CFA_remember_state first.
3456         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
3457         instead just set emit_cfa_remember.
3458
3459 2009-06-08  Jan Hubicka  <jh@suse.cz>
3460
3461         PR debug/40126
3462         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
3463
3464 2009-06-08  Jan Hubicka  <jh@suse.cz>
3465
3466         PR middle-end/39834
3467         * cgraphunit.c (save_inline_function_body): Do not copy transform
3468         hooks for saved inline bodies.
3469         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
3470         for given function.
3471
3472 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
3473
3474         * jump.c (returnjump_p): Handle delayed branches.  Add missing
3475         function comment.
3476
3477 2009-06-08  Jan Hubicka  <jh@suse.cz>
3478
3479         PR middle-end/40102
3480         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
3481         original node might've been modified.
3482         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
3483
3484 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
3485
3486         * tree-object-size.c (addr_object_size): Add OSI argument.
3487         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
3488         (compute_builtin_object_size, expr_object_size): Adjust callers.
3489         (plus_stmt_object_size): Call addr_object_size instead of
3490         compute_builtin_object_size.
3491
3492 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
3493             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
3494         
3495         * tree-ssa-loop-prefetch.c 
3496         (gather_memory_references): Introduced a counter for the number of 
3497         memory references.
3498         (anything_to_prefetch_p): Introduced a counter for the number of 
3499         prefetches.
3500         (is_loop_prefetching_profitable): New function with a cost model 
3501         for prefetching.
3502         (loop_prefetch_arrays): Use the new cost model to determine if 
3503         prefetching is profitable.
3504         * params.def (MIN_INSN_TO_PREFETCH_RATIO, 
3505         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
3506         * params.h (MIN_INSN_TO_PREFETCH_RATIO, 
3507         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
3508         * doc/invoke.texi (MIN_INSN_TO_PREFETCH_RATIO, 
3509         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
3510         
3511 2009-06-08  Michael Matz  <matz@suse.de>
3512
3513         PR debug/40012
3514         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
3515         partitions use the same.
3516         (expand_one_var): Deal with DECL_RTL sometimes begin set also
3517         for basevars of SSA_NAMEs.
3518         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
3519         to not expand them twice.
3520         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
3521         multiple places.
3522
3523 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
3524
3525         * common.opt (fcompare-debug=, fcompare-debug-second): New.
3526         (fdump-final-insns=, gtoggle): New.
3527         * doc/invoke.texi: Document them.
3528         * final.c (rest_of_clean_state): Dump final insn stream.
3529         * gcc.c (invoke_as): Hook in -fcompare-debug.
3530         (static_spec_functions): Add compare-debug-dump-opt,
3531         compare-debug-self-opt and compare-debug-auxbase-opt.
3532         (compare_debug, compare_debug_second, compare_debug_opt): New.
3533         (switches_debug_check, n_switches_debug_check): New.
3534         (debug_auxbase_opt, debug_check_temp_file): New.
3535         (process_command): Handle -fno-compare-debug, -fcompare-debug and
3536         -fcompare-debug=*.
3537         (do_self_spec): Handle arguments after switches.
3538         (do_spec_1): Add .gk extension to temp file basenames for compare.
3539         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
3540         (cc1_options): Use it instead of normal auxbase computation for
3541         the second compare-debug compilation.
3542         (compare_files): New.
3543         (main): Set up and implement compare debug mode.
3544         (compare_debug_dump_opt_spec_function): New.
3545         (compare_debug_self_opt_spec_function): New.
3546         (compare_debug_auxbase_opt_spec_function): New.
3547         * toplev.c (process_options): Handle flag_gtoggle,
3548         flag_dump_final_insns.
3549         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
3550         during -fcompare-debug-second compilation.
3551
3552 2009-06-07  Ian Lance Taylor  <iant@google.com>
3553
3554         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
3555         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
3556
3557         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
3558         with no default node.  Change warning with %H to warning_at.
3559         Don't clear warn_switch around case checking.
3560         * doc/invoke.texi (Warning Options): Clarify distinction between
3561         -Wswitch and -Wswitch-enum.
3562
3563 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3564
3565         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
3566
3567 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3568
3569         * gbl-ctors.h: Add header guard.
3570
3571 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3572
3573         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
3574         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
3575         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
3576         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
3577         prototypes for removed functions.
3578         (expressions_equal_p): Move to ...
3579         * tree-ssa-sccvn.h: ... here and ...
3580         * matrix-reorg.c: ... adjust includes.
3581
3582 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3583
3584         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
3585
3586 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3587
3588         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
3589         (finish_function): Remove erroneous whitespace.
3590
3591 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3592
3593         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
3594         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
3595
3596 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3597
3598         * errors.c (internal_error): Commentary typo fix.
3599         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
3600         * tree-ssa-pre.c: Ditto.
3601
3602 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3603
3604         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
3605         them is supposed to hold actual statements.
3606
3607 2009-06-06  Ian Lance Taylor  <iant@google.com>
3608
3609         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
3610         empty statements can now have attributes.
3611
3612 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
3613
3614         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
3615         * config/mips/mips.md: Ditto.
3616
3617 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
3618
3619         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
3620         _RELOCATABLE.
3621         (__eabi_uconvert): Likewise.
3622
3623 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
3624
3625         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
3626         CFI_* definitions with IN_GCC.
3627
3628 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
3629
3630         * xcoffout.h (xcoffout_source_line): Update prototype.
3631
3632 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3633
3634         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
3635         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
3636
3637 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
3638
3639         PR middle-end/40340
3640         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
3641         inlined_function_outer_scope_p blocks for artificial inlines
3642         even at -g0/-g1.
3643         * tree.c (tree_nonartificial_location): Rewrite using
3644         block_nonartificial_location.
3645
3646 2009-06-05  Revital Eres  <eres@il.ibm.com>
3647             Leehod Baruch  <leehod@il.ibm.com>
3648
3649         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
3650         (expand_expr_real_1): Remove comment.
3651         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3652         Vectorize misaligned access when the target supports it.
3653         (vect_supportable_dr_alignment): Check for unaligned access support.
3654         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
3655         and remove asset.
3656
3657 2009-06-05  Julian Brown  <julian@codesourcery.com>
3658
3659         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
3660         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
3661
3662 2009-06-05  Richard Guenther  <rguenther@suse.de>
3663
3664         PR bootstrap/40350
3665         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
3666         as possibly unused.
3667
3668 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
3669
3670         * config/s390/s390.c (global_not_special_regno_p): New static inline.
3671         (save_gprs): Don't tell unwinder when a global register is saved.
3672         (s390_emit_epilogue): Emit needed epilogue unwind info.
3673
3674 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
3675
3676         * dwarf2out.c (deferred_asm_name): New.
3677         (add_name_and_src_coords_attributes): Defer creation of
3678         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
3679         computed yet.
3680         (move_linkage_attr): New.
3681         (dwarf2out_finish): Revisit deferrals and emit attributes at the
3682         right place.
3683
3684 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
3685
3686         * tree-nested.c (finalize_nesting_tree_1): Declare the
3687         frame_decl in the binding tree.
3688
3689 2009-06-04  Cary Coutant  <ccoutant@google.com>
3690
3691         * basic-block.h (struct basic_block_def): Add discriminator field.
3692         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
3693         callers.
3694         * debug.c (do_nothing_debug_hooks): Add additional entry.
3695         (debug_nothing_int_charstar_int): New function.
3696         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
3697         (debug_nothing_int_charstar_int): New declaration.
3698         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
3699         discriminator value in .loc directive.
3700         * final.c (last_discriminator): New variable.
3701         (discriminator): New variable.
3702         (final_start_function): Initialize above variables, pass current
3703         discriminator to debug hook.
3704         (notice_source_line): Check for discriminator change.
3705         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
3706         * sdbout.c (sdbout_source_line): New parameter.
3707         * tree-cfg.c (struct locus_discrim_map): New structure type.
3708         (discriminator_per_locus): New hash table.
3709         (build_gimple_cfg): Allocate and free discriminator hash table.
3710         (make_edges): Call assign_discriminator.
3711         (locus_map_hash): New function.
3712         (locus_map_eq): New function.
3713         (next_discriminator_for_locus): New function.
3714         (same_line_p): New function.
3715         (assign_discriminator): New function.
3716         (make_cond_expr_edges): Call assign_discriminator.
3717         (make_gimple_switch_edges): Likewise.
3718         (first_non_label_stmt): New function.
3719         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
3720         all callers.
3721         * xcoffout.c (xcoffout_source_line): Add new parameter.
3722
3723         * configure.ac (gcc_cv_as_discriminator): New configury check for
3724         gas support for discriminator.
3725         * configure: Regenerate.
3726         * config.in: Regenerate.
3727
3728 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3729
3730         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
3731         val after checking for integers.
3732
3733 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
3734
3735         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
3736         X64_REGPARM_MAX.
3737         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
3738         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
3739         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
3740         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
3741         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
3742         X64_SSE_REGPARM_MAX.
3743         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
3744         X64_SSE_REGPARM_MAX.
3745
3746 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
3747
3748         * gcc.c (report_times_to_file): New.
3749         (execute): Implement it.
3750         (process_command): Support -time=.
3751         * doc/invoke.texi: Document it.
3752
3753 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
3754
3755         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
3756         that have value exprs.
3757
3758 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
3759
3760         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
3761         declarations for constants until...
3762         (dw2_output_indirect_constant_1): ... this point.
3763
3764 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
3765
3766         PR target/10242
3767         * arm.md (arm_addsi3): Don't try to split an add with an
3768         eliminable register until after reload has completed.
3769
3770 2009-06-03  Ian Lance Taylor  <iant@google.com>
3771
3772         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
3773         * genattrtab.c (write_length_unit_log): Likewise.
3774         * genchecksum.c (dosum): Likewise.
3775         * gengtype.c (write_rtx_next): Likewise.
3776         (finish_root_table, write_roots): Likewise.
3777         * gimple.c (gimple_ops_offset_): Likewise.
3778         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
3779         * config/arc/arc.c (arc_attribute_table): Likewise.
3780         * config/arm/arm.c (arm_attribute_table): Likewise.
3781         * config/avr/avr.c (avr_attribute_table): Likewise.
3782         * config/crx/crx.c (crx_attribute_table): Likewise.
3783         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
3784         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
3785         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
3786         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
3787         * config/sh/sh.c (sh_attribute_table): Likewise.
3788         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
3789         * config/spu/spu.c (spu_attribute_table): Likewise.
3790         * config/v850/v850.c (v850_attribute_table): Likewise.
3791
3792         * config/alpha/alpha.c (vms_attribute_table): Make static.
3793         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
3794         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
3795         * config/mips/mips.c (mips_attribute_table): Likewise.
3796
3797         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
3798         $(SYSTEM_H).
3799         (cc1-checksum.o): Likewise.
3800
3801 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
3802
3803         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
3804
3805 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
3806
3807         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
3808         insn if it is changing sp.  Use gen_add3_insn instead of
3809         conditionally gen_addsi3 and gen_adddi3.
3810         (offset_below_red_zone_p): New static inline function.
3811         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
3812         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
3813         * config/rs6000/ppc-asm.h: Include auto-host.h.
3814         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
3815         CFI_RESTORE): Define.
3816         * config/rs6000/crtresxgpr.asm: Add unwind info.
3817         * config/rs6000/crtresxfpr.asm: Likewise.
3818         * config/rs6000/crtresgpr.asm: Likewise.
3819         * config/rs6000/crtresfpr.asm: Likewise.
3820         * config/rs6000/crtsavgpr.asm: Likewise.
3821         * config/rs6000/crtsavfpr.asm: Likewise.
3822
3823         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
3824         argument of DWARF2_FRAME_REG_OUT macros.
3825
3826 2009-06-03  Julian Brown  <julian@codesourcery.com>
3827
3828         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
3829         words or less (including TImode) in core registers.
3830
3831 2009-06-03  Richard Guenther  <rguenther@suse.de>
3832
3833         PR middle-end/40328
3834         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
3835
3836 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
3837
3838         * statistics.c (statistics_counter_event): Do not record event 
3839         in pass dump if its number == -1.
3840         (curr_statistics_hash): Add assert that we never get passes 
3841         with static number == -1.
3842
3843 2009-06-03  Richard Guenther  <rguenther@suse.de>
3844             Andrey Belevantsev  <abel@ispras.ru>
3845
3846         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only 
3847         non-BLKmode arrays addressable.
3848
3849 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
3850
3851         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
3852         * config/m68k/m68k.h: ... here.
3853         * testsuite/gcc.dg/falign-labels.c (dg-options): Don't restrict for
3854         m68k and fido.
3855
3856 2009-06-03  Martin Jambor  <mjambor@suse.cz>
3857
3858         PR tree-optimization/40323
3859         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
3860         assignment.
3861
3862 2009-06-03  Richard Guenther  <rguenther@suse.de>
3863
3864         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
3865         consistently.
3866
3867 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
3868
3869         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
3870         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
3871         JUMP_TABLE_DATA_P where applicable.
3872         * config/sh/sh.c: Ditto.
3873         * config/sh/sh.h: Ditto.
3874         * config/sh/sh.md: Ditto.
3875         * config/sh/symbian.c: Ditto.
3876
3877 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
3878
3879         * config/i386/driver-i386.c (describe_cache): Optimize
3880         concatenation of strings.  Use snprintf instead of sprintf.
3881         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
3882         target when not compiling with GCC.
3883
3884 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
3885
3886         * config/sh/sh.c: Revert last change.
3887         (sh_expand_epilogue): Emit a blockage insn before the frame
3888         pointer adjustment unconditionally.
3889
3890 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
3891
3892         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
3893         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
3894         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
3895         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
3896         to COLLECT_GCC_OPTIONS.
3897
3898 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
3899
3900         * collect2.c (target_system_root): New variable.
3901         (main): Handle --sysroot=.
3902         (ignore_library): Strip the sysroot from the library path.
3903
3904 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
3905
3906         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
3907         (collect2.o): Depend on collect2-aix.h.
3908         (collect2-aix.o): New rule.
3909         * collect2-aix.h: New file.
3910         * collect2-aix.c: Likewise.
3911         * collect2.c: Include collect2-aix.h.  Don't undefine
3912         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
3913         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
3914         Use TARGET_AIX_VERSION instead of _AIX51.
3915         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
3916         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
3917         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
3918         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
3919         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
3920
3921 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
3922
3923         * collect2.c (ignore_library): Avoid premature post-increment
3924         and null deference.
3925
3926 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
3927
3928         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
3929         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
3930         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
3931         CROSS_DIRECTORY_STRUCTURE too.
3932         (LINK_LIBG_SPEC): Likewise.
3933         (LIB_SPEC): Add %R to sysroot paths.
3934         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
3935         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
3936         * config/rs6000/aix51.h: As for aix43.h.
3937         * config/rs6000/aix52.h: Likewise.
3938         * config/rs6000/aix53.h: Likewise.
3939         * config/rs6000/aix61.h: Likewise.
3940         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
3941         to the beginning of sysroot paths.
3942
3943 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
3944
3945         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
3946         INSN_LISTs that are out of the REG_NOTE range.
3947
3948 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
3949
3950         * loop-unroll.c (struct iv_to_split): Add pointer to next.
3951         (struct var_to_expand): Likewise.
3952         (struct opt_info): Add head and tail for linked lists of the above.
3953         (analyze_insn_to_expand_var): Initialize next.
3954         (analyze_iv_to_split_insn): Likewise.
3955         (analyze_insns_in_loop): Create linked lists.
3956         (allocate_basic_variable): Simplify for use without hash table.
3957         (insert_var_expansion_initialization): Likewise, make it type-safer.
3958         (combine_var_copies_in_loop_exit): Likewise.
3959         (apply_opt_in_copies): Walk lists rather than hash tables.
3960         (release_var_copies): Simplified and inlined by hand into...
3961         (free_opt_info): ... this function.
3962
3963 2009-06-02  Richard Guenther  <rguenther@suse.de>
3964
3965         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
3966         for field decls.
3967
3968 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
3969
3970         * cfgexpand.c (gimple_expand_cfg): Discard the source location
3971         only for builtins that are not overridden.
3972
3973 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
3974
3975         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
3976         label string.
3977
3978 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
3979
3980         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
3981
3982 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
3983
3984         * combine.c (move_deaths): Compare LUIDs within the same BB only.
3985
3986 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
3987
3988         * common.opt (fdump-unnumbered-links): New.
3989         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
3990         * print-rtl.c (flag_dump_unnumbered_links): New.
3991         (print_rtx): Test it.
3992
3993 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
3994
3995         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
3996         push/pop multiple to 8-byte alignment.
3997
3998 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
3999
4000         * config/i386/i386.c (queued_cfa_restores): New static variable.
4001         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
4002         functions.
4003         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
4004         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
4005         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
4006         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
4007         note unconditionally.
4008         (ix86_emit_restore_regs_using_mov): Likewise.
4009         (ix86_emit_restore_sse_regs_using_mov): Likewise.
4010         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
4011         it through to ix86_emit_restore_reg_using_pop.
4012         (ix86_emit_leave): Add RED_OFFSET argument.  Call
4013         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
4014         instead of adding REG_CFA_OFFSET note unconditionally.
4015         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
4016         the above functions.  Call ix86_add_queued_cfa_restore_notes when
4017         needed.
4018
4019         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
4020         force output of the label even for dwarf2out_do_cfi_asm.
4021         (add_fde_cfi): If -g2 and above and cfi might change CFA,
4022         force creation of CFI label and chain DW_CFA_set_loc jumping to it
4023         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
4024         caller.
4025         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
4026         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
4027         dwarf2out_cfi_label callers.
4028         * tree.h (dwarf2out_cfi_label): Adjust prototype.
4029         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
4030         Adjust dwarf2out_cfi_label callers.
4031         * config/vax/vax.c (vax_output_function_prologue): Likewise.
4032
4033         * config/i386/i386.h (struct machine_cfa_state,
4034         struct machine_function): Guard with ifndef USED_FOR_TARGET
4035         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
4036
4037         PR other/40024
4038         * emutls.c (__emutls_get_address): Change arr->size to mean number
4039         of allocated arr->data entries instead of # of slots + 1.
4040
4041         PR middle-end/40316
4042         * recog.c (peep2_reinit_state): New function.
4043         (peephole2_init_state): Use it at the end of a basic block and also
4044         when seeing a RTX_FRAME_RELATED_P insn.
4045
4046 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
4047
4048         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
4049         fixuns_truncrfdi2): New.
4050         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
4051         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
4052         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
4053         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
4054         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
4055         *recip_approx): Remove.
4056         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
4057         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
4058         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
4059         move to div.md.
4060         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
4061         setf_exp_rf): New.
4062
4063 2009-06-01  Ian Lance Taylor  <iant@google.com>
4064
4065         * attribs.c (register_attribute): Use CONST_CAST.
4066         * collect2.c (main): Use CONST_CAST2.
4067         (scan_prog_file): Likewise.
4068         * gcc.c (process_command, main): Likewise.
4069         * toplev.c (toplev_main): Likewise.
4070
4071         * c-typeck.c (handle_warn_cast_qual): New static function,
4072         partially broken out of build_c_cast.
4073         (build_c_cast): Call handle_warn_cast_qual.
4074         * doc/invoke.texi (Warning Options): Document new effect of
4075         -Wcast-qual.
4076
4077 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
4078
4079         * diagnostic.c (diagnostic_build_prefix): Always print columns.
4080         (diagnostic_report_current_module): Print columns.
4081         * common.opt (flag_show_column): Enable by default.
4082
4083 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
4084
4085         * alias.c (find_base_term): Check for NULL term before returning.
4086
4087 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
4088
4089         Revert due to PR40320:
4090         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
4091         * calls.c (emit_library_call_value_1): Don't force_operand for move
4092         and push insns.
4093
4094 2009-06-01  Olivier Hainque  <hainque@adacore.com>
4095             Eric Botcazou  <ebotcazou@adacore.com>
4096
4097         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
4098         to be processed as a bitfield for constructor output purposes.
4099         * output.h (initializer_constant_valid_for_bitfield_p): Declare
4100         new function.
4101         * varasm.c (oc_local_state): New type, output_constructor
4102         local state to support communication with helpers.
4103         (oc_outer_state): New type, output_constructor outer state of
4104         relevance in recursive calls.
4105         (output_constructor_array_range): New output_constructor helper,
4106         extracted code for an array range element.
4107         (output_constructor_regular_field): New output_constructor helper,
4108         extracted code for an element that is not a bitfield.
4109         (output_constructor_bitfield): New output_constructor helper,
4110         extracted code for a bitfield element.  Accept an OUTER state
4111         argument for recursive processing.  Recurse on record or array
4112         CONSTRUCTOR values, possibly past noop conversions.
4113         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
4114         VALUE is a valid constant-valued expression for use in a static
4115         bit-field initializer.
4116         (output_constructor): Rework to use helpers.  Accept and honor an
4117         OUTER state argument for recursive calls.  Return total size.  Be
4118         prepared for nested constructors initializing bitfields.
4119         (output_constant): Feed OUTER in calls to output_constructor.
4120
4121 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
4122
4123         * calls.c (emit_library_call_value_1): Don't force_operand for move
4124         and push insns.
4125
4126 2009-06-01  Nick Clifton  <nickc@redhat.com>
4127
4128         * doc/invoke.texi (IA-64 Options): Fix typo.
4129
4130 2009-06-01  Ira Rosen  <irar@il.ibm.com>
4131
4132         PR tree-optimization/39129
4133         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the 
4134         printed message.
4135         (vect_do_peeling_for_loop_bound): Use 
4136         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
4137         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
4138         (vect_loop_versioning): Likewise.
4139         (vect_create_cond_for_alias_checks): Fix indentation.
4140         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the 
4141         macros.
4142         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
4143         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
4144         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to 
4145         "control flow in loop".
4146         (vect_estimate_min_profitable_iters): Use 
4147         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
4148         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
4149         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
4150         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
4151         * tree-vect-stmts.c (vectorizable_store): Replace the check that the 
4152         statement belongs to a group of strided accesses with the exact code 
4153         check.
4154         (vectorizable_load): Likewise.
4155         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
4156         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
4157
4158 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
4159
4160         * config/freebsd-stdint.h: New file.
4161         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
4162         Add freebsd-stdint.h to tm_file.
4163
4164 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
4165
4166         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
4167         (thumb2_extendhidi2): Likewise.
4168
4169 2009-05-31  Ian Lance Taylor  <iant@google.com>
4170
4171         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
4172
4173 2009-05-31  Ian Lance Taylor  <iant@google.com>
4174
4175         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
4176         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
4177         (ipa-reference.o): Depend upon gt-ipa-reference.h.
4178
4179 2009-05-31  Jason Merrill  <jason@redhat.com>
4180
4181         * tree-pretty-print.c (print_call_name): Take the callee, not the
4182         call itself.  Make non-static.  Use dump_function_name for functions.
4183         (dump_generic_node): Adjust.
4184         * diagnostic.h: Declare print_call_name.
4185         * gimple-pretty-print.c (dump_gimple_call): Use it.
4186
4187 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
4188
4189         * config/sh/sh.md (ashldi3_std): New define_expand.
4190         (ashldi3): Use it.
4191
4192 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
4193
4194         PR target/40313
4195         * config/sh/sh.c: Include debug.h.
4196         (sh_expand_epilogue): Emit a blockage insn before the frame
4197         pointer adjustment also when dwarf2out_do_frame returns true.
4198
4199 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
4200
4201         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
4202         (thumb2_extendqidi2): New pattern.
4203
4204 2009-05-31  Ira Rosen  <irar@il.ibm.com>
4205
4206         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
4207         mark phis for renaming.
4208         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
4209         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
4210         Call mark_sym_for_renaming.
4211         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
4212         * tree-vect-loop.c (vect_transform_loop): Remove
4213         vect_memsyms_to_rename initialization and a call to
4214         mark_set_for_renaming.
4215
4216 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
4217
4218         PR middle-end/40304
4219         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
4220         frame related even if !set_cfa && style < 0.
4221
4222 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
4223
4224         * config/i386/mingw-tls.c: New file.
4225         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
4226         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
4227         defining _WIN32 but not __CYGWIN__.
4228
4229 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4230
4231         * configure.ac: Add MPC support.
4232         
4233         * config.in, configure: Regenerate.     
4234
4235 2009-05-29  Richard Henderson  <rth@redhat.com>
4236
4237         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
4238         NOTE_INSN_BASIC_BLOCK.
4239         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
4240         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
4241         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
4242         to be deleted.
4243         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
4244         add in_use field.
4245         (add_cfi): Disable check redefining cfa away from drap.
4246         (lookup_cfa_1): Add remember argument; handle remember/restore.
4247         (lookup_cfa): Pass remember argument.
4248         (cfa_remember): New.
4249         (compute_barrier_args_size_1): Remove sibcall check.
4250         (dwarf2out_frame_debug_def_cfa): New.
4251         (dwarf2out_frame_debug_adjust_cfa): New.
4252         (dwarf2out_frame_debug_cfa_offset): New.
4253         (dwarf2out_frame_debug_cfa_register): New.
4254         (dwarf2out_frame_debug_cfa_restore): New.
4255         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
4256         (dwarf2out_begin_epilogue): New.
4257         (dwarf2out_frame_debug_restore_state): New.
4258         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
4259         DW_CFA_restore_state.
4260         (output_cfi_directive): Likewise.
4261         (convert_cfa_to_fb_loc_list): Likewise.
4262         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
4263         * dwarf2out.h: Update.
4264         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
4265         (copy_insn_1): Early out for null.
4266         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
4267         and dwarf2out_frame_debug_restore_state.
4268         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
4269         (prologue_insn_hash, epilogue_insn_hash): New.
4270         (free_after_compilation): Adjust freeing accordingly.
4271         (record_insns): Create hash table if needed; push insns into
4272         hash instead of array.
4273         (maybe_copy_epilogue_insn): New.
4274         (contains): Search hash table instead of array.
4275         (sibcall_epilogue_contains): Remove.
4276         (thread_prologue_and_epilogue_insns): Split eh_return insns
4277         and mark them as epilogues.
4278         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
4279         scanning in terms of basic blocks.
4280         * insn-notes.def (CFA_RESTORE_STATE): New.
4281         * jump.c (returnjump_p_1): Accept EH_RETURN.
4282         (eh_returnjump_p_1, eh_returnjump_p): New.
4283         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
4284         CFA_REGISTER, CFA_RESTORE): New.
4285         * rtl.def (EH_RETURN): New.
4286         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
4287
4288         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
4289         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
4290
4291         * config/i386/i386.c (gen_push): Update cfa state.
4292         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
4293         add a CFA_ADJUST_CFA note.
4294         (ix86_dwarf_handle_frame_unspec): Remove.
4295         (ix86_expand_prologue): Update cfa state.
4296         (ix86_emit_restore_reg_using_pop): New.
4297         (ix86_emit_restore_regs_using_pop): New.
4298         (ix86_emit_leave): New.
4299         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
4300         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
4301         * config/i386/i386.h (struct machine_cfa_state): New.
4302         (ix86_cfa_state): New.
4303         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
4304         (eh_return_internal): Merge from eh_return_<mode>,
4305         use eh_return rtx, split w/ epilogue.
4306
4307 2009-05-29  Ian Lance Taylor  <iant@google.com>
4308
4309         * builtins.c (validate_gimple_arglist): Don't use va_arg with
4310         enum type.
4311         * calls.c (emit_library_call_value_1): Likewise.
4312
4313         * c-typeck.c (c_build_va_arg): New function.
4314         * c-tree.h (c_build_va_arg): Declare.
4315         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
4316         instead of build_va_arg.
4317
4318 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
4319
4320         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
4321         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
4322         (ptr_difference_cost): Use affine combinations to compute it.
4323         (difference_cost): Likewise.
4324         (get_computation_cost_at): Compute more accurate cost for addresses
4325         if the ratio is a multiplier allowed in addresses.
4326         For non-addresses, consider that an additional offset or symbol is
4327         added only once.
4328
4329 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
4330
4331         * config/i386/i386.c (ix86_decompose_address): Avoid useless
4332         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
4333
4334         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
4335         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
4336         (prefix_rex): For UNIT_MMX don't imply the prefix by default
4337         if MODE_DI.
4338         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
4339         to 1 for TYPE_SSE{IADD1,CVT1}.
4340         (prefix_vex_imm8): Removed.
4341         (length_vex): Only pass 1 as second argument to
4342         ix86_attr_length_vex_default if prefix_extra is 0.
4343         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
4344         (length): For prefix vex computation use length_immediate
4345         attribute instead of prefix_vex_imm8.
4346         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
4347         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
4348         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
4349         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
4350         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
4351         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
4352         a space in between the operands.
4353         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
4354         if one operand is 0xff and the other one si, di, bp or sp.
4355         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
4356         other one si, di, bp or sp.
4357         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
4358         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
4359         type and mode attributes.
4360         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
4361         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
4362         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
4363         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
4364         prefix_data16 attribute iff MODE_DF.
4365         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
4366         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
4367         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
4368         constm128_operand in length_immediate computation.
4369         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
4370         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
4371         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
4372         length_immediate attribute to 1.
4373         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
4374         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
4375         for certain alternatives.
4376         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
4377         prefix_data16 attribute if MODE_V1DF.
4378         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
4379         length_immediate to 1.
4380         (set_got_rex64, set_rip_rex64): Remove length attribute, set
4381         length_address to 4, set mode attribute to MODE_DI.
4382         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
4383         (fxam<mode>2_i387): Set length attribute to 4.
4384         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
4385         *prefetch_3dnow_rex): Override length_address attribute.
4386         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
4387         attributes.
4388         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
4389         (constm128_operand): Removed.
4390         * config/i386/i386.c (memory_address_length): For
4391         disp && !index && !base in 64-bit mode account for SIB byte if
4392         print_operand_address can't optimize disp32 into disp32(%rip)
4393         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
4394         for fs: or gs: segment.
4395         (ix86_attr_length_immediate_default): When checking if shortform
4396         is possible, truncate immediate to the length of the non-shortened
4397         immediate.
4398         (ix86_attr_length_address_default): Ignore MEM_P operands
4399         with X constraint.
4400         (ix86_attr_length_vex_default): Only check for DImode on
4401         GENERAL_REG_P operands.
4402         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
4403         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
4404         (sse_cvttps2pi): Clear prefix_rep attribute.
4405         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
4406         attribute.
4407         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
4408         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
4409         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
4410         iff operand 2 is const_int_operand.
4411         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
4412         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
4413         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
4414         instead of vex.
4415         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
4416         prefix_data16.
4417         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
4418         prefix_data16 attribute for movlpd and movhpd instructions.
4419         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
4420         length_immediate for shufpd instruction.
4421         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
4422         (avx_cmpp<avxmodesuffixf2c><mode>3,
4423         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
4424         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
4425         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
4426         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
4427         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
4428         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
4429         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
4430         prefix_data16 attribute for the first alternative to 1.
4431         (*avx_loadlps): Override length_immediate for the first alternative.
4432         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
4433         attributes for second alternative.
4434         (*vec_concatv2sf_sse4_1): Override length_immediate and
4435         prefix_data16 attributes for second alternative.
4436         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
4437         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
4438         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
4439         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
4440         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
4441         prefix_data16 and length_immediate to 1.
4442         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
4443         to 1.
4444         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
4445         prefix_extra attribute for variants that don't have 0f prefix alone.
4446         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
4447         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
4448         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
4449         *sse4_1_pextrd): Set length_immediate to 1.
4450         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
4451         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
4452         to 1.
4453         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
4454         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
4455         length_immediate to 1 for second alternative.
4456         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
4457         prefix_extra and length_immediate attributes for the first
4458         alternative.
4459         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
4460         first alternative.
4461         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
4462         to 1 for the first and third alternative.
4463         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
4464         alternative.
4465         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
4466         attribute.
4467         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
4468         attribute to 0.
4469         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
4470         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
4471         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
4472         *avx_psign<mode>3): Set prefix_extra attribute to 1.
4473         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
4474         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
4475         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
4476         ssse3_psign<mode>3): Override prefix_rex attribute.
4477         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
4478         (ssse3_palignrti): Override length_immediate to 1.
4479         (ssse3_palignrdi): Override length_immediate to 1, override
4480         prefix_rex attribute.
4481         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
4482         (sse4a_extrqi): Override length_immediate to 2.
4483         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
4484         (sse4a_insertq): Override prefix_data16 to 0.
4485         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
4486         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
4487         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
4488         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
4489         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
4490         and length_immediate to 1.
4491         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
4492         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
4493         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
4494         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
4495         and length_immediate to 1.
4496         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
4497         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
4498         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
4499         avx_ptest256): Override prefix_extra to 1.
4500         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
4501         Override prefix_data16 and length_immediate to 1.
4502         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
4503         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
4504         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
4505         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
4506         prefix_data16 to 0 and prefix_extra to 2.
4507         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
4508         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
4509         attribute.
4510         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
4511         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
4512         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
4513         and prefix_extra to 2.
4514         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
4515         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
4516         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
4517         avx_vpermilvar<mode>3,
4518         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
4519         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
4520         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
4521         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
4522         Override prefix_extra to 1.
4523         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
4524         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
4525         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
4526         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
4527         prefix_extra and length_immediate to 1.
4528         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
4529         modrm to 0.
4530         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
4531         to 1 for the first alternative.
4532         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
4533         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
4534         cases.
4535         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
4536         *movv2sf_internal_avx, *movv2sf_internal): Override
4537         prefix_rep attribute for certain alternatives.
4538         (*mov<mode>_internal): Override prefix_rep or prefix_data16
4539         attributes for certain alternatives.
4540         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
4541         attributes for certain alternatives.
4542         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
4543         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
4544         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
4545         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
4546         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
4547         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
4548         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
4549         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
4550         length_immediate to 1 if operand 2 is const_int_operand.
4551         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
4552         *vec_extractv2si_1): Set length_immediate attribute to 1.
4553         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
4554         using old 3DNOW insn rather than SSE/3DNOW_A.
4555         (mmx_emms, mmx_femms): Clear modrm attribute.
4556
4557 2009-05-29  Martin Jambor  <mjambor@suse.cz>
4558
4559         * tree-sra.c:  New implementation of SRA.
4560
4561         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
4562         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
4563         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
4564         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
4565         (SRA_MAX_STRUCTURE_COUNT): Removed.
4566         (SRA_FIELD_STRUCTURE_RATIO): Removed.
4567         * doc/invoke.texi (sra-max-structure-size): Removed.
4568         (sra-field-structure-ratio): Removed.
4569
4570 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
4571
4572         PR middle-end/40291
4573         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
4574         before expansion.
4575
4576 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
4577
4578         PR rtl-optimization/40101
4579         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
4580         seqno.  Adjust comment.
4581         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when 
4582         inserting bookkeeping before a jump, the jump is not scheduled.
4583         When no positive seqno found, provide a value.  Add comment.
4584
4585 2009-05-29  Richard Guenther  <rguenther@suse.de>
4586
4587         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
4588         short-cutting on the first component.
4589
4590 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
4591
4592         PR middle-end/39958
4593         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
4594         for trees other than decls/types.
4595
4596 2009-05-29  Richard Guenther  <rguenther@suse.de>
4597
4598         * tree-ssa-operands.c (get_expr_operands): Do not handle
4599         INDIRECT_REFs in the handled-component case.  Remove
4600         unused get_ref_base_and_extent case.
4601         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
4602         tree_low_cst and host_integerp where possible.
4603         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
4604         codes for equivalence.
4605         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
4606
4607 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
4608
4609         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
4610         to tmake_file for i[34567]86-*-cygwin*. 
4611
4612 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
4613
4614         PR target/40017
4615         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
4616         (altivec_categorize_keyword, init_vector_keywords,
4617         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
4618         similar to bool.
4619
4620 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
4621
4622         * tree.c (handle_dll_attribute): Check if node is
4623         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
4624
4625 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
4626
4627         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
4628         component.
4629         (thumb2_zero_extendqidi2): Likewise.
4630
4631 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
4632
4633         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
4634         instead of gen_movrt.
4635         * config/sh/sh.md (movrt): Remove.
4636
4637 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
4638
4639         * doc/invoke.texi (IA-64 Options):
4640         Add -msdata, -mfused-madd, -mno-inline-float-divide, 
4641         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
4642         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
4643         -msched-prefer-non-control-spec-insns,
4644         -msched-stop-bits-after-every-cycle,
4645         -msched-count-spec-in-critical-path,
4646         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
4647         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
4648         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
4649         and -msched-spec-verbose.
4650
4651 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
4652
4653         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
4654         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
4655         error if used.
4656         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
4657
4658 2009-05-28  Richard Guenther  <rguenther@suse.de>
4659
4660         * tree-ssa-alias.c (ao_ref_init): New function.
4661         (ao_ref_base): Likewise.
4662         (ao_ref_base_alias_set): Likewise.
4663         (ao_ref_alias_set): Likewise.
4664         (refs_may_alias_p_1): Change signature.
4665         (refs_may_alias_p): Adjust.
4666         (refs_anti_dependent_p): Likewise.
4667         (refs_output_dependent_p): Likewise.
4668         (call_may_clobber_ref_p_1): Change signature.
4669         (call_may_clobber_ref_p): Adjust.
4670         (stmt_may_clobber_ref_p_1): New function split out from ...
4671         (stmt_may_clobber_ref_p): ... here.
4672         (maybe_skip_until): Adjust signature.
4673         (get_continuation_for_phi): Likewise.
4674         (walk_non_aliased_vuses): Likewise.
4675         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
4676         (ao_ref_init): Declare.
4677         (ao_ref_base): Likewise.
4678         (ao_ref_alias_set): Likewise.
4679         (stmt_may_clobber_ref_p_1): Likewise.
4680         (walk_non_aliased_vuses): Adjust.
4681         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
4682         (get_ref_from_reference_ops): remove.
4683         (vn_reference_lookup_2): Adjust signature.
4684         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
4685         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
4686         (vn_reference_lookup): Adjust.
4687         (vn_reference_insert): Likewise.
4688         (vn_reference_insert_pieces): Adjust signature.
4689         (visit_reference_op_call): Adjust.
4690         * tree-ssa-pre.c (get_expr_type): Simplify.
4691         (phi_translate_1): Adjust.
4692         (compute_avail): Likewise.
4693         (translate_vuse_through_block): Do not re-build trees.
4694         (value_dies_in_block_x): Likewise.
4695         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
4696         fields.
4697         (vn_reference_lookup_pieces): Adjust declaration.
4698         (vn_reference_insert_pieces): Likewise.
4699
4700 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
4701
4702         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
4703         with checking disabled.
4704
4705 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
4706
4707         PR target/37216
4708
4709         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
4710         macro definition for support of three-operand format aligned
4711         .comm directive in assembler on cygwin/pe/mingw target OS.
4712         * configure:  Regenerate.
4713         * config.h:  Regenerate.
4714
4715         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
4716         aligned form of .comm directive if -mpe-aligned-commons is in effect.
4717         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
4718
4719         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
4720         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
4721
4722 2009-05-28  Ira Rosen  <irar@il.ibm.com>
4723
4724         PR tree-optimization/40254
4725         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
4726         in analysis of basic blocks.
4727
4728 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
4729
4730         PR middle-end/33699
4731         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
4732         * target-def.h (TARGET_CONST_ANCHOR): New macro.
4733         (TARGET_INITIALIZER): Use it.
4734         * cse.c (CHEAPER): Move it up to the other macros.
4735         (insert): Rename this ...
4736         (insert_with_costs): ... to this.  Add cost parameters.  Update
4737         function comment.
4738         (insert): New function.  Call insert_with_costs.
4739         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
4740         find_reg_offset_for_const, try_const_anchors): New functions.
4741         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
4742         when using a const-anchor.  Call insert_const_anchors.
4743         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
4744         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
4745
4746 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
4747
4748         * tree-inline.c (remap_decls): Enable nonlocalized variables
4749         when not optimizing.
4750
4751 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
4752
4753         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
4754         Simplify other tests involving optimize.
4755
4756 2009-05-27  Tom Tromey  <tromey@redhat.com>
4757
4758         * unwind-dw2.c (_Unwind_DebugHook): New function.
4759         (uw_install_context): Call _Unwind_DebugHook.
4760
4761 2009-05-27  Tom Tromey  <tromey@redhat.com>
4762
4763         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
4764
4765 2009-05-27  Ian Lance Taylor  <iant@google.com>
4766
4767         * Makefile.in (LINKER, LINKER_FLAGS): Define.
4768         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
4769         (ALL_LINKERFLAGS): Define.
4770         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
4771         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
4772         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
4773         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
4774         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
4775         $(LINKER_FOR_BUILD).
4776         (build/gcov-iov$(build_exeext)): Likewise.
4777
4778 2009-05-27  Julian Brown  <julian@codesourcery.com>
4779
4780         * gcse.c (target.h): Include.
4781         (can_assign_to_reg_without_clobbers_p): Check that the target allows
4782         copy of argument to a pseudo register.
4783
4784 2009-05-27  Diego Novillo  <dnovillo@google.com>
4785
4786         * tree-ssa-live.c (dump_scope_block): Document arguments.
4787         (dump_scope_blocks): Document.
4788         (debug_scope_blocks): New.
4789         * tree-flow.h (debug_scope_blocks): Declare.
4790
4791 2009-05-21  Denis Chertykov  <denisc@overta.ru>
4792
4793         * doc/contrib.texi (Contributors): Add myself to the list.
4794
4795 2009-05-27  Olivier Hainque  <hainque@adacore.com>
4796
4797         * expr.c (target_align): New function.  Alignment the TARGET of an
4798         assignment may be assume to have.
4799         (highest_pow2_factor_for_target): Use it instead of relying on
4800         immediate tree attributes of TARGET, not necessarily honored when
4801         intermediate bitfields are involved.
4802         
4803 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
4804
4805         PR target/40266
4806         * config/i386/driver-i386.c (host_detect_local_cpu): Support
4807         AVX, SSE4, AES, PCLMUL and POPCNT.
4808
4809 2009-05-27  Diego Novillo  <dnovillo@google.com>
4810
4811         * tree-pretty-print.c (dump_location): New.
4812         (dump_generic_node): Call it.
4813         Factor code to handle BLOCK nodes ...
4814         (dump_block_node): ... here.
4815
4816 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
4817
4818         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
4819         with it.
4820         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
4821         included.
4822         * gcc-plugin.h: Include config.h and system.h.
4823         (IN_GCC): Define if not defined.
4824
4825 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
4826
4827         PR middle-end/40249
4828         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
4829         with -fno-inline.
4830
4831 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
4832
4833         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
4834         applicable.
4835         * config/m32r/m32r.h: Ditto.
4836         * config/m32r/m32r.md: Ditto.
4837         * config/m32r/predicates.md: Ditto.
4838
4839 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
4840
4841         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
4842
4843 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
4844
4845         * doc/plugins.texi
4846         (Loading plugins): typo.
4847         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
4848         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
4849         (Interacting with the GCC Garbage Collector): Added new section.
4850         (Giving information about a plugin): Added new section for
4851         PLUGIN_INFO.
4852         * ggc.h (ggc_register_root_tab): Added declaration.
4853         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
4854         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
4855         (register_callback): Improved comment in declaration.
4856         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
4857         (extra_root_vec) Added static variable for dynamic roots registration.
4858         (ggc_register_root_tab) Added new routine.
4859         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
4860         PLUGIN_GGC_MARKING event.
4861         * ggc-zone.c: Include plugin.h.
4862         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
4863         * ggc-page.c: Include plugin.h.
4864         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
4865         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
4866         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
4867         (register_callback): check lack of callbacks for
4868         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
4869         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
4870         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
4871         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
4872         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
4873         dependency on plugin.h.
4874         (plugin.o): Added dependency on ggc.h...
4875
4876 2009-05-26  Richard Guenther  <rguenther@suse.de>
4877
4878         PR middle-end/40248
4879         Revert
4880         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
4881         with mismatched comparison modes.
4882
4883         * expr.c (expand_expr_real_1): Expand the operand of a
4884         VIEW_CONVERT_EXPR in its natural mode.
4885
4886 2009-05-26  Ian Lance Taylor  <iant@google.com>
4887
4888         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
4889         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
4890         (ALL_COMPILERFLAGS): Define.
4891         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
4892         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
4893         (collect2$(exeext), collect2.o): Likewise.
4894         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
4895         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
4896         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
4897         (libbackend.o, intl.o, cppdefault.o): Likewise.
4898         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
4899         (build/%.o): Use $(COMPILER_FOR_BUILD).
4900         (build/gen%$(build_exeext)): Likewise.
4901         (build/gcov-iov$(build_exeext)): LIkewise.
4902         * config/t-darwin (darwin.o): Use $(COMPILER).
4903         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
4904         * config/t-sol2 (sol2-c.o): Likewise.
4905         (sol2.o): Likewise.
4906         * config/t-vxworks (vxworks.o): Likewise.
4907         * config/x-darwin (host-darwin.o): Likewise.
4908         * config/x-hpux (host-hpux.o): Likewise.
4909         * config/x-linux (host-linux.o): Likewise.
4910         * config/x-solaris (host-solaris.o): Likewise.
4911         * config/alpha/x-alpha (driver-alpha.o): Likewise.
4912         * config/arm/t-arm (arm-c.o): Likewise.
4913         * config/arm/t-pe (pe.o): Likewise.
4914         * config/arm/t-wince-pe (pe.o): Likewise.
4915         * config/i386/t-cygming (winnt.o): Likewise.
4916         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
4917         * config/i386/t-cygwin (cygwin1.o): Likewise.
4918         (cygwin2.o): Likewise.
4919         * config/i386/t-i386 (i386-c.o): Likewise.
4920         * config/i386/t-interix (winnt.o): Likewise.
4921         * config/i386/t-netware (netware.o): Likewise.
4922         * config/i386/t-nwld (nwld.o): Likewise.
4923         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
4924         * config/i386/x-i386 (driver-i386.o): Likewise.
4925         * config/i386/x-cygwin (host-cygwin.o): Likewise.
4926         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
4927         * config/ia64/t-ia64 (ia64-c.o): Likewise.
4928         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
4929         * config/mips/x-native (driver-native.o): Likewise.
4930         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
4931         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
4932         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
4933         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
4934         * config/score/t-score-elf (score7.o): Likewise.
4935         (score3.o): Likewise.
4936         * config/sh/t-sh (sh-c.o): Likewise.
4937         * config/sh/t-symbian (sh-c.o): Likewise.
4938         (symbian.o): Likewise.
4939         * config/spu/t-spu-elf (spu-c.o): Likewise.
4940         * config/v850/t-v850 (v850-c.o): Likewise.
4941         * config/v850/t-v850e (v850-c.o): Likewise.
4942
4943 2009-05-26  Richard Guenther  <rguenther@suse.de>
4944
4945         PR tree-optimization/40122
4946         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
4947         VECTOR_CSTs if possible.
4948         (fold_gimple_assign): Likewise.
4949
4950 2009-05-26  Richard Guenther  <rguenther@suse.de>
4951
4952         PR middle-end/40252
4953         * fold-const.c (fold_binary): Use the correct types for building
4954         rotates.
4955
4956 2009-05-26  Richard Guenther  <rguenther@suse.de>
4957
4958         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
4959         redundant calls to merge_alias_info.
4960         (bump_vector_ptr): Likewise.
4961         * tree-ssa-copy.c (merge_alias_info): Remove.
4962         (replace_exp_1): Remove call to merge_alias_info.
4963         (propagate_tree_value): Likewise.
4964         (fini_copy_prop): Propagate points-to info.
4965         * tree-flow.h (merge_alias_info): Remove.
4966
4967 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
4968
4969         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
4970
4971 2009-05-25  Jan Hubicka  <jh@suse.cz>
4972
4973         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
4974         * cgraph.h (struct inline_summary): New filed self_wize,
4975         size_inlining_benefit, self_time and time_inlining_benefit.
4976         (struct cgraph_global_info): Replace insns by time ans size fields.
4977         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
4978         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
4979         (ipcp_update_callgraph): Do not touch function bodies.
4980         * ipa-inline.c: Include except.h
4981         (MAX_TIME): New constant.
4982         (overall_insns): Remove.
4983         (leaf_node_p): New.
4984         (overall_size, max_benefit): New static variables.
4985         (cgraph_estimate_time_after_inlining): New function.
4986         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
4987         (cgraph_clone_inlined_nodes): Update size.
4988         (cgraph_mark_inline_edge): Update size.
4989         (cgraph_estimate_growth): Use size info.
4990         (cgraph_check_inline_limits): Check size.
4991         (cgraph_default_inline_p): Likewise.
4992         (cgraph_edge_badness): Compute badness based on benefit and size cost.
4993         (cgraph_decide_recursive_inlining): Check size.
4994         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
4995         and times.
4996         (cgraph_decide_inlining): Likewise.
4997         (cgraph_decide_inlining_incrementally): Likewise; honor
4998         PARAM_EARLY_INLINING_INSNS.
4999         (likely_eliminated_by_inlining_p): New predicate.
5000         (estimate_function_body_sizes): New function.
5001         (compute_inline_parameters): Use it.
5002         * except.c (must_not_throw_labels): New function.
5003         * except.h (must_not_throw_labels): Declare.
5004         * tree-inline.c (init_inline_once): Kill inlining_weigths
5005         * tree-ssa-structalias.c: Avoid uninitialized warning.
5006         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
5007         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
5008         (PARAM_INLINE_CALL_COST): Remove.
5009         (PARAM_EARLY_INLINING_INSNS): New.
5010
5011 2009-05-25  Richard Guenther  <rguenther@suse.de>
5012
5013         PR tree-optimization/36327
5014         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
5015         callback for reference translation or lookup at the point of may-defs.
5016         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
5017         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
5018         for union COMPONENT_REFs.
5019         (vn_reference_lookup_3): New callback.  Lookup from memset
5020         and CONSTRUCTOR assignment, translate through struct copies.
5021         (vn_reference_lookup_pieces): Make sure to not free the
5022         passed operands array.  Adjust walk_non_aliased_vuses call.
5023         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
5024         make sure we do not leak memory.
5025
5026 2009-05-25  Richard Guenther  <rguenther@suse.de>
5027
5028         * tree-ssa-alias.h (dump_points_to_solution): Declare.
5029         * tree-inline.c (expand_call_inline): Reset the escaped and
5030         callused solutions.
5031         * tree-ssa-structalias.c (pass_build_ealias): New.
5032         * tree-pass.h (pass_build_ealias): Declare.
5033         * passes.c (init_optimization_passes): Add PTA during 
5034         early optimizations.
5035         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
5036         and CALLUSED solutions.
5037         (dump_points_to_solution): New function, split out from ...
5038         (dump_points_to_info_for): ... here.
5039         * tree-parloops.c (parallelize_loops): Reset the escaped and
5040         callused solutions.
5041
5042 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5043
5044         PR bootstrap/40027
5045         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
5046         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
5047
5048 2009-05-25  Ira Rosen  <irar@il.ibm.com>
5049
5050         PR tree-optimization/40238
5051         * tree-vect-stmts.c (vect_init_vector): Insert initialization
5052         statements after basic block's labels.
5053         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info() 
5054         to free the allocated memory.
5055
5056 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
5057
5058         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
5059         return address with a USE.
5060
5061 2009-05-24  Richard Guenther  <rguenther@suse.de>
5062
5063         PR middle-end/40233
5064         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
5065         array type from the main variant of the inner type.
5066
5067 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5068
5069         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
5070         definition to bool (from int) to un-break build.
5071         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
5072
5073 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
5074
5075         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
5076         discard_stmt_changes): Delete.
5077         * tree-ssa-operands.c (scb_stack): Delete.
5078         (init_ssa_operands): Do not initialize it.
5079         (fini_ssa_operands): Do not free it.
5080         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
5081
5082         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with 
5083         update_stmt, remove the others.  Fix comments.
5084         * tree-dfa.c (optimize_stack_restore): Likewise.
5085         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
5086         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
5087         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
5088         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
5089         Likewise.
5090         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
5091         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
5092         (dom_opt_finalize_block): Likewise, adjusting access to
5093         stmts_to_rescan.
5094         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
5095         (stmts_to_rescan): Change item type to gimple.
5096         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
5097
5098 2009-05-24  Ira Rosen  <irar@il.ibm.com>
5099
5100         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
5101         * tree-pass.h (pass_slp_vectorize): New pass.
5102         * params.h (SLP_MAX_INSNS_IN_BB): Define.
5103         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
5104         * tree-vectorizer.c (timevar.h): Include.
5105         (user_vect_verbosity_level): Declare.
5106         (vect_location): Fix comment.
5107         (vect_set_verbosity_level): Update user_vect_verbosity_level
5108         instead of vect_verbosity_level.
5109         (vect_set_dump_settings): Add an argument. Ignore user defined
5110         verbosity if dump flags require higher level of verbosity. Print to
5111         stderr only for loop vectorization.
5112         (vectorize_loops): Update call to vect_set_dump_settings.
5113         (execute_vect_slp): New function.
5114         (gate_vect_slp): Likewise.
5115         (struct gimple_opt_pass pass_slp_vectorize): New.
5116         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
5117         access its members.
5118         (vec_info_for_bb): New function.
5119         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
5120         (VECTORIZATION_ENABLED): New macro.
5121         (SLP_ENABLED, SLP_DISABLED): Likewise.
5122         (vect_is_simple_use): Add bb_vec_info argument.
5123         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
5124         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
5125         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
5126         vect_schedule_slp, vect_analyze_slp): Likewise.
5127         (vect_analyze_stmt): Add slp_tree argument.
5128         (find_bb_location): Declare.
5129         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
5130         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
5131         (vect_analyze_loop_operations, vect_analyze_loop,
5132         get_initial_def_for_induction, vect_create_epilog_for_reduction,
5133         vect_finalize_reduction, vectorizable_reduction,
5134         vectorizable_live_operation, vect_transform_loop): Likewise.
5135         * tree-data-ref.c (dr_analyze_innermost): Update comment,
5136         skip evolution analysis if analyzing a basic block.
5137         (dr_analyze_indices): Likewise.
5138         (initialize_data_dependence_relation): Skip the test whether the
5139         object is invariant for basic blocks.
5140         (compute_all_dependences): Skip dependence analysis for data
5141         references in basic blocks.
5142         (find_data_references_in_stmt): Don't fail in case of invariant
5143         access in basic block.
5144         (find_data_references_in_bb): New function.
5145         (find_data_references_in_loop): Move code to
5146         find_data_references_in_bb and add a call to it.
5147         (compute_data_dependences_for_bb): New function.
5148         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
5149         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
5150         that STEP is 0.
5151         (vect_analyze_data_ref_dependence): Check for interleaving in case of
5152         unknown dependence in basic block and fail in case of dependence in
5153         basic block.
5154         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
5155         dependence instances from either loop or basic block vectorization
5156         info.
5157         (vect_compute_data_ref_alignment): Check if it is loop vectorization
5158         before calling nested_in_vect_loop_p.
5159         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
5160         dependence instances from either loop or basic block vectorization
5161         info.
5162         (vect_verify_datarefs_alignment): Likewise.
5163         (vect_enhance_data_refs_alignment): Adjust function calls.
5164         (vect_analyze_data_refs_alignment): Likewise.
5165         (vect_analyze_group_access): Fix printing. Skip different checks if
5166         DR_STEP is 0. Keep strided stores either in loop or basic block
5167         vectorization data structure. Fix indentation.
5168         (vect_analyze_data_ref_access): Fix comments, allow zero step in
5169         basic blocks.
5170         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
5171         dependence instances from either loop or basic block vectorization
5172         info.
5173         (vect_analyze_data_refs): Update comment. Call
5174         compute_data_dependences_for_bb to analyze basic blocks.
5175         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
5176         case of loop vectorization. In case of basic block vectorization use
5177         data-ref itself as a base.
5178         (vect_create_data_ref_ptr): In case of basic block vectorization:
5179         don't advance the pointer, add new statements before the current
5180         statement.  Adjust function calls.
5181         (vect_supportable_dr_alignment): Support only aligned accesses in
5182         basic block vectorization.
5183         * common.opt (ftree-slp-vectorize): New flag.
5184         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
5185         (vect_pattern_recog_1): Likewise.
5186         * tree-vect-stmts.c (process_use): Likewise.
5187         (vect_init_vector): Add new statements in the beginning of the basic
5188         block in case of basic block SLP.
5189         (vect_get_vec_def_for_operand): Adjust function calls.
5190         (vect_finish_stmt_generation): Likewise.
5191         (vectorizable_call): Add assert that it is loop vectorization, adjust
5192         function calls.
5193         (vectorizable_conversion, vectorizable_assignment): Likewise.
5194         (vectorizable_operation): In case of basic block SLP, take
5195         vectorization factor from statement's type and skip the relevance
5196         check. Adjust function calls.
5197         (vectorizable_type_demotion): Add assert that it is loop
5198         vectorization, adjust function calls.
5199         (vectorizable_type_promotion): Likewise.
5200         (vectorizable_store): Check for outer loop only in case of loop
5201         vectorization. Adjust function calls. For basic blocks, skip the
5202         relevance check and don't advance pointers.
5203         (vectorizable_load): Likewise.
5204         (vectorizable_condition): Add assert that it is loop vectorization,
5205         adjust function calls.
5206         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
5207         that it is not reduction, get vector type, call only supported
5208         functions, skip loop specific parts.
5209         (vect_transform_stmt): Check for outer loop only in case of loop
5210         vectorization.
5211         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
5212         (vect_is_simple_use): Fix comment, add new argument, fix conditions
5213         for external definition.
5214         * passes.c (pass_slp_vectorize): New pass.
5215         * tree-vect-slp.c (find_bb_location): New function.
5216         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
5217         check for patterns only in loops.
5218         (vect_build_slp_tree): Add argument, adjust function calls, fail in
5219         case of multiple types in basic block SLP.
5220         (vect_mark_slp_stmts_relevant): New function.
5221         (vect_supported_load_permutation_p): Fix comment.
5222         (vect_analyze_slp_instance): Add argument. In case of basic block
5223         SLP, take vectorization factor from statement's type, check that
5224         unrolling factor is 1. Adjust function call. Save SLP instance in
5225         either loop or basic block vectorization structure. Return FALSE,
5226         if SLP failed.
5227         (vect_analyze_slp): Add argument. Get strided stores groups from
5228         either loop or basic block vectorization structure. Return FALSE
5229         if basic block SLP failed.
5230         (new_bb_vec_info): New function.
5231         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
5232         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
5233         (vect_schedule_slp): Add argument. Get SLP instances from either
5234         loop or basic block vectorization structure. Set vectorization factor
5235         to be 1 for basic block SLP.
5236         (vect_slp_transform_bb): New function.
5237         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
5238
5239 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
5240
5241         * final.c (shorten_branches): Do not align labels for jump tables.
5242         (final_scan_insn): Use JUMP_TABLE_DATA_P.
5243
5244 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
5245
5246         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
5247         Remove outdated reference to flow.c and fix nits.
5248         * doc/gccint.texi: Tweak RTL description.
5249         * doc/rtl.texi: Likewise.
5250
5251 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
5252
5253         * config/avr/avr.c: Change my email address.
5254         * config/avr/avr.h: Likewise.
5255         * config/avr/avr.md: Likewise.
5256         * config/avr/avr-protos.h: Likewise.
5257         * config/avr/libgcc.S: Likewise.
5258
5259 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
5260
5261         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
5262         (spu_split_load, spu_split_store): Change return type to int.
5263         (spu_split_convert): Declare.
5264         * config/spu/predicates.md (spu_mem_operand): Remove.
5265         (spu_mov_operand): Update.
5266         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
5267         * config/spu/spu.c (regno_aligned_for_load): Remove.
5268         (reg_aligned_for_addr, spu_expand_load): Define.
5269         (spu_expand_extv): Reimplement and handle MEM.
5270         (spu_expand_insv): Handle MEM.
5271         (spu_sched_reorder): Handle insn's with length 0.
5272         (spu_legitimate_address_p): Reimplement.
5273         (store_with_one_insn_p): Return TRUE for any mode with size
5274         larger than 16 bytes.
5275         (address_needs_split): Define.
5276         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
5277         operands.
5278         (spu_convert_move): Define.
5279         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
5280         (spu_split_store): Change all MEM's to TImode.
5281         (spu_init_expanders): Preallocate registers that correspond to
5282         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
5283         mark_reg_pointer.
5284         (spu_split_convert): Define.
5285         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
5286         (_move<mode>, _movdi, _movti): Update predicate and condition.
5287         (load, store): Change to define_split.
5288         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
5289         extend<mode>ti2.
5290         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
5291         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
5292         define_insn_and_split of lshr<mode>3.
5293         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
5294         (<v>ashr<mode>3_imm): Define.
5295         (extv, extzv, insv): Allow MEM operands.
5296         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
5297         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
5298         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
5299         (_spu_convert2): Change to define_insn_and_split and remove the
5300         corresponding define_peephole2.
5301         (stack_protect_set, stack_protect_test, stack_protect_test_si):
5302         Change predicates to memory_operand.
5303
5304 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
5305
5306         * config/arm/thumb2.md: Add 16-bit multiply instructions.
5307
5308 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
5309
5310         PR tree-optimization/40219
5311         * tree.c (iterative_hash_expr): Make sure the builtin function is
5312         a normal builtin function and not a front end or back end builtin
5313         before indexing into the built_in_decls array.
5314
5315 2009-05-22  Richard Guenther  <rguenther@suse.de>
5316
5317         PR middle-end/38964
5318         * alias.c (write_dependence_p): Do not use TBAA for answering
5319         anti-dependence or output-dependence.
5320         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
5321         (emit_pointer_definition): Remove.
5322         (emit_alias_warning): Likewise.
5323         (find_what_var_points_to): Remove TBAA pruning code.
5324         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
5325         violations.
5326         (compute_points_to_sets): Remove code computing the set of
5327         dereferenced pointers.
5328         * tree-data-ref.c (dr_may_alias_p): Properly use the split
5329         oracle for querying anti and output dependencies.
5330         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
5331         if TBAA may be applied.
5332         (refs_anti_dependent_p): New function.
5333         (refs_output_dependent_p): Likewise.
5334         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
5335         (refs_output_dependent_p): Likewise.
5336         * doc/tree-ssa.texi (Memory model): New section.
5337         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
5338         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
5339         * cfgexpand.c (expand_gimple_basic_block): Do not handle
5340         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
5341         * expr.c (expand_expr_real_1): Likewise.
5342         * gimple-low.c (lower_stmt): Likewise.
5343         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
5344         (dump_gimple_cdt): Remove.
5345         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
5346         (gimple_size): Likewise.
5347         (walk_gimple_op): Likewise.
5348         (is_gimple_stmt): Likewise.
5349         (walk_stmt_load_store_addr_ops): Likewise.
5350         (gimple_build_cdt): Remove.
5351         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
5352         * gimple.h (gimple_cdt_new_type): Remove.
5353         (gimple_cdt_new_type_ptr): Likewise.
5354         (gimple_cdt_set_new_type): Likewise.
5355         (gimple_cdt_location): Likewise.
5356         (gimple_cdt_location_ptr): Likewise.
5357         (gimple_cdt_set_location): Likewise.
5358         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
5359         * tree-cfg.c (remove_useless_stmts_1): Do not handle
5360         GIMPLE_CHANGE_DYNAMIC_TYPE.
5361         (verify_types_in_gimple_stmt): Likewise.
5362         * tree-inline.c (estimate_num_insns): Likewise.
5363         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
5364         (copy_decl_to_var): Likewise.
5365         (copy_result_decl_to_var): Likewise.
5366         * tree-pretty-print.c (dump_generic_node): Do not handle
5367         CHANGE_DYNAMIC_TYPE_EXPR.
5368         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
5369         * tree-ssa-operands.c (get_expr_operands): Likewise.
5370         * tree-ssa-structalias.c (struct variable_info): Remove
5371         no_tbaa_pruning member.
5372         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
5373         (unify_nodes): Do not copy it.
5374         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
5375         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
5376         (set_uids_in_ptset): Do not check it.
5377         (find_what_var_points_to): Likewise.
5378         (compute_tbaa_pruning): Remove.
5379         (compute_points_to_sets): Do not call it.
5380         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
5381         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
5382         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
5383         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
5384         (DECL_NO_TBAA_P): Likewise.
5385         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
5386         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
5387         (expand_omp_atomic_pipeline): Do not set it.
5388         * print-tree.c (print_node): Do not dump it.
5389         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
5390         redundant check.
5391
5392 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
5393
5394         PR target/39856
5395         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
5396         for clobber.
5397
5398 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
5399
5400         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
5401         non-external.
5402
5403 2009-05-22  Ben Elliston  <bje@au.ibm.com>
5404
5405         * Makefile.in (bversion.h, s-bversion): New targets.
5406         (TOPLEV_H): Add bversion.h.
5407         * toplev.h: Include "bversion.h".
5408         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
5409         the __format__ attribute only if compiling with the same version
5410         of GCC as the sources (the "build version").
5411
5412 2009-05-22  Ben Elliston  <bje@au.ibm.com>
5413
5414         * c-format.c (handle_format_attribute): Fix comment typo.
5415
5416 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
5417
5418         PR target/37846
5419         * config/ia64/ia64.opt (mfused-madd): New.
5420         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
5421         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
5422         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
5423         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
5424         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
5425         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
5426         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
5427         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms 
5428         instruction if !TARGET_FUSED_MADD.
5429         (fpma, fpms): Remove colon from name.
5430
5431 2009-05-22  Richard Guenther  <rguenther@suse.de>
5432
5433         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
5434         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
5435         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
5436         TARGET_MEM_REF.
5437         (create_expression_by_pieces): Only convert if necessary.
5438         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
5439         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
5440
5441 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
5442
5443         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
5444         regular pattern from a template and rename it ...
5445         (*extzv_truncsi_exts): ... to this.
5446
5447 2009-05-21  Richard Guenther  <rguenther@suse.de>
5448
5449         * cgraph.h (struct cgraph_node): Remove inline_decl member.
5450         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
5451         (cgraph_default_inline_p): Likewise.
5452         (cgraph_decide_inlining_incrementally): Likewise.
5453
5454 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5455             Uros Bizjak  <ubizjak@gmail.com>
5456
5457         * config/i386/cpuid.h (bit_MOVBE): New.
5458
5459         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
5460
5461         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
5462         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
5463         (ix86_handle_option): Handle OPT_mmovbe.
5464         (ix86_target_string): Add -mmovbe.
5465         (pta_flags): Add PTA_MOVBE.
5466         (processor_alias_table): Add PTA_MOVBE to "atom".
5467         (override_options): Handle PTA_MOVBE.
5468
5469         * config/i386/i386.h (TARGET_MOVBE): New.
5470
5471         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
5472         (*bswapsi_movbe): New.
5473         (*bswapdi_movbe): Likewise.
5474         (bswapdi2): Renamed to ...
5475         (*bswapdi_1): This.
5476         (bswapdi2): New expander.
5477
5478         * config/i386/i386.opt (mmovbe): New.
5479
5480         * doc/invoke.texi: Document -mmovbe.
5481
5482 2009-05-21  Taras Glek  <tglek@mozilla.com>
5483
5484         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
5485         * gcc-plugin.h (plugin_init): Updated signature.
5486         * gcc-plugin.h (plugin_name_args): Moved to this header.
5487         * doc/plugins.texi (plugin_init): Updated documention to reflect
5488         API change.
5489         * doc/plugins.texi (plugin_name_args): Added to documention.
5490
5491 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
5492
5493         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
5494         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
5495
5496 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
5497
5498         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
5499         JUMP_TABLE_DATA_P predicates where applicable.
5500         * config/i386/predicates.md: Ditto.
5501         * config/i386/sse.md: Ditto.
5502
5503 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
5504
5505         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
5506         operand2 -128 override length_immediate attribute to 1.
5507         * config/i386/predicates.md (constm128_operand): New predicate.
5508
5509         * config/i386/i386.c (memory_address_length): Handle %r12
5510         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
5511         also check REGNO.
5512         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
5513         mode look through optional ZERO_EXTEND and SUBREG.
5514         * config/i386/i386.md (R12_REG): New define_constant.
5515         (prefix_data16): For sse unit set also for MODE_TI insns.
5516         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
5517         insns set if operand 1 is ext_QIreg_operand.
5518         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
5519         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
5520         immediate.
5521         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
5522         mode from MODE_DI to MODE_SI.
5523         (movdi_1_rex64): Override modrm and length_immediate attributes
5524         only for movabs (TYPE_IMOV, alternative 2).
5525         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
5526         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
5527         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
5528         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
5529         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
5530         prefix_rex attribute if DImode.
5531         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
5532         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
5533         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
5534         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
5535         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
5536         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
5537         Likewise.  For TYPE_IMOV clear length_immediate attribute.
5538         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
5539         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
5540         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
5541         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
5542         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
5543         or one operand TYPE_ISHIFT.
5544         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
5545         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
5546         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
5547         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
5548         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
5549         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
5550         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
5551         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
5552         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
5553         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
5554         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
5555         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
5556         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
5557         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
5558         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
5559         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
5560         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
5561         set mode attribute, don't override length attribute.
5562         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
5563         to 1.
5564         (return_internal_long): Set length attribute to 2 instead of 1.
5565         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
5566         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
5567         prefix_rex attribute.
5568         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
5569         New predicates.
5570         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
5571
5572 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5573
5574         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
5575
5576 2009-05-20  Ian Lance Taylor  <iant@google.com>
5577
5578         * tree.c (build_tree_list_vec_stat): New function.
5579         (ctor_to_vec): New function.
5580         (build_nt_call_vec): New function.
5581         (build_call_array): Change args to be a const pointer.
5582         (build_call_vec): New function.
5583         * tree.h (build_nt_call_vec): Declare.
5584         (build_tree_list_vec_stat): Declare.
5585         (build_tree_list_vec): Define.
5586         (build_call_array): Update declaration.
5587         (build_call_vec): Declare.
5588         (ctor_to_vec): Declare.
5589         * c-common.c (tree_vector_cache): New static variable.
5590         (make_tree_vector): New function.
5591         (release_tree_vector): New function.
5592         (make_tree_vector_single): New function.
5593         (make_tree_vector_copy): New function.
5594         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
5595         (make_tree_vector_single, make_tree_vector_copy): Declare.
5596         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
5597         (c_parser_expr_list): Don't manage cache here, instead call
5598         make_tree_vector.
5599         (c_parser_release_expr_list): Remove static function.
5600         (c_parser_vec_to_tree_list): Remove static function.
5601         (c_parser_attributes): Call build_tree_list_vec instead of
5602         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
5603         c_parser_release_expr_list.
5604         (c_parser_postfix_expression_after_primary): Likewise.
5605         (c_parser_objc_keywordexpr): Likewise.
5606
5607 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
5608
5609         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
5610         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
5611         TARGET_CONVERT_TO_TYPE.
5612         * hooks.c (hook_tree_const_tree_null): Define.
5613         * hooks.h (hook_tree_const_tree_null): Declare.
5614         * target.h (struct gcc_target):  Add invalid_parameter_type,
5615         invalid_return_type, promoted_type, and convert_to_type fields.
5616         * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
5617         (TARGET_INVALID_RETURN_TYPE): Define.
5618         (TARGET_PROMOTED_TYPE): Define.
5619         (TARGET_CONVERT_TO_TYPE): Define.
5620         (TARGET_INITIALIZER): Update for new fields.
5621         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
5622         (grokparms): Check targetm.invalid_parameter_type.
5623         * c-typeck.c (default_conversion): Check targetm.promoted_type.
5624         * c-convert.c (convert): Check targetm.convert_to_type.
5625
5626 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
5627
5628         * config/mips/mips.md (*extenddi_truncate<mode>,
5629         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
5630         defintions.
5631         (*extendhi_truncateqi): New define_insn_and_sptit.
5632
5633 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
5634
5635         PR middle-end/40204
5636         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
5637         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
5638
5639 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
5640
5641         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
5642         the operand of VIEW_CONVERT_EXPR.
5643
5644 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
5645
5646         * config/i386/driver-i386.c (host_detect_local_cpu): Check
5647         extended family and model for Intel processors.  Support Intel Atom.
5648
5649 2009-05-20  Olivier Hainque  <hainque@adacore.com>
5650
5651         * gstab.h (stab_code_type): Define, to be used instead of the
5652         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
5653         notice.
5654         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
5655         occurrences by stab_code_type.
5656         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
5657
5658 2009-05-20  Martin Jambor  <mjambor@suse.cz>
5659
5660         * tree-flow.h (insert_edge_copies_seq): Undeclare.
5661         (sra_insert_before): Likewise.
5662         (sra_insert_after): Likewise.
5663         (sra_init_cache): Likewise.
5664         (sra_type_can_be_decomposed_p): Likewise.
5665         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
5666         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
5667         (sra_insert_before): Likewise.
5668         (sra_insert_after): Likewise.
5669         (sra_init_cache): Likewise.
5670         (insert_edge_copies_seq): Made static and moved upwards.
5671
5672         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
5673         case.
5674
5675         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
5676
5677         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
5678         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
5679         simple copies.
5680
5681 2009-05-20  Richard Guenther  <rguenther@suse.de>
5682
5683         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
5684         with mismatched comparison modes.
5685
5686 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5687
5688         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
5689         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
5690         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
5691         with shifts for Thumb2.
5692         (orsi_notsi): New for orn.
5693         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
5694         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
5695         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
5696         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
5697         Don't invert remainder for IOR.
5698         
5699 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
5700
5701         PR tree-optimization/40087
5702         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
5703         number_of_iterations_ne): Rename never_infinite argument.
5704         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
5705         number_of_iterations_le): Handle pointer-type ivs when
5706         exit_must_be_taken is false.
5707         (number_of_iterations_cond):  Do not always assume that
5708         exit_must_be_taken if the control variable is a pointer.
5709
5710 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5711
5712         * c-typeck.c (build_binary_op): Allow % on integal vectors.
5713         * doc/extend.texi (Vector Extension): Document that % is allowed too.
5714
5715 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5716
5717         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
5718         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
5719
5720 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5721
5722         PR c/40172
5723         * c.opt (Wlogical-op): Disabled by default.
5724         * c-opt (c_common_post_options): Do not enable Wlogical-op with
5725         Wextra.
5726         * doc/invoke.texi (Wlogical-op): Likewise.
5727         
5728 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
5729
5730         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
5731         into CASE_CONVERT.
5732         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
5733         Propagate the type of the first operand.
5734         <ASSERT_EXPR>: Simplify.
5735         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
5736         Rewrite using the RHS code as discriminant.
5737         <NOP_EXPR>: Turn into CASE_CONVERT.
5738         <PLUS_EXPR>: Propagate the type of the first operand.
5739
5740 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
5741
5742         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
5743         (ia64_dconst_0_375): New.
5744         * config/ia64/ia64.c (ia64_override_options): Remove
5745         -minline-sqrt-min-latency warning.
5746         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
5747         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
5748         * config/ia64/ia64.md (*sqrt_approx): Remove.
5749         (sqrtsf2): Remove #if 0.
5750         (sqrtsf2_internal_thr): Rewrite and move to div.md.
5751         (sqrtdf): Remove assert.
5752         (sqrtdf2_internal_thr): Rewrite and move to div.md.
5753         (sqrtxf2): Remove #if 0.
5754         (sqrtxf2_internal_thr): Rewrite and move to div.md.
5755         * div.md (sqrt_approx_rf): New.
5756         (sqrtsf2_internal_thr): New implementation.
5757         (sqrtsf2_internal_lat): New.
5758         (sqrtdf2_internal_thr: New implementation.
5759         (sqrtxf2_internal): New implementation.
5760
5761 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
5762             Hans-Peter Nilsson  <hp@axis.com>
5763
5764         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
5765         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
5766         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
5767         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
5768         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
5769         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
5770         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
5771         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
5772         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
5773         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
5774         * c-common.c: ...from here.
5775
5776 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5777
5778         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
5779
5780 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5781
5782         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
5783
5784 2009-05-19  Ben Elliston  <bje@au.ibm.com>
5785
5786         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
5787         assignments with memcpy calls.
5788         (add_fdes): Likewise.
5789         (binary_search_unencoded_fdes): Likewise.
5790         (linear_search_fdes): Eliminate type puns.
5791         
5792 2009-05-19  Richard Guenther  <rguenther@suse.de>
5793
5794         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
5795         not falsely claim to have propagated into all uses.
5796
5797 2009-05-19  Ben Elliston  <bje@au.ibm.com>
5798
5799         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
5800         version to v3.0.
5801
5802 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
5803
5804         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
5805         * config/sh/sh.c (sh_legitimate_address_p): Make static.
5806         (TARGET_LEGITIMATE_ADDRESS_P): New.
5807         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
5808         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
5809         
5810 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
5811
5812         PR debug/40109
5813         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
5814         child of the containing namespace's DIE.
5815
5816 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
5817
5818         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
5819         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
5820         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
5821         extend patterns.
5822
5823 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5824
5825         PR target/39942
5826         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
5827         gen_align with gen_pad.
5828         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
5829         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
5830
5831         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
5832         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
5833
5834         * config/i386/i386.md (align): Renamed to ...
5835         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
5836         ASM_OUTPUT_MAX_SKIP_PAD.
5837
5838 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
5839
5840         * config.gcc: Fix variable syntax.
5841
5842         PR target/39531
5843         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
5844         before calling exact_log2.
5845         (output_iorsi3): Likewise.
5846         (output_xorsi3): Likewise.
5847
5848 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
5849
5850         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
5851         for the none zero constant operand except for EQ and NE
5852         comprisons even when the first operand is R0.
5853
5854 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
5855
5856         * config/s390/2064.md: Remove trailing whitespaces.
5857         * config/s390/2084.md: Likewise.
5858         * config/s390/constraints.md: Likewise.
5859         * config/s390/fixdfdi.h: Likewise.
5860         * config/s390/libgcc-glibc.ver: Likewise.
5861         * config/s390/s390-modes.def: Likewise.
5862         * config/s390/s390-protos.h: Likewise.
5863         * config/s390/s390.c: Likewise.
5864         * config/s390/s390.h: Likewise.
5865         * config/s390/s390.md: Likewise.
5866         * config/s390/tpf-unwind.h: Likewise.
5867
5868 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
5869
5870         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
5871
5872 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
5873
5874         M68K TLS support.
5875         * configure.ac (m68k-*-*): Check if binutils support TLS.
5876         * configure: Regenerate.
5877         * config/m68k/predicates.md (symbolic_operand): Extend comment.
5878         * config/m68k/constraints.md (Cu): New constraint.
5879         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
5880         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
5881         (movsi): Handle TLS symbols.
5882         (addsi3_5200): Handle XTLS symbols, indent.
5883         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
5884         (m68k_tls_reference_p): Declare.
5885         (m68k_legitimize_address): Declare.
5886         (m68k_unwrap_symbol): Declare.
5887         * config/m68k/m68k.opt (mxtls): New option.
5888         * config/m68k/m68k.c (ggc.h): Include.
5889         (m68k_output_dwarf_dtprel): Implement hook.
5890         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
5891         (m68k_expand_prologue): Load GOT pointer when function needs it.
5892         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
5893         (m68k_legitimate_constant_address_p): Same.
5894         (m68k_decompose_address): Handle TLS references.
5895         (m68k_get_gp): New static function.
5896         (enum m68k_reloc): New contants.
5897         (TLS_RELOC_P): New macro.
5898         (m68k_wrap_symbol): New static function.
5899         (m68k_unwrap_symbol): New function.
5900         (m68k_final_prescan_insn_1): New static function.
5901         (m68k_final_prescan_insn): New function.
5902         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
5903         functions.
5904         (legitimize_pic_address): Handle TLS references..
5905         (m68k_tls_get_addr, m68k_get_tls_get_addr)
5906         (m68k_libcall_value_in_a0_p)
5907         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
5908         (m68k_call_m68k_read_tp): Helper variables and functions for ...
5909         (m68k_legitimize_tls_address): Handle TLS references.
5910         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
5911         New functions.
5912         (m68k_legitimize_address): Handle TLS symbols.
5913         (m68k_get_reloc_decoration): New static function.
5914         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
5915         UNSPEC_RELOC32.
5916         (m68k_output_dwarf_dtprel): Implement hook.
5917         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
5918         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
5919         m68k_call_* routines.
5920         (sched_attr_op_type): Handle TLS symbols.
5921         (gt-m68k.h): Include.
5922         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
5923         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
5924
5925 2009-05-18  Martin Jambor  <mjambor@suse.cz>
5926
5927         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
5928         (visit_store_addr_for_mod_analysis): New function.
5929         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
5930         (determine_cst_member_ptr): Use gimple_assign_single_p.
5931         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
5932         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
5933         operands.  Don't check number of operands of a NOP_EXPR.
5934
5935 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
5936
5937         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
5938
5939 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5940
5941         PR c/40172
5942         * c-common.c (warn_logical_operator): Don't warn if one of
5943         expression isn't always true or false.
5944
5945 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
5946
5947         * config/i386/biarch32.h: New file.
5948         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
5949
5950 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
5951
5952         * config/mips/mips.md (*zero_extend<mode>_trunchi,
5953         *zero_extend<mode>_truncqi): Merge these into ...
5954         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
5955         Name the pattern following this as *zero_extendhi_truncqi.
5956
5957 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
5958
5959         PR middle-end/39301
5960         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
5961         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
5962         (output_info): Make field HOST_WIDEST_INT.
5963         (print_statistics): Use HOST_WIDEST_INT_PRINT.
5964         (dump_bitmat_statistics): Same.
5965
5966 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
5967
5968         * config.gcc (use_gcc_stdint):  Set to wrap.
5969         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
5970         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
5971         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
5972         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
5973         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
5974         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
5975         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
5976         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
5977
5978 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
5979
5980         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
5981         tune_64.
5982         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
5983         Move definitions earlier.
5984         (OPT_ARCH64, OPT_ARCH32): Define.
5985         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
5986         and tune_64.
5987
5988 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
5989
5990         PR target/40153
5991         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
5992         implies.
5993
5994 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
5995
5996         * arm.md (movdi2): Copy non-reg values to DImode registers.
5997
5998 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
5999
6000         PR target/39942
6001         * final.c (label_to_max_skip): New function.
6002         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
6003         CODE_LABEL_NUMBER <= max_labelno.
6004         * output.h (label_to_max_skip): New prototype.
6005         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
6006         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
6007         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
6008         Handle CODE_LABELs with >= 16 byte alignment or with
6009         max_skip == (1 << align) - 1.
6010         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
6011         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
6012
6013         PR target/39942
6014         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
6015         .p2align 3 if MAX_SKIP is smaller than 7.
6016         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
6017
6018 2009-05-15  Ian Lance Taylor  <iant@google.com>
6019
6020         * alias.c (struct alias_set_entry_d): Rename from struct
6021         alias_set_entry.  Change all uses.
6022         * except.c (struct call_site_record_d): Rename from struct
6023         call_site_record.  Change all uses.
6024         * except.h (struct eh_region_d): Rename from struct eh_region.
6025         Change all uses.
6026         * gcse.c (struct hash_table_d): Rename from struct hash_table.
6027         Change all uses.
6028         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
6029         ivtype_map_elt.  Change all uses.
6030         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
6031         Change all uses.
6032         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
6033         * graphite.h (struct name_tree_d): Rename from struct name_tree.
6034         Change all uses.
6035         (struct sese_d): Rename from struct sese.  Change all uses.
6036         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
6037         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
6038         * optabs.h (struct optab_d): Rename from struct optab.  Change all
6039         uses.
6040         (struct convert_optab_d): Rename from struct convert_optab.
6041         Change all uses.
6042         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
6043         ipa_opt_pass.  Change all uses.
6044         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
6045         all uses.
6046
6047         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
6048         defined as a typedef.
6049         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
6050         defined as a tag.
6051
6052 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6053
6054         PR 16302
6055         * fold-const.c (make_range,build_range_check,merge_ranges): Move
6056         declaration to...
6057         (merge_ranges): Returns bool. 
6058         * tree.h (make_range): .. to here.
6059         (build_range_check): Likewise.
6060         (merge_ranges): Likewise. Renamed from merge_ranges.
6061         * c-typeck.c (parser_build_binary_op): Update calls to
6062         warn_logical_operator.
6063         * c-common.c (warn_logical_operator): Add new warning.
6064         * c-common.h (warn_logical_operator): Update declaration.
6065         
6066 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6067
6068         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
6069         
6070 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6071
6072         * doc/install.texi: Document MPC requirements, flags etc.
6073
6074         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
6075         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
6076         Evaluate constant arguments.
6077         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
6078         (fold_builtin_1): Likewise, also evaluate constant arguments.
6079         Remove superfluous break.
6080         (do_mpc_ckconv): New.
6081         * real.h: Include mpc.h.
6082         * toplev.c (print_version): Output MPC version info if available.
6083
6084 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
6085
6086         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
6087
6088 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6089
6090         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
6091         only once.
6092
6093 2009-05-15  Jan Hubicka  <jh@suse.cz>
6094
6095         * doc/invoke.texi (max-early-inliner-iterations): New flag.
6096         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
6097         (try_inline): Fix return value.
6098         (cgraph_decide_inlining_incrementally): Honor new value.
6099         (cgraph_early_inlining): Handle indirect inlining.
6100         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
6101
6102 2009-05-15  Jan Hubicka  <jh@suse.cz>
6103
6104         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
6105         * cgraphunit.c (cgraph_finalize_function): Set it.
6106         (cgraph_expand_function): Use it.
6107
6108 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
6109
6110         * real.c (encode_ieee_half): Define.
6111         (decode_ieee_half): Define.
6112         (ieee_half_format): Define.
6113         (arm_half_format): Define.
6114         * real.h (ieee_half_format): Declare.
6115         (arm_half_format): Declare.
6116
6117 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
6118
6119         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
6120         swapped, and reversed optabs exist before trying to use them.
6121
6122 2009-05-15  Paul Brook  <paul@codesourcery.com>
6123             Sandra Loosemore  <sandra@codesourcery.com>
6124
6125         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
6126         loads.  Allow PRE_DEC.
6127         (output_move_neon): Handle PRE_DEC.
6128         (arm_print_operand): Add 'A' for neon structure loads.
6129         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
6130         * config/arm/neon.md (neon_mov): Update comment.
6131         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
6132         calls.
6133         (Um): New constraint.
6134
6135 2009-05-15  Jan Hubicka  <jh@suse.cz>
6136
6137         Revert the following patch until testsuite fallout is fixed:
6138         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
6139         * cgraph.h (struct inline_summary): New filed self_wize,
6140         size_inlining_benefit, self_time and time_inlining_benefit.
6141         (struct cgraph_global_info): Replace insns by time ans size fields.
6142         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
6143         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
6144         (ipcp_update_callgraph): Do not touch function bodies.
6145         * ipa-inline.c: Include except.h
6146         (MAX_TIME): New constant.
6147         (overall_insns): Remove
6148         (overall_size, max_benefit): New static variables.
6149         (cgraph_estimate_time_after_inlining): New function.
6150         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
6151         (cgraph_clone_inlined_nodes): Update size.
6152         (cgraph_mark_inline_edge): Update size.
6153         (cgraph_estimate_growth): Use size info.
6154         (cgraph_check_inline_limits): Check size.
6155         (cgraph_default_inline_p): Likewise.
6156         (cgraph_edge_badness): Compute badness based on benefit and size cost.
6157         (cgraph_decide_recursive_inlining): Check size.
6158         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
6159         and times.
6160         (cgraph_decide_inlining): Likewise.
6161         (cgraph_decide_inlining_incrementally): Likewise; honor
6162         PARAM_EARLY_INLINING_INSNS.
6163         (likely_eliminated_by_inlining_p): New predicate.
6164         (estimate_function_body_sizes): New function.
6165         (compute_inline_parameters): Use it.
6166         * except.c (must_not_throw_labels): New function.
6167         * except.h (must_not_throw_labels): Declare.
6168         * tree-inline.c (init_inline_once): Kill inlining_weigths
6169         * tree-ssa-structalias.c: Avoid uninitialized warning.
6170         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
6171         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
6172         (PARAM_INLINE_CALL_COST): Remove.
6173         (PARAM_EARLY_INLINING_INSNS): New.
6174
6175 2009-05-15  Richard Guenther  <rguenther@suse.de>
6176
6177         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
6178         not TODO_update_ssa.
6179
6180 2009-05-15  Richard Guenther  <rguenther@suse.de>
6181
6182         PR tree-optimization/39999
6183         * gimple.h (gimple_expr_type): Use the expression type looking
6184         through useless conversions.
6185         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
6186         (vn_nary_op_insert_stmt): Likewise.
6187         (simplify_binary_expression): Likewise.
6188
6189 2009-05-15  Richard Guenther  <rguenther@suse.de>
6190
6191         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
6192         New options, enabled by default.
6193         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
6194         Document.
6195         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
6196         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
6197         * tree-ssa-structalias.c (gate_tree_pta): New function.
6198         (pass_build_alias): Use it.
6199
6200 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
6201
6202         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
6203         recurse on an invariant address if a conversion from a pointer
6204         type to a wider integer type is involved.
6205
6206 2009-05-15  Jan Hubicka  <jh@suse.cz>
6207
6208         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
6209         * cgraph.h (struct inline_summary): New filed self_wize,
6210         size_inlining_benefit, self_time and time_inlining_benefit.
6211         (struct cgraph_global_info): Replace insns by time ans size fields.
6212         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
6213         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
6214         (ipcp_update_callgraph): Do not touch function bodies.
6215         * ipa-inline.c: Include except.h
6216         (MAX_TIME): New constant.
6217         (overall_insns): Remove
6218         (overall_size, max_benefit): New static variables.
6219         (cgraph_estimate_time_after_inlining): New function.
6220         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
6221         (cgraph_clone_inlined_nodes): Update size.
6222         (cgraph_mark_inline_edge): Update size.
6223         (cgraph_estimate_growth): Use size info.
6224         (cgraph_check_inline_limits): Check size.
6225         (cgraph_default_inline_p): Likewise.
6226         (cgraph_edge_badness): Compute badness based on benefit and size cost.
6227         (cgraph_decide_recursive_inlining): Check size.
6228         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
6229         and times.
6230         (cgraph_decide_inlining): Likewise.
6231         (cgraph_decide_inlining_incrementally): Likewise; honor
6232         PARAM_EARLY_INLINING_INSNS.
6233         (likely_eliminated_by_inlining_p): New predicate.
6234         (estimate_function_body_sizes): New function.
6235         (compute_inline_parameters): Use it.
6236         * except.c (must_not_throw_labels): New function.
6237         * except.h (must_not_throw_labels): Declare.
6238         * tree-inline.c (init_inline_once): Kill inlining_weigths
6239         * tree-ssa-structalias.c: Avoid uninitialized warning.
6240         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
6241         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
6242         (PARAM_INLINE_CALL_COST): Remove.
6243         (PARAM_EARLY_INLINING_INSNS): New.
6244         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
6245         (inline-call-cost): Remove.
6246         (early-inlining-insns): New.
6247
6248 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
6249
6250         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
6251         for bounds.
6252         (print_int_cst_bounds_in_octal_p): Likewise.
6253         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
6254         with subtypes.
6255         * dwarf2out.c (base_type_die): Likewise.
6256         (is_subrange_type): Delete.
6257         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
6258         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
6259         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
6260         if the destination type is boolean.
6261         (build_range_check): Do not special-case subtypes.
6262         (fold_sign_changed_comparison): Likewise.
6263         (fold_unary): Likewise.
6264         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
6265         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
6266         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
6267         * tree.c (subrange_type_for_debug_p): New predicate based on the
6268         former is_subrange_type.
6269         * tree.h (subrange_type_for_debug_p): Declare.
6270         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
6271         (convert_affine_scev): Remove call to above function.
6272         (chrec_convert_aggressive): Likewise.
6273         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
6274         false for conversions involving subtypes.
6275         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
6276         (vrp_val_min): Likewise.
6277         (needs_overflow_infinity): Likewise.
6278         (extract_range_from_unary_expr): Likewise.
6279
6280 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
6281
6282         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
6283         * config/frv/frv.c: Likewise.
6284         * config/s390/s390.c: Likewise.
6285         * config/sparc/sparc.h: Likewise.
6286         * config/i386/i386.h: Likewise.
6287         * config/i386/i386.c: Likewise.
6288         * config/crx/crx.c: Likewise.
6289         * config/m68hc11/m68hc11.h: Likewise.
6290         * config/iq2000/iq2000.c: Likewise.
6291         * config/mn10300/mn10300.h: Likewise.
6292         * config/mn10300/mn10300.c: Likewise.
6293         * config/m68k/m68k.c: Likewise.
6294         * config/rs6000/rs6000.c: Likewise.
6295         * config/rs6000/xcoff.h: Likewise.
6296         * config/rs6000/linux64.h: Likewise.
6297         * config/rs6000/sysv4.h: Likewise.
6298         * config/score/score3.c: Likewise.
6299         * config/score/score7.c: Likewise.
6300         * config/score/score.c: Likewise.
6301         * config/arm/arm.md: Likewise.
6302         * config/mips/mips.c: Likewise.
6303         * config/mips/mips.md: Likewise.
6304         * config/bfin/bfin.h: Likewise.
6305         * config/pa/pa.c: Likewise.
6306         * config/pa/constraints.md: Likewise.
6307
6308         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
6309         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
6310         * config/pdp11/pdp11.h: Use memory_address_p instead.
6311
6312 2009-05-14  Ian Lance Taylor  <iant@google.com>
6313
6314         * passes.c (finish_optimization_passes): Change i to int.
6315         * plugin.c (plugins_active_p): Change event to int.
6316         (dump_active_plugins): Likewise.
6317         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
6318         Add cast.
6319         * tree.c (tree_range_check_failed): Change c to unsigned int.
6320         (omp_clause_range_check_failed): Likewise.
6321         (build_common_builtin_nodes): Change mode to int.  Add cast.
6322         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
6323         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
6324
6325         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
6326         ++ or -- with a variable of enum type.
6327
6328 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
6329
6330         PR driver/40144
6331         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
6332
6333 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
6334
6335         * store-motion.c: Do not include params.h
6336         * Makefile.in: Fix dependencies for various files.
6337
6338 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
6339
6340         * auto-inc-dec.c: Fix pass description, remove apparent
6341         accidental duplication.
6342
6343 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6344
6345         PR middle-end/40147
6346         * ipa-utils.h (memory_identifier_string): Moved to ...
6347         * tree.h (memory_identifier_string): Here.  Add GTY(()).
6348
6349 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
6350
6351         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
6352         in the former documentation of...
6353         (GO_IF_LEGITIMATE_ADDRESS): ... this.
6354         * ira-conflicts.c (get_dup_num): Use address_operand.
6355         * targhooks.c (default_legitimate_address_p): New.
6356         * targhooks.h (default_legitimate_address_p): New.
6357         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
6358         Call hook.
6359         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
6360         * target.h (struct target): Add legitimate_address_p.
6361         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
6362         (TARGET_INITIALIZER): Include it.
6363
6364         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6365         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
6366         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
6367         (TARGET_LEGITIMATE_ADDRESS_P): New.
6368
6369         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6370         (REG_OK_STRICT_P): Delete.
6371         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
6372         (frv_legitimate_address_p_1): ... this.
6373         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
6374         (frv_legitimate_address_p_1): ... the renamed old
6375         frv_legitimate_address_p.
6376         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
6377         (TARGET_LEGITIMATE_ADDRESS_P): New.
6378
6379         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6380         * config/s390/s390-protos.h (legitimate_address_p): Remove.
6381         * config/s390/s390.c (legitimate_address_p): Rename to...
6382         (s390_legitimate_address_p): ... this, make static.
6383         (legitimize_address): Adjust call.
6384         (TARGET_LEGITIMATE_ADDRESS_P): New.
6385         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
6386
6387         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6388         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
6389         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
6390         (TARGET_LEGITIMATE_ADDRESS_P): New.
6391
6392         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6393         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
6394         * config/spu/spu.c (spu_legitimate_address): Rename to...
6395         (spu_legitimate_address_p): ... this, make static.
6396         (TARGET_LEGITIMATE_ADDRESS_P): New.
6397
6398         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6399         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
6400         * config/sparc/sparc.c (legitimate_address_p): Rename to...
6401         (sparc_legitimate_address_p): ... this, make static and return bool.
6402         (legitimize_address): Adjust call.
6403         (TARGET_LEGITIMATE_ADDRESS_P): New.
6404
6405         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6406         * config/i386/i386-protos.h (legitimate_address_p): Remove.
6407         * config/i386/i386.c (legitimate_address_p): Rename to...
6408         (ix86_legitimate_address_p): ... this, make static.
6409         (constant_address_p): Move after it, adjust call.
6410         (TARGET_LEGITIMATE_ADDRESS_P): New.
6411
6412         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6413         * config/avr/avr-protos.h (legitimate_address_p): Remove.
6414         * config/avr/avr.c (legitimate_address_p): Rename to...
6415         (avr_legitimate_address_p): ... this, make static.
6416         (legitimize_address): Adjust call.
6417         (TARGET_LEGITIMATE_ADDRESS_P): New.
6418
6419         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6420         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
6421         * config/crx/crx.c (crx_legitimate_address_p): Make static.
6422         (TARGET_LEGITIMATE_ADDRESS_P): New.
6423
6424         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6425         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
6426         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
6427         (TARGET_LEGITIMATE_ADDRESS_P): New.
6428
6429         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6430         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
6431         Remove.
6432         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
6433         Make static.
6434         (TARGET_LEGITIMATE_ADDRESS_P): New.
6435
6436         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6437         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
6438         Remove.
6439         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
6440         Rename to...
6441         (m68hc11_legitimate_address_p): ... this, make static.
6442         (go_if_legitimate_address_internal): Rename to...
6443         (m68hc11_legitimate_address_p_1): ... this.
6444         (legitimize_address): Adjust call.
6445         (TARGET_LEGITIMATE_ADDRESS_P): New.
6446
6447         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6448         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
6449         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
6450         (TARGET_LEGITIMATE_ADDRESS_P): New.
6451
6452         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6453         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
6454         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
6455         (mn10300_legitimate_address_p): ... this, make static.
6456         (TARGET_LEGITIMATE_ADDRESS_P): New.
6457
6458         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6459         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
6460         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
6461         (TARGET_LEGITIMATE_ADDRESS_P): New.
6462
6463         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6464         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
6465         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
6466         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6467         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
6468         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
6469         (rs6000_legitimate_address_p): ... this, make static.
6470         (TARGET_LEGITIMATE_ADDRESS_P): New.
6471         (REG_MODE_OK_FOR_BASE_P): Delete.
6472         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
6473
6474         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6475         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
6476         Delete.
6477         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
6478         static, adjust types.
6479         (TARGET_LEGITIMATE_ADDRESS_P): New.
6480
6481         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6482         * config/score/score.c (score_address_p): Rename to...
6483         (score_legitimate_address_p): ... this.
6484         (TARGET_LEGITIMATE_ADDRESS_P): New.
6485         * config/score/score3.c (score3_address_p): Rename to...
6486         (score3_legitimate_address_p): ... this.
6487         * config/score/score7.c (score7_address_p): Rename to...
6488         (score7_legitimate_address_p): ... this.
6489
6490         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
6491         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
6492         GO_IF_LEGITIMATE_ADDRESS): Delete.
6493         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
6494         thumb2_legitimate_address_p): Delete.
6495         (arm_legitimate_address_p): Rename to...
6496         (arm_legitimate_address_outer_p): ... this.
6497         * config/arm/constraints.md ("Uq"): Adjust call.
6498         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
6499         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
6500         to...
6501         (arm_legitimate_address_outer_p): ... this.
6502         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
6503         static.
6504         (TARGET_LEGITIMATE_ADDRESS_P): New.
6505
6506         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6507         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
6508         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
6509         (TARGET_LEGITIMATE_ADDRESS_P): New.
6510
6511         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6512         * config/vax/vax-protos.h (legitimate_address_p): Remove.
6513         * config/vax/vax.c (legitimate_address_p): Rename to...
6514         (vax_legitimate_address_p): ... this, make static.
6515         (TARGET_LEGITIMATE_ADDRESS_P): New.
6516
6517         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6518         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
6519         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
6520         (TARGET_LEGITIMATE_ADDRESS_P): New.
6521
6522         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6523         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
6524         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
6525         (mmix_legitimate_address_p): ... this, make static.
6526         (TARGET_LEGITIMATE_ADDRESS_P): New.
6527
6528         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
6529         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
6530         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
6531         (TARGET_LEGITIMATE_ADDRESS_P): New.
6532
6533 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
6534
6535         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
6536         of MODE_COMPLEX_INT.
6537
6538 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6539
6540         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
6541         LCT_NORMAL in function call.
6542         * mips-tdump.c (print_file_desc): Add cast to enum type.
6543         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
6544         (mark_stabs): Add casts to enum types.
6545         (parse_stabs_common): Add casts to enum types.
6546
6547 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
6548
6549         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
6550         Check for invalid values of LETTER.
6551
6552 2009-05-13  Taras Glek  <tglek@mozilla.com>
6553
6554         * attribs.c (register_attribute): moved out attribute registration
6555         into register_attribute.
6556         * doc/plugins.texi: Documented register_attribute and
6557         PLUGIN_ATTRIBUTES.
6558         * gcc-plugin.h: Added forward decl for register_attribute.
6559         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
6560         * plugin.c (register_callback, invoke_plugin_callbacks): Added
6561         PLUGIN_ATTRIBUTES boilerplate.
6562
6563 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
6564
6565         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
6566         values even in sentinel and empty entries.
6567         (ms_printf_flag_specs):  Likewise.
6568         (ms_scanf_flag_specs):  Likewise.
6569         (ms_strftime_flag_specs):  Likewise.
6570         (ms_print_char_table):  Likewise.
6571         (ms_scan_char_table):  Likewise.
6572         (ms_time_char_table):  Likewise.
6573
6574 2009-05-13  Doug Kwan  <dougkwan@google.com>
6575
6576         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
6577
6578 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
6579
6580         * config/mips/mips.md (store): Add attributes for QI and HI.
6581         Update comment.
6582         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
6583         (truncdi<mode>2): ... this new pattern.
6584
6585 2009-05-13  Brad Hards  <bradh@kde.org>
6586
6587         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
6588
6589 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
6590             Ben Elliston <bje@au.ibm.com>
6591
6592         PR middle-end/40035
6593         * dse.c (check_mem_read_rtx): Guard against width == -1.
6594
6595 2009-05-13  Michael Matz  <matz@suse.de>
6596
6597         PR middle-end/39976
6598         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
6599         (trivially_conflicts_p): New function.
6600         (insert_backedge_copies): Use it.
6601
6602 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
6603
6604         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
6605         (handle_stdc_pragma): Use new enum constant names.
6606         (handle_pragma_float_const_decimal64): Ditto.
6607
6608 2009-05-13  Ian Lance Taylor  <iant@google.com>
6609
6610         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
6611         tree.def.
6612
6613 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
6614
6615         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
6616         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
6617         multilibs.
6618         * config/m68k/m68k.h (FL_UCLINUX): Define.
6619
6620 2009-05-13  Jan Hubicka  <jh@suse.cz>
6621
6622         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
6623
6624 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
6625
6626         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
6627         unless -fschedule-insns is specified.
6628
6629 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
6630
6631         PR target/39561
6632         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
6633         TARGET_EXPAND_CBRANCHDI4.
6634         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
6635         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
6636         (cmpeqdi): Fix comment.
6637
6638 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
6639
6640         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
6641         (sh_legitimate_address_p): Likewise.
6642         * config/sh/sh.c (sh_legitimate_index_p): New.
6643         (sh_legitimate_address_p): Likewise.
6644         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
6645         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
6646         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
6647         (MAYBE_BASE_REGISTER_RTX_P): New macro.
6648         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
6649         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
6650         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
6651         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
6652         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
6653
6654 2009-05-12  Jan Hubicka  <jh@suse.cz>
6655
6656         * tree-inline.c (estimate_operator_cost): Add operands;
6657         when division happens by constant, it is cheap.
6658         (estimate_num_insns): Loads and stores are not having cost of 0;
6659         EH magic stuff is cheap; when computing runtime cost of switch,
6660         use log2 base of amount of its cases; builtin_expect has cost of 0;
6661         compute cost for moving return value of call.
6662         (init_inline_once): Initialize time_based flags.
6663         * tree-inline.h (eni_weights_d): Add time_based flag.
6664
6665 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
6666
6667         * df-core.c: Update head documentation.
6668
6669 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
6670
6671         PR bootstrap/40118
6672         * rs6000.c (rs6000_generate_compare): Use op1b instead of
6673         shadowing exisiting variable op1.
6674
6675 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
6676
6677         PR target/37179
6678         * config/i386/driver-i386.c (processor_signatures): New enum.
6679         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
6680         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
6681         processor signature to detect geode processor.
6682
6683 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
6684
6685         Revert:
6686
6687         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
6688
6689         * optabs.c (prepare_cmp_insn): Temporarily disable test that
6690         causes spurious differences between trunk and cond-optab branch.
6691
6692 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
6693
6694         * dojump.c (compare_from_rtx): Delete.
6695         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
6696         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
6697         if the comparison does not satisfy the predicate; test predicates for
6698         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
6699         further if one existing pattern fails.
6700         * expr.h (compare_from_rtx): Delete.
6701         (prepare_operand): Declare it.
6702         * optabs.c: Change "lib call" to "libcall" throughout.
6703         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
6704         HAVE_conditional_trap, emit_cmp_insn): Delete.
6705         (can_compare_p): Delete cmp_optab case.
6706         (prepare_float_lib_cmp): Return an rtx and a machine mode.
6707         Accept other parameters by value.
6708         (prepare_operand): Make non-static.
6709         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
6710         other parameters by value.  Try to widen operands here based on
6711         an optab_methods argument and looking at cbranch_optab.
6712         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
6713         loop.  Use cbranch_optab directly.
6714         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
6715         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
6716         assertion.
6717         (emit_conditional_move, emit_conditional_add): Inline what's needed
6718         of compare_from_rtx, using new prepare_cmp_insn for the rest.
6719         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
6720         with COMPARE.  Move cmov_optab and cstore_optab above
6721         with cbranch_optab, move cmp_optab down with ucmp_optab,
6722         remove tst_otpab.  Do not initialize trap_rtx.
6723         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
6724         for trap code.  Do not check HAVE_conditional_trap.  Use
6725         prepare_cmp_insn.  Accept no predicate for operand 3.
6726         * optabs.h (OTI_cmp): Mark as used only for libcalls.
6727         (OTI_ctrap, ctrap_optab): New.
6728         (tst_optab): Delete.
6729         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
6730         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
6731         with lookup of ctrap_optab.
6732         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
6733         Delete.
6734         (ctrap_optab): New.
6735
6736         * combine.c (combine_simplify_rtx, simplify_set): Do not
6737         special case comparing against zero for cc0 machines.
6738         * simplify-rtx.c (simplify_binary_operation_1): Never remove
6739         COMPARE on cc0 machines.
6740         (simplify_relational_operation): Return a new expression when
6741         a COMPARE could be removed.
6742         * final.c (final_scan_insn): Compare cc_status values
6743         against LHS of a (compare FOO (const_int 0)) cc0 source.
6744         Also check if cc_status.value is the full compare.
6745
6746         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
6747         (cstoreMM4): Document.
6748         (conditional_trap): Document ctrapMM4 instead.
6749         (sync_compare_and_swapMM): Refer to cbranchcc4.
6750         (Dependent Patterns): Eliminate obsolete information referring to
6751         the old jump optimization phase.
6752         (Canonicalization): Include cbranchcc4 case, omit canonicalization
6753         of compares with 0 on cc0 machines.
6754         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
6755         avoiding references to cc0.  Remove text about storing operands
6756         in cmpMM.
6757         * doc/tm.texi (Condition Codes): Include blurb on different
6758         condition code representations, separate into subsections for
6759         CC0, MODE_CC and conditional execution.
6760
6761         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
6762         alpha_emit_setcc): Accept operands and a machine mode.
6763         * config/alpha/alpha.c (alpha_emit_conditional_branch):
6764         Get code/op0/op1 from operands, use machine mode argument
6765         instead of alpha_compare.fp_p.  Emit the branch here.
6766         (alpha_emit_setcc): Likewise, and return boolean.
6767         (alpha_emit_conditional_move): Likewise.  Assert that
6768         cmp_op_mode == cmp_mode, and simplify accordingly.
6769         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
6770         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
6771         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
6772         Delete.
6773         (stack probe test): Use cbranchdi4.
6774         * config/alpha/predicates.md (alpha_cbranch_operator): New.
6775
6776         * config/arc/arc.c (gen_compare_reg): Do not emit cmp. 
6777         * config/arc/arc.h (movsicc, movsfcc): Use it.
6778         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
6779         (cbranchsi4, cstoresi4): New.
6780         (cmpsi, bCC and sCC expanders): Remove. 
6781
6782         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
6783         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
6784         * config/arm/predicates.md (arm_comparison_operator): Only include
6785         floating-point operators if there is a hardware floating-point unit.
6786         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
6787         deferring to cbranch_cc and cstore_cc respectively.
6788         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
6789         cbranch_cc, cstore_cc): New.
6790         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
6791         arm_compare_op1.
6792         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
6793
6794         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
6795         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
6796         as an argument.
6797         (adjust_insn_length): Adjust calls.
6798         (avr_reorg): Handle (compare (foo) (const_int 0)).
6799         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
6800         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
6801         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
6802         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
6803         (bCC): Remove.
6804         (cbranchqi4, cbranchhi4, cbranchsi4): New.
6805         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
6806
6807         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
6808         (cbranchsi4, cstorebi4, cstoresi4): New.
6809         (movbisi): This insn is duplicate, split it to zero_extend.
6810         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
6811         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
6812         (bfin_optimize_loop): Use cbranch expander.
6813         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
6814         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
6815         (bfin_bimode_comparison_operator): ... this.
6816         (bfin_direct_comparison_operator): New.
6817  
6818         * config/cris/cris.c (cris_normal_notice_update_cc): Look
6819         inside (compare FOO (const_int 0)).
6820         (cris_rtx_costs): Handle ZERO_EXTRACT.
6821         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
6822         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
6823         (*tstdi_v32): Delete.
6824         (*cmpdi_non_v32): Add M alternative for operand 1.
6825         (cmpsi, cmp<mode>): Make private.
6826         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
6827         with COMPARE.
6828         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
6829
6830         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
6831         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
6832         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
6833         (cc_reg_operand): New.
6834         (any_cond): Delete.
6835         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
6836         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
6837         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
6838         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
6839         crx_expand_scond): Delete.
6840
6841         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
6842         (cbranchsi4): New.
6843         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
6844         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
6845
6846         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
6847         cstoresi4, cstoresf4, cstoredf4): New.
6848         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
6849         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
6850         Receive the entire operands array.
6851         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
6852         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
6853         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
6854         Get test/op0/op1 from the operands array.
6855         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
6856
6857         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
6858         (h8300_expand_store): New.
6859         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
6860         (const_int 0)).
6861         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
6862         (h8300_expand_store): New.
6863         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
6864         or do not try to produce (set (cc0) REG).
6865         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
6866         change a compare into a move to a scratch register.  Disable some
6867         peepholes when comparing with zero.
6868         (tstsi, tsthi, tstsi, cmpqi): Make private.
6869         (cmphi): Delete.
6870         (bCC, sCC): Delete.
6871         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
6872         cstoresi4): New.
6873
6874         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
6875         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
6876         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
6877         (ix86_emit_i387_log1p): Use cbranchxf2.
6878         (ix86_expand_setcc): Return void.
6879         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
6880         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
6881         cmp<MODEF>, cmpcc): Remove.
6882         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
6883         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
6884         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
6885         (sCC and bCC expanders): Remove.
6886         (stack_protect_test): Use cbranchcc4.
6887
6888         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
6889         Delete.
6890         (ia64_expand_compare): Accept three rtx by reference and return void.
6891         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
6892         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
6893         from *expr.  Update *expr with the BImode comparison to do.
6894         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
6895         cmptf, bCC, sCC, conditional_trap): Delete.
6896         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4, 
6897         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
6898         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
6899         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
6900         * config/ia64/predicates.md (ia64_cbranch_operator): New.
6901
6902         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
6903         type of last argument.
6904         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
6905         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
6906         use machine mode argument instead of branch_type.  Remove dead
6907         code for floating-point comparisons.
6908         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
6909         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
6910         Remove.
6911         (cbranchsi4, cstoresi4): New.
6912         * config/iq2000/predicates.md (reg_or_const_operand): New.
6913
6914         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
6915         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
6916         (b<code>_op): Rewrite to...
6917         (bcc_op): ... this, using match_operator.
6918         (s<code>_op): Rewrite to...
6919         (scc_op): ... this, using match_operator.
6920         (s<code>_24_op): Rewrite to...
6921         (scc_op_24): ... this, using match_operator.
6922         (s<code>_<mode>): Rewrite to...
6923         (cstore<mode>4): ... this, using match_operator.
6924         (s<code>_<mode>_24): Rewrite to...
6925         (cstore<mode>4_24): ... this, using match_operator.
6926         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
6927         m32c_unpend_compare, m32c_expand_scc): Delete.
6928         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
6929         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
6930         (m32c_expand_movcc): Change NE to EQ if necessary.
6931         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
6932
6933         * config/m32r/m32r-protos.h (gen_cond_store): New.
6934         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
6935         (gen_cond_store): New, from sCC patterns.
6936         (m32r_expand_block_move): Use cbranchsi4.
6937         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
6938         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
6939         (cbranchsi4, cstoresi4): New.
6940         
6941         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
6942         Delete.
6943         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
6944         (m68hc11_notice_update_cc): Look into a compare with 0.
6945         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
6946         Delete.
6947         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
6948         cmphi, cmpqi, bCC): Delete.
6949         (cbranchsi4, cbranchhi4, cbranchqi4): New.
6950         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
6951         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
6952         sets with COMPARE.
6953
6954         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
6955         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
6956         * config/m68k/constraints.md (H): New.
6957         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
6958         the define_insn below.
6959         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
6960         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
6961         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
6962         patterns): Wrap RHS with COMPARE.
6963         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
6964         (*cmpdi_internal): Name this pattern.
6965         (cmpdi): Change to define_insn.
6966         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
6967         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
6968         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
6969         predicate.
6970         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
6971         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
6972         (conditional_trap): Change to...
6973         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
6974         (*conditional_trap): Use the ordered_comparison_operator and
6975         const1_operand predicates.
6976         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
6977         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
6978         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
6979         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
6980
6981         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
6982         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
6983         (mcore_gen_compare): New. 
6984         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
6985         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
6986         (mcore_gen_compare): ... this.
6987         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
6988         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
6989         (stack probe pattern): Use cbranchsi4.
6990
6991         * config/mips/predicates.md (mips_cstore_operator): New.
6992         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
6993         * config/mips/mips.md (any_cond): Delete.
6994         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
6995         always succeed.
6996         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
6997         fixuns_truncsfdi2): Use cbranch patterns.
6998         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete. 
6999         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
7000         Adjust call to mips_expand_conditional_branch.
7001         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
7002         cstore<GPR:mode>4.
7003         * config/mips/mips-protos.h (mips_expand_conditional_branch,
7004         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
7005         * config/mips/mips.c (cmp_operands): Delete.
7006         (mips_emit_compare): Get comparison operands from *op0/*op1.
7007         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
7008         that it succeeds.  Use op0/op1 instead of cmp_operands.
7009         (mips_expand_conditional_branch, mips_expand_conditional_move,
7010         mips_expand_conditional_trap): Likewise.
7011         (mips_block_move_loop): Use cbranch patterns. 
7012         * config/mips/mips.h (cmp_operands): Delete.
7013
7014         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
7015         (mmix_gen_compare_reg): Just return a register in the right CC mode.
7016         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
7017         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
7018         (*cmpcc_folded): Rename to...
7019         (*cmpdi_folded): this.
7020         (*cmpcc): Rename to...
7021         (*cmps): ... this.
7022         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
7023         (bCC): Remove.
7024         (cbranchdi4): New.
7025         (cbranchdf4): New.  Handle invalid comparisons here.
7026         * config/mmix/predicates.md (float_comparison_operator): New.
7027
7028         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
7029         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
7030         * config/mn10300/mn10300.md (tst): Delete.
7031         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
7032         Name these patterns and wrap RHS in a compare.
7033         (*cmpsi): Make this pattern private.  Include tst.
7034         (*cmpsf): Make this pattern private.
7035         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
7036         (compare with zero peepholes): Likewise.
7037         (bCC): Remove.
7038         (cbranchsi4, cbranchsf4): New.
7039         (casesi): Use cbranchsi4.
7040
7041         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
7042         hppa_branch_type): Delete.
7043         (return_addr_rtx): Use cbranchsi4.
7044         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
7045         Emit CCFPmode comparison here.
7046         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
7047         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
7048         hppa_branch_type): Delete.
7049         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
7050         (movsicc, movdicc): Remove references to hppa_compare_op0,
7051         hppa_compare_op1 and compare_from_rtx.
7052         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
7053         (casesi): Use cbranchsi4.
7054
7055         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
7056         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
7057         * config/pdp11/pdp11.md (register_or_const0_operand): New.
7058         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
7059         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
7060         (bCC): Delete.
7061         (cbranchdf4, cbranchhi4, cbranchqi4): New.
7062         (*branch, *branch_inverted): New.
7063
7064         * config/picochip/picochip.md (cbranchhi4): Use
7065         ordered_comparison_operator.
7066         (cmphi, bCC): Remove.
7067
7068         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
7069         (trap_comparison_operator): Delete.
7070         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
7071         rs6000_emit_cbranch): Accept mode and operands.
7072         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
7073         rs6000_compare_fp_p): Delete.   
7074         (rs6000_generate_compare): Accept mode and comparison.  Extract code
7075         and op0/op1 from there.  Replace references to rs6000_compare_op0
7076         and rs6000_compare_op1.
7077         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
7078         extract result from passed operands.
7079         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
7080         extract loc from passed operands.
7081         (rs6000_emit_cmove): Likewise.
7082         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
7083         rs6000_compare_fp_p): Delete.
7084         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
7085         (cbranch<GPR>4, cbranch<FP>4): New.
7086         (cstore<mode>4): New.  Consolidate here all choices about when to use
7087         portable or specialized sCC sequences.
7088         (stack_protect_test): Use cbranchsi4.
7089         (conditional_trap): Replace with ctrap<GPR>4.
7090         (conditional trap insn): Replace trap_comparison_operator with
7091         ordered_comparison_operator. 
7092
7093         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
7094         (s390_emit_prologue): Use ctrap.
7095         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
7096         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
7097         New predicates replacing...
7098         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
7099         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
7100         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
7101         (add<mode>cc): Do not use s390_compare_op0/op1.
7102         (s<code>): Change to...
7103         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
7104         (seq): Change to...
7105         (cstorecc4): ... this.  Handle EQ or NE equally.
7106         (*sne): Un-privatize for use in cstorecc4.
7107         (b<code>): Change to...
7108         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
7109         (conditional_trap): Replace with...
7110         (ctrap<GPR>4, ctrap<FP>4): ... these.
7111         (stack_protect): Use cbranchcc4.
7112
7113         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
7114         * config/score/score-protos.h (score_gen_cmp): Delete.
7115         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
7116         (score_block_move-loop): Use cbranchsi4.
7117         * config/score/score.md (cbranchsi4): New.
7118         (cmpsi, bCC): Delete.
7119         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
7120         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
7121         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
7122         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
7123         * config/score/score3.h (score3_gen_cmp): Delete.
7124         * config/score/score7.h (score7_gen_cmp): Delete.
7125
7126         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
7127         (sh_emit_scc_to_t): ... this.  Return void.
7128         (from_compare): Rename to...
7129         (sh_emit_compare_and_branch): ... this.
7130         (sh_emit_compare_and_set): New.
7131         (sh_expand_t_scc): Accept operands.
7132         * config/sh/predicates.md (sh_float_comparison_operator): New.
7133         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
7134         (prepare_scc_operands): Rename to...
7135         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
7136         arguments.
7137         (sh_emit_cheap_store_flag): New.
7138         (sh_emit_set_t_insn): New.
7139         (from_compare): Rename to...
7140         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
7141         handling of TARGET_SH2E floating point to avoid recursive call.
7142         Generate branch here.
7143         (sh_emit_compare_and_set): New.
7144         (sh_expand_t_scc): Get op0/op1 from arguments.
7145         (sh_emit_cheap_store_flag): New.
7146         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
7147         cases.
7148         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
7149         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
7150         (movsicc, movdicc): Do nothing when it recreated operands from
7151         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
7152         prepare_scc_operands (now sh_emit_scc_to_t).
7153         (udivdi3): Use cstoresi4.
7154         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
7155         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
7156         (cbranchint4_media, cbranchfp4_media): New.
7157         (casesi): Use cbranchdi4.
7158         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
7159         Delete.
7160         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
7161         (movnegt): Remove second operand.
7162         (cbranchsf4, cbranchdf4): New.
7163         (stack_protect): Use cbranchdi4/cbranchsi4.
7164
7165         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
7166         (gen_compare_reg): Accept comparison, extract part of it to...
7167         (gen_compare_reg_1): ... this. 
7168         (gen_compare_operator): Delete.
7169         (gen_v9_scc): Accept separate destination, comparison code and arms.
7170         Do not use sparc_compare_op0/sparc_compare_op1.
7171         (emit_scc_insn, emit_conditional_branch_insn): New.
7172         (emit_v9_brxx): Make static.  Remove useless assertion.
7173         (sparc_emit_float_lib_cmp): Return RTL instead of calling
7174         emit_cmp_insn.
7175         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
7176         * config/sparc/sparc-protos.h (gen_compare_reg,
7177         sparc_emit_float_lib_cmp): Adjust prototype.
7178         (emit_scc_insn, emit_conditional_branch_insn): New.
7179         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
7180         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
7181         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
7182         iterators to the top.
7183         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
7184         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
7185         snedi_special_trunc): Delete.
7186         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
7187         and snedi_special_trunc.
7188         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
7189         cbranchdi4, cbranch<F:mode>4): New.
7190         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
7191         here.  Use gen_compare_reg instead of gen_compare_operator.
7192         (conditional_trap): Replace with...
7193         (ctrapsi4, ctrapdi4): ... this.
7194         (stack_protect_test): Use cbranchcc4.
7195
7196         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
7197         argument to rtx.
7198         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove. 
7199         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
7200         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
7201         from operands[0] or operands[3] depending on is_set.
7202         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
7203         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
7204         cmpdf, bCC), sCC: Remove.
7205         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4, 
7206         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
7207         cstoredf4): New.
7208         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
7209         spu_emit_branch_or_set.
7210
7211         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
7212         Add two arguments.
7213         * config/stormy16/stormy16.h (xstormy16_compare_op0,
7214         xstormy16_compare_op1): Delete.
7215         * config/stormy16/stormy16.c (xstormy16_compare_op0,
7216         xstormy16_compare_op1): Delete. 
7217         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
7218         Adjust calls.
7219         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
7220         (cmphi, cmpsi, bCC): Remove.
7221
7222         * config/v850/v850.md (tstsi, cmpsi): Fold into...
7223         (*cmpsi): ... this one.
7224         (cbranchsi4, cstoresi4): New.
7225         (bCC expanders): Delete.
7226         (sCC insns): Fold into...
7227         (*setcc): ... this one.
7228         (casesi): Do not use gen_cmpsi and gen_bgtu. 
7229         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
7230         (movsicc): Simplify.
7231         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
7232
7233         * config/vax/vax-protos.h (cond_name): New.
7234         (vax_output_conditional_branch): Remove.
7235         * config/vax/vax.c (cond_name): New.
7236         (vax_output_conditional_branch): Remove.
7237         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
7238         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
7239         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
7240         (bit<VAXint>): Wrap source with (compare).
7241         (b<code> and following unnamed pattern): Rename to *branch and
7242         *branch_reversed.  Change macroization to match_operator.
7243         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
7244
7245         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
7246         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
7247         Change last argument to machine_mode.
7248         (xtensa_expand_scc): Add machine_mode argument.
7249         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
7250         (gen_conditional_move, xtensa_expand_conditional_branch,
7251         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
7252         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
7253         Adjust operand numbers.
7254         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
7255         Delete.
7256         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
7257         (cmpsi, cmpsf, b<code>, s<code>): Delete.
7258         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
7259
7260 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
7261
7262         * optabs.c (prepare_cmp_insn): Temporarily disable test that
7263         causes spurious differences between trunk and cond-optab branch.
7264
7265 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
7266
7267         PR target/37137
7268         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
7269
7270 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
7271
7272         * tree.c (iterative_hash_pointer): Delete.
7273         (iterative_hash_expr): Short-circuit handling of NULL pointer.
7274         Hash UIDs and versions of SSA names.  Don't special-case built-in
7275         function declarations.
7276
7277 2009-05-11  Ian Lance Taylor  <iant@google.com>
7278
7279         PR bootstrap/40103
7280         * graphite.c: Force -Wc++-compat to only be a warning before
7281         #including "cloog/cloog.h".
7282
7283 2009-05-11  Martin Jambor  <mjambor@suse.cz>
7284
7285         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
7286         
7287 2009-05-11  Jan Hubicka  <jh@suse.cz>
7288
7289         * tree-ssa-loop-ivcanon.c: Include target.h
7290         (struct loop_size): new structure.
7291         (constant_after_peeling): New predicate.
7292         (tree_estimate_loop_size): New function.
7293         (estimated_unrolled_size): Rewrite for new estimates.
7294         (try_unroll_loop_completely): Use new estimates.
7295         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
7296
7297 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7298
7299         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
7300         libcpp interface change.
7301         (spu_macro_to_expand): Likewise.
7302
7303 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
7304
7305         PR tree-optimization/40026
7306         * gimplify.c (gimplify_init_constructor): Change initial conditional
7307         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
7308         optimize_compound_literals_in_ctor.
7309
7310 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
7311
7312         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
7313         New devices.
7314         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
7315
7316 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7317
7318         * tree-vect-data-refs.c (vect_analyze_group_access): Use
7319         HOST_WIDE_INT for gap.
7320
7321 2009-05-11  Ira Rosen  <irar@il.ibm.com>
7322
7323         PR tree-optimization/40074
7324         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
7325         account in group size and step comparison.
7326
7327 2009-05-11  Richard Guenther  <rguenther@suse.de>
7328
7329         * passes.c (init_optimization_passes): Strip now incorrect comment.
7330         (execute_function_todo): Do not set PROP_alias.
7331         * tree-pass.h (PROP_alias): Remove.
7332         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
7333         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
7334         * tree-nrv.c (pass_return_slot): Likewise.
7335         * tree-object-size.c (pass_object_sizes): Likewise.
7336         * tree-ssa-dom.c (pass_dominator): Likewise.
7337         (pass_phi_only_cprop): Likewise.
7338         * tree-ssa-dse.c (pass_dse): Likewise.
7339         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
7340         (pass_cselim): Likewise.
7341         * tree-ssa-pre.c (pass_pre): Likewise.
7342         (pass_fre): Likewise.
7343         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
7344         * tree-ssa-sink.c (pass_sink_code): Likewise.
7345         * tree-stdarg.c (pass_stdarg): Likewise.
7346         * tree-tailcall.c (pass_tail_calls): Likewise.
7347         * tree-vrp.c (pass_vrp): Likewise.
7348
7349 2009-05-10  Ian Lance Taylor  <iant@google.com>
7350
7351         * basic-block.h (enum profile_status): Break out of struct
7352         control_flow_graph.
7353         * cgraph.h (struct inline_summary): Break out of struct
7354         cgraph_local_info.
7355         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
7356         of struct cgraph_order_sort.
7357         * combine.c (enum undo_kind): New enum, broken out of struct undo.
7358         * cse.c (struct branch_path): Break out of struct
7359         cse_basic_block_data.
7360         * except.h (enum eh_region_type): Break out of struct eh_region.
7361         * gcc.c (enum add_del): Break out of struct modify_target.
7362         * genrecog.c (enum decision_type): Break out of struct decision_test.
7363         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
7364         ggc_pch_data.
7365         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
7366         * regmove.c (enum match_use): New enum, broken out of struct match.
7367         * sched-int.h (enum post_call_group): New enum, broken out of
7368         struct deps.
7369         (struct deps_reg): Break out of struct deps.
7370         * target.h (struct asm_int_op): Break out of struct gcc_target.
7371         * tree-eh.c (struct goto_queue_node): Break out of struct
7372         leh_tf_state.
7373         * tree-inline.h (enum copy_body_cge_which): Break out of
7374         copy_body_data.
7375         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
7376
7377         * c-decl.c (in_struct, struct_types): New static variables.
7378         (pushtag): Add loc parameter.  Change all callers.
7379         (lookup_tag): Add ploc parameter.  Change all callers.
7380         (check_compound_literal_type): New function.
7381         (parser_xref_tag): Add loc parameter.  Change all callers.  If
7382         -Wc++-compat, warn about struct/union/enum types defined within a
7383         struct or union.
7384         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
7385         and loc parameters.  Change all callers.  Change error calls to
7386         error_at, using loc.  For a redefinition, if the location of the
7387         original definition is known, report it.  Set in_struct and
7388         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
7389         (finish_struct): Add new parameters enclosing_in_struct and
7390         enclosing_struct_types.  Change all callers.  Set
7391         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
7392         in the struct.  If in a struct, add this struct to struct_types.
7393         (start_enum): Add loc parameter.  Change all callers.  Use
7394         error_at for errors, using loc.  For a redefinition, if the
7395         location of the original definition is known, report it.  If in a
7396         struct, add this enum type to struct_types.  If -Wc++-compat warn
7397         if in sizeof, typeof, or alignof.
7398         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
7399         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
7400         (c_parser_enum_specifier): Get enum location for start_enum.
7401         (c_parser_struct_or_union_specifier): Get struct location for
7402         start_struct.  Save in_struct and struct_types status between
7403         start_struct and finish_struct.
7404         (c_parser_cast_expression): Get location of cast.
7405         (c_parser_alignof_expression): Get location of type.
7406         (c_parser_postfix_expression): Likewise.
7407         (c_parser_postfix_expression_after_paren_type): Add type_loc
7408         parameter.  Change all callers.  Call check_compound_literal_type.
7409         Use type_loc for error about variable size type.
7410         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
7411         of an enum constant from an enum type defined in a struct or union.
7412         (c_cast_expr): Add loc parameter.  Change all callers.  If
7413         -Wc++-compat, warn about defining a type in a cast.
7414         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
7415         (start_enum, start_struct, finish_struct): Update declarations.
7416         (parser_xref_tag, c_cast_expr): Update declarations.
7417         (check_compound_literal_type): Declare.
7418
7419 2009-05-11  Ben Elliston  <bje@au.ibm.com>
7420
7421         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
7422         for recent libcpp interface change.
7423         (rs6000_macro_to_expand): Likewise.
7424
7425 2009-05-10  Michael Matz  <matz@suse.de>
7426
7427         PR target/40031
7428         * config/arm/arm.c (require_pic_register): Emit on entry edge,
7429         not at entry of function.
7430
7431 2009-05-10  Richard Guenther  <rguenther@suse.de>
7432
7433         PR tree-optimization/40081
7434         Revert
7435         * tree-sra.c (instantiate_element): Instantiate scalar replacements
7436         using the main variant of the element type.  Do not fiddle with
7437         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
7438
7439         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
7440         structs with volatile fields.
7441
7442 2009-05-10  Jan Hubicka  <jh@suse.cz>
7443
7444         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
7445         (estimate_move_cost): Assert that it does not get called for
7446         VOID_TYPE_P.
7447         (estimate_num_insns): Skip VOID types in argument handling.
7448         (optimize_inline_calls): Delete unreachable blocks and verify that
7449         callgraph is valid.
7450
7451 2009-05-10  Jan Hubicka  <jh@suse.cz>
7452
7453         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
7454         * cgraph.c (cgraph_mark_address_taken_node): New function.
7455         (dump_cgraph_node): Dump new flag.
7456         * cgraph.h (struct cgraph_node): Add address_taken.
7457         (cgraph_mark_address_taken_node): New function.
7458         * ipa.c (cgraph_postorder): Prioritize functions with address taken
7459         since new direct calls can be born.
7460
7461 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
7462
7463         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
7464         tok->val.node.node.
7465
7466 2009-05-10  Jan Hubicka  <jh@suse.cz>
7467
7468         PR middle-end/40084
7469         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
7470         argument; rewrite.
7471         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
7472         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
7473         * tree-inline.c (copy_bb): Set frequency correctly.
7474         (fold_marked_statements): Update call to
7475         cgraph_update_edges_for_call_stmt.
7476
7477 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
7478
7479         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
7480         identifiers in diagnostics.
7481         * config/arm/arm.c (arm_handle_fndecl_attribute,
7482         arm_handle_isr_attribute): Likewise.
7483         * config/avr/avr.c (avr_handle_progmem_attribute,
7484         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
7485         * config/bfin/bfin.c (handle_int_attribute,
7486         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
7487         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
7488         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
7489         Likewise.
7490         * config/darwin.c (darwin_handle_kext_attribute,
7491         darwin_handle_weak_import_attribute): Likewise.
7492         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
7493         h8300_handle_eightbit_data_attribute,
7494         h8300_handle_tiny_data_attribute): Likewise.
7495         * config/i386/i386.c (ix86_handle_cconv_attribute,
7496         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
7497         * config/i386/winnt.c (ix86_handle_shared_attribute,
7498         ix86_handle_selectany_attribute): Likewise.
7499         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
7500         * config/m32c/m32c.c (function_vector_handler): Likewise.
7501         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
7502         m68hc11_handle_fntype_attribute): Likewise.
7503         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
7504         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
7505         * config/mips/mips.c (mips_insert_attributes,
7506         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
7507         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
7508         rs6000_handle_struct_attribute): Likewise.
7509         * config/sh/sh.c (sh_insert_attributes,
7510         sh_handle_resbank_handler_attribute,
7511         sh_handle_interrupt_handler_attribute,
7512         sh2a_handle_function_vector_handler_attribute,
7513         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
7514         Likewise.
7515         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
7516         * config/spu/spu.c (spu_handle_fndecl_attribute,
7517         spu_handle_vector_attribute): Likewise.
7518         * config/stormy16/stormy16.c
7519         (xstormy16_handle_interrupt_attribute): Likewise.
7520         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
7521         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
7522
7523 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
7524
7525         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
7526         (pp_translate_identifiers): New.
7527         (pp_identifier): Only conditionally translate identifier to locale
7528         character set.
7529         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
7530         (pp_base_tree_identifier): Only conditionally translate identifier
7531         to locale character set.
7532         * c-pretty-print.c (M_): Define.
7533         (pp_c_type_specifier, pp_c_primary_expression): Mark English
7534         fragments for conditional translation with M_.
7535         * tree-pretty-print.c (maybe_init_pretty_print): Disable
7536         identifier translation.
7537
7538 2009-05-10  Richard Guenther  <rguenther@suse.de>
7539
7540         PR tree-optimization/40081
7541         * tree-sra.c (instantiate_element): Instantiate scalar replacements
7542         using the main variant of the element type.  Do not fiddle with
7543         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
7544
7545 2009-05-09  Jan Hubicka  <jh@suse.cz>
7546
7547         PR middle-end/40080
7548         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
7549         indirect calls; verify cgraph afterwards.
7550
7551 2009-05-09  Jan Hubicka  <jh@suse.cz>
7552
7553         PR bootstrap/40082
7554         * ipa.c (update_inlined_to_pointer): New function.
7555         (cgraph_remove_unreachable_nodes): Use it.
7556
7557 2009-05-09  Jan Hubicka  <jh@suse.cz>
7558
7559         * tree-eh.c (struct leh_state): Remove prev_try.
7560         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
7561         not track prev_try.
7562         * except.c (gen_eh_region_cleanup, duplicate_eh_regions, 
7563         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
7564         remove_eh_handler_and_replace, foreach_reachable_handler,
7565         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
7566         * except.h (struct eh_region): Remove eh_region_u_cleanup.
7567         (gen_eh_region_cleanup): Update prototype.
7568
7569 2009-05-09  Jan Hubicka  <jh@suse.cz>
7570
7571         PR middle-end/40043
7572         * except.c (copy_eh_region): Always set prev_try.
7573         (redirect_eh_edge_to_label): Find outer try.
7574         (foreach_reachable_handler): When looking for prev try
7575         handle case where previous try is not going to be taken.
7576
7577 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
7578
7579         PR tree-optimization/40049
7580         * tree-vect-stmts.c (vectorizable_operation): If the machine has
7581         only vector/vector shifts, convert the type of the constant to the
7582         appropriate type to avoid building incorrect trees, which
7583         eventually have problems with garbage collection.
7584
7585 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
7586
7587         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
7588         -1 for complex floating-point types if honoring signed zeros.
7589
7590 2009-05-08  Jan Hubicka  <jh@suse.cz>
7591
7592         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
7593         argument; handle correctly when profile is absent.
7594         (build_cgraph_edges): Update.
7595         (rebuild_cgraph_edges): Update.
7596         * cgraph.c: Do not include varray.h.
7597         (cgraph_set_call_stmt_including_clones): New function.
7598         (cgraph_create_edge_including_clones): Likewise
7599         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
7600         (cgraph_update_edges_for_call_stmt): Handle clones.
7601         (cgraph_remove_node): Handle clone tree.
7602         (cgraph_remove_node_and_inline_clones): New function.
7603         (dump_cgraph_node): Dump clone tree.
7604         (cgraph_clone_node): Handle clone tree.
7605         (clone_function_name): Bring here from tree-inline.c.
7606         (cgraph_create_virtual_clone): New function.
7607         * cgraph.h (ipa_replace_map): Move here from ipa.h.
7608         (cgraph_clone_info): New function.
7609         (strut cgraph_node): Add clone_info and new clone tree pointers.
7610         (cgraph_remove_node_and_inline_clones,
7611         cgraph_set_call_stmt_including_clones,
7612         cgraph_create_edge_including_clones,
7613         cgraph_create_virtual_clone): Declare.
7614         (cgraph_function_versioning): Use VEC argument.
7615         (compute_call_stmt_bb_frequency): Update prototype.
7616         (cgraph_materialize_all_clones): New function.
7617         * ipa-cp.c (ipcp_update_cloned_node): Remove.
7618         (ipcp_create_replace_map): Update to VECtors.
7619         (ipcp_update_callgraph): Use virtual clones.
7620         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
7621         (ipcp_update_profiling): Do not update local profiling.
7622         (ipcp_insert_stage): Use VECtors and virtual clones.
7623         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
7624         (clone_of_p): New function.
7625         (cgraph_preserve_function_body_p): Use clone tree.
7626         (cgraph_optimize): Materialize clones.
7627         (cgraph_function_versioning): Update for VECtors.
7628         (save_inline_function_body): Use clone tree.
7629         (cgraph_materialize_clone): New function.
7630         (cgraph_materialize_all_clones): Likewise.
7631         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
7632         * ipa.c: Include gimple.h.
7633         (cgraph_remove_unreachable_nodes): Use clone tree.
7634         * ipa-prop.c (ipa_note_param_call): Update call to
7635         compute_call_stmt_bb_frequencycall.
7636         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
7637         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
7638         (copy_bb): Handle updating of clone tree; add new edge when new call
7639         appears.
7640         (expand_call_inline): Be strict about every call having edge.
7641         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
7642         (delete_unreachable_blocks_update_callgraph): New function.
7643         (tree_function_versioning): Use VECtors; always remove unreachable
7644         blocks and fold conditionals.
7645         * tree-inline.h: Do not include varray.h.
7646         (tree_function_versioning): Remove.
7647         * Makefile.in (GTFILES): Remove tree-inline.c
7648         * passes.c (do_per_function): Do only functions having body.
7649         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
7650         tree.
7651
7652 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7653             Andrew Morrow  <acm@google.com>
7654
7655         PR c/36892
7656         * c-common.c (c_common_attribute_table): Permit deprecated
7657         attribute to take an optional argument.
7658         (handle_deprecated_attribute): If the optional argument to
7659         __attribute__((deprecated)) is not a string ignore the attribute
7660         and emit a warning.
7661
7662         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
7663         * c-typeck.c (build_component_ref): Likewise.
7664         (build_external_ref): Likewise.
7665
7666         * toplev.c (warn_deprecated_use): Add an attribute argument.
7667         Emit the message associated with __attribute__((deprecated)).
7668
7669         * toplev.h (warn_deprecated_use): Updated.
7670
7671         * doc/extend.texi: Document new optional parameter to
7672         __attribute__((deprecated))
7673
7674 2009-05-08  Michael Eager <eager@eagercon.com>
7675
7676         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
7677         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
7678
7679 2009-05-08  Richard Guenther  <rguenther@suse.de>
7680
7681         PR tree-optimization/40062
7682         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
7683         Avoid exponential behavior.
7684
7685 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
7686
7687         PR rtl-optimization/33928
7688         PR 26854
7689         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
7690         process_uses, build_single_def_use_links): New.
7691         (update_df): Update use_def_ref.
7692         (forward_propagate_into): Use get_def_for_use instead of use-def
7693         chains.
7694         (fwprop_init): Call build_single_def_use_links and let it initialize
7695         dataflow.
7696         (fwprop_done): Free use_def_ref.
7697         (fwprop_addr): Eliminate duplicate call to df_set_flags.
7698         * df-problems.c (df_rd_simulate_artificial_defs_at_top, 
7699         df_rd_simulate_one_insn): New.
7700         (df_rd_bb_local_compute_process_def): Update head comment.
7701         (df_chain_create_bb): Use the new RD simulation functions.
7702         * df.h (df_rd_simulate_artificial_defs_at_top, 
7703         df_rd_simulate_one_insn): New.
7704         * opts.c (decode_options): Enable fwprop at -O1.
7705         * doc/invoke.texi (-fforward-propagate): Document this.
7706
7707 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
7708
7709         PR c/24581
7710         * c-typeck.c (build_binary_op): Handle arithmetic between one real
7711         and one complex operand specially.
7712         * tree-complex.c (some_nonzerop): Do not identify a real value as
7713         zero if flag_signed_zeros.
7714
7715 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
7716
7717         PR rtl-optimization/33928
7718         * loop-invariant.c (record_use): Fix && vs. || mishap.
7719
7720 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
7721
7722         PR rtl-optimization/33928
7723         * loop-invariant.c (struct use): Add addr_use_p.
7724         (struct def): Add n_addr_uses.
7725         (struct invariant): Add cheap_address.
7726         (create_new_invariant): Set cheap_address.
7727         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
7728         (record_uses): Pass df_ref to record_use.
7729         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
7730         used only as such.
7731
7732 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
7733
7734         * config/sh/sh.c: Do not include c-pragma.h.
7735
7736 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7737
7738         * config/spu/spu.c: Remove include of c-common.h.
7739
7740 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
7741
7742         PR c/39037
7743         * c-common.h (mark_valid_location_for_stdc_pragma,
7744         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
7745         clear_float_const_decimal64, float_const_decimal64_p): New.
7746         * c.opt (Wunsuffixed-float-constants): New.
7747         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
7748         unsuffixed float constant, handle new warning.
7749         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
7750         * c-decl.c (c_scope): New flag float_const_decimal64.
7751         (set_float_const_decimal64, clear_float_const_decimal64,
7752         float_const_decimal64_p): New.
7753         (push_scope): Set new flag.
7754         * c-parser.c (c_parser_translation_unit): Mark when it's valid
7755         to use STDC pragmas.
7756         (c_parser_external_declaration): Ditto.
7757         (c_parser_compound_statement_nostart): Ditto.
7758         * c-pragma.c (valid_location_for_stdc_pragma,
7759         mark_valid_location_for_stdc_pragma,
7760         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
7761         handle_pragma_float_const_decimal64): New.
7762         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
7763         * cp/semantics.c (valid_location_for_stdc_pragma_p,
7764         set_float_const_decimal64, clear_float_const_decimal64,
7765         float_const_decimal64_p): New dummy functions.
7766         * doc/extend.texi (Decimal Float): Remove statement that the
7767         pragma, and suffix for double constants, are not supported.
7768         * doc/invoke.texi (Warning Options): List new option.
7769         (-Wunsuffixed-float-constants): New.
7770
7771 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
7772
7773         * config/i386/i386.c: Do not include c-common.h.
7774
7775 2009-05-07  Mark Heffernan  <meheff@google.com>
7776
7777         * doc/invoke.texi (Debugging Options): Document change of debugging
7778         dump location.
7779         * opts.c (decode_options): Make dump_base_name relative to
7780         aux_base_name directory.
7781
7782 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
7783
7784         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
7785         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
7786
7787 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
7788
7789         * Makefile.in (install-plugin): Simplify a bit.
7790
7791 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
7792
7793         * Makefile.in (OBJS-common): Add regcprop.o.
7794         (regcprop.o): New.
7795         * timevar.def (TV_CPROP_REGISTERS): New.
7796         * regrename.c (regrename_optimize): Return 0.
7797         (rest_of_handle_regrename): Delete.
7798         (pass_rename_registers): Point to regrename_optimize.
7799         (struct value_data_entry, struct value_data, 
7800         kill_value_one_regno, kill_value_regno, kill_value,
7801         set_value_regno, init_value_data, kill_clobbered_value,
7802         kill_set_value, kill_autoinc_value, copy_value,
7803         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
7804         replace_oldest_value_reg, replace_oldest_value_addr,
7805         replace_oldest_value_mem, copyprop_hardreg_forward_1,
7806         debug_value_data, validate_value_data): Move...
7807         * regcprop.c: ... here.
7808         (rest_of_handle_cprop): Delete.
7809         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
7810
7811 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
7812
7813         PR middle-end/40057
7814         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
7815         GEN_INT for 1 << bitnum.
7816         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
7817         build_int_cst_type.
7818
7819 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
7820
7821         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
7822         Remove wrong description of "nand" operation.
7823
7824 2009-05-06  Richard Guenther  <rguenther@suse.de>
7825             Adam Nemet  <anemet@caviumnetworks.com>
7826
7827         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
7828         comment.  Add that if LHS is not a gimple register, then RHS1 has
7829         to be a single object (GIMPLE_SINGLE_RHS).
7830
7831 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
7832
7833         * expr.c (get_def_for_expr): Move it up in the file.
7834         (store_field): When expanding a bit-field store, look at the
7835         defining gimple stmt for the masking conversion.
7836
7837 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
7838
7839         PR middle-end/39986
7840         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
7841         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
7842         32-bit memcpy into long.
7843
7844 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
7845
7846         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
7847         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
7848         new_reg_loc_descr.
7849         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
7850         instead of appending DW_OP_deref*.
7851
7852 2009-05-06  Michael Matz  <matz@suse.de>
7853
7854         PR middle-end/40021
7855         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
7856         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
7857
7858 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
7859
7860         * Makefile.in (install-plugin): Fix srcdir handling.
7861
7862 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
7863
7864         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
7865         when processing for not_regs_needed bitmap.
7866         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
7867         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while 
7868         handling it for rhs. 
7869
7870 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
7871
7872         * config/i386/i386.md (unnamed inc/dec peephole): Use
7873         optimize_insn_for_size_p instead of optimize_size.
7874         * config/i386/predicates.md (incdec_operand): Likewise.
7875         (aligned_operand): Likewise.
7876         * config/i386/sse.md (divv8sf3): Likewise.
7877         (sqrtv8sf2): Likewise.
7878
7879 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
7880
7881         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
7882
7883         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
7884
7885 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
7886
7887         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
7888         ssemodesuffixf2c with avxmodesuffixf2c.
7889
7890 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
7891
7892         PR c/40032
7893         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
7894
7895 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
7896
7897         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
7898         (struct tree_base): Adjust spacing for 8 bit boundaries.
7899         (struct tree_decl_common): Add decl_by_reference_flag bit.
7900         (DECL_BY_REFERENCE): Adjust.
7901         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
7902         print DECL_BY_REFERENCE bit.
7903         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
7904         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
7905         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
7906         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
7907         unconditionally.
7908
7909         PR middle-end/39666
7910         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
7911         range of the type, but default label is missing, add it with one
7912         of the existing labels instead of adding a new label for it.
7913
7914 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
7915
7916         * dwarf.h: Remove.
7917
7918 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
7919
7920         * Makefile.in (enable_plugin, plugin_includedir): New.
7921         (install): Depend on install-plugin.
7922         (PLUGIN_HEADERS): New.
7923         (install-plugin): New.
7924         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
7925
7926 2009-05-05  Richard Guenther  <rguenther@suse.de>
7927
7928         PR tree-optimization/40022
7929         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
7930         the only vuse.
7931         (phivn_valid_p): Fix tuplification error, simplify.
7932         (phiprop_insert_phi): Add dumps.
7933         (propagate_with_phi): Simplify.
7934
7935 2009-05-05  Richard Guenther  <rguenther@suse.de>
7936
7937         PR middle-end/40023
7938         * builtins.c (gimplify_va_arg_expr): Properly build the address.
7939
7940 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
7941
7942         * tree.h (strip_float_extensions): Remove duplicate declaration.
7943         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
7944         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
7945         block_ultimate_origin): Rearrange the declarations line to match the
7946         comment that indicates the .c file which the functions are defined.
7947         (dwarf2out_*, set_decl_rtl): Add comment.
7948         (get_base_address): Adjust comment.
7949         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
7950         declarations line and add comment.
7951         (is_builtin_name): Add blank after function name, for clarity.
7952
7953 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
7954
7955         * attribs.c (decl_attributes): Use %qE for identifiers in
7956         diagnostics.
7957         * cgraphunit.c (verify_cgraph_node): Translate function names to
7958         locale character set in diagnostics.
7959         * coverage.c (get_coverage_counts): Use %qE for identifiers in
7960         diagnostics.
7961         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
7962         Document that functions are named in UTF-8.
7963         * expr.c (expand_expr_real_1): Translate function names to locale
7964         character set in diagnostics.
7965         * gimplify.c (omp_notice_variable, omp_is_private,
7966         gimplify_scan_omp_clauses): Use %qE for identifiers in
7967         diagnostics.
7968         * langhooks.c (lhd_print_error_function): Translate function names
7969         to locale character set.
7970         * langhooks.h (decl_printable_name): Document that return value is
7971         in internal character set.
7972         * stmt.c: Include pretty-print.h
7973         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
7974         diagnostics.
7975         (resolve_operand_name_1): Translate named operand name to locale
7976         character set.
7977         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
7978         diagnostics.
7979         * toplev.c (announce_function): Translate function names to locale
7980         character set.
7981         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
7982         (default_tree_printer): Use pp_identifier or translate identifiers
7983         to locale character set.  Mark "<anonymous>" for translation.
7984         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
7985         for identifiers in diagnostics.
7986         * tree.c (handle_dll_attribute): Use %qE for identifiers in
7987         diagnostics.
7988         * varasm.c (output_constructor): Use %qE for identifiers in
7989         diagnostics.
7990
7991 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
7992
7993         * configure.ac: use ` ` instead of $()
7994         * configure: Regenerate.
7995
7996 2009-05-05  Ben Elliston  <bje@au.ibm.com>
7997
7998         * config/pa/linux-atomic.c: Eliminate conditional include of
7999         errno.h on non-LP64 systems to simplify build requirements.
8000
8001 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
8002
8003         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
8004         diagnostics.
8005         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
8006         and pass value to identifier_to_locale.
8007         (warn_variable_length_array): Make name a tree.
8008         (grokdeclarator): Separate diagnostic texts for named and unnamed
8009         declarators.  Use %qE for named declarators.
8010         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
8011         diagnostics.
8012         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
8013         identifiers in diagnostics.
8014         * c-typeck.c (push_member_name, start_init): Pass identifiers to
8015         identifier_to_locale.  Mark "anonymous" strings for translation.
8016
8017 2009-05-04  Michael Eager <eager@eagercon.com>
8018
8019         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
8020         address for DImode/DFmode only if double-precision FP regs.
8021
8022 2009-05-04  Michael Eager <eager@eagercon.com>
8023
8024         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
8025         TARGET_SINGLE_FLOAT check.
8026
8027 2009-05-04  Michael Eager <eager@eagercon.com>
8028
8029         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
8030
8031 2009-05-04  Michael Eager <eager@eagercon.com>
8032
8033         * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
8034         * config/rs6000/t-xilinx: New
8035
8036 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
8037
8038         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
8039         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
8040         * gcc/explow.c (memory_address): Use target hook.
8041         * gcc/targhooks.c (default_legitimize_address): New.
8042         * gcc/targhooks.h (default_legitimize_address): New.
8043         * gcc/target.h (legitimize_address): New.
8044         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
8045         (TARGET_INITIALIZER): Include it.
8046         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
8047
8048         * config/bfin/bfin-protos.h (legitimize_address): Remove.
8049         * config/bfin/bfin.c (legitimize_address): Remove.
8050         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
8051         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
8052         Remove.
8053         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
8054         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
8055
8056         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
8057         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
8058         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
8059         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
8060         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
8061         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
8062         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
8063         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
8064         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
8065         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
8066         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
8067         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
8068         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
8069         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
8070         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
8071         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
8072         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
8073         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
8074         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
8075         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
8076         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
8077         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
8078         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
8079
8080         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
8081         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
8082         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
8083         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
8084         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
8085         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
8086         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
8087         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
8088         (thumb_legitimize_address): Delete.
8089         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
8090         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
8091         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
8092         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
8093         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
8094         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
8095         Delete.
8096         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
8097         Delete.
8098
8099         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
8100         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
8101         * config/m32r/m32r.c (m32r_legitimize_address): New.
8102         * config/m68k/m68k.c (m68k_legitimize_address): New.
8103         * config/score/score.c (score_legitimize_address): Standardize.
8104         * config/score/score3.c (score3_legitimize_address): Standardize.
8105         * config/score/score3.h (score3_legitimize_address): Adjust.
8106         * config/score/score7.c (score7_legitimize_address): Standardize.
8107         * config/score/score7.h (score7_legitimize_address): Adjust.
8108         * config/sh/sh.c (sh_legitimize_address): New.
8109         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
8110
8111         * gcc/config/s390/s390.c (legitimize_address): Rename to...
8112         (s390_legitimize_address): ... this.
8113         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
8114         (sparc_legitimize_address): ... this.
8115         * gcc/config/i386/i386.c (legitimize_address): Rename to...
8116         (ix86_legitimize_address): ... this.
8117         * gcc/config/avr/avr.c (legitimize_address): Rename to...
8118         (avr_legitimize_address): ... this.
8119         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
8120         (mn10300_legitimize_address): ... this.
8121         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
8122         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
8123         (alpha_expand_mov): Adjust call.
8124
8125         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
8126         * config/spu/spu.c (spu_legitimize_address): Likewise.
8127         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
8128         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
8129
8130 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
8131
8132         * intl.c (locale_encoding, locale_utf8): New.
8133         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
8134         * intl.h (locale_encoding, locale_utf8): Declare.
8135         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
8136         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
8137         New.
8138         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
8139         argument.
8140         (pp_tree_identifier): Define to call pp_base_tree_identifier.
8141         (pp_base_tree_identifier): Declare as function.
8142         (identifier_to_locale): Declare.
8143         * Makefile.in (pretty-print.o): Update dependencies.
8144         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
8145
8146 2009-05-04  Richard Guenther  <rguenther@suse.de>
8147
8148         PR middle-end/40015
8149         * builtins.c (fold_builtin_memory_op): Do not decay to element
8150         type if the size matches the whole array.
8151
8152 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
8153
8154         * expmed.c (synth_mult): When trying out a shift, pass the result
8155         of a signed shift.
8156
8157 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
8158
8159         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
8160         (shiftsub1_cost): New.
8161         (init_expmed): Compute shiftsub1_cost.
8162         (synth_mult): Optimize multiplications by constants of the form
8163         -(2^^m-1) for some constant positive integer m.
8164
8165 2009-05-03  Richard Guenther  <rguenther@suse.de>
8166
8167         PR c/39983
8168         * c-typeck.c (array_to_pointer_conversion): Do not built
8169         ADDR_EXPRs of arrays of pointer-to-element type.
8170         * c-gimplify.c (c_gimplify_expr): Revert change fixing
8171         up wrong ADDR_EXPRs after-the-fact.
8172         * c-common.c (strict_aliasing_warning): Strip pointer
8173         conversions for obtaining the original type.
8174         * builtins.c (fold_builtin_memset): Handle array types.
8175         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
8176         and array types
8177
8178 2009-05-03  Richard Guenther  <rguenther@suse.de>
8179
8180         PR middle-end/23329
8181         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
8182         Do not lose casts from array types with unknown extent to array
8183         types with known extent.
8184         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
8185         alias set compatibility.
8186
8187 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8188
8189         * flags.h (extra_warnings): Delete.
8190         * toplev.c (process_options): Handle Wuninitialized here.
8191         * opts.c (extra_warnings): Delete.
8192         (set_Wextra): Delete.
8193         (common_handle_option): -Wextra can be handled automatically.
8194         * c-opts.c (c_common_handle_option): Delete obsolete code.
8195         (c_common_post_options): Simplify comment.
8196         * common.opt (W): Add Var.
8197         (Wextra): Add Var.
8198         (Wuninitialized): Initialize to -1.
8199
8200 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
8201             Richard Guenther  <rguenther@suse.de>
8202
8203         * expr.c (get_def_for_expr): New function.
8204         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
8205         SSA rather than trees.
8206         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
8207         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
8208         
8209 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
8210
8211         * c-common.c (reswords): Add _Imaginary.
8212         * c-common.c (enum rid): Add RID_IMAGINARY.
8213
8214 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
8215
8216         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
8217         Patch by Richard Guenther.
8218
8219 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
8220
8221         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
8222         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
8223         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
8224         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
8225         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
8226         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
8227         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
8228         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
8229         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
8230         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
8231         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
8232         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
8233         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
8234         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
8235         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
8236         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
8237         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
8238         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
8239
8240 2009-05-02  Richard Guenther  <rguenther@suse.de>
8241
8242         PR tree-optimization/39940
8243         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
8244         doing so.
8245
8246 2009-05-02  Richard Guenther  <rguenther@suse.de>
8247
8248         PR middle-end/40001
8249         * tree-ssa.c (execute_update_addresses_taken): Properly check
8250         if we can mark a variable DECL_GIMPLE_REG_P.
8251         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
8252         back to the end of the function.
8253         (is_gimple_reg_type): Remove complex type special casing.
8254         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
8255         if not optimizing.
8256
8257 2009-05-02  Ben Elliston  <bje@au.ibm.com>
8258
8259         * doc/collect2.texi (Collect2): Document search path behaviour
8260         when configured with --with-ld.
8261
8262 2009-05-02  Jan Hubicka  <jh@suse.cz>
8263
8264         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
8265         parameter; update callers.
8266         (coalesce_cost_edge): EH edges are costier because they needs
8267         splitting even if not critical and even more costier when there are
8268         multiple EH predecestors.
8269
8270 2009-05-02  Jan Hubicka  <jh@suse.cz>
8271
8272         * except.c (remove_eh_handler_and_replace): Handle updating after
8273         removing TRY blocks.
8274
8275 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
8276
8277         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
8278
8279 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
8280
8281         * varasm.c: Do not include c-pragma.h.
8282         * attribs.c: Do not incude c-common.h.
8283
8284 2009-05-01  Michael Matz  <matz@suse.de>
8285
8286         * calls.c (initialize_argument_information): Handle SSA names like
8287         decls with a non MEM_P DECL_RTL.
8288
8289 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
8290
8291         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
8292         * ipa-utils.c: Likewise.
8293         * ipa-type-escape.c: Likewise.
8294         * cgraphunit.c Do not include c-common.h.
8295         * ipa-pure-const.c: Likewise.
8296         * tree-if-conv.c: Likewise.
8297         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
8298         * ipa-struct-reorg.c: Likewise.
8299         * tree-nomudflap.c: Likewise.
8300         * tree-ssa-structalias.c: Likewise.
8301
8302 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
8303
8304         * store-motion.c: Many cleanups to make this pass a first-class
8305         citizen instead of an appendix to gcse load motion.  Add TODO list
8306         to make this pass faster/cleaner/better.
8307
8308         (struct ls_expr): Post gcse.c-split cleanups.
8309         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
8310         "stores" field to "avail_stores".
8311         (pre_ldst_mems): Rename to store_motion_mems.
8312         (pre_ldst_table): Rename to store_motion_mems_table.
8313         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
8314         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
8315         (ldst_entry): Rename to st_expr_entry, update users.
8316         (free_ldst_entry): Rename to free_st_expr_entry, update users.
8317         (free_ldst_mems): Rename to free_store_motion_mems, update users.
8318         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
8319         update caller.
8320         (first_ls_expr): Rename to first_st_expr, update users.
8321         (next_ls_expr): Rename to next_st_expr, update users.
8322         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
8323         fields properly for store motion instead of names inherited from load
8324         motion in gcse.c.
8325         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
8326         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
8327         are done with it.
8328
8329         (ae_kill): Rename to st_kill, update users.
8330         (ae_gen): Rename to st_avloc, update users.
8331         (transp): Rename to st_transp, update users.
8332         (pre_insert_map): Rename to st_insert_map, update users.
8333         (pre_delete_map): Rename to st_delete_map, update users.
8334         (insert_store, build_store_vectors, free_store_memory,
8335         one_store_motion_pass): Update for abovementioned changes.
8336
8337         (gcse_subst_count, gcse_create_count): Remove.
8338         (one_store_motion_pass): New statistics counters "n_stores_deleted"
8339         and "n_stores_created", local variables.
8340
8341         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
8342         use for_each_rtx.
8343
8344         (regvec, compute_store_table_current_insn): Remove.
8345         (reg_set_info, reg_clear_last_set): Remove.
8346         (compute_store_table): Use DF caches instead of local dataflow
8347         solvers.
8348
8349 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
8350
8351         * c-objc-common.c (c_tree_printer): Print identifiers with
8352         pp_identifier, not pp_string.  Mark "({anonymous})" for
8353         translation.
8354         * c-pretty-print.c (pp_c_ws_string): New.
8355         (pp_c_cv_qualifier, pp_c_type_specifier,
8356         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
8357         pp_c_storage_class_specifier, pp_c_function_specifier,
8358         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
8359         pp_c_primary_expression, pp_c_postfix_expression,
8360         pp_c_unary_expression, pp_c_shift_expression,
8361         pp_c_relational_expression, pp_c_equality_expression,
8362         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
8363         use pp_string and pp_c_ws_string in place of pp_identifier and
8364         pp_c_identifier for non-identifiers.  Mark English strings for
8365         translation.
8366         * c-pretty-print.h (pp_c_ws_string): Declare.
8367
8368 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
8369             Roland McGrath <roland@redhat.com>
8370
8371         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
8372         (ENABLE_LD_BUILDID): New configuration option.
8373         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
8374         (LINK_BUILDID_SPEC): New macro.
8375         (init_spec): If defined, prepend it between LINK_EH_SPEC and
8376         link_spec.
8377         * doc/install.texi: Document --enable-linker-build-id option.
8378         * configure: Rebuild.
8379         * config.in: Rebuild.
8380
8381 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
8382
8383         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
8384         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
8385         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
8386         MIPS_GP_SAVE_AREA_SIZE.
8387         * config/mips/mips.c (struct mips_frame_info): Update comment
8388         before arg_pointer_offset and hard_frame_pointer_offset.
8389         (mips_compute_frame_info): Update diagram before function: to
8390         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
8391         indicate the position of frame_pointer_rtx with -fstack-protector and
8392         to show args_size.  Don't allocate cprestore area for leaf functions
8393         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
8394         cprestore_size.
8395         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
8396
8397 2009-04-30  Michael Matz  <matz@suse.de>
8398
8399         PR tree-optimization/39955
8400         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
8401
8402 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
8403
8404         * ira.c (setup_cover_and_important_classes):  Use safe macro
8405         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
8406         directly.
8407         * genpreds.c (write_tm_preds_h):  Output suitable definition of
8408         REG_CLASS_FOR_CONSTRAINT.
8409
8410 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
8411
8412         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
8413         instead of an int.
8414         * bitmap.c (bitmap_descriptor): Likewise.
8415         * ggc-common.c (loc_descriptor): Likewise.
8416         * varray.c (varray_descriptor): Likewise.
8417         * vec.c (vec_descriptor): Likewise.
8418
8419 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
8420
8421         * Makefile.in (dce.o): Add $(EXCEPT_H).
8422         * dce.c: Include except.h and delete redundant vector definitions.
8423         (deletable_insn_p): Return false for non-call insns that can throw
8424         if DF is running.
8425
8426 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
8427
8428         * gcse.c (ae_gen): Remove.
8429         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
8430         and make non-static function to make it available in store-motion.c.
8431         Update call sites with search-and-replace.
8432         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
8433         extract_mentioned_regs, extract_mentioned_regs_helper,
8434         find_moveable_store, compute_store_table, load_kills_store, find_loads,
8435         store_killed_in_insn, store_killed_after, store_killed_before,
8436         build_store_vectors, insert_insn_start_basic_block, insert-store,
8437         remove_reachable_equiv_notes, replace_store_insn, delete_store,
8438         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
8439         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
8440         * store-motion.c: ...new file.  Also copy data structures from gcse.c
8441         and clean up to remove parts not used by store motion.
8442         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
8443         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
8444
8445 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8446
8447         PR target/38571
8448         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
8449         when optimizing for size.
8450
8451 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
8452
8453         * gcse.c (gcse_constant_p): Fix typo in last change.
8454
8455 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
8456
8457         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
8458
8459 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
8460
8461         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
8462
8463 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
8464
8465         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
8466         CONST_HIGH_PART result.
8467
8468 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
8469
8470         * config/avr/avr.c (initial_elimination_offset): Rename to
8471         avr_initial_elimination_offset.
8472         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
8473         change return type to bool.
8474         (avr_can_eliminate): New function.
8475         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
8476         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
8477         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
8478         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
8479         avr_initial_elimination_offset.
8480         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
8481         (avr_initial_elimination_offset): Define.
8482
8483 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
8484             Steven Bosscher  <steven@gcc.gnu.org>
8485
8486         PR rtl-optimization/39938
8487         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
8488         * cfgrtl.c: Include insn-attr.h.
8489         (rest_of_pass_free_cfg): New function.
8490         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
8491         * resource.c (init_resource_info): Remove call to df_analyze.
8492
8493 2009-04-29  Richard Guenther  <rguenther@suse.de>
8494
8495         PR target/39943
8496         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
8497         allow conversion to signed integers.
8498
8499 2009-04-29  Richard Guenther  <rguenther@suse.de>
8500
8501         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
8502         shifts of floating point vectors if the shift amount is
8503         a constant multiple of the element size.
8504
8505 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
8506             Michael Matz  <matz@suse.de>
8507
8508         PR middle-end/39927
8509         PR bootstrap/39929
8510         * tree-outof-ssa.c (emit_partition_copy): New function.
8511         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
8512         insert_part_to_rtx_on_edge): Perform the partition base var
8513         copy using emit_partition_copy.
8514         (insert_value_copy_on_edge): Convert constants to the right mode.
8515         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
8516         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
8517
8518 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
8519
8520         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
8521         scan backwards to try to find a constant to initialize it.
8522
8523         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
8524         insn before the loop_end instruction, don't look past labels.
8525
8526 2009-04-29  Richard Guenther  <rguenther@suse.de>
8527
8528         PR middle-end/39937
8529         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
8530         loose type conversions.
8531         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
8532         stmts only if there are no uses of its definition.
8533
8534 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
8535
8536         * config/bfin/bfin.h (splitting_loops): Declare.
8537         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
8538         Reorder bit definitions to be ascending.
8539         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
8540         * config/bfin/bfin.c (splitting_loops): New variable.
8541         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
8542         (struct loop_info): Remove members INIT and LOOP_INIT.
8543         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
8544         the LSETUP sequence.  Allow LC to be loaded from any register, but
8545         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
8546         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
8547         set to 1.
8548         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
8549         of reload_completed.
8550
8551         From Jie Zhang:
8552         * config/bfin/bfin.md (movsi_insn): Refine constraints.
8553
8554 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
8555
8556         * Makefile.in (PLUGIN_VERSION_H): New.
8557         (OBJS-common): Remove plugin-version.o.
8558         (plugin.o): Depend on (PLUGIN_VERSION_H).
8559         (plugin-version.o): Remove.
8560         * configure: Regenerate
8561         * configure.ac: Create plugin-version.h.
8562         * gcc-plugin.h (plugin_gcc_version): Remove.
8563         (plugin_default_version_check): Change signature.
8564         * plugin-version.c: Remove.
8565         * plugin.c: Include plugin-version.h.
8566         (str_plugin_gcc_version_name): Remove.
8567         (try_init_one_plugin): Pass gcc version to plugin_init.
8568         (plugin_default_version_check): Both gcc and plugin versions are now
8569         arguments.
8570
8571 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
8572         
8573         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
8574         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
8575         Remove special case testing for last insn of inner loops. Don't fail
8576         if the loop ends with a jump, emit an extra nop instead.
8577
8578         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
8579         DREGS rather than comparing directly.  Remove code that tries to
8580         account for latencies.
8581
8582 2009-04-29  Richard Guenther  <rguenther@suse.de>
8583
8584         PR tree-optimization/39941
8585         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
8586         eliminating an indirect call.
8587
8588 2009-04-29  Richard Guenther  <rguenther@suse.de>
8589
8590         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
8591         parameter.  Allow invariants as base if !require_lvalue.
8592         (verify_gimple_assign_single): Adjust.
8593
8594 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
8595
8596         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
8597         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
8598         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
8599         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
8600         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
8601         a VEC_SELECT.
8602         * config/bfin/bfin.c (bfin_expand_builtin,
8603         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
8604
8605 2009-04-28  Richard Guenther  <rguenther@suse.de>
8606
8607         * tree-vect-loop.c (get_initial_def_for_induction): Use
8608         correct types for pointer increment.
8609
8610 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8611
8612         * toplev.c (print_version): Update GMP version string calculation.
8613
8614 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
8615
8616         PR rtl-optimization/39938
8617         * resource.c (init_resource_info): Add call to df_analyze.
8618
8619 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
8620
8621         * config/alpha/alpha.md (usegp): Cast the result of
8622         alpha_find_lo_sum_using_gp to enum attr_usegp.
8623         * config/alpha/alpha.c (override_options): Remove end-of-structure
8624         marker element from cpu_table.  Use array size of cpu_table to handle
8625         -mcpu and -mtune options.
8626         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
8627
8628 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
8629
8630         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
8631         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
8632         tune_32 and tune_64.
8633         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
8634         support on PowerPC.
8635         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
8636         * config/rs6000/option-defaults.h: ... here.  New file.
8637         (OPT_64, OPT_32): Define.
8638         (MASK_64BIT): Define to 0 if not already defined.
8639         (OPT_ARCH64, OPT_ARCH32): Define.
8640         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
8641         and tune_64.
8642
8643 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8644
8645         * config/arm/arm.c (arm_override_options): Emit error on using
8646         fpa with AAPCS.
8647
8648 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
8649
8650         PR rtl-optimization/39914
8651         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
8652         registers for allocnos created from user-defined variables only
8653         when not optimizing.
8654
8655 2009-04-28  Richard Guenther  <rguenther@suse.de>
8656
8657         PR middle-end/39937
8658         * fold-const.c (fold_binary): Use distribute_real_division only
8659         on float types.
8660
8661 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
8662
8663         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
8664         add hpux-stdint.h to tm_file.
8665         (hppa[12]*-*-hpux11*): Ditto.
8666         (ia64*-*-hpux*): Ditto.
8667         * config/hpux-stdint.h: New.
8668         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
8669         __STDC_EXT__ for all compiles.
8670         * config/pa/pa-hpux.h: Ditto.
8671         * config/pa/pa-hpux10.h: Ditto.
8672         * config/pa/pa-hpux11.h: Ditto.
8673
8674 2009-04-28  Catherine Moore  <clm@codesourcery.com>
8675
8676         * debug.h (set_name): Add comment.
8677
8678 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
8679
8680         PR target/39929
8681         * config/darwin.c (machopic_gen_offset): Check
8682         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
8683         * config/arm/arm.c (require_pic_register): Likewise.
8684
8685 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
8686
8687         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
8688         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
8689         m32c_promote_prototypes): Delete.
8690
8691 2009-04-28  Michael Matz  <matz@suse.de>
8692
8693         PR middle-end/39922
8694         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
8695         constants.
8696
8697 2009-04-28  Richard Guenther  <rguenther@suse.de>
8698
8699         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
8700
8701 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8702
8703         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
8704         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
8705         * config/arm/arm-tune.md: Regenerate.
8706
8707 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
8708
8709         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
8710         block if there are complex incoming edges.
8711         (sel_merge_blocks): Remove useless assert.
8712         (sel_redirect_edge_and_branch): Check that edge was redirected.
8713         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
8714         (sel_find_rgns): Delete declaration.
8715         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
8716         the region when it is not a preheader.
8717
8718 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
8719
8720         PR c/39323
8721         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
8722
8723 2009-04-28  Richard Guenther  <rguenther@suse.de>
8724
8725         * tree.h (SSA_NAME_VALUE): Remove.
8726         (struct tree_ssa_name): Remove value_handle member.
8727         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
8728         array for jump threading.
8729         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
8730         SSA_NAME_VALUEs.
8731         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
8732         * tree-flow.h (threadedge_initialize_values): Declare.
8733         (threadedge_finalize_values): Likewise.
8734         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
8735         (SSA_NAME_VALUE): Define.
8736         (threadedge_initialize_values): New function.
8737         (threadedge_finalize_values): Likewise.
8738         * tree-ssa-dom.c (ssa_name_values): New global variable.
8739         (SSA_NAME_VALUE): Define.
8740         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
8741
8742 2009-04-28  Ira Rosen  <irar@il.ibm.com>
8743
8744         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
8745         Use REPORT_VECTORIZED_LOCATIONS instead 
8746         REPORT_VECTORIZED_LOOPS.
8747         * tree-vectorizer.c (vect_verbosity_level): Make static.
8748         (vect_loop_location): Rename to vect_location.
8749         (vect_set_verbosity_level): Update comment.
8750         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
8751         and vect_location.
8752         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
8753         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
8754         instead REPORT_UNVECTORIZED_LOOPS.
8755         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
8756         and vect_loop_def to vect_external_def and vect_internal_def.
8757         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
8758         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and 
8759         REPORT_UNVECTORIZED_LOCATIONS.
8760         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
8761         and vect_used_in_loop and to vect_unused_in_scope and 
8762         vect_used_in_scope.
8763         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
8764         (vect_verbosity_level): Remove declaration.
8765         (vect_analyze_operations): Likewise.
8766         (vect_analyze_stmt): Declare.
8767         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
8768         REPORT_UNVECTORIZED_LOCATIONS.
8769         (vect_get_loop_niters): Fix indentation.
8770         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
8771         (vect_analyze_loop_operations): New function.
8772         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
8773         vect_analyze_operations.
8774         (vect_is_simple_reduction): Use new names.
8775         (vectorizable_live_operation, vect_transform_loop): Likewise.
8776         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
8777         to specify whether the data references can be a part of interleaving
8778         chain.
8779         (vect_analyze_data_ref_dependence): Use new names.
8780         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
8781         (vect_create_addr_base_for_vector_ref): Remove redundant code.
8782         * tree-vect-patterns.c (widened_name_p): Use new names.
8783         (vect_recog_dot_prod_pattern): Likewise.
8784         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
8785         (process_use, vect_mark_stmts_to_be_vectorized, 
8786         vect_model_simple_cost, vect_model_store_cost,
8787         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
8788         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
8789         vectorizable_operation, vectorizable_type_demotion,
8790         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
8791         vectorizable_condition): Likewise.
8792         (vect_analyze_operations): Split into vect_analyze_loop_operations
8793         and ...
8794         (vect_analyze_stmt): ... new function.
8795         (new_stmt_vec_info): Use new names.
8796         (vect_is_simple_use): Use new names and fix comment.
8797         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
8798         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
8799
8800 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
8801
8802         PR target/39911
8803         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
8804         and integer modes for x87 operands.  Do not ICE for unsupported size,
8805         generate error instead.  Generate error for unsupported operand types.
8806         ['z']: Do not handle HImode memory operands specially.  Warning
8807         for floating-point operands.  Fallthru to 'Z' for unsupported operand
8808         types.  Do not ICE for unsupported size, generate error instead.
8809         (output_387_binary_op): Use %Z to output operands.
8810         (output_fp_compare): Ditto.
8811         (output_387_reg_move): Ditto.
8812
8813 2009-04-28  Ben Elliston  <bje@au.ibm.com>
8814
8815         PR c++/35652
8816         Revert:
8817
8818         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8819
8820         * builtins.c (c_strlen): Do not warn here.
8821         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
8822         * c-common.c (pointer_int_sum): Take an explicit location.
8823         Warn about offsets out of bounds.
8824         * c-common.h (pointer_int_sum): Adjust declaration.
8825
8826 2009-04-27  Ian Lance Taylor  <iant@google.com>
8827
8828         * collect2.c (is_ctor_dtor): Change type of ret field in struct
8829         names to symkind.
8830         * dce.c (run_fast_df_dce): Change type of old_flags to int.
8831         * df-core.c (df_set_flags): Change return type to int.  Change
8832         type of old_flags to int.
8833         (df_clear_flags): Likewise.
8834         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
8835         (df_get_conditional_uses): Likewise.
8836         * df.h (df_set_flags, df_clear_flags): Update declarations.
8837         * dwarf2out.c (struct indirect_string_node): Change type of form
8838         field to enum dwarf_form.
8839         (AT_string_form): Change return type to enum dwarf_form.
8840         * fixed-value.c (fixed_compare): Add cast to enum type.
8841         * fwprop.c (update_df): Change 0 to VOIDmode.
8842         * gensupport.c: Change 0 to UNKNOWN.
8843         * gimple.h (gimple_cond_code): Add cast to enum type.
8844         * haifa-sched.c (reemit_notes): Add cast to enum type.
8845         * hooks.c (hook_int_void_no_regs): Remove function.
8846         * hooks.h (hook_int_void_no_regs): Remove declaration.
8847         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
8848         * predict.c (combine_predictions_for_insn): Add casts to enum type.
8849         * real.c (real_arithmetic): Add cast to enum type.
8850         (real_compare): Likewise.
8851         * target.h (struct gcc_target): Change return type of
8852         branch_target_register_class to enum reg_class.
8853         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
8854         default_branch_target_register_class.
8855         * targhooks.c (default_branch_target_register_class): New function.
8856         * targhooks.h (default_branch_target_register_class): Declare.
8857         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
8858         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
8859         cast to int.
8860         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
8861         ERROR_MARK.
8862         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
8863         vect_uninitialized_def.  Change 0 to ERROR_MARK.
8864         * tree-vect-stmts.c (supportable_widening_operation): Don't
8865         initialize icode1 and icode2.
8866         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
8867         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
8868         and to STD_C89.
8869         (cmn_err_flag_specs): Change 0 to STD_C89.
8870         (cmn_err_char_table): Likewise.
8871         * config/arm/arm.c (get_arm_condition_code): Change type of code
8872         to enum arm_cond_code.
8873         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
8874         (IWMMXT_BUILTIN2): Likewise.
8875         (neon_builtin_type_bits): Don't define typedef.
8876         (neon_builtin_datum): Change type of bits field to int.
8877         (arm_expand_neon_args): Add cast to enum type.
8878         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
8879         TLS_MODEL_NONE.
8880         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
8881         casts to enum type.
8882         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
8883         MIPS_FP_COND_f.
8884         * config/mips/mips.md (jal_macro): Return enum constant.
8885         (single_insn): Likewise.
8886         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
8887         CODE_FOR_nothing.
8888         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8889         casts to enum type.
8890         * config/s390/s390.c (s390_tune_flags): Change type to int.
8891         (s390_arch_flags): Likewise.
8892         (s390_handle_arch_option): Change flags field of struct pta to int.
8893         * config/s390/s390.h (s390_tune_flags): Update declaration.
8894         (s390_arch_flags): Likewise.
8895         * config/sh/sh.c (prepare_move_operands): Compare
8896         tls_symbolic_operand result with enum constant.
8897         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
8898         (sh_expand_prologue): Add cast to enum type.
8899         (sh_expand_epilogue): Likewise.
8900         (tls_symbolic_operand): Change return type to enum tls_model.
8901         (fpscr_set_from_mem): Add cast to enum type.
8902         (legitimize_pic_address): Compare tls_symbolic_operand result with
8903         enum constant.
8904         (sh_target_reg_class): Change return type to enum reg_class.
8905         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
8906         PROCESSOR_xxx.
8907         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
8908         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
8909         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
8910         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
8911         (delayed_branch, tls_call_delay): Likewise.
8912         (eligible_for_sibcall_delay): Likewise.
8913         (eligible_for_return_delay): Likewise. 
8914         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
8915         (spu_expand_builtin_1): Likewise.
8916
8917         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
8918         for all types of conversions.
8919         (output_init_element): Issue -Wc++-compat warning if needed when
8920         initializing a bitfield with enum type.
8921         * c-parser.c (c_parser_expression): Set original_type to
8922         original_type of right hand operand of comman operator.
8923
8924 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8925
8926         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
8927         grammar nits.
8928         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
8929         * doc/cpp.texi (Standard Predefined Macros)
8930         (Implementation-defined behavior): Likewise.
8931         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
8932         * doc/gimple.texi (GIMPLE Exception Handling)
8933         (@code{GIMPLE_ASSIGN}): Likewise.
8934         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
8935         * doc/invoke.texi (Warning Options, Optimize Options)
8936         (AVR Options, Darwin Options): Likewise.
8937         (Optimize Options): Reformulate -fwhole-program description.
8938         * doc/loop.texi (Lambda): Likewise.
8939         * doc/md.texi (Output Template, Define Constraints)
8940         (Standard Names, Insn Splitting): Likewise.
8941         * doc/options.texi (Option properties): Likewise.
8942         * doc/passes.texi (Tree-SSA passes): Likewise.
8943         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
8944         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
8945         (File Names and DBX): Likewise.
8946         * doc/trouble.texi (Incompatibilities): Likewise.
8947
8948 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
8949
8950         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
8951         instruction is correct.
8952
8953 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
8954
8955         Allow non-constant arguments to conversion intrinsics.
8956         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
8957         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
8958         * spu.c (print_operand): Handle 'v' and 'w'.
8959         (exp2_immediate_p, spu_gen_exp2): Define.
8960         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
8961         spu_convtf_1): Update parameter descriptions.
8962         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
8963         * constraints.md ('v', 'w'): New.
8964         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
8965         Remove.
8966         (i2f, I2F): New define_mode_attr.
8967         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
8968         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
8969         fixuns_truncv4sfv4si2):  Update to use mode attribute.
8970         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
8971         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
8972         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
8973         patterns for combine.
8974
8975 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
8976
8977         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
8978         (cprop, hoist, pre, store_motion): New debug counters.
8979         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
8980         is not an RTL pass anymore.
8981         (pass_profiling): Remove extern decl for pass removed in 2005.
8982         (pass_gcse, pass_jump_bypass): Remove.
8983         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
8984         to 0 for clean state.
8985         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
8986         * cse.c (gate_handle_cse_after_global_opts,
8987         rest_of_handle_cse_after_global_opts): New functions.
8988         (pass_cse_after_global_opts): New pass, does local CSE.
8989         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
8990         (TV_CPROP): New timevar.
8991         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
8992         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
8993         (gcse_main, recompute_all_luids): Remove.
8994         (compute_hash_table_work): Call max_reg_num instead of reading
8995         max_gcse_regno.
8996         (cprop_jump): Don't set run_jump_opt_after_gcse.
8997         (constprop_register): Always allow to alter jumps.
8998         (cprop_insn): Likewise.
8999         (do_local_cprop): Likewise.
9000         (local_cprop_pass): Likewise.  Return non-zero if something changed.
9001         (cprop): Remove function, fold interesting bits into one_cprop_pass.
9002         (find_implicit_sets): Add note about missed optimization opportunity.
9003         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
9004         pass_rtl_cprop execute function.
9005         Don't bother tracking the pass number, each pass gets its own dumpfile
9006         now anyway.
9007         Always allow to alter jumpsand bypass jumps.
9008         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
9009         will just find no suitable set.
9010         (pre_edge_insert): Fix dumping, this function is for PRE only.
9011         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
9012         pass_rtl_pre execute function.
9013         (hoist_code): Return non-zero if something changed.  Keep track of
9014         substitutions and insertions for statistics gathering similar to PRE.
9015         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
9016         called from the pass_rtl_hoist execute function.  Show pass statistics.
9017         (compute_store_table): Use max_reg_num directly instead of using the
9018         formerly global max_gcse_regno.
9019         (build_store_vectors): Likewise.
9020         (replace_store_insn): Fix dumping.
9021         (store_motion): Rename to ...
9022         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
9023         pass, called from the pass_rtl_store_motion execute function.  Keep
9024         track of substitutions and insertions for statistics gathering similar
9025         to PRE.
9026         (bypass_jumps): Remove, fold interesting bits into ...
9027         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
9028         from the pass_rtl_cprop execute function.
9029         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
9030         pass_jump_bypass): Remove.
9031         (gate_handle_gcse, rest_of_handle_gcse): Remove.
9032         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
9033         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
9034         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
9035         (gate_rtl_store_motion, execute_rtl_store_motion,
9036         pass_rtl_store_motion): New.
9037         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
9038         make it clear that -fcse-skip-blocks is a no-op for backward compat.
9039         * passes.c (init_optimization_passes): Remove pass_gcse and
9040         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
9041         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
9042         instead of pass_jump_bypass.
9043
9044 2009-04-27  Richard Guenther  <rguenther@suse.de>
9045
9046         PR middle-end/39928
9047         * gimplify.c (gimplify_expr): If we are required to create
9048         a temporary make sure it ends up as register.
9049
9050 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
9051
9052         PR target/39903
9053         * config/i386/i386.c (construct_container): Don't call
9054         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
9055         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
9056
9057 2009-04-27  Michael Matz  <matz@suse.de>
9058
9059         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
9060         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
9061         * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
9062         (dump_replaceable_exprs): Take a bitmap.
9063         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
9064         array.
9065         (expand_gimple_basic_block): Likewise.
9066         * tree-ssa-ter.c (struct temp_expr_table_d): Make
9067         replaceable_expressions member a bitmap.
9068         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
9069         (mark_replaceable): Likewise.
9070         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
9071         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
9072
9073 2009-04-27  Richard Guenther  <rguenther@suse.de>
9074
9075         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
9076         (verify_stmts): Dispatch to gimple/type verification code.
9077         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
9078         issue with call argument types.
9079
9080 2009-04-27  Michael Matz  <matz@suse.de>
9081
9082         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
9083         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
9084         to above.
9085
9086 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
9087             Eric Botcazou  <ebotcazou@adacore.com>
9088
9089         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
9090         a label's basic block.
9091         (mark_target_live_regs): Tidy and rework obsolete comments.
9092         Change back DF problem to LIVE.  If a label starts a basic block,
9093         assume that all registers that used to be live then still are.
9094         (init_resource_info): If a label starts a basic block, set its
9095         BLOCK_FOR_INSN accordingly.
9096         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
9097
9098 2009-04-27  Richard Guenther  <rguenther@suse.de>
9099
9100         * tree-flow-inline.h (function_ann): Remove.
9101         (get_function_ann): Likewise.
9102         * tree-dfa.c (create_function_ann): Remove.
9103         * tree-flow.h (struct static_var_ann_d): Remove.
9104         (struct function_ann_d): Likewise.
9105         (union tree_ann_d): Remove fdecl member.
9106         (function_ann_t): Remove.
9107         (function_ann, get_function_ann, create_function_ann): Remove
9108         declarations.
9109
9110 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
9111
9112         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
9113
9114 2009-04-27  Jan Hubicka  <jh@suse.cz>
9115
9116         * ipa-pure-const.c (struct funct_state_d): New fields
9117         state_previously_known, looping_previously_known; remove
9118         state_set_in_source.
9119         (analyze_function): Use new fields.
9120         (propagate): Avoid assumption that state_set_in_source imply
9121         nonlooping.
9122
9123         * tree-ssa-loop-niter.c (finite_loop_p): New function.
9124         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
9125         * cfgloop.h (finite_loop_p): Declare.
9126
9127 2009-04-26  Michael Matz  <matz@suse.de>
9128
9129         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
9130
9131 2009-04-26  Michael Matz  <matz@suse.de>
9132
9133         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
9134         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
9135         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
9136         pass_mark_used_blocks): Remove.
9137         * tree-optimize.c (pass_free_datastructures,
9138         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
9139         * passes.c (init_optimization_passes): Don't call
9140         pass_mark_used_blocks, remove dead code.
9141
9142 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
9143
9144         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
9145         * tree-ssa-live.h (register_ssa_partition): Likewise.
9146
9147 2009-04-26  Michael Matz  <matz@suse.de>
9148
9149         Expand from SSA.
9150         * builtins.c (fold_builtin_next_arg): Handle SSA names.
9151         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
9152         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
9153         SSA names. 
9154         (compare_pairs): Swap cost comparison.
9155         (coalesce_ssa_name): Don't use change_partition_var.
9156         * tree-nrv.c (struct nrv_data): Add modified member.
9157         (finalize_nrv_r): Set it.
9158         (tree_nrv): Use it to update statements.
9159         (pass_nrv): Require PROP_ssa.
9160         * tree-mudflap.c (mf_decl_cache_locals,
9161         mf_build_check_statement_for): Use make_rename_temp.
9162         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
9163         * alias.c (find_base_decl): Handle SSA names.
9164         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
9165         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
9166         * rtl.h (set_reg_attrs_for_parm): Declare.
9167         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
9168         to "optimized", remove unused locals at finish.
9169         (execute_free_datastructures): Make global, call
9170         delete_tree_cfg_annotations.
9171         (execute_free_cfg_annotations): Don't call
9172         delete_tree_cfg_annotations.
9173
9174         * ssaexpand.h: New file.
9175         * expr.c (toplevel): Include ssaexpand.h.
9176         (expand_assignment): Handle SSA names the same as register variables.
9177         (expand_expr_real_1): Expand SSA names.
9178         * cfgexpand.c (toplevel): Include ssaexpand.h.
9179         (SA): New global variable.
9180         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
9181         (SSAVAR): New macro.
9182         (set_rtl): New helper function.
9183         (add_stack_var): Deal with SSA names, use set_rtl.
9184         (expand_one_stack_var_at): Likewise.
9185         (expand_one_stack_var): Deal with SSA names.
9186         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
9187         before unique numbers.
9188         (expand_stack_vars): Use set_rtl.
9189         (expand_one_var): Accept SSA names, add asserts for them, feed them
9190         to above subroutines.
9191         (expand_used_vars): Expand all partitions (without default defs),
9192         then only the local decls (ignoring those expanded already).
9193         (expand_gimple_cond): Remove edges when jumpif() expands an
9194         unconditional jump.
9195         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
9196         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
9197         SSA name.
9198         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
9199         members of SA; deal with PARM_DECL partitions here; expand
9200         all PHI nodes, free tree datastructures and SA.  Commit instructions
9201         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
9202         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
9203         info and statements at start, collect garbage at finish.
9204         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
9205         (VAR_ANN_PARTITION) Remove.
9206         (change_partition_var): Don't declare.
9207         (partition_to_var): Always return SSA names.
9208         (var_to_partition): Only accept SSA names.
9209         (register_ssa_partition): Only check argument.
9210         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
9211         member.
9212         (delete_var_map): Don't free it.
9213         (var_union): Only accept SSA names, simplify.
9214         (partition_view_init): Mark only useful SSA names as used.
9215         (partition_view_fini): Only deal with SSA names.
9216         (change_partition_var): Remove.
9217         (dump_var_map): Use ssa_name instead of partition_to_var member.
9218         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
9219         basic blocks.
9220         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
9221         (struct _elim_graph): New member const_dests; nodes member vector of
9222         ints.
9223         (set_location_for_edge): New static helper.
9224         (create_temp): Remove.
9225         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
9226         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
9227         (new_elim_graph): Allocate const_dests member.
9228         (clean_elim_graph): Truncate const_dests member.
9229         (delete_elim_graph): Free const_dests member.
9230         (elim_graph_size): Adapt to new type of nodes member.
9231         (elim_graph_add_node): Likewise.
9232         (eliminate_name): Likewise.
9233         (eliminate_build): Don't take basic block argument, deal only with
9234         partition numbers, not variables.
9235         (get_temp_reg): New static helper.
9236         (elim_create): Use it, deal with RTL temporaries instead of trees.
9237         (eliminate_phi): Adjust all calls to new signature.
9238         (assign_vars, replace_use_variable, replace_def_variable): Remove.
9239         (rewrite_trees): Only do checking.
9240         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
9241         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
9242         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
9243         contains_tree_r, MAX_STMTS_IN_LATCH,
9244         process_single_block_loop_latch, analyze_edges_for_bb,
9245         perform_edge_inserts): Remove.
9246         (expand_phi_nodes): New global function.
9247         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
9248         functions, initialize new parameter, remember partitions having a
9249         default def.
9250         (finish_out_of_ssa): New global function.
9251         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
9252         don't reset in_ssa_p here, don't disable TER when mudflap.
9253         (pass_del_ssa): Remove.
9254         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
9255         partition members.
9256         (execute_free_datastructures): Declare.
9257         * Makefile.in (SSAEXPAND_H): New variable.
9258         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
9259         * basic-block.h (commit_one_edge_insertion): Declare.
9260         * passes.c (init_optimization_passes): Move pass_nrv and
9261         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
9262         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
9263         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
9264         (redirect_branch_edge): Deal with super block when expanding, split
9265         out jump patching itself into ...
9266         (patch_jump_insn): ... here, new static helper.
9267
9268 2009-04-26  Michael Matz  <matz@suse.de>
9269
9270         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
9271         beyond num_ssa_names.
9272         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
9273         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
9274
9275 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
9276
9277         PR inline-asm/39543
9278         * fwprop.c (forward_propagate_asm): New function.
9279         (forward_propagate_and_simplify): Propagate also into __asm, if it
9280         doesn't increase the number of referenced registers.
9281
9282         PR c/39889
9283         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
9284
9285 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
9286
9287         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
9288         note_nonlocal_vla_type for nonlocal VLAs.
9289         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
9290         contains_remapped_vars, remap_vla_decls): New functions.
9291         (convert_nonlocal_reference_stmt): If not optimizing, call
9292         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
9293         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
9294         if it wasn't found in var_map.
9295         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
9296         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
9297         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
9298         declare_vars.
9299         * gimplify.c (nonlocal_vlas): New variable.
9300         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
9301         referenced VLAs.
9302         (gimplify_body): Create and destroy nonlocal_vlas.
9303
9304         * dwarf2out.c (loc_descr_plus_const): New function.
9305         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
9306         mem_loc_descriptor, loc_descriptor_from_tree_1,
9307         descr_info_loc, gen_variable_die): Use it.
9308
9309         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
9310         !TREE_STATIC VAR_DECLs.
9311         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
9312         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
9313         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
9314         DECL_BY_REFERENCE is valid.
9315         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
9316         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
9317         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
9318         Copy DECL_BY_REFERENCE.
9319         (struct nesting_copy_body_data): New type.
9320         (nesting_copy_decl): New function.
9321         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
9322         if they have variable length.
9323
9324 2009-04-26  Michael Matz  <matz@suse.de>
9325
9326         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
9327         mark new temporaries for renaming.
9328
9329 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
9330
9331         PR c/39581
9332         * c-decl.c (global_bindings_p): Return negative value.
9333         (c_variable_size): New.  Based on variable_size from
9334         stor-layout.c.
9335         (grokdeclarator): Call c_variable_size not variable_size.
9336
9337 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
9338
9339         * config/i386/i386.c (print_operand) ['z']: Fix typo.
9340
9341 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
9342
9343         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
9344         Redefine it to just use mingw/include.
9345         (ASM_SPEC): Rules for -m32 and -m64.
9346         (LINK_SPEC): Use Likewise.
9347         (SPEC_32): New define.
9348         (SPEC_64): Likewise.
9349         (SUB_LINK_SPEC): Likewise.
9350         (MULTILIB_DEFAULTS): New define.
9351         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
9352         Add multilib options.
9353         (MULTILIB_DIRNAMES): Likewise.
9354         (MULTILIB_OSDIRNAMES): Likewise.
9355         (LIBGCC): Likewise.
9356         (INSTALL_LIBGCC): Likewise.
9357
9358 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
9359
9360         PR c/39556
9361         * c-tree.h (enum c_inline_static_type): New.
9362         (record_inline_static): Declare.
9363         * c-decl.c (struct c_inline_static, c_inline_statics,
9364         record_inline_static, check_inline_statics): New.
9365         (pop_file_scope): Call check_inline_statics.
9366         (start_decl): Call record_inline_static instead of pedwarning
9367         directly for static in inline function.
9368         * c-typeck.c (build_external_ref): Call record_inline_static
9369         instead of pedwarning directly for static referenced in inline
9370         function.
9371
9372 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
9373
9374         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
9375         not new but only being rescanned.
9376         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
9377         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
9378         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
9379         record_set_info, compute_set, grealloc): Remove.
9380         (recompute_all_luids): New function.
9381         (gcse_main): Don't compute sets, and don't do related memory
9382         allocations/free-ing.  If something changed before the end of the
9383         pass, update LUIDs using recompute_all_luids.
9384         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
9385         (free_gcse_mem): Don't free it either.
9386         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
9387         Use the df insn LUIDs.
9388         (load_killed_in_block): Likewise.
9389         (compute_hash_table_work): Don't compute reg_set_in_block.
9390         (compute_transp): Use DF_REG_DEF_CHAINs.
9391         (local_cprop_pass): Don't use compute_sets and related functions.
9392         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
9393         Use get_max_uid() instead of max_cuid.
9394         (insert_insn_end_basic_block, pre_insert_copy_insn,
9395         update_ld_motion_stores): Don't try to
9396         keep reg_set tables up to date.
9397         (pre_insert_copies): Use df insn LUIDs.
9398         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
9399         (reg_set_info): Don't use extra bitmap argument.
9400         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
9401         information to compute regs_set_in_block.
9402         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
9403         (bypass_jumps): Don't use compute_sets and friends.
9404
9405 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9406
9407         PR testsuite/39710
9408         * opts.c (undocumented_msg): Do not leave blank even with
9409         ENABLE_CHECKING.
9410
9411 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
9412
9413         * c-decl.c (build_enumerator): Allow values folding to integer
9414         constants but not integer constant expressions with a pedwarn if
9415         pedantic.
9416
9417 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
9418
9419         PR c/39582
9420         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
9421         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
9422         type is an integer constant.
9423
9424 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
9425
9426         PR target/39897
9427         * config/i386/i386.c (print_operand) ['z']: Revert handling of
9428         HImode operands.
9429
9430 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
9431
9432         PR c/39564
9433         * c-decl.c (grokdeclarator): Diagnose declarations of functions
9434         with variably modified return type and no storage class
9435         specifiers, except for the case of nested functions.  Distinguish
9436         extern declarations of functions with variably modified return
9437         types from those of objects with variably modified types.
9438
9439 2009-04-25  Jan Hubicka  <jh@suse.cz>
9440
9441         * tree.c (list_equal_p): New function.
9442         * tree.h (list_equal_p): Declare.
9443         * coretypes.h (edge_def, edge, const_edge, basic_block_def
9444         basic_block_def, basic_block, const_basic_block): New.
9445         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
9446         (redirect_eh_edge): New function.
9447         (make_eh_edge_update_phi): EH edges are not abnormal.
9448         * except.c: Include tree-flow.h.
9449         (list_match): New function.
9450         (eh_region_replaceable_by_p): New function.
9451         (replace_region): New function.
9452         (hash_type_list): New function.
9453         (hash_eh_region): New function.
9454         (eh_regions_equal_p): New function.
9455         (merge_peers): New function.
9456         (remove_unreachable_regions): Verify EH tree when checking;
9457         merge peers.
9458         (copy_eh_region_1): New function.
9459         (copy_eh_region): New function.
9460         (push_reachable_handler): New function.
9461         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
9462         regions without label but with live RESX.
9463         * except.h (redirect_eh_edge_to_label): New.
9464         * tree-flow.h (redirect_eh_edge): New.
9465         * coretypes.h (edge_def, edge, const_edge, basic_block_def
9466         basic_block_def, basic_block, const_basic_block): Remove.
9467         * Makefile.in (except.o): Add dependency on tree-flow.h
9468         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
9469         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
9470         Remove.
9471
9472 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
9473
9474         PR bootstrap/39645
9475         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
9476         on the destination of memcpy.
9477
9478 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
9479
9480         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
9481         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
9482         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
9483
9484 2009-04-25  Jan Hubicka  <jh@suse.cz>
9485
9486         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
9487         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
9488         to be reached by different label than left.
9489         (update_eh_edges): Update comment; remove edge_to_remove if possible
9490         and return true if suceeded.
9491         (cleanup_empty_eh): Accept sharing map; handle shared regions.
9492         (cleanup_eh): Compute sharing map.
9493         * except.c (remove_eh_handler_and_replace): Add argument if we should
9494         update regions.
9495         (remove_unreachable_regions): Update for label sharing.
9496         (label_to_region_map): Likewise.
9497         (get_next_region_sharing_label): New function.
9498         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
9499         prev_try pointers.
9500         (remove_eh_handler): Update.
9501         (remove_eh_region_and_replace_by_outer_of): New function.
9502         * except.h (struct eh_region): Add next_region_sharing_label.
9503         (remove_eh_region_and_replace_by_outer_of,
9504         get_next_region_sharing_label): Declare.
9505         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
9506
9507 2009-04-25  Jan Hubicka  <jh@suse.cz>
9508
9509         * tree-cfg.c (split_critical_edges): Split also edges where we can't
9510         insert code even if they are not critical.
9511
9512 2009-04-25  Jan Hubicka  <jh@suse.cz>
9513
9514         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
9515         (gimple_can_remove_branch_p): EH edges won't remove branch by
9516         redirection.
9517         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
9518         updating of non-abnormal EH edges.
9519         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
9520         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
9521         (split_critical_edges): Split also edges where emitting code on them
9522         will lead to splitting later.
9523
9524 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
9525             H.J. Lu  <hongjiu.lu@intel.com>
9526
9527         PR target/39590
9528         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
9529         the configured assembler supports fildq and fistpq mnemonics.
9530         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
9531         * configure: Regenerated.
9532         * config.in: Ditto.
9533
9534         * config/i386/i386.c (print_operand): Handle 'Z'.
9535         ['z']: Remove handling of special fild/fist suffixes.
9536         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
9537         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
9538         suffix of fild insn.
9539         (*floatsi<mode>2_vector_mixed): Ditto.
9540         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
9541         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
9542         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
9543         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
9544         * config/i386/gas.h (GAS_MNEMONICS): Remove.
9545
9546 2009-04-25  Ben Elliston  <bje@au.ibm.com>
9547  
9548         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
9549         the source of a set operation.
9550
9551 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
9552
9553         * target.h (struct gcc_target): Add case_values_threshold field.
9554         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
9555         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
9556         * targhooks.c (default_case_values_threshold): New function.
9557         * targhooks.h (default_case_values_threshold): Declare function.
9558         * stmt.c (expand_case): Use case_values_threshold target hook.
9559         * expr.h (case_values_threshold): Remove declartation.
9560         * expr.c (case_values_threshold): Remove function.
9561         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
9562
9563         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
9564         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
9565         (avr_case_values_threshold): Declare as static.
9566         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
9567
9568         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
9569         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
9570         (mn10300_case_values_threshold): New function.
9571
9572 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
9573
9574         * ira.c (setup_cover_and_important_classes): Add enum cast.
9575
9576 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
9577
9578         * genpreds.c (write_enum_constraint_num): Output definition of
9579         CONSTRAINT_NUM_DEFINED_P macro.
9580         * ira.c (setup_cover_and_important_classes): Use
9581         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
9582         
9583 2009-04-24  DJ Delorie  <dj@redhat.com>
9584
9585         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
9586         __SH2A_SINGLE_ONLY__ also.
9587
9588 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
9589
9590         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
9591         (movdf_internal): Ditto.
9592         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
9593         SFmode and DFmode constants.
9594         (ia64_print_operand): Add 'G' format for printing
9595         floating point constants.
9596
9597 2009-04-24  Richard Guenther  <rguenther@suse.de>
9598
9599         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
9600         from unsigned additions.
9601
9602 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
9603
9604         * c-typeck.c (set_init_index): Allow array designators that are
9605         not integer constant expressions with a pedwarn if pedantic.
9606
9607 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
9608
9609         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
9610         zero if no overlap in nonzero bits between the operands.
9611
9612 2009-04-24  Ian Lance Taylor  <iant@google.com>
9613
9614         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
9615         (record_dead_and_set_regs): Likewise.
9616         * df.h (struct df_mw_hardreg): Change flags field to int.
9617         (struct df_base_ref): Likewise.
9618         (struct df): Change changeable_flags field to int.
9619         * df-scan.c (df_defs_record): Change clobber_flags to int.
9620         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
9621         constants rather than #define macros.
9622         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
9623         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
9624         (enum dwarf_calling_convention): Likewise.
9625         (enum dwarf_line_number_x_ops): Likewise.
9626         (enum dwarf_call_frame_info): Likewise.
9627         (enum dwarf_source_language): Likewise.
9628         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
9629         (add_calling_convention_attribute): Likewise.
9630         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
9631         (combine_comparisons): Change compcode to int.  Add cast to enum type.
9632         * genrecog.c (maybe_both_true_2): Change c to int.
9633         (write_switch): Likewise.  Add cast to enum type.
9634         * gimplify.c (gimplify_omp_for): Handle return values from
9635         gimplify_expr using MIN rather than bitwise or.
9636         (gimplify_expr): Add cast to enum type.
9637         * ipa-prop.c (update_jump_functions_after_inlining): Change
9638         IPA_BOTTOM to IPA_JF_UNKNOWN.
9639         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
9640         Add casts to enum type.
9641         (setup_cover_and_important_classes): Change cl to int.  Add casts
9642         to enum type.
9643         (setup_class_translate): Change cl and mode to int.
9644         (ira_init_once): Change mode to int.
9645         (free_register_move_costs): Likewise.
9646         (setup_prohibited_mode_move_regs): Add casts to enum type.
9647         * langhooks.c (add_builtin_function_common): Rework assertion that
9648         value fits bitfield.
9649         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
9650         * omega.c (omega_do_elimination): Avoid math on enum types.
9651         * optabs.c (expand_vec_shift_expr): Remove casts to int.
9652         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
9653         int local to handle integral_argment value.
9654         * regmove.c (try_auto_increment): Change PUT_MODE to
9655         PUT_REG_NOTE_KIND.
9656         * reload.c (push_secondary_reload): Add casts to enum type.
9657         (secondary_reload_class, find_valid_class): Likewise.
9658         * reload1.c (emit_input_reload_insns): Likewise.
9659         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
9660         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
9661         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
9662         constant.
9663         * tree.c (build_common_builtin_nodes): Add casts to enum type.
9664         * tree-complex.c (complex_lattice_t): Typedef to int rather than
9665         enum type.
9666         (expand_complex_libcall): Add casts to enum type.
9667         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
9668         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
9669         with ERROR_MARK, not NUM_TREE_CODES.
9670         (vect_create_epilog_for_reduction): Likewise.
9671         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
9672         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
9673         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
9674         enum machine_mode.
9675         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
9676         vect_unused_in_loop.  Change 0 to loop_vect.
9677         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
9678         * var-tracking.c (get_init_value): Change return type to enum
9679         var_init_status.
9680         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
9681         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
9682         arm_fp_model.
9683         (arm_override_options): Add casts to enum type.
9684         (arm_emit_tls_decoration): Likewise.
9685         * config/i386/i386.c (ix86_function_specific_restore): Add casts
9686         to enum type.
9687         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
9688         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
9689         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
9690         enum type.
9691         * config/s390/s390.c (code_for_builtin_64): Change to array of
9692         enum insn_code.
9693         (code_for_builtin_31): Likewise.
9694         (s390_expand_builtin): Change code_for_builtin to enum insn_code
9695         const *.
9696         * config/sparc/sparc.c (sparc_override_options): Change value
9697         field in struct code_model to enum cmodel.  In initializer change
9698         0 to NULL and add cast to enum type.
9699
9700         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
9701         Change all callers.  Issue a -Wc++-compat warning using
9702         lhs_origtype if necessary.
9703         (convert_for_assignment): Issue -Wc++-compat warnings about
9704         invalid conversions to enum type on assignment.
9705         * c-common.h (build_modify_expr): Update declaration.
9706
9707 2009-04-24  Nick Clifton  <nickc@redhat.com>
9708
9709         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
9710         (function_arg_advance): Likewise.
9711         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
9712         5th alternative.
9713
9714 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
9715
9716         * config/s390/constraints.md ('I', 'J'): Fix condition.
9717
9718 2009-04-24  Diego Novillo  <dnovillo@google.com>
9719
9720         * gengtype-parse.c (parse_error): Add newline after message.
9721
9722 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
9723
9724         * config/i386/sse.md (avxmodesuffixs): Removed.
9725         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
9726         (*avx_pinsr<ssevecsize>): This.
9727
9728 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
9729
9730         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
9731         follow chains of regs with a single definition, and allow expressions
9732         that are function_invariant_p.
9733         (simple_rhs_p): Allow expressions that are function_invariant_p.
9734
9735 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
9736
9737         PR middle-end/39867
9738         * fold-const.c (fold_cond_expr_with_comparison): When folding
9739         > and >= to MAX, make sure the MAX uses the same type as the
9740         comparison's operands.
9741
9742 2009-04-24  Nick Clifton  <nickc@redhat.com>
9743
9744         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
9745         addressing for DImode accesses.
9746         (frv_print_operand_address): Handle PLUS case.
9747         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
9748
9749 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
9750
9751         PR rtl-optimization/39794
9752         * alias.c (canon_true_dependence): Add x_addr argument.
9753         * rtl.h (canon_true_dependence): Adjust prototype.
9754         * cse.c (check_dependence): Adjust canon_true_dependence callers.
9755         * cselib.c (cselib_invalidate_mem): Likewise.
9756         * gcse.c (compute_transp): Likewise.
9757         * dse.c (scan_reads_nospill): Likewise.
9758         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
9759         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
9760         canon_base_addr of the group, plus optional offset.
9761         (struct group_info): Rename canon_base_mem to
9762         canon_base_addr.
9763         (get_group_info): Set canon_base_addr to canon_rtx of base, not
9764         canon_rtx of base_mem.
9765
9766 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
9767
9768         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
9769         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
9770
9771 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9772
9773         * config/spu/spu-builtins.h: Delete file.
9774
9775         * config/spu/spu.h (enum spu_builtin_type): Move here from
9776         spu-builtins.h.
9777         (struct spu_builtin_description): Likewise.  Add GTY marker.
9778         Do not use enum spu_function_code or enum insn_code.
9779         (spu_builtins): Add extern declaration.
9780
9781         * config/spu/spu.c: Do not include "spu-builtins.h".
9782         (enum spu_function_code, enum spu_builtin_type_index,
9783         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
9784         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
9785         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
9786         unsigned_V2DI_type_node): Move here from spu-builtins.h.
9787         (spu_builtin_types): Make static.  Add GTY marker.
9788         (spu_builtins): Add extern declaration with GTY marker.
9789         Include "gt-spu.h".
9790
9791         * config/spu/spu-c.c: Do not include "spu-builtins.h".
9792         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
9793         Check programmatically whether all parameters are scalar.
9794
9795         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
9796
9797 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
9798
9799         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
9800         assignment from the constructor either if the target is volatile.
9801
9802 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
9803
9804         * config/arm/arm.md (insv): Do not share operands[0].
9805
9806 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
9807
9808         * config/vxlib-tls.c (active_tls_threads): Delete.
9809         (delete_hook_installed): New.
9810         (tls_delete_hook): Don't delete the delete hook.
9811         (tls_destructor): Delete it here.
9812         (__gthread_set_specific): Adjust installing the delete hook.
9813         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
9814         __gthread_leave_tsd_dtor_context.
9815
9816 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
9817
9818         * c-format.c (gcc_tdiag_char_table): Add support for %E.
9819
9820 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
9821
9822         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
9823         enum type.
9824         (alpha_rtx_costs): Ditto.
9825         (emit_unlikely_jump): Use add_reg_note.
9826         (emit_frame_store_1): Ditto.
9827         (alpha_expand_prologue): Ditto.
9828         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
9829         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
9830
9831 2009-04-23  Nick Clifton  <nickc@redhat.com>
9832
9833         * config/v850/v850.md (epilogue): Remove suppressed code.
9834         (return): Rename to return_simple and remove test of frame size.
9835         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
9836         to gen_return_simple.
9837
9838 2009-04-22  Jing Yu  <jingyu@google.com>
9839
9840         PR testsuite/39781
9841         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
9842
9843 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9844
9845         PR C/31499
9846         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
9847         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
9848         value is a VECTOR_CST, the element type is the element type of the
9849         vector.
9850
9851 2009-04-22  DJ Delorie  <dj@redhat.com>
9852
9853         * config/m32c/m32c.h: Update GTY annotations to new syntax.
9854
9855 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
9856
9857         * alias.c (find_base_term): Move around LO_SUM case, so that
9858         CONST falls through into PLUS/MINUS handling.
9859
9860         PR c/39855
9861         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
9862         into 0, use omit_one_operand.
9863
9864 2009-04-23  Ben Elliston  <bje@au.ibm.com>
9865
9866         * config/rs6000/linux-unwind.h (get_regs): Remove type
9867         puns. Change the type of `pc' to an array of unsigned ints and
9868         update all users.  Constify frame24.
9869
9870 2009-04-22  DJ Delorie  <dj@redhat.com>
9871
9872         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
9873         declarations before code.
9874         (current_function_special_page_vector): Likewise.
9875         (m32c_expand_insv): Silence a warning.
9876
9877 2009-04-21  Taras Glek  <tglek@mozilla.com>
9878
9879         * alias.c: Update GTY annotations to new syntax.
9880         * basic-block.h: Likewise.
9881         * bitmap.h: Likewise.
9882         * c-common.h: Likewise.
9883         * c-decl.c: Likewise.
9884         * c-parser.c: Likewise.
9885         * c-pragma.c: Likewise.
9886         * c-tree.h: Likewise.
9887         * cfgloop.h: Likewise.
9888         * cgraph.h: Likewise.
9889         * config/alpha/alpha.c: Likewise.
9890         * config/arm/arm.h: Likewise.
9891         * config/avr/avr.h: Likewise.
9892         * config/bfin/bfin.c: Likewise.
9893         * config/cris/cris.c: Likewise.
9894         * config/darwin.c: Likewise.
9895         * config/frv/frv.c: Likewise.
9896         * config/i386/i386.c: Likewise.
9897         * config/i386/i386.h: Likewise.
9898         * config/i386/winnt.c: Likewise.
9899         * config/ia64/ia64.h: Likewise.
9900         * config/iq2000/iq2000.c: Likewise.
9901         * config/mips/mips.c: Likewise.
9902         * config/mmix/mmix.h: Likewise.
9903         * config/pa/pa.c: Likewise.
9904         * config/pa/pa.h: Likewise.
9905         * config/rs6000/rs6000.c: Likewise.
9906         * config/s390/s390.c: Likewise.
9907         * config/sparc/sparc.c: Likewise.
9908         * config/xtensa/xtensa.c: Likewise.
9909         * cselib.h: Likewise.
9910         * dbxout.c: Likewise.
9911         * dwarf2out.c: Likewise.
9912         * except.c: Likewise.
9913         * except.h: Likewise.
9914         * fixed-value.h: Likewise.
9915         * function.c: Likewise.
9916         * function.h: Likewise.
9917         * gimple.h: Likewise.
9918         * integrate.c: Likewise.
9919         * optabs.c: Likewise.
9920         * output.h: Likewise.
9921         * real.h: Likewise.
9922         * rtl.h: Likewise.
9923         * stringpool.c: Likewise.
9924         * tree-data-ref.c: Likewise.
9925         * tree-flow.h: Likewise.
9926         * tree-scalar-evolution.c: Likewise.
9927         * tree-ssa-address.c: Likewise.
9928         * tree-ssa-alias.h: Likewise.
9929         * tree-ssa-operands.h: Likewise.
9930         * tree.c: Likewise.
9931         * tree.h: Likewise.
9932         * varasm.c: Likewise.
9933         * varray.h: Likewise.
9934         * vec.h: Likewise.
9935         * coretypes.h: Do not define GTY macro if it is already defined.
9936         * doc/gty.texi: Update GTY documentation to new syntax.
9937         * gengtype-lex.l: Enforce attribute-like syntax for GTY
9938         annotations on structs.
9939         * gengtype-parse.c: Likewise.
9940
9941 2009-04-22  Mark Heffernan  <meheff@google.com>
9942
9943         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
9944
9945 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
9946
9947         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
9948         where appropriate.
9949
9950 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
9951
9952         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
9953         the same as a PLUS without a shift.  Increase the cost of a
9954         CONST_INT in MULT.
9955
9956 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9957
9958         * Makefile.in: Update dependencies.
9959         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
9960         * errors.h: Remove bogus comment about compatibility.
9961         (warning): Update declaration.
9962         * genautomata.c: Update all calls to warning.
9963         * gimple.c: Do not include errors.h. Include toplev.h.
9964         * tree-ssa-structalias.c: Do not include errors.h.
9965         * omega.c: Likewise.
9966         * tree-ssa-reassoc.c: Likewise.
9967         * config/spu/spu-c.c: Likewise.
9968         * config/spu/t-spu-elf: Update dependencies.
9969
9970 2009-04-22  Richard Guenther  <rguenther@suse.de>
9971
9972         PR tree-optimization/39824
9973         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
9974         make sure the types are compatible.
9975
9976 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9977
9978         PR c++/14875
9979         * c-common.c (c_parse_error): Take a token_flags parameter.
9980         Use token_type for the token type instead.
9981         Pass token_flags to cpp_type2name.
9982         * c-common.h (c_parse_error): Update declaration.
9983         * c-parser.c (c_parser_error): Pass 0 as token flags.
9984
9985 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
9986
9987         PR rtl-optimization/39580
9988         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert. 
9989         
9990 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9991
9992         * function.c (expand_function_end): Do not emit a jump to the "naked"
9993         return label for fall-through returns.
9994         * except.c (sjlj_emit_function_exit): Always place the call to the
9995         unregister function at the location installed by expand_function_end.
9996
9997 2009-04-22  Richard Guenther  <rguenther@suse.de>
9998
9999         PR tree-optimization/39845
10000         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
10001         (gen_inbound_check): Likewise.
10002
10003 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
10004
10005         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
10006         padding for PPC.
10007         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
10008         * config/vxlib.c (__gthread_once): Add race guard for PPC.
10009
10010 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
10011
10012         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
10013         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
10014         shift counts to avoid out-of-bounds array accesses.
10015
10016 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
10017
10018         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
10019         (Pmode): Move above.
10020
10021 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
10022
10023         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
10024         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
10025         GET_CODE macro.  Use IN_RANGE macro where appropriate.
10026         * config/alpha/alpha.h: Ditto.
10027         * config/alpha/alpha.md: Ditto.
10028         * config/alpha/constraints.md: Ditto.
10029         * config/alpha/predicates.md: Ditto.
10030         
10031 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
10032
10033         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
10034         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10035         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10036         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10037         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10038         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10039         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10040         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10041         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10042         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10043         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10044         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10045         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10046         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10047         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10048         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10049         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10050         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10051         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10052         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10053         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10054         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10055         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10056         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10057         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10058         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10059         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
10060
10061 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10062
10063         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
10064         references from comments.
10065         * cfgbuild.c: (count_basic_blocks): Delete.
10066         (find_basic_blocks_1): Delete.
10067         (find_basic_blocks): Delete.
10068         * except.c (finish_eh_generation): Make static.  Move comment from
10069         except.h here.  Remove find_basic_blocks references from comments.
10070         * except.h (finish_eh_generation): Delete.
10071         * basic-block.h (find_basic_blocks): Delete.
10072         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
10073
10074 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
10075
10076         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
10077         (sdbout_parms):  Likewise.
10078
10079 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
10080
10081         * config/sh/sh.c (prepare_cbranch_operands): Use
10082         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
10083         (expand_cbranchdi4): Likewise.
10084         (from_compare): Add cast to enum type.
10085         (expand_cbranchsi4): Use add_reg_note.
10086         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
10087         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
10088         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
10089         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
10090         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
10091         instead of CODE_FOR_nothing.
10092         (cbranchdi4): Likewise.  Fix the order of arguments for
10093         gen_rtx_fmt_ee.
10094         (push_fpscr): Use add_reg_note.
10095         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
10096         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
10097         
10098 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
10099
10100         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
10101         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
10102         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
10103         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
10104         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
10105         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
10106         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
10107         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
10108         config/alpha/x-vms, config/arc/t-arc,
10109         config/arm/README-interworking, config/arm/arm-c.c,
10110         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
10111         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
10112         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
10113         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
10114         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
10115         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
10116         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
10117         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
10118         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
10119         config/cris/t-elfmulti, config/crx/t-crx,
10120         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
10121         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
10122         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
10123         config/h8300/t-h8300, config/i386/athlon.md,
10124         config/i386/darwin-libgcc.10.4.ver,
10125         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
10126         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
10127         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
10128         config/i386/t-linux64, config/i386/t-nwld,
10129         config/i386/t-rtems-i386, config/i386/t-sol2-10,
10130         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
10131         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
10132         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
10133         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
10134         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
10135         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
10136         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
10137         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
10138         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
10139         config/m68k/t-uclinux, config/mcore/t-mcore,
10140         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
10141         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
10142         config/mips/crtn.asm, config/mips/irix-crti.asm,
10143         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
10144         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
10145         config/mips/mips-fixed.md, config/mips/sb1.md,
10146         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
10147         config/mips/t-iris6, config/mips/t-isa3264,
10148         config/mips/t-libgcc-mips16, config/mips/t-linux64,
10149         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
10150         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
10151         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
10152         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
10153         config/mn10300/t-linux, config/mn10300/t-mn10300,
10154         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
10155         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
10156         config/picochip/libgccExtras/clzsi2.asm,
10157         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
10158         config/rs6000/darwin-libgcc.10.4.ver,
10159         config/rs6000/darwin-libgcc.10.5.ver,
10160         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
10161         config/rs6000/t-aix43, config/rs6000/t-aix52,
10162         config/rs6000/t-darwin, config/rs6000/t-fprules,
10163         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
10164         config/rs6000/t-lynx, config/rs6000/t-netbsd,
10165         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
10166         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
10167         config/rs6000/t-rtems, config/rs6000/t-spe,
10168         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
10169         config/score/t-score-elf, config/sh/divcost-analysis,
10170         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
10171         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
10172         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
10173         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
10174         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
10175         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
10176         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
10177         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
10178         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
10179         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
10180         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
10181         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
10182         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
10183         limitx.h, version.c, xcoff.h: Add copyright and license notices.
10184         * config/h8300/genmova.sh: Include copyright and license notices
10185         in generated output.
10186         * config/h8300/mova.md: Regenerate.
10187         * doc/install.texi2html: Include word "Copyright" in copyright
10188         notice and use name "Free Software Foundation, Inc.".
10189         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
10190         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
10191         ChangeLog-2007, ChangeLog-2008: Correct dates.
10192
10193 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
10194
10195         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
10196         NE_EXPR operations as well.
10197         * c-parser.c (c_parser_condition): Do not set location information on
10198         the condition.
10199         (c_parser_conditional_expression): Likewise.
10200         (c_parser_binary_expression): Set location information on operators.
10201         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
10202         TRUTH_NOT_EXPR has been folded.
10203         * fold-const.c (fold_truth_not_expr): Copy location information from
10204         the incoming expression to the outgoing one.
10205         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
10206         recursive calls on the LHS of the operator but pass that of the
10207         operator to recursive calls on the RHS of the operator.  Set it
10208         on the COND_EXPR.
10209         (shortcut_cond_expr): Set the locus of the operator on the second
10210         COND_EXPR and that of the expression on the first in degenerate cases.
10211         Pass the locus of the expression to calls to shortcut_cond_r.
10212         Set the locus of the 'then' block on the associated jump, if any.
10213         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
10214         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
10215         expression to call to gimplify_boolean_expr.
10216
10217 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
10218
10219         * config.gcc: Add additional configuration for
10220         i686-w64-mingw* and x86_64-w64-mingw* triplet.
10221         * config/i386/mingw-w64.h: New mingw-w64 specific header.
10222         (CPP_SPEC): Redefine for allowing -municode option.
10223         (STARTFILE_SPEC): Likewise.
10224         * config/i386/t-mingw-w64: New.
10225         * config/i386/mingw-w64.opt: New.
10226         (municode): Add new target option.
10227         * doc/invoke.texi (municode): Add documentation for new option.
10228
10229 2009-04-21  Ian Lance Taylor  <iant@google.com>
10230
10231         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10232         Correct test for number of arguments.
10233         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
10234
10235 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
10236
10237         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
10238         argument of emit_library_call.
10239
10240 2009-04-21  Richard Guenther  <rguenther@suse.de>
10241
10242         PR middle-end/39829
10243         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
10244         inside VIEW_CONVERT_EXPRs.
10245
10246 2009-04-21  Martin Jambor  <mjambor@suse.cz>
10247
10248         * tree-switch-conversion.c (build_constructors): Split a long line.
10249         (constructor_contains_same_values_p): New function.
10250         (build_one_array): Create assigns of constants if possible, do not
10251         call mark_sym_for_renaming, call update_stmt.
10252         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
10253         make_rename_temp.  Do not call mark_symbols_for_renaming, call
10254         update_stmt.
10255         (gen_def_assigns): Do not call mark_symbols_for_renaming or
10256         find_new_referenced_vars, call update_stmt.
10257         (gen_inbound_check): Use create_tmp_var and create ssa names manually
10258         instead of calling make_rename_temp.  Do not call
10259         find_new_referenced_vars or mark_symbols_for_renaming, call
10260         update_stmt.
10261
10262 2009-04-21  Richard Guenther  <rguenther@suse.de>
10263
10264         PR tree-optimization/39827
10265         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
10266         (tree_ssa_phiprop): Pass the correct array size.
10267
10268 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
10269
10270         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
10271
10272 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10273
10274         PR 16202
10275         * c-typeck.c (lvalue_p): Move declaration ...
10276         * c-common.h (lvalue_p): ... to here.
10277         * c-common.c (candidate_equal_p): New.
10278         (add_tlist): Use it.
10279         (merge_tlist): Use it.
10280         (warn_for_collisions_1): Likewise.
10281         (warning_candidate_p): Accept more candidates.
10282         (verify_tree): A warning candidate can be an expression. Use
10283         candidate_equal_p.
10284
10285 2009-04-21  Ben Elliston  <bje@au.ibm.com>
10286
10287         PR target/5267
10288         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
10289         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
10290         options.  Remove -mcall-solaris documentation.
10291
10292 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10293
10294         PR c++/13358
10295         * doc/invoke.texi (-Wlong-long): Update description.
10296         * c-lex (interpret_integer): Only warn if there was no previous
10297         overflow and -Wlong-long is enabled.
10298         * c-decl.c (declspecs_add_type): Drop redundant flags.
10299         * c.opt (Wlong-long): Init to -1.
10300         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
10301         and front-end warn_long_long. Wlong-long only depends on other
10302         flags if it is uninitialized.
10303         * c-parser.c (disable_extension_diagnostics): warn_long_long is
10304         the same for CPP and FE.
10305         (restore_extension_diagnostics): Likewise.
10306
10307 2009-04-20  Ian Lance Taylor  <iant@google.com>
10308
10309         Fix enum conversions which are invalid in C++:
10310         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
10311         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
10312         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
10313         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
10314         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
10315         (dbxout_parms): Likewise.
10316         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
10317         (df_clear_flags): Likewise.
10318         * df-problems.c (df_rd_bb_local_compute_process_def): Change
10319         top_flag parameter to int.
10320         (df_chain_create_bb_process_use): Likewise.
10321         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
10322         Remove cast.
10323         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
10324         (df_ref_create_structure, df_def_record_1): Likewise.
10325         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
10326         (df_notes_rescan): Change 0 to VOIDmode in function call.
10327         (df_get_call_refs, df_insn_refs_collect): Likewise.
10328         (df_bb_regs_collect): Likewise.
10329         (df_entry_block_defs_collect): Likewise.
10330         (df_exit_block_uses_collect): Likewise.
10331         * df.h: Update declarations.
10332         * double-int.c (double_int_divmod): Add cast to enum type.
10333         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
10334         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
10335         (based_loc_descr): Likewise.
10336         (loc_descriptor_from_tree_1): Change first_op and second_op to
10337         enum dwarf_location_atom.  Add cast to enum type.
10338         * expmed.c (init_expmed): Change 0 to SET in function call.
10339         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
10340         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
10341         (do_store_flag): Likewise.
10342         * fixed-value.h (struct fixed_value): Change mode to enum
10343         machine_mode.
10344         * function.c (assign_parms): Change 0 to VOIDmode in function call.
10345         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
10346         function call.
10347         (insert_insn_decl, insert_decl, insert_state): Likewise.
10348         (automata_list_finish): Likewise.
10349         * genrecog.c (process_define_predicate): Add cast to enum type.
10350         * gensupport.c (init_predicate_table): Add cast to enum type.
10351         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
10352         function call.
10353         (gimple_build_call_1, gimple_build_label): Likewise.
10354         (gimple_build_goto, gimple_build_asm_1): Likewise.
10355         (gimple_build_switch_1, gimple_build_cdt): Likewise.
10356         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
10357         (enum fallback): Rename from enum fallback_t.
10358         (fallback_t): Typedef as int.
10359         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
10360         GSI_SAME_STMT in function call.
10361         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
10362         enum type.
10363         (setup_reg_class_relations): Likewise.
10364         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
10365         (setup_prohibited_class_mode_regs): Add cast to enum type.
10366         (setup_prohibited_mode_move_regs): Likewise.
10367         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
10368         (record_address_regs): Change i to enum reg_class.
10369         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
10370         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
10371         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
10372         (GET_MODE_2XWIDER_MODE): Likewise.
10373         (GET_CLASS_NARROWEST_MODE): Likewise.
10374         * omp-low.c (expand_omp_for): Add cast to enum type.
10375         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
10376         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
10377         * postreload.c (reload_cse_simplify_operands): Change rclass local
10378         to enum reg_class.
10379         * predict.c (combine_predictions_for_insn): Change best_predictor
10380         and predictor to enum br_predictor.
10381         (combine_predictions_for_bb): Likewise.
10382         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
10383         use SET_PREDICT_EXPR_OUTCOME.
10384         * real.c (real_arithmetic): Change icode to code in function call.
10385         * reginfo.c (init_move_cost): Add casts to enum type.
10386         (init_reg_sets_1, init_fake_stack_mems): Likewise.
10387         * regmove.c (regclass_compatible_p): Change class0 and class1 to
10388         enum reg_class.
10389         * reload.c (find_valid_class): Add casts to enum type.
10390         (push_reload): Change 0 to NO_REGS in function call.
10391         (find_reloads): Change this_alternative to array of enum
10392         reg_class.  Remove some now-unnecessary casts.
10393         (make_memloc): Change 0 to VOIDmode in function call.
10394         * reload1.c (reload): Change 0 to VOIDmode in function call.
10395         (eliminate_regs_1, elimination_effects): Likewise.
10396         (eliminate_regs_in_insn): Likewise.
10397         (emit_input_reload_insns): Add cast to enum type.
10398         (delete_output_reload): Change 0 to VOIDmode in function call.
10399         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
10400         to enum type in function call.
10401         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
10402         (SET_PREDICT_EXPR_OUTCOME): Define.
10403         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
10404         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
10405         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
10406         (dump_function): Likewise.
10407         * tree-dump.h: Update declarations.
10408         * tree-pass.h: Update declarations.
10409         * varasm.c (assemble_integer): Change mclass to enum mode_class.
10410         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
10411         enum type.
10412         (arm_rtx_costs_1): Correct parenthesization.
10413         (arm_rtx_costs): Add casts to enum type.
10414         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
10415         (vfp_emit_fstmd): Use add_rg_note.
10416         (emit_multi_reg_push, emit_sfm): Likewise.
10417         (thumb_set_frame_pointer): Likewise.
10418         (arm_expand_prologue): Likewise.
10419         (arm_regno_class): Change return type to enum reg_class.
10420         (thumb1_expand_prologue): Use add_reg_note.
10421         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
10422         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
10423         in function call.
10424         * config/arm/gentune.sh: Add cast to enum type.
10425         * config/arm/arm-tune.md: Rebuild.
10426         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
10427         (ix86_split_fp_branch, predict_jump): Likewise.
10428         (ix86_expand_multi_arg_builtin): Change sub_code from enum
10429         insn_code to enum rtx_code.
10430         (ix86_builtin_vectorized_function): Add cast to enum type.
10431         * config/i386/i386.md (truncdfsf2): Change slot to enum
10432         ix86_stack_slot.
10433         (truncxf<mode>2, isinf<mode>2): Likewise.
10434         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
10435         enum type.
10436         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
10437         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
10438         (insert_bundle_state): Change 1 to INSERT in function call.
10439         (ia64_add_bundle_selector_before): Likewise.
10440         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
10441         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
10442         (restore_stack_nonlocal): Likewise.
10443         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
10444         function call.
10445         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
10446         function call.
10447         (mips_rtx_costs): Likewise.
10448         (mips_override_options): Add casts to enum type.
10449         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
10450         in function call.
10451         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
10452         (store_reg, set_reg_plus_d): Likewise.
10453         (hppa_expand_prologue, hppa_profile_hook): Likewise.
10454         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
10455         cast to enum type.
10456         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
10457         function call.
10458         (emit_unlikely_jump): Use add_reg_note.
10459         (rs6000_emit_allocate_stack): Likewise.
10460         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
10461         (output_toc): Change 1 to INSERT in function call.
10462         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
10463         (rs6000_initialize_trampoline): Likewise.
10464         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
10465         function call.
10466         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
10467         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
10468         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
10469         (save_gprs): Use add_reg_note.
10470         (s390_emit_prologue): Likewise.
10471         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
10472         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
10473         (sparc_fold_builtin): Add cast to enum type.
10474         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
10475         enum insn_code.
10476         (spu_expand_prologue): Use add_reg_note.
10477         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
10478
10479 2009-04-20  Ian Lance Taylor  <iant@google.com>
10480
10481         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
10482         (c_parser_postfix_expression_after_primary): Get VEC for list of
10483         arguments.  Get original types of arguments.  Call
10484         build_function_call_vec.
10485         (cached_expr_list_1, cached_expr_list_2): New static variables.
10486         (c_parser_expr_list): Change return type to VEC *.  Add
10487         p_orig_types parameter.  Change all callers.
10488         (c_parser_release_expr): New static function.
10489         (c_parser_vec_to_tree_list): New static function.
10490         * c-typeck.c (build_function_call): Rewrite to build a VEC and
10491         call build_function_call_vec.
10492         (build_function_call_vec): New function, based on old
10493         build_function_call.
10494         (convert_arguments): Remove nargs and argarray parameters.  Change
10495         values to a VEC.  Add origtypes parameter.
10496         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
10497         (convert_for_assignment): Add origtype parameter.  Change all
10498         callers.  If warn_cxx_compat, check for conversion to an enum
10499         type when calling a function.
10500         (store_init_value): Add origtype parameter.  Change all callers.
10501         (digest_init): Likewise.
10502         (struct init_node): Add origtype field.
10503         (add_pending_init): Add origtype parameter.  Change all callers.
10504         (output_init_element): Likewise.
10505         (output_pending_init_elements): Pass origtype from init_node to
10506         output_init_element.
10507         (process_init_element): Pass origtype from c_expr to
10508         output_init_element.
10509         (c_finish_return): Add origtype parameter.  Change all callers.
10510         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
10511         caller.
10512         (sync_resolve_params): Likewise.
10513         (sync_resolve_return): Change params to first_param.  Change caller.
10514         (resolve_overloaded_builtins): Change params to VEC *.  Change
10515         callers.  Save first parameter around call to build_function_call_vec.
10516         * c-decl.c (finish_decl): Add origtype parameter.  Change all
10517         callers.  Call build_function_call_vec rather than
10518         build_function_call for cleanup.
10519         * c-tree.h: Update declarations.
10520         * c-common.h: Update declarations.
10521         * stub-objc.c (objc_rewrite_function_call): Change parameter from
10522         params to first_param.
10523         * target.h (struct gcc_target): Change resolve_overloaded_builtin
10524         params parameter from tree to void *.
10525         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10526         Change arglist parameter to have type void *, and to be a pointer
10527         to a VEC.
10528         * config/rs6000/rs6000-protos.h
10529         (altivec_resolve_overloaded_builtin): Update declaration.
10530         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
10531         fnargs parameter to have type void *, and to be a pointer to a
10532         VEC.  Call build_function_call_vec instead of
10533         build_function_call.
10534         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
10535
10536 2009-04-20  Joey Ye  <joey.ye@intel.com>
10537             Xuepeng Guo  <xuepeng.guo@intel.com>
10538             H.J. Lu  <hongjiu.lu@intel.com>
10539
10540         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
10541
10542         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
10543         (IX86_LEA_PRIORITY): Likewise.
10544         (distance_non_agu_define): New function.
10545         (distance_agu_use): Likewise.
10546         (ix86_lea_for_add_ok): Likewise.
10547         (ix86_dep_by_shift_count): Likewise.
10548
10549         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
10550         should split for LEA.
10551
10552         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
10553         function.
10554         (ix86_dep_by_shift_count): Likewise.
10555
10556 2009-04-20  Richard Guenther  <rguenther@suse.de>
10557
10558         * expr.c (handled_component_p): Move ...
10559         * tree.h (handled_component_p): ... here.
10560         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
10561         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
10562         and REALPART_EXPR to be in one group.
10563
10564 2009-04-20  Richard Guenther  <rguenther@suse.de>
10565
10566         * basic-block.h (get_all_dominated_blocks): Declare.
10567         * dominance.c (get_all_dominated_blocks): New function.
10568         * tree-cfg.c (get_all_dominated_blocks): Remove.
10569         (remove_edge_and_dominated_blocks): Adjust.
10570         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
10571         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
10572         instead of recursing.
10573
10574 2009-04-20  Doug Kwan  <dougkwan@google.com>
10575
10576         * cgraph.h (cgraph_node_ptr): New type for vector functions.
10577         (struct cgraph_node_set_def): New type.
10578         (cgraph_node_set) New type. Also declare vector functions.
10579         (struct cgraph_node_set_element_def): New type.
10580         (cgraph_node_set_element): Ditto.
10581         (cgraph_node_set_iterator): New iterator type.
10582         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
10583         cgraph_node_set_remove, dump_cgraph_node_set,
10584         debug_cgraph_node_set): New prototypes.
10585         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
10586         cgraph_node_set_size): New inlines.
10587         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
10588         including cgraph.h.
10589         (struct ipa_opt_pass): Add struct cgraph_node_set_def
10590         argument to function 'write_summary'.
10591         * ipa.c: Include ggc.h.
10592         (hash_cgraph_node_set_element,
10593         eq_cgraph_node_set_element, cgraph_node_set_new,
10594         cgraph_node_set_add, cgraph_node_set_remove,
10595         cgraph_node_set_find, dump_cgraph_node_set,
10596         debug_cgraph_node_set): New functions.
10597         * Makefile.in (ipa.o): Add dependency on GGC_H.
10598
10599 2009-04-20  Ira Rosen  <irar@il.ibm.com>
10600
10601         PR tree-optimization/39675
10602         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
10603         check of the return code of vect_schedule_slp. Check that
10604         stmt_vec_info still exists for the statement, before checking its
10605         vectorization type.
10606
10607 2009-04-20  Michael Matz  <matz@suse.de>
10608
10609         * Makefile.in (generated_files): Take out $(simple_generated_c).
10610
10611 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
10612
10613         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
10614         (UINTPTR_TYPE):  Likewise.
10615
10616 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
10617
10618         PR c/37481
10619         * c-typeck.c (digest_init): Check for initializing an array with a
10620         string literal.
10621
10622 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
10623
10624         PR c/19771
10625         * c-semantics.c (pop_stmt_list): Propagate
10626         STATEMENT_LIST_HAS_LABEL to parent statement list.
10627
10628 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
10629
10630         * config/mips/mips.h (mips_tune_attr): New macro.
10631         * config/mips/mips.md (cpu): Use it.
10632
10633 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
10634
10635         PR c/38243
10636         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
10637         declaring a tag.
10638
10639 2009-04-19  Diego Novillo  <dnovillo@google.com>
10640
10641         * toplev.c (compile_file): Move call to coverage_finish ...
10642         * cgraphunit.c (ipa_passes): ... here.
10643         Call cgraph_process_new_functions.
10644         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
10645         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
10646
10647 2009-04-19  Jan Hubicka  <jh@suse.cz>
10648
10649         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
10650         cfun.
10651         (dump_cgraph_node): Dump can throw external flag.
10652         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
10653
10654 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10655
10656         PR c/32061
10657         PR c++/36954
10658         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
10659         * common.opt (Wlogical-op): Move from here...
10660         * c.opt (Wlogical-op): ... to here.
10661         * c-typeck.c (parser_build_binary_op): Update call to
10662         warn_logical_operator.
10663         * c-opts.c (c_common_post_options): Enable warn_logical_op with
10664         extra_warnings.
10665         * c-common.c (warn_logical_op): Update.
10666         * c-common.h (warn_logical_op): Update declaration.
10667
10668 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
10669
10670         * tree.c (protected_set_expr_location): Fix formatting.
10671
10672 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
10673
10674         PR c/27676
10675         * c-typeck.c (readonly_warning): new.
10676         (build_unary_op, build_modify_expr): Use readonly_warning for
10677         storing into something readonly but not const-qualified.
10678
10679 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
10680
10681         PR c/22367
10682         * c-typeck.c (build_unary_op): Check for taking address of
10683         expression of type void.
10684
10685 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
10686
10687         PR c/35210
10688         * c-typeck.c (build_function_call): Check for calling a function
10689         with qualified void return types.  Call require_complete_type when
10690         generating a trap.
10691
10692 2009-04-18  Jan Hubicka  <jh@suse.cz>
10693
10694         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
10695         Set nothrow flag.
10696         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
10697         can_throw_external flag.
10698         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
10699         * ipa-pure-const.c (ignore_edge): New function.
10700         (propagate): Compute order for NOTHROW computation; set NOTHROWs
10701         only over can_throw_external edges.
10702         (local_pure_const): Add nothrow flag.
10703         * ipa-utils.c (searchc): Add ignore_edge callback.
10704         (ipa_utils_reduced_inorder): Add ignore_edge callback.
10705         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
10706         (set_nothrow_function_flags): Update cgraph.
10707         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
10708
10709 2009-04-18  Richard Guenther  <rguenther@suse.de>
10710
10711         PR middle-end/39804
10712         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
10713         (fold_stmt): ... this and ...
10714         (fold_stmt_inplace): ... this.
10715         (fold_stmt_1): Fold references in calls and asms.
10716         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
10717
10718 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
10719
10720         * tree-vrp.c (ssa_name_nonzero_p): Remove.
10721         * tree.h: Remove the prototype for ssa_name_nonzero_p.
10722
10723 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
10724
10725         * tree.c (function_args_count): Remove.
10726         * tree.h: Remove the prototype for function_args_count.
10727
10728 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
10729
10730         * tree-iterator.c (expr_only): Remove.
10731         * tree.h: Remove the prototype for expr_only.
10732
10733 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
10734
10735         * reginfo.c (cannot_change_mode_set_regs): Remove.
10736         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
10737
10738 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
10739
10740         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
10741         whether operands 0 and 1 overlaps.
10742
10743 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10744
10745         PR middle-end/36902
10746         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
10747         pointer. Use warning_at instead of warning.
10748         (search_for_addr_array): Likewise.
10749         (check_array_bounds): Likewise.
10750         (check_all_array_refs): Check that the incoming edge is not in the
10751         list of edges to be removed.
10752         (check_all_array_refs): Avoid the temporal pointer.
10753         (vrp_visit_cond_stmt): Fix typo.
10754         (simplify_switch_using_ranges): Handle the case where the switch
10755         index is an integer constant.
10756
10757 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
10758
10759         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
10760
10761 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
10762
10763         * doc/extend.texi, doc/invoke.texi: Fix typos.
10764
10765 2009-04-17  Cary Coutant  <ccoutant@google.com>
10766
10767         * tree-flow-inline.h (get_lineno): Fix inverted test.
10768
10769 2009-04-17  Diego Novillo  <dnovillo@google.com>
10770
10771         * tree-ssa-pre.c (create_expression_by_pieces): Remove
10772         assertion for AVAIL_OUT.
10773
10774 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
10775
10776         PR target/38627
10777         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
10778         * config/sh/linux-atomic.asm: Likewise.
10779
10780 2009-04-17  Diego Novillo  <dnovillo@google.com>
10781
10782         * except.c (debug_eh_tree): New.
10783         (struct eh_region, struct eh_status): Move ...
10784         * except.h: ... here.
10785         (add_type_for_runtime): Declare extern.
10786         (lookup_type_for_runtime): Likewise.
10787         (debug_eh_tree): Declare.
10788         * Makefile.in (GTFILES): List except.h before except.c
10789
10790 2009-04-17  Diego Novillo  <dnovillo@google.com>
10791
10792         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
10793         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
10794         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
10795         (find_vars_r): ... here.
10796         * tree-flow.h (find_referenced_vars_in): Declare.
10797         * tree-ssa-pre.c (create_expression_by_pieces): Assert
10798         that AVAIL_OUT exists for BLOCK.
10799         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
10800         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
10801         (tree-parloops.o): Likewise.
10802
10803 2009-04-17  Simon Baldwin  <simonb@google.com>
10804
10805         * toplev.c (default_tree_printer): Add handling for %E format.
10806
10807 2009-04-17  Diego Novillo  <dnovillo@google.com>
10808
10809         * tree-pretty-print.c (dump_generic_node): Add break after
10810         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
10811         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
10812         FUNCTION_TYPE together.  Call print_struct_decl when printing
10813         structures and TDF_SLIM is not given.
10814         (print_struct_decl): Fix logic for detecting recursion.
10815
10816 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
10817
10818         PR 31567
10819         * gcc.c (create_at_file): New.
10820         (compile_input_file_p): New.
10821         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
10822         * main.c (main): Update call to toplev_main.
10823         * toplev.c (toplev_main): Change signature. Call expandargv.
10824         * toplev.h (toplev_main): Change signature.
10825
10826 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
10827
10828         * dwarf2out.c (field_byte_offset): Use the type size as the field size
10829         if the latter is not constant.
10830
10831 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
10832
10833         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
10834
10835 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
10836
10837         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
10838         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
10839
10840 2009-04-17  Richard Guenther  <rguenther@suse.de>
10841
10842         * tree-ssa-structalias.c (get_constraint_for_component_ref):
10843         Handle component references view-converting an invariant address.
10844
10845 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
10846
10847         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
10848         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
10849         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
10850         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
10851         Use @deftypevr rather than @deftypevar.
10852
10853 2009-04-17  Richard Guenther  <rguenther@suse.de>
10854
10855         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
10856         (get_prop_source_stmt): Likewise.
10857         (can_propagate_from): Likewise.
10858
10859 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
10860
10861         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
10862         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
10863         (--with-multilib-list): Add default value.
10864         * configure: Regenerate.
10865         * Makefile.in (TM_ENDIAN_CONFIG): Define.
10866         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
10867         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
10868         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
10869         Don't add default cpu to multilib list unnecessarily, but do enable
10870         the relevant compiler option..
10871         Add support for --with-multilib-list=<blank> and
10872         --with-multilib-list=!<somelib> to supress unwanted multilibs.
10873         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
10874         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
10875         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
10876         TM_MULTILIB_CONFIG.
10877         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
10878         (MULTILIB_OSDIRNAMES): New variable.
10879         * config/sh/t-1e: Delete file.
10880         * config/sh/t-mlib-sh1: Delete file.
10881         * config/sh/t-mlib-sh2: Delete file.
10882         * config/sh/t-mlib-sh2a: Delete file.
10883         * config/sh/t-mlib-sh2a-nofpu: Delete file.
10884         * config/sh/t-mlib-sh2a-single: Delete file.
10885         * config/sh/t-mlib-sh2a-single-only: Delete file.
10886         * config/sh/t-mlib-sh2e: Delete file.
10887         * config/sh/t-mlib-sh3e: Delete file.
10888         * config/sh/t-mlib-sh4: Delete file.
10889         * config/sh/t-mlib-sh4-nofpu: Delete file.
10890         * config/sh/t-mlib-sh4-single: Delete file.
10891         * config/sh/t-mlib-sh4-single-only: Delete file.
10892         * config/sh/t-mlib-sh4a: Delete file.
10893         * config/sh/t-mlib-sh4a-nofpu: Delete file.
10894         * config/sh/t-mlib-sh4a-single: Delete file.
10895         * config/sh/t-mlib-sh4a-single-only: Delete file.
10896         * config/sh/t-mlib-sh4al: Delete file.
10897         * config/sh/t-mlib-sh5-32media: Delete file.
10898         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
10899         * config/sh/t-mlib-sh5-64media: Delete file.
10900         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
10901         * config/sh/t-mlib-sh5-compact: Delete file.
10902         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
10903         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
10904         * doc/install.texi (Options specification): Add
10905         --with-multilib-list and --with-endian.
10906
10907 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
10908
10909         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
10910         REVISION_c.
10911         (OBJS-common): Add plugin-version.o.
10912         (plugin-version.o): New.
10913         * gcc-plugin.h (plugin_gcc_version): New.
10914         (plugin_default_version_check): New.
10915         (plugin_init_func, plugin_init): Add version argument.
10916         * plugin-version.c: New.
10917         * plugin.c (str_plugin_gcc_version_name): New.
10918         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
10919         pass it to the init function.
10920         (plugin_default_version_check): New.
10921
10922 2009-04-17  Richard Guenther  <rguenther@suse.de>
10923
10924         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
10925         for decl-vs-decl disambiguation.
10926
10927 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
10928
10929         * config/s390/s390.h (s390_tune_attr): New macro definition.
10930         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
10931
10932 2009-04-17  Richard Guenther  <rguenther@suse.de>
10933
10934         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
10935         (fold_stmt_r): Likewise.
10936         (maybe_fold_reference): New function.
10937         (fold_gimple_assign): Handle cases fold_stmt_r did.
10938         (fold_stmt): Do not use fold_stmt_r.
10939         (fold_stmt_inplace): Likewise.
10940
10941 2009-04-17  Richard Guenther  <rguenther@suse.de>
10942
10943         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
10944         (record_equivalences_from_stmt): Remove useless checks and
10945         simplifications.
10946         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
10947         the type is already suitable.
10948
10949 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
10950
10951         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
10952
10953 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
10954
10955         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
10956         (CMPtype): Define as __gcc_CMPtype.
10957
10958 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
10959
10960         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
10961         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
10962
10963 2009-04-17  Richard Guenther  <rguenther@suse.de>
10964
10965         PR tree-optimization/39746
10966         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
10967         special-casing for builtins and static variable use/def.
10968         (call_may_clobber_ref_p_1): Likewise.
10969
10970 2009-04-16  Ian Lance Taylor  <iant@google.com>
10971
10972         * df.h: Include "timevar.h".
10973         (struct df_problem): Change tv_id field to timevar_id_t.
10974         * tree-pass.h: Include "timevar.h".
10975         (struct opt_pass): Change tv_id field to timevar_id_t.
10976         * timevar.h (timevar_id_t): Define TV_NONE.
10977         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
10978         TV_NONE rather than tv_id != 0.
10979         (execute_one_pass): Likewise.
10980         * Makefile.in (DF_H): Add $(TIMEVAR_H).
10981         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
10982         dependencies to $(TREE_PASS_H).
10983         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
10984         to TV_NONE.
10985         (pass_branch_target_load_optimize2): Likewise.
10986         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
10987         (pass_outof_cfg_layout_mode): Likewise.
10988         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
10989         (pass_rebuild_cgraph_edges): Likewise.
10990         (pass_remove_cgraph_callee_edges): Likewise.
10991         * df-core.c (pass_df_initialize_opt): Likewise.
10992         (pass_df_initialize_no_opt): Likewise.
10993         (pass_df_finish): Likewise.
10994         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
10995         * except.c (pass_set_nothrow_function_flags): Likewise.
10996         (pass_convert_to_eh_region_ranges): Likewise.
10997         * final.c (pass_compute_alignments): Likewise.
10998         * function.c (pass_instantiate_virtual_regs): Likewise.
10999         (pass_init_function): Likewise.
11000         (pass_leaf_regs): Likewise.
11001         (pass_match_asm_constraints): Likewise.
11002         * gimple-low.c (pass_lower_cf): Likewise.
11003         (pass_mark_used_blocks): Likewise.
11004         * init-regs.c (pass_initialize_regs): Likewise.
11005         * integrate.c (pass_initial_value_sets): Likewise.
11006         * ira.c (pass_ira): Likewise.
11007         * jump.c (pass_cleanup_barriers): Likewise.
11008         * omp-low.c (pass_expand_omp): Likewise.
11009         (pass_lower_omp): Likewise.
11010         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
11011         * recog.c (pass_split_all_insns): Likewise.
11012         (pass_split_after_reload): Likewise.
11013         (pass_split_before_regstack): Likewise.
11014         (pass_split_before_sched2): Likewise.
11015         (pass_split_for_shorten_branches): Likewise.
11016         * reginfo.c (pass_reginfo_init): Likewise.
11017         (pass_subregs_of_mode_init): Likewise.
11018         (pass_subregs_of_mode_finish): Likewise.
11019         * passes.c (pass_postreload): Likewise.
11020         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
11021         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
11022         (pass_warn_function_return): Likewise.
11023         (pass_warn_function_noreturn): Likewise.
11024         * tree-complex.c (pass_lower_complex): Likewise.
11025         (pass_lower_complex_O0): Likewise.
11026         * tree-if-conv.c (pass_if_conversion): Likewise.
11027         * tree-into-ssa.c (pass_build_ssa): Likewise.
11028         * tree-mudflap.c (pass_mudflap_1): Likewise.
11029         (pass_mudflap_2): Likewise.
11030         * tree-nomudflap.c (pass_mudflap_1): Likewise.
11031         (pass_mudflap_2): Likewise.
11032         * tree-nrv.c (pass_return_slot): Likewise.
11033         * tree-object-size.c (pass_object_sizes): Likewise.
11034         * tree-optimize.c (pass_all_optimizations): Likewise.
11035         (pass_early_local_passes): Likewise.
11036         (pass_all_early_optimizations): Likewise.
11037         (pass_cleanup_cfg): Likewise.
11038         (pass_cleanup_cfg_post_optimizing): Likewise.
11039         (pass_free_datastructures): Likewise.
11040         (pass_free_cfg_annotations): Likewise.
11041         (pass_fixup_cfg): Likewise.
11042         (pass_init_datastructures): Likewise.
11043         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
11044         (pass_late_warn_uninitialized): Likewise.
11045         (pass_update_address_taken): Likewise.
11046         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
11047         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
11048         (pass_cse_sincos): Likewise.
11049         (pass_convert_to_rsqrt): Likewise.
11050         * tree-ssa-structalias.c (pass_build_alias): Likewise.
11051         * tree-stdarg.c (pass_stdarg): Likewise.
11052         * tree-tailcall.c (pass_tail_recursion): Likewise.
11053         (pass_tail_calls): Likewise.
11054         * tree-vect-generic.c (pass_lower_vector): Likewise.
11055         (pass_lower_vector_ssa): Likewise.
11056         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
11057
11058 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
11059
11060         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
11061         XLR entry.
11062         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
11063         Handle -march=xlr.
11064         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
11065         logical and signext.
11066
11067 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
11068
11069         PR target/39767
11070         * config/sh/predicates.md (arith_operand): Check if the operand
11071         of TRUNCATE is a REG.
11072
11073 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
11074
11075         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
11076         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
11077
11078 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
11079
11080         * tree-iterator.c (tsi_split_statement_list_after,
11081         tsi_split_statement_list_before): Remove.
11082         * tree-iterator.h: Remove the prototypes for
11083         tsi_split_statement_list_after and tsi_split_statement_list_before.
11084
11085 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
11086
11087         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
11088         * tree-ssa-propagate.h: Remove the prototype for
11089         stmt_makes_single_load.
11090
11091 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
11092
11093         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
11094         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
11095
11096 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
11097
11098         * tree-iterator.c (EXPR_LAST_BODY): Remove.
11099
11100 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
11101
11102         * except.c (eh_region_outer_p): Remove.
11103         * except.h: Remove the prototype for eh_region_outer_p.
11104
11105 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
11106
11107         * function.c (current_function_assembler_name): Remove.
11108         * function.h: Remove the prototype for
11109         current_function_assembler_name.
11110
11111 2009-04-16  Ian Lance Taylor  <iant@google.com>
11112
11113         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
11114         (add_reg_note): Call alloc_reg_note.
11115         * rtl.h (alloc_reg_note): Declare.
11116         * combine.c (try_combine): Use alloc_reg_note.
11117         (recog_for_combine, move_deaths): Likewise.
11118         (distribute_notes): Use alloc_reg_note and add_reg_note.
11119         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
11120         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
11121         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
11122
11123 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
11124
11125         PR rtl-optimization/39762
11126         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
11127         ira_may_move_out_cost): Add comments about way of their usage.
11128         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
11129
11130         * ira-conflicts.c (process_regs_for_copy): Use function
11131         ira_get_register_move_cost instead of global
11132         ira_register_move_cost.
11133
11134         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
11135         color_pass, move_spill_restore, update_curr_costs): Ditto.
11136
11137         * ira-lives.c (process_single_reg_class_operands): Ditto.
11138
11139         * ira-emit.c (emit_move_list): Ditto.
11140
11141         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
11142         (record_reg_classes): Ditto.  Use functions
11143         ira_get_register_move_cost and ira_get_may_move_cost instead of
11144         global vars ira_register_move_cost, ira_may_move_out_cost and
11145         ira_may_move_in_cost.
11146         (record_address_regs): Don't call ira_init_register_move_cost.
11147         Use function ira_get_may_move_cost instead of global
11148         ira_may_move_in_cost.
11149         (process_bb_node_for_hard_reg_moves): Use function
11150         ira_get_register_move_cost instead of global ira_register_move_cost.
11151         (ira_costs): Don't call ira_init_register_move_cost.
11152
11153 2009-04-16  Richard Guenther  <rguenther@suse.de>
11154
11155         * tree-cfg.c (verify_gimple_assign_binary):
11156         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
11157         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
11158         (create_general_new_stmt): Note that this function is broken.
11159
11160 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
11161
11162         * common.opt (fhelp): Add Var(help_flag).
11163         * gcc-plugin.h (plugin_info): Add help.
11164         * plugin.c (plugin_name_args): Add help.
11165         (register_plugin_info): Set plugin->help.
11166         (print_help_one_plugin): New.
11167         (print_plugins_help): New.
11168         * plugin.h (print_plugins_help): New.
11169         * toplev.c (toplev_main): Call print_plugins_help if needed.
11170
11171 2009-04-16  Richard Guenther  <rguenther@suse.de>
11172
11173         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
11174         (gimple_ior_addresses_taken_1): New function.
11175         (gimple_ior_addresses_taken): Likewise.
11176         * gimple.h (struct gimple_statement_with_ops_base): Remove
11177         addresses_taken member.
11178         (gimple_ior_addresses_taken): Declare.
11179         (gimple_addresses_taken, gimple_addresses_taken_ptr,
11180         gimple_set_addresses_taken): Remove.
11181         * ipa-reference.c (mark_address): New function.
11182         (scan_stmt_for_static_refs): Use it for marking addresses taken.
11183         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
11184         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
11185         (gimple_add_to_addresses_taken): Remove.
11186         (get_tmr_operands): Call mark_address_taken.
11187         (get_asm_expr_operands): Likewise.
11188         (get_expr_operands): Likewise.
11189         (build_ssa_operands): Do not clear the addresses_taken bitmap.
11190         (free_stmt_operands): Do not free it.
11191         * tree-ssa.c (delete_tree_ssa): Likewise.
11192         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
11193
11194 2009-04-16  Richard Guenther  <rguenther@suse.de>
11195
11196         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
11197         (walk_stmt_load_store_ops): Likewise.
11198         * gimple.c (get_base_loadstore): New function.
11199         (walk_stmt_load_store_addr_ops): Likewise.
11200         (walk_stmt_load_store_ops): Likewise.
11201         * ipa-pure-const.c (check_op): Simplify.
11202         (check_load, check_store): New functions.
11203         (check_stmt): Use walk_stmt_load_store_ops.
11204         * ipa-reference.c (mark_load): Adjust signature.
11205         (mark_store): Likewise.
11206         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
11207
11208 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
11209
11210         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
11211         (plugin_info): New.
11212         * opts.c (common_handle_option): Don't call print_version.
11213         * plugin.c (plugin_name_args): Add version.
11214         (register_plugin_info): New.
11215         (register_callback): Handle PLUGIN_INFO.
11216         (try_init_one_plugin): New.
11217         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
11218         if failed to init.
11219         (finalize_one_plugin): New.
11220         (finalize_plugins): New.
11221         (print_one_plugin): New.
11222         (print_plugins_versions): New.
11223         * plugin.h (print_plugins_versions): New.
11224         (finalize_plugins): New.
11225         * toplev.c (compile_file): Don't call initialize_plugins.
11226         (print_version): Call print_plugins_versions.
11227         (toplev_main): Call initialize_plugins. Print version if needed.
11228         Call finalize_plugins.
11229
11230 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
11231
11232         * common.opt (fversion): New.
11233         * gcc.c (print_version): New.
11234         (process_command): Don't print the version. Just set print_version.
11235         (main): Print version. Call subprocesses if print_version and
11236         verbose_flag are set.
11237         * opts.c (common_handle_option): Handle OPT_fversion.
11238
11239 2009-04-16  Richard Guenther  <rguenther@suse.de>
11240             Ira Rosen  <irar@il.ibm.com>
11241
11242         PR tree-optimization/39698
11243         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
11244         type of the reduction variable.  Only generate the def if
11245         it is needed.
11246
11247         * omp-low.c (expand_omp_for_generic): When converting to a pointer
11248         make sure to first convert to an integer of the same precision.
11249         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
11250         the type of the evolution correctly in computing the new
11251         induction variable base.
11252
11253 2009-04-16  Richard Guenther  <rguenther@suse.de>
11254
11255         PR middle-end/39625
11256         * tree-cfg.c (make_blocks): Split statements with to-be
11257         abnormal SSA names on the lhs.
11258
11259 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
11260
11261         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
11262         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
11263         * c-typeck.c (really_start_incremental_init): Likewise.
11264         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
11265         (TARGET_INITIALIZER): Remove it.
11266         * target.h (struct target): Remove vector_opaque_p.
11267         * tree.c (build_opaque_vector_type): New.
11268         * tree.h (TYPE_VECTOR_OPAQUE): New.
11269         (build_opaque_vector_type): Declare.
11270         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
11271         * config/rs6000/rs6000.c (build_opaque_vector_type,
11272         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
11273         (rs6000_init_builtins): Use build_opaque_vector_type for
11274         opaque_V4SI_type_node.
11275
11276 2009-04-15  Catherine Moore  <clm@codesourcery.com>
11277
11278         * debug.h (set_name):  Declare.
11279         * dwarf2out.c (dwarf2out_set_name): Declare.
11280         (dwarf2_debug_hooks): Add set_name.
11281         (find_AT_string): New.
11282         (add_AT_string): Call find_AT_string.
11283         (dwarf2out_set_name): New.
11284         * cp/decl.c (grokdeclarator): Call set_name.
11285         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
11286         * debug.c (do_nothing_debug_hooks):  Likewise.
11287         * dbxout.c (dbx_debug_hooks): Likewise.
11288         * sdbout.c (sdb_debug_hooks): Likewise.
11289
11290 2009-04-15  Michael Eager  <eager@eagercon.com>
11291
11292         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
11293         reg for single-precision FPU.
11294         * config/rs6000/rs6000.md (movsi_internal1): Only for
11295         !TARGET_SINGLE_FPU.
11296         (movsi_internal1_single): New. Add pattern to move SI values to/from
11297         single-precision FP regs.
11298
11299 2009-04-15  Richard Guenther  <rguenther@suse.de>
11300
11301         * omp-low.c (lower_rec_input_clauses): Build correct address
11302         expressions.
11303         (expand_omp_for_generic): Fix multiplication type.
11304         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
11305         (generate_memset_zero): Fix types.
11306         * tree-profile.c (prepare_instrumented_value): Correctly
11307         widen a pointer.
11308
11309 2009-04-15  Ian Lance Taylor  <iant@google.com>
11310
11311         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
11312         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
11313         for -Wall and for -Wc++-compat.
11314         (c_common_post_options): For C++, set warn_enum_compare if not
11315         already set.
11316         * c-tree.h (struct c_expr): Add field original_type.
11317         (build_external_ref): Update declaration.
11318         * c-parser.c (c_parser_braced_init): Set original_type.
11319         (c_parser_initelt): Likewise.
11320         (c_parser_expr_no_commas): Likewise.
11321         (c_parser_conditional_expression): Likewise.
11322         (c_parser_cast_expression): Likewise.
11323         (c_parser_unary_expression): Likewise.  Pull setting of
11324         original_code to top of function.
11325         (c_parser_sizeof_expression): Set original_type.
11326         (c_parser_alignof_expression): Likewise.
11327         (c_parser_postfix_expression): Likewise.  Pull setting of
11328         original_code to top of function.
11329         (c_parser_postfix_expression_after_paren_type): Set original_type.
11330         (c_parser_postfix_expression_after_primary): Likewise.
11331         (c_parser_expression): Likewise.
11332         * c-typeck.c (build_external_ref): Add type parameter.  Change all
11333         callers.
11334         (c_expr_sizeof_expr): Set original_type field.
11335         (parser_build_unary_op): Likewise.
11336         (parser_build_binary_op): Likewise.  Optionally warn about
11337         comparisons of enums of different types.
11338         (digest_init): Set original_type field.
11339         (really_start_incremental_init): Likewise.
11340         (push_init_level, pop_init_level): Likewise.
11341         * doc/invoke.texi (Warning Options): -Wenum-compare now
11342         supported in C.
11343
11344 2009-04-15  Richard Guenther  <rguenther@suse.de>
11345
11346         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
11347         out a necessary conversion.
11348         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
11349         names we didn't value number.
11350         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
11351
11352 2009-04-15  Richard Guenther  <rguenther@suse.de>
11353
11354         PR tree-optimization/39764
11355         * tree-ssa-ccp.c (get_value): Canonicalize value with
11356         canonicalize_float_value.
11357
11358 2009-04-15  Jan Hubicka  <jh@suse.cz>
11359
11360         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
11361         Wrong version of patch.
11362
11363 2009-04-15  Jan Hubicka  <jh@suse.cz>
11364
11365         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
11366
11367 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
11368
11369         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
11370         our distinct integral and vector types.
11371
11372 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
11373
11374         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
11375         * init.c (build_vtbl_address): Remove call to assemble_external.
11376
11377 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
11378
11379         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
11380         output for other floating point modes.
11381
11382 2009-04-14  Diego Novillo  <dnovillo@google.com>
11383
11384         * diagnostic.c (diagnostic_report_diagnostic): Do not
11385         warn about loaded plugins for DK_ERROR and DK_WARNING.
11386         * c-decl.c (declspecs_add_type): Move call to
11387         invoke_plugin_callbacks ...
11388         * c-parser.c (c_parser_declspecs): ... here.
11389         * plugin.c (dump_active_plugins): Tidy output.
11390
11391 2009-04-14  Diego Novillo  <dnovillo@google.com>
11392             Le-Chun Wu  <lcwu@google.com>
11393
11394         * configure.ac: Add --enable-plugin support.
11395         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
11396         * Makefile.in (PLUGIN_H): Define.
11397         Export ENABLE_PLUGIN and GMPINC to site.exp.
11398         Add PLUGINLIBS to link command.
11399         Add/modify dependencies for plugin.o and files including plugin.h.
11400         (plugin.o): New.
11401         * config.in: Regenerate.
11402
11403         * opts.c (common_handle_option): Handle OPT_fplugin_ and
11404         OPT_fplugin_arg_.
11405
11406 2009-04-14  Le-Chun Wu  <lcwu@google.com>
11407
11408         * tree-pass.h (register_one_dump_file): Add a prototype for
11409         register_one_dump_file.
11410         * toplev.c (compile_file): Call initialize_plugins.
11411         (do_compile): Call invoke_plugin_callbacks.
11412         (toplev_main): Call invoke_plugin_callbacks.
11413         * common.opt: Add -fplugin= and -fplugin-arg-.
11414         * gcc-plugin.h: New public header file for plugins to include.
11415         * plugin.c: New source file.
11416         * plugin.h: New internal header file.
11417         * passes.c (register_one_dump_file): Make it external.
11418
11419         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
11420
11421 2009-04-14  Diego Novillo  <dnovillo@google.com>
11422
11423         * doc/plugins.texi: New.
11424         * doc/gccint.texi: Add reference to Plugins chapter.
11425         * doc/invoke.texi: Document -fplugin and -fplugin-arg
11426         * diagnostic.c (diagnostic_report_diagnostic): Warn about
11427         loaded plugins, if any.
11428         * timevar.def (TV_PLUGIN_INIT): Define.
11429         (TV_PLUGIN_RUN): Define.
11430         * plugin.c: Include timevar.h
11431         (plugins_active_p): New.
11432         (dump_active_plugins): New.
11433         (debug_active_plugins): New.
11434
11435 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
11436
11437         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
11438         library paths.
11439         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
11440
11441 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
11442
11443         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
11444         the same as a minus without a shift.
11445
11446 2009-04-14  Nick Clifton  <nickc@redhat.com>
11447
11448         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
11449         comparisons with small integers will always produce a short
11450         branch.
11451
11452 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
11453
11454         Merge:
11455         2008-12-19  Diego Novillo  <dnovillo@google.com>
11456
11457         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
11458
11459 2009-04-14  Richard Guenther  <rguenther@suse.de>
11460
11461         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
11462         verification.
11463         (verify_gimple_assign_binary): Likewise.  Handle shifts and
11464         rotates correctly.
11465         (verify_gimple_phi): Print the mismatched argument position.
11466         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
11467         Fix types.
11468         (vect_update_init_of_dr): Likewise.
11469         * matrix-reorg.c (transform_access_sites): Do what the
11470         comment suggests.
11471         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
11472
11473 2009-04-13  Michael Eager  <eager@eagercon.com>
11474
11475         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
11476         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
11477         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
11478         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
11479         remove duplicate config
11480
11481 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
11482
11483         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
11484         file_name:line_number type locator of the call site.
11485
11486 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
11487
11488         * genautomata.c: Put blank after comma.
11489         (automaton_decls): New.
11490         (struct unit_usage): Add comments to member next.
11491         (store_alt_unit_usage): Keep the list ordered.
11492         (unit_present_on_list_p, equal_alternatives_p): New.
11493         (check_regexp_units_distribution): Check units distribution
11494         correctness correctly.
11495         (main): Don't write automata if error is found.  Return correct
11496         exit code.
11497
11498         * config/m68k/cf.md (cfv4_ds): Remove.
11499         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
11500         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
11501
11502         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
11503         power4-load-ext, power4-store, power4-store-update,
11504         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
11505         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
11506         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
11507         power4-sqrt, power4-isync): Modify reservation to make correct
11508         unit distribution to automata.
11509
11510         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
11511         power5-store-update, power5-two, power5-three, power5-lmul,
11512         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
11513
11514 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
11515
11516         * except.c (pass_set_nothrow_function_flags): Set name and add
11517         TODO_dump_func.
11518         (set_nothrow_function_flags): Mention in the dump file when
11519         changing a function to nothrow.
11520
11521 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
11522
11523         PR/39066
11524         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
11525         instead of unsigned long.
11526
11527 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11528
11529         * config/arm/arm.c (return_used_this_function): Remove.
11530         (arm_output_function_prologue): Remove use of
11531         return_used_this_function.
11532         (output_return_instruction): Replace use of
11533         return_used_this_function
11534         by cfun->machine->return_used_this_function.
11535         (arm_output_epilogue): Likewise.
11536         (arm_output_function_epilogue): Likewise.
11537         (thumb_unexpanded_epilogue): Likewise.
11538         * config/arm/arm.h (struct machine_function):
11539         New member return_used_this_function.
11540
11541 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
11542
11543         * doc/install.texi: Correct description of default directory for
11544         --with-gxx-include-dir.
11545
11546 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
11547
11548         * fold-const.c (build_range_check): Properly deal with enumeral and
11549         boolean base types.
11550
11551 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
11552
11553         * doc/invoke.texi (max_gcse_passes): Remove documentation.
11554         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
11555         * params.h (MAX_GCSE_PASSES): Remove.
11556         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
11557         in sequence.  Remove ability to run multiple passes.
11558         (bypass_jumps): Report run as third CPROP pass.
11559
11560 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
11561
11562         PR middle-end/39651
11563         * except.c (can_throw_external): Look at each insn in a SEQUENCE
11564         when deciding whether the whole SEQUENCE can throw.
11565
11566 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
11567
11568         PR target/39740
11569         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
11570         offseted label references.
11571
11572 2009-04-11  Jan Hubicka  <jh@suse.cz>
11573
11574         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
11575
11576 2009-04-11  Richard Guenther  <rguenther@suse.de>
11577
11578         PR middle-end/39732
11579         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
11580         return variables as TREE_ADDRESSABLE.
11581
11582 2009-04-11  Richard Guenther  <rguenther@suse.de>
11583
11584         PR tree-optimization/39713
11585         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
11586         reference trees have SSA_NAME operands.
11587
11588 2009-04-11  Richard Guenther  <rguenther@suse.de>
11589
11590         PR c/39712
11591         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
11592         address expressions.
11593
11594 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
11595
11596         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
11597         match changes in Cygwin 1.7
11598         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
11599         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
11600
11601 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
11602
11603         PR tree-optimization/39701
11604         * doc/invoke.texi (Optimization Options): Document change in
11605         meaning and initialization of -fdelete-null-pointer-checks.
11606
11607 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
11608
11609         PR middle-end/39701
11610         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
11611
11612         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
11613         here.
11614
11615         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
11616
11617 2009-04-10  Chao-ying Fu  <fu@mips.com>
11618
11619         * doc/tm.texi (Instruction Output): Document
11620         TARGET_ASM_FINAL_POSTSCAN_INSN.
11621         * target.h (final_postscan_insn): New field in asm_out.
11622         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
11623         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
11624         * final.c (final_scan_insn): Call
11625         targetm.asm_out.final_postscan_insn after outputting
11626         an asm macro and a normal instruction.
11627
11628         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
11629         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
11630         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
11631         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
11632         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
11633
11634 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
11635
11636         PR middle-end/39701
11637         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
11638         variables as non-NULL even with -fdelete-null-pointer-checks.
11639
11640 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
11641
11642         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
11643
11644 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
11645
11646         PR target/39678
11647         * config/i386/i386.c (classify_argument): Handle SCmode with
11648         (bit_offset % 64) != 0.
11649
11650 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
11651
11652         * doc/invoke.texi (Optimize Options): Add cross-reference to
11653         -Q --help=optimizers examples.
11654
11655 2009-04-10  Ben Elliston  <bje@au.ibm.com>
11656
11657         PR target/36800
11658         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
11659         regalign for the reg == fpr and TDmode case.
11660
11661 2009-04-09  David Ayers  <ayers@fsfe.org>
11662
11663         PR objc/29200
11664         * objc/objc-act.c (warn_with_method): Remove helper function.
11665         (check_duplicates): Call warning and inform directly.
11666         (really_start_method): Likewise.
11667
11668 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
11669
11670         * expmed.c (expand_divmod): Always use a comparison for a division
11671         by a large unsigned integer.
11672
11673         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
11674         for things others than variables or functions as nonzero.
11675
11676 2009-04-09  Nick Clifton  <nickc@redhat.com>
11677
11678         * unwind-compat.c: Change copyright header to refer to version
11679         3 of the GNU General Public License with version 3.1 of the
11680         GCC Runtime Library Exception and to point readers at the
11681         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
11682         * config/alpha/crtfastmath.c: Likewise.
11683         * config/alpha/linux-unwind.h: Likewise.
11684         * config/alpha/qrnnd.asm: Likewise.
11685         * config/alpha/vms-crt0-64.c: Likewise.
11686         * config/alpha/vms-crt0.c: Likewise.
11687         * config/alpha/vms-dwarf2.asm: Likewise.
11688         * config/alpha/vms-dwarf2eh.asm: Likewise.
11689         * config/alpha/vms-psxcrt0-64.c: Likewise.
11690         * config/alpha/vms-psxcrt0.c: Likewise.
11691         * config/alpha/vms_tramp.asm: Likewise.
11692         * config/arc/initfini.c: Likewise.
11693         * config/arc/lib1funcs.asm: Likewise.
11694         * config/arm/bpabi-v6m.S: Likewise.
11695         * config/arm/bpabi.S: Likewise.
11696         * config/arm/bpabi.c: Likewise.
11697         * config/arm/crti.asm: Likewise.
11698         * config/arm/crtn.asm: Likewise.
11699         * config/arm/ieee754-df.S: Likewise.
11700         * config/arm/ieee754-sf.S: Likewise.
11701         * config/arm/lib1funcs.asm: Likewise.
11702         * config/arm/libunwind.S: Likewise.
11703         * config/arm/linux-atomic.c: Likewise.
11704         * config/arm/mmintrin.h: Likewise.
11705         * config/arm/pr-support.c: Likewise.
11706         * config/arm/unaligned-funcs.c: Likewise.
11707         * config/arm/unwind-arm.c: Likewise.
11708         * config/arm/unwind-arm.h: Likewise.
11709         * config/avr/libgcc.S: Likewise.
11710         * config/bfin/crti.s: Likewise.
11711         * config/bfin/crtlibid.s: Likewise.
11712         * config/bfin/crtn.s: Likewise.
11713         * config/bfin/lib1funcs.asm: Likewise.
11714         * config/bfin/linux-unwind.h: Likewise.
11715         * config/cris/arit.c: Likewise.
11716         * config/cris/cris_abi_symbol.c: Likewise.
11717         * config/darwin-64.c: Likewise.
11718         * config/darwin-crt2.c: Likewise.
11719         * config/darwin-crt3.c: Likewise.
11720         * config/darwin.h: Likewise.
11721         * config/dbxelf.h: Likewise.
11722         * config/dfp-bit.c: Likewise.
11723         * config/dfp-bit.h: Likewise.
11724         * config/elfos.h: Likewise.
11725         * config/fixed-bit.c: Likewise.
11726         * config/fixed-bit.h: Likewise.
11727         * config/fp-bit.c: Likewise.
11728         * config/fp-bit.h: Likewise.
11729         * config/fr30/crti.asm: Likewise.
11730         * config/fr30/crtn.asm: Likewise.
11731         * config/fr30/lib1funcs.asm: Likewise.
11732         * config/freebsd-spec.h: Likewise.
11733         * config/frv/cmovd.c: Likewise.
11734         * config/frv/cmovh.c: Likewise.
11735         * config/frv/cmovw.c: Likewise.
11736         * config/frv/frvbegin.c: Likewise.
11737         * config/frv/frvend.c: Likewise.
11738         * config/frv/lib1funcs.asm: Likewise.
11739         * config/glibc-stdint.h: Likewise.
11740         * config/h8300/clzhi2.c: Likewise.
11741         * config/h8300/crti.asm: Likewise.
11742         * config/h8300/crtn.asm: Likewise.
11743         * config/h8300/ctzhi2.c: Likewise.
11744         * config/h8300/fixunssfsi.c: Likewise.
11745         * config/h8300/lib1funcs.asm: Likewise.
11746         * config/h8300/parityhi2.c: Likewise.
11747         * config/h8300/popcounthi2.c: Likewise.
11748         * config/i386/ammintrin.h: Likewise.
11749         * config/i386/att.h: Likewise.
11750         * config/i386/avxintrin.h: Likewise.
11751         * config/i386/biarch64.h: Likewise.
11752         * config/i386/bmmintrin.h: Likewise.
11753         * config/i386/cpuid.h: Likewise.
11754         * config/i386/cross-stdarg.h: Likewise.
11755         * config/i386/crtfastmath.c: Likewise.
11756         * config/i386/crtprec.c: Likewise.
11757         * config/i386/cygming-crtbegin.c: Likewise.
11758         * config/i386/cygming-crtend.c: Likewise.
11759         * config/i386/cygwin.asm: Likewise.
11760         * config/i386/emmintrin.h: Likewise.
11761         * config/i386/gmm_malloc.h: Likewise.
11762         * config/i386/gthr-win32.c: Likewise.
11763         * config/i386/i386.h: Likewise.
11764         * config/i386/immintrin.h: Likewise.
11765         * config/i386/linux-unwind.h: Likewise.
11766         * config/i386/linux64.h: Likewise.
11767         * config/i386/mm3dnow.h: Likewise.
11768         * config/i386/mmintrin-common.h: Likewise.
11769         * config/i386/mmintrin.h: Likewise.
11770         * config/i386/nmmintrin.h: Likewise.
11771         * config/i386/pmm_malloc.h: Likewise.
11772         * config/i386/pmmintrin.h: Likewise.
11773         * config/i386/smmintrin.h: Likewise.
11774         * config/i386/sol2-c1.asm: Likewise.
11775         * config/i386/sol2-ci.asm: Likewise.
11776         * config/i386/sol2-cn.asm: Likewise.
11777         * config/i386/sol2-gc1.asm: Likewise.
11778         * config/i386/tmmintrin.h: Likewise.
11779         * config/i386/unix.h: Likewise.
11780         * config/i386/w32-unwind.h: Likewise.
11781         * config/i386/wmmintrin.h: Likewise.
11782         * config/i386/x86-64.h: Likewise.
11783         * config/i386/x86intrin.h: Likewise.
11784         * config/i386/xmmintrin.h: Likewise.
11785         * config/ia64/crtbegin.asm: Likewise.
11786         * config/ia64/crtend.asm: Likewise.
11787         * config/ia64/crtfastmath.c: Likewise.
11788         * config/ia64/crti.asm: Likewise.
11789         * config/ia64/crtn.asm: Likewise.
11790         * config/ia64/fde-glibc.c: Likewise.
11791         * config/ia64/lib1funcs.asm: Likewise.
11792         * config/ia64/linux-unwind.h: Likewise.
11793         * config/ia64/quadlib.c: Likewise.
11794         * config/ia64/unwind-ia64.c: Likewise.
11795         * config/linux.h: Likewise.
11796         * config/m32c/m32c-lib1.S: Likewise.
11797         * config/m32c/m32c-lib2-trapv.c: Likewise.
11798         * config/m32c/m32c-lib2.c: Likewise.
11799         * config/m32r/initfini.c: Likewise.
11800         * config/m68hc11/larith.asm: Likewise.
11801         * config/m68hc11/m68hc11-crt0.S: Likewise.
11802         * config/m68k/cf.md: Likewise.
11803         * config/m68k/crti.s: Likewise.
11804         * config/m68k/crtn.s: Likewise.
11805         * config/m68k/lb1sf68.asm: Likewise.
11806         * config/m68k/linux-unwind.h: Likewise.
11807         * config/mcore/crti.asm: Likewise.
11808         * config/mcore/crtn.asm: Likewise.
11809         * config/mcore/lib1.asm: Likewise.
11810         * config/mips/linux-unwind.h: Likewise.
11811         * config/mips/loongson.h: Likewise.
11812         * config/mips/mips16.S: Likewise.
11813         * config/mmix/crti.asm: Likewise.
11814         * config/mmix/crtn.asm: Likewise.
11815         * config/pa/fptr.c: Likewise.
11816         * config/pa/hpux-unwind.h: Likewise.
11817         * config/pa/lib2funcs.asm: Likewise.
11818         * config/pa/linux-atomic.c: Likewise.
11819         * config/pa/linux-unwind.h: Likewise.
11820         * config/pa/milli64.S: Likewise.
11821         * config/pa/quadlib.c: Likewise.
11822         * config/pa/stublib.c: Likewise.
11823         * config/picochip/libgccExtras/adddi3.asm: Likewise.
11824         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
11825         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
11826         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
11827         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
11828         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
11829         * config/picochip/libgccExtras/divmod15.asm: Likewise.
11830         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
11831         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
11832         * config/picochip/libgccExtras/longjmp.asm: Likewise.
11833         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
11834         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
11835         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
11836         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
11837         * config/picochip/libgccExtras/setjmp.asm: Likewise.
11838         * config/picochip/libgccExtras/subdi3.asm: Likewise.
11839         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
11840         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
11841         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
11842         * config/rs6000/750cl.h: Likewise.
11843         * config/rs6000/altivec.h: Likewise.
11844         * config/rs6000/biarch64.h: Likewise.
11845         * config/rs6000/crtresfpr.asm: Likewise.
11846         * config/rs6000/crtresgpr.asm: Likewise.
11847         * config/rs6000/crtresxfpr.asm: Likewise.
11848         * config/rs6000/crtresxgpr.asm: Likewise.
11849         * config/rs6000/crtsavfpr.asm: Likewise.
11850         * config/rs6000/crtsavgpr.asm: Likewise.
11851         * config/rs6000/darwin-asm.h: Likewise.
11852         * config/rs6000/darwin-fallback.c: Likewise.
11853         * config/rs6000/darwin-fpsave.asm: Likewise.
11854         * config/rs6000/darwin-ldouble.c: Likewise.
11855         * config/rs6000/darwin-tramp.asm: Likewise.
11856         * config/rs6000/darwin-unwind.h: Likewise.
11857         * config/rs6000/darwin-vecsave.asm: Likewise.
11858         * config/rs6000/darwin-world.asm: Likewise.
11859         * config/rs6000/e500crtres32gpr.asm: Likewise.
11860         * config/rs6000/e500crtres64gpr.asm: Likewise.
11861         * config/rs6000/e500crtres64gprctr.asm: Likewise.
11862         * config/rs6000/e500crtrest32gpr.asm: Likewise.
11863         * config/rs6000/e500crtrest64gpr.asm: Likewise.
11864         * config/rs6000/e500crtresx32gpr.asm: Likewise.
11865         * config/rs6000/e500crtresx64gpr.asm: Likewise.
11866         * config/rs6000/e500crtsav32gpr.asm: Likewise.
11867         * config/rs6000/e500crtsav64gpr.asm: Likewise.
11868         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
11869         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
11870         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
11871         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
11872         * config/rs6000/eabi-ci.asm: Likewise.
11873         * config/rs6000/eabi-cn.asm: Likewise.
11874         * config/rs6000/eabi.asm: Likewise.
11875         * config/rs6000/linux-unwind.h: Likewise.
11876         * config/rs6000/linux64.h: Likewise.
11877         * config/rs6000/paired.h: Likewise.
11878         * config/rs6000/paired.md: Likewise.
11879         * config/rs6000/ppc64-fp.c: Likewise.
11880         * config/rs6000/ppu_intrinsics.h: Likewise.
11881         * config/rs6000/rs6000.h: Likewise.
11882         * config/rs6000/si2vmx.h: Likewise.
11883         * config/rs6000/sol-ci.asm: Likewise.
11884         * config/rs6000/sol-cn.asm: Likewise.
11885         * config/rs6000/spe.h: Likewise.
11886         * config/rs6000/spu2vmx.h: Likewise.
11887         * config/rs6000/sysv4.h: Likewise.
11888         * config/rs6000/tramp.asm: Likewise.
11889         * config/rs6000/vec_types.h: Likewise.
11890         * config/s390/linux-unwind.h: Likewise.
11891         * config/s390/tpf-unwind.h: Likewise.
11892         * config/score/crti.asm: Likewise.
11893         * config/score/crtn.asm: Likewise.
11894         * config/sh/crt1.asm: Likewise.
11895         * config/sh/crti.asm: Likewise.
11896         * config/sh/crtn.asm: Likewise.
11897         * config/sh/divtab-sh4-300.c: Likewise.
11898         * config/sh/divtab-sh4.c: Likewise.
11899         * config/sh/divtab.c: Likewise.
11900         * config/sh/lib1funcs-4-300.asm: Likewise.
11901         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
11902         * config/sh/lib1funcs.asm: Likewise.
11903         * config/sh/lib1funcs.h: Likewise.
11904         * config/sh/linux-atomic.asm: Likewise.
11905         * config/sh/linux-unwind.h: Likewise.
11906         * config/sh/shmedia.h: Likewise.
11907         * config/sh/sshmedia.h: Likewise.
11908         * config/sh/ushmedia.h: Likewise.
11909         * config/sparc/crtfastmath.c: Likewise.
11910         * config/sparc/linux-unwind.h: Likewise.
11911         * config/sparc/sol2-c1.asm: Likewise.
11912         * config/sparc/sol2-ci.asm: Likewise.
11913         * config/sparc/sol2-cn.asm: Likewise.
11914         * config/spu/divmodti4.c: Likewise.
11915         * config/spu/divv2df3.c: Likewise.
11916         * config/spu/float_disf.c: Likewise.
11917         * config/spu/float_unsdidf.c: Likewise.
11918         * config/spu/float_unsdisf.c: Likewise.
11919         * config/spu/float_unssidf.c: Likewise.
11920         * config/spu/mfc_multi_tag_release.c: Likewise.
11921         * config/spu/mfc_multi_tag_reserve.c: Likewise.
11922         * config/spu/mfc_tag_release.c: Likewise.
11923         * config/spu/mfc_tag_reserve.c: Likewise.
11924         * config/spu/mfc_tag_table.c: Likewise.
11925         * config/spu/multi3.c: Likewise.
11926         * config/spu/spu_internals.h: Likewise.
11927         * config/spu/spu_intrinsics.h: Likewise.
11928         * config/spu/spu_mfcio.h: Likewise.
11929         * config/spu/vec_types.h: Likewise.
11930         * config/spu/vmx2spu.h: Likewise.
11931         * config/stormy16/stormy16-lib2.c: Likewise.
11932         * config/svr4.h: Likewise.
11933         * config/sync.c: Likewise.
11934         * config/v850/lib1funcs.asm: Likewise.
11935         * config/vxlib-tls.c: Likewise.
11936         * config/vxlib.c: Likewise.
11937         * config/vxworks-dummy.h: Likewise.
11938         * config/xtensa/crti.asm: Likewise.
11939         * config/xtensa/crtn.asm: Likewise.
11940         * config/xtensa/ieee754-df.S: Likewise.
11941         * config/xtensa/ieee754-sf.S: Likewise.
11942         * config/xtensa/lib1funcs.asm: Likewise.
11943         * config/xtensa/lib2funcs.S: Likewise.
11944         * config/xtensa/linux-unwind.h: Likewise.
11945         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
11946         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
11947         * coretypes.h: Likewise.
11948         * crtstuff.c: Likewise.
11949         * defaults.h: Likewise.
11950         * dwarf2.h: Likewise.
11951         * emutls.c: Likewise.
11952         * gbl-ctors.h: Likewise.
11953         * gcov-io.h: Likewise.
11954         * ginclude/float.h: Likewise.
11955         * ginclude/iso646.h: Likewise.
11956         * ginclude/stdarg.h: Likewise.
11957         * ginclude/stdbool.h: Likewise.
11958         * ginclude/stddef.h: Likewise.
11959         * ginclude/stdfix.h: Likewise.
11960         * ginclude/stdint-gcc.h: Likewise.
11961         * ginclude/tgmath.h: Likewise.
11962         * gthr-aix.h: Likewise.
11963         * gthr-dce.h: Likewise.
11964         * gthr-gnat.c: Likewise.
11965         * gthr-gnat.h: Likewise.
11966         * gthr-lynx.h: Likewise.
11967         * gthr-mipssde.h: Likewise.
11968         * gthr-nks.h: Likewise.
11969         * gthr-posix.c: Likewise.
11970         * gthr-posix.h: Likewise.
11971         * gthr-posix95.h: Likewise.
11972         * gthr-rtems.h: Likewise.
11973         * gthr-single.h: Likewise.
11974         * gthr-solaris.h: Likewise.
11975         * gthr-tpf.h: Likewise.
11976         * gthr-vxworks.h: Likewise.
11977         * gthr-win32.h: Likewise.
11978         * gthr.h: Likewise.
11979         * libgcc2.c: Likewise.
11980         * libgcc2.h: Likewise.
11981         * libgcov.c: Likewise.
11982         * tsystem.h: Likewise.
11983         * typeclass.h: Likewise.
11984         * unwind-c.c: Likewise.
11985         * unwind-compat.h: Likewise.
11986         * unwind-dw2-fde-compat.c: Likewise.
11987         * unwind-dw2-fde-darwin.c: Likewise.
11988         * unwind-dw2-fde-glibc.c: Likewise.
11989         * unwind-dw2-fde.c: Likewise.
11990         * unwind-dw2-fde.h: Likewise.
11991         * unwind-dw2.c: Likewise.
11992         * unwind-dw2.h: Likewise.
11993         * unwind-generic.h: Likewise.
11994         * unwind-pe.h: Likewise.
11995         * unwind-sjlj.c: Likewise.
11996         * unwind.inc: Likewise.
11997         * config/arm/neon-gen.ml: Change generated copyright header to
11998         refer to version 3 of the GNU General Public License with
11999         version 3.1 of the GCC Runtime Library Exception and to point
12000         readers at the COPYING3 and COPYING3.RUNTIME files and the
12001         FSF's license web page.
12002         * config/arm/arm_neon.h: Regenerate.
12003
12004 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
12005
12006         * config/cris/cris.md: Change copyright header to refer to version
12007         3 of the GNU General Public License.
12008         * doc/install.texi2html: Change copyright header to refer to version
12009         3 of the GNU General Public License and to point readers at the
12010         COPYING3 file and the FSF's license web page.
12011         * config/vax/linux.h: Likewise.
12012
12013 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
12014
12015         * config/i386/i386.md (cmpcc): New.
12016         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
12017         (sync_compare_and_swap_cc*): Delete.
12018
12019         * config/s390/s390.c (s390_compare_emitted): Remove.
12020         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
12021         s390_compare_emitted used to be handled.  Assert that modes match.
12022         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
12023         refer to sync_compare_and_swap_ccsi.
12024         * config/s390/s390.h (s390_compare_emitted): Remove.
12025         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
12026         instead of s390_compare_emitted.
12027         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
12028         instead of s390_compare_emitted.
12029         * config/s390/s390.md (cmpcc): New.
12030         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
12031         CC_REGNUM, do not pretend it's set.
12032         (sync_compare_and_swap_cc*): Delete.
12033         * config/s390/predicates.md (cc_reg_operand): New.
12034
12035         * expr.c (sync_compare_and_swap_cc): Delete.
12036         * optabs.h (sync_compare_and_swap_cc): Delete.
12037         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
12038         is being used with can_compare_p.
12039         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
12040         (find_cc_set): New.
12041         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
12042         look for a MODE_CC set instead.  Use emit_store_flag.
12043         (expand_compare_and_swap_loop): Likewise, with some additional
12044         complication to avoid a force_reg when useless.  Use
12045         emit_cmp_and_jump_insns.
12046         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
12047         * doc/md.texi (sync_compare_and_swap_cc): Merge with
12048         sync_compare_and_swap documentation.
12049
12050 2009-04-09  Jan Hubicka  <jh@suse.cz>
12051
12052         * except.c (find_prev_try): Break out from ....
12053         (duplicate_eh_regions): ... here; properly update prev_try pointers
12054         when duplication part of tree.
12055         (dump_eh_tree): Improve dumping.
12056         (verify_eh_region): New.
12057         (verify_eh_tree): Use it.
12058
12059 2009-04-06  Richard Guenther  <rguenther@suse.de>
12060
12061         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
12062         &ARRAY addresses by adjusting their types and prepending
12063         a conversion.
12064         * tree-cfg.c (verify_gimple_assign_single): Verify that
12065         addresses are correct.
12066
12067 2009-04-09  Richard Guenther  <rguenther@suse.de>
12068
12069         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
12070         indices into an array reference if possible.
12071         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
12072         Fold POINTER_PLUS_EXPR statements with invariant address.
12073
12074 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
12075
12076         PR target/39634
12077         * config.gcc (powerpc64-*-linux*): Always build biarch.
12078
12079 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
12080
12081         PR c/39613
12082         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
12083         it and pedwarn if this results in an INTEGER_CST.
12084
12085 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12086
12087         * doc/install.texi: Update minimum GMP version.  Remove obsolete
12088         text in MPFR section.
12089
12090 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
12091
12092         * dwarf2out.c (class_scope_p): New static inline.
12093         (class_or_namespace_scope_p): Use it.
12094         (gen_variable_die): Use DW_TAG_member tag for static data member
12095         declarations instead of DW_TAG_variable.
12096
12097         PR middle-end/39573
12098         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
12099         variables.
12100
12101 2009-04-08  Richard Guenther  <rguenther@suse.de>
12102
12103         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
12104         valueize random data.
12105
12106 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
12107
12108         * config.gcc (aix tm_file):  Add aix-stdint.h.
12109         (aix tm clause use_gcc_stdint):  Set to wrap.
12110         * config/rs6000/aix-stdint.h:  New file.
12111
12112 2009-04-08  Richard Guenther  <rguenther@suse.de>
12113
12114         PR middle-end/36291
12115         * tree-dfa.c (add_referenced_var): Do not recurse into
12116         global initializers.
12117         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
12118         exposed variables.
12119         (fold_const_aggregate_ref): Likewise.
12120
12121 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
12122
12123         * recog.c (ordered_comparison_operator): New.
12124         * gensupport.c (std_preds): Add it.
12125         * doc/md.texi (Machine-Independent Predicates): Document it.
12126
12127 2009-04-08  Jan Hubicka  <jh@suse.cz>
12128
12129         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
12130         * function.h (rtl_eh): Remove exception_handler_label_map.
12131         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
12132         remove_exception_handler_label, for_each_eh_label_1): Remove.
12133         (rtl_remove_unreachable_regions): Remove.
12134         (convert_from_eh_region_ranges): Do not remove unreachable regions.
12135         (find_exception_handler_labels): Don't build the hashtable.
12136         (maybe_remove_eh_handler): Remove.
12137         (for_each_eh_label): Rewrite to walk the tree.
12138         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
12139         * except.h (maybe_remove_eh_handler): Remove.
12140         * passes.c (init_optimization_passes): Schedule second EH cleanup
12141         before out-of-ssa.
12142         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
12143         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
12144
12145 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
12146
12147         * genoutput.c (validate_optab_operands): New.
12148         (gen_insn, gen_expand): Call it.
12149
12150         * genflags.c (gen_insn): Detect misused iterators.
12151         (main): Pass line_no to gen_insn, exit with status 1 on error.
12152
12153         * genextract.c (line_no): Make global.
12154         (VEC_safe_set_locstr): Change assertion to error message.
12155         (main): Exit with status 1 on error.
12156
12157 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
12158
12159         PR c/39614
12160         PR c/39673
12161         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
12162         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
12163         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
12164         * c-convert.c (convert): Do not call fold on results of conversion
12165         functions when the result is a C_MAYBE_CONST_EXPR.
12166         * c-parser.c (c_parser_postfix_expression): Do not fold condition
12167         of __builtin_choose_expr.
12168         * c-typeck.c (remove_c_maybe_const_expr): New.
12169         (build_unary_op, build_conditional_expr, build_compound_expr,
12170         build_binary_op, c_objc_common_truthvalue_conversion): Call
12171         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
12172         integer operands.
12173
12174 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
12175
12176         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
12177         CODE to produce a new one. Add a prototype to use fold_convert_const
12178
12179 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
12180
12181         PR bootstrap/39660
12182         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
12183         mix declarations and code.
12184
12185 2009-04-08  Ben Elliston  <bje@au.ibm.com>
12186
12187         * gcc.c: Replace `CC' with `GCC' throughout.
12188
12189 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
12190
12191         * doc/invoke.texi: Document Atom support.
12192
12193 2009-04-07  Jason Merrill  <jason@redhat.com>
12194
12195         PR c++/25185
12196         * c-common.h, c-common.c: Add flag_pretty_templates.
12197         * c-opts.c (c_common_handle_option): Set it.
12198         * c.opt: Add -fno-pretty-templates.
12199         * doc/invoke.texi (C++ Dialect Options): Likewise.
12200
12201 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
12202
12203         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
12204         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
12205         (ia64_expand_builtin): Likewise.
12206
12207 2009-04-07  Martin Jambor  <mjambor@suse.cz>
12208
12209         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
12210         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
12211         ADDR_EXPRS are include too.
12212
12213 2009-04-07  Richard Guenther  <rguenther@suse.de>
12214
12215         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
12216         decls are only used if passes as parameters or if they are
12217         local statics and the call is not to a builtin.
12218         (call_may_clobber_ref_p_1): Likewise.
12219
12220 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
12221
12222         * expr.c (do_store_flag): Remove last argument.  Simplify code
12223         to avoid duplication of tests already done by can_compare_p.
12224         (expand_expr_real_1): Adjust caller.
12225
12226 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
12227
12228         * optabs.c (can_compare_p): Test the predicate of a
12229         cbranch and cstore pattern.
12230
12231 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
12232
12233         * expr.c (convert_move): Use emit_store_flag instead of
12234         "emulating" it.
12235
12236 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
12237
12238         * config/i386/i386.c (ix86_compare_emitted): Remove.
12239         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
12240         ix86_compare_op0 like ix86_compare_emitted used to be handled.
12241         * config/i386/i386.h (ix86_compare_emitted): Remove.
12242         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
12243         instead of ix86_compare_emitted.
12244         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
12245
12246 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
12247
12248         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
12249         Add t-sysroot-suffix to tmake_file.
12250         * config/print-sysroot-suffix.sh: New file.
12251         * config/t-sysroot-suffix: New file.
12252
12253 2009-04-07  Ben Elliston  <bje@au.ibm.com>
12254
12255         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
12256         as the latter produces a warning when the target does not support
12257         infinity.
12258
12259 2009-04-07  Ben Elliston  <bje@au.ibm.com>
12260
12261         * dfp.c: Replace type punning assignments with memcpy throughout.
12262         * Makefile.in (dfp.o-warn): Remove.
12263
12264 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
12265
12266         PR target/39634
12267         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
12268         Include soft-fp/t-softfp after rs6000/t-linux64.
12269
12270 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
12271
12272         * stor-layout.c (set_sizetype): Use the full precision of their
12273         machine mode for bitsize types.
12274
12275 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
12276
12277         * config/i386/i386.md: Revert 2 accidental checkins.
12278
12279 2009-04-06  Joey Ye  <joey.ye@intel.com>
12280             Xuepeng Guo  <xuepeng.guo@intel.com>
12281             H.J. Lu  <hongjiu.lu@intel.com>
12282
12283         Atom pipeline model, tuning and insn selection.
12284         * config.gcc (atom): Add atom config options and target.
12285
12286         * config/i386/atom.md: New.
12287
12288         * config/i386/i386.c (atom_cost): New cost.
12289         (m_ATOM): New macro flag.
12290         (initial_ix86_tune_features): Set m_ATOM.
12291         (x86_accumulate_outgoing_args): Likewise.
12292         (x86_arch_always_fancy_math_387): Likewise.
12293         (processor_target): Add Atom cost.
12294         (cpu_names): Add Atom cpu name.
12295         (override_options): Set Atom ISA.
12296         (ix86_issue_rate): New case PROCESSOR_ATOM.
12297         (ix86_adjust_cost): Likewise.
12298
12299         * config/i386/i386.h (TARGET_ATOM): New target macro.
12300         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
12301         (TARGET_OPT_AGU): New target option.
12302         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
12303         (processor_type): Add PROCESSOR_ATOM.
12304
12305         * config/i386/i386.md (cpu): Add new value "atom".
12306         (use_carry, movu): New attr.
12307         (atom.md): Include atom.md.
12308         (adddi3_carry_rex64): Set attr "use_carry".
12309         (addqi3_carry): Likewise.
12310         (addhi3_carry): Likewise.
12311         (addsi3_carry): Likewise.
12312         (*addsi3_carry_zext): Likewise.
12313         (subdi3_carry_rex64): Likewise.
12314         (subqi3_carry): Likewise.
12315         (subhi3_carry): Likewise.
12316         (subsi3_carry): Likewise.
12317         (x86_movdicc_0_m1_rex64): Likewise.
12318         (*x86_movdicc_0_m1_se): Likewise.
12319         (x86_movsicc_0_m1): Likewise.
12320         (*x86_movsicc_0_m1_se): Likewise.
12321         (*adddi_1_rex64): Emit add insn as much as possible.
12322         (*addsi_1): Likewise.
12323         (return_internal): Set atom_unit.
12324         (return_internal_long): Likewise.
12325         (return_pop_internal): Likewise.
12326         (*rcpsf2_sse): Set atom_sse_attr attr.
12327         (*qrt<mode>2_sse): Likewise.
12328         (*prefetch_sse): Likewise.
12329
12330         * config/i386/i386-c.c (ix86_target_macros_internal): New case
12331         PROCESSOR_ATOM.
12332         (ix86_target_macros_internal): Likewise.
12333
12334         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
12335         (*prefetch_sse_rex): Likewise.
12336         (sse_rcpv4sf2): Likewise.
12337         (sse_vmrcpv4sf2): Likewise.
12338         (sse_sqrtv4sf2): Likewise.
12339         (<sse>_vmsqrt<mode>2): Likewise.
12340         (sse_ldmxcsr): Likewise.
12341         (sse_stmxcsr): Likewise.
12342         (*sse_sfence): Likewise.
12343         (sse2_clflush): Likewise.
12344         (*sse2_mfence): Likewise.
12345         (*sse2_lfence): Likewise.
12346         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
12347         (<sse>_movup<ssemodesuffixf2c>): Likewise.
12348         (avx_movdqu<avxmodesuffix>): Likewise.
12349         (avx_lddqu<avxmodesuffix>): Likewise.
12350         (sse2_movntv2di): Change attr "type" to "ssemov".
12351         (sse2_movntsi): Likewise.
12352         (rsqrtv8sf2): Change attr "type" to "sseadd".
12353         (sse3_addsubv2df3): Set attr "atom_unit".
12354         (sse3_h<plusminus_insn>v4sf3): Likewise.
12355         (*sse2_pmaddwd): Likewise.
12356         (*vec_extractv2di_1_rex64): Likewise.
12357         (*vec_extractv2di_1_avx): Likewise.
12358         (sse2_psadbw): Likewise.
12359         (ssse3_phaddwv8hi3): Likewise.
12360         (ssse3_phaddwv4hi3): Likewise.
12361         (ssse3_phadddv4si3): Likewise.
12362         (ssse3_phadddv2si3): Likewise.
12363         (ssse3_phaddswv8hi3): Likewise.
12364         (ssse3_phaddswv4hi3): Likewise.
12365         (ssse3_phsubwv8hi3): Likewise.
12366         (ssse3_phsubwv4hi3): Likewise.
12367         (ssse3_phsubdv4si3): Likewise.
12368         (ssse3_phsubdv2si3): Likewise.
12369         (ssse3_phsubswv8hi3): Likewise.
12370         (ssse3_phsubswv4hi3): Likewise.
12371         (ssse3_pmaddubsw128): Likewise.
12372         (sse3_pmaddubsw: Likewise.
12373         (ssse3_palignrti): Likewise.
12374         (ssse3_palignrdi): Likewise.
12375
12376 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
12377
12378         * doc/install.texi (Specific): Fix two cross-references to MinGW.
12379
12380 2009-04-06  Richard Guenther  <rguenther@suse.de>
12381
12382         PR tree-optimization/28868
12383         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
12384         of which PHI results we inserted.
12385         (insert_into_preds_of_block): Record inserted PHIs.
12386         (eliminate): Eliminate redundant PHI nodes.
12387         (init_pre): Init inserted_phi_names.
12388
12389 2009-04-06  Richard Guenther  <rguenther@suse.de>
12390
12391         PR tree-optimization/39643
12392         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
12393         IMAGPART_EXPRs of complex constants.
12394         (execute_fold_all_builtins): If we folded a call queue
12395         TODO_update_address_taken.
12396
12397 2009-04-06  Jan Hubicka  <jh@suse.cz>
12398
12399         PR middle-end/39659
12400         * except.c (remove_unreachable_regions): Propagate may_contain_throw
12401         flag.
12402
12403 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
12404
12405         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
12406         delay slot.
12407         (ic_invalidate_array): Likewise.
12408
12409 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
12410
12411         * calls.c (emit_library_call_value_1): Fix a problem with parameter
12412         alignment for library calls.
12413
12414 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
12415
12416         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
12417         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
12418         * config/i386/mingw-stdint.h:  New file.
12419
12420 2009-04-05  Richard Guenther  <rguenther@suse.de>
12421
12422         PR tree-optimization/39648
12423         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
12424         our &A vs. &A[0] IL deficiencies.
12425
12426 2009-04-04  Jan Hubicka  <jh@suse.cz>
12427
12428         * except.c (sjlj_find_directly_reachable_regions): Be ready for
12429         removed toplevel regions.
12430         (sjlj_mark_call_sites): Likewise.
12431
12432 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
12433
12434         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
12435         (cygwin tm clause use_gcc_stdint):  Set to wrap.
12436         * config/i386/cygwin-stdint.h:  New file.
12437
12438 2009-04-04  Richard Guenther  <rguenther@suse.de>
12439
12440         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
12441         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
12442         single-argument PHIs if we are in loop-closed SSA form.
12443         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
12444         for the pre-condition.
12445         (slpeel_tree_peel_loop_to_edge): Likewise.
12446         (vect_build_loop_niters): Take an optional sequence to append stmts.
12447         (vect_generate_tmps_on_preheader): Likewise.
12448         (vect_do_peeling_for_loop_bound): Take extra guards for the
12449         pre-condition.
12450         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
12451         the cost model check.
12452         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
12453         guards if we are going to peel.  Do not apply versioning in that case.
12454         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
12455         (vect_do_peeling_for_loop_bound): Likewise.
12456         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
12457         loop bound only record extra pre-conditions, do not apply loop
12458         versioning.
12459
12460 2009-04-04  Richard Guenther  <rguenther@suse.de>
12461
12462         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
12463         renaming code.
12464
12465 2009-04-04  Jan Hubicka  <jh@suse.cz>
12466
12467         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
12468         last_basic_block for size of bb->index indexed array.
12469         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
12470         compute_out, link_btr_uses, build_btr_def_use_webs,
12471         build_btr_def_use_webs, migrate_btr_defs): Likewise.
12472
12473 2009-04-04  Jan Hubicka  <jh@suse.cz>
12474
12475         * except.c (remove_eh_handler_and_replace): Break out from ...
12476         (remove_eh_handler): ... here.
12477         (bring_to_root): New function.
12478         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
12479         handled ones, bring others to root of tree.
12480
12481 2009-04-04  Jan Hubicka  <jh@suse.cz>
12482
12483         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
12484         (all_phis_safe_to_merge): New function.
12485         (update_info): New structure.
12486         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
12487         (cleanup_empty_eh): Update SSA if possible.
12488
12489 2009-04-04  Richard Guenther  <rguenther@suse.de>
12490
12491         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
12492         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
12493         (append_vuse): Likewise.
12494
12495 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
12496
12497         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
12498         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
12499         instead of REG_UNSAVED for DW_CFA_undefined.
12500         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
12501         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
12502         outermost frame.
12503
12504 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
12505
12506         PR target/39501
12507         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
12508         * testsuite/gcc.c-torture/execute/pr39501.c: New file.
12509         * testsuite/gcc.c-torture/execute/pr39501.x: New file.
12510
12511 2009-04-04  Richard Guenther  <rguenther@suse.de>
12512
12513         PR tree-optimization/8781
12514         PR tree-optimization/37892
12515         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
12516         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
12517         (valueize_refs): Call it for *& valueizations.
12518         (shared_reference_ops_from_ref): Rename to ...
12519         (valueize_shared_reference_ops_from_ref): ... this and valueize.
12520         (shared_reference_ops_from_call): Rename to ...
12521         (valueize_shared_reference_ops_from_call): ... this and valueize.
12522         (vn_reference_lookup): Update.
12523         (visit_reference_op_call): Likewise.
12524         * tree-ssa-pre.c (phi_translate_1): Fold *&.
12525         (eliminate): Value-replace the call address in call statements.
12526
12527 2009-04-04  Richard Guenther  <rguenther@suse.de>
12528
12529         PR tree-optimization/39636
12530         * tree-ssa-forwprop.c
12531         (forward_propagate_addr_into_variable_array_index): Check for
12532         GIMPLE_ASSIGN before accessing the rhs code.
12533
12534 2009-04-03  Jason Merrill  <jason@redhat.com>
12535
12536         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
12537
12538 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
12539
12540         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
12541         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
12542         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
12543         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
12544         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
12545         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
12546         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
12547         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
12548         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
12549         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
12550         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
12551         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
12552         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
12553         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
12554         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
12555         Use fr_reg_or_fp01_operand instead of fr_register_operand
12556
12557         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
12558         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
12559         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
12560
12561 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
12562
12563         PR rtl-optimization/39607
12564         PR rtl-optimization/39631
12565
12566         Revert:
12567
12568         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
12569         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
12570         instead of DF_LR_OUT.
12571         * ira-lives.c (process_bb_node_lives): Ditto.
12572         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
12573         instead of DF_LR_{OUT,IN}.
12574         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
12575         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
12576
12577 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
12578
12579         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
12580         (execute_lower_omp): Always run but take the short way out if -fopenmp
12581         is not given.
12582         (gate_lower_omp): Remove, forcing the pass manager to always run the
12583         pass and always set PROP_gimple_lomp.
12584         (pass_lower_omp): Remove gate function.
12585         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
12586         PROP_trees.  Instead, require it.
12587         * ipa-cp.c (pass_ipa_cp): Likewise.
12588         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
12589         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
12590         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
12591         and PROP_gimple_leh.
12592
12593 2009-04-03  Richard Guenther  <rguenther@suse.de>
12594
12595         PR middle-end/13146
12596         PR tree-optimization/23940
12597         PR tree-optimization/33237
12598         PR middle-end/33974
12599         PR middle-end/34093
12600         PR tree-optimization/36201
12601         PR tree-optimization/36230
12602         PR tree-optimization/38049
12603         PR tree-optimization/38207
12604         PR tree-optimization/38230
12605         PR tree-optimization/38301
12606         PR tree-optimization/38585
12607         PR middle-end/38895
12608         PR tree-optimization/38985
12609         PR tree-optimization/39299
12610         * tree-ssa-structalias.h: Remove.
12611         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
12612         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
12613         (struct vuse_element_d): Remove.
12614         (struct vuse_vec_d): Likewise.
12615         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
12616         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
12617         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
12618         VUSE_ELEMENT_VAR): Likewise.
12619         (struct voptype_d): Likewise.
12620         (NUM_VOP_FREE_BUCKETS): Likewise.
12621         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
12622         (struct stmt_operands_d): Remove.
12623         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
12624         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
12625         VDEF_NUM, VDEF_VECT): Likewise.
12626         (copy_virtual_operands): Remove.
12627         (operand_build_cmp): Likewise.
12628         (create_ssa_artificial_load_stmt): Likewise.
12629         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
12630         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
12631         vuse_index and mayuse_index members.  Pack and move done and iter_type
12632         members to the front.
12633         (SSA_OP_VMAYUSE): Remove.
12634         (SSA_OP_VIRTUAL_USES): Adjust.
12635         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
12636         (unlink_stmt_vdef): Declare.
12637         (add_to_addressable_set): Remove.
12638         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
12639         (vrp_visit_stmt): Likewise.
12640         * doc/tree-ssa.texi (Alias analysis): Update.
12641         * doc/invoke.texi (max-aliased-vops): Remove docs.
12642         (avg-aliased-vops): Likewise.
12643         * tree-into-ssa.c (syms_to_rename): Remove.
12644         (need_to_update_vops_p): Likewise.
12645         (need_to_initialize_update_ssa_p): Rename to ...
12646         (update_ssa_initialized_fn): ... this.  Track function we are
12647         initialized for.
12648         (symbol_marked_for_renaming): Simplify.
12649         (add_new_name_mapping): Do not set need_to_update_vops_p.
12650         (dump_currdefs): Use SYMS_TO_RENAME.
12651         (rewrite_update_stmt): Always walk all uses/defs.
12652         (dump_update_ssa): Adjust.
12653         (init_update_ssa): Take function argument.  Track what we are
12654         initialized for.
12655         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
12656         (create_new_def_for): Initialize for cfun, assert we are initialized
12657         for cfun.
12658         (mark_sym_for_renaming): Simplify.
12659         (mark_set_for_renaming): Do not initialize update-ssa.
12660         (need_ssa_update_p): Simplify.  Take function argument.
12661         (name_mappings_registered_p): Assert we ask for the correct function.
12662         (name_registered_for_update_p): Likewise.
12663         (ssa_names_to_replace): Likewise.
12664         (release_ssa_name_after_update_ssa): Likewise.
12665         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
12666         (dump_decl_set): Do not print a newline.
12667         (debug_decl_set): Do it here.
12668         (dump_update_ssa): And here.
12669         * tree-ssa-loop-im.c (move_computations): Adjust.
12670         (movement_possibility): Likewise.
12671         (determine_max_movement): Likewise.
12672         (gather_mem_refs_stmt): Likewise.
12673         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
12674         or NAME_MEMORY_TAG.
12675         * tree-complex.c (update_all_vops): Remove.
12676         (expand_complex_move): Adjust.
12677         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
12678         Simplify test for memory referencing statement.  Exclude
12679         non-invariant ADDR_EXPRs.
12680         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
12681         * tree-loop-distribution.c (generate_memset_zero): Adjust.
12682         (rdg_flag_uses): Likewise.
12683         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
12684         related code.
12685         (tree_optimize_tail_calls_1): Also split the
12686         edge from the entry block if we have degenerate PHI nodes in
12687         the first basic block.
12688         * tree.c (init_ttree): Remove memory-tag related code.
12689         (tree_code_size): Likewise.
12690         (tree_node_structure): Likewise.
12691         (build7_stat): Re-write to be build6_stat.
12692         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
12693         (SSA_VAR_P): Adjust.
12694         (struct tree_memory_tag): Remove.
12695         (struct tree_memory_partition_tag): Likewise.
12696         (union tree_node): Adjust.
12697         (build7): Re-write to be build6.
12698         * tree-pass.h (pass_reset_cc_flags): Remove.
12699         (TODO_update_address_taken): New flag.
12700         (pass_simple_dse): Remove.
12701         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
12702         * params.h (MAX_ALIASED_VOPS): Remove.
12703         (AVG_ALIASED_VOPS): Likewise.
12704         * omp-low.c (expand_omp_taskreg): Update SSA form.
12705         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
12706         aliases the lhs in a copy stmt.
12707         * tree-ssa-dse.c (struct address_walk_data): Remove.
12708         (memory_ssa_name_same): Likewise.
12709         (memory_address_same): Likewise.
12710         (get_kill_of_stmt_lhs): Likewise.
12711         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
12712         unused stores.  Look through PHI nodes into post-dominated regions.
12713         (dse_optimize_stmt): Simplify.  Properly remove stores.
12714         (tree_ssa_dse): Compute dominators.
12715         (execute_simple_dse): Remove.
12716         (pass_simple_dse): Likewise.
12717         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
12718         gimple_loaded_syms and gimple_stored_syms computation.
12719         * toplev.c (dump_memory_report): Dump alias and pta stats.
12720         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
12721         (vn_reference_eq): Likewise.
12722         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
12723         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
12724         valueize_vuses): Remove.
12725         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
12726         (get_def_ref_stmt_vuse): ... this.
12727         (vn_reference_lookup_2): New function.
12728         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
12729         walking equivalent vuses.  Simplify.
12730         (vn_reference_lookup): Likewise.
12731         (vn_reference_insert): Likewise.
12732         (vn_reference_insert_pieces): Likewise.
12733         (visit_reference_op_call): Simplify.
12734         (visit_reference_op_load): Likewise.
12735         (visit_reference_op_store): Likewise.
12736         (init_scc_vn): Remove shared_lookup_vuses initialization.
12737         (free_scc_vn): Remove shared_lookup_vuses freeing.
12738         (sort_vuses, sort_vuses_heap): Remove.
12739         (get_ref_from_reference_ops): Export.
12740         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
12741         vector with single vuse pointer.
12742         (vn_reference_lookup_pieces, vn_reference_lookup,
12743         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
12744         (shared_vuses_from_stmt): Remove.
12745         (get_ref_from_reference_ops): Declare.
12746         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
12747         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
12748         memory-tag related code.
12749         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
12750         (likely_value): Add comment, skip static-chain of call statements.
12751         (surely_varying_stmt_p): Adjust.
12752         (gimplify_and_update_call_from_tree): Likewise.
12753         (execute_fold_all_builtins): Do not rebuild alias info.
12754         (gimplify_and_update_call_from_tree): Properly update VOPs.
12755         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
12756         (copy_ref_info): Remove memory-tag related code.
12757         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
12758         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
12759         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
12760         computation.
12761         * tree-ssa-dom.c (gimple_p): Remove typedef.
12762         (eliminate_redundant_computations): Adjust.
12763         (record_equivalences_from_stmt): Likewise.
12764         (avail_expr_hash): Likewise.
12765         (avail_expr_eq): Likewise.
12766         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
12767         (stmt_makes_single_load): Likewise.
12768         (stmt_makes_single_store): Likewise.
12769         * tree-ssa-alias.c: Rewrite completely.
12770         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
12771         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
12772         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
12773         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
12774         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
12775         Remove public functions.
12776         (pass_reset_cc_flags): Remove.
12777         (pass_build_alias): Move ...
12778         * tree-ssa-structalias.c (pass_build_alias): ... here.
12779         * tree-ssa-alias.c (may_be_aliased): Move ...
12780         * tree-flow-inline.h (may_be_aliased): ... here.
12781         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
12782         count_uses_and_derefs): Move ...
12783         * gimple.c: ... here.
12784         * gimple.h (count_uses_and_derefs): Declare.
12785         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
12786         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
12787         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
12788         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
12789         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
12790         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
12791         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
12792         New functions.
12793         * tree-dfa.c (refs_may_alias_p): Move ...
12794         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
12795         * tree-ssa-alias.h: New file.
12796         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
12797         (statement_sink_location): Likewise.
12798         * opts.c (decode_options): Do not adjust max-aliased-vops or
12799         avg-aliased-vops values.
12800         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
12801         (TV_CALL_CLOBBER): Likewise.
12802         (TV_FLOW_SENSITIVE): Likewise.
12803         (TV_FLOW_INSENSITIVE): Likewise.
12804         (TV_MEMORY_PARTITIONING): Likewise.
12805         (TV_ALIAS_STMT_WALK): New timevar.
12806         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
12807         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
12808         (get_address_description): Remove memory-tag related code.
12809         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
12810         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
12811         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
12812         and immediate uses in statements.  Document.
12813         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
12814         (dump_symbols): Remove.
12815         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
12816         * alias.c (get_deref_alias_set): New function split out from ...
12817         (get_alias_set): ... here.
12818         * alias.h (get_deref_alias_set): Declare.
12819         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
12820         type parameter.  Remove restrict pointer handling.  Create a
12821         ref-all pointer in case type-based alias sets do not conflict.
12822         (vect_analyze_data_refs): Remove SMT related code.
12823         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
12824         (vectorizable_load): Likewise.
12825         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
12826         (DR_SYMBOL_TAG, DR_VOPS): Remove.
12827         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
12828         Ignore vops and SMTs.
12829         (dr_analyze_alias): Likewise..
12830         (free_data_ref): Likewise.
12831         (create_data_ref): Likewise.
12832         (analyze_all_data_dependences): Likewise.
12833         (get_references_in_stmt): Adjust.
12834         * tree-flow-inline.h (gimple_aliases_computed_p,
12835         gimple_addressable_vars, gimple_call_clobbered_vars,
12836         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
12837         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
12838         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
12839         gimple_mem_ref_stats): Remove.
12840         (gimple_vop): New function.
12841         (op_iter_next_use): Remove vuses and mayuses cases.
12842         (op_iter_next_def): Remove vdefs case.
12843         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
12844         (clear_and_done_ssa_iter): Do not set removed fields.
12845         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
12846         Assert we are not iterating over vuses or vdefs if not also
12847         iterating over uses or defs.
12848         (op_iter_init_use): Likewise.
12849         (op_iter_init_def): Likewise.
12850         (op_iter_next_vdef): Remove.
12851         (op_iter_next_mustdef): Likewise.
12852         (op_iter_init_vdef): Likewise.
12853         (compare_ssa_operands_equal): Likewise.
12854         (link_use_stmts_after): Handle vuse operand.
12855         (is_call_used): Use is_call_clobbered.
12856         (is_call_clobbered): Global variables are always call clobbered,
12857         query the call-clobbers bitmap.
12858         (mark_call_clobbered): Ignore global variables.
12859         (clear_call_clobbered): Likewise.
12860         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
12861         virtual operands sanity check.
12862         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
12863         Remove.
12864         (TARGET_MEM_REF): Remove TMR_TAG operand.
12865         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
12866         Remove call-clobber related code.
12867         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
12868         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
12869         partitions or escape reason.
12870         (get_single_def_stmt, get_single_def_stmt_from_phi,
12871         get_single_def_stmt_with_phi): Remove.
12872         (dump_referenced_vars): Tidy.
12873         (get_ref_base_and_extent): Allow bare decls.
12874         (collect_dfa_stats): Adjust.
12875         * graphite.c (rename_variables_in_stmt): Adjust.
12876         (graphite_copy_stmts_from_block): Likewise.
12877         (translate_clast): Likewise.
12878         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
12879         (EXPR_DIES): New.
12880         (translate_vuse_through_block): Use the oracle.
12881         (phi_translate_1): Adjust.
12882         (value_dies_in_block_x): Use the oracle.  Cache the outcome
12883         in EXPR_DIES.
12884         (valid_in_sets): Check if the VUSE for
12885         a REFERENCE is available.
12886         (eliminate): Do not remove stmts during elimination,
12887         instead queue and remove them afterwards.
12888         (do_pre): Do not rebuild alias info.
12889         (pass_pre): Run TODO_rebuild_alias before PRE.
12890         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
12891         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
12892         (mark_all_v_defs_stmt): Remove.
12893         (mark_all_v_defs_seq): Adjust.
12894         (sra_replace): Likewise.
12895         (scalarize_use): Likewise.
12896         (scalarize_copy): Likewise.
12897         (scalarize_init): Likewise.
12898         (scalarize_ldst): Likewise.
12899         (todoflags): Remove.
12900         (tree_sra): Do not rebuild alias info.
12901         (tree_sra_early): Adjust.
12902         (pass_sra): Run TODO_update_address_taken before SRA.
12903         * tree-predcom.c (set_alias_info): Remove.
12904         (prepare_initializers_chain): Do not call it.
12905         (mark_virtual_ops_for_renaming): Adjust.
12906         (mark_virtual_ops_for_renaming_list): Remove.
12907         (initialize_root_vars): Adjust.
12908         (initialize_root_vars_lm): Likewise.
12909         (prepare_initializers_chain): Likewise.
12910         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
12911         (may_propagate_copy_into_stmt): Likewise.
12912         (merge_alias_info): Do nothing for now.
12913         (propagate_tree_value_into_stmt): Adjust.
12914         (stmt_may_generate_copy): Likewise.
12915         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
12916         not mark symbols for renaming.
12917         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
12918         with the same statement, make sure to update the new pointed-to one.
12919         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
12920         call statements, do not mark symbols for renaming.
12921         (mark_operand_necessary): Dump something.
12922         (ref_may_be_aliased): New function.
12923         (mark_aliased_reaching_defs_necessary_1): New helper function.
12924         (mark_aliased_reaching_defs_necessary): Likewise.
12925         (mark_all_reaching_defs_necessary_1): Likewise.
12926         (mark_all_reaching_defs_necessary): Likewise.
12927         (propagate_necessity): Do not process virtual PHIs.  For
12928         non-aliased loads mark all reaching definitions as necessary.
12929         For aliased loads and stores mark the immediate dominating
12930         aliased clobbers as necessary.
12931         (visited): New global static.
12932         (perform_tree_ssa_dce): Free visited bitmap after propagating
12933         necessity.
12934         (remove_dead_phis): Perform simple dead virtual PHI removal.
12935         (remove_dead_stmt): Properly unlink virtual operands when
12936         removing stores.
12937         (eliminate_unnecessary_stmts): Schedule PHI removal after
12938         stmt removal.
12939         * tree-ssa-ter.c (is_replaceable_p): Adjust.
12940         (process_replaceable): Likewise.
12941         (find_replaceable_in_bb): Likewise.
12942         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
12943         based on the single gimple vop.
12944         (verify_flow_insensitive_alias_info): Remove.
12945         (verify_flow_sensitive_alias_info): Likewise.
12946         (verify_call_clobbering): Likewise.
12947         (verify_memory_partitions): Likewise.
12948         (verify_alias_info): Likewise.
12949         (verify_ssa): Adjust..
12950         (execute_update_addresses_taken): Export.  Update SSA
12951         manually.  Optimize only when optimizing.  Use a local bitmap.
12952         (pass_update_address_taken): Remove TODO_update_ssa, add
12953         TODO_dump_func.
12954         (pass_update_address_taken): Just use TODO_update_address_taken.
12955         (init_tree_ssa): Do not initialize addressable_vars.
12956         (verify_ssa): Verify new VUSE / VDEF properties.
12957         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
12958         Do not call verify_alias_info.
12959         (delete_tree_ssa): Clear the VUSE, VDEF operands.
12960         Do not free the loaded and stored syms bitmaps.  Reset the escaped
12961         and callused solutions.  Do not free addressable_vars.
12962         Remove memory-tag related code.
12963         (warn_uninitialized_var): Aliases are always available.
12964         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
12965         * lambda-code.c (can_put_in_inner_loop): Adjust.
12966         (can_put_after_inner_loop): Likewise.
12967         (perfect_nestify): Likewise.
12968         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
12969         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
12970         (vectorizable_conversion): Do not mark symbols for renaming.
12971         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
12972         (expand_call_inline): Unlink the calls virtual operands before
12973         replacing it.
12974         (tree_function_versioning): Do not call update_ssa if we are not
12975         updating clones.  Simplify.
12976         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
12977         (propagate_with_phi): Likewise..
12978         * tree-outof-ssa.c (create_temp): Remove memory tag and call
12979         clobber code.  Assert we are not aliased or global.
12980         * tree-flow.h: Include tree-ssa-alias.h
12981         (enum escape_type): Remove.
12982         (struct mem_sym_stats_d): Likewise.
12983         (struct mem_ref_stats_d): Likewise.
12984         (struct gimple_df): Add vop member.  Remove global_var,
12985         call_clobbered_vars, call_used_vars, addressable_vars,
12986         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
12987         escaped and callused members.
12988         (struct ptr_info_def): Remove all members, add points-to solution
12989         member pt.
12990         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
12991         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
12992         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
12993         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
12994         (tree-ssa-alias.o): Likewise.
12995         (toplev.o): Add tree-ssa-alias.h
12996         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
12997         * gimple.c (gimple_set_bb): Fix off-by-one error.
12998         (is_gimple_reg): Do not handle memory tags.
12999         (gimple_copy): Also copy virtual operands.
13000         Delay updating the statement.  Do not reset loaded and stored syms.
13001         (gimple_set_stored_syms): Remove.
13002         (gimple_set_loaded_syms): Likewise.
13003         (gimple_call_copy_skip_args): Copy the virtual operands
13004         and mark the new statement modified.
13005         * tree-ssa-structalias.c (may_alias_p): Remove.
13006         (set_uids_in_ptset): Take the alias set to prune with as
13007         parameter.  Fold in the alias test of may_alias_p.
13008         (compute_points_to_sets): Compute whether a ptr is dereferenced
13009         in a local sbitmap.
13010         (process_constraint): Deal with &ANYTHING on the lhs, reject all
13011         other ADDRESSOF constraints on the lhs.
13012         (get_constraint_for_component_ref): Assert that we don't get
13013         ADDRESSOF constraints from the base of the reference.
13014         Properly generate UNKNOWN_OFFSET for DEREF if needed.
13015         (struct variable_info): Remove collapsed_to member.
13016         (get_varinfo_fc): Remove.
13017         (new_var_info): Do not set collapsed_to.
13018         (dump_constraint): Do not follow cycles.
13019         (dump_constraint_graph): Likewise.
13020         (build_pred_graph): Likewise.
13021         (build_succ_graph): Likewise.
13022         (rewrite_constraints): Likewise.
13023         (do_simple_structure_copy): Remove.
13024         (do_rhs_deref_structure_copy): Remove.
13025         (do_lhs_deref_structure_copy): Remove.
13026         (collapse_rest_of_var): Remove.
13027         (do_structure_copy): Re-implement.
13028         (pta_stats): New global variable.
13029         (dump_pta_stats): New function.
13030         (struct constraint_expr): Make offset signed.
13031         (UNKNOWN_OFFSET): Define special value.
13032         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
13033         (solution_set_expand): New helper function split out from ...
13034         (do_sd_constraint): ... here.
13035         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
13036         (do_ds_constraint): Likewise.
13037         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
13038         and CALLUSED = *CALLUSED.
13039         (set_union_with_increment): Make inc argument signed.
13040         (type_safe): Remove.
13041         (get_constraint_for_ptr_offset): Handle unknown and negative
13042         constant offsets.
13043         (first_vi_for_offset): Handle offsets before start.  Bail
13044         out early for offsets beyond the variable extent.
13045         (first_or_preceding_vi_for_offset): New function.
13046         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
13047         Together with ESCAPED = *ESCAPED this properly computes reachability.
13048         (find_what_var_points_to): New function.
13049         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
13050         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
13051         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
13052         pt_solutions_intersect): New functions.
13053         (compute_call_used_vars): Remove.
13054         (compute_may_aliases): New main entry into PTA computation.
13055         * gimple.h (gimple_p): New typedef.
13056         (struct gimple_statement_base): Remove references_memory_p.
13057         (struct gimple_statement_with_memory_ops_base): Remove
13058         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
13059         members.
13060         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
13061         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
13062         gimple_set_references_memory): Remove.
13063         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
13064         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
13065         New functions.
13066         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
13067         (verify_expr): Allow RESULT_DECL.
13068         (gimple_duplicate_bb): Do not copy virtual operands.
13069         (gimple_duplicate_sese_region): Adjust.
13070         (gimple_duplicate_sese_tail): Likewise.
13071         (mark_virtual_ops_in_region): Remove.
13072         (move_sese_region_to_fn): Do not call it.
13073         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
13074         and pass_simple_dse.
13075         (execute_function_todo): Handle TODO_update_address_taken,
13076         call execute_update_addresses_taken for TODO_rebuild_alias.
13077         (execute_todo): Adjust.
13078         (execute_one_pass): Init dump files early.
13079         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
13080         call-clobbered.
13081         (create_general_new_stmt): Clear vops.
13082         * tree-ssa-reassoc.c (get_rank): Adjust.
13083         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
13084         symbols for renaming.
13085         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
13086         (PARAM_AVG_ALIASED_VOPS): Likewise.
13087         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
13088         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
13089         * tree-ssa-operands.c: Simplify for new virtual operand representation.
13090         (operand_build_cmp, copy_virtual_operands,
13091         create_ssa_artificial_load_stmt, add_to_addressable_set,
13092         gimple_add_to_addresses_taken): Remove public functions.
13093         (unlink_stmt_vdef): New function.
13094
13095 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
13096
13097         * config.gcc (powerpc-*-linux*): Merge variants.
13098
13099 2009-04-02  Chao-ying Fu  <fu@mips.com>
13100             James Grosbach  <james.grosbach@microchip.com>
13101
13102         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
13103         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
13104         cop0_sp_offset.
13105         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
13106         keep_interrupts_masked_p, use_debug_exception_return_p.
13107         (mips_attribute_table): Add interrupt, use_shadow_register_set,
13108         keep_interrupts_masked, use_debug_exception_return.
13109         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
13110         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
13111         New functions.
13112         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
13113         (mips_print_operand): Process COP0 registers to print $0 .. $31
13114         correctly for GAS to process.
13115         (mips_interrupt_extra_call_saved_reg_p): New function.
13116         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
13117         extra registers.
13118         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
13119         (mips_compute_frame_info): Add supports for interrupt context that
13120         includes doubleword accumulators and COP0 registers.
13121         (mips_for_each_saved_acc): New function.
13122         (mips_for_each_saved_gpr_and_fpr): Change the function name from
13123         mips_for_each_saved_reg.
13124         (mips_save_reg): Save accumulators.
13125         (mips_kernel_reg_p): A new for_each_rtx callback.
13126         (mips_expand_prologue): Support interrupt handlers.
13127         (mips_restore_reg): Restore accumulators.
13128         (mips_expand_epilogue): Support interrupt handlers.
13129         (mips_can_use_return_insn): Return false for interrupt handlers.
13130         (mips_epilogue_uses): New function.
13131         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
13132         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
13133         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
13134         cop0_move): New instructions.
13135         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
13136         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
13137         defines.
13138         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
13139         New defines.
13140         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
13141         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
13142         interrupt handlers, we use K0 as the temporary register.
13143         (EPILOGUE_USES): Change to a function call.
13144         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
13145         handlers, we use K0 as the temporary register.
13146
13147         * doc/extend.texi (Function Attributes): Document interrupt,
13148         use_shadow_register_set, keep_interrupts_masked,
13149         use_debug_exception_return for MIPS attributes.
13150
13151 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
13152
13153         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
13154         Remove a number of t-files from tmake_file.
13155         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
13156         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
13157         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
13158         target_prototype, not TARGET_PROTOTYPE.
13159         (LINK_OS_GNU_SPEC): Define.
13160         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
13161         and darwin-ldoubdle.c.
13162
13163 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
13164
13165         PR driver/39293
13166         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
13167         (cpp_options): Ditto.
13168         (default_compilers): Ditto.
13169         (display_help): Ditto.
13170         (process_command): Ditto.
13171         (do_spec_1): Ditto.
13172         (set_input): Use lbasename instead of duplicate code.
13173         (save_temps_prefix): New static for -save-temps=obj.
13174         (save_temps_length): Ditto.
13175
13176         * doc/invoke.texi (-save-temps=obj): Document new variant to
13177         -save-temps switch.
13178
13179 2009-04-02  Jeff Law  <law@redhat.com>
13180
13181         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
13182         variable.
13183
13184 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
13185
13186         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
13187         * configure: Regenerated.
13188
13189 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
13190
13191         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
13192         share the argument list.
13193
13194 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
13195
13196         Merge
13197
13198         2009-02-12  Diego Novillo  <dnovillo@google.com>
13199
13200         * varpool.c (debug_varpool): New.
13201         * cgraph.h (debug_varpool): Declare.
13202
13203 2009-04-02  Jan Hubicka  <jh@suse.cz>
13204
13205         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
13206         pass.
13207
13208 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
13209
13210         * config/i386/i386.c (ix86_abi): Move initialization to ...
13211         (override_options): Here.
13212
13213 2009-04-02  Christian Bruel  <christian.bruel@st.com>
13214
13215         * config/sh/sh.c (sh_dwarf_register_span): New function.
13216         (TARGET_DWARF_REGISTER_SPAN): Define.
13217         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
13218
13219 2009-04-02  Ira Rosen  <irar@il.ibm.com>
13220
13221         PR tree-optimization/39595
13222         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
13223         interleaved loads group is not  greater than the SLP group size.
13224
13225 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
13226
13227         * builtins.c (is_builtin_name): New.
13228         (called_as_built_in): Use is_builtin_name.
13229         * tree.h (is_builtin_name): New.
13230         * varasm.c (incorporeal_function_p): Use is_builtin_name
13231
13232 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
13233
13234         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
13235
13236 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
13237
13238         PR c++/26693
13239         * c-decl.c (clone_underlying_type): Move this ...
13240         * c-common.c (set_underlying_type): ... here.
13241         Also, make sure the function properly sets TYPE_STUB_DECL() on
13242         the newly created typedef variant type.
13243         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
13244         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
13245         points.
13246
13247 2009-04-02  Richard Guenther  <rguenther@suse.de>
13248
13249         PR tree-optimization/37221
13250         * tree-flow.h (degenerate_phi_result): Declare.
13251         * tree-ssa-dom.c (degenerate_phi_result): Export.
13252         * tree-scalar-evolution.c (analyze_initial_condition): If
13253         the initial condition is defined by a degenerate PHI node
13254         use the degenerate value.
13255
13256 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
13257
13258         PR rtl-optimization/39588
13259         * combine.c (merge_outer_ops): Do not set the constant when this
13260         is not necessary.
13261         (simplify_shift_const_1): Do not modify it either in this case.
13262
13263 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
13264
13265         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
13266         tuning is deprecated if -mtune value is set to an Itanium1 variant.
13267
13268 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
13269
13270         PR c/29027
13271         * c-lex.c (interpret_float): Default (no suffix) is double.
13272
13273 2009-04-1  Xinliang David Li  <davidxl@google.com>
13274
13275         * config/i386/i386.c (legitimate_constant_p): Recognize
13276         all one vector constant.
13277
13278 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
13279
13280         * config/vax/vax.c: Add #includes to silence warnings.
13281         Change #include order to silence two warnings.
13282
13283 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
13284
13285         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
13286         (ASM_SPEC): Pass -k to the assembler for PIC code.
13287
13288 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
13289
13290         * config.gcc: Add vax-*-linux* to the switch.
13291         * config/vax/linux.h: New file. (TARGET_VERSION,
13292         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
13293
13294 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
13295
13296         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
13297         Use predicate macros instead of GET_CODE() == foo.
13298         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
13299         ashlsi3, rotrsi3, <unnamed>): Likewise.
13300
13301 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
13302
13303         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
13304         jbbccihi, jbbccisi): Remova trailing whitespace.
13305         * config/vax/constraints.md: Likewise.
13306         * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
13307         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
13308         * config/vax/predicates.md: Likewise.
13309         * config/vax/vax.c (print_operand_address, vax_output_int_move,
13310         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
13311         * config/vax/vax.h: Likewise.
13312         * config/vax/vax.md (nonlocal_goto): Likewise.
13313
13314 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
13315
13316         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
13317         (indirectable_address_p, adjacent_operands_p): Add spaces around
13318         braces.
13319         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
13320
13321 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
13322
13323         * config/vax/vax.c (legitimate_constant_address_p,
13324         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
13325         index_term_p, reg_plus_index_p, legitimate_address_p,
13326         vax_mode_dependent_address_p): Update comments to match functions
13327         modified by the recent int->bool conversion.
13328
13329 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
13330
13331         * config/vax/builtins.md: Update copyright message.
13332         * config/vax/constraints.md: Likewise.
13333         * config/vax/netbsd-elf.h: Likewise.
13334         * config/vax/predicates.md: Likewise.
13335         * config/vax/vax-protos.h: Likewise.
13336         * config/vax/vax.c: Likewise.
13337         * config/vax/vax.h: Likewise.
13338         * config/vax/vax.md: Likewise.
13339         * config/vax/vax.opt: Likewise.
13340
13341 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
13342
13343         * config/vax/builtins.md (ffssi2, ffssi2_internal,
13344         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
13345         * config/vax/constraints.md (B, R): Likewise.
13346         * config/vax/predicates.md (external_memory_operand,
13347         nonimmediate_addsub_di_operand): Likewise.
13348         * config/vax/vax.c (vax_output_int_add): Likewise.
13349         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
13350         untyped_call): Likewise.
13351
13352 2009-04-01  Matt Thomas  <matt@3am-software.com>
13353
13354         * config/vax/predicates.md: New file.
13355         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
13356         external_const_operand, nonsymbolic_operand, external_memory_operand,
13357         indirect_memory_operand, indexed_memory_operand,
13358         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
13359         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
13360         predicate.
13361         * config/vax/constraints.md: New file.
13362         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
13363         New constraint.
13364         * config/vax/builtins.md: New file.
13365         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
13366         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
13367         jbbccisi): Define.
13368         * config/vax/vax.opt (mqmath): Add option.
13369         * config/vax/vax.md (isfx): Extend with DI.
13370         (VAXintQH, VAXintQHSD): Define.
13371         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
13372         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
13373         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
13374         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
13375         (movdi): Update constraints and use vax_output_int_move().
13376         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
13377         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
13378         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
13379         nonlocal_goto): New.
13380         (mov<mode>): Extend accepted operand types.
13381         (subdi3_old): Rename from subdi3, change update constraints and use
13382         a new implementation.
13383         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
13384         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
13385         MOVE_RATIO, CLEAR_RATIO): Define.
13386         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
13387         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
13388         (PRINT_OPERAND): Redefine using a function instead of inlined code.
13389         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
13390         (split_quadword_operands): Make static and really allow variable
13391         splitting.
13392         (print_operand_address): Update for PIC generation.
13393         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
13394         indexable_address_p, fixup_mathdi_operand,
13395         vax_expand_addsub_di_operands, adjacent_operands_p): New.
13396         (vax_float_literal, legitimate_constant_p,
13397         indirectable_constant_address_p, index_term_p,
13398         reg_plus_index_p): Return bool instead of int.
13399         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
13400         where needed.
13401         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
13402         generation.
13403         (vax_output_conditional_branch): Indent.
13404         (legitimate_constant_address_p, indirectable_constant_address_p,
13405         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
13406         vax_mode_dependent_address_p): Return bool instead of int, update for
13407         PIC generation.
13408         * config/vax/vax-protos.h (legitimate_constant_address_p,
13409         legitimate_constant_p, legitimate_address_p,
13410         vax_mode_dependent_address_p): Change declaration to bool.
13411         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
13412         vax_expand_addsub_di_operands, vax_output_int_subtract,
13413         vax_output_movmemsi): Declare.
13414         (split_quadword_operands, vax_float_literal): Delete declaration.
13415         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
13416         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
13417         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
13418         ASM_OUTPUT_DWARF_PCREL): Define.
13419         (ASM_SPEC): Change definition to allow PIC generation.
13420
13421 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
13422
13423         * doc/sourcebuild.texi: Update front-end requirements.
13424
13425 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
13426
13427         PR target/39226
13428         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
13429         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
13430         (booldi3_internal3): Use boolean_or_operator instead of
13431         boolean_operator.
13432
13433 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
13434
13435         PR c/39605
13436         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
13437         declarator whose size is not an integer constant expression but
13438         folds to an integer constant, then treat it as a constant
13439         subsequently.
13440
13441 2009-04-01  Richard Guenther  <rguenther@suse.de>
13442
13443         * fold-const.c (fold_plusminus_mult_expr): Do not fold
13444         i * 4 + 2 to (i * 2 + 1) * 2.
13445
13446 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
13447
13448         PR c/37772
13449         * c-parser.c (c_parser_asm_statement): Skip until close paren and
13450         return if c_parser_asm_string_literal returned NULL.
13451
13452 2009-04-01  Nick Clifton  <nickc@redhat.com>
13453
13454         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
13455         already defined.
13456         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
13457         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
13458         other typedefs to avoid conflicts with libgcc2.c.  Define labels
13459         to gain 16-bit bit-manipulation functions from libgcc2.c and then
13460         include it.
13461         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
13462         to gain 16-bit trapping arithmetic functions from libgcc2.c and
13463         then include it.
13464
13465 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
13466
13467         * varasm.c (default_function_rodata_section): Declare DOT as
13468         const char*.
13469
13470 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
13471             Andrey Galkin  <agalkin@hypercom.com>
13472
13473         PR/39492
13474         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13475         Make object_name unique for each process.
13476
13477 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
13478
13479         PR other/39591
13480         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
13481         addressable variables in the parallel that could go out of scope while
13482         running queued tasks.
13483
13484 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
13485
13486         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
13487         (CASE_VALUES_THRESHOLD): Redefine.
13488         * config/avr/avr.c (avr_override_options): Remove initialization of
13489         avr_case_values_threshold variable.
13490         (avr_case_values_threshold): Remove variable. Add new function.
13491         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
13492         * config/avr/avr.opt (mno-tablejump): Remove option.
13493         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
13494
13495 2009-04-01  DJ Delorie  <dj@redhat.com>
13496
13497         * varasm.c (default_function_rodata_section): Don't assume
13498         anything about where the first '.' in the section name is.
13499
13500 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
13501
13502         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
13503         rs6000_emit_stack_tie.
13504
13505 2009-03-31  Ian Lance Taylor  <iant@google.com>
13506
13507         * tree-eh.c (tree_remove_unreachable_handlers): Compare
13508         gimple_code with GIMPLE_RESX, not RESX.
13509
13510 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
13511
13512         * c-common.c (c_get_ident): New.
13513         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
13514
13515 2009-04-01  Ben Elliston  <bje@au.ibm.com>
13516
13517         * config/rs6000/sysv4.opt (msdata): Improve option description.
13518
13519 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
13520
13521         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
13522         (divdf3_internal_lat): Remove.
13523         (divxf3_internal_lat): Remove.
13524         (divxf3_internal_thr): Remove.
13525         (divxf): Use divxf3_internal.
13526         * config/ia64/div.md (divsf3_internal_lat): New.
13527         (divdf3_internal_lat): New.
13528         (divxf3_internal): New.
13529
13530 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
13531
13532         PR c/448
13533         * Makefile.in (USE_GCC_STDINT): Define.
13534         (stmp-int-hdrs): Install stdint.h if applicable.
13535         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
13536         if known.
13537         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
13538         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
13539         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
13540         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
13541         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
13542         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
13543         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
13544         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
13545         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
13546         (c_common_nodes_and_builtins): Initialize
13547         underlying_wchar_type_node.  Do not initialize
13548         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
13549         nodes for new types.
13550         (c_stddef_cpp_builtins): Define macros for new types.
13551         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
13552         Remove.
13553         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
13554         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
13555         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
13556         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
13557         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
13558         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
13559         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
13560         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
13561         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
13562         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
13563         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
13564         int16_type_node, int32_type_node, int64_type_node,
13565         uint8_type_node, uint16_type_node, c_uint32_type_node,
13566         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
13567         int_least32_type_node, int_least64_type_node,
13568         uint_least8_type_node, uint_least16_type_node,
13569         uint_least32_type_node, uint_least64_type_node,
13570         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
13571         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
13572         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
13573         uintptr_type_node): Define.
13574         * c-cppbuiltin.c (builtin_define_constants,
13575         builtin_define_type_minmax): New.
13576         (builtin_define_stdint_macros): Define more macros.
13577         (c_cpp_builtins): Define more limit macros.
13578         (type_suffix): New.
13579         (builtin_define_type_max): Define in terms of
13580         builtin_define_type_minmax.  Remove is_long parameter.  All
13581         callers changed.
13582         * config.gcc (use_gcc_stdint): Define.
13583         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
13584         Add newlib-stdint.h for generic targets.
13585         * config/glibc-stdint.h, config/newlib-stdint.h,
13586         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
13587         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
13588         * config/score/score.h (UINTPTR_TYPE): Define.
13589         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
13590         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
13591         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
13592         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
13593         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
13594         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
13595         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
13596         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
13597         * config/spu/spu.h (STDINT_LONG32): Define.
13598         * configure.ac (use_gcc_stdint): Substitute.
13599         * configure: Regenerate.
13600         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
13601         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
13602         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
13603         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
13604         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
13605         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
13606         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
13607         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
13608         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
13609         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
13610         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
13611         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
13612         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
13613         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
13614         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
13615         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
13616         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
13617         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
13618         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
13619         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
13620         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
13621         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
13622         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
13623         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
13624         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
13625         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
13626         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
13627         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
13628         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
13629
13630 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
13631
13632         * loop-iv.c (suitable_set_for_replacement): Renamed from
13633         simplify_using_assignment; changed to return bool and to accept new
13634         args DEST and SRC.  Return true iff we find a source/destination pair
13635         that can be used to make a replacement, and fill SRC and DEST if so.
13636         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
13637         changed.
13638         (simplify_using_initial_values): Deal with altered regs here and track
13639         more precisely the effect they have on the validity of our expression.
13640
13641         * loop-iv.c (simplify_using_condition): A condition of the form
13642         (EQ REG CONST) can be used to simply make a substitution.
13643         (simplify_using_initial_values): Keep track of conditions we have seen
13644         and keep using them to simplify new expressions, while applying the
13645         same substitutions to them as to the expression.
13646
13647         * simplify-rtx.c (simplify_relational_operation_1): Simplify
13648         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
13649         GEU/LTU reversed.
13650
13651         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
13652         changed.  Use this when trying to improve the upper bound.
13653         Generate the comparison by using simplify_gen_relational.
13654
13655         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
13656
13657         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
13658         functions.
13659         (simplify_using_assignment, simplify_using_initial_values): Call
13660         replace_in_expr to make replacements.  Call replace_single_def_regs
13661         once on the initial version of the expression.
13662
13663 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13664
13665         PR target/27237
13666         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
13667
13668 2009-03-31  Richard Guenther  <rguenther@suse.de>
13669
13670         PR middle-end/31029
13671         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
13672         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
13673
13674 2009-03-31  Richard Guenther  <rguenther@suse.de>
13675
13676         * tree.h (div_if_zero_remainder): Declare.
13677         * fold-const.c (div_if_zero_remainder): Export.
13678         * tree-ssa-forwprop.c
13679         (forward_propagate_addr_into_variable_array_index): Handle
13680         constant array index addition outside of the variable index.
13681
13682 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
13683
13684         PR target/39592
13685         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
13686         define_splits, floatunssi<mode>2): Require x87 conversions from
13687         DImode to be permitted.
13688
13689 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
13690
13691         PR preprocessor/15638
13692         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
13693
13694 2009-03-31  Richard Guenther  <rguenther@suse.de>
13695
13696         PR middle-end/23401
13697         PR middle-end/27810
13698         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
13699         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
13700         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
13701         a separate statement.
13702         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
13703         (lookup_tmp_var): Likewise.
13704         (is_gimple_formal_tmp_or_call_rhs): Remove.
13705         (is_gimple_reg_or_call_rhs): Rename to ...
13706         (is_gimple_reg_rhs_or_call): ... this.
13707         (is_gimple_mem_or_call_rhs): Rename to ...
13708         (is_gimple_mem_rhs_or_call): ... this.
13709         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
13710         DECL_GIMPLE_REG_P only if is_formal is true.
13711         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
13712         for non-proper post-modify expression gimplification.
13713         (gimplify_self_mod_expr): For post-modify expressions gimplify
13714         the lvalue to a minimal lvalue.
13715         (rhs_predicate_for): Remove formal temp case.
13716         (gimplify_modify_expr_rhs): Likewise.
13717         (gimplify_addr_expr): Use is_gimple_reg.
13718         (gimplify_expr): Remove formal temp cases.
13719         (gimple_regimplify_operands): Likewise.
13720         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
13721         and FILTER_EXPR like constants.
13722         * gimple.c (walk_gimple_op): Fix val_only initialization, use
13723         is_gimple_reg.
13724         (is_gimple_formal_tmp_rhs): Remove.
13725         (is_gimple_reg_rhs): Remove special casing.
13726         (is_gimple_mem_rhs): Fix.
13727         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
13728         (is_gimple_formal_tmp_var): Remove.
13729         (is_gimple_formal_tmp_reg): Likewise.
13730         (is_gimple_min_lval): Allow invariant component ref parts.
13731         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
13732         is_gimple_formal_tmp_reg): Remove declarations.
13733         * tree-cfg.c (verify_expr): Verify that variables with address
13734         taken do not have DECL_GIMPLE_REG_P set.
13735         * tree-mudflap.c (mf_build_check_statement_for): Use
13736         force_gimple_operand instead of gimplify_expr.
13737
13738 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
13739
13740         * modulo-sched.c (sms_schedule_by_order): Pass the actual
13741         schedulable rows to compute_split_row.
13742
13743 2009-03-31  Ben Elliston  <bje@au.ibm.com>
13744
13745         PR target/31635
13746         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
13747         OPT_mvrsave.
13748
13749 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
13750
13751         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
13752         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
13753         * configure: Regenerate.
13754         * config.in: Regenerate.
13755         * config/rs6000/rs6000.opt (mtls-markers): Add.
13756         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
13757         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
13758         (tls_ld_aix, tls_ld_sysv): Likewise.
13759         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
13760         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
13761
13762 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
13763
13764         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
13765
13766 2009-03-30  Jan Hubicka  <jh@suse.cz>
13767
13768         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
13769         out of RESX.
13770         (tree_remove_unreachable_handlers): Cleanup EH predecestor
13771         detection and label handling.
13772
13773 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
13774
13775         * ira-int.h (ira_allocno): Rename left_conflicts_num to
13776         left_conflicts_size.
13777         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
13778         ALLOCNO_LEFT_CONFLICTS_SIZE.
13779
13780         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
13781         remove_allocno_from_bucket_and_push,
13782         allocno_spill_priority_compare, push_allocnos_to_stack,
13783         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
13784         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
13785         (setup_allocno_left_conflicts_num): Ditto.  Rename to
13786         setup_allocno_left_conflicts_size.
13787         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
13788         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
13789         setup_allocno_left_conflicts_size instead of
13790         setup_allocno_left_conflicts_num.
13791
13792         * ira-build.c (ira_create_allocno): Use
13793         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
13794         ALLOCNO_LEFT_CONFLICTS_NUM.
13795
13796 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
13797
13798         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
13799         instead of DF_LR_OUT.
13800
13801         * ira-lives.c (process_bb_node_lives): Ditto.
13802
13803         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
13804         instead of DF_LR_{OUT,IN}.
13805
13806         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
13807
13808         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
13809
13810 2009-03-30  Jan Hubicka  <jh@suse.cz>
13811
13812         * except.c (label_to_region_map): Fix thinko.
13813
13814 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
13815
13816         PR middle-end/38237
13817         * tree.h (tree_find_value): New declaration.
13818         * tree.c (tree_find_value): New function.
13819         * varasm.c (assemble_external): Avoid duplicate entries on lists.
13820
13821 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
13822
13823         PR debug/39563
13824         * c-decl.c (struct c_binding): Add locus field.
13825         (bind): Add locus argument, set locus field from it.
13826         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
13827         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
13828         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
13829         implicitly_declare, undeclared_variable, lookup_label,
13830         declare_label, c_make_fname_decl, c_builtin_function,
13831         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
13832         bind callers.
13833
13834 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
13835
13836         PR target/38781
13837         * config/i386/i386.c (classify_argument): Check total size of
13838         structure.
13839
13840 2009-03-30  Martin Jambor  <mjambor@suse.cz>
13841
13842         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
13843         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
13844         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
13845         respectively.
13846
13847         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
13848         seen_variable_array_ref while also traversing a union.
13849
13850         * tree-inline.c (optimize_inline_calls): Do not call
13851         cgraph_node_remove_callees.
13852         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
13853         (pass_remove_cgraph_callee_edges): New variable.
13854         * passes.c (init_optimization_passes): Add
13855         pass_remove_cgraph_callee_edges after early inlining and before all
13856         late intraprocedural passes.
13857
13858         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
13859
13860 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
13861
13862         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
13863         Fix typos in names.
13864
13865 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
13866
13867         * combine.c (simplify_comparison): Use have_insn_for.
13868         * dojump.c (do_jump): Likewise.
13869
13870 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
13871
13872         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
13873         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
13874         sparc_compare_op0 like sparc_compare_emitted used to be handled.
13875         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
13876         instead of sparc_compare_emitted.
13877         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
13878         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
13879         instead of sparc_compare_emitted.
13880
13881 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
13882
13883         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
13884         enter/exit cfglayout mode.
13885         (pass_partition_block): Require it.
13886         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
13887         (combine_instructions): Track basic blocks instead of labels.
13888         (update_cfg_for_uncondjump): New.
13889         (try_combine): Use it.  Update jumps after rescanning.
13890         (pass_combine): Require PROP_cfglayout.
13891         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
13892
13893 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
13894
13895         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
13896         Provide/destroy PROP_cfglayout respectively.
13897         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
13898         * tree-pass.h (PROP_cfglayout): New.
13899
13900 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
13901
13902         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
13903         fold_convert_const_fixed_from_fixed,
13904         fold_convert_const_fixed_from_int,
13905         fold_convert_const_fixed_from_real, fold_negate_const): Do not
13906         set TREE_CONSTANT_OVERFLOW.
13907         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
13908         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
13909
13910 2009-03-30  Ira Rosen  <irar@il.ibm.com>
13911
13912         * tree-vect-loop-manip.c: New file.
13913         * tree-vectorizer.c: Update documentation and included files.
13914         (vect_loop_location): Make extern.
13915         (rename_use_op): Move to tree-vect-loop-manip.c
13916         (rename_variables_in_bb, rename_variables_in_loop,
13917         slpeel_update_phis_for_duplicate_loop,
13918         slpeel_update_phi_nodes_for_guard1,
13919         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
13920         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
13921         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
13922         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
13923         find_loop_location): Likewise.
13924         (new_stmt_vec_info): Move to tree-vect-stmts.c.
13925         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
13926         get_vectype_for_scalar_type, vect_is_simple_use,
13927         supportable_widening_operation, supportable_narrowing_operation):
13928         Likewise.
13929         (bb_in_loop_p): Move to tree-vect-loop.c.
13930         (new_loop_vec_info, destroy_loop_vec_info,
13931         reduction_code_for_scalar_code, report_vect_op,
13932         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
13933         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
13934         (vect_supportable_dr_alignment): Likewise.
13935         * tree-vectorizer.h (tree-data-ref.h): Include.
13936         (vect_loop_location): Declare.
13937         Reorganize function declarations according to the new file structure.
13938         * tree-vect-loop.c: New file.
13939         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
13940         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
13941         * tree-vect-data-refs.c: New file.
13942         * tree-vect-patterns.c (timevar.h): Don't include.
13943         * tree-vect-stmts.c: New file.
13944         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
13945         tree-vect-slp.c, tree-vect-loop.c.
13946         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
13947         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
13948         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
13949         (tree-vect-analyze.o): Remove.
13950         (tree-vect-transform.o): Likewise.
13951         (tree-vect-data-refs.o): Add rule.
13952         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
13953         tree-vect-slp.o): Likewise.
13954         (tree-vect-patterns.o): Remove redundant dependencies.
13955         (tree-vectorizer.o): Likewise.
13956         * tree-vect-slp.c: New file.
13957
13958 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13959
13960         * optc-gen.awk: Warn if an option flag has multiple different
13961         help strings.
13962
13963 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
13964
13965         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
13966         -floop-block): Document dependences on PPL, CLooG and Graphite.
13967
13968 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
13969
13970         PR rtl-optimization/323
13971         * c-common.c (c_fully_fold, convert_and_check,
13972         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
13973         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
13974         * c-common.def (EXCESS_PRECISION_EXPR): New.
13975         * c-cppbuiltin.c (builtin_define_float_constants): Define
13976         constants with enough digits for long double.
13977         * c-lex.c (interpret_float): Interpret constant with excess
13978         precision where appropriate.
13979         * c-opts.c (c_common_post_options): Set
13980         flag_excess_precision_cmdline.  Give an error for
13981         -fexcess-precision=standard for C++ for processors where the
13982         option is significant.
13983         * c-parser.c (c_parser_conditional_expression): Handle excess
13984         precision in condition.
13985         * c-typeck.c (convert_arguments): Handle arguments with excess
13986         precision.
13987         (build_unary_op): Move excess precision outside operation.
13988         (build_conditional_expr): Likewise.
13989         (build_compound_expr): Likewise.
13990         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
13991         (build_modify_expr): Handle excess precision in RHS.
13992         (convert_for_assignment): Handle excess precision in converted
13993         value.
13994         (digest_init, output_init_element, process_init_element): Handle
13995         excess precision in initializer.
13996         (c_finish_return): Handle excess precision in return value.
13997         (build_binary_op): Handle excess precision in operands and add
13998         excess precision as needed for operation.
13999         * common.opt (-fexcess-precision=): New option.
14000         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
14001         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
14002         For standard excess precision, output explicit conversion to and
14003         truncation from XFmode.
14004         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
14005         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
14006         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
14007         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
14008         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
14009         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
14010         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
14011         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
14012         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
14013         define_splits, sqrt<mode>2): Disable where appropriate for
14014         standard excess precision.
14015         * convert.c (convert_to_real): Do not shorten arithmetic to type
14016         for which excess precision would be used.
14017         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
14018         * doc/invoke.texi (-fexcess-precision=): Document option.
14019         (-mfpmath=): Correct index entry.
14020         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
14021         flag_excess_precision): New.
14022         * langhooks.c (lhd_post_options): Set
14023         flag_excess_precision_cmdline.
14024         * opts.c (common_handle_option): Handle -fexcess-precision=.
14025         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
14026         init_excess_precision): New.
14027         (lang_dependent_init_target): Call init_excess_precision.
14028         * tree.c (excess_precision_type): New.
14029         * tree.h (excess_precision_type): Declare.
14030
14031 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
14032
14033         PR c/35235
14034         * c-typeck.c (build_component_ref): Do not copy qualifiers from
14035         non-lvalue to component.
14036
14037 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
14038
14039         PR preprocessor/34695
14040         * Makefile.in (c-opts.o): Depend on c-tree.h.
14041         * c-common.c: Move down include of diagnostic.h.
14042         (done_lexing, c_cpp_error): New.
14043         * c-common.h (done_lexing): Declare.
14044         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
14045         (parse_in).
14046         * c-opts.c: Include c-tree.h.
14047         (c_common_init_options): Set preprocessor error callback.
14048         (c_common_handle_option): Do not set preprocessor
14049         inhibit_warnings, warnings_are_errors, warn_system_headers,
14050         pedantic_errors or inhibit_warnings flags.
14051         (c_common_post_options): Do not check cpp_errors (parse_in).
14052         (c_common_finish): Do not output dependencies if there were
14053         errors.  Do not check return value of cpp_finish.
14054         * c-ppoutput.c (pp_file_change): Set input_location.
14055         * c-tree.h (c_cpp_error): Declare.
14056         * diagnostic.c (diagnostic_set_info_translated): Also initialize
14057         override_column.
14058         (diagnostic_build_prefix): Check override_column.
14059         * diagnostic.h (diagnostic_info): Add override_column field.
14060         (diagnostic_override_column): Define.
14061
14062 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
14063
14064         * c-common.c (c_expand_expr, c_staticp): Remove.
14065         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
14066         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
14067         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
14068         * c-gimplify.c (gimplify_compound_literal_expr,
14069         optimize_compound_literals_in_ctor): Remove.
14070         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
14071         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
14072         * c-semantics.c (emit_local_var): Remove.
14073
14074         * langhooks-def.h (lhd_expand_expr): Remove.
14075         * langhooks.c (lhd_expand_expr): Remove.
14076         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
14077
14078         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
14079         handling from c-semantics.c; don't call into langhook.
14080         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
14081         * gimplify.c (gimplify_compound_literal_expr,
14082         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
14083         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
14084         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
14085         as was done in c-gimplify.c.
14086         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
14087         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
14088         Move from c-common.h.
14089         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
14090
14091         * tree.c (staticp): Do not call langhook.
14092         * langhooks.c (lhd_staticp): Delete.
14093         * langhooks-def.h (lhd_staticp): Delete prototype.
14094         (LANG_HOOKS_STATICP): Delete.
14095         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
14096
14097         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
14098         instead of DECL_STMTs.
14099
14100 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
14101
14102         PR c/456
14103         PR c/5675
14104         PR c/19976
14105         PR c/29116
14106         PR c/31871
14107         PR c/35198
14108         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
14109         void_type_node.
14110         (fold_call_expr): Return a NOP_EXPR from folding rather than the
14111         contained expression.
14112         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
14113         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
14114         conditional expressions for C.
14115         (decl_constant_value_for_optimization): Move from
14116         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
14117         whether optimizing and that the expression is a VAR_DECL not of
14118         array type instead of doing such checks in the caller.  Do not
14119         check pedantic.  Call gcc_unreachable for C++.
14120         * c-common.def (C_MAYBE_CONST_EXPR): New.
14121         * c-common.h (c_fully_fold, c_save_expr,
14122         decl_constant_value_for_optimization): New prototypes.
14123         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
14124         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
14125         EXPR_INT_CONST_OPERANDS): Define.
14126         * c-convert.c (convert): Strip nops from expression.
14127         * c-decl.c (groktypename): Take extra parameters expr and
14128         expr_const_operands.  Update call to grokdeclarator.
14129         (start_decl): Update call to grokdeclarator.  Add statement for
14130         expressions used in type of decl.
14131         (grokparm): Update call to grokdeclarator.
14132         (push_parm_decl): Update call to grokdeclarator.
14133         (build_compound_literal): Add parameter non_const and build a
14134         C_MAYBE_COSNT_EXPR if applicable.
14135         (grokdeclarator): Take extra parameters expr and
14136         expr_const_operands.  Track expressions used in declaration
14137         specifiers and declarators.  Fold array sizes and track whether
14138         they are constant expressions and whether they are integer
14139         constant expressions.
14140         (parser_xref_tag): Set expr and expr_const_operands fields in
14141         return value.
14142         (grokfield): Update call to grokdeclarator.
14143         (start_function): Update call to grokdeclarator.
14144         (build_null_declspecs): Set expr and expr_const_operands fields in
14145         return value.
14146         (declspecs_add_type): Handle expressions in typeof specifiers.
14147         * c-parser.c (c_parser_declspecs): Set expr and
14148         expr_const_operands fields for declaration specifiers.
14149         (c_parser_enum_specifier): Likewise.
14150         (c_parser_struct_or_union_specifier): Likewise.
14151         (c_parser_typeof_specifier): Likewise.  Update call to
14152         groktypename.  Fold expression as needed.  Return expressions with
14153         type instead of adding statements.
14154         (c_parser_attributes): Update calls to c_parser_expr_list.
14155         (c_parser_statement_after_labels): Fold expression before passing
14156         to objc_build_throw_stmt.
14157         (c_parser_condition): Fold expression.
14158         (c_parser_asm_operands): Fold expression.
14159         (c_parser_conditional_expression): Use c_save_expr.  Update call
14160         to build_conditional_expr.
14161         (c_parser_alignof_expression): Update call to groktypename.
14162         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
14163         original_code.  Fold expression argument of va_arg.  Create
14164         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
14165         argument to va_arg.  Update calls to groktypename.  Fold array
14166         index for offsetof.  Verify that first argument to
14167         __builtin_choose_expr has integer type.
14168         (c_parser_postfix_expression_after_paren_type): Update calls to
14169         groktypename and build_compound_literal.  Handle expressions with
14170         side effects in type name.
14171         (c_parser_postfix_expression_after_primary): Update call to
14172         c_parser_expr_list.  Set original_code for calls to
14173         __builtin_constant_p.
14174         (c_parser_expr_list): Take extra parameter fold_p.  Fold
14175         expressions if requested.
14176         (c_parser_objc_type_name): Update call to groktypename.
14177         (c_parser_objc_synchronized_statement): Fold expression.
14178         (c_parser_objc_receiver): Fold expression.
14179         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
14180         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
14181         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
14182         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
14183         (struct c_typespec): Add elements expr and expr_const_operands.
14184         (struct c_declspecs): Add elements expr and expr_const_operands.
14185         (groktypename, build_conditional_expr, build_compound_literal):
14186         Update prototypes.
14187         (in_late_binary_op): Declare.
14188         * c-typeck.c (note_integer_operands): New function.
14189         (in_late_binary_op): New variable.
14190         (decl_constant_value_for_broken_optimization): Move to c-common.c
14191         and rename to decl_constant_value_for_optimization.
14192         (default_function_array_conversion): Do not strip nops.
14193         (default_conversion): Do not call
14194         decl_constant_value_for_broken_optimization.
14195         (build_array_ref): Do not fold result.
14196         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
14197         result when operand is a VLA.
14198         (c_expr_sizeof_type): Update call to groktypename.  Handle
14199         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
14200         result when operand names a VLA type.
14201         (build_function_call): Update call to build_compound_literal.
14202         Only fold result for calls to __builtin_* functions.  Strip
14203         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
14204         the function designator.
14205         (convert_arguments): Fold arguments.  Update call to
14206         convert_for_assignment.
14207         (build_unary_op): Handle increment and decrement of
14208         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
14209         decrement earlier.  Fold operand of increment and decrement.
14210         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
14211         built for integer operand.  Wrap returns that are INTEGER_CSTs
14212         without being integer constant expressions or that have integer
14213         constant operands without being INTEGER_CSTs.
14214         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
14215         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
14216         result is an integer constant expression or can be used in
14217         unevaluated parts of one and avoid folding and wrap as
14218         appropriate.  Fold operands before possibly doing -Wsign-compare
14219         warnings.
14220         (build_compound_expr): Wrap result for C99 if operands can be used
14221         in integer constant expressions.
14222         (build_c_cast): Update call to digest_init.  Do not ignore
14223         overflow from casting floating-point constants to integers.  Wrap
14224         results that could be confused with integer constant expressions,
14225         null pointer constants or floating-point constants.
14226         (c_cast_expr): Update call to groktypename.  Handle expressions
14227         included in type name.
14228         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
14229         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
14230         Update calls to convert_for_assignment.
14231         (convert_for_assignment): Take new parameter
14232         null_pointer_constant.  Do not strip nops or call
14233         decl_constant_value_for_broken_optimization.  Set
14234         in_late_binary_op for conversions to boolean.
14235         (store_init_value): Update call to digest_init.
14236         (digest_init): Take new parameter null_pointer_constant.  Do not
14237         call decl_constant_value_for_broken_optimization.  pedwarn for
14238         initializers not constant expressions.  Update calls to
14239         convert_for_assignment.
14240         (constructor_nonconst): New.
14241         (struct constructor_stack): Add nonconst element.
14242         (really_start_incremental_init, push_init_level, pop_init_level):
14243         Handle constructor_nonconst and nonconst element.
14244         (set_init_index): Call constant_expression_warning for array
14245         designators.
14246         (output_init_element): Fold value.  Set constructor_nonconst as
14247         applicable.  pedwarn for initializers not constant expressions.
14248         Update call to digest_init.  Call constant_expression_warning
14249         where constant initializers are required.
14250         (process_init_element): Use c_save_expr.
14251         (c_finish_goto_ptr): Fold expression.
14252         (c_finish_return): Fold return value.  Update call to
14253         convert_for_assignment.
14254         (c_start_case): Fold switch expression.
14255         (c_process_expr_stmt): Fold expression.
14256         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
14257         ensure statement expression is not evaluated in constant expression.
14258         (build_binary_op): Track whether results are integer constant
14259         expressions or may occur in such, disable folding and wrap results
14260         as applicable.  Fold operands for -Wsign-compare warnings unless
14261         in_late_binary_op.
14262         (c_objc_common_truthvalue_conversion): Handle results folded to
14263         integer constants that are not integer constant expressions.
14264         * doc/extend.texi: Document when typeof operands are evaluated,
14265         that condition of __builtin_choose_expr is an integer constant
14266         expression, and more about use of __builtin_constant_p in
14267         initializers.
14268
14269 2009-03-29  Richard Guenther  <rguenther@suse.de>
14270
14271         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
14272         propagate addresses of array references.
14273
14274 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
14275
14276         * regmove.c (perhaps_ends_bb_p): Remove.
14277         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
14278         from INSN and check that the main loop stays within that basic block.
14279         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
14280         (regmove_forward_pass): Split out from regmove_optimize.  Use
14281         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
14282         (regmove_backward_pass): Split out from regmove_optimize.  Use
14283         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
14284         (regmove_optimize): Simplify.
14285
14286 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
14287
14288         PR target/39545
14289         * config/i386/i386.c (classify_argument): Ignore flexible array
14290         member in struct and warn ABI change.
14291
14292 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
14293
14294         * config/i386/i386-protos.h (ix86_agi_dependent): New.
14295
14296         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
14297         (ix86_adjust_cost): Updated.
14298
14299 2009-03-29  Jan Hubicka  <jh@suse.cz>
14300
14301         PR middle-end/28850
14302         * tree-pass.h (pass_cleanup_eh): New function.
14303         (remove_unreachable_regions): Break code handling RTL
14304         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
14305         that can not be reached by runtime.
14306         (can_be_reached_by_runtime): New function.
14307         (label_to_region_map): New function.
14308         (num_eh_regions): New function.
14309         (rtl_remove_unreachable_regions): New function.
14310         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
14311         (remove_eh_region): New function.
14312         * except.h: Include sbitmap and vecprim.
14313         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
14314         num_eh_regions): Declare.
14315         * passes.c (init_optimization_passes): Schedule cleanup_eh.
14316         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
14317         * tree-eh.c (tree_remove_unreachable_handlers): New function.
14318         (tree_empty_eh_handler_p): New function.
14319         (cleanup_empty_eh): New function.
14320         (cleanup_eh): New function.
14321         (pass_cleanup_eh): New function.
14322
14323 2009-03-29  Jan Hubicka  <jh@suse.cz>
14324
14325         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
14326         for removed regions.
14327
14328 2009-03-29  Jan Hubicka  <jh@suse.cz>
14329
14330         * except.c (dump_eh_tree): Dump all datastructures.
14331
14332 2009-03-29  Jan Hubicka  <jh@suse.cz>
14333
14334         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
14335         (duplicate_eh_regions_1): Likewise.
14336         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
14337         vector; call EH verification.
14338         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
14339         Be ready for region being removed.
14340
14341 2009-03-29  Jan Hubicka  <jh@suse.cz>
14342
14343         * bitmap.c (bitmap_last_set_bit): New function.
14344         * bitmap.h (bitmap_last_set_bit): Declare.
14345
14346 2009-03-29  David Ayers  <ayers@fsfe.org>
14347
14348         PR objc/27377
14349         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
14350         by calling objc_compare_types and surpress warnings about
14351         incompatible C pointers that are compatible ObjC pointers.
14352
14353 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
14354
14355         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
14356         call initialize_inline_failed.
14357         (initialize_inline_failed): Move it from here ...
14358         * cgraph.c (initialize_inline_failed): ... to here.
14359         (cgraph_create_edge): Call initialize_inline_failed rather than
14360         setting inline_failed directly.
14361
14362 2009-03-29  Ben Elliston  <bje@au.ibm.com>
14363
14364         PR target/32542
14365         * sysv4.opt (msdata): Improve comment.
14366         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
14367         * sysv4.h (SVR4_ASM_SPEC): Likewise.
14368
14369 2009-03-29  Ben Elliston  <bje@au.ibm.com>
14370
14371         PR target/30451
14372         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
14373         load and store attributes.
14374
14375 2009-03-29  Ben Elliston  <bje@au.ibm.com>
14376
14377         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
14378         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
14379         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
14380         * doc/extend.texi (X86 Built-in Functions): Add index entries for
14381         __builtin_infq and __builtin_huge_valq.
14382
14383 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
14384
14385         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
14386         atmega8m1 devices.
14387         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
14388         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
14389
14390 2009-03-28  Xinliang David Li  <davidxl@google.com>
14391
14392         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
14393         (do_dbg_cnt): New function.
14394
14395 2009-03-28  Jan Hubicka  <jh@suse.cz>
14396
14397         Merge from pretty-ipa:
14398
14399         2009-03-27  Jan Hubicka  <jh@suse.cz>
14400
14401         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
14402         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
14403         * passes.c (function_called_by_processed_nodes_p): New.
14404         * ipa-pure-const.c (check_call): Fix handling of operands.
14405         (analyze_function): Dump debug output for skipped bodies.
14406         (local_pure_const): Use function_called_by_processed_nodes_p.
14407         * dwarf2out.c (reference_to_unused): Use output.
14408         * passes.c (do_per_function_toporder): Likewise.
14409
14410         2008-11-12  Jan Hubicka  <jh@suse.cz>
14411
14412         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
14413         * ipa-pure-const.c (funct_state_d): Add can throw field; make
14414         state_set_in_source enum
14415         (check_decl): Ignore memory tags; do not set fake looping flags;
14416         dump diagnostics.
14417         (check_operand, check_tree, check_rhs_var, check_lhs_var,
14418         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
14419         (check_call, analyze_function): Rewrite.
14420         (check_stmt): New.
14421         (add_new_function): Update call of analyze_function.
14422         (generate_summary): Add call of analyze_function.
14423         (propagate): Propagate can_throw; handle state_set_in_source correctly.
14424         (local_pure_const): New function.
14425         (pass_local_pure_const): New pass.
14426         * ipa-inline.c (inline_transform): Set after_inlining.
14427         * tree-eh.c (stmt_can_throw_external): New.
14428         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
14429         work with aliasing built.
14430         * tree-flow.h (stmt_can_throw_external): New.
14431         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
14432         and local pure/const pass in early and late optimization queue.
14433
14434 2009-03-28  Martin Jambor  <mjambor@suse.cz>
14435
14436         * fold-const.c (get_pointer_modulus_and_residue): New parameter
14437         allow_func_align.
14438         (fold_binary): Allow function decl aligment consideration is the
14439         second argument is integer constant one.
14440         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
14441         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
14442         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
14443
14444 2009-03-28  Jan Hubicka  <jh@suse.cz>
14445
14446         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
14447         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
14448         * function.h (rtl_data): Add nothrow flag.
14449         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
14450         set DECL_NOTHROW for AVAILABLE functions.
14451
14452 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
14453
14454         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
14455         following vector keyword has expansion starting with pixel or bool
14456         keyword, expand vector to __vector and pixel or bool to __pixel or
14457         __bool.
14458
14459         PR c++/39554
14460         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
14461         warn_if_disallowed_function_p): Removed.
14462         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
14463         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
14464         warning_if_disallowed_function_p.
14465         * flags.h (warn_if_disallowed_function_p,
14466         warn_disallowed_functions): Removed.
14467         * common.opt (Wdisallowed-function-list=): Removed.
14468         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
14469
14470 2009-03-28  Richard Guenther  <rguenther@suse.de>
14471
14472         PR tree-optimization/38723
14473         * tree-ssa-pre.c (compute_avail): Add all default definitions to
14474         the entry block.
14475
14476 2009-03-28  Jan Hubicka  <jh@suse.cz>
14477
14478         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
14479         test introduced by my previous patch.
14480
14481 2009-03-28  Richard Guenther  <rguenther@suse.de>
14482
14483         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
14484         the PHIs value undefined.
14485
14486 2009-03-28  Jan Hubicka  <jh@suse.cz>
14487
14488         * tree-pass.h (pass_fixup_cfg): New pass.
14489         * ipa-inline.c (inline_transform): Set
14490         always_inline_functions_inlined/after_inlining.
14491         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
14492         (pass_fixup_cfg): New pass.
14493         * passes.c (init_optimization_passes): Add fixup_cfg.
14494
14495 2009-03-28  Richard Guenther  <rguenther@suse.de>
14496
14497         PR tree-optimization/38458
14498         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
14499         argument use the arguments copy-of value.
14500
14501 2009-03-28  Richard Guenther  <rguenther@suse.de>
14502
14503         PR tree-optimization/38180
14504         * tree-ssa-ccp.c (get_default_value): Simplify.
14505         (likely_value): Likewise.
14506         (surely_varying_stmt_p): Properly handle VOP case.
14507         (ccp_initialize): Likewise.
14508         (ccp_fold): Handle propagating through *&.
14509         (fold_const_aggregate_ref): Also handle decls.
14510
14511 2009-03-28  Jan Hubicka  <jh@suse.cz>
14512
14513         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
14514         * cgraph.h (cgraph_node): Likewise.
14515         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
14516         (cgraph_reset_node): Use process flag.
14517         (cgraph_mark_functions_to_output): Likewise.
14518         (cgraph_expand_function): Likewise.
14519         (cgraph_expand_all_functions): Likewise.
14520         (cgraph_output_in_order): Likewise.
14521         * dwarf2out.c (reference_to_unused): Likewise.
14522         * passes.c do_per_function_toporder): Likewise.
14523
14524 2009-03-28  Jan Hubicka  <jh@suse.cz>
14525
14526         Bring from lto-branch:
14527
14528         2008-09-03  Doug Kwan  <dougkwan@google.com>
14529
14530         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
14531         enums instead of reason strings.
14532         * cgraph.c (cgraph_create_edge): Same.
14533         (cgraph_inline_failed_string): New function.
14534         * cgraph.h (cgraph_inline_failed_t): New enum type.
14535         (cgraph_inline_failed_string): New prototype.
14536         (struct cgraph_edge): Change type of INLINED_FAILED from constant
14537         char pointer to cgraph_inline_failed_t.
14538         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
14539         (cgraph_default_inline_p): Ditto.
14540         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
14541         to cgraph_inline_failed_t pointer.
14542         * cif-code.def: New file.
14543         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
14544         reason string.
14545         (cgraph_check_inline_limits): Change type of REASON to pointer to
14546         cgraph_inline_failed_t.  Replace reason strings with enums.
14547         (cgraph_default_inline_p): Ditto.
14548         (cgraph_recursive_inlining_p): Ditto.
14549         (update_caller_keys): Change type of FAILED_REASON to
14550         cgraph_inline_failed_t.
14551         (cgraph_set_inline_failed): Change type of REASON to pointer to
14552         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
14553         convert enums to strings for text output.
14554         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
14555         to be of type cgraph_inline_failed_t.  Replace reason strings with
14556         enums.  Call cgraph_inline_failed_string to covert enums
14557         to strings for text output.
14558         (cgraph_decide_inlining): Replace reason strings with enums.
14559         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
14560         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
14561         for text output.
14562         * tree-inline.c (expand_call_inline): Change type of REASON
14563         to cgraph_inline_failed_t.  Replace reason strings with enums.
14564         Call cgraph_inline_failed_string for text output.
14565         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
14566         (cgraph.o): Ditto.
14567
14568 2009-03-28  Jan Hubicka  <jh@suse.cz>
14569
14570         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
14571         cgraph_clone_node): Remove master clone handling.
14572         (cgraph_is_master_clone, cgraph_master_clone): Remove.
14573         * cgraph.h (master_clone): Remove.
14574         (cgraph_is_master_clone, cgraph_master_clone): Remove.
14575         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
14576         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
14577
14578 2009-03-28  Jan Hubicka  <jh@suse.cz>
14579
14580         * cgraph.c (cgraph_function_body_availability): Functions declared
14581         inline are always safe to assume that it is not going to be replaced.
14582
14583 2009-03-28  Richard Guenther  <rguenther@suse.de>
14584
14585         PR tree-optimization/38513
14586         * tree-ssa-pre.c (eliminate): Remove redundant stores.
14587         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
14588         EXC_PTR_EXPR and FILTER_EXPR.
14589         (get_ref_from_reference_ops): Likewise.
14590
14591 2009-03-28  Richard Guenther  <rguenther@suse.de>
14592
14593         PR tree-optimization/38968
14594         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
14595         Use FLOOR_MOD_EXPR to compute misalignment.
14596
14597 2009-03-28  Richard Guenther  <rguenther@suse.de>
14598
14599         PR tree-optimization/37795
14600         * tree.h (combine_comparisons): Declare.
14601         * fold-const.c (combine_comparisons): Export.
14602         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
14603         comparisons.
14604         (ifcombine_iforif): Use combine_comparisons.
14605
14606 2009-03-28  Jan Hubicka  <jh@suse.cz>
14607
14608         * tree-eh.c (inlinable_call_p): New function.
14609         (make_eh_edges): Use it.
14610         (verify_eh_edges): Use it.
14611         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
14612         * except.c (reachable_next_level): Add inlinable_function argument
14613         (sjlj_find_directly_reachable_regions): Update.
14614         (add_reachable_handler): Do not set saw_any_handlers.
14615         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
14616         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
14617         Add new inlinable call parameter.
14618         (can_throw_internal, can_throw_external): Update.
14619         * except.h (can_throw_internal_1, can_throw_external_1,
14620         foreach_reachable_handler): Update declaration.
14621
14622 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
14623
14624         * config/arm/t-arm-coff, config/h8300/coff.h,
14625         config/i386/i386-aout.h, config/i386/i386-coff.h,
14626         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
14627         config/pdp11/2bsd.h, config/rs6000/aix41.h,
14628         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
14629         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
14630         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
14631         sys-types.h: Remove.
14632         * Makefile.in: Remove protoize and fixproto support and references
14633         in comments.
14634         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
14635         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
14636         Remove.
14637         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
14638         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
14639         unprotoize$(exeext).
14640         (rest.encap): Don't depend on $(STMP_FIXPROTO)
14641         (.PHONY): Don't depend on proto.
14642         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
14643         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
14644         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
14645         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
14646         build/gen-protos.o, build/scan.o, xsys-protos.h,
14647         build/fix-header$(build_exeext), build/fix-header.o,
14648         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
14649         stmp-install-fixproto): Remove.
14650         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
14651         SYSCALLS.c or fixproto files.
14652         (install-common): Don't install protoize.
14653         (install-headers-tar, install-headers-cpio, install-headers-cp):
14654         Don't depend on $(STMP_FIXPROTO).
14655         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
14656         install fixproto files or write out fixproto settings.
14657         (uninstall): Don't uninstall protoize.
14658         * config.gcc (use_fixproto): Remove.
14659         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
14660         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
14661         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
14662         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
14663         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
14664         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
14665         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
14666         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
14667         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
14668         * config/t-vxworks (STMP_FIXPROTO): Remove.
14669         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
14670         STMP_FIXPROTO): Remove.
14671         * config.in, configure: Regenerate.
14672         * crtstuff.c (gid_t, uid_t): Don't undefine.
14673         * doc/install.texi: Change m68k-coff to m68k-elf in example.
14674         (arm-*-coff, arm-*-aout: Remove target entries.
14675         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
14676         Remove mention of AIX 4.1.
14677         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
14678         * doc/invoke.texi (Running Protoize): Remove.
14679         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
14680         (Protoize Caveats): Remove.
14681         * tsystem.h: Update comments on headers assumed to exist.
14682
14683 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
14684
14685         * genautomata.c: Add a new year to the copyright.  Add a new
14686         reference.
14687         (struct insn_reserv_decl): Add comments for member bypass_list.
14688         (find_bypass): Remove.
14689         (insert_bypass): New.
14690         (process_decls): Use insert_bypass.
14691         (output_internal_insn_latency_func): Output all bypasses with the
14692         same input insn in one switch case.
14693
14694         * rtl.def (define_bypass): Describe bypass choice.
14695         * doc/md.texi (define_bypass): Ditto.
14696
14697 2009-03-27  Richard Guenther  <rguenther@suse.de>
14698
14699         * gimplify.c (mark_addressable): Export.
14700         * tree-flow.h (mark_addressable): Declare.
14701         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
14702         * tree-ssa.c (verify_phi_args): Verify that address taken
14703         variables have TREE_ADDRESSABLE set.
14704
14705 2009-03-27  Richard Guenther  <rguenther@suse.de>
14706
14707         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
14708         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
14709         Do not mark decls TREE_ADDRESSABLE.
14710         (build_fold_addr_expr): Adjust.
14711         (fold_addr_expr): Remove.
14712         (fold_unary): Use build_fold_addr_expr.
14713         (fold_comparison): Likewise.
14714         (split_address_to_core_and_offset): Likewise.
14715         * coverage.c (tree_coverage_counter_addr): Mark the array decl
14716         TREE_ADDRESSABLE.
14717         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
14718         (gimplify_modify_expr_to_memcpy): Mark source and destination
14719         addressable.
14720         * omp-low.c (create_omp_child_function): Mark the object decl
14721         TREE_ADDRESSABLE.
14722         (lower_rec_input_clauses): Mark the var we take the address of
14723         TREE_ADDRESSABLE.
14724         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
14725
14726 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
14727
14728         PR middle-end/39315
14729         * cfgexpand.c (expand_one_stack_var_at): Change alignment
14730         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
14731
14732 2009-03-27  Richard Guenther  <rguenther@suse.de>
14733
14734         PR tree-optimization/39120
14735         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
14736         constraints.
14737         (handle_lhs_call): Process return constraints.  Add escape
14738         constraints if necessary.
14739         (handle_const_call): Fill out return constraints.  Make nested
14740         case more precise.  Avoid consttmp if possible.
14741         (handle_pure_call): Fill out return constraints.  Avoid
14742         callused if possible.
14743         (find_func_aliases): Simplify call handling.
14744
14745 2009-03-27  Richard Guenther  <rguenther@suse.de>
14746
14747         PR tree-optimization/39120
14748         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
14749         as a representative.
14750         (solve_graph): Do propagate CALLUSED.
14751         (handle_pure_call): Use a scalar constraint from CALLUSED for
14752         the return value.
14753         (find_what_p_points_to): CALLUSED shall not appear in poins-to
14754         solutions.
14755
14756 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
14757
14758         PR c/39323
14759         * c-common.c (handle_aligned_attribute): Properly check alignment
14760         overflow.  Use (1U << i) instead of (1 << i).
14761
14762         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
14763
14764         * expr.h (get_mem_align_offset): Updated.
14765
14766         * tree.h (tree_decl_common): Change align to "unsigned int" and
14767         move it before pointer_alias_set.
14768
14769 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
14770             Jakub Jelinek  <jakub@redhat.com>
14771
14772         PR target/38034
14773         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
14774         gr_register_operand with gr_reg_or_0_operand.
14775         (cmpxchg_rel_di): Likewise.
14776         (sync_lock_test_and_set<mode>): Likewise.
14777
14778 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
14779
14780         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
14781         (true_regnum): Likewise.
14782
14783         * rtlanal.c (subreg_info): Moved to ...
14784         * rtl.h (subreg_info): Here.  New.
14785         (subreg_get_info): New.
14786
14787         * rtlanal.c (subreg_get_info): Make it extern.
14788
14789 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
14790
14791         PR target/39472
14792         * config/i386/i386.c (ix86_abi): New.
14793         (override_options): Handle -mabi=.
14794         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
14795         (ix86_call_abi_override): Likewise.
14796         (init_cumulative_args): Likewise.
14797         (function_arg_advance): Likewise.
14798         (function_arg_64): Likewise.
14799         (function_arg): Likewise.
14800         (ix86_pass_by_reference): Likewise.
14801         (ix86_function_value_regno_p): Likewise.
14802         (ix86_build_builtin_va_list_abi): Likewise.
14803         (setup_incoming_varargs_64): Likewise.
14804         (is_va_list_char_pointer): Likewise.
14805         (ix86_init_machine_status): Likewise.
14806         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
14807         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
14808         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
14809         (ix86_function_abi): Make it static and return enum calling_abi.
14810         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
14811         with ix86_abi.
14812         (ix86_fn_abi_va_list): Updated.
14813
14814         * config/i386/i386.h (ix86_abi): New.
14815         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
14816         (CONDITIONAL_REGISTER_USAGE): Likewise.
14817         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
14818         (machine_function): Likewise.
14819
14820         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
14821         with ix86_abi.
14822         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
14823         (STACK_BOUNDARY): Likewise.
14824         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
14825
14826         * config/i386/i386.opt (mabi=): New.
14827
14828         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
14829         return enum calling_abi.
14830         (ix86_function_type_abi): Likewise.
14831         (ix86_function_abi): Removed.
14832
14833         * doc/invoke.texi: Document -mabi= option for x86.
14834
14835 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14836
14837         * builtins.c (real_dconstp): Delete.
14838         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
14839
14840 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
14841             Jakub Jelinek  <jakub@redhat.com>
14842
14843         PR debug/37959
14844         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
14845         (gen_subprogram_die): When a function is explicit, generate the
14846         DW_AT_explicit attribute.
14847         * langhooks.h (struct lang_hooks_for_decls): Add
14848         function_decl_explicit_p langhook.
14849         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
14850         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
14851
14852 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
14853
14854         * builtins.c (fold_builtin_memory_op): Optimize memmove
14855         into memcpy if we can prove source and destination don't overlap.
14856
14857         * tree-inline.c: Include gt-tree-inline.h.
14858         (clone_fn_id_num): New variable.
14859         (clone_function_name): New function.
14860         (tree_function_versioning): Use it.
14861         * Makefile.in (GTFILES): Add tree-inline.c.
14862
14863 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
14864
14865         * BASE-VER: Change to 4.5.0.
14866
14867 2009-03-27  Xinliang David Li  <davidxl@google.com>
14868
14869         PR tree-optimization/39557
14870         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
14871
14872 2009-03-27  Xinliang David Li  <davidxl@google.com>
14873
14874         PR tree-optimization/39548
14875         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
14876         candidate check.
14877
14878 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
14879
14880         * c-common.c (pointer_int_sum): Use %wd on return from
14881         tree_low_cst.
14882
14883 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
14884
14885         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
14886         on return from tree_low_cst.
14887
14888 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14889
14890         PR c++/36799
14891         * ginclude/stdarg.h (va_copy): Define also for
14892         __GXX_EXPERIMENTAL_CXX0X__.
14893
14894 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14895
14896         PR c++/35652
14897         * builtins.h (c_strlen): Do not warn here.
14898         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
14899         * c-common.c (pointer_int_sum): Take an explicit location.
14900         Warn about offsets out of bounds.
14901         * c-common.h (pointer_int_sum): Adjust declaration.
14902
14903 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14904
14905         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
14906         markup glitch.
14907
14908 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
14909
14910         PR c++/39554
14911         * opts.c (warn_if_disallowed_function_p): Don't assume
14912         get_callee_fndecl must return non-NULL.
14913
14914 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
14915
14916         PR rtl-optimization/39522
14917         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
14918         when reg_reloaded_valid is set.
14919
14920 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14921
14922         * config/spu/divv2df3.c: New file.
14923         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
14924         (DPBIT_FUNCS): Filter out _div_df.
14925
14926 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
14927
14928         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
14929         a jump insn, count that jump in the distance to the loop start.
14930
14931 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
14932
14933         PR target/39523
14934         * config/sh/sh.c (calc_live_regs): Fix condition for global
14935         registers except PIC_OFFSET_TABLE_REGNUM.
14936
14937 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
14938
14939         PR/39518
14940         * doc/invoke.texi (-mconsole): New.
14941         (-mcygwin): New.
14942         (-mno-cygwin): New.
14943         (-mdll): New.
14944         (-mnop-fun-dllimport): New.
14945         (-mthread): New.
14946         (-mwin32): New.
14947         (-mwindows): New.
14948         (sub section "i386 and x86-64 Windows Options"): New.
14949
14950 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
14951
14952         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
14953         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
14954
14955 2009-03-25  Richard Guenther  <rguenther@suse.de>
14956
14957         PR middle-end/39497
14958         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
14959         of -Wno-error.
14960
14961 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
14962
14963         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
14964         neither of haifa/selective schedulers are working.
14965
14966 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14967
14968         * doc/invoke.texi (Debugging Options): Fix description of
14969         -fno-merge-debug-strings.
14970
14971 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
14972
14973         * config/cris/libgcc.ver: New version-script.
14974         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
14975
14976         * configure.ac <GAS features, nop mnemonic>: Add pattern
14977         crisv32-*-* for "nop".
14978         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
14979         * configure: Regenerate.
14980
14981 2009-03-24  Ira Rosen  <irar@il.ibm.com>
14982
14983         PR tree-optimization/39529
14984         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
14985         mark_sym_for_renaming for the tag copied to the new vector
14986         pointer.
14987
14988 2009-03-24  Arthur Loiret  <aloiret@debian.org>
14989
14990         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
14991         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
14992         EXTRA_SPEC_FUNCTIONS.
14993         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
14994         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
14995         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
14996         -march and -mtune options.
14997
14998 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
14999
15000         * config/m68k/t-rtems: Add m5329 multilib.
15001
15002 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
15003             Jakub Jelinek  <jakub@redhat.com>
15004
15005         PR debug/39524
15006         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
15007         nodes.
15008
15009 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
15010
15011         PR c/39495
15012         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
15013         instead of c_parser_expression_conv, if original_code isn't one of the
15014         4 allowed comparison codes, fail.
15015
15016 2009-03-23  Richard Guenther  <rguenther@suse.de>
15017
15018         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
15019         * tree.h (struct tree_type): Likewise.
15020         * reload.h (struct insn_chain): Likewise.
15021         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
15022         * function.h (struct function): Likewise.
15023         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
15024
15025 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
15026
15027         PR tree-optimization/39516
15028         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
15029
15030 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
15031
15032         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
15033         should be set true if BITS_PER_WORD of target is bigger than 32
15034
15035 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
15036
15037         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
15038         Translate -B-options to -rpath-link.  Correct existing
15039         rpath-link and conditionalize on !nostdlib.
15040
15041 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15042
15043         * doc/extend.texi (Function Attributes, Variable Attributes):
15044         Fix typos.
15045         * doc/invoke.texi (Debugging Options, Optimize Options)
15046         (i386 and x86-64 Options, MCore Options): Likewise.
15047
15048 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
15049
15050         PR debug/37890
15051         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
15052         it for block local namespace aliases.
15053         (gen_decl_die): Pass context_die to gen_namespace_die.
15054
15055 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
15056
15057         PR c/39495
15058         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
15059         minimum or maximum value.
15060
15061 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
15062
15063         * reginfo.c (globalize_reg): Recompute derived reg sets.
15064
15065 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
15066
15067         PR target/39063
15068         * libgcc2.c (mprotect): Do not use signed arguments for
15069         VirtualProtect, use DWORD arguments.  Also fix the 'may
15070         be used uninitialized' warning for the np variable.
15071
15072 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
15073
15074         PR target/39496
15075         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
15076         functions using regparm calling conventions when not optimizing.
15077         (ix86_function_sseregparm): Similarly for sseregparm calling
15078         conventions.
15079
15080 2009-03-19  Li Feng  <nemokingdom@gmail.com>
15081
15082         PR middle-end/39500
15083         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
15084         dependence if the first conflict is after niter iterations.
15085
15086 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
15087
15088         PR middle-end/38609
15089         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
15090         functions with dynamic stack-pointer adjustments.
15091
15092 2009-03-19  Ben Elliston  <bje@au.ibm.com>
15093
15094         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
15095         option; change to -msdata=data.
15096
15097 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15098
15099         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
15100         and -fopenmp.
15101
15102 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
15103
15104         PR target/35180
15105         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
15106
15107 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
15108
15109         * doc/invoke.texi (Code Gen Options): Expand discussion of
15110         -fno-common.
15111
15112 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
15113
15114         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
15115         * matrix-reorg.c (struct matrix_info): Likewise.
15116         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
15117         * rtl.h (struct mem_attrs): Likewise.
15118         * df.h (struct df): Likewise.
15119         * tree-data-ref.h (struct data_dependence_relation): Likewise.
15120         * ira-int.h (struct ira_allocno): Likewise.
15121         * df-scan.c (struct df_collection_rec): Likewise.
15122         * ira.c (struct equivalence): Likewise.
15123         * function.c (struct temp_slot): Likewise.
15124         * cfgloop.h (struct loop): Likewise.
15125
15126         PR debug/39485
15127         * function.c (use_register_for_decl): When not optimizing, disregard
15128         register keyword for variables with types containing methods.
15129
15130 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
15131
15132         PR middle-end/39447
15133         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
15134         (is_simple_operand): Call contains_component_ref_p before calling data
15135         reference analysis that would fail on COMPONENT_REFs.
15136
15137         * tree-vrp.c (search_for_addr_array): Fix formatting.
15138
15139 2009-03-18  Richard Guenther  <rguenther@suse.de>
15140
15141         * tree-vect-transform.c (vect_loop_versioning): Fold the
15142         generated comparisons.
15143         * tree-vectorizer.c (set_prologue_iterations): Likewise.
15144         (slpeel_tree_peel_loop_to_edge): Likewise.
15145
15146 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15147
15148         PR middle-end/37805
15149         * opts.c (print_specific_help): In addition to `undocumented',
15150         accept `separate' and `joined' flags if passed alone.  Describe
15151         output by the first matched one of those.
15152         (common_handle_option): Skip over empty strings.
15153         * gcc.c (display_help): Fix help string for `--help='.
15154         * doc/invoke.texi (Option Summary, Overall Options): With
15155         `--help=', classes and qualifiers can both be repeated, but
15156         only the latter can be negated.  One should not pass only
15157         negated qualifiers.  Fix markup and examples.
15158
15159         Revert
15160         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
15161         PR middle-end/37805
15162         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
15163         and -fhelp=separate.
15164
15165 2009-03-17  Jing Yu  <jingyu@google.com>
15166
15167         PR middle-end/39378
15168         * function.h (struct rtl_data): Move is_thunk from here...
15169         (struct function): ...to here.
15170         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
15171         * varasm.c (assemble_start_function): Change is_thunk from crtl to
15172         cfun.
15173         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
15174         cfun.
15175         (alpha_does_function_need_gp, alpha_start_function): Likewise.
15176         (alpha_output_function_end_prologue): Likewise.
15177         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
15178         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
15179         (rs6000_output_function_epilogue): Likewise.
15180         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
15181
15182 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
15183
15184         PR target/39482
15185         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
15186         from different units in a single alternative.
15187         (*truncdfsf_i387): Ditto.
15188         (*truncxfsf2_mixed): Ditto.
15189         (*truncxfdf2_mixed): Ditto.
15190
15191 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
15192
15193         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
15194         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
15195
15196         PR debug/39474
15197         * tree-ssa-live.c (remove_unused_locals): Don't remove local
15198         unused non-artificial variables when not optimizing.
15199
15200         PR debug/39471
15201         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
15202         DW_TAG_imported_module even if decl is IMPORTED_DECL with
15203         NAMESPACE_DECL in its DECL_INITIAL.
15204
15205         PR middle-end/39443
15206         * optabs.c (set_user_assembler_libfunc): New function.
15207         * expr.h (set_user_assembler_libfunc): New prototype.
15208         * c-common.c: Include libfuncs.h.
15209         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
15210         for memcmp, memset, memcpy, memmove and abort.
15211         * Makefile.in (c-common.o): Depend on libfuncs.h.
15212
15213         PR debug/39412
15214         * dwarf2out.c (gen_inlined_enumeration_type_die,
15215         gen_inlined_structure_type_die, gen_inlined_union_type_die,
15216         gen_tagged_type_instantiation_die): Removed.
15217         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
15218         do nothing.
15219
15220 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
15221
15222         PR testsuite/38526
15223         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
15224         its use.
15225         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
15226         (check-parallel-%): Ditto.
15227         (check-consistency): Ditto.
15228
15229 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
15230
15231         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
15232         local variable rhs by NULL_TREE.
15233
15234 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
15235
15236         PR target/39477
15237         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
15238
15239 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
15240
15241         PR target/39476
15242         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
15243
15244 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
15245
15246         PR target/39473
15247         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
15248         for ms->sysv ABI calls only in 64bit mode.
15249
15250         * config/i386/i386.md (untyped_call): Support 32bit.
15251
15252 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
15253
15254         * doc/extend.texi: Replace x86_65 with x86_64.
15255
15256 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
15257
15258         PR tree-optimization/39455
15259         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
15260         mismatches for POINTER_TYPE_P (type).
15261         (number_of_iterations_le): Likewise.
15262
15263 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
15264
15265         * config/picochip/picochip.c: Removed profiling support.
15266         * config/picochip/picochip.md: Removed profiling instruction.
15267         * config/picochip/picochip.h: Removed profiling builtin.
15268
15269 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
15270
15271         * doc/install.texi (--with-host-libstdcxx): Document.
15272
15273 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
15274
15275         PR target/34299
15276         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
15277         generate a warning if the function name does not begin with
15278         "__vector" and the function has either the 'signal' or 'interrupt'
15279         attribute, from here to ...
15280         (avr_declare_function_name): ...here. New function.
15281         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
15282         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
15283
15284 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
15285
15286         PR bootstrap/39454
15287         * cse.c (fold_rtx): Don't modify original const_arg1 when
15288         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
15289         separate variable instead.
15290         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
15291         from out of range shift counts.
15292         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
15293
15294 2009-03-13  Catherine Moore  <clm@codesourcery.com>
15295
15296         * config/i386/x-mingw32 (host-mingw32.o): Replace
15297         diagnostic.h with $(DIAGNOSTIC_H).
15298
15299 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
15300
15301         PR target/39431
15302         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
15303         predicate.
15304         * config/i386/sync.md (sync_compare_and_swap<mode>,
15305         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
15306         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
15307         into a register.
15308         (sync_double_compare_and_swapdi_pic,
15309         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
15310         cmpxchg8b_pic_memory_operand instead of just memory_operand.
15311
15312 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
15313
15314         PR target/39445
15315         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
15316
15317 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
15318
15319         PR target/39327
15320         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
15321         (avx_addsubv4df3): Likewise.
15322         (*avx_addsubv4sf3): Likewise.
15323         (sse3_addsubv4sf3): Likewise.
15324
15325 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
15326
15327         PR target/38824
15328         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
15329
15330 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
15331
15332         PR debug/39432
15333         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
15334         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
15335         registers for allocnos created from user-defined variables.
15336
15337 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15338
15339         PR target/39181
15340         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
15341         of non-integer mode as well.
15342
15343 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
15344
15345         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
15346         for functions for which the parameter types are unknown.
15347
15348 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
15349
15350         PR target/39137
15351         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
15352         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
15353         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
15354         * config/i386/i386.c (ix86_local_alignment): For
15355         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
15356         long long variables on the stack to avoid dynamic realignment.
15357         Allow the first argument to be a decl rather than type.
15358         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
15359
15360 2009-03-11  Nick Clifton  <nickc@redhat.com>
15361
15362         PR target/5362
15363         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
15364         options.
15365         Add description to mno-lsim option.
15366         * config/mcore/mcore.h: Remove comment about deprecated m4align
15367         option.
15368         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
15369         * doc/invoke.texi: Add description of mno-lsim and
15370         mstack-increment options.
15371
15372         * config/fr30/fr30.opt: Document the -mno-lsim option.
15373         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
15374         and -mno-lsim options.
15375
15376 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15377
15378         * fold-const.c (fold_comparison): Only call fold_inf_compare
15379         if the mode supports infinities.
15380
15381 2009-03-11  Jason Merrill  <jason@redhat.com>
15382
15383         PR debug/39086
15384         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
15385         end already did.  Notice GIMPLE_CALL modifications of the result.
15386         Don't copy debug information from an ignored decl or a decl from
15387         another function.
15388
15389 2009-03-10  Richard Guenther  <rguenther@suse.de>
15390             Nathan Froyd  <froydnj@codesourcery.com>
15391
15392         PR middle-end/37850
15393         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
15394         (__divMODE3): Likewise.
15395
15396 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
15397
15398         PR tree-optimization/39394
15399         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
15400         DECL_SIZE_UNIT of variable length FIELD_DECLs.
15401
15402 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15403
15404         * recog.c (verfiy_changes): Disallow renaming of hard regs in
15405         inline asms for register asm ("") declarations.
15406
15407 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
15408
15409         * fold-const.c (fold_unary): Fix comment.
15410
15411 2009-03-07  Jan Hubicka  <jh@suse.cz>
15412
15413         PR target/39361
15414         * tree-inline.c (setup_one_parameter): Do replacement of const
15415         argument by constant in SSA form.
15416
15417 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15418
15419         PR middle-end/38028
15420         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
15421         determine alignment passed to assign_stack_local.
15422         (assign_parms_unsplit_complex): Likewise.
15423         * except.c (sjlj_build_landing_pads): Likewise.
15424
15425 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
15426
15427         PR middle-end/39360
15428         * tree-flow.h (add_referenced_var): Return bool instead of void.
15429         * tree-dfa.c (add_referenced_var): Return result of
15430         referenced_var_check_and_insert call.
15431         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
15432         of referenced_var_check_and_insert.
15433
15434         PR debug/39372
15435         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
15436         (gen_variable_die): Emit DW_AT_location on abstract static variable's
15437         DIE, don't emit it if abstract origin already has it.
15438         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
15439         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
15440
15441 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
15442
15443         * genpreds.c (needs_variable): Fix parentheses at variable name
15444         detection.
15445         (write_tm_constrs_h): Indent generated code.
15446
15447 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15448
15449         * doc/extend.texi (Function Attributes): Add documentation
15450         for isr attributes.
15451
15452 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
15453
15454         PR debug/39387
15455         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
15456         take locus from its DECL_SOURCE_LOCATION instead of input_location.
15457
15458 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
15459
15460         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
15461         the loop as bad.
15462
15463 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
15464
15465         PR debug/39379
15466         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
15467         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
15468
15469 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
15470
15471         * config/i386/i386.md (R8_REG, R9_REG): New constants.
15472         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
15473         constants instead of magic numbers.
15474         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
15475         (QI_REG_P): Ditto.
15476         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
15477         (x86_64_ms_abi_int_parameter_registers): Ditto.
15478         (x86_64_int_return_registers): Ditto.
15479         (ix86_maybe_switch_abi): Ditto.
15480         (ix86_expand_call): Ditto for clobbered_registers array.
15481         (ix86_hard_regno_mode_ok): Ditto.
15482         (x86_extended_QIreg_mentioned_p): Ditto.
15483
15484 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
15485
15486         PR tree-optimization/39349
15487         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
15488
15489         * combine.c (gen_lowpart_for_combine): Use omode when generating
15490         clobber.
15491
15492 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
15493
15494         PR rtl-optimization/39235
15495         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
15496
15497 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
15498
15499         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
15500
15501 2009-03-04  Richard Guenther  <rguenther@suse.de>
15502
15503         PR tree-optimization/39362
15504         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
15505         that occur in abnormal PHIs should be varying.
15506
15507 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
15508
15509         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
15510         Extend comments.
15511         (simple_iv):  Take loop as an argument instead of statement.
15512         * tree-scalar-evolution.h (simple_iv): Declaration changed.
15513         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
15514         to simple_iv.
15515         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
15516         Ditto.
15517         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
15518         * matrix-reorg.c (analyze_transpose): Ditto.
15519         * tree-data-ref.c (dr_analyze_innermost): Ditto.
15520         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
15521         * tree-predcom.c (ref_at_iteration): Ditto.
15522         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
15523
15524 2009-03-04  Richard Guenther  <rguenther@suse.de>
15525
15526         PR tree-optimization/39358
15527         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
15528         escaped_id and callused_id.
15529         (solve_graph): Likewise.
15530
15531 2009-03-04  Richard Guenther  <rguenther@suse.de>
15532
15533         PR tree-optimization/39339
15534         * tree-sra.c (try_instantiate_multiple_fields): Make it
15535         no longer ICE on the above.
15536
15537 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
15538
15539         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
15540         that fits within Pmode.
15541
15542 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
15543
15544         PR middle-end/10109
15545         * tm.texi (LIBCALL_VALUE): Update description.
15546
15547 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
15548
15549         PR middle-end/34443
15550         * doc/extend.texi (section): Update description.
15551
15552 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
15553
15554         PR middle-end/39345
15555         * tree-inline.c (remapped_type): New.
15556         (can_be_nonlocal): Call remapped_type instead of remap_type.
15557
15558 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
15559
15560         PR fortran/39354
15561         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
15562         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
15563
15564 2009-03-03  Richard Guenther  <rguenther@suse.de>
15565
15566         PR middle-end/39272
15567         * tree.c (tree_nonartificial_location): New function.
15568         * tree.h (tree_nonartificial_location): Declare.
15569         * builtins.c (expand_builtin_memory_chk): Provide location
15570         of the call location for artificial function pieces.
15571         (maybe_emit_chk_warning): Likewise.
15572         (maybe_emit_sprintf_chk_warning): Likewise.
15573         (maybe_emit_free_warning): Likewise.
15574         * expr.c (expand_expr_real_1): Likewise.
15575
15576 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
15577
15578         PR tree-optimization/39343
15579         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
15580         COMPONENT_REF t has ARRAY_TYPE.
15581
15582 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
15583
15584         PR middle-end/39335
15585         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
15586         when the type precision of the induction variable should be
15587         larger than the type precision of nit.
15588         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
15589         * graphite.c (graphite_loop_normal_form): Same.
15590         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
15591
15592 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
15593
15594         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
15595         (*call_1_rex64_ms_sysv): Use named constants instead of magic
15596         numbers to describe clobbered registers.
15597         (*call_value_0_rex64_ms_sysv): Ditto.
15598         * config/i386/mmx.md (mmx_emms): Ditto.
15599         (mmx_femms): Ditto.
15600
15601 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
15602
15603         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
15604         of ABI_64.
15605
15606 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15607
15608         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
15609         (spu_section_type_flags): New function.
15610
15611 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
15612
15613         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
15614         reg_class_contents of FLOAT_REGS into a temporary.
15615
15616 2009-03-02  Richard Guenther  <rguenther@suse.de>
15617             Ira Rosen  <irar@il.ibm.com>
15618
15619         PR tree-optimization/39318
15620         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
15621         information to the vectorized statement.
15622
15623 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
15624
15625         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
15626         variable.  Use defined names instead of magic constants for REX SSE
15627         registers.
15628
15629 2009-03-01  Richard Guenther  <rguenther@suse.de>
15630
15631         PR tree-optimization/39331
15632         * omp-low.c (lower_send_shared_vars): Do not receive new
15633         values for the reference of DECL_BY_REFERENCE parms or results.
15634
15635 2009-03-01  Jan Hubicka  <jh@suse.cz>
15636
15637         PR debug/39267
15638         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
15639         BLOCK_NONLOCALIZED_VAR): New macros.
15640         (tree_block): Add nonlocalized_vars.
15641         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
15642         gen_decl_die): Add origin argument.  Allow generation of die with
15643         origin at hand only.
15644         (gen_member_die, gen_type_die_with_usage, force_decl_die,
15645         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
15646         of gen_*.
15647         (gen_block_die): Fix checking for unused blocks.
15648         (process_scope_var): Break out from .... ; work with origins only.
15649         (decls_for_scope) ... here; process nonlocalized list.
15650         (dwarf2out_ignore_block): Look for nonlocalized vars.
15651         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
15652         vars.
15653         (dump_scope_block): Dump them.
15654         * tree-inline.c (remap_decls): Handle nonlocalized vars.
15655         (remap_block): Likewise.
15656         (can_be_nonlocal): New predicate.
15657         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
15658
15659 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15660
15661         * configure: Regenerate.
15662
15663 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15664
15665         * optc-gen.awk: No need to duplicate option flags twice.
15666         Reuse help texts for duplicate options which do not have any.
15667
15668         * gcc.c (display_help): Document --version.
15669
15670         * gcc.c (main): If print_help_list and verbose_flag, ensure
15671         driver output comes before subprocess output.
15672
15673         * optc-gen.awk: Assign all remaining fields to help string,
15674         space-separated, for multi-line help in *.opt.
15675
15676         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
15677         -Wno-pedantic-ms-format is for MinGW targets only.
15678
15679         * doc/options.texi (Option file format): Fix bad indentation,
15680         restoring dropped sentence.
15681
15682 2009-02-28  Jan Hubicka  <jh@suse.cz>
15683
15684         * tree-inline.c (tree_function_versioning): Output debug info.
15685
15686 2009-02-28  Jan Hubicka  <jh@suse.cz>
15687
15688         PR debug/39267
15689         * tree-inline.c (setup_one_parameter): Do not copy propagate
15690         arguments when not optimizing.
15691
15692 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
15693
15694         PR target/39327
15695         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
15696         (avx_addsubv4df3): Likewise.
15697         (*avx_addsubv4sf3): Likewise.
15698         (sse3_addsubv4sf3): Likewise.
15699         (*avx_addsubv2df3): Likewise.
15700         (sse3_addsubv2df3): Likewise.
15701         (avx_unpckhps256): Correct item selectors.
15702         (avx_unpcklps256): Likewise.
15703         (avx_unpckhpd256): Likewise.
15704         (avx_unpcklpd256): Likewise.
15705
15706 2009-02-28  Jan Hubicka  <jh@suse.cz>
15707
15708         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
15709         static vars.
15710         (copy_arguments_for_versioning): If var is declared don't declare it.
15711         (tree_function_versioning): First setup substitutions and then copy
15712         args.
15713
15714 2009-02-27  Jan Hubicka  <jh@suse.cz>
15715
15716         PR debug/39267
15717         * cgraph.h (varpool_output_debug_info): Remove.
15718         * cgraphunit.c (varpool_output_debug_info): Remove.
15719         * dwarf2out.c (deferred_locations_struct): New struct
15720         (deferred_locations): New type.
15721         (deferred_locations_list): New static var.
15722         (deffer_location): New function.
15723         (gen_variable_die): Use it.
15724         (decls_for_scope): Output info on local static vars.
15725         (dwarf2out_finish): Process deferred locations.
15726         * varpool.c (varpool_output_debug_info): Remove.
15727
15728 2009-02-27  Jan Hubicka  <jh@suse.cz>
15729
15730         PR debug/39267
15731         * tree.h (TREE_PROTECTED): Fix comment.
15732         (BLOCK_HANDLER_BLOCK): Remove.
15733         (struct tree_block): Remove handler_block add body_block.
15734         (inlined_function_outer_scope_p): New.
15735         (is_body_block): Remove.
15736         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
15737         * dwarf2out.c (is_inlined_entry_point): Remove.
15738         (add_high_low_attributes): Use inlined_function_outer_scope_p.
15739         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
15740         code.
15741         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
15742         * gimplify.c (gimplify_expr): Gimplify body blocks.
15743         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
15744         block with multiple subblocks.
15745         (dump_scope_block): Prettier output; dump more flags and info.
15746         (dump_scope_blocks): New.
15747         (remove_unused_locals): Use dump_scope_blocks.
15748         * tree-flow.h (dump_scope_blocks): Declare.
15749         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
15750         * stmt.c (is_body_block): Remove.
15751         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
15752         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
15753
15754 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
15755
15756         PR middle-end/39308
15757         * graphite.c (graphite_loop_normal_form): Do not call
15758         number_of_iterations_exit from a gcc_assert.
15759
15760 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15761
15762         * config/s390/s390.c (s390_swap_cmp): Look for conditional
15763         jumps if COND is NULL.
15764         (find_cond_jump): New function.
15765         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
15766         * config/s390/s390.md: Remove z10_cobra attribute value.
15767
15768 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
15769
15770         * config/alpha/alpha.h (alpha_expand_mov): Return false if
15771         force_const_mem returns NULL_RTX.
15772
15773 2009-02-26  Jan Hubicka  <jh@suse.cz>
15774
15775         PR debug/39267
15776         * cgraph.h (varpool_output_debug_info): Remove.
15777         * cgraphunit.c (varpool_output_debug_info): Remove.
15778         * dwarf2out.c (deferred_locations_struct): New struct
15779         (deferred_locations): New type.
15780         (deferred_locations_list): New static var.
15781         (deffer_location): New function.
15782         (gen_variable_die): Use it.
15783         (decls_for_scope): Output info on local static vars.
15784         (dwarf2out_finish): Process deferred locations.
15785         * varpool.c (varpool_output_debug_info): Remove.
15786
15787 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
15788
15789         PR rtl-optimization/39241
15790         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
15791         to subreg_offset_representable_p.
15792
15793 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
15794
15795         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
15796         execute function prototype.  Get f and nregs from max_reg_num
15797         and get_insns.  Remove the first backward pass as it's dead,
15798         guard the forward pass by flag_expensive_optimizations.
15799         (rest_of_handle_regmove): Delete.
15800         (pass_regmove): Replace it with regmove_optimize.
15801
15802 2009-02-25  Martin Jambor  <mjambor@suse.cz>
15803
15804         PR tree-optimization/39259
15805         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
15806         calls_alloca function flags.
15807         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
15808         calls are detected.
15809
15810 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
15811
15812         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
15813         flags_set_1_rtx, flags_set_1_set): Delete.
15814         (regmove_optimize): Do not call mark_flags_life_zones.
15815
15816 2009-02-24  Julian Brown  <julian@codesourcery.com>
15817
15818         PR target/35965
15819         * config/arm/arm.c (require_pic_register): Only set
15820         cfun->machine->pic_reg once per function.
15821
15822 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
15823
15824         * doc/invoke.texi (Link Options): Document an easier way to pass
15825         options that take arguments to the GNU linker using -Xlinker and -Wl.
15826
15827 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
15828
15829         PR target/33785
15830         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
15831
15832 2009-02-24  Richard Guenther  <rguenther@suse.de>
15833
15834         PR debug/39285
15835         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
15836
15837 2009-02-24  Richard Guenther  <rguenther@suse.de>
15838             Zdenek Dvorak  <ook@ucw.cz>
15839
15840         PR tree-optimization/39233
15841         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
15842         from converting them to a generic type.
15843
15844 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
15845
15846         PR tree-optimization/39260
15847         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
15848         contains a condition with a real type.
15849         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
15850
15851 2009-02-23  Jason Merrill  <jason@redhat.com>
15852
15853         PR c++/38880
15854         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
15855         narrowing_initializer_constant_valid_p.
15856         (narrowing_initializer_constant_valid_p): Don't return
15857         null_pointer_node for adding a pointer to itself.
15858
15859 2009-02-23  Jan Hubicka  <jh@suse.cz>
15860
15861         PR c/12245
15862         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
15863         resizing.
15864
15865 2009-02-23  Jan Hubicka  <jh@suse.cz>
15866
15867         PR tree-optimization/37709
15868         * tree.c (block_ultimate_origin): Move here from dwarf2out.
15869         * tree.h (block_ultimate_origin): Declare.
15870         * dwarf2out.c (block_ultimate_origin): Move to tree.c
15871         * tree-ssa-live.c (remove_unused_scope_block_p):
15872         Eliminate blocks containig no instructions nor live variables nor
15873         nested blocks.
15874         (dump_scope_block): New function.
15875         (remove_unused_locals): Enable removal of dead blocks by default;
15876         enable dumping at TDF_DETAILS.
15877
15878 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
15879
15880         * config/i386/i386.c (classify_argument): Don't allow COImode
15881         and OImode.
15882         (function_arg_advance_32): Don't allow OImode.
15883         (function_arg_32): Likewise.
15884         (function_value_32): Likewise.
15885         (return_in_memory_32): Likewise.
15886         (function_arg_64): Remove OImode comment.
15887
15888 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
15889
15890         PR target/39261
15891         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
15892         ix86_expand_vector_set for V4DImode in 64bit mode only.
15893         (ix86_expand_vector_init_one_var): Likewise.
15894
15895 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
15896
15897         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
15898
15899 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
15900
15901         PR bootstrap/39257
15902         * loop-iv.c: Revert last change.
15903         * emit-rtl.c: Likewise.
15904
15905 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
15906
15907         PR target/39256
15908         * config/i386/i386.c (type_natural_mode): Remove an extra
15909         space in the warning message.
15910         (function_value_32): Handle 32-byte vector modes.
15911         (return_in_memory_32): Likewise.
15912
15913 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
15914
15915         * loop-iv.c (truncate_value): New function.
15916         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
15917         of lowpart_subreg.
15918         (lowpart_subreg): Move to...
15919         * emit-rtl.c: ...here.
15920
15921 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
15922
15923         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
15924         accidental and undocumented change at revision 140860.
15925
15926 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
15927
15928         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
15929         take gimple_seq * arguments.
15930         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
15931         types_compatible_p langhook.
15932
15933 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
15934             Joseph Myers  <joseph@codesourcery.com>
15935
15936         * config/arm/arm.c (arm_builtin_va_list): New function.
15937         (arm_expand_builtin_va_start): Likewise.
15938         (arm_gimplify_va_arg_expr): Likewise.
15939         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
15940         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
15941         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
15942         (va_list_type): New variable.
15943         (arm_mangle_type): Mangle va_list_type appropriately.
15944
15945 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
15946
15947         PR middle-end/39157
15948         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
15949         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
15950         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
15951         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
15952         parameter to 1000 for -O1 by default.
15953         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
15954         parameter.
15955         * loop-invariant.c: Include params.h.
15956         (move_loop_invariants): Don't call move_single_loop_invariants on
15957         very large loops.
15958
15959 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
15960
15961         * calls.c (emit_library_call_value_1): Use slot_offset instead of
15962         offset when calculating bounds for indexing stack_usage_map.  Fixes
15963         a buffer overflow with certain target setups.
15964
15965 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
15966
15967         PR target/39240
15968         * calls.c (expand_call): Clear try_tail_call if caller and callee
15969         disagree in promotion of function return value.
15970
15971 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
15972
15973         PR target/39175
15974         * c-common.c (c_determine_visibility): If visibility changed and
15975         DECL_RTL has been already set, call make_decl_rtl to update symbol
15976         flags.
15977
15978 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
15979
15980         PR c++/39188
15981         * varasm.c (assemble_variable): Don't check DECL_NAME when
15982         globalizing a variable.
15983
15984 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
15985
15986         PR c/38483
15987         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
15988         expression before any __builtin_trap call.
15989         * c-typeck.c (build_function_call): Convert and check function
15990         arguments before generating a call to a trap.  Evaluate the
15991         function arguments before the trap.
15992
15993 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
15994
15995         PR target/39228
15996         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
15997         (UNSPEC_FXAM_MEM): New unspec.
15998         (fxam<mode>2_i387_with_temp): New insn and split pattern.
15999         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
16000         memory using fxam<mode>2_i387_with_temp to remove excess precision.
16001
16002 2009-02-19  Richard Guenther  <rguenther@suse.de>
16003
16004         PR tree-optimization/39207
16005         PR tree-optimization/39074
16006         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
16007         storedanything_tree): New.
16008         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
16009         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
16010         (build_succ_graph): Add edges from STOREDANYTHING to all
16011         non-direct nodes.
16012         (init_base_vars): Initialize STOREDANYTHING.
16013         (compute_points_to_sets): Free substitution info after
16014         building the succ graph.
16015         (ipa_pta_execute): Likewise.
16016
16017         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
16018         field.
16019         (do_ds_constraint): Do not add to special var or non-pointer
16020         field solutions.
16021         (type_could_have_pointers): Split out from ...
16022         (could_have_pointers): ... here.  For arrays use the element type.
16023         (create_variable_info_for): Initialize may_have_pointers.
16024         (new_var_info): Likewise.
16025         (handle_lhs_call): Make the HEAP variable unknown-sized.
16026         (intra_create_variable_infos): Use a type with pointers for
16027         PARM_NOALIAS, make it unknown-sized.
16028
16029 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
16030
16031         PR target/39224
16032         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
16033
16034 2009-02-18  Jason Merrill  <jason@redhat.com>
16035
16036         PR target/39179
16037         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
16038         value if DECL_EXTERNAL.
16039         * tree-sra.c (sra_walk_gimple_assign): Likewise.
16040         * target.h (gcc_target::binds_local_p): Clarify "module".
16041         * tree.h (TREE_PUBLIC): Clarify "module".
16042
16043 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
16044
16045         PR target/38891
16046         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
16047         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
16048
16049 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
16050
16051         PR target/39082
16052         * c.opt (Wabi): Support C and ObjC.
16053         (Wpsabi): New.
16054
16055         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
16056
16057         * config/i386/i386.c (classify_argument): Warn once about the ABI
16058         change when passing union with long double.
16059
16060         * doc/invoke.texi: Update -Wabi for warning psABI changes.
16061
16062 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
16063
16064         PR c/35447
16065         * c-parser.c (c_parser_compound_statement): Always enter and leave
16066         a scope.
16067
16068 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16069
16070         PR target/34587
16071         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
16072
16073 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
16074
16075         PR tree-optimization/36922
16076         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
16077         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
16078         Likewise.
16079
16080 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
16081
16082         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
16083         to 0 for EABI64.
16084
16085 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
16086
16087         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
16088
16089 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
16090
16091         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
16092         tree sharing.
16093
16094 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
16095             Richard Sandiford  <rdsandiford@googlemail.com>
16096
16097         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
16098         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
16099         (loongson_biadd): ...this.
16100
16101 2009-02-17  Richard Guenther  <rguenther@suse.de>
16102
16103         PR tree-optimization/39202
16104         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
16105         a var make sure to follow existing collapses.
16106
16107 2009-02-17  Richard Guenther  <rguenther@suse.de>
16108
16109         PR middle-end/39214
16110         * langhooks.c (lhd_print_error_function): Check for NULL block.
16111
16112 2009-02-17  Richard Guenther  <rguenther@suse.de>
16113
16114         PR tree-optimization/39204
16115         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
16116         of the PHI arg.
16117
16118 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
16119
16120         * config/soft-fp/double.h: Update from glibc CVS.
16121
16122 2009-02-17  Richard Guenther  <rguenther@suse.de>
16123
16124         PR tree-optimization/39207
16125         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
16126         strict-aliasing warnings for pointers pointing to NULL.
16127
16128 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
16129
16130         PR c/35446
16131         * c-parser.c (c_parser_braced_init): Call pop_init_level when
16132         skipping until next close brace.
16133
16134 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
16135
16136         PR target/37049
16137         * config/i386/i386.c (ix86_expand_push): Set memory alignment
16138         to function argument boundary.
16139
16140 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
16141
16142         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
16143         in the lea_add. Reload eventually constraints it properly.
16144         * config/picochip/constraints.md: Remove the target constraint
16145         "b", since it is not needed anymore.
16146
16147 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
16148
16149         * gthr-dce.h: Uglify function parameter and local variable names.
16150         * gthr-gnat.h: Likewise.
16151         * gthr-mipssde.h: Likewise.
16152         * gthr-nks.h: Likewise.
16153         * gthr-posix95.h: Likewise.
16154         * gthr-posix.h: Likewise.
16155         * gthr-rtems.h: Likewise.
16156         * gthr-single.h: Likewise.
16157         * gthr-solaris.h: Likewise.
16158         * gthr-tpf.h: Likewise.
16159         * gthr-vxworks.h: Likewise.
16160         * gthr-win32.h: Likewise.
16161
16162 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
16163
16164         PR target/39196
16165         * config/i386/i386.md: Restrict the new peephole2 to move
16166         between MMX/SSE registers.
16167
16168 2009-02-15  Richard Guenther  <rguenther@suse.de>
16169
16170         Revert
16171         2009-02-13  Richard Guenther  <rguenther@suse.de>
16172
16173         * configure.ac: Enable LFS.
16174         * configure: Re-generate.
16175         * config.in: Likewise.
16176
16177 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16178
16179         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
16180         spu_srqwbyte, spu_srqwbytebc): Define.
16181         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
16182         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
16183         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
16184         "shrqby_<mode>"): New insn-and-split patterns.
16185         * config/spu/spu.c (expand_builtin_args): Determine and return
16186         number of operands using spu_builtin_description data.
16187         (spu_expand_builtin_1): Use it.
16188
16189 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
16190
16191         PR target/38056
16192         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
16193         TARGET_CONST_GP.
16194
16195 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
16196
16197         PR target/39149
16198         * config/i386/i386.c (override_options): Correct warning
16199         messages for -malign-loops, -malign-jumps and -malign-functions.
16200
16201 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
16202
16203         PR target/39152
16204         * config/i386/i386.md: Restrict the new peephole2 to move
16205         between the general purpose registers.
16206
16207 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
16208
16209         PR target/39162
16210         * config/i386/i386.c (type_natural_mode): Add a new argument.
16211         Return the original mode and warn ABI change if vector size is 32byte.
16212         (function_arg_advance): Updated.
16213         (function_arg): Likewise.
16214         (ix86_function_value): Likewise.
16215         (ix86_return_in_memory): Likewise.
16216         (ix86_sol10_return_in_memory): Likewise.
16217         (ix86_gimplify_va_arg): Likewise.
16218         (function_arg_32): Don't warn ABX ABI change here.
16219         (function_arg_64): Likewise.
16220
16221 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
16222
16223         * loop-iv.c (implies_p): In the final case, test that operands 0
16224         of the two comparisons match.
16225
16226         * config/bfin/bfin.c (find_prev_insn_start): New function.
16227         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
16228         (find_next_insn_start): Move.
16229
16230 2009-02-13  Richard Guenther  <rguenther@suse.de>
16231
16232         * configure.ac: Enable LFS.
16233         * configure: Re-generate.
16234         * config.in: Likewise.
16235
16236 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
16237
16238         PR c/35444
16239         * c-parser.c (c_parser_parms_list_declarator): Discard pending
16240         sizes on syntax error after some arguments have been parsed.
16241
16242 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
16243
16244         * doc/invoke.texi (-fira): Remove.
16245
16246 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
16247
16248         * caller-save.c: Replace regclass.c with reginfo.c in comments.
16249         * recog.c: Likewise.
16250         * rtl.h: Likewise.
16251
16252 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
16253
16254         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
16255         (umul_ppmm): Likewise.
16256         (count_leading_zeros): Likewise.
16257         (count_trailing_zeros): Likewise.
16258         (UMUL_TIME): Likewise.
16259
16260 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
16261
16262         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
16263         soft-fp/t-softfp to tmake_file.
16264
16265         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
16266         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
16267         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
16268         IA64_BUILTIN_INFQ]: New.
16269         (ia64_init_builtins): Initialize __builtin_infq,
16270         __builtin_fabsq and __builtin_copysignq if not HPUX.
16271         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
16272         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
16273
16274         * config/ia64/lib1funcs.asm (__divtf3): Define only if
16275         SHARED is defined.
16276         (__fixtfti): Likewise.
16277         (__fixunstfti): Likewise.
16278         (__floattitf): Likewise.
16279
16280         * config/ia64/libgcc-glibc.ver: New.
16281         * config/ia64/t-fprules-softfp: Likewise.
16282         * config/ia64/sfp-machine.h: Likewise.
16283
16284         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
16285         (LIBGCC2_TF_CEXT): Likewise.
16286         (TF_SIZE): Likewise.
16287         (TARGET_INIT_LIBFUNCS): Likewise.
16288
16289         * config/ia64/t-glibc (SHLINB_MAPFILES):
16290         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
16291
16292 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
16293
16294         * config/i386/i386.c (construct_container): Rewrite processing
16295         BLKmode with X86_64_SSE_CLASS.
16296
16297 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
16298
16299         PR target/39152
16300         * config/i386/i386.md: Replace simplify_replace_rtx with
16301         replace_rtx in the new peephole2.
16302
16303 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
16304
16305         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
16306         loop unrolling do not happen at -O2.
16307
16308 2009-02-12  Michael Matz  <matz@suse.de>
16309
16310         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
16311
16312 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
16313
16314         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
16315         for -g3.
16316
16317 2009-02-12  Ben Elliston  <bje@au.ibm.com>
16318
16319         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
16320         patterns when updating the back chain.  Missed in the 2009-02-10
16321         change.
16322
16323 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
16324
16325         * doc/extend.texi (Decimal Floating Types): Update identifier of
16326         draft TR and list of missing support.
16327
16328 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
16329
16330         PR middle-end/39154
16331         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
16332         bit to variable length decl's flags, add it also to its
16333         pointer replacement variable.
16334
16335 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
16336             Jakub Jelinek  <jakub@redhat.com>
16337
16338         PR target/39118
16339         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
16340         (memory_blockage): New expander.
16341         (*memory_blockage): New insn pattern.
16342         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
16343         instead of general blockage at the end of function prologue when
16344         frame pointer is used to access red zone area.  Do not emit blockage
16345         when profiling, it is emitted in generic code.
16346         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
16347         function epilogue when frame pointer is used to access red zone area.
16348
16349 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
16350
16351         PR target/38824
16352         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
16353         by arithmetic with memory operands.
16354         * config/i386/predicates.md (commutative_operator): New.
16355
16356 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
16357
16358         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
16359         bulleted lists.
16360
16361 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
16362
16363         * alias.h (record_alias_subset): Declare.
16364         * alias.c (record_alias_subset): Make global.
16365
16366 2009-02-10  Nick Clifton  <nickc@redhat.com>
16367
16368         * tree-parloops.c: Change license to GPLv3.
16369         * ipa-struct-reorg.c: Change license to GPLv3.
16370         * ipa-struct-reorg.h: Change license to GPLv3.
16371
16372 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
16373
16374         PR c/39084
16375         * c-decl.c (start_struct): Return NULL on error.
16376
16377 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
16378
16379         PR middle-end/39124
16380         * cfgloopmanip.c (remove_path): Call remove_bbs after
16381         cancel_loop_tree, not before it.
16382
16383         PR target/39139
16384         * function.h (struct function): Add has_local_explicit_reg_vars bit.
16385         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
16386         VAR_DECLs were seen.
16387         * tree-ssa-live.c (remove_unused_locals): Recompute
16388         cfun->has_local_explicit_reg_vars.
16389         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
16390         copies or clearings if cfun->has_local_explicit_reg_vars.
16391
16392 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
16393
16394         PR target/39118
16395         * config/i386/i386.c (expand_prologue): Emit blockage at the end
16396         of function prologue when frame pointer is used to access
16397         red zone area.
16398
16399 2009-02-10  Richard Guenther  <rguenther@suse.de>
16400
16401         PR middle-end/39127
16402         * gimplify.c (gimple_regimplify_operands): Always look if
16403         we need to create a temporary.
16404
16405 2009-02-10  Richard Guenther  <rguenther@suse.de>
16406
16407         PR tree-optimization/39132
16408         * tree-loop-distribution.c (todo): New global var.
16409         (generate_memset_zero): Trigger TODO_rebuild_alias.
16410         (tree_loop_distribution): Return todo.
16411
16412 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
16413
16414         PR target/39119
16415         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
16416         (x86_64_reg_class_name): Removed.
16417         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
16418         first one isn't X86_64_SSE_CLASS or any other ones aren't
16419         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
16420         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
16421         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
16422         and 3 X86_64_SSEUP_CLASS.
16423         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
16424         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
16425
16426 2009-02-10  Ben Elliston  <bje@au.ibm.com>
16427
16428         * config/rs6000/rs6000.md (allocate_stack): Always use an update
16429         form instruction to update the stack back chain word, even if the
16430         user has disabled the generation of update instructions.
16431         (movdi_<mode>_update_stack): New.
16432         (movsi_update_stack): Likewise.
16433         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
16434         always use an update form instruction to update the stack back
16435         chain word.
16436
16437 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
16438
16439         PR middle-end/38953
16440         * graphite.c (if_region_set_false_region): After moving a region in
16441         the false branch of a condition, remove the empty dummy basic block.
16442         (gloog): Remove wrong fix for PR38953.
16443
16444 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16445
16446         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
16447         generation due to implicit sign extension.
16448
16449 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
16450
16451         PR middle-end/38981
16452         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
16453         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
16454
16455 2009-02-09  Richard Guenther  <rguenther@suse.de>
16456
16457         PR middle-end/35202
16458         * convert.c (convert_to_real): Disable (float)fn((double)x)
16459         to fnf(x) conversion if errno differences may occur and
16460         -fmath-errno is set.
16461
16462 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
16463
16464         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
16465         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
16466         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
16467
16468 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
16469
16470         PR c/35434
16471         * c-common.c (handle_alias_attribute): Disallow attribute for
16472         anything not a FUNCTION_DECL or VAR_DECL.
16473
16474 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
16475
16476         PR c/39035
16477         * real.c (do_compare): Special-case compare of zero against
16478         decimal float value.
16479
16480 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
16481
16482         PR c/36432
16483         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
16484         as indicating flexible array members unless the field itself is
16485         being declarared as the incomplete array.
16486
16487 2009-02-06  Jan Hubicka  <jh@suse.cz>
16488
16489         PR tree-optimization/38844
16490         * ipa-inline.c (try_inline): Stop inlining recursion when edge
16491         is already inlined.
16492
16493 2009-02-06  Richard Guenther  <rguenther@suse.de>
16494
16495         PR middle-end/38977
16496         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
16497         fork because we may expand it as __gcov_fork.
16498
16499 2009-02-06  Nick Clifton  <nickc@redhat.com>
16500
16501         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
16502
16503 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
16504
16505         PR tree-optimization/35659
16506         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
16507         vn_phi_eq): Shortcut if hashcode does not match.
16508         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
16509         NULL operands.
16510         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
16511         and avoid iterative_hash_expr.
16512         (FOR_EACH_VALUE_ID_IN_SET): New.
16513         (value_id_compare): Remove.
16514         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
16515         sort expressions by value id.
16516
16517 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
16518
16519         PR target/38991
16520         * config/sh/predicates.md (general_movsrc_operand): Don't check
16521         the subreg of system registers here.
16522
16523 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
16524
16525         PR c++/39106
16526         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
16527         on the copied decl.
16528
16529 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
16530
16531         PR rtl-optimization/39110
16532         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
16533         addresses, not aligned ones.
16534
16535 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
16536             Richard Guenther  <rguenther@suse.de>
16537
16538         PR tree-optimization/39100
16539         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
16540         comment says and add edges.
16541
16542 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
16543
16544         PR c/35435
16545         * c-common.c (handle_tls_model_attribute): Ignore attribute for
16546         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
16547
16548 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
16549
16550         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
16551         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
16552         register_bb_in_sese, new_sese, free_sese): Moved.
16553         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
16554         outermost_loop_in_scop, build_scop_iteration_domain,
16555         expand_scalar_variables_ssa_name, get_vdef_before_scop,
16556         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
16557         Use loop_in_sese_p instead of loop_in_scop_p.
16558         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
16559         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
16560         (scopdet_basic_block_info): Fix bug in scop detection.
16561         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
16562         eq_loop_to_cloog_loop): Remove.
16563         (nb_loops_around_loop_in_scop, nb_loop
16564         ref_nb_loops): Moved here...
16565         * graphite.h (ref_nb_loops): ... from here.
16566         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
16567         (loop_domain_dim, loop_iteration_vector_dim): Remove.
16568         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
16569         * testsuite/gcc.dg/graphite/scop-19.c: New
16570
16571 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
16572             Hans-Peter Nilsson  <hp@axis.com>
16573
16574         PR rtl-optimization/37889
16575         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
16576         Move offset handling from PLUS to before the switch.  Use new
16577         arguments when considering SYMBOL_REFs too.
16578         (rtx_addr_can_trap_p): Pass dummy offset and size.
16579         (enum may_trap_p_flags): Remove.
16580         (may_trap_p_1): Pass size from MEM_SIZE.
16581
16582         PR rtl-optimization/38921
16583         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
16584         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
16585         * rtlanal.c (may_trap_after_code_motion_p): Delete.
16586         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
16587
16588 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
16589
16590         AVX Programming Reference (January, 2009)
16591         * config/i386/sse.md (*vpclmulqdq): New.
16592
16593 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
16594
16595         PR tree-optimization/38977
16596         PR gcov-profile/38292
16597         * calls.c (special_function_p): Disregard __builtin_ prefix.
16598
16599 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
16600
16601         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
16602         non-indexable addresses even before reload.
16603
16604 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
16605
16606         PR c/29129
16607         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
16608         as having variable size.  Do not give an error for unnamed
16609         parameters with [*] declarators.  Give a warning for type names
16610         with [*] declarators and mark them as variable size.
16611         * c-parser.c (c_parser_sizeof_expression): Do not give an error
16612         for sizeof applied to [*] type names.
16613
16614 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16615
16616         PR C++/36607
16617         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
16618
16619 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
16620
16621         * gcc.c (process_command): Update copyright notice dates.
16622         * gcov.c (print_version): Likewise.
16623         * gcov-dump.c (print_version): Likewise.
16624         * mips-tfile.c (main): Likewise.
16625         * mips-tdump.c (main): Likewise.
16626
16627 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
16628
16629         PR c/35433
16630         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
16631         for composite type involving a zero-length array type.
16632
16633 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
16634
16635         PR target/35318
16636         * function.c (match_asm_constraints_1): Skip over
16637         initial optional % in the constraint.
16638
16639         PR inline-asm/39059
16640         * c-parser.c (c_parser_postfix_expression): If fixed point is not
16641         supported, don't accept FIXED_CSTs.
16642         * c-decl.c (finish_declspecs): Error if fixed point is not supported
16643         and _Sat is used without _Fract/_Accum.  Set specs->type to
16644         integer_type_node for cts_fract/cts_accum if fixed point is not
16645         supported.
16646
16647 2009-02-02  Catherine Moore  <clm@codesourcery.com>
16648
16649         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
16650
16651 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
16652
16653         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
16654         (ABI_HAS_64BIT_SYMBOLS): Use it.
16655         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
16656
16657 2009-02-02  Paul Brook  <paul@codesourcery.com>
16658
16659         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
16660
16661 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
16662
16663         PR inline-asm/39058
16664         * recog.h (asm_operand_ok): Add constraints argument.
16665         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
16666         recurse on matching constraint.
16667         (check_asm_operands): Pass constraints as 3rd argument to
16668         asm_operand_ok.  Don't look up matching constraint here.
16669         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
16670         to asm_operand_ok.
16671
16672 2009-02-02  Ben Elliston  <bje@au.ibm.com>
16673
16674         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
16675         TARGET_NARROW_VOLATILE_BITFIELD macro names.
16676
16677 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16678
16679         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
16680         information.  Remove some obsolete information.  Reorganize.
16681
16682         * config/pa/fptr.c: Revert license to GPL 2.
16683         * config/pa/milli64.S: Likewise.
16684
16685 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
16686
16687         PR target/38904
16688         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
16689         LIBRARY name in, instead of hard-coding it.
16690         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
16691         extra target make frag to tmake_files according to EH model.
16692         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
16693         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
16694         frags that define makefile variable EH_MODEL appropriately.
16695         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
16696         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
16697         to "-sjlj" according to type of EH configured.
16698         (LIBGCC_SONAME):  Concatenate it to shared library base name.
16699         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
16700         to "_sjlj" according to type of EH configured.
16701         (LIBGCC_SONAME):  Concatenate it to shared library base name.
16702         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
16703         (SHLIB_LINK):  Add missing semicolon to if-else construct.
16704         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
16705         string value of "pe_dll" command-line option.
16706         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
16707         (SHLIB_SONAME):  Use it when overriding t-cygming default.
16708         (SHLIB_IMPLIB):  Override t-cygming default.
16709         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
16710         string value of "pe_dll" command-line option.
16711
16712 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
16713
16714         PR target/38952
16715         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
16716         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
16717
16718 2009-01-31  Richard Guenther  <rguenther@suse.de>
16719
16720         PR tree-optimization/38937
16721         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
16722         computing the transitive closure.
16723
16724 2009-01-30  Richard Guenther  <rguenther@suse.de>
16725
16726         PR tree-optimization/39041
16727         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
16728         Propagate variable indices only if the types match for this stmt.
16729
16730 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
16731
16732         PR target/39013
16733         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
16734         inline but never defined.
16735
16736 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
16737
16738         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
16739         (*insv_h_di_reg_extimm): New insn.
16740         (*insv_l<mode>_reg_extimm): New insn.
16741
16742 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
16743
16744         * config/picochip/picochip.c (flag_conserve_stack): set
16745         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
16746         fconserve-stack. Reduce call-overhead used by inliner.
16747
16748 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
16749
16750         PR/38157
16751         * common.opt (flag_conserve_stack): Initialised to zero.
16752
16753 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
16754
16755         PR/39002
16756         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
16757         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
16758         method.
16759
16760 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
16761
16762         * ira-color.c (allocno_reload_assign): Update comments.
16763         * regmove.c (regmove_optimize): Likewise.
16764
16765         * ra.h: Removed.
16766
16767 2009-01-29  Robert Millan  <rmh@aybabtu.com>
16768
16769         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
16770         * config/i386/kopensolaris-gnu.h: New file.  Undefine
16771         `MD_UNWIND_SUPPORT'.
16772         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
16773
16774 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
16775
16776         PR tree-optimization/39007
16777         * tree-loop-distribution.c (generate_builtin): Use
16778         recompute_dominator to compute the immediate dominator of the
16779         basic block just after the loop.
16780
16781 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16782
16783         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
16784         (ASM_OUTPUT_DWARF_PCREL): Define.
16785
16786 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
16787
16788         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
16789         * doc/passes.texi: Remove entries about regclass, local-alloc, and
16790         global.  Modify entries about regmove and IRA.
16791
16792         * ra-conflict.c: Remove the file.
16793
16794         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
16795
16796         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
16797         (pass_regclass_init): Rename to pass_reginfo_init.
16798
16799         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
16800
16801         * toplev.h (flag_ira): Remove.
16802
16803         * caller-save.c (setup_save_areas): Remove flag_ira.
16804
16805         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
16806
16807         * global.c: Remove the file.
16808
16809         * opts.c (decode_options): Remove flag_ira.
16810
16811         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
16812
16813         * regmove.c: Modify file description.
16814         (find_use_as_address, try_auto_increment): Define them only if
16815         AUTO_INC_DEC is defined.
16816         (replacement_quality, replace_in_call_usage, fixup_match_1,
16817         stable_and_no_regs_but_for_p): Remove.
16818         (reg_set_in_bb): Make it static.
16819         (regmove_optimize): Remove flag_ira and code which worked for
16820         !flag_ira.
16821
16822         * local-alloc.c: Remove the file.
16823
16824         * common.opt (fira): Remove.
16825
16826         * ira.c: Include except.h.
16827         (eliminable_regset): Move from global.c.
16828         (mark_elimination): Ditto.  Remove flag_ira.
16829         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
16830         equiv_mem_modified, validate_equiv_mem_from_store,
16831         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
16832         contains_replace_regs, memref_referenced_p, memref_used_between_p,
16833         no_equiv, recorded_label_ref): Move from local-alloc.c.
16834         (update_equiv_regs): Ditto.  Make it static.
16835         (print_insn_chain, print_insn_chains): Move it from global.c.
16836         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
16837         (build_insn_chain): Ditto.  Make it static.
16838         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
16839         Rename to init_live_subregs.
16840         (gate_ira): Remove flag_ira.
16841
16842         * regclass.c: Rename reginfo.c.  Change file description.
16843         (FORBIDDEN_INC_DEC_CLASSES): Remove.
16844         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
16845         (init_reg_sets_1): Remove code for evaluation of
16846         reg_class_superclasses and losing_caller_save_reg_set.
16847         (init_regs): Remove init_reg_autoinc.
16848         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
16849         ok_for_base_p_nonstrict): Remove.
16850         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
16851         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
16852         corresponding entries.
16853         (dump_regclass, record_operand_costs, scan_one_insn,
16854         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
16855         record_address_regs, auto_inc_dec_reg_p): Remove.
16856         (gt-regclass.h): Rename to gt-reginfo.h.
16857
16858         * rtl.h (dump_global_regs, retry_global_alloc,
16859         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
16860
16861         * Makefile.in (RA_H): Remove.
16862         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
16863         Rename regclass.o to reginfo.o.
16864         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
16865         gt-reginfo.h.
16866         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
16867         (GTFILES): Rename regclass.c to reginfo.c.
16868
16869         * passes.c (init_optimization_passes): Remove pass_local_alloc and
16870         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
16871
16872         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
16873         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
16874         Remove flag_ira.
16875         (finish_spills): Ditto.  Remove code for !flag_ira.
16876
16877 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
16878
16879         PR middle-end/35854
16880         * doc/invoke.texi (rtl debug options): Complete rewrite.
16881         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
16882         to auto_inc_dec".
16883         * mode-switching.c (pass_mode_switching): Rename pass from
16884         "mode-sw" to "mode_sw".
16885         * except.c (pass_convert_to_eh_ranges): Rename pass from
16886         "eh-ranges" to "eh_ranges".
16887         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
16888         to "subreg1".
16889
16890
16891 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
16892             Alexander Monakov  <amonakov@ispras.ru>
16893
16894         PR middle-end/38857
16895         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
16896         register.
16897         (move_exprs_to_boundary): Change return type and pass through
16898         should_move from move_op.  Relax assert.  Update usage ...
16899         (schedule_expr_on_boundary): ... here.  Use should_move instead of
16900         cant_move.
16901         (move_op_orig_expr_found): Indicate that insn was disconnected from
16902         stream.
16903         (code_motion_process_successors): Do not call after_merge_succs
16904         callback if original expression was not found when traversing any of
16905         the branches.
16906         (code_motion_path_driver): Change return type.  Update prototype.
16907         (move_op): Update comment.  Add a new parameter (should_move).  Update
16908         prototype.  Set *should_move based on indication provided by
16909         move_op_orig_expr_found.
16910
16911 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
16912
16913         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
16914         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
16915         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
16916         * config/rs6000/rs6000.c (rs6000_override_options): Default
16917         avoid-indexed-addresses on for Power6, off for everything else.
16918         (avoiding_indexed_address_p): New function.
16919         (rs6000_legitimize_address): Use it.
16920         (rs6000_legitimate_address): Likewise.
16921         * config/rs6000/rs6000.md (movXX_updateX): Likewise
16922
16923 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
16924
16925         PR tree-optimization/38997
16926         * tree-loop-distribution.c (generate_memset_zero): Use
16927         POINTER_PLUS_EXPR for a pointer addition.
16928
16929 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
16930
16931         * config/s390/s390.md (bswap<mode>2): New pattern added.
16932
16933 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
16934
16935         * config/s390/s390.md (*tls_load_31): Added type attribute.
16936
16937 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
16938
16939         * config/s390/s390.md: Fix a few comments.
16940
16941 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
16942
16943         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
16944         (*tm<mode>_full): Fixed z10prop attribute.
16945         (*tst<mode>_extimm): Fixed z10prop attribute.
16946         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
16947         (*tstqiCCT_cconly): Fixed z10prop attribute.
16948         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
16949         (*movsi_larl): Fixed z10prop attribute.
16950         (*movsi_zarch): Fixed z10prop attribute.
16951         (*movsi_eas): Fixed z10prop attribute.
16952         (*movhi): Fixed z10prop attribute.
16953         (*movqi): Fixed z10prop attribute.
16954         (*movstrictqi): Fixed z10prop attribute.
16955         (*mov<mode>): Fixed z10prop attribute.
16956         (*movcc): Fixed z10prop attribute.
16957         (*sethighpartdi_64): Fixed z10prop attribute.
16958         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
16959         (*negdi2_sign_cc): Fixed z10prop attribute.
16960         (*negdi2_sign): Fixed z10prop attribute.
16961         (*absdi2_sign_cc): Fixed z10prop attribute.
16962         (*absdi2_sign): Fixed z10prop attribute.
16963         (*negabsdi2_sign_cc): Fixed z10prop attribute.
16964         (*negabsdi2_sign): Fixed z10prop attribute.
16965         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
16966         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
16967         (doloop_si64): Fixed z10prop attribute.
16968         (doloop_si31): Fixed z10prop attribute.
16969         (doloop_long): Fixed z10prop attribute.
16970         (indirect_jump): Fixed z10prop attribute.
16971         (nop): Fixed z10prop attribute.
16972         (main_base_64): Fixed z10prop attribute.
16973         (reload_base_64): Fixed z10prop attribute.
16974
16975 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
16976
16977         PR rtl-optimization/38740
16978         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
16979         if !optimize.
16980         * config/mips/mips.c (mips_reorg): Likewise.
16981
16982 2009-01-28  Richard Guenther  <rguenther@suse.de>
16983
16984         PR tree-optimization/38926
16985         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
16986         with the correct value id to a value.
16987         (do_regular_insertion): Use the value number of edoubleprime
16988         for the value number of the expr.
16989
16990         Revert
16991         2008-08-21  Richard Guenther  <rguenther@suse.de>
16992
16993         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
16994         a PHI ask VN if it is already available.
16995         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
16996         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
16997
16998 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
16999
17000         PR middle-end/38934
17001         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
17002         set to varying whenever max has TREE_OVERFLOW set, similarly
17003         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
17004
17005 2009-01-28  Richard Guenther  <rguenther@suse.de>
17006
17007         PR middle-end/38908
17008         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
17009         uninitialized aggregate uses in call arguments.
17010
17011 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
17012
17013         PR tree-optimization/38984
17014         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
17015         the nothing_id variable if -fno-delete-null-pointer-checks.
17016
17017 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
17018
17019         PR target/38988
17020         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
17021         (set_got_offset_rex64): Ditto.
17022
17023 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
17024
17025         PR target/38941
17026         * doc/extend.texi: Improve local variable with asm reg.
17027
17028 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
17029
17030         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
17031         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
17032         was not supplied then set warn_packed_bitfield_compat to the
17033         default value of 1.
17034         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
17035         against 1.
17036
17037 2009-01-27  Richard Guenther  <rguenther@suse.de>
17038
17039         PR tree-optimization/38503
17040         * cfgexpand.c (expand_gimple_basic_block): Ignore
17041         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
17042         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
17043         variables that cannot have TBAA applied.
17044         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
17045         statements.
17046
17047 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
17048
17049         PR middle-end/38969
17050         * calls.c (initialize_argument_information): Do not wrap complex
17051         arguments in SAVE_EXPR.
17052
17053 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
17054
17055         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
17056         (INSTALL_LIBGCC): Revert typo commit.
17057
17058 2009-01-26  Richard Guenther  <rguenther@suse.de>
17059
17060         PR tree-optimization/38745
17061         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
17062         from special handling.
17063
17064 2009-01-26  Richard Guenther  <rguenther@suse.de>
17065
17066         PR tree-optimization/38745
17067         * tree-ssa.c (execute_update_addresses_taken): Do not include
17068         variables that cannot possibly be a register in not_reg_needs.
17069         Do not clear TREE_ADDRESSABLE on vars that may not become
17070         registers.
17071         * tree-ssa.c (update_alias_info_1): Include those in the set
17072         of addressable vars.
17073
17074 2009-01-26  Richard Guenther  <rguenther@suse.de>
17075
17076         PR middle-end/38851
17077         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
17078         * tree-ssa-dse.c: Include langhooks.h
17079         (execute_simple_dse): Remove stores with zero size.
17080
17081 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
17082
17083         PR c/38957
17084         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
17085         as PLUS_EXPR.
17086
17087 2009-01-24  Julian Brown  <julian@codesourcery.com>
17088
17089         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
17090         config/arm/linux-atomic.c.
17091         * config/arm/linux-atomic.c: New.
17092
17093 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
17094
17095         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
17096         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
17097         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
17098
17099 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
17100
17101         PR c/38938
17102         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
17103         properly.
17104
17105 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
17106
17107         PR tree-optimization/38953
17108         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
17109         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
17110         (gloog): Split the exit of the scop when the scop exit is a loop exit.
17111         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
17112         changed the CFG.
17113
17114 2009-01-24  Paul Brook  <paul@codesourcery.com>
17115
17116         * config/arm/neon.md (neon_type): Move to arm.md.
17117         (neon_mov<VSTRUCT>): Add neon_type attribute.
17118         * config/arm/arm.md (neon_type): Move to here.
17119         (conds): Add "unconditioal" and use as default for NEON insns.
17120
17121 2009-01-24  Ben Elliston  <bje@au.ibm.com>
17122
17123         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
17124         void *' warning from -Wc++-compat.
17125         * Makefile.in (dominance.o-warn): Remove.
17126
17127 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
17128
17129         PR tree-optimization/38932
17130         * fold-const.c (fold_unary_ignore_overflow): New.
17131         * tree.h (fold_unary_ignore_overflow): Declare.
17132         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
17133         * tree-ssa-sccvn.c (visit_reference_op_load,
17134         simplify_unary_expression): Likewise.
17135
17136 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
17137
17138         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
17139         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
17140         regardless of their type.
17141         * c-common.c (handle_packed_attribute): Don't ignore packed on
17142         bitfields.
17143         * c.opt (Wpacked-bitfield-compat): New warning option.
17144         * stor-layout.c (place_field): Warn if offset of a field changed.
17145         * doc/extend.texi (packed): Mention the ABI change.
17146         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
17147         (Warning Options): Add it to the list.
17148
17149 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
17150
17151         * c-opts.c (c_common_post_options): Fix a typo in comments.
17152
17153 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
17154
17155         PR middle-end/38615
17156         * gimplify.c (gimplify_init_constructor): Fix promotion of const
17157         variables to static.
17158         * doc/invoke.texi (-fmerge-all-constants): Update description.
17159
17160 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
17161
17162         PR target/38931
17163         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
17164         (*movdi_1_rex64): Use type "mmx" for alternative 5.
17165
17166 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
17167
17168         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
17169         a word boundary.
17170         (LOCAL_ALIGNMENT): Similarly.
17171
17172 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
17173             Joseph Myers  <joseph@codesourcery.com>
17174
17175         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
17176         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
17177         * config/arm/arm-tune.md: Regenerate.
17178         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
17179         -march=iwmmxt2.
17180
17181 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
17182
17183         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
17184         version number to five.
17185
17186 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
17187
17188         PR c++/38930
17189         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
17190         * c-common.c (set_underlying_type): Likewise.
17191         (is_typedef_decl ): Likewise
17192         * tree.h: Likewise
17193         (set_underlying_type): Likewise.
17194         (is_typedef_type): Likewise.
17195
17196 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
17197
17198         PR middle-end/38587
17199         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
17200         crossing setjmps.
17201
17202 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
17203
17204         PR bootstrap/37660
17205         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
17206         (LIBGCC_SPEC):  Don't define.
17207         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
17208
17209 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
17210
17211         PR rtl-optimization/38879
17212         * alias.c (base_alias_check): Unaligned access via AND address can
17213         alias all surrounding object types except those with sizes equal
17214         or wider than the size of unaligned access.
17215
17216 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
17217
17218         PR c++/26693
17219         * c-decl.c (clone_underlying_type): Move this ...
17220         * c-common.c (set_underlying_type): ... here.
17221         Also, make sure the function properly sets TYPE_STUB_DECL() on
17222         the newly created typedef variant type.
17223         (is_typedef_decl ): New entry point.
17224         * tree.h: Added a new member member_types_needing_access_check to
17225         struct tree_decl_non_common.
17226         (set_underlying_type): New entry point.
17227         (is_typedef_type): Likewise.
17228
17229 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
17230
17231         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
17232         Check whether two instructions have memory references that
17233         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
17234         are helper functions for traversing.
17235         * alias.h (insn_alias_sets_confilict_p): New prototypes.
17236         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
17237         not to draw dependency edge for instructions with non-conflicting
17238         alias sets.
17239
17240 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
17241
17242         PR other/38758
17243         * longlong.h: Update copyright years.  Use soft-fp license notice.
17244         Sync __clz_tab declaration with glibc.
17245
17246 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
17247
17248         PR target/30687
17249         * doc/extend.texi (syscall_linkage): New.
17250         (version_id): Modify.
17251
17252 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17253             Richard Guenther  <rguenther@suse.de>
17254
17255         PR tree-optimization/38747
17256         PR tree-optimization/38748
17257         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
17258         conversion if the base address is an indirect reference and the
17259         aliasing sets could cause issues.
17260
17261 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
17262
17263         * common.opt (fgraphite, fgraphite-identity): Add comment for
17264         explaining why these options are not documented.
17265
17266 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
17267
17268         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
17269         gimple_call_lhs is NULL.
17270
17271 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17272
17273         PR target/38868
17274         * emit-rtl.c (adjust_address_1): Make sure memref is never
17275         overwritten.
17276
17277 2009-01-20  Ben Elliston  <bje@au.ibm.com>
17278
17279         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
17280         const qualifier from arg parameter. Remove unnecessary cast to char *.
17281         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
17282         const qualifier from arg 2.
17283
17284 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
17285
17286         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
17287
17288 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
17289
17290         PR c/38869
17291         * rtl.h (reinit_regs): New prototype.
17292         * regclass.c: Include ira.h.
17293         (reinit_regs): New.
17294         * Makefile.in (regclass.o): Add ira.h.
17295         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
17296
17297 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
17298
17299         PR target/38736
17300         * c-common.c (handle_aligned_attribute): Use
17301         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
17302         default alignment value.
17303
17304         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
17305
17306         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
17307         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
17308
17309         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
17310         __BIGGEST_ALIGNMENT__.
17311
17312         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
17313
17314 2009-01-18  Richard Guenther  <rguenther@suse.de>
17315
17316         PR tree-optimization/38819
17317         * tree-flow.h (operation_could_trap_helper_p): Declare.
17318         * tree-eh.c (operation_could_trap_helper_p): Export.
17319         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
17320         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
17321         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
17322         are about to insert a possibly trapping instruction and fail
17323         in this case.
17324
17325 2009-01-18  Andreas Schwab  <schwab@suse.de>
17326
17327         * doc/install.texi (Configuration): Remove obsolete paragraph
17328         about use of --with-gnu-ld with --with-gnu-as.
17329
17330 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
17331
17332         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
17333         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
17334         Follow spelling conventions.
17335
17336 2009-01-18  Ben Elliston  <bje@au.ibm.com>
17337
17338         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
17339         C++ warning about implicit conversion from void * to struct
17340         bitmap_head_def *.
17341         (bitmap_obstack_free): Likewise for bitmap_element *.
17342         * Makefile.in (bitmap.o-warn): Remove.
17343
17344 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
17345
17346         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
17347
17348 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
17349             Tobias Grosser  <tobi.grosser@amd.com>
17350
17351         * graphite.c (graphite_trans_scop_block): Do not block single
17352         nested loops.
17353
17354 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
17355
17356         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
17357         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
17358         test with assertion.
17359
17360 2009-01-16  Richard Guenther  <rguenther@suse.de>
17361
17362         PR tree-optimization/38835
17363         PR middle-end/36227
17364         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
17365         and INT + PTR -> (INT)(PTR p+ INT) folding.
17366         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
17367
17368 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
17369
17370         PR target/38554
17371         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
17372         the subreg from a lowpart subreg if it is also casting the value.
17373
17374 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
17375             Tobias Grosser  <tobi.grosser@amd.com>
17376
17377         * graphite.c (compare_prefix_loops): New.
17378         (build_scop_canonical_schedules): Rewritten.
17379         (graphite_transform_loops): Move build_scop_canonical_schedules
17380         after build_scop_iteration_domain.
17381
17382 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
17383             Tobias Grosser  <tobi.grosser@amd.com>
17384
17385         * graphite.c (add_conditions_to_domain): Add the loops to
17386         the dimension of the iteration domain.  Do copy the domain
17387         only when it exists.
17388         (build_scop_conditions_1): Do not call add_conditions_to_domain.
17389         (add_conditions_to_constraints): New.
17390         (can_generate_code_stmt, can_generate_code): Removed.
17391         (gloog): Do not call can_generate_code.
17392         (graphite_transform_loops): Call add_conditions_to_constraints
17393         after building the iteration domain.
17394
17395 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
17396
17397         PR tree-optimization/38789
17398         * tree-ssa-threadedge.c
17399         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
17400         __builtin_constant_p.
17401
17402 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
17403
17404         * dce.c (delete_unmarked_insns): Reversed the order that insns are
17405         examined before deleting them.
17406
17407 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
17408
17409         * function.c (aggregate_value_p): Correctly extract the function
17410         type from CALL_EXPR_FN lookup.
17411
17412 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
17413
17414         * config/picochip/picochip.c (picochip_override_options): Revert
17415         CFI asm flag disable commited previously.
17416
17417 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
17418             Tobias Grosser  <tobi.grosser@amd.com>
17419             Jan Sjodin  <jan.sjodin@amd.com>
17420
17421         * graphite.c (scan_tree_for_params): On substractions negate
17422         all the coefficients of the term.
17423         (clast_to_gcc_expression_red): New.  Handle reduction expressions
17424         of more than two operands.
17425         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
17426         (get_vdef_before_scop): Handle also the case of default definitions.
17427
17428 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
17429
17430         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
17431         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
17432         Also use them when walking CALL_INSN_FUNCTION_USAGE.
17433
17434 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
17435             Joey Ye  <joey.ye@intel.com>
17436
17437         PR middle-end/37843
17438         * cfgexpand.c (expand_stack_alignment): Don't update stack
17439         boundary nor check incoming stack boundary here.
17440         (gimple_expand_cfg): Update stack boundary and check incoming
17441         stack boundary here.
17442
17443 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
17444
17445         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
17446
17447 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
17448
17449         PR rtl-optimization/38245
17450         * calls.c (expand_call): Add stack arguments to
17451         CALL_INSN_FUNCTION_USAGE even for pure calls (when
17452         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
17453         in regs and partially in memory or BLKmode arguments.
17454         (emit_library_call_value_1): Add stack arguments to
17455         CALL_INSN_FUNCTION_USAGE even for pure calls (when
17456         ACCUMULATE_OUTGOING_ARGS).
17457         * dce.c: Include tm_p.h.
17458         (find_call_stack_args): New function.
17459         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
17460         argument.
17461         (mark_insn): Call find_call_stack_args for CALL_Ps.
17462         (prescan_insns_for_dce): Walk insns backwards in bb rather than
17463         forwards.  Allocate and free arg_stores bitmap if needed, pass it
17464         down to deletable_insn_p, don't mark stores set in arg_stores
17465         bitmap, clear the bitmap at the beginning of each bb.
17466         * Makefile.in (dce.o): Depend on $(TM_P_H).
17467
17468 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
17469
17470         PR target/22599
17471         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
17472         to make sure the insn is a conditional test (bug 22599).  Reformat a
17473         few long lines.
17474
17475 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
17476
17477         PR middle-end/38431
17478         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
17479         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
17480         (gloog): Do not call cleanup_tree_cfg.
17481         (graphite_transform_loops): Call cleanup_tree_cfg after all
17482         scops have been code generated.
17483
17484 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
17485         * doc/gty.texi (Invoking the garbage collector): Added new node
17486         and section documenting ggc_collect.
17487
17488 2009-01-14  Richard Guenther  <rguenther@suse.de>
17489
17490         PR tree-optimization/38826
17491         PR middle-end/38477
17492         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
17493         initialization notes only if we actually emitted a warning.
17494         (intra_create_variable_infos): Add constraints for a result decl
17495         that is passed by hidden reference.
17496         (build_pred_graph): Mark all related variables non-direct on
17497         address-taking.
17498
17499 2009-01-14  Nick Clifton  <nickc@redhat.com>
17500
17501         * ira-conflicts.c: Include addresses.h for the definition of
17502         base_reg_class.
17503         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
17504         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
17505
17506 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
17507
17508         PR target/38811
17509         * Makefile.in (ira-lives.o): Add except.h.
17510
17511         * ira-lives.c: Include except.h.
17512         (process_bb_node_lives): Process can_throw_internal.
17513
17514 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
17515
17516         PR rtl-optimization/38774
17517         * combine.c (simplify_set): When undoing cc_use change, don't do
17518         PUT_CODE on the newly created comparison, but instead put back the
17519         old comparison.
17520
17521 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
17522
17523         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
17524         values.  Remove duplicate arm8 entry.
17525
17526 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
17527
17528         PR tree-optimization/38786
17529         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
17530         the SSA_NAME case of expand_scalar_variables_expr.
17531         Set the type of an expression to the type of its assign statement.
17532         (expand_scalar_variables_expr): Also gather the scalar computation
17533         used to index the memory access.  Do not pass loop_p.
17534         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
17535         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
17536         the gimple_stmt_iterator where it inserts new code.
17537         Do not pass loop_p.
17538         (copy_bb_and_scalar_dependences): Do not pass loop_p.
17539         (translate_clast): Update call to copy_bb_and_scalar_dependences.
17540
17541 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
17542
17543         * graphite.h (debug_value): Removed.
17544         * graphite.c (debug_value): Removed.
17545
17546 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
17547
17548         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
17549         ldrd/strd with two 32-bit instructions.
17550
17551 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
17552
17553         * config/arm/arm.c (struct processors): Pass for speed down into
17554         cost helper functions.
17555         (const_ok_for_op): Handle COMPARE and inequality nodes.
17556         (arm_rtx_costs_1): Rewrite.
17557         (arm_size_rtx_costs): Update prototype.
17558         (arm_rtx_costs): Pass speed down to helper functions.
17559         (arm_slowmul_rtx_costs): Rework cost calculations.
17560         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
17561         (arm_9e_rtx_costs): Likewise.
17562
17563 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
17564
17565         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
17566         relocations of local symbols wider than UNITS_PER_WORD are not valid.
17567         (alpha_legitimize_address): Do not split local symbols wider than
17568         UNITS_PER_WORD into HIGH/LO_SUM parts.
17569
17570 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
17571
17572         PR bootstrap/38580
17573         * gcc.c (process_command): Replace call to execvp with calls
17574         to pex_one and exit.
17575
17576 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
17577
17578         PR target/29141
17579         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
17580         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
17581         variant for devices with 3-byte PC.
17582         (__tablejump_elpm__): New.
17583
17584 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
17585
17586         PR c/32041
17587         * c-parser.c (c_parser_postfix_expression): Allow `->' in
17588         offsetof member-designator, handle it as `[0].'.
17589
17590 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17591
17592         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
17593         function when not using named sections on targets with named sections
17594         if branch distance is less than 262132.
17595
17596 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
17597
17598         * combine.c (combine_instructions):  Recompute
17599         optimize_this_for_speed_p  for each BB in the main combine loop.
17600
17601 2009-01-12  Tomas Bily  <tbily@suse.cz>
17602
17603         PR middlend/38385
17604         * tree-loop-distribution.c (prop_phis): New function.
17605         (generate_builtin): Call prop_phis.
17606         * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
17607
17608 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
17609
17610         PR tree-optimization/38807
17611         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
17612         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
17613
17614 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
17615
17616         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
17617         subreg of op0 to the original op0.
17618
17619 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
17620
17621         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
17622
17623 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
17624
17625         PR debug/7055
17626         * mips-tfile.c (parse_def): Fix parsing of def strings
17627         starting with digits.
17628
17629 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
17630
17631         PR target/38695
17632         * config/arm/arm.c (arm_is_long_call_p): Don't call
17633         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
17634
17635 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
17636
17637         * regrename.c (regrename_optimize): Fix dumping.
17638         (find_oldest_value_reg): Preserve REG_POINTER.
17639         (copy_hardreg_forward_1): Likewise.
17640
17641 2009-01-09  Diego Novillo  <dnovillo@google.com>
17642
17643         * gimple.h (struct gimple_statement_base) <uid>: Document
17644         the restrictions on its use.
17645         (gimple_uid): Tidy.
17646         (gimple_set_uid): Tidy.
17647
17648 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
17649
17650         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
17651         zero guard even if align_bytes != 0 and count is smaller than
17652         size_needed.
17653
17654 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
17655
17656         PR rtl-optimization/38495
17657         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
17658         (add_range_and_copies_from_move_list): Print all added ranges.
17659         Add ranges to memory optimized destination.
17660
17661 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
17662
17663         PR target/38686
17664         PR target/38708
17665         * config/i386/i386.c (override_options): Reject
17666         -mstringop-strategy=rep_8byte with -m32.
17667         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
17668         to 1.  Do count comparison against epilogue_size_needed at compile
17669         time even when count_exp was constant forced into register.  For
17670         size_needed don't jump to epilogue, instead just avoid aligning
17671         and invoke the body algorithm.  If need_zero_guard, add zero guard
17672         even if count is non-zero, but smaller than size_needed + number of
17673         bytes that could be stored for alignment.
17674         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
17675         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
17676         but smaller than size_needed + number of bytes that could be stored
17677         for alignment.  Compare size_needed with epilogue_size_needed instead
17678         of desired_align - align, don't adjust size_needed, pass
17679         epilogue_size_needed to the epilogue expanders.
17680
17681         PR c/35742
17682         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
17683
17684 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17685
17686         * pa.c (last_address): Change to unsigned.
17687         (update_total_code_bytes): Change argument to unsigned.  Don't
17688         check if insn addresses are set.
17689         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
17690         addresses are not set.
17691         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
17692
17693 2009-01-09  Nick Clifton  <nickc@redhat.com>
17694
17695         * config/sh/symbian.c: Replace uses of DECL_INLINE with
17696         DECL_DECLARED_INLINE_P.
17697
17698 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
17699
17700         PR middle-end/38347
17701         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
17702         GET_MODE (op0) in operand_subword_force calls.
17703
17704         PR middle-end/38771
17705         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
17706         fold_convert arg0 operands to TREE_TYPE (op0) first.
17707
17708 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
17709
17710         * params.def (ira-max-conflict-table-size): Decrease default value
17711         to 1000.
17712
17713 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
17714
17715         PR tree-optimization/37031
17716         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
17717         on parameter_set.
17718         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
17719         allocate it using gc instead of heap, use VEC_quick_push instead of
17720         VEC_safe_push.
17721         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
17722         instead of heap, use VEC_quick_push instead of VEC_safe_push.
17723         * tree-data-ref.h (struct access_matrix): Change matrix to gc
17724         allocated vector from heap allocated.
17725         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
17726         * tree-loop-linear.c (linear_transform_loops): Allocate nest
17727         vector only after perfect_loop_nest_depth call.
17728
17729 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
17730             Jan Sjodin  <jan.sjodin@amd.com>
17731
17732         PR tree-optimization/38559
17733         * graphite.c (debug_value, copy_constraint,
17734         swap_constraint_variables, scale_constraint_variable, ): New.
17735         (get_lower_bound, get_upper_bound): Removed.
17736         (graphite_trans_bb_strip_mine): Clean up this code that works
17737         only for constant number of iterations.  Fully copy upper and
17738         lower bound constraints, not only the constant part of them.
17739         * graphite.h (debug_value): Declared.
17740
17741 2009-01-08  Ira Rosen  <irar@il.ibm.com>
17742
17743         PR tree-optimization/37194
17744         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
17745         Don't add the cost of cost model guard in prologue to scalar
17746         outside cost in case of known number of iterations.
17747
17748 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
17749             Alan Modra  <amodra@bigpond.net.au>
17750
17751         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
17752         non-word-aligned REG+CONST addressing.
17753
17754 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
17755
17756         PR target/38706
17757         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
17758         free_after_compilation when outputting a thunk.
17759         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
17760         Do not call free_after_compilation here.
17761
17762 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
17763
17764         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
17765         (ix86_valid_target_attribute_inner_p): Ditto.
17766
17767 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
17768
17769         PR tree-optimization/38492
17770         PR tree-optimization/38498
17771         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
17772         * tree-chrec.h (scev_is_linear_expression): Declared.
17773         * graphite.c (graphite_cannot_represent_loop_niter): New.
17774         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
17775         (graphite_loop_normal_form): Use gcc_assert.
17776         (scan_tree_for_params): Use CASE_CONVERT.
17777         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
17778         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
17779         Use gcc_assert.  Discard scops that contain unhandled cases.
17780         (build_scop_conditions): Return a boolean status for unhandled cases.
17781         (strip_mine_profitable_p): Print the loop number, not its depth.
17782         (is_interchange_valid): Pass the depth of the loop nest, don't
17783         recompute it wrongly.
17784         (graphite_trans_bb_block): Same.
17785         (graphite_trans_bb_block): Print tentative of loop blocking.
17786         (graphite_trans_scop_block): Do not print that the loop has been
17787         blocked.
17788         (graphite_transform_loops): Do not handle scops that contain condition
17789         scalar phi nodes.
17790
17791 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
17792
17793         AVX Programming Reference (December, 2008)
17794         * config/i386/avxintrin.h (_mm256_stream_si256): New.
17795         (_mm256_stream_pd): Likewise.
17796         (_mm256_stream_ps): Likewise.
17797
17798         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
17799         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
17800         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
17801         (bdesc_special_args): Add __builtin_ia32_movntdq256,
17802         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
17803         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
17804         (ix86_expand_special_args_builtin): Likewise.
17805
17806         * config/i386/sse.md (AVXMODEDI): New.
17807         (avx_movnt<mode>): Likewise.
17808         (avx_movnt<mode>): Likewise.
17809         (<sse>_movnt<mode>): Remove AVX support.
17810         (sse2_movntv2di): Likewise.
17811
17812 2009-01-07  Richard Guenther  <rguenther@suse.de>
17813
17814         PR middle-end/38751
17815         * fold-const.c (extract_muldiv): Remove obsolete comment.
17816         (fold_plusminus_mult_expr): Undo MINUS_EXPR
17817         to PLUS_EXPR canonicalization for the canonicalization.
17818
17819 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
17820
17821         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
17822         hosted cross-compilers generating less efficient code.
17823
17824 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
17825
17826         * function.h (rtl_data): Add a dbr_scheduled_p field.
17827         * reorg.c (dbr_schedule): Set it.
17828         (gate_handle_delay_slots): Check it.
17829         * config/mips/mips.c (mips_base_delayed_branch): Delete.
17830         (mips_reorg): Check flag_delayed_branch instead of
17831         mips_base_delayed_branch.
17832         (mips_override_options): Don't set mips_base_delayed_branch
17833         or flag_delayed_branch.
17834
17835 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
17836
17837         PR rtl-optimization/38426.
17838         * ira.c (ira): Set current_function_is_leaf earlier.
17839
17840 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
17841
17842         PR rtl-optimization/38722
17843         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
17844         too early, only set a flag and modify after last possible
17845         undo_all point.
17846
17847 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
17848
17849         PR c/34252
17850         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
17851         * real.c (decimal_single_format): Correct values of emin and emax.
17852         (decimal_double_format): Ditto.
17853         (decimal_quad_format): Ditto.
17854         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
17855         computation of DECnn_MIN and DECnn_MAX for corrected values of
17856         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
17857         __DECnn_MIN__, and adjust its computation for the corrected value
17858         of emin.
17859
17860 2009-01-06  Jan Hubicka  <jh@suse.cz>
17861
17862         PR target/38744
17863         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
17864
17865 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
17866
17867         * doc/contrib.texi (Contributors): Slightly adjust the end note.
17868         Add Robert Clark to the list of testers.
17869
17870 2009-01-06  Jan Hubicka  <jh@suse.cz>
17871             Kai Tietz  <kai.tietz@onevision.com>
17872
17873         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
17874         * config/i386/i386.c (ix86_expand_call): Add clobbers.
17875
17876 2009-01-06  Jan Hubicka  <jh@suse.cz>
17877             Kai Tietz  <kai.tietz@onevision.com>
17878
17879         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
17880         for w64 ABI.
17881         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
17882         (ix86_nsaved_regs): Count only general purpose regs.
17883         (ix86_nsaved_sseregs): New.
17884         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
17885         to 16 for w64; compute padding and size of sse reg save area.
17886         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
17887         general purpose regs.
17888         (ix86_emit_save_sse_regs_using_mov): New.
17889         (ix86_expand_prologue): Save SSE regs if needed.
17890         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
17891         (ix86_emit_restore_sse_regs_using_mov): New.
17892         (ix86_expand_epilogue): Save SSE regs if needed.
17893
17894 2009-01-06  Jan Hubicka  <jh@suse.cz>
17895             Kai Tietz  <kai.tietz@onevision.com>
17896
17897         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
17898         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
17899         functions when accumulate outgoing args is off.
17900
17901 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
17902
17903         PR bootstrap/38742
17904         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
17905         before using pseudos_have_intersected_live_ranges_p.
17906
17907         * ira-int.h (ira_assert): Always define.
17908
17909 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
17910
17911         AVX Programming Reference (December, 2008)
17912         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
17913         (_mm256_permute2_pd): Likewise.
17914         (_mm_permute2_ps): Likewise.
17915         (_mm256_permute2_ps): Likewise.
17916         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
17917         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
17918
17919         * config/i386/i386.c (ix86_builtins): Remove
17920         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
17921         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
17922         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
17923         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
17924         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
17925         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
17926         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
17927         __builtin_ia32_vpermil2ps256.
17928         (ix86_init_mmx_sse_builtins): Updated.
17929         (ix86_expand_args_builtin): Likewise.
17930
17931 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17932
17933         * pa.c (output_call): Relocate non-jump insns in the delay slot of
17934         long absolute calls when generating PA 2.0 code.
17935
17936 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
17937
17938         PR rtl-optimization/38583
17939         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
17940
17941         * params.def (ira-max-conflict-table-size): New.
17942
17943         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
17944
17945         * ira.h (ira_conflicts_p): New external definition.
17946
17947         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
17948         table.  Report this.  Return result of building.
17949         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
17950         building conflict table.
17951
17952         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
17953         (ira_color): Use ira_conflicts_p.
17954
17955         * global.c: Include ira.h.
17956         (pseudo_for_reload_consideration_p, build_insn_chain): Use
17957         ira_conflicts_p.
17958
17959         * Makefile.in (global.o): Add ira.h.
17960
17961         * ira-build.c (mark_all_loops_for_removal,
17962         propagate_some_info_from_allocno): New.
17963         (remove_unnecessary_allocnos): Call
17964         propagate_some_info_from_allocno.
17965         (remove_low_level_allocnos): New.
17966         (remove_unnecessary_regions): Add parameter.  Call
17967         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
17968         parameter to remove_unnecessary_regions.
17969         (ira_build): Remove all regions but root if the conflict table was
17970         not built.  Update conflict hard regs for allocnos crossing calls.
17971
17972         * ira.c (ira_conflicts_p): New global.
17973         (ira): Define and use ira_conflicts_p.
17974
17975         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
17976         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
17977         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
17978
17979 2009-01-06  Ben Elliston  <bje@au.ibm.com>
17980
17981         * gengtype-lex.l (YY_NO_INPUT): Define.
17982
17983 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17984
17985         PR c/34911
17986         * c-common.c (handle_vector_size_attribute): Also reject
17987         BOOLEAN_TYPE types.
17988
17989 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
17990
17991         PR tree-optimization/38492
17992         * graphite.c (rename_map_elt, debug_rename_elt,
17993         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
17994         rename_map_elt_info, eq_rename_map_elts,
17995         get_new_name_from_old_name, bb_in_sese_p): Moved around.
17996         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
17997         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
17998         (sese_build_livein_liveouts): New.
17999         (new_sese, free_sese): New.
18000         (new_scop): Call new_sese.
18001         (free_scop): Call free_sese.
18002         (rename_variables_from_edge, rename_phis_end_scop): Removed.
18003         (register_old_new_names): Renamed register_old_and_new_names.
18004         (register_scop_liveout_renames, add_loop_exit_phis,
18005         insert_loop_close_phis, struct igp,
18006         default_liveout_before_guard, add_guard_exit_phis,
18007         insert_guard_phis, copy_renames): New.
18008         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
18009         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
18010         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
18011         (scop_adjust_phis_for_liveouts): New.
18012         (gloog): Call scop_adjust_phis_for_liveouts.
18013
18014         * graphite.h (struct sese): Documented.  Added fields liveout,
18015         num_ver and livein.
18016         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
18017         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
18018         (struct scop): Added field liveout_renames.
18019         (SCOP_LIVEOUT_RENAMES): New.
18020
18021 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
18022
18023         PR tree-optimization/38510
18024         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
18025         (translate_clast): Call recompute_all_dominators before
18026         graphite_verify.
18027         (gloog): Call recompute_all_dominators before graphite_verify.
18028
18029 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
18030             Jan Sjodin  <jan.sjodin@amd.com>
18031
18032         PR tree-optimization/38500
18033         * graphite.c (create_sese_edges): Call fix_loop_structure after
18034         splitting blocks.
18035
18036 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
18037
18038         * config.gcc: Add m32r*-*-rtems*.
18039         * config/m32r/rtems.h: New file.
18040
18041 2009-01-05  Ben Elliston  <bje@au.ibm.com>
18042
18043         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
18044         (.po.pox): Likewise.
18045         (po/gcc.pot): Likewise.
18046
18047 2009-01-04  David S. Miller  <davem@davemloft.net>
18048
18049         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
18050         (STARTING_FRAME_OFFSET): Always set to zero.
18051
18052 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
18053
18054         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
18055         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
18056         fixed-point types, and vectors of the same.
18057
18058 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
18059
18060         * config/mips/sync.md (*mb_barrier): Rename to...
18061         (*memory_barrier): ...this.
18062
18063 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
18064
18065         * doc/extend.texi (Function Attributes): Move @cindex after @item
18066         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
18067         and put in alphabetical order. Fix 'target' name and put in order.
18068         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
18069         typos.
18070
18071 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
18072
18073         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
18074         (memory_barrier): Expand as unspec instead of unspec_volatile.
18075         Remove mem:BLK from insn operands.  Use Pmode scratch register.
18076         (*memory_barrier): Define as unspec instead of unspec_volatile.
18077         Use (match_dup 0) as input operand.
18078
18079         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
18080         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
18081         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
18082         scratch register.  Remove operand 1.
18083         (*stbar): Define as unspec instead of unspec_volatile.
18084         Use (match_dup 0) as input operand, remove (const_int 8).
18085         (*membar): Define as unspec instead of unspec_volatile.
18086         Use (match_dup 0) as input operand, remove input operand 2.
18087
18088         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
18089         (memory_barrier): Expand as unspec instead of unspec_volatile.
18090         Remove mem:BLK from insn operands.  Use Pmode scratch register.
18091         (*memory_barrier): Define as unspec instead of unspec_volatile.
18092         Use (match_dup 0) as input operand.
18093
18094         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
18095         Remove mem:BLK from insn operands.  Use Pmode scratch register.
18096         Set volatile flag on operand 0.
18097         (*memory_barrier): New insn pattern.
18098
18099         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
18100         insn operands.
18101         (*memory_barrier): Use (match_dup 0) as input operand.
18102
18103         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
18104         Remove mem:BLK from insn operands.  Use Pmode scratch register.
18105         Set volatile flag on operand 0.
18106         (*mb_internal): New insn pattern.
18107
18108         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
18109
18110 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
18111
18112         PR middle-end/38586
18113         * function.c (struct temp_slot): Move to the section of the file
18114         that deals with temp slots.  Remove field 'address'.
18115         (temp_slot_address_table): New hash table of address -> temp slot.
18116         (struct temp_slot_address_entry): New struct, items for the table.
18117         (temp_slot_address_compute_hash, temp_slot_address_hash,
18118         temp_slot_address_eq, insert_temp_slot_address): Support functions
18119         for the new table.
18120         (find_temp_slot_from_address): Rewrite to use the new hash table.
18121         (remove_unused_temp_slot_addresses): Remove addresses of temp
18122         slots that have been made available.
18123         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
18124         worker function for remove_unused_temp_slot_addresses.
18125         (assign_stack_temp_for_type): Don't clear the temp slot address list.
18126         Add the temp slot address to the address -> temp slot map.
18127         (update_temp_slot_address): Update via insert_temp_slot_address.
18128         (free_temp_slots): Call remove_unused_temp_slot_addresses.
18129         (pop_temp_slots): Likewise.
18130         (init_temp_slots): Allocate the address -> temp slot map, or empty
18131         the map if it is already allocated.
18132         (prepare_function_start): Initialize temp slot processing.
18133
18134 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
18135
18136         PR middle-end/38584
18137         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
18138         Calculate the size of all stack vars assuming no packing of stack
18139         vars will happen, replacing a quadratic algorithm with a linear one.
18140
18141 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
18142
18143         PR target/38707
18144         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
18145         can't be used.
18146
18147 2009-01-03  Diego Novillo  <dnovillo@google.com>
18148
18149         * doc/contrib.texi: Update contributions.
18150
18151 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
18152
18153         PR c++/38705
18154         * builtins.c (fold_builtin_memory_op): Give up if either operand
18155         is volatile.  Set srctype or desttype to non-qualified version
18156         of the other type.
18157
18158         PR c/38700
18159         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
18160         and FUNCTION_DECLs.
18161
18162 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
18163
18164         PR rtl-optimization/35805
18165         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
18166         problem if fast dce is able to remove any instructions.
18167         * dce.c (dce_process_block): Fix dump message.
18168
18169 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
18170
18171         PR 33649
18172         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
18173
18174 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
18175
18176         PR middle-end/38690
18177         * tree-flow.h (op_code_prio, op_prio): New prototypes.
18178         * tree-pretty-print.c (op_code_prio): New function.
18179         (op_prio): No longer static.  Use op_code_prio.
18180         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
18181         Use op_prio and op_code_prio to determine if () should be
18182         printed around operand(s) or not.
18183
18184         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
18185         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
18186         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
18187         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
18188         pp_character instead of pp_string for single letter printing.
18189
18190 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
18191
18192         * doc/extend.texi: Fix '#pragma GCC option' typo.
18193
18194 2009-01-02  Richard Guenther  <rguenther@suse.de>
18195
18196         * doc/install.texi (--enable-checking): Mention different
18197         default for stage1.
18198         (--enable-stage1-checking): Document.
18199
18200 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
18201
18202         PR middle-end/30142
18203         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
18204         case to be an error.
18205
18206 2009-01-02  Ben Elliston  <bje@au.ibm.com>
18207
18208         * config/fp-bit.h (pack_d): Constify argument.
18209         * config/fp-bit.c (makenan): Constify return type. Remove casts.
18210         (isnan): Constify argument.
18211         (isinf): Likewise.
18212         (iszero): Likewise.
18213         (pack_d): Likewise.
18214         (_fpadd_parts): Constify return type.
18215         (_fpmul_parts): Likewise.
18216         (_fpdiv_parts): Likewise.
18217
18218 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
18219
18220         PR c/36489
18221         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
18222         warn about overwriting initializer with side-effects or
18223         -Woverride-init if !IMPLICIT.
18224         (output_init_element): Likewise.  Pass IMPLICIT down to
18225         add_pending_init.
18226         (process_init_element): Add IMPLICIT argument.  Pass it down
18227         to output_init_element.
18228         (push_init_element, pop_init_level, set_designator): Adjust
18229         process_init_element callers.
18230         (set_nonincremental_init, set_nonincremental_init_from_string):
18231         Adjust add_pending_init callers.
18232         (output_pending_init_elements): Adjust output_init_element callers.
18233         * c-tree.h (process_init_element): Adjust prototype.
18234         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
18235         process_init_element callers.
18236
18237 \f
18238 Copyright (C) 2009 Free Software Foundation, Inc.
18239
18240 Copying and distribution of this file, with or without modification,
18241 are permitted in any medium without royalty provided the copyright
18242 notice and this notice are preserved.