OSDN Git Service

* config/h8300/h8300.c (F): New.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-10-14  DJ Delorie  <dj@redhat.com>
2         
3         * config/h8300/h8300.c (F): New.
4         (Fpa): New.
5         (h8300_emit_stack_adjustment): Call them.
6         (push): Likewise.
7         (h8300_push_pop): Likewise.
8         (h8300_expand_prologue): Likewise.
9         * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
10         (MUST_USE_SJLJ_EXCEPTIONS): Define.
11         (INCOMING_RETURN_ADDR_RTX): Define.
12         (INCOMING_FRAME_SP_OFFSET): Define.
13         (DWARF_CIE_DATA_ALIGNMENT): Define.
14
15 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
16
17         * stor-layout.c (place_field): Don't emit -Wpadded warnings for
18         fields in builtin structs.
19         (finalize_record_size): Likewise.
20
21 2009-10-14  Richard Guenther  <rguenther@suse.de>
22
23         * gimple.c (gtc_ob): New global.
24         (struct type_pair_d): Replace pointers with type UIDs.
25         (type_pair_hash): Adjust.
26         (type_pair_eq): Likewise.
27         (lookup_type_pair): Likewise.  Allocate from an obstack.
28         (gimple_force_type_merge): Adjust.
29         (gimple_types_compatible_p): Likewise.
30         (free_gimple_type_tables): Free the obstack.
31
32 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
33
34         * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
35         stmts setting DEBUG_EXPR_DECLs.
36
37         * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
38         Don't crash if mode1 is VOIDmode.
39
40 2009-09-26  Vladimir Makarov  <vmakarov@redhat.com>
41
42         * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
43         * params.h (IRA_LOOP_RESERVED_REGS): New
44         * tree-pass.h (pass_subregs_of_mode_init,
45         pass_subregs_of_mode_finish): Remove.
46         * passes.c (pass_subregs_of_mode_init,
47         pass_subregs_of_mode_finish): Remove.
48         (pass_reginfo_init): Move before loop optimizations.
49         * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
50         * common.opt (fira-loop-pressure): New.
51         * toplev.h (flag_ira_loop_pressure): New.
52         * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New
53         externals.
54         * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
55         Make external and void type functions.
56         (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
57         pass_subregs_of_mode_finish): Remove.
58         * ira-costs.c (init_costs): Call init_subregs_of_mode.
59         * regmove.c: Include ira.h.
60         (regmove_optimize): Call ira_set_pseudo_classes after IRA based
61         register pressure calculation in loops.
62         * loop-invariant.c: Include REGS_H and ira.h.
63         (struct loop_data): New members max_reg_pressure, regs_ref, and
64         regs_live.
65         (struct invariant): New member orig_regno.
66         (curr_loop): New variable.
67         (find_exits): Initialize regs_ref and regs_live.
68         (create_new_invariant): Initialize orig_regno.
69         (get_cover_class_and_nregs): New.
70         (get_inv_cost): Make aregs_needed an array.  Use regs_needed as an
71         array.  Add code for flag_ira_loop_pressure.
72         (gain_for_invariant): Make new_regs an array.  Add code for
73         flag_ira_loop_pressure.
74         (best_gain_for_invariant): Ditto.
75         (set_move_mark): New parameter gain.  Use it for debugging output.
76         (find_invariants_to_move): Make regs_needed and new_regs an array.
77         Add code for flag_ira_loop_pressure.
78         (move_invariant_reg): Set up orig_regno.
79         (move_invariants): Set up reg classes for pseudos for
80         flag_ira_loop_pressure.
81         (free_loop_data): Clear regs_ref and regs_live.
82         (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
83         get_regno_cover_class, change_pressure, mark_regno_live,
84         mark_regno_death, mark_reg_store, mark_reg_clobber,
85         mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
86         (move_loop_invariants): Calculate pressure.  Initialize curr_loop.
87         * ira.c (ira): Call ira_set_pseudo_classes after IRA based
88         register pressure calculation in loops if new regs were added.
89         Call finish_subregs_of_mode.
90         * opts.c (decode_options): Set up flag_ira_loop_pressure.
91         * Makefile.in (loop-invariant.o): Add ira.h.
92         (regmove.o): Ditto.
93         * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
94         Describe.
95         * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
96         
97 2009-10-14  Richard Guenther  <rguenther@suse.de>
98
99         * lto-symtab.c (lto_symtab_compatible): Fold in ...
100         (lto_symtab_merge): ... here.  Rewrite both to take the
101         prevailing and a to-be-merged entry and to queue diagnostics
102         properly.
103         (lto_symtab_resolve_replaceable_p): New predicate for
104         symbol resolution.
105         (lto_symtab_resolve_can_prevail_p): Likewise.
106         (lto_symtab_resolve_symbols): Rewrite.  Fold in code that
107         handles merging commons by choosing the largest decl.  Fold
108         in code that gives ODR errors.
109         (lto_symtab_merge_decls_2): Simplify a lot.  Emit queued
110         diagnostics here.
111         (lto_symtab_merge_decls_1): Re-structure.  Deal with the
112         case of no prevailing decl here.  Diagnose mismatches
113         in object types here.  Drop all but the prevailing decls.
114         (lto_symtab_prevailing_decl): Return the single prevailing decl.
115         * lto-streamer-in.c (lto_input_tree_ref): Deal with
116         VIEW_CONVERT_EXPRs in decl slots.  Unshare the tree in this case.
117
118 2009-10-14  Richard Guenther  <rguenther@suse.de>
119
120         PR lto/41521
121         * lto-streamer-in.c (input_bb): Replace debug stmts with
122         nops instead of dropping them.
123
124 2009-10-14  Nick Clifton  <nickc@redhat.com>
125
126         * gcc/doc/extended.texi: Replace the dash character with
127         @minus{} in situations where it is being used as a minus
128         symbol.
129         * gcc/doc/tm.texi: Likewise.
130         * gcc/doc/md.texi: Likewise.
131
132 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
133
134         PR preprocessor/41543
135         * input.h (BUILTINS_LOCATION): Change to 1 from 2.
136         Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
137         * tree.c: Include intl.h.
138         (expand_location): Handle BUILTINS_LOCATION.
139         * Makefile.in (tree.o): Depend on intl.h.
140
141         PR debug/41695
142         * dwarf2out.c (dwarf2out_var_location): Always clear
143         last_postcall_label when changing last_label.
144
145 2009-10-14  Pascal Obry  <obry@adacore.com>
146
147         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
148         (process_command): Handle -E as done with -c and -S.  Do not add
149         the target executable suffix to the output file when -E is used.
150         (main): Adjust error message accordingly.
151
152 2009-10-14  Alexandre Oliva  <aoliva@redhat.com>
153
154         PR debug/41343
155         PR debug/41447
156         PR debug/41264
157         PR debug/41338
158         * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
159         decl with rtl.
160         (tree_code_size): Likewise.
161
162 2009-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
163
164         * builtins.c (fold_builtin_1): Support complex "arc" functions.
165         * real.h (HAVE_mpc_arc): Define.
166
167 2009-10-14  Kaz Kojima  <kkojima@gcc.gnu.org>
168
169         * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
170         (struct builtin_description): Add fndecl field.
171         (bdesc): Remove const qualifier.  Update initializer.
172         (sh_media_init_builtins): Remove const qualifier for d.  Record
173         the result of add_builtin_function to the fndecl field.
174         (sh_builtin_decl): New.
175         (sh_media_builtin_decl): New.
176
177 2009-10-14  Hans-Peter Nilsson  <hp@axis.com>
178
179         PR target/38948
180         * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
181         requests between special registers.
182
183 2009-10-13  Eric Botcazou  <ebotcazou@adacore.com>
184
185         * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
186
187 2009-10-13  Richard Henderson  <rth@redhat.com>
188
189         PR tree-optimization/41377
190         * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
191         (cleanup_empty_eh_merge_phis): New change_region parameter;
192         pass it on to redirect_eh_edge_1.  Update callers.
193         (cleanup_empty_eh_unsplit): Don't require an existing EH label
194         at the destination block.
195
196 2009-10-13  Basile Starynkevitch  <basile@starynkevitch.net>
197
198         * passes.c (register_pass): Replaced gcc_unreachable by
199         fatal_error on failure. Mentions plugins in comments & messages.
200
201 2009-10-13  Jakub Jelinek  <jakub@redhat.com>
202
203         PR target/41693
204         * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
205         * sched-vis.c (print_value): Use it.
206         * cselib.c (cselib_hash_rtx): Likewise.
207         * print-rtl.c (print_rtx): Likewise.
208         * cfgexpand.c (expand_debug_rtx): Likewise.
209         * var-tracking.c (vt_expand_loc_callback): Likewise.
210
211 2009-10-13  Richard Guenther  <rguenther@suse.de>
212
213         PR lto/41565
214         * opts.c (handle_option): Split out code to handle setting
215         the options flag var ...
216         (set_option): ... here.
217         * opts.h (set_option): Declare.
218         * lto-opts.c (register_user_option_p): Include -fexceptions
219         and all position independent code variants.
220         (handle_common_option): Remove.
221         (lto_reissue_options): Use set_option.
222
223 2009-10-13  Martin Jambor  <mjambor@suse.cz>
224
225         PR tree-optimization/41661
226         * ipa-prop.c (compute_complex_pass_through): Allow only operations
227         that are tcc_comparisons or do not change the type in any
228         un-usleless way.
229         * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
230         folding tcc_comparison operations.
231
232 2009-10-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
233
234         * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
235         properly.
236
237 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
238
239         PR debug/41343
240         PR debug/41447
241         PR debug/41264
242         PR debug/41338
243         * tree.def (DEBUG_EXPR_DECL): New.
244         * rtl.def (DEBUG_EXPR): New.
245         * gengtype.c (adjust_field_rtx_def): Handle it.
246         * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
247         (insert_debug_temp_for_var_def): ... this.  Drop support for
248         moving.  Take iterator for def stmt; insert debug stmt before it.
249         Scan early for use count and kind in debug stmts.
250         (propagate_defs_into_debug_stmts): Rename to...
251         (insert_debug_temps_for_defs): ... this.  Likewise.
252         * tree.h (DEBUG_TEMP_UID): New.
253         * tree.c (next_debug_decl_uid): New.
254         (make_node_stat): Count debug decls separately.
255         (copy_node_stat): Likewise.
256         * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
257         * var-tracking.c (dv_is_decl_p): Recognize it.
258         (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
259         (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
260         (vt_expand_loc_callback): Expand DEBUG_EXPRs.
261         (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
262         * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
263         (cselib_hash_rtx): Likewise.
264         (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
265         * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
266         debug bind stmts.
267         * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
268         (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
269         * rtl.c (copy_rtx): Likewise.
270         (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
271         * print-rtl.c (print_rtx): Likewise.
272         * sched-vis.c (print_value): Likewise.
273         (print_insn): Handle DEBUG_EXPR_DECL.
274         * tree-dump.c (dequeue_and_dump): Likewise.
275         * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
276         * gimple-iterator (gsi_replace): Check for same lhs.
277         (gsi_remove): Insert debug temps.
278         * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
279         (move_computations_stmt): Drop explicit propagation into debug stmts.
280         (rewrite_bittest): Likewise.  Use gsi_remove for propagation.
281         * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
282         * tree-ssa-sink.c (statement_sink_location): Likewise.
283         * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
284         * tree-ssanames.c (release_ssa_name): Adjust for rename.
285         * tree-flow.h: Likewise.
286         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
287         debug temps without values.
288         (eliminate_unnecessary_stmts): Don't discard just-inserted
289         debug stmts.
290
291 2009-10-12  Hans-Peter Nilsson  <hp@axis.com>
292
293         PR target/26515
294         * config/cris/cris.md (andu): Check that operand 1 is one of the
295         general registers.  Fix typo in head comment.
296
297 2009-10-12  Stefan Dösinger  <stefan@codeweavers.com>
298
299         * config/i386/i386.md (vswapmov): New.
300         * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
301         (ix86_function_ms_hook_prologue): New.
302         (ix86_expand_prologue): Handle ms_hook_prologue attribute.
303         * configure.ac: Test for swap suffix support in as.
304         * configure: Rebuild.
305
306 2009-10-12  Jakub Jelinek  <jakub@redhat.com>
307
308         PR target/41680
309         * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
310         paradoxical subregs to prevent partial register stalls if the inner
311         mode is integer mode.
312
313 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
314
315         * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
316
317 2009-10-12  Dodji Seketeli  <dodji@redhat.com>
318
319         PR c++/41570
320         * gcc/dwarf2out.c (template_parameter_pack_die,
321         gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
322
323 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
324
325         PR debug/41616
326         * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
327         on updates too.
328         (maybe_register_def): Likewise.  Take stmt iterator.
329         (rewrite_update_stmt): Take stmt iterator and pass it on.
330         (rewrite_update_enter_block): Pass stmt iterator.
331
332 2009-10-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
333
334         * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
335         (spu_builtin_decl): New function.
336
337 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
338
339         * config/i386/i386.md (SWIM): New mode iterator.
340         (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
341         using SWIM mode iterator.
342         (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
343         patterns using SWI48 mode iterator.
344         (*x86_mov<mode>cc_0_m1_se):  Macroize insn from
345         *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
346         (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
347         (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
348         patterns using SWI248 mode iterator.
349         * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
350         gen_x86_movdicc_0_m1_rex64 for renamed function
351
352 2009-10-11  Jose Ruiz  <ruiz@adacore.com>
353             Eric Botcazou  <ebotcazou@adacore.com>
354
355         PR target/33743
356         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
357         * config/sparc/sol2-unwind.h: New file.
358
359 2009-10-11  Olivier Hainque  <hainque@adacore.com>
360             Eric Botcazou  <ebotcazou@adacore.com>
361
362         PR target/33743
363         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
364         * config/i386/sol2-unwind.h: New file.
365
366 2009-10-11  H.J. Lu  <hongjiu.lu@intel.com>
367
368         PR target/41665
369         * config/i386/i386.md (addsi_1_zext): Get the proper second
370         operand for lea.
371
372 2009-10-11  Richard Sandiford  <rdsandiford@googlemail.com>
373
374         * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
375         all OLD_RTXes, not just REGs.  Use copy_rtx to create the
376         replacement value.
377
378 2009-10-11  Richard Guenther  <rguenther@suse.de>
379
380         * gimple.c (iterative_hash_type_name): Do not handle special
381         anonymous names.
382
383 2009-10-11  Uros Bizjak  <ubizjak@gmail.com>
384
385         * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
386         (*setcc_si_1_and): Ditto.
387         (*setcc_si_1_movzbl): Ditto.
388         (*setcc_<mode>_2): Ditto.
389         (*setcc_qi): Rename from *setcc_1.
390         (*setcc_qi_slp): Rename from *setcc_2.
391
392         (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
393         (*zero_extendqisi2_movzbw_and splitter): Ditto.
394
395         * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
396         "if" condition, there is already assert with reload_completed present.
397
398 2009-10-11  Gerald Pfeifer  <gerald@pfeifer.com>
399
400         * plugin.c (try_init_one_plugin): Improve constness of variable err.
401
402 2009-10-10  Gerald Pfeifer  <gerald@pfeifer.com>
403
404         * doc/install.texi (Final install): Refer to
405         http://gcc.gnu.org/bugs/ for bug reporting.
406
407 2009-10-10  Peter Bergner  <bergner@vnet.ibm.com>
408
409         * configure.ac: Add test for dci instruction.
410         * configure: Regenerate.
411         * config.in: Likewise.
412         * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
413         * doc/invoke.texi: Add cpu_type 476 and 476fp.
414         (-mmulhw): Add 476 to description.
415         (-mdlmzb): Likewise.
416         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
417         * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
418         (processor_target_table): Add 476 and 476fp entries.
419         (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
420         (rs6000_issue_rate): Add CPU_PPC476.
421         * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
422         (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
423         (processor_type): Add PROCESSOR_PPC476.
424         (EXTRA_SPECS): Add asm_cpu_476 string.
425         * config/rs6000/rs6000.md: (define_attr "type"): Add isel attribute.
426         (define_attr "cpu"): Add ppc476.
427         Include 476.md.
428         Update comments for 476.
429         (isel_signed, isel_unsigned): Change to use "isel" type attribute.
430         * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
431         Update copyright year.
432         * config/rs6000/476.md: New file.
433         * config/rs6000/40x.md: Add description for "isel" attribute.
434         Update copyright year.
435         * config/rs6000/440.md: Likewise.
436         * config/rs6000/603.md: Likewise.
437         * config/rs6000/6xx.md: Likewise.
438         * config/rs6000/7450.md: Likewise.
439         * config/rs6000/7xx.md: Likewise.
440         * config/rs6000/8540.md: Likewise.
441         * config/rs6000/cell.md: Likewise.
442         * config/rs6000/e300c2c3.md: Likewise.
443         * config/rs6000/e500mc.md: Likewise.
444         * config/rs6000/mpc.md: Likewise.
445         * config/rs6000/power4.md: Likewise.
446         * config/rs6000/power5.md: Likewise.
447         * config/rs6000/power6.md: Likewise.
448         * config/rs6000/power7.md: Likewise.
449         * config/rs6000/rios1.md: Likewise.
450         * config/rs6000/rios2.md: Likewise.
451         * config/rs6000/rs64.md: Likewise.
452
453 2009-10-10  Richard Guenther  <rguenther@suse.de>
454
455         PR tree-optimization/41654
456         * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
457         a cond expr before calling gimple_cond_set_condition_from_tree.
458         (ifcombine_iforif): Likewise.
459
460 2009-10-09  Ian Lance Taylor  <iant@google.com>
461
462         * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
463         * configure: Rebuild.
464
465 2009-10-09  Neil Vachharajani <nvachhar@google.com>
466
467         * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
468         deprecated.
469
470 2009-10-09  Richard Guenther  <rguenther@suse.de>
471
472         PR lto/41638
473         * target-def.h (TARGET_BUILTIN_DECL): Define.
474         (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
475         * target.h (struct gcc_target): Add builtin_decl target hook.
476         * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
477         * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
478         target builtins.
479         * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
480         not gcc_unreachable.
481         (lto_output_builtin_tree): Sorry if the target does not support
482         streaming target builtins.
483         * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
484         (rs6000_builtin_decl): New function.
485         * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
486         (ix86_builtin_decl): New function.
487
488 2009-10-09  Jakub Jelinek  <jakub@redhat.com>
489
490         PR preprocessor/41445
491         * c-ppoutput.c (do_line_change): New function.
492         (cb_line_change): Use it.
493         (scan_translation_unit): Call do_line_change if
494         avoid_paste or PREV_WHITE and token location is on a different line
495         than print.src_line.
496
497         PR debug/40521
498         * dwarf2out.c (dwarf2out_init): Test whether
499         HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
500         it is defined.
501
502         PR rtl-optimization/41646
503         * calls.c (expand_call): For BLKmode types returned in registers
504         avoid likely spilled hard regs in copy_blkmode_from_reg generated
505         insns.
506
507 2009-10-09  Richard Guenther  <rguenther@suse.de>
508
509         PR tree-optimization/41634
510         * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
511         we remove the correct elements.
512         (optimize_stmt): Make sure to update stmt operands before
513         optimizing redundancies.
514
515 2009-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
516
517         * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
518
519 2009-10-09  Richard Guenther  <rguenther@suse.de>
520
521         PR driver/41637
522         * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
523         globals.
524         (lto_wrapper_exit): New function.
525         (fatal): Use it.
526         (fatal_perror): Likewise.
527         (fork_execute): Use global args_name, do not free it.
528         (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
529         * lto-streamer.h: Remove duplicate prototypes.
530
531 2009-10-09  Richard Guenther  <rguenther@suse.de>
532
533         * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
534         before calling stmt_can_throw_external.
535
536 2009-10-09  Eric Botcazou  <ebotcazou@adacore.com>
537
538         PR tree-optimization/40071
539         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
540         pointer if the original data reference doesn't conflict with the
541         created vector data reference.  Fix long line.
542
543 2009-10-09  Uros Bizjak  <ubizjak@gmail.com>
544
545         * config/i386/i386.md (any_div): New code iterator.
546         (u): Handle div and udiv.
547         (sgnprefix): Ditto.
548         (<u>divqi3): Macroize insn from {,u}divqi3  using any_div
549         code iterator.
550         (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
551         lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
552         (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
553         lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
554
555 2009-10-08  Joseph Myers  <joseph@codesourcery.com>
556
557         * gcc.c (main): Remove trailing "." from diagnostics.
558
559 2009-10-08  Cary Coutant  <ccoutant@google.com>
560
561         Add support for debugging with ICF (Identical Code Folding).
562         * calls.c (debug.h): New #include.
563         (emit_call_1): Call virtual_call_token debug hook.
564         * common.opt (-fenable-icf-debug): New option.
565         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
566         locations in the source).
567         (poc_label_num): New variable.
568         (dcall_entry, vcall_entry): New typedefs.
569         (dcall_table, vcall_table): New variables.
570         (struct vcall_insn): New type.
571         (vcall_insn_table): New variable.
572         (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
573         (size_of_dcall_table): New function.
574         (output_dcall_table): New function.
575         (size_of_vcall_table): New function.
576         (output_vcall_table): New function.
577         (dwarf2out_direct_call): New function.
578         (vcall_insn_table_hash): New function.
579         (vcall_insn_table_eq): New function.
580         (dwarf2out_virtual_call_token): New function.
581         (dwarf2out_virtual_call): New function.
582         (dwarf2out_init): Allocate new tables and sections.
583         (prune_unused_types): Mark DIEs referenced from direct call table.
584         (dwarf2out_finish): Output direct and virtual call tables.
585         * final.c (final_scan_insn): Call direct_call and virtual_call
586         debug hooks.
587         * debug.h (struct gcc_debug_hooks): Add direct_call,
588         virtual_call_token, virtual_call hooks.
589         (debug_nothing_uid): New function.
590         * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
591         (debug_nothing_uid): New function.
592         * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
593         (xcoff_debug_hooks): Likewise.
594         * sdbout.c (sdb_debug_hooks): Likewise.
595         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
596         * doc/invoke.texi (-fenable-icf-debug): New option.
597
598 2009-10-08  Alexandre Oliva  <aoliva@redhat.com>
599
600         PR debug/41353
601         * regmove.c (regmove_backward_pass): Replace src with dst in the
602         debug insn, and check for dst before rather than after.
603
604 2009-10-08  Janis Johnson <janis187@us.ibm.com>
605
606         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
607         (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
608
609 2009-10-08  Jan Hubicka  <jh@suse.cz>
610
611         PR middle-end/41626
612         * cgraphbuild.c (record_reference): When parameter DATA is NULL,
613         do not mark cgraph nodes as needed.
614         (record_references_in_initializer): Add new only_vars parameter.
615         * cgraph.h (record_references_in_initializer): New parameter.
616         * varasm.c (assemble_variable): Update call.
617         * varpool.c (varpool_analyze_pending_decls): Always look for
618         referenced vars.
619
620 2009-10-08  Anatoly Sokolov  <aesok@post.ru>
621
622         * config/avr/avr.c (last_insn_address) Remove variable.
623         (expand_prologue): Don't initialise last_insn_address variable.
624         (final_prescan_insn): Don't output insn size.
625         * config/avr/avr.opt (msize): Remove switch.
626         * doc/invoke.texi (AVR Options): Remove documentation of -msize
627         switch.
628
629 2009-10-08  Adam Nemet  <anemet@caviumnetworks.com>
630
631         * combine.c (label_tick_ebb_start): Fix comment.
632         (combine_instructions): Set label_tick and label_tick_ebb_start before
633         calling setup_incoming_promotions.  Start them from 1.  Increment
634         label_tick instead of deriving it from the BB index.  Rather than
635         comparing ticks use the block from the previous iteration to decide
636         whether to start a new EBB.  Remove empty lines before function.
637
638 2009-10-08  Michael Matz  <matz@suse.de>
639
640         PR middle-end/41573
641         * builtins.c (fold_builtin_isascii): Use fold_build2.
642         (fold_builtin_isdigit): Ditto.
643         * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
644         * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
645         remove_useless_stmts_cond, remove_useless_stmts_tf,
646         remove_useless_stmts_tc, remove_useless_stmts_bind,
647         remove_useless_stmts_goto, remove_useless_stmts_label,
648         remove_useless_stmts_1, remove_useless_stmts,
649         pass_remove_useless_stmts): Remove.
650         * tree-pass.h (pass_remove_useless_stmts): Don't declare.
651         * passes.c (init_optimization_passes): Don't add
652         pass_remove_useless_stmts.
653         * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
654         * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
655         static constants.
656         * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
657         for static constants.
658         * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
659         * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
660
661 2009-10-08  Richard Guenther  <rguenther@suse.de>
662
663         * gimple.c (free_gimple_type_tables): New function.
664         * gimple.h (free_gimple_type_tables): Declare.
665
666 2009-10-07  Mark Heffernan  <meheff@google.com>
667
668         * ipa-prop.c (ipa_print_node_params) Only print
669         names of named arguments.
670
671 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
672
673         * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
674         being statically linked.
675
676 2009-10-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
677
678         * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
679
680 2009-10-08  Jan Hubicka  <jh@suse.cz>
681
682         PR bootstrap/41620
683         * ipa.c (cgraph_externally_visible_p,
684         function_and_variable_visibility,
685         whole_program_function_and_variable_visibility): Skip non-finalized
686         nodes.
687
688 2009-10-08  Nick Clifton  <nickc@redhat.com>
689
690         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
691         CONST_DOUBLEs.
692
693 2009-10-08  Andreas Tobler  <a.tobler@schweiz.org>
694
695         PR bootstrap/37739
696         * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
697
698 2009-10-07  Joseph Myers  <joseph@codesourcery.com>
699
700         PR c/41182
701         * c-common.c (c_fully_fold_internal): Strip nops from the result
702         of recursive calls to c_fully_fold_internal.
703         (c_wrap_maybe_const): New.
704         (c_save_expr): Use c_wrap_maybe_const.
705         * c-common.h (c_wrap_maybe_const): Declare.
706         * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
707         build_binary_op): Use c_wrap_maybe_const.
708
709 2009-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
710
711         * real.c: Fix comment to reflect actual exponent size.
712
713 2009-10-08  Ben Elliston  <bje@au.ibm.com>
714
715         * config/rs6000/a2.md: Add FSF comment header.
716
717 2009-10-07  Uros Bizjak  <ubizjak@gmail.com>
718
719         * config/i386/i386.md (any_extend): New code iterator.
720         (u, s): New code attributes.
721         (sgnprefix): Ditto.
722         (DWIH): Rewrite as code iterator for SI and DI modes.
723         (DWI): Rewrite as mode attribute.
724         (dwi): New mode attribute.
725         (di): Depend on SI mode and DI mode.
726         (doubleint_general_operand): Remove mode attribute.
727
728         (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
729         DWIH mode iterator.
730
731         (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
732         (*sub<mode>3_doubleword): Ditto.
733
734         (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
735         using SWIM248 mode iterator.
736         (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
737         using SWI48 mode iterator.
738         (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
739         patterns using DWIH mode iterator and any_extend code iterator.
740         (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
741         using any_extend code iterator.
742         (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
743         patterns using DWIH mode iterator and any_extend code iterator.
744         (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
745         using any_extend code iterator.
746         (<s>mul<mode>3_highpart): Macroize expander from
747         {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
748         and any_extend code iterator.
749         (*<s>muldi3_highpart_1): Macroize insn from
750         *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
751         (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
752         patterns using any_extend code iterator.
753         (*<s>mulsi3_highpart_zext): Macroize insn from
754         *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
755
756 2009-10-07  Jakub Jelinek  <jakub@redhat.com>
757
758         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
759         DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
760         refering to a DIE with DW_AT_const_value.
761
762 2009-10-07  Vladimir Makarov  <vmakarov@redhat.com>
763
764         PR middle-end/22072
765         * ira-lives.c (check_and_make_def_conflict): Process all operands.
766
767 2009-10-06  Jan Hubicka  <jh@suse.cz>
768
769         * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
770         correctly.
771
772 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
773
774         * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
775         *lea_2_rex64): Move before *add<mode>_1 pattern.
776
777 2009-10-07  Jan Hubicka  <jh@suse.cz>
778
779         * collect2.c (main): Add -fno-whole-program.
780         * gcc.c (set_collect_gcc_options): Do not remove whole program here.
781
782 2009-10-07  Jan Hubicka  <jh@suse.cz>
783
784         * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
785         has no address taken.
786         * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
787         never needed.
788         (cgraph_clone_node): Clear externally_visible flag for clones.
789         * cgraph.h (cgraph_only_called_directly_p,
790         cgraph_can_remove_if_no_direct_calls_p): New predicates.
791         * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
792         * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
793         (ipcp_initialize_node_lattices, ipcp_estimate_growth,
794         ipcp_insert_stage): Likwise.
795         * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
796         externally_visible flag.
797         (verify_cgraph_node): Verify that inline clones look right.
798         (process_function_and_variable_attributes): Do not set
799         externally_visible flags.
800         (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
801         been already run.
802         * lto-cgraph.c (lto_output_node): Assert that inline clones are not
803         boundaries.
804         * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
805         clear externally_visible when turning into inline clones
806         (cgraph_mark_inline_edge): Use new predicates.
807         (cgraph_estimate_growth): Likewise.
808         (cgraph_decide_inlining): Likewise.
809         * ipa.c (cgraph_postorder): Likewise.
810         (cgraph_remove_unreachable_nodes): Likewise; sanity check
811         that inline clones are not needed.
812         (cgraph_externally_visible_p): New predicate.
813         (function_and_variable_visibility): Add whole_program parameter;
814         always set externally_visible flag; handle COMDAT function
815         privatization.
816         (local_function_and_variable_visibility): New function.
817         (gate_whole_program_function_and_variable_visibility): New function.
818         (whole_program_function_and_variable_visibility): New function.
819         (pass_ipa_whole_program_visibility): New function.
820         * passes.c  (init_optimization_passes): Add whole program visibility
821         pass.
822         (do_per_function_toporder, function_called_by_processed_nodes_p): Do
823         not care about needed/reachable flags.
824         * varpool.c: Include flags.h
825         (decide_is_variable_needed): When doing LTO assume whole-program mode.
826         (varpool_finalize_decl): When we are in LTO read-back, all variables
827         are analyzed.
828         (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
829
830 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
831
832         * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
833         add MASK_HARD_DFP.
834
835 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
836
837         * config.gcc: Don't include the makefile fragments intended for
838         libgcc.
839         * config/s390/fixdfdi.h: File removed.
840         * config/s390/libgcc-glibc.ver: File removed.
841         * config/s390/s390.h: Remove the fixdfdi.h hack.
842         * config/s390/t-crtstuff: File moved to libgcc dir.
843         * config/s390/t-linux: Likewise.
844         * config/s390/t-tpf: libgcc specific parts removed.
845         * config/s390/t-linux64: Likewise.
846
847 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
848
849         * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
850         (lto-compress.o): Likewise.
851
852 2009-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
853
854         PR target/41512
855         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
856         dllexport to class members here.
857         (i386_pe_determine_dllimport_p): Only check static class data for
858         definition.
859         (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
860         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
861         functions for vague linkage.
862         (i386_pe_type_dllexport_p): Fix formatting.
863         (maybe_add_dllexport) New function.
864         (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
865         to class members.
866
867 2009-10-07  Ben Elliston  <bje@au.ibm.com>
868
869         * config/rs6000/a2.md: Remove duplicated lines.
870
871 2009-10-07  Ben Elliston  <bje@au.ibm.com>
872
873         * config.gcc (powerpc*-*-*): Handle a2.
874         * config/rs6000/rs6000.md (cpu): Add ppca2.  Include "a2.md".
875         * config/rs6000/a2.md: New file.
876         * config/rs6000/rs6000.opt (mno-update): New.
877         (mupdate): Return to using a mask, not a var.
878         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
879         (enum processor_type): Add PROCESSOR_PPCA2.
880         * config/rs6000/rs6000.c (ppca2_cost): New costs.
881         (rs6000_override_options): Add "a2" to processor_target_table.
882         Update rs6000_always_hint logic.  Correctly set rs6000_cost for a2.
883         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
884
885 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
886
887         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
888         Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
889         reference to nonexistent gen_truncxfxf2 function.
890
891 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
892
893         * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
894         (DWIH, g, di, doubleint_general_operand): New mode attributes.
895         (general_operand): Handle TI mode.
896         (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
897         using SDWIM mode iterator.
898         (*add<mode>3_doubleword): New insn_and_split pattern.  Macroize
899         pattern from *add{di,ti}3_1 patterns and corresponding splitters
900         using DWI mode iterator.
901         (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
902         patterns using SWI mode iterator.
903         (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
904         using SWI48 mode iterator.
905         (*add<mode>_1): Ditto from add{si,di}_1 patterns.
906         (*add<mode>_2): Ditto from add{si,di}_2 patterns.
907         (*add<mode>_3): Ditto from add{si,di}_3 patterns.
908         (*add<mode>_5): Ditto from add{si,di}_5 patterns.
909         (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
910         using SDWIM mode iterator.
911         (*sub<mode>3_doubleword): New insn_and_split pattern.  Macroize
912         pattern from *sub{di,ti}3_1 patterns and corresponding splitters
913         using DWI mode iterator.
914         (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
915         patterns using SWI mode iterator.
916         (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
917         (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
918         (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
919         (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
920         patterns using plusminus code iterator.
921         (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
922         sub<mode>3 patterns using plusminus code iterator.
923         * config/i386/i386.c (override_options): Update the call to
924         gen_subdi_carry_rex64 for renamed function.
925         (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
926         and gen_adddi3_carry_rex64 for renamed functions.  Use indirect
927         calls to instruction expanders.
928
929 2009-10-06  Martin Jambor  <mjambor@suse.cz>
930
931         PR bootstrap/41395
932         * opts.c (decode_options): Run IPA-SRA at -O2.
933
934 2009-10-06  Richard Guenther  <rguenther@suse.de>
935
936         * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
937
938 2009-10-06  Tobias Burnus  <burnus@net-b.de>
939
940         PR lto/41591
941         * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
942         -flto and -fwhole-program flags can be combined.
943
944 2009-10-06  Ryan Mansfield  <rmansfield@qnx.com>
945
946         PR driver/41217
947         * gcc.c (process_command): Check that -o argument was specified.
948
949 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
950
951         * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
952
953 2009-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
954
955         * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
956         * doc/invoke.texi (Warning Options): Annotate allowed languages
957         for -Wunsuffixed-float-constants.
958
959 2009-10-05  Jakub Jelinek  <jakub@redhat.com>
960
961         * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
962         DW_TAG_{const,volatile}_type if its DW_AT_type already has the
963         same name and isn't the main variant.
964
965         PR debug/41558
966         * dwarf2out.c (loc_by_reference): Removed.
967         (dw_loc_list_1): New function.
968         (dw_loc_list): Remove toplev argument, add want_address argument.
969         Don't look at decl_by_reference_p at all.  Use dw_loc_list_1.
970         (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
971         want_address == 2 to dw_loc_list.  For successful dw_loc_list
972         set have_address to 1 only if want_address is not 0.
973
974 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
975
976         * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
977         * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
978         a code block followed by two pointers.
979         (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
980         * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
981         (MIPS_MOVE): Likewise.
982         (MIPS_LUI): Likewise.
983         (MIPS_JR): Likewise.
984         (MIPS_BAL): Likewise.
985         (MIPS_NOP): Likewise.
986         (mips_asm_trampoline_template): Delete.
987         (mips_trampoline_code_size): New function.
988         (mips_trampoline_init): Add shorter sequences for all cases
989         except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
990         Calculate the opcodes directly, rather than copying from a template.
991         Only flush the code part of the trampoline.
992         (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
993
994 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
995
996         * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
997         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
998         (INCOMING_RETURN_ADDR_RTX): Likewise.
999         (FUNCTION_PROFILER): Likewise.  Replace GP_REG_FIRST + 1
1000         with AT_REGNUM.
1001         * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
1002         with RETURN_ADDR_REGNUM.
1003         (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
1004         * config/mips/mips.c (mips16_build_call_stub): Replace
1005         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
1006         with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
1007         (mips_print_operand_punctuation): Likewise.
1008         (mips_frame_set): Likewise.
1009         (mips16e_output_save_restore): Likewise.
1010         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
1011         (mips_save_reg_p): Likewise.
1012         (mips_return_addr): Likewise.
1013         (mips_set_return_address): Likewise.
1014         (mips_direct_save_slot_move_p): Likewise.
1015         (mips_output_function_prologue): Likewise.
1016         (mips_restore_reg): Likewise.
1017         (mips_expand_epilogue): Likewise.
1018         (mips_epilogue_uses): Likewise.
1019         * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
1020         (*mov<mode>_ra): Use it instead of a hard-coded 31.
1021         (clear_hazard_<mode>): Likewise.
1022         (call_internal): Likewise.
1023         (call_internal_direct): Likewise.
1024         (call_direct_split): Likewise.
1025         (call_value_internal): Likewise.
1026         (call_value_split): Likewise.
1027         (call_value_internal_direct): Likewise.
1028         (call_value_direct_split): Likewise.
1029         (call_value_multiple_internal): Likewise.
1030         (call_value_multiple_split): Likewise.
1031
1032 2009-10-05  Eric Botcazou  <ebotcazou@adacore.com>
1033             Jakub Jelinek  <jakub@redhat.com>
1034
1035         PR rtl-optimization/41511
1036         * combine.c (record_value_for_reg): Pass explicit values as argument
1037         to get_last_value_validate.
1038         (get_last_value_validate): Document INSN parameter.
1039         For non-readonly MEMs, assume they might have been modified if INSN
1040         was in another basic block.
1041         (get_last_value): Minor reformatting.
1042
1043 2009-10-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1044
1045         PR tree-opt/40992
1046         * final.c (asm_str_count): Split out from asm_insn_count.
1047         * rtl.h (asm_str_count): New prototype.
1048         * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
1049         asm_str_count.
1050
1051 2009-10-05  Sriraman Tallam  <tmsriram@google.com>
1052
1053         * doc/plugins.texi: Change plugin_pass to register_pass_info.
1054
1055 2009-10-05  Basile Starynkevitch  <basile@starynkevitch.net>
1056             Rafael Espindola  <espindola@google.com>
1057
1058         * gengtype.c (write_types): Moved call to write_func_for_structure
1059         into seperate loops.
1060
1061 2009-10-05  Richard Guenther  <rguenther@suse.de>
1062
1063         PR lto/41281
1064         * lto-cgraph.c (output_cgraph): Output toplevel asms.
1065         (input_cgraph_1): Input toplevel asms.
1066
1067 2009-10-05  Richard Guenther  <rguenther@suse.de>
1068
1069         PR lto/40902
1070         * lto-symtab.c (lto_compatible_attributes_p): Remove.
1071         (external_aggregate_decl_p): Likewise.
1072         (lto_symtab_compatible): Re-structure.  Remove dead code.
1073         For variables ignore toplevel qualifiers when comparing types.
1074         Issue warnings, not errors for mismatched user-alignment.
1075
1076 2009-10-05  Richard Guenther  <rguenther@suse.de>
1077
1078         PR lto/41552
1079         PR lto/41487
1080         * lto-symtab.c (struct lto_symtab_base_def): Remove.
1081         (struct lto_symtab_identifier_def): Likewise.
1082         (struct lto_symtab_decl_def): Likewise.
1083         (struct lto_symtab_entry_def): New.
1084         (lto_symtab_identifier_t): Rename to ...
1085         (lto_symtab_entry_t): ... this.
1086         (lto_symtab_decls): Remove.
1087         (lto_symtab_base_hash): Rename to ...
1088         (lto_symtab_entry_hash): ... this.
1089         (lto_symtab_base_eq): Rename to ...
1090         (lto_symtab_entry_eq): ... this.
1091         (lto_symtab_base_marked_p): Rename to ...
1092         (lto_symtab_entry_marked_p): ... this.
1093         (lto_symtab_identifier_marked_p): Remove.
1094         (lto_symtab_decl_marked_p): Likewise.
1095         (lto_symtab_maybe_init_hash_tables): Rename to ...
1096         (lto_symtab_maybe_init_hash_table): ... this.
1097         (lto_symtab_set_resolution_and_file_data): Remove.
1098         (lto_symtab_register_decl): New function.
1099         (lto_symtab_get_identifier): Remove.
1100         (lto_symtab_get): New function.
1101         (lto_symtab_get_resolution): Adjust.
1102         (lto_symtab_get_identifier_decl): Remove.
1103         (lto_symtab_set_identifier_decl): Likewise.
1104         (lto_symtab_merge_decl): Rename to ...
1105         (lto_symtab_merge): ... this.  Rewrite.
1106         (lto_symtab_merge_var): Remove.
1107         (lto_symtab_merge_fn): Likewise.
1108         (lto_symtab_prevailing_decl): Adjust.
1109         (lto_cgraph_replace_node): New function.
1110         (lto_symtab_merge_decls_2): Likewise.
1111         (lto_symtab_merge_decls_1): Likewise.
1112         (lto_symtab_fixup_var_decls): Likewise.
1113         (lto_symtab_resolve_symbols): Likewise.
1114         (lto_symtab_merge_decls): Likewise.
1115         (lto_symtab_prevailing_decl): Adjust.
1116         (lto_symtab_get_symtab_def): Remove.
1117         (lto_symtab_get_file_data): Likewise.
1118         (lto_symtab_clear_resolution): Adjust.
1119         (lto_symtab_clear_resolution): Likewise.
1120         * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
1121         (input_cgraph_1): Likewise.
1122         * lto-streamer-in.c (get_resolution): Do not provide fake
1123         symbol resolutions here.
1124         (deferred_global_decls): Remove.
1125         (lto_register_deferred_decls_in_symtab): Likewise.
1126         (lto_register_var_decl_in_symtab): Change signature, register
1127         variable via lto_symtab_register_decl.
1128         (lto_register_function_decl_in_symtab): Likewise.
1129         (lto_read_tree): Adjust.
1130         * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
1131         (lto_symtab_merge_var): Likewise.
1132         (lto_symtab_merge_fn): Likewise.
1133         (lto_symtab_register_decl): Declare.
1134         (lto_symtab_merge_decls): Likewise.
1135
1136 2009-10-05  Richard Guenther  <rguenther@suse.de>
1137
1138         PR tree-optimization/23821
1139         * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
1140         * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
1141         simple IV increments.
1142
1143 2009-10-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1144
1145         * config/arm/arm.c (arm_override_options): Really initialize
1146         flag_dwarf2_cfi_asm to 0.
1147
1148 2009-10-05  Doug Kwan  <dougkwan@google.com>
1149
1150         PR rtl-optimization/41574
1151         * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
1152         floating point and we are not doing unsafe math optimizations.
1153
1154 2009-10-03  Simon Baldwin  <simonb@google.com>
1155             Cary Coutant  <ccoutant@google.com>
1156             Rafael Espindola  <espindola@google.com>
1157             Richard Guenther  <rguenther@suse.de>
1158             Jan Hubicka  <jh@suse.cz>
1159             Doug Kwan <dougkwan@google.com>
1160             H.J. Lu  <hongjiu.lu@intel.com>
1161             Bill Maddox  <maddox@google.com>
1162             Ryan Mansfield  <rmansfield@qnx.com>
1163             Diego Novillo  <dnovillo@google.com>
1164             Ollie Wild  <aaw@google.com>
1165             Kenneth Zadeck <zadeck@naturalbridge.com>
1166
1167         * lto-cgraph.c: New file.
1168         * lto-compress.c: New file.
1169         * lto-compress.h: New file.
1170         * lto-opts.c: New file.
1171         * lto-section-in.c: New file.
1172         * lto-section-out.c: New file.
1173         * lto-streamer-in.c: New file.
1174         * lto-streamer-out.c: New file.
1175         * lto-streamer.c: New file.
1176         * lto-streamer.h: New file.
1177         * lto-symtab.c: New file.
1178         * lto-wpa-fixup.c: New file.
1179         * lto-wrapper.c: New file.
1180
1181 2009-10-03  Simon Baldwin  <baldwin@google.com>
1182             Ben Elliston  <bje@au.ibm.com>
1183             Rafael Espindola  <espindola@google.com>
1184             Nathan Froyd  <froydnj@codesourcery.com>
1185             Jan Hubicka  <jh@suse.cz>
1186             Doug Kwan  <dougkwan@google.com>
1187             Diego Novillo  <dnovillo@google.com>
1188             Kenneth Zadeck  <zadeck@naturalbridge.com>
1189
1190         * Makefile.in (enable_lto): New.
1191         (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
1192         (LINKER_PLUGIN_API_H): Define.
1193         (LTO_SYMTAB_H): Define.
1194         (LTO_STREAMER_H): Define.
1195         (TREE_VECTORIZER_H): Define.
1196         (INCLUDES): Add LIBELFINC.
1197         (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
1198         lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
1199         lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
1200         (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
1201         (native): Add lto-wrapper$(exeext)
1202         (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
1203         lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
1204         lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
1205         (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
1206         (varasm.o): Add dependency on tree-iterator.h.
1207         (cgraph.o): Add dependency on cif-code.def.
1208         (ipa-reference.o): Add dependency on LTO_STREAMER_H.
1209         (ipa-pure-const.o): Likewise.
1210         (GTFILES): Add lto-symtab.c.
1211         (install-lto-wrapper): New.
1212         * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
1213         and enable_lto.  If LIBELFLIBS is set, define HAVE_libelf.
1214         * config.in: Regenerate.
1215
1216 2009-10-03  Rafael Espindola  <espindola@google.com>
1217             Diego Novillo  <dnovillo@google.com>
1218
1219         * cgraphunit.c (ipa_passes): Prevent lto1 from calling
1220         ipa_write_summaries.
1221         Call execute_ipa_summary_passes for all_regular_ipa_passes and
1222         all_lto_gen_passes.
1223         (cgraph_optimize): Make extern.
1224
1225 2009-10-03  Nathan Froyd  <froydnj@codesourcery.com>
1226             Kenneth Zadeck <zadeck@naturalbridge.com>
1227
1228         * toplev.c (in_lto_p): Declare.
1229         * collect2.c (scan_prog_file): Read all the output when reading
1230         information for LTO.
1231         (enum lto_mode_d): Declare.
1232
1233 2009-10-03  Richard Guenther  <rguenther@suse.de>
1234             Diego Novillo  <dnovillo@google.com>
1235
1236         * gimple.c: Include target.h and alias.h.
1237         (gimple_types): Declare.
1238         (type_hash_cache): Declare.
1239         (gimple_alloc_stat): Make extern.
1240         (gimple_build_eh_must_not_throw): Call
1241         gimple_eh_must_not_throw_set_fndecl.
1242         (struct type_pair_d): Declare.
1243         (type_pair_t): Declare.
1244         (type_pair_hash): New.
1245         (type_pair_eq): New.
1246         (lookup_type_pair): New.
1247         (gimple_force_type_merge): New.
1248         (compare_type_names_p): New.
1249         (compare_field_offset): New.
1250         (gimple_types_compatible_p): New.
1251         (struct sccs): Declare.
1252         (next_dfs_num): Declare.
1253         (iterative_hash_gimple_type): New.
1254         (visit): New.
1255         (iterative_hash_type_name): New.
1256         (iterative_hash_gimple_type): New.
1257         (gimple_type_hash): New.
1258         (gimple_type_eq): New.
1259         (gimple_register_type): New.
1260         (print_gimple_types_stats): New.
1261         (gimple_signed_or_unsigned_type): New.
1262         (gimple_unsigned_type): New.
1263         (gimple_signed_type): New.
1264         (gimple_get_alias_set): New.
1265         (gimple_decl_printable_name): Do not use DMGL_TYPES.
1266         * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
1267         (gimple_force_type_merge): Declare.
1268         (gimple_types_compatible_p): Declare.
1269         (gimple_register_type): Declare.
1270         (print_gimple_types_stats): Declare.
1271         (gimple_unsigned_type): Declare.
1272         (gimple_signed_type): Declare.
1273         (gimple_get_alias_set): Declare.
1274         (gimple_eh_must_not_throw_set_fndecl): New.
1275
1276 2009-10-03  Jan Hubicka  <jh@suse.cz>
1277             Kenneth Zadeck <zadeck@naturalbridge.com>
1278
1279         * ipa-pure-const.c: Include lto-streamer.h.
1280         (register_hooks): Factor out of ...
1281         (generate_summary): ... here.
1282         (pure_const_write_summary): New.
1283         (pure_const_read_summary): New.
1284         (pass_ipa_pure_const): Add pure_const_write_summary and
1285         pure_const_read_summary.
1286         * ipa-reference.c: Include lto-streamer.h.
1287         (add_new_function): New.
1288         (remove_node_data): New.
1289         (duplicate_node_data): New.
1290         (ipa_init): Guard against multiple calls.
1291         Move hook setup from analyze_function.
1292         (write_node_summary_p): New.
1293         (ipa_reference_write_summary): New.
1294         (ipa_reference_read_summary): New.
1295         (pass_ipa_reference): Add ipa_reference_write_summary and
1296         ipa_reference_read_summary.
1297         * cgraph.h (cgraph_local_info): Add field lto_file_data.
1298         (struct cgraph_edge): Add fields lto_stmt_uid and
1299         call_stmt_cannot_inline_p.
1300         (cgraph_optimize): Declare.
1301         (cgraph_decide_is_function_needed): Declare.
1302         (reset_inline_failed): Declare.
1303         (enum LTO_cgraph_tags): Declare.
1304         (LTO_cgraph_tag_names): Declare.
1305         (LCC_NOT_FOUND): Define.
1306
1307 2009-10-03  Doug Kwan  <dougkwan@google.com>
1308             Rafael Espindola  <espindola@google.com>
1309             Jan Hubicka  <jh@suse.cz>
1310             Diego Novillo  <dnovillo@google.com>
1311             Kenneth Zadeck  <zadeck@naturalbridge.com>
1312
1313         * passes.c (all_regular_ipa_passes): New.
1314         (all_ipa_passes): Rename to all_small_ipa_passes.
1315         (init_optimization_passes): Init all_regular_ipa_passes.
1316         * tree-pass.h (all_regular_ipa_passes): New.
1317         (all_ipa_passes): Rename to all_small_ipa_passes.
1318         * passes.c (all_lto_gen_passes): New.
1319         (init_optimization_passes): Initialize all_lto_gen_passes.
1320         (execute_ipa_summary_passes): Make non-static.
1321         (ipa_write_summaries_1): New.
1322         (ipa_write_summaries_2): New.
1323         (ipa_write_summaries): New.
1324         (ipa_write_summaries_of_cgraph_node_set): New.
1325         (ipa_read_summaries_1): New.
1326         (ipa_read_summaries): New.
1327         (execute_ipa_pass_list): Call cgraph_process_new_functions.
1328         (execute_regular_ipa_pass_list): Remove.
1329         (init_optimization_passes): Schedule
1330         pass_rebuild_cgraph_edges and pass_early_inline outside
1331         of pass_all_early_optimizations.  Document reason.
1332         (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
1333         pass_ipa_lto_finish_out): New pass.
1334         (pass_ipa_summary_passes): Start and stop timers if the pass has them.
1335         (execute_all_ipa_transforms): New.
1336         (execute_one_pass): Don't call execute_one_ipa_transform_pass.
1337         (dump_properties, debug_properties): New.
1338         * tree-optimize.c (gate_all_early_local_passes): Return
1339         false if we are in lto1.
1340         (tree_rest_of_compilation): Call execute_all_ipa_transforms.
1341         * tree-pass.h (execute_all_ipa_transforms): Declare.
1342         (pass_ipa_function_and_variable_visibility): Declare.
1343         (pass_ipa_early_inline): Declare.
1344         (pass_ipa_lto_gimple_out): Declare.
1345         (pass_ipa_lto_wpa_fixup): Declare.
1346         (pass_ipa_lto_finish_out): Declare.
1347         (all_small_ipa_passes, all_regular_ipa_passes,
1348         all_lto_gen_passes): Declare.
1349         (execute_ipa_summary_passes): Declare.
1350         (execute_all_ipa_transforms): Declare.
1351         (ipa_write_summaries): Declare
1352         (ipa_write_summaries_of_cgraph_node_set): Declare.
1353         (ipa_read_summaries): Declare.
1354
1355 2009-10-03  Doug Kwan  <dougkwan@google.com>
1356             Ollie Wild  <aaw@google.com>
1357
1358         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
1359
1360         * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
1361         (lto_mode): New variable.
1362         (maybe_run_lto_and_relink): Handle the -fwpa option.
1363         (main): Handle the -fwpa option.
1364         (maybe_unlink_list): New function.
1365         * gcc.c (link_lto_options): Replace -flto with -fwpa.
1366         * common.opt (flto): New flag.
1367         * toplev.c (flag_generate_lto): Declare.
1368
1369 2009-10-03  Simon Baldwin  <simonb@google.com>
1370
1371         * common.opt (flto-compression-level): New flag.
1372
1373         * opts.c: Include lto-opts.h.
1374         (handle_option): Call lto_register_user_option for each
1375         valid option handled.
1376         (decode_options): Clear registered options before the options
1377         handling loop.
1378
1379 2009-10-03  Cary Coutant  <ccoutant@google.com>
1380
1381         * collect2.c (is_elf): New function.
1382         (scan_prog_file): Require LTO object to be in ELF format.
1383
1384 2009-10-03  Rafael Espindola  <espindola@google.com>
1385
1386         * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
1387         libgcc to the linker.
1388
1389         * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
1390
1391         * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
1392         (collect_execute): Add flags argument. Pass flags to pex_run. Update
1393         all callers.
1394         * collect2.h (collect_execute): Add flags argument.
1395         * tlink.c (tlink_execute): Update call to collect_execute.
1396         * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
1397         (use_linker_plugin): New.
1398         (use_linker_plugin_spec_function): New.
1399         (LINK_COMMAND_SPEC): Pass plugin options to the linker.
1400         (linker_plugin_file_spec): New.
1401         (lto_wrapper_spec): New.
1402         (lto_gcc_spec): New.
1403         (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
1404         (static_spec_functions): Add use-linker-plugin.
1405         (process_command): Handle -use-linker-plugin.
1406         (main): Use lto_wrapper_spec instead of lto_wrapper. Set
1407         linker_plugin_file_spec and lto_gcc_spec.
1408         (use_linker_plugin_spec_function): New.
1409
1410 2009-10-03  Richard Guenther  <rguenther@suse.de>
1411
1412         PR lto/41547
1413         PR lto/41548
1414         * tree.h (is_lang_specific): Include LANG_TYPE.
1415         * tree.c (find_decls_types_r): Manually add interesting parts
1416         of TYPE_FIELDS.  Walk BINFO_VIRTUALS.  Do not walk TYPE_METHODS.
1417
1418         * gimple.c (type_pair_hash): Make symmetric.
1419         (type_pair_eq): Likewise.
1420         (lookup_type_pair): Increase initial hashtable size.
1421         (gimple_force_type_merge): Rely on type-pair symmetry.
1422         (visit): Remove excessive checking code.
1423         (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
1424         (gimple_register_type): Remove getenv calls, shrink initial
1425         hashtable size.
1426
1427         PR middle-end/41502
1428         * cgraphunit.c (ipa_passes): Do not remove bodies of extern
1429         inline functions if not generating lto output.
1430
1431         PR lto/41379
1432         * toplev.c (finalize): In WPA mode remove the asm file.
1433
1434 2009-10-03  Doug Kwan  <dougkwan@google.com>
1435
1436         * ipa-inline.c (cgraph_mark_inline): Check
1437         edge->call_stmt_cannot_inline_p instead of calling
1438         gimple_call_cannot_inline_p.
1439         (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
1440         (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
1441         (inline_generate_summary): Do nothing in LTRANS.
1442         * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
1443         exists before calling gimple_call_cannot_inline_p.
1444         (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
1445         (cgraph_clone_edge): Add argument STMT_UID.  Modify all callers.
1446         Update new_edge->lto_stmt_uid.
1447         * cgraphbuild.c (reset_inline_failed): New.
1448
1449         * common.opt (fwpa): New flag.
1450         (fltrans): New option.
1451         * gcc.c (gcc_lto_option_t): New type.
1452         (current_lto_option): New variable.
1453         (lto_single_spec_function): Remove and is replaced by ..
1454         (lto_option_spec_function): New function.
1455         (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
1456         passing the -flto flag.
1457         (cc1_options): Separate non-LTO related parts into ..
1458         (cc1_non_lto_options): Non-LTO related options shared by all FEs.
1459         (lto1_options): New spec for lto FE.
1460         (link_lto_options): New spec for handling LTO flags in linker.
1461         (invoke_lto_single): Re-format to fit in 80 column.  Replace
1462         lto-single with lto-option.
1463         (static_specs): Add cc1_non_lto_options, lto1_options and
1464         link_lto_options.
1465         (static_spec_function): Replace lto-single with lto-option.
1466         (process_command): Handle -flto, -fwpa and -fltran by setting
1467         current_lto_option and not passing it to subprocess unconditionally.
1468
1469 2009-10-03  Bill Maddox  <maddox@google.com>
1470
1471         Add `gcc' driver support for link-time code generation (LTO).
1472
1473         * collect2.c (enum pass): Add new literal PASS_LTOINFO.
1474         (lto_flag, lto_objects, lto_o_file): New variables.
1475         (struct lto_object, struct lto_object_list): New structures.
1476         (collect_exit, handler): Remove LTO temporary output file on exit.
1477         (add_lto_object): New function.
1478         (maybe_run_lto_and_relink): New function. Perform link time code
1479         generation and relinking for object files containing LTO information.
1480         (main): Invoke maybe_run_lto_and_relink().
1481         (dump_argv): New function.  For debugging, currently disabled.
1482         (scan_prog_file): Add LTO information pass.
1483         * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
1484         collect2.
1485         * toplev.c (compile_file): Emit assembler directive to create
1486         the `gnu_lto_v1' marker symbol when compiling with `-flto'.
1487
1488 2009-10-03  Diego Novillo  <dnovillo@google.com>
1489
1490         * c.opt: Add LTO to warn_abi and warn_psabi.
1491
1492         * tree.c (fld_worklist_push): Rename from PUSH.  Convert to static
1493         inline function.  Ignore language-specific nodes.  Update all users.
1494         (find_decls_types_r): Do not traverse the subtrees of
1495         language-specific nodes.  Do not traverse DECL_INITIAL for TYPE_DECLs.
1496         * tree.h (is_lang_specific): New.
1497         * langhooks.h (struct lang_hooks_for_decls): Remove
1498         may_need_assembler_name_p.  Update all users.
1499
1500         * c-common.c (set_builtin_user_assembler_name): Move ...
1501         * builtins.c (set_builtin_user_assembler_name): ... here.
1502         (is_builtin_name): Add comment
1503         (is_builtin_fn): New.
1504         * except.c (output_ttype): Only call
1505         lookup_type_for_runtime if TYPE is not a runtime type.
1506
1507         * passes.c (register_pass): Call position_pass on
1508         all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
1509         * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
1510         (TV_IPA_LTO_DECL_IO): Define.
1511         (TV_IPA_LTO_CGRAPH_IO): Define.
1512         (TV_LTO): Define.
1513         (TV_WHOPR_WPA): Define.
1514         (TV_WHOPR_WPA_IO): Define.
1515         (TV_WHOPR_LTRANS): Define.
1516         (TV_WHOPR_WPA_FIXUP): Define.
1517         (TV_WHOPR_WPA_LTRANS_EXEC): Define.
1518         * tree-cfg.c (tree_node_can_be_shared): Make extern.
1519         * tree-flow.h (tree_node_can_be_shared): Declare.
1520         * tree-inline.c (tree_can_inline_p): Check that E has a
1521         statement associated with it.
1522         * tree.c (free_lang_data_in_binf): Factor out of ...
1523         (free_lang_data_in_type): ... here.
1524         Call RECORD_OR_UNION_TYPE_P.
1525         (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
1526         set.  Call lang_hooks.decls.may_need_assembler_name_p if set.
1527         (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
1528         (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE.  Set
1529         write_symbols to NO_DEBUG.  Set debug_hooks to do_nothing_debug_hooks.
1530         (gate_free_lang_data): Return true if flag_generate_lto is set.
1531         (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
1532         * c-common.h (set_builtin_user_assembler_name): Move ...
1533         * tree.h (set_builtin_user_assembler_name): ... here.
1534
1535         * common.opt (flto-report): New flag.
1536         * opts.c (complain_wrong_lang): Do not complain if running lto1.
1537         * collect2.c (scan_prog_file): Send the error output of
1538         'nm' to HOST_BIT_BUCKET.
1539
1540 2009-10-03  Ollie Wild  <aaw@google.com>
1541
1542         * langhooks-def.h (lhd_begin_section): New function declaration.
1543         (lhd_write_section): New function declaration.
1544         (lhd_end_section): New function declaration.
1545         (LANG_HOOKS_BEGIN_SECTION): New macro.
1546         (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
1547         (LANG_HOOKS_END_SECTION): New macro.
1548         (LANG_HOOKS_LTO): New macro.
1549         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
1550         * langhooks.c (output.h): Add include.
1551         (saved_section): New static variable.
1552         (lhd_begin_section): New function.
1553         (lhd_write_section_data): New function.
1554         (lhd_end_section): New function.
1555         * langhooks.h (struct lang_hooks_for_lto): New structure.
1556         (struct lang_hooks): Add member lto.
1557         * Makefile.in (langhooks.o): Add dependency on output.h.
1558
1559         * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
1560
1561 2009-10-03  Richard Guenther  <rguenther@suse.de>
1562
1563         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
1564         Handle LTO.
1565
1566 2009-10-03  Simon Baldwin  <simonb@google.com>
1567             Richard Guenther  <rguenther@suse.de>
1568             Janis Johnson  <janis187@us.ibm.com>
1569             Doug Kwan  <dougkwan@google.com>
1570             Diego Novillo  <dnovillo@google.com>
1571             Ramana Radhakrishnan  <ramana.r@gmail.com>
1572             Ollie Wild  <aaw@google.com>
1573
1574         * doc/install.texi: Add documentation for libelf and --enable-lto.
1575         * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
1576         -flto-report, -flto-compression-level and -use-linker-plugin.
1577         * doc/sourcebuild.texi: Document use of zlib.  Document lto-plugin.
1578         Add section for LTO Testing.
1579
1580 2009-10-02  Cary Coutant  <ccoutant@google.com>
1581
1582         Add support for comdat type sections for DWARF v4.
1583         Merge from dwarf4 branch.
1584
1585         * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
1586         (dw_die_ref): Define vector type.
1587         (enum dw_val_class): Add dw_val_class_data8.
1588         (struct dw_val_struct): Add v.val_data8.
1589         (comdat_type_node_ref): New type.
1590         (struct die_struct): Move die_symbol into a union; add new field
1591         die_type_node.  Change all uses.
1592         (comdat_type_node): New type.
1593         (skeleton_chain_node): New type.
1594         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
1595         (comdat_type_list): New variable.
1596         (dwarf_tag_name): Add DW_TAG_type_unit.
1597         (dwarf_attr_name): Add DW_AT_signature.
1598         (add_AT_data8): New function.
1599         (replace_child): New function.
1600         (move_all_children): New function.
1601         (print_signature): New function.
1602         (print_die): Print signature information; add dw_val_class_data8.
1603         (attr_checksum): Support dw_val_class_data8.
1604         (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
1605         (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
1606         (checksum_sleb128, checksum_uleb128): New functions.
1607         (checksum_die_context): New function.
1608         (loc_checksum_ordered): New function.
1609         (attr_checksum_ordered): New function.
1610         (struct checksum_attributes): New structure.
1611         (collect_checksum_attributes): New function.
1612         (die_checksum_ordered): New function.
1613         (generate_type_signature): New function.
1614         (same_dw_val_p): Add dw_val_class_data8.
1615         (is_symbol_die): Use new is_declaration_die function.
1616         (is_declaration_die): New function.
1617         (should_move_die_to_comdat): New function.
1618         (clone_die): New function.
1619         (clone_tree): New function.
1620         (clone_as_declaration): New function.
1621         (copy_declaration_context): New function.
1622         (generate_skeleton_ancestor_tree): New function.
1623         (generate_skeleton_bottom_up): New function.
1624         (generate_skeleton): New function.
1625         (remove_child_or_replace_with_skeleton): New function.
1626         (break_out_comdat_types): New function.
1627         (struct decl_table_entry): New type.
1628         (htab_decl_hash): New function.
1629         (htab_decl_eq): New function.
1630         (htab_decl_del): New function.
1631         (copy_ancestor_tree): New function.
1632         (copy_decls_walk): New function.
1633         (copy_decls_for_unworthy_types): New function.
1634         (build_abbrev_table): Don't assert on missing die_symbol when doing
1635         comdat type sections.
1636         (size_of_die): Use DW_FORM_sig8 for external references.  Add
1637         dw_val_class_data8.
1638         (unmark_dies): Don't assert for unmarked dies when doing comdat
1639         type sections.
1640         (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
1641         (output_signature): New function.
1642         (output_die): Likewise.
1643         (output_compilation_unit_header): Mark output as DWARF version 3
1644         even if generating DWARF 4.
1645         (output_comdat_type_unit): New function.
1646         (output_line_info): Mark output as DWARF version 3 even if generating
1647         DWARF 4.
1648         (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
1649         DWARF-4.
1650         (dwarf2out_end_source_file): Likewise.
1651         (prune_unused_types_walk_attribs): Don't follow references into
1652         comdat type sections.
1653         (prune_unused_types_mark): When generating type units, do not mark
1654         children of non-defining declarations of types; do mark children of
1655         type entries.
1656         (prune_unused_types): Process comdat type sections.
1657         (htab_ct_hash): New function.
1658         (htab_ct_eq): New function.
1659         (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
1660         Add a pointer to the line table from type unit entries so
1661         DW_AT_decl_file has meaning.
1662         * varasm.c (default_elf_asm_named_section): Use identifier name as
1663         comdat key instead of lang hook.
1664
1665 2009-10-02  Neil Vachharajani  <nvachhar@google.com>
1666
1667         * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
1668
1669 2009-10-02  Uros Bizjak  <ubizjak@gmail.com>
1670
1671         * config/i386/i386.md (SWIM248): New mode iterator.
1672         (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
1673         divmodhi4 patterns using SWIM248 macro.
1674         (*divmod<mode>4): Macroize insn_and_split pattern from
1675         *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
1676         and their corresponding splitters usign SWIM248 macro.  Split SImode
1677         insn to generate cltd and DImode insn to generate cqto instead of
1678         move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
1679         (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
1680         (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
1681         *divmodsi_noext patterns using SWIM248 macro.
1682         (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
1683         udivmodhi4 patterns using SWIM248 macro.
1684         (*udivmod<mode>4): Macroize insn_and_split pattern from
1685         *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
1686         corresponding splitters using SWIM248 macro.
1687         (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
1688         *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
1689
1690 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
1691
1692         * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
1693         of zero-sized element is zero-sized regardless of its extent.
1694
1695 2009-10-02  Jakub Jelinek  <jakub@redhat.com>
1696
1697         PR debug/40521
1698         * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
1699         * configure: Regenerated.
1700         * config.in: Regenerated.
1701         * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
1702         !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
1703         (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
1704         not emitting .eh_frame, emit .cfi_sections .debug_frame
1705         directive.
1706
1707         PR debug/41404
1708         PR debug/41353
1709         * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
1710         CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
1711         with '\0'.
1712         (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
1713         vars use DECL_RTL with resetting it back to NULL afterwards.
1714         * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
1715         rtx_equal_p instead of asserting it is a SYMBOL_REF.
1716         (value_format): For dw_val_class_addr only use DW_FORM_addr if
1717         the attribute type allows it, otherwise use DW_FORM_dataN.
1718         (mem_loc_descriptor): Handle CONST_STRING.
1719         (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
1720         Handle MEM with CONST_STRING address using add_AT_string.
1721         (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
1722         CONST_STRING for const arrays initialized with a string literal.
1723         (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
1724         (dwarf2out_finish): Call resolve_addr.
1725
1726 2009-10-02  Andreas Schwab  <schwab@linux-m68k.org>
1727             Maxim Kuvyrkov  <maxim@codesourcery.com>
1728
1729         * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
1730
1731 2009-10-02  Nick Clifton  <nickc@redhat.com>
1732
1733         * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
1734         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
1735
1736 2009-10-01  Jan Hubicka  <jh@suse.cz>
1737
1738         * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
1739         (cgraph_create_virtual_clone): Just pass redirect_callers
1740         around.
1741         * cgraph.h (cgraph_clone_node): Update prototype.
1742         * ipa-pure-const.c (self_recursive_p): New function.
1743         (propagate): Use it.
1744         * ipa-inline.c (cgraph_clone_inlined_nodes,
1745         cgraph_decide_recursive_inlining): Update.
1746
1747 2009-10-01  David Daney  <ddaney@caviumnetworks.com>
1748
1749         * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
1750         instructions for TARGET_OCTEON.
1751
1752 2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1753
1754         * config/arm/arm.c (arm_override_options): Turn off
1755         flag_dwarf2_cfi_asm for AAPCS variants.
1756
1757 2009-10-01  Martin Jambor  <mjambor@suse.cz>
1758
1759         PR middle-end/12392
1760         * tree-sra.c (convert_callers): Do not call
1761         compute_inline_parameters on one caller more than once.
1762
1763 2009-10-01  Nick Clifton  <nickc@redhat.com>
1764
1765         * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
1766         an empty string if not already defined.
1767
1768 2009-10-01  Martin Jambor  <mjambor@suse.cz>
1769
1770         PR bootstrap/41395
1771         * tree-sra.c (is_va_list_type): New function.
1772         (find_var_candidates): Call is_va_list_type.
1773         (find_param_candidates): Check that the type or the type pointed
1774         to are not va_list types.
1775
1776 2009-10-01  Martin Jambor  <mjambor@suse.cz>
1777
1778         PR c++/41503
1779         * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
1780         DECL_ARTIFICIAL (param_decl) is true.
1781
1782 2009-09-30  Gabriel Dos Reis  <gdr@cs.tamu.edu>
1783
1784         * tree.h (tree_decl_common::lang_flag_8): New.
1785         * c-common.c (c_common_reswords): Include "constexpr" as C++0x
1786         keyword.
1787         * c-common.h (RID_CONSTEXPR): New.
1788
1789 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
1790
1791         * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
1792         Use ref-all pointers.
1793         (alpha_gimplify_va_arg): Ditto.
1794
1795 2009-09-30  Jakub Jelinek  <jakub@redhat.com>
1796
1797         PR target/41279
1798         * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
1799         before insn counting loop now that BB_END (bb) is counted.  Ensure
1800         the return value isn't zero.
1801
1802 2009-09-30  Nick Clifton  <nickc@redhat.com>
1803
1804         * config.gcc (sh-symbianelf): Replace definition of extra_objs
1805         with separate definitions of c_target_objs and cxx_target_objs.
1806         * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
1807         and symbian-base.o.
1808         * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
1809         sh_symbian_import_export_class.
1810         * config/sh/sh-protos.h: Fix names of exported symbian functions.
1811         * config/sh/symbian.c: Delete, moving code into...
1812         * config/sh/symbian-base.c: ... here
1813         * config/sh/symbian-c.c: ... and here
1814         * config/sh/symbian-cxx.c: ... and here.
1815
1816 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
1817
1818         PR target/22093
1819         * config/alpha/alpha.md (unaligned_storehi_be): Force operand
1820         of plus RTX into register.
1821
1822 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1823
1824         * doc/install.texi: Linguistic and markup fixes.
1825         (Configuration) <--disable-cpp>: Remove description.
1826         <--enable-maintainer-mode>: Autotools files are affected, too.
1827         <--with-sysroot>: Improve description.
1828         (Building): Bump required GNU make version.
1829
1830 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
1831
1832         * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
1833         (x86_64-*-*): Ditto.
1834
1835         * config/i386/fma4intrin.h: New file, provide common x86 compiler
1836         intrinisics for FMA4.
1837         * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
1838         * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
1839         Add FMA4 check and fma4intrin.h.
1840         * config/i386/i386-c.c(ix86_target_macros_internal): Check
1841         ISA_FLAG for FMA4.
1842         * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
1843         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
1844         constant for FMA4 support.
1845         (UNSPEC_FMA4_FMADDSUB): Ditto.
1846         (UNSPEC_FMA4_FMSUBADD): Ditto.
1847         * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
1848         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
1849         (ix86_expand_fma4_multiple_memory): Ditto.
1850         * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
1851         (OPTION_MASK_ISA_FMA4_UNSET): New.
1852         (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
1853         (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
1854         (ix86_handle_option): Handle -mfma4.
1855         (isa_opts): Handle -mfma4.
1856         (enum pta_flags): Add PTA_FMA4.
1857         (override_options): Add FMA4 support.
1858         (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
1859         (IX86_BUILTIN_VFMADDSD): Ditto.
1860         (IX86_BUILTIN_VFMADDPS): Ditto.
1861         (IX86_BUILTIN_VFMADDPD): Ditto.
1862         (IX86_BUILTIN_VFMSUBSS): Ditto.
1863         (IX86_BUILTIN_VFMSUBSD): Ditto.
1864         (IX86_BUILTIN_VFMSUBPS): Ditto.
1865         (IX86_BUILTIN_VFMSUBPD): Ditto.
1866         (IX86_BUILTIN_VFMADDSUBPS): Ditto.
1867         (IX86_BUILTIN_VFMADDSUBPD): Ditto.
1868         (IX86_BUILTIN_VFMSUBADDPS): Ditto.
1869         (IX86_BUILTIN_VFMSUBADDPD): Ditto.
1870         (IX86_BUILTIN_VFNMADDSS): Ditto.
1871         (IX86_BUILTIN_VFNMADDSD): Ditto.
1872         (IX86_BUILTIN_VFNMADDPS): Ditto.
1873         (IX86_BUILTIN_VFNMADDPD): Ditto.
1874         (IX86_BUILTIN_VFNMSUBSS): Ditto.
1875         (IX86_BUILTIN_VFNMSUBSD): Ditto.
1876         (IX86_BUILTIN_VFNMSUBPS): Ditto.
1877         (IX86_BUILTIN_VFNMSUBPD): Ditto.
1878         (IX86_BUILTIN_VFMADDPS256): Ditto.
1879         (IX86_BUILTIN_VFMADDPD256): Ditto.
1880         (IX86_BUILTIN_VFMSUBPS256): Ditto.
1881         (IX86_BUILTIN_VFMSUBPD256): Ditto.
1882         (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
1883         (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
1884         (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
1885         (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
1886         (IX86_BUILTIN_VFNMADDPS256): Ditto.
1887         (IX86_BUILTIN_VFNMADDPD256): Ditto.
1888         (IX86_BUILTIN_VFNMSUBPS256): Ditto.
1889         (IX86_BUILTIN_VFNMSUBPD256): Ditto.
1890         (enum multi_arg_type): New enum for describing the various FMA4
1891         intrinsic argument types.
1892         (bdesc_multi_arg): New table for FMA4 intrinsics.
1893         (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
1894         (ix86_expand_multi_arg_builtin): New function for creating FMA4
1895         intrinsics.
1896         (ix86_expand_builtin): Add FMA4 intrinsic support.
1897         (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
1898         operand instructions.
1899         (ix86_expand_fma4_multiple_memory): New function to split the
1900         second memory reference from FMA4 instructions.
1901         * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
1902         (ssemodesuffixf2s): Ditto.
1903         (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
1904         instructions.
1905         (fma4_fmsub<mode>4): Ditto.
1906         (fma4_fnmadd<mode>4): Ditto.
1907         (fma4_fnmsub<mode>4): Ditto.
1908         (fma4_vmfmadd<mode>4): Ditto.
1909         (fma4_vmfmsub<mode>4): Ditto.
1910         (fma4_vmfnmadd<mode>4): Ditto.
1911         (fma4_vmfnmsub<mode>4): Ditto.
1912         (fma4_fmadd<mode>4256): Ditto.
1913         (fma4_fmsub<mode>4256): Ditto.
1914         (fma4_fnmadd<mode>4256): Ditto.
1915         (fma4_fnmsub<mode>4256): Ditto.
1916         (fma4_fmaddsubv8sf4): Ditto.
1917         (fma4_fmaddsubv4sf4): Ditto.
1918         (fma4_fmaddsubv4df4): Ditto.
1919         (fma4_fmaddsubv2df4): Ditto.
1920         (fma4_fmsubaddv8sf4): Ditto.
1921         (fma4_fmsubaddv4sf4): Ditto.
1922         (fma4_fmsubaddv4df4): Ditto.
1923         (fma4_fmsubaddv2df4): Ditto.
1924         (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
1925         instructions for intrinsics.
1926         (fma4i_fmsub<mode>4): Ditto.
1927         (fma4i_fnmadd<mode>4): Ditto.
1928         (fma4i_fnmsub<mode>4): Ditto.
1929         (fma4i_vmfmadd<mode>4): Ditto.
1930         (fma4i_vmfmsub<mode>4): Ditto.
1931         (fma4i_vmfnmadd<mode>4): Ditto.
1932         (fma4i_vmfnmsub<mode>4): Ditto.
1933         (fma4i_fmadd<mode>4256): Ditto.
1934         (fma4i_fmsub<mode>4256): Ditto.
1935         (fma4i_fnmadd<mode>4256): Ditto.
1936         (fma4i_fnmsub<mode>4256): Ditto.
1937         (fma4i_fmaddsubv8sf4): Ditto.
1938         (fma4i_fmaddsubv4sf4): Ditto.
1939         (fma4i_fmaddsubv4df4): Ditto.
1940         (fma4i_fmaddsubv2df4): Ditto.
1941         (fma4i_fmsubaddv8sf4): Ditto.
1942         (fma4i_fmsubaddv4sf4): Ditto.
1943         (fma4i_fmsubaddv4df4): Ditto.
1944         (fma4i_fmsubaddv2df4): Ditto.
1945
1946         * doc/invoke.texi (-mfma4): Add documentation.
1947         * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
1948
1949 2009-09-29  Richard Henderson  <rth@redhat.com>
1950
1951         * tree-eh.c (unsplit_eh): Do not unsplit if there's already
1952         an edge to the new destination block.
1953
1954 2009-09-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1955
1956         PR target/41393
1957         * pa.c (hppa_profile_hook): Use
1958         make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
1959
1960 2009-09-29  Steve Ellcey  <sje@cup.hp.com>
1961             Alexander Monakov  <amonakov@ispras.ru>
1962
1963         PR target/41365
1964         * config/ia64/predicates.md (not_postinc_destination_operand): New.
1965         (not_postinc_memory_operand): New.
1966         (not_postinc_move_operand): New.
1967         * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
1968         (*cmovsi_internal): Ditto.
1969
1970 2009-09-29  Pat Haugen  <pthaugen@us.ibm.com>
1971
1972         * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
1973         restrict issue_rate in first pass when scheduling for register
1974         pressure.
1975
1976 2009-09-29  Basile Starynkevitch  <basile@starynkevitch.net>
1977             Rafael Avila de Espindola  <espindola@google.com>
1978
1979         * gengtype.c (plugin_output): New.
1980         (get_output_file_with_visibility): Return plugin_output for plugins.
1981         (main): Parse and use the -P option.
1982         * gty.texi: Update the command line format.
1983
1984 2009-09-29  Jakub Jelinek  <jakub@redhat.com>
1985
1986         PR debug/41438
1987         * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
1988         functions.
1989         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
1990         out if !const_ok_for_output.
1991
1992         PR debug/41474
1993         * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
1994         case VAR_LOCATION>: Remove gcc_unreachable ().
1995
1996 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
1997
1998         * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
1999         (x86_64-*-*): Ditto.
2000         * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
2001         back to smmintrin.h.
2002         * config/i386/cpuid.h: (bit_SSE5): Remove SSE5 bit.
2003         * config/i386/x86intrin.h: Remove SSE5.
2004         * config/i386/mmintrin-common.h: Delete file.
2005         * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
2006
2007 2009-09-29  Richard Guenther  <rguenther@suse.de>
2008
2009         * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
2010         resulting from stack temporaries on STRICT_ALIGNMENT targets.
2011
2012 2009-09-29  Nick Clifton  <nickc@redhat.com>
2013
2014         * function.c (current_function_name): If there is no current
2015         function just return "<none>".
2016
2017 2009-09-28  Sriraman Tallam  <tmsriram@google.com>
2018
2019         * tree-pass.h (register_pass_info): New structure.
2020         (pass_positioning_ops): Move enum from gcc-plugin.h.
2021         (register_pass): New function.
2022         * gcc-plugin.h (plugin_pass): Delete structure.
2023         (pass_positioning_ops): Delete enum.
2024         * plugin.c (regsiter_pass): Delete function.
2025         (position_pass): Delete function.
2026         (added_pass_nodes): Delete variable.
2027         (prev_added_pass_nodes): Delete variable.
2028         (pass_list_node): Delete structure.
2029         * passes.c (make_pass_instance): New function.
2030         (next_pass_1): Change to call make_pass_instance.
2031         (pass_list_node): Move structure from gcc-plugin.h.
2032         (added_pass_nodes): Move variable from plugin.c.
2033         (prev_added_pass_nodes): Move variable from plugin.c.
2034         (position_pass): New function.
2035         (register_pass): New function.
2036
2037 2009-09-28  Easwaran Raman  <eraman@google.com>
2038
2039         * ifcvt.c (noce_try_abs): Recognize pattern and call
2040         expand_one_cmpl_abs_nojump.
2041         * optabs.c (expand_one_cmpl_abs_nojump): New function.
2042         * optabs.h (expand_one_cmpl_abs_nojump): Declare.
2043
2044 2009-09-28  Ian Lance Taylor  <iant@google.com>
2045
2046         PR middle-end/40500
2047         * c-opts.c (c_common_handle_option): Don't set
2048         warn_jump_misses_init for -Wall.
2049         * doc/invoke.texi (Warning Options): Update documentation.
2050
2051 2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2052
2053         * Makefile.in ($(out_object_file)): Depend on
2054         gt-$(basename $(notdir $(out_file))).h.
2055
2056 2009-09-28  Richard Henderson  <rth@redhat.com>
2057
2058         * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
2059         * except.c (gen_eh_region): Set it.
2060         (duplicate_eh_regions_1): Copy it.
2061         * tree-eh.c (lower_resx): Use it to determine which function
2062         to call to resume.
2063
2064         * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
2065         * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
2066         * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
2067         * tree.c (build_common_builtin_nodes): Remove parameter.  Build
2068         BUILT_IN_CXA_END_CLEANUP if necessary.
2069
2070         * c-common.c (c_define_builtins): Update call to
2071         build_common_builtin_nodes.
2072
2073 2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2074
2075         * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
2076
2077 2009-09-28  Michael Matz  <matz@suse.de>
2078
2079         * builtins.c (interclass_mathfn_icode): New helper.
2080         (expand_builtin_interclass_mathfn): Use it here, and split folding
2081         into ...
2082         (fold_builtin_interclass_mathfn): ... this new folder.
2083         (build_call_nofold_loc): New static helper.
2084         (build_call_nofold): New wrapper macro for above.
2085         (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
2086         (expand_builtin_pow): Ditto.
2087         (expand_builtin_memset_args): Ditto.
2088         (expand_builtin_printf): Ditto.
2089         (expand_builtin_fprintf): Ditto.
2090         (expand_builtin_sprintf): Ditto.
2091         (expand_builtin_memory_chk): Ditto.
2092         (expand_builtin_mempcpy_args): Ditto and don't call folders.
2093         (expand_builtin_stpcpy): Ditto.
2094         (expand_builtin_strcmp): Ditto.
2095         (expand_builtin_strncmp): Ditto.
2096         (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
2097         (expand_builtin_strcpy_args): Don't call folders.
2098         (expand_builtin_memcmp): Ditto.
2099         (expand_builtin_strncpy): Ditto, and use target.
2100         (expand_builtin_memcpy): Ditto.
2101         (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
2102         expand_builtin_strpbrk, expand_builtin_memmove,
2103         expand_builtin_memmove_args, expand_builtin_bcopy,
2104         expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
2105         expand_builtin_strspn, expand_builtin_strcspn,
2106         expand_builtin_fputs): Remove these.
2107         (expand_builtin): Don't call the above, change calls to other
2108         expanders that changed prototype.
2109         (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
2110         (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
2111         fold_builtin_interclass_mathfn.
2112         (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
2113         (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
2114
2115         * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
2116         * passes.c (init_optimization_passes): Move pass_fold_builtins
2117         after last phiopt pass.
2118         * tree-inline.c (fold_marked_statements): When folding builtins
2119         iterate over all instruction potentially generated.
2120         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
2121         earlier.
2122         (fold_gimple_call): Use it to always fold calls (into potentially
2123         multiple instructions).
2124         * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
2125         calls into zero at this time.
2126         * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
2127         statements generated by builtin folding.
2128
2129 2009-09-28  Nick Clifton  <nickc@redhat.com>
2130
2131         * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
2132
2133 2009-09-28  Duncan Sands  <baldrick@free.fr>
2134
2135         * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
2136         * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
2137         (register_callback): Dispatch it.
2138         (invoke_plugin_callbacks): Incorporate in sanity check.
2139         * ggc.h (ggc_register_cache_tab): Add declaration.
2140         * ggc-common.c (ggc_register_root_tab): Simplify.
2141         (const_ggc_cache_tab_t): New typedef.
2142         (extra_cache_vec): New vector of dynamically added cache tables.
2143         (ggc_register_cache_tab): New function.
2144         (ggc_scan_cache_tab): New function.
2145         (ggc_mark_roots): Simplify dynamic roots.  Handle dynamic caches.
2146         * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
2147
2148 2009-09-27  Richard Henderson  <rth@redhat.com>
2149
2150         * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
2151         which we remove __builtin_stack_restore.
2152
2153 2009-09-27  Bernd Schmidt  <bernd.schmidt@analog.com>
2154
2155         * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
2156         to test for GRD_INVARIANT.
2157         (simple_rhs_p): Anything that's function_invariant_p is fine.
2158
2159 2009-09-27  Rafael Avila de Espindola  <espindola@google.com>
2160
2161         * gengtype.c (main): Use plunge_files instead of plugin_output.
2162
2163 2009-09-27  Basile Starynkevitch  <basile@starynkevitch.net>
2164             Rafael Avila de Espindola  <espindola@google.com>
2165
2166         * gengtype.c (write_root, write_roots): Add a emit_pch argument.
2167         Don't print pch related info if it is false.
2168         (main): Don't print pch info in plugin mode.
2169
2170 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
2171
2172         * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
2173         with dw_val_class_const_double.
2174         (struct dw_val_struct): Replace val_long_long with val_double and
2175         adjust for above change.
2176         (output_loc_operands): Likewise.
2177         (add_AT_long_long): Rename into...
2178         (add_AT_double): ...this.
2179         (print_die): Replace dw_val_class_long_long with
2180         dw_val_class_const_double and adjust.
2181         (attr_checksum): Likewise.
2182         (same_dw_val_p): Likewise.
2183         (size_of_die): Likewise.
2184         (value_format): Likewise.
2185         (output_die): Likewise.
2186         (loc_descriptor) <CONST_DOUBLE>: Likewise.
2187         (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
2188         instead of add_AT_long_long.
2189         (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
2190         value with the precision of its type.
2191
2192 2009-09-27  Andreas Schwab  <schwab@linux-m68k.org>
2193
2194         PR c/41476
2195         * c-typeck.c (build_conditional_expr): Use the readonly and
2196         volatile flags of the operand types, not of the operands itself.
2197
2198 2009-09-27  Peter O'Gorman  <pogma@thewrittenword.com>
2199
2200         * collect2.c (main): Look for -brtl before adding libraries.
2201
2202 2009-09-27  Jonathan Gray  <jsg@openbsd.org>
2203
2204         * config.gcc: Update OpenBSD targets.
2205         * config/openbsd-stdint.h: New file.
2206         * config/openbsd-libpthread.h: New file.
2207         * config/openbsd.h: Update and break out LIB_SPEC definition.
2208         * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
2209         * config/i386/openbsdelf.h: Correct types.
2210         * config/m68k/openbsd.h: Likewise.
2211         * config/mips/openbsd.h: Likewise.
2212         * config/vax/openbsd.h: Likewise.
2213
2214 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
2215
2216         * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
2217         (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
2218         * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
2219         of the length and zero.
2220
2221 2009-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2222
2223         * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
2224         (FLAGS_H): Add options.h $(REAL_H).
2225         (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
2226         (TREE_VECTORIZER_H): New.
2227         (EBITMAP_H): Renamed from EBIMAP_H.
2228         (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
2229         (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
2230         (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
2231         (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
2232         (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
2233         (graphite-clast-to-gimple.o, graphite-dependences.o)
2234         (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
2235         (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
2236         (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
2237         (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
2238         (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
2239         (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
2240         (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
2241         (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
2242         (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
2243         updated and fixed as per above changes and per
2244         check_makefile_deps.sh output.
2245
2246         PR bootstrap/40928
2247         * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
2248         * configure: Regenerate.
2249
2250 2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2251
2252         * doc/install.texi: Update minimum MPC version to 0.7.
2253
2254 2009-09-26  Gerald Pfeifer  <gerald@pfeifer.com>
2255
2256         * doc/install.texi (Binaries): Remove reference to the binary
2257         distribution CD-ROM from the FSF.
2258
2259 2009-09-26  Michael Matz  <matz@suse.de>
2260
2261         PR lto/40758
2262         PR middle-end/41470
2263         * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
2264         that are mentioned in the body.
2265
2266 2009-09-26  Michael Matz  <matz@suse.de>
2267
2268         PR tree-optimization/41454
2269         * tree-ssa-dom (stmts_to_rescan): Remove variable.
2270         (tree_ssa_dominator_optimize): Don't allocate and free it.
2271         (dom_opt_leave_block): Don't iterate over it.
2272         (eliminate_redundant_computations): Don't return a value.
2273         (cprop_operand, cprop_into_stmt): Ditto.
2274         (optimize_stmt): Don't defer updating stmts.
2275
2276 2009-09-25  Dodji Seketeli  <dodji@redhat.com>
2277
2278         * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
2279         generic_parameter_die, template_parameter_pack_die,
2280         gen_formal_parameter_die, gen_subprogram_die): Adjust after
2281         renaming DW_TAG_formal_parameter_pack and
2282         DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
2283         and DW_TAG_GNU_template_parameter_pack.
2284
2285 2009-09-25  Anatoly Sokolov  <aesok@post.ru>
2286
2287         * config/v850/v850.h (FUNCTION_VALUE): Remove.
2288         * config/v850/v850.c (v850_function_value): New function.
2289         (TARGET_FUNCTION_VALUE): Define.
2290
2291 2009-09-25  Jakub Jelinek  <jakub@redhat.com>
2292
2293         * tree-vect-stmts.c (vectorizable_call): Call
2294         mark_symbols_for_renaming after vect_finish_stmt_generation.
2295
2296         * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
2297         to loc_descriptor_from_tree.
2298         (add_location_or_const_value_attribute): Pass 0 instead of 2
2299         for decl_by_reference_p decls.
2300
2301 2009-09-25  Richard Guenther  <rguenther@suse.de>
2302
2303         PR middle-end/41463
2304         * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
2305         arrays again.
2306
2307 2009-09-25  Ben Elliston  <bje@au.ibm.com>
2308
2309         * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
2310         after `power7'.
2311
2312 2009-09-25  Alan Modra  <amodra@bigpond.net.au>
2313
2314         * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
2315         form of instruction.
2316
2317 2009-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2318
2319         PR middle-end/41435
2320         * fold-const.c (const_binop): Handle complex int division.
2321         * tree-complex.c (expand_complex_div_straight,
2322         expand_complex_div_wide): Update comments.
2323
2324 2009-09-24  DJ Delorie  <dj@redhat.com>
2325
2326         PR target/41456
2327         * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
2328         (reg_class): Likewise.
2329         (REG_CLASS_NAMES): Likewise.
2330         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
2331         (m32c_override_options): Disable -fivopts for M32C.
2332
2333 2009-09-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
2334
2335         * config/rs6000/predicates.md (indexed_or_indirect_operand):
2336         Delete VSX load/store with update support.
2337         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
2338         * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
2339         (vsx_movti): Ditto.
2340         (VSX_U): Delete.
2341         (VSbit): Ditto.
2342         (VStype_load_update): Ditto.
2343         (VStype_store_update): Ditto.
2344         (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2345         (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2346
2347         * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
2348         load/store with update builtins.
2349
2350 2009-09-24  Kai Tietz  <kai.tietz@onevision.com>
2351
2352         * libgcc2.c (L_trampoline): Prototype for getpagesize
2353         and mprotect in WINNT case.
2354
2355 2009-09-24  Anatoly Sokolov  <aesok@post.ru>
2356
2357         * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
2358         * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
2359         * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
2360         'outgoing' argument.
2361         (TARGET_FUNCTION_VALUE): Define.
2362
2363 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
2364
2365         * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
2366
2367 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
2368
2369         PR bootstrap/41405
2370         * common.opt: Initialize dwarf_strict to -1.
2371         * toplev.c (process_options): Catch unset dwarf_strict
2372         and set to 0 for all targets not overriding.
2373         * config/darwin.c (darwin_override_options): Catch unset
2374         dwarf_strict and override to 1.
2375
2376 2009-09-24  Jeff Law  <law@redhat.com>
2377
2378         * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
2379
2380 2009-09-24  Richard Guenther  <rguenther@suse.de>
2381
2382         PR tree-optimization/36143
2383         PR tree-optimization/38747
2384         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
2385         create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
2386
2387 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
2388
2389         PR bootstrap/41457
2390         * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
2391         return false instead of gcc_unreachable ().  For CONST return the
2392         value returned by recursive call instead of always returning true.
2393         (tree_add_const_value_attribute): Return the value returned by
2394         add_const_value_attribute instead of always returning true if rtl
2395         is non-NULL.
2396
2397 2009-09-23  Justin Seyster  <jrseys@gmail.com>
2398
2399         * Makefile.in (PLUGIN_HEADERS): Include real.h.
2400
2401 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
2402
2403         * cgraphunit.c (cgraph_lower_function): Revert last change.
2404         * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
2405         instead of DECL_NO_STATIC_CHAIN.
2406         * tree-cfg.c (verify_gimple_call): Likewise.
2407         * tree-nested.c (get_chain_decl, get_chain_field,
2408         convert_tramp_reference_op, convert_gimple_call): Likewise.
2409         (convert_all_function_calls): Likewise.  Always set or clear
2410         DECL_STATIC_CHAIN initially, for !n->outer clear it.
2411         (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
2412         * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
2413         if nested.
2414         * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
2415         DECL_NO_STATIC_CHAIN.
2416         * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
2417         instead of DECL_NO_STATIC_CHAIN.
2418         (ix86_function_regparm, find_drap_reg): Likewise.  Don't test
2419         decl_function_context.
2420         * varasm.c (initializer_constant_valid_p): Likewise.
2421         * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
2422         (DECL_STATIC_CHAIN): ... this.
2423         * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
2424         instead of DECL_NO_STATIC_CHAIN.
2425
2426 2009-09-23  Basile Starynkevitch  <basile@starynkevitch.net>
2427             Rafael Avila de Espindola  <espindola@google.com>
2428
2429         * gengtype.c (nb_plugin_files): Make it unsigned to match
2430         num_gt_files. Adjust other variables to avoid warnings.
2431         (main): Allocate an all zero lang_bitmap before each plugin file name
2432         to match regular file names.
2433
2434 2009-09-23  Richard Henderson  <rth@redhat.com>
2435
2436         * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2437         (TARGET_STATIC_CHAIN): Mention that this hook must be used for
2438         static chain passed in memory.
2439         * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
2440         * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
2441         STATIC_CHAIN_INCOMING.  Issue a sorry if there's no
2442         STATIC_CHAIN_REGNUM defined.
2443
2444         * config/picochip/picochip-protos.h: s/class/klass/.
2445         * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
2446         (picochip_static_chain): New.
2447         * config/picochip/picochip.h (STATIC_CHAIN): Remove.
2448         (STATIC_CHAIN_INCOMING): Remove.
2449
2450         * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
2451         (xtensa_static_chain): New.
2452         * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
2453         (STATIC_CHAIN_INCOMING): Remove.
2454
2455 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
2456
2457         * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
2458         * config/pa/pa-protos.h (function_value): Remove.
2459         * config/pa/pa.c (pa_function_value): Rename from function_value.
2460         Make static, add 'outgoing' argument.
2461         (TARGET_FUNCTION_VALUE): Define.
2462
2463 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
2464
2465         * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
2466         instead of cfun->machine->is_leaf.
2467         * config/avr/avr.h (machine_function): Remove is_leaf field.
2468
2469 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
2470
2471         PR debug/41439
2472         * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
2473         DW_OP_piece after DW_OP_stack_value, adjust size calculations
2474         for it, when DW_OP_stack_value and DW_OP_implicit_value has
2475         the same size, prefer DW_OP_stack_value.
2476         (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
2477         loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
2478
2479 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
2480
2481         PR debug/41353
2482         * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
2483
2484 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
2485
2486         PR debug/41248
2487         * cfgexpand.c (convert_debug_memory_address): New.
2488         (expand_debug_expr): Convert base address and offset to the same
2489         mode.  Use it to convert addresses to other modes.  Accept
2490         ptr_mode addresses.
2491
2492 2009-09-23  Richard Guenther  <rguenther@suse.de>
2493
2494         * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
2495         produced for bigendian targets with promoted subregs.
2496
2497 2009-09-23  Richard Guenther  <rguenther@suse.de>
2498
2499         * value-prof.c (gimple_ic): Purge old EH edges only after building
2500         the new ones.
2501
2502 2009-09-23  Nick Clifton  <nickc@redhat.com>
2503
2504         * config/arc/arc.c (arc_trampoline_init): Fix typo.
2505
2506 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
2507
2508         PR bootstrap/41405
2509         * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
2510
2511         PR bootstrap/41436
2512         * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
2513         on non-nested functions.
2514
2515 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
2516             Jan Hubicka  <jh@suse.cz>
2517
2518         * dwarf2out.c (loc_list_plus_const): Only define if
2519         DWARF2_DEBUGGING_INFO.
2520         (address_of_int_loc_descriptor): Likewise.
2521
2522         PR debug/41411
2523         * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
2524
2525 2009-09-23  Uros Bizjak  <ubizjak@gmail.com>
2526
2527         PR c/39779
2528         * c-typeck.c (build_binary_op) <short_shift>: Check that integer
2529         constant is more than zero.
2530
2531 2009-09-23  Alan Modra  <amodra@bigpond.net.au>
2532
2533         PR target/40473
2534         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
2535         call final to emit non-scheduled prologue, instead insert at entry.
2536
2537 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
2538             Joseph S. Myers  <joseph@codesourcery.com>
2539
2540         * doc/install.texi (*-*-freebsd*): Add proper format codes.
2541
2542 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
2543             Rafael Avila de Espindola  <espindola@google.com>
2544
2545         * gengtype.c (is_file_equal): New function.
2546         (close_output_files): Use is_file_equal. Free of->buf.
2547
2548 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
2549             Rafael Avila de Espindola  <espindola@google.com>
2550
2551         * gengtype.c (write_types, write_local): Add the output_header
2552         argument. Update all callers.
2553
2554 2009-09-22  Dodji Seketeli  <dodji@redhat.com>
2555
2556         * dwarf2out.c (template_parameter_pack_die,
2557         gen_formal_parameter_pack_die ): New functions.
2558         (make_ith_pack_parameter_name): Remove this function.
2559         (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
2560         DW_TAG_formal_parameter_pack.
2561         (gen_generic_params_dies): Represent each template parameter pack
2562         by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
2563         represented by usual DW_TAG_template_*_parameter DIEs that are
2564         children of the DW_TAG_template_parameter_pack element DIE.
2565         (generic_parameter_die): This doesn't deal with parameter pack
2566         names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
2567         of parameter pack DIEs.
2568         (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
2569         in certain cases, e.g. for pack elements.
2570         (gen_formal_types_die, gen_decl_die): Adjust usage of
2571         gen_formal_parameter_die.
2572         (gen_subprogram_die): Represent each function parameter pack by a
2573         DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
2574         represented by usual DW_TAG_formal_parameter DIEs that are children
2575         of the DW_TAG_formal_parameter_pack DIE. Remove references to
2576         ____builtin_va_alist decls as no part of the compiler uses those
2577         anymore.
2578         * langhooks.h (struct lang_hooks_for_decls): Add
2579         function_parm_expanded_from_pack_p, get_generic_function_decl
2580         and function_parameter_pack_p hooks.  Fix comment for
2581         get_innermost_generic_parms hook.
2582         * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
2583         LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
2584         macros and use them to initialize lang_hook.
2585
2586 2009-09-22  Richard Henderson  <rth@redhat.com>
2587
2588         * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
2589         (TRAMPOLINE_ADJUST_ADDRESS): Poison.
2590         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
2591         on TRAMPOLINE_TEMPLATE.
2592         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
2593         TRAMPOLINE_ADJUST_ADDRESS.
2594         * targhooks.c (default_asm_trampoline_template): Remove.
2595         (default_trampoline_adjust_address): Remove.
2596         (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
2597         * targhooks.h: Update decls.
2598
2599 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
2600
2601         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
2602         * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
2603         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
2604
2605 2009-09-22  Alexandre Oliva  <aoliva@redhat.com>
2606
2607         PR debug/41295
2608         * reload1.c (reload): Reset debug insns with pseudos without
2609         equivalences.
2610
2611 2009-09-22  Janis Johnson  <janis187@us.ibm.com>
2612
2613         * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
2614         unconditional true for decimal float modes.
2615         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
2616         * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
2617
2618 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
2619
2620         * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
2621         Enable a new case for __FreeBSD__ >= 7.
2622         * crtstuff.c:  Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
2623         * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
2624         * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
2625         and USE_LD_AS_NEEDED.
2626
2627         * doc/install.texi (*-*-freebsd*): Update target information.
2628
2629 2009-09-22  Richard Guenther  <rguenther@suse.de>
2630
2631         PR middle-end/41395
2632         * tree-dfa.c (get_ref_base_and_extent): Handle trailing
2633         arrays really properly.
2634
2635 2009-09-22  Richard Henderson  <rth@redhat.com>
2636
2637         PR target/41246
2638         * target.h (struct gcc_target): Add asm_out.trampoline_template,
2639         calls.static_chain, calls.trampoline_init,
2640         calls.trampoline_adjust_address.
2641         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2642         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
2643         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2644         * builtins.c (expand_builtin_setjmp_receiver): Use
2645         targetm.calls.static_chain; only clobber registers.
2646         (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
2647         set up memory attributes properly for the trampoline block.
2648         (expand_builtin_adjust_trampoline): Use
2649         targetm.calls.trampoline_adjust_address.
2650         * calls.c (prepare_call_address): Add fndecl argument.  Use
2651         targetm.calls.static_chain.
2652         * df-scan.c (df_need_static_chain_reg): Remove.
2653         (df_get_entry_block_def_set): Use targetm.calls.static_chain;
2654         consolodate static chain handling.
2655         * doc/tm.texi: Document new hooks.
2656         * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
2657         (init_emit_regs): Don't initialize them.
2658         * expr.h (prepare_call_address): Update decl.
2659         * final.c (profile_function): Use targetm.calls.static_chain.
2660         * function.c (expand_function_start): Likewise.
2661         * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
2662         * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
2663         only clobber registers.
2664         * targhooks.c (default_static_chain): New.
2665         (default_asm_trampoline_template, default_trampoline_init): New.
2666         (default_trampoline_adjust_address): New.
2667         * targhooks.h: Declare them.
2668         * varasm.c (assemble_trampoline_template): Use
2669         targetm.asm_out.trampoline_template.  Make the memory block const
2670         and set its size.
2671
2672         * config/alpha/alpha.c (alpha_trampoline_init): Rename from
2673         alpha_initialize_trampoline.  Make static.  Merge VMS parameter
2674         differences into the TARGET_ABI_OPEN_VMS code block.
2675         (TARGET_TRAMPOLINE_INIT): New.
2676         * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
2677         (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
2678         * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
2679         (INITIALIZE_TRAMPOLINE): Remove.
2680
2681         * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
2682         (TRAMPOLINE_TEMPLATE): Merge with ...
2683         (INITIALIZE_TRAMPOLINE): ... this and move ...
2684         * config/arc/arc.c (arc_trampoline_init): ... here.
2685         (TARGET_TRAMPOLINE_INIT): New.
2686
2687         * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2688         (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2689         (arm_asm_trampoline_template): New.
2690         (arm_trampoline_init, arm_trampoline_adjust_address): New.
2691         * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
2692         THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
2693         code to arm_asm_trampoline_template.
2694         (TRAMPOLINE_ADJUST_ADDRESS): Move code to
2695         arm_trampoline_adjust_address.
2696         (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
2697         adjust for target hook parameters.
2698
2699         * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
2700         Remove.
2701
2702         * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
2703         * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
2704         (bfin_trampoline_init): Rename from initialize_trampoline;
2705         make static; update for target hook parameters.
2706         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
2707         * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
2708         bfin_asm_trampoline_template.
2709         (INITIALIZE_TRAMPOLINE): Remove.
2710
2711         * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2712         TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
2713         cris_trampoline_init): New.
2714         * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
2715         cris_asm_trampoline_template.
2716         (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
2717         adjust for target hook parameters.
2718
2719         * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
2720
2721         * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2722         TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
2723         fr30_trampoline_init): New.
2724         * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
2725         fr30_asm_trampoline_template.
2726         (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
2727         adjust for target hook parameters.
2728
2729         * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
2730         (frv_trampoline_init): Rename from frv_initialize_trampoline;
2731         make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
2732         * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
2733         * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
2734
2735         * config/h8300/h8300.c (h8300_trampoline_init): New.
2736         (TARGET_TRAMPOLINE_INIT): New.
2737         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
2738         to h8300_trampoline_init and adjust for hook parameters.
2739
2740         * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
2741         * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
2742         (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
2743         make static; adjust for hook parameters.
2744         * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
2745
2746         * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2747         (TARGET_TRAMPOLINE_INIT): New.
2748         (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
2749         * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
2750         iq2000_asm_trampoline_template.
2751         (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
2752         (TRAMPOLINE_CODE_SIZE): New.
2753         (TRAMPOLINE_SIZE): Use it.
2754         (TRAMPOLINE_ALIGNMENT): Follow Pmode.
2755
2756         * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
2757         * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
2758         (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
2759         adjust for hook parameters.
2760         * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
2761
2762         * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
2763         (m32r_trampoline_init): New.
2764         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
2765         m32r_trampoline_init.
2766
2767         * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
2768         (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
2769         make static; update for hook parameters.
2770         * config/m68hc11/m68hc11-protos.h: Update.
2771         * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
2772
2773         * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2774         (TARGET_TRAMPOLINE_INIT): New.
2775         (mcore_function_value): Fix typo.
2776         (mcore_asm_trampoline_template, mcore_trampoline_init): New.
2777         * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
2778         to mcore_asm_trampoline_template.
2779         (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
2780
2781         * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
2782         * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
2783         (mep_trampoline_init): Rename from mep_init_trampoline; make static;
2784         update for hook parameters.
2785         * config/mep/mep-protos.h (mep_init_trampoline): Remove.
2786
2787         * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2788         mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2789         mips_trampoline_init): New.
2790         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
2791         mips_asm_trampoline_template.
2792         (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
2793         update for hook parameters.
2794
2795         * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2796         (TARGET_TRAMPOLINE_INIT): New.
2797         (mmix_trampoline_size): Remove.
2798         (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
2799         make static.  Remove out-of-date tetra vs octa comment.
2800         (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
2801         make static; update for hook parameters.
2802         * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
2803         (INITIALIZE_TRAMPOLINE): Remove.
2804         (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
2805         (TRAMPOLINE_ALIGNMENT): New.
2806         * gcc/config/mmix/mmix-protos.h: Update.
2807
2808         * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2809         mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2810         mn10300_trampoline_init): New.
2811         * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
2812         mn10300_asm_trampoline_template.
2813         (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
2814
2815         * config/moxie/moxie.c (moxie_static_chain,
2816         moxie_asm_trampoline_template, moxie_trampoline_init,
2817         TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
2818         TARGET_TRAMPOLINE_INIT): New.
2819         * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
2820         moxie_trampoline_init.
2821         (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
2822         (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2823
2824         * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2825         pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2826         pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
2827         pa_trampoline_adjust_address): New.
2828         * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
2829         pa_asm_trampoline_template.
2830         (TRAMPOLINE_ALIGNMENT): New.
2831         (TRAMPOLINE_CODE_SIZE): Move to pa.c.
2832         (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
2833         adjust for hook parameters.
2834         (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
2835
2836         * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
2837         (TARGET_TRAMPOLINE_INIT): New.
2838         * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
2839         (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
2840
2841         * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
2842
2843         * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
2844         * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
2845         (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
2846         make static; adjust parameters for the hook.
2847         * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
2848
2849         * config/s390/s390.c (s390_asm_trampoline_template): Rename from
2850         s390_trampoline_template; make static.
2851         (s390_trampoline_init): Rename from s390_initialize_trampoline;
2852         make static; adjust for target hook.
2853         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
2854         * config/s390/s390-protos.h: Remove trampoline decls.
2855         * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
2856         (TRAMPOLINE_TEMPLATE): Remove.
2857         (TRAMPOLINE_ALIGNMENT): New.
2858
2859         * config/score/score-protos.h (score_initialize_trampoline): Remove.
2860         * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2861         (TARGET_TRAMPOLINE_INIT): New.
2862         (score_asm_trampoline_template): New.
2863         (score_trampoline_init): Rename from score_initialize_trampoline;
2864         make static; adjust for hook parameters.
2865         * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
2866         score[37]_asm_trampoline_template.
2867         (INITIALIZE_TRAMPOLINE): Remove.
2868         * config/score/score3.c (score3_asm_trampoline_template): New.
2869         (score3_trampoline_init): Rename from score3_initialize_trampoline;
2870         adjust for target hook.
2871         * config/score/score7.c (score7_asm_trampoline_template): New.
2872         (score7_trampoline_init): Rename from score7_initialize_trampoline;
2873         adjust for target hook.
2874         * config/score/score3.h, config/score/score7.h: Update.
2875
2876         * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
2877         * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
2878         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2879         (sh_trampoline_init): Rename from sh_initialize_trampoline;
2880         make static; adjust for target hook parameters.
2881         (sh_trampoline_adjust_address): New.
2882         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
2883         (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
2884
2885         * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
2886         (sparc32_initialize_trampoline): Rename from
2887         sparc_initialize_trampoline; make static; replace tramp parameter
2888         with m_tramp and update memory accesses.
2889         (sparc64_initialize_trampoline): Similarly.
2890         (sparc_trampoline_init): New.
2891         * config/sparc/sparc-protos.h: Remove trampoline decls.
2892         * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
2893         * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
2894
2895         * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
2896         (array_to_constant): Make ARR parameter const.
2897         (spu_trampoline_init): Rename from spu_initialize_trampoline;
2898         make static; update for hook parameters.
2899         * config/spu/spu-protos.h: Update decls.
2900         * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
2901
2902         * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
2903         from xstormy16_initialize_trampoline; make static; update for
2904         hook parameters.
2905         (TARGET_TRAMPOLINE_INIT): New.
2906         * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
2907
2908         * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2909         (TARGET_TRAMPOLINE_INIT): New.
2910         (v850_can_eliminate): Make static.
2911         (v850_asm_trampoline_template, v850_trampoline_init): New.
2912         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
2913         v850_asm_trampoline_template.
2914         (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
2915         and adjust for target hook parameters.
2916
2917         * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2918         (TARGET_TRAMPOLINE_INIT): New.
2919         (vax_asm_trampoline_template, vax_trampoline_init): New.
2920         * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
2921         vax_asm_trampoline_template.
2922         (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
2923
2924         * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2925         (TARGET_TRAMPOLINE_INIT): New.
2926         (xtensa_asm_trampoline_template): Rename from
2927         xtensa_trampoline_template; make static.
2928         (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
2929         make static; update for hook parameters.
2930         * config/xtensa/xtensa-protos.h: Remove trampoline decls.
2931         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
2932         (INITIALIZE_TRAMPOLINE): Remove.
2933
2934         * config/i386/i386.c (ix86_function_regparm): Do not issue an
2935         error for nested functions with regparm=3.
2936         (ix86_compute_frame_layout): Adjust frame pointer offset for
2937         ix86_static_chain_on_stack.
2938         (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
2939         (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
2940         don't reset to UNITS_PER_WORD.
2941         (ix86_emit_leave): Adjust ix86_cfa_state.
2942         (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
2943         (ix86_static_chain): New.
2944         (ix86_trampoline_init): Rename from x86_initialize_trampoline;
2945         make static; update for target hook parameters; use ix86_static_chain.
2946         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
2947         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
2948         (INITIALIZE_TRAMPOLINE): Remove.
2949         (TRAMPOLINE_SIZE): Use 24 for 64-bit.
2950         (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
2951         to the end.  Add static_chain_on_stack.
2952         (ix86_static_chain_on_stack): New.
2953
2954         * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
2955         (m68k_output_mi_thunk): Don't use static_chain_rtx.
2956         (m68k_trampoline_init): New.
2957         * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
2958         m68k_trampoline_init and adjust for hook parameters.
2959         * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
2960         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
2961
2962 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
2963
2964         * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
2965         for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
2966
2967         * reload1.c (reload): Call wrap_constant when substituting
2968         reg for equiv inside of DEBUG_INSNs.
2969
2970         PR bootstrap/41405
2971         * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
2972         add_call_src_coords_attributes, add_high_low_attributes,
2973         gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
2974         gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
2975         dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
2976         when -gdwarf-2 -gstrict-dwarf.
2977         (loc_list_from_tree): Likewise.  Avoid using DWARF4 additions when
2978         -gdwarf-[23] -gstrict-dwarf.
2979         (address_of_int_loc_descriptor, loc_descriptor,
2980         loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
2981         DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
2982         * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
2983
2984 2009-09-22  Richard Guenther  <rguenther@suse.de>
2985
2986         PR tree-optimization/41428
2987         * tree-ssa-ccp.c (ccp_fold_stmt): New function.
2988         (ccp_finalize): Pass it to substitute_and_fold.
2989
2990 2009-09-22  Richard Guenther  <rguenther@suse.de>
2991
2992         * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
2993         (substitute_and_fold): Adjust prototype.
2994         * tree-vrp.c (vrp_evaluate_conditional): Make static.
2995         (simplify_stmt_using_ranges): Likewise.
2996         (fold_predicate_in): Move here from tree-ssa-propagate.c.
2997         (vrp_fold_stmt): New function.
2998         (vrp_finalize): Pass it to substitute_and_fold.
2999         * tree-flow.h (vrp_evaluate_conditional): Remove.
3000         (simplify_stmt_using_ranges): Likewise.
3001         * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
3002         * tree-ssa-copy.c (fini_copy_prop): Likewise.
3003         * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
3004         member.
3005         (fold_predicate_in): Move to tree-vrp.c.
3006         (substitute_and_fold): Use the callback instead of calling into
3007         tree-vrp.c functions directly.
3008
3009 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
3010
3011         * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
3012         comparison warning on rs6000.
3013
3014         PR middle-end/41429
3015         * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
3016         GIMPLE_EH_MUST_NOT_THROW cleanup.
3017         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
3018
3019 2009-09-22  Jack Howarth  <howarth@bromo.med.uc.edu>
3020
3021         PR middle-end/41260
3022         * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
3023         * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
3024         LIB_SPEC for darwin10 and later since it always uses the unwinder in
3025         libSystem which is derived from the gcc 4.2.1 unwinder.
3026
3027 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
3028
3029         PR middle-end/41357
3030         * varasm.c (default_encode_section_info): Copy TLS model into
3031         sym_ref flags regardless of backend support for TLS, for all
3032         model types except TLS_MODEL_EMULATED.
3033
3034 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
3035
3036         PR bootstrap/41404
3037         * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
3038         we can handle it correctly.
3039
3040 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
3041
3042         * doc/install.texi (os2): Remove section.
3043
3044 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
3045
3046         * doc/standards.texi (Objective-C): Adjust two URLs.
3047
3048 2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>
3049
3050         * tree-tailcall.c (process_assignment): Don't check if a
3051         multiplication or an addition are already present.
3052         (find_tail_calls): Combine multiple additions and multiplications.
3053         (adjust_accumulator_values): Emit accumulators.
3054
3055 2009-09-21  Kai Tietz  <kai.tietz@onevision.com>
3056
3057         * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
3058         xmm register restore.
3059
3060 2009-09-21  Jan Hubicka  <jh@suse.cz>
3061
3062         * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
3063         (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
3064         restore at the end.
3065
3066 2009-09-21  Eric Botcazou  <ebotcazou@adacore.com>
3067
3068         * stor-layout.c (layout_type): Remove obsolete code.
3069
3070 2009-09-20  H.J. Lu  <hongjiu.lu@intel.com>
3071
3072         PR middle-end/41395
3073         * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
3074
3075 2009-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3076
3077         PR middle-end/30789
3078         * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
3079         (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
3080         (fold_builtin_2, do_mpc_arg1): Update accordingly.
3081         * fold-const.c (const_binop): Likewise.
3082         * real.h (do_mpc_arg2): Update prototype.
3083
3084 2009-09-20  Jan Hubicka  <jh@suse.cz>
3085
3086         * dwarf2out.c (add_const_value_attribute): Return true if successful.
3087         (add_location_or_const_value_attribute): Rewrite using
3088         loc_list_from_tree.
3089         (tree_add_const_value_attribute): Return true if successful.
3090         (tree_add_const_value_attribute_for_decl): Likewise.
3091
3092         * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
3093         (loc_descriptor): ... here;
3094         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3095         (cst_pool_loc_descr): Break out from ...; do not reffer constant
3096         pool items that was not marked for output.
3097         (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
3098         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3099         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3100         handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
3101         IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
3102         CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
3103         DW_OP_stack_value to get address of items that are not available
3104         as addresses.
3105         (dw_loc_list): Handle single element lists correctly.
3106
3107 2009-09-20  Kai Tietz  <kai.tietz@onevision.com>
3108             Pascal Obry  <obry@adacore.com>
3109
3110         * unwind-dw2-fde.c (classify_object_over_fdes):
3111         Cast the constant 1 to _Unwind_Ptr.
3112         (add_fdes): Likewise.
3113         (linear_search_fdes): Likewise.
3114
3115 2009-09-20  Eric Botcazou  <ebotcazou@adacore.com>
3116
3117         * stor-layout.c (set_sizetype): Avoid useless type copy.
3118
3119 2009-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
3120
3121         * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
3122         feature check.
3123         (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
3124         * configure, config.in: Regenerate.
3125         * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
3126         DW_EH_PE_absptr.
3127         * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
3128         (ASM_PREFERRED_EH_DATA_FORMAT): Define.  Use MIPS_EH_INDIRECT
3129         for global data if the output could be used in a shared library.
3130         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
3131         to 0 if TARGET_WRITABLE_EH_FRAME.
3132
3133 2009-09-20  Paolo Bonzini <bonzini@gnu.org>
3134
3135         PR rtl-optimization/39886
3136         * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
3137         just when insn is equal to BB_END (bb).
3138
3139 2009-09-19  Adam Nemet  <anemet@caviumnetworks.com>
3140
3141         * config/mips/mips.opt (mrelax-pic-calls): New option.
3142         * config/mips/mips.c (mips_strip_unspec_address): Move it up in
3143         the file.
3144         (mips_unspec_call): Change "unspec_call" expander into this.
3145         (mips_strip_unspec_call): New function.
3146         (mips_got_load): Call mips_unspec_call instead of
3147         gen_unspec_call<mode>.
3148         (mips16_build_call_stub): Fix comment for fp_code.  Adjust call to
3149         MIPS_CALL.
3150         (mips_cfg_in_reorg): New function.
3151         (mips16_lay_out_constants): Use it to decide whether to call
3152         CFG-aware insn splitting.
3153         (r10k_insert_cache_barriers): Move CFG set-up code from here to
3154         mips_reorg.  Move DF set-up code from here ...
3155         (mips_df_reorg): ... to here.  Call r10k_insert_cache_barriers
3156         from here.
3157         (mips_reorg): Call mips_df_reorg instead of
3158         r10k_insert_cache_barriers.  Move CFG set-up code here from
3159         r10k_insert_cache_barriers.
3160         (mips_call_expr_from_insn): New function.
3161         (mips_pic_call_symbol_from_set): Likewise.
3162         (mips_find_pic_call_symbol): Likewise.
3163         (mips_annotate_pic_call_expr): Likewise.
3164         (mips_get_pic_call_symbol): Likewise.
3165         (mips_annotate_pic_calls): Likewise.
3166         (mips_override_options): Disable -mrelax-pic-calls unless PIC
3167         calls are used.
3168         (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
3169         * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
3170         * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
3171         directive.
3172         * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
3173         (unspec_call<mode>): Remove it.
3174         (sibcall_internal, sibcall_value_internal,
3175         sibcall_value_multiple_internal, call_internal, call_split,
3176         call_value_internal, call_value_split,
3177         call_value_multiple_internal, call_value_multiple_split): Pass
3178         SIZE_OPNO to MIPS_CALL.
3179         (call_internal_direct, call_direct_split,
3180         call_value_internal_direct, call_value_direct_split): Pass -1 as
3181         SIZE_OPNO to MIPS_CALL.
3182         * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
3183         * configure: Regenerate.
3184         * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
3185         and -mno-relax-pic-calls.
3186         (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
3187
3188 2009-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3189
3190         PR bootstrap/35619
3191         * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
3192         in the directory this rule is called from, rather than the
3193         toplevel 'gcc' directory, to fix in-tree build.
3194
3195 2009-09-19  Chris Demetriou  <cgd@google.com>
3196
3197         PR preprocessor/28435:
3198         * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
3199         to cpplib that the preprocessor output is needed.
3200
3201 2009-09-19  Jakub Jelinek  <jakub@redhat.com>
3202
3203         * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
3204         *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
3205         *return_and_restore_fpregs_<mode>,
3206         *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
3207
3208         PR bootstrap/41397
3209         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
3210         instead of assuming it has always a REG inside of it.
3211
3212 2009-09-18  Gerald Pfeifer  <gerald@pfeifer.com>
3213
3214         * config/freebsd.h: Update comment on types.
3215         (WINT_TYPE): Define.
3216
3217 2009-09-18  Jason Merrill  <jason@redhat.com>
3218
3219         * c.opt: Add -fno-deduce-init-list.
3220
3221 2009-09-18  Neil Vachharajani  <nvachhar@google.com>
3222
3223         * value-prof.c (interesting_stringop_to_profile_p): Added output
3224         argument to indicate which parameter is the size parameter.
3225         * value-prof.c (gimple_stringop_fixed_value): Use
3226         INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
3227         * value-prof.c (gimple_stringops_transform): Update call sites to
3228         INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
3229
3230 2009-09-18  Uros Bizjak  <ubizjak@gmail.com>
3231
3232         PR target/38288
3233         From David Binderman <dcb314@hotmail.com>:
3234         * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
3235         local variable f.  Remove stale comments.
3236         (ix86_compute_frame_layout): Remove useless local variable total_size.
3237         Remove #if 0'd code.
3238         (legitimate_address_p): Remove useless local variables
3239         reason_rtx and reason.
3240         (ix86_split_copysign_const): Remove useless local variable op1.
3241         (scale_counter): Remove useless local variable piece_size_mask.
3242
3243 2009-09-18  Jakub Jelinek  <jakub@redhat.com>
3244
3245         * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
3246         output decl.
3247
3248 2009-09-17  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
3249
3250         PR target/40913
3251         * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
3252
3253 2009-09-17  Jakub Jelinek  <jakub@redhat.com>
3254
3255         * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
3256         TYPE_STUB_DECL.
3257
3258 2009-09-17  Alexandre Oliva  <aoliva@redhat.com>
3259
3260         * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
3261         DW_OP_implicit_value even without dwarf_version 4.
3262
3263 2009-09-17  Jan Hubicka  <jh@suse.cz>
3264
3265         * dwarf2out.c: Include tree-pass.h and gimple.h.
3266         (loc_list_plus_const): New function.
3267         (loc_descriptor_from_tree_1): Rename to ...
3268         (loc_descriptor_from_tree): ... remove original.
3269         (loc_list_from_tree): New function.
3270         (add_AT_location_description): Accept location list.
3271         (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
3272         (concatn_mem_loc_descriptor): Remove.
3273         (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
3274         returning NULL.
3275         (secname_for_decl): Move up.
3276         (hidden_reference_p): New function; break out from ...
3277         (loc_by_refernece): ... here; move up.
3278         (dw_loc_list): New function.
3279         (single_element_loc_list): New function.
3280         (single_element_loc_list_p): New function.
3281         (add_loc_descr_to_each): New function.
3282         (add_loc_list): New function.
3283         (loc_descr_from_tree): Make wraper of loc_list_from_tree.
3284         (loc_list_from_tree): Reroganized from loc_descr_from_tree;
3285         add diagnostics why expansion failed.
3286         (add_location_or_const_value_attribute): Support location lists.
3287         (add_bound_info): Likewise.
3288         (descr_info_loc): Update call of loc_descriptor_from_tree.
3289         (gen_variable_die): Work on location lists.
3290         * final.c (pass_final): Add dump file.
3291         * Makefile.in (dwarf2out.o): Add new dependencies.
3292
3293 2009-09-17  Janis Johnson  <janis187@us.ibm.com>
3294
3295         PR c/41049
3296         * real.c decimal_from_integer, decimal_integer_string): New.
3297         (real_from_integer): Use them as special case for decimal float.
3298         * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
3299         (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
3300         Do not append zero after the decimal point in string to convert.
3301
3302 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
3303
3304         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
3305         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
3306
3307 2009-09-17  Martin Jambor  <mjambor@suse.cz>
3308
3309         * common.opt (fipa-sra): New switch.
3310         * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
3311         * timevar.def (TV_IPA_SRA): New timevar.
3312         * params.def (ipa-sra-ptr-growth-factor): New parameter.
3313         * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
3314         * tree-sra.c: Include cgraph.c.
3315         (enum sra_mode): Added SRA_MODE_EARLY_IPA.
3316         (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
3317         and grp_not_necessarilly_dereferenced.
3318         (func_param_count): New variable.
3319         (encountered_apply_args): New variable.
3320         (bb_dereferences): New variable.
3321         (final_bbs): New variable.
3322         (no_accesses_representant): New variable.
3323         (no_accesses_p): New function.
3324         (dump_access): Dump the new fields.
3325         (sra_initialize): Set encountered_apply_args to false.
3326         (get_ssa_base_param): New function.
3327         (mark_parm_dereference): New function.
3328         (create_access): Caring for INIDRECT_REFs and different handling of
3329         varialble length accesses in early IPA SRA.  Store the stmt - a new
3330         parameter - to the new access.
3331         (build_access_from_expr_1): New parameter stmt, passed to
3332         create_access.  Handle INDIRECT_REFs.
3333         (build_access_from_expr): Pass the current statement to
3334         build_access_from_expr_1.
3335         (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
3336         passes.
3337         (build_accesses_from_assign): Pass the current statement to
3338         build_access_from_expr_1.  Do not create assign links in IPA-SRA.
3339         (scan_function): Call handle_ssa_defs on phi nodes.  Set bits in
3340         final_bbs when necessary.  Check for calls to __builtin_apply_args.
3341         Fixup EH info if anythng was changed.
3342         (is_unused_scalar_param): New function.
3343         (ptr_parm_has_direct_uses): New function.
3344         (find_param_candidates): New function.
3345         (mark_maybe_modified): New function.
3346         (analyze_modified_params): New function.
3347         (propagate_dereference_distances): New function.
3348         (dump_dereferences_table): New function.
3349         (analyze_caller_dereference_legality): New function.
3350         (unmodified_by_ref_scalar_representative): New function.
3351         (splice_param_accesses): New function.
3352         (decide_one_param_reduction): New function.
3353         (enum ipa_splicing_result): New type.
3354         (splice_all_param_accesses): New function.
3355         (get_param_index): New function.
3356         (turn_representatives_into_adjustments): New function.
3357         (analyze_all_param_acesses): New function.
3358         (get_replaced_param_substitute): New function.
3359         (get_adjustment_for_base): New function.
3360         (replace_removed_params_ssa_names): New function.
3361         (sra_ipa_reset_debug_stmts): New function.
3362         (sra_ipa_modify_expr): New function.
3363         (sra_ipa_modify_assign): New function.
3364         (convert_callers): New function.
3365         (modify_function): New function.
3366         (ipa_sra_preliminary_function_checks): New function.
3367         (ipa_early_sra): New function.
3368         (ipa_early_sra_gate): New function.
3369         (pass_early_ipa_sra): New variable.
3370         * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
3371
3372 2009-09-17  Michael Matz  <matz@suse.de>
3373
3374         PR middle-end/41347
3375         * tree.c (build_type_attribute_qual_variant): Export.
3376         * tree.h (build_type_attribute_qual_variant): Declare.
3377         * tree-inline.c (remap_type_1): Use it to build variants with
3378         the original qualifiers and attributes.
3379
3380 2009-09-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3381
3382         * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
3383         without a fallthrough edge.
3384
3385 2009-09-16  DJ Delorie  <dj@redhat.com>
3386
3387         * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
3388         chip and ignore the "fast_interrupt" attribute if so.
3389
3390 2009-09-16  Richard Henderson  <rth@redhat.com>
3391
3392         PR middle-end/41360
3393         * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
3394         barrier fix.
3395
3396 2009-09-16  Richard Henderson  <rth@redhat.com>
3397
3398         PR target/41246
3399         * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
3400         is set only if DECL_NO_STATIC_CHAIN is unset.
3401         * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
3402         (FOR_EACH_NEST_INFO): New.
3403         (walk_all_functions): Use it.
3404         (finalize_nesting_tree): Likewise.
3405         (unnest_nesting_tree): Likewise.
3406         (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
3407         (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
3408         (convert_gimple_call): Early out if gimple_call_chain already set.
3409         (convert_all_function_calls): Iterate until no new functions
3410         require a static chain.
3411         (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
3412         when building a trampoline.  Use dump_function_to_file instead
3413         of dump_function.
3414         (lower_nested_functions): Open dump_file.  Validate that decls
3415         that have DECL_NO_STATIC_CHAIN from the front end don't have that
3416         bit reset by this pass.
3417
3418 2009-09-16  Michael Matz  <matz@suse.de>
3419
3420         PR fortran/41212
3421         * tree.h (struct tree_decl_common): Add decl_restricted_flag,
3422         shorten decl_common_unused.
3423         (DECL_RESTRICTED_P): New accessor.
3424         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
3425         to disambiguate marked decls and restrict pointers.
3426
3427 2009-09-16  Richard Henderson  <rth@redhat.com>
3428
3429         PR middle-end/41360
3430         * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
3431
3432 2009-09-16  Jakub Jelinek  <jakub@redhat.com>
3433
3434         * integrate.c (set_block_abstract_flags): Call
3435         set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
3436
3437 2009-09-16  Richard Guenther  <rguenther@suse.de>
3438
3439         PR middle-end/34011
3440         * tree-flow-inline.h (may_be_aliased): Compute readonly variables
3441         as non-aliased.
3442
3443 2009-09-16  DJ Delorie  <dj@redhat.com>
3444             Kaz Kojima  <kkojima@gcc.gnu.org>
3445
3446         * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
3447         (sh_expand_prologue): Update calls to output_stack_adjust.
3448         (sh_expand_epilogue): Likewise.
3449
3450 2009-09-15  Adam Nemet  <anemet@caviumnetworks.com>
3451
3452         PR bootstrap/41349
3453         * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
3454         trying to limit the extent of searches in the insn stream.
3455
3456 2009-09-15  Nathan Froyd  <froydnj@codesourcery.com>
3457             Jakub Jelinek  <jakub@redhat.com>
3458
3459         PR target/41175
3460         PR target/40677
3461         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
3462         problem.
3463         (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
3464         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
3465         (rs6000_savres_strategy): Always save FP registers inline if the
3466         target doesn't support hardware double-precision.  Set the above
3467         bits in return value when needed.
3468         (rs6000_savres_routine_sym): Fix computation for cache selector.
3469         Mark the generated symbol as a function.  Rename exitp argument to
3470         lr.  Move code for determining the name of the symbol...
3471         (rs6000_savres_routine_name): ...here.  New function.  Add cases for
3472         getting the names right on AIX and 64-bit Linux.
3473         (savres_routine_name): New variable.
3474         (rs6000_make_savres_rtx): Rename exitp argument to lr.  Don't assert
3475         lr isn't set when savep.  Use r12 resp. r1 instead of r11 depending
3476         on what the target routine uses as a base register.  If savep && lr
3477         describe saving of r0 into memory slot.
3478         (rs6000_emit_prologue): Correct use of call_used_regs.  Fix out of
3479         line calls for AIX ABI.
3480         (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
3481         determine FP save/restore functions.
3482         (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
3483         frame_reg_rtx != sp_reg_rtx.  Use gen_add3_insn instead of
3484         gen_addsi3.
3485         (rs6000_emit_epilogue): Adjust computation of restore_lr.
3486         Duplicate restoration of LR and execute the appropriate one
3487         depending on whether GPRs are being restored inline.  Set r11 from
3488         offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
3489         r11, adjust sp_offset.  Use gen_add3_insn instead of gen_addsi3.
3490         Fix out of line calls for AIX ABI.
3491         * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
3492         New insn.
3493         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
3494         register 11.
3495         (*restore_gpregs_spe): Likewise.
3496         (*return_and_restore_gpregs_spe): Likewise.
3497         * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3498         Define to empty string unconditionally.
3499         * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3500         Define to empty string unconditionally.
3501         (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
3502         !TARGET_64BIT.
3503
3504 2009-09-15  Jan Hubicka  <jh@suse.cz>
3505
3506         * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
3507         * params.def (inline-insns-auto): Likewise.
3508
3509 2009-09-15  Martin Jambor  <mjambor@suse.cz>
3510
3511         * ipa-inline.c (estimate_function_body_sizes): Dump info about
3512         individual statements only at TDF_DETAILS dump level.  Format
3513         source for 80 characters per line.
3514
3515 2009-09-15  Christian Bruel  <christian.bruel@st.com>
3516
3517         * regrename.c (do_replace): Update REG_DEAD notes.
3518
3519 2009-09-15  Revital Eres  <eres@il.ibm.com>
3520
3521         * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
3522         * targhooks.c (default_builtin_support_vector_misalignment):
3523         New builtin function.
3524         * targhooks.h (default_builtin_support_vector_misalignment):
3525         Declare.
3526         * target.h (builtin_support_vector_misalignment):
3527         New field in struct gcc_target.
3528         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
3529         new builtin function.
3530         * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
3531         Define.
3532         * config/rs6000/rs6000.c
3533         (rs6000_builtin_support_vector_misalignment): New function.
3534         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
3535
3536 2009-09-15  Jie Zhang  <jie.zhang@analog.com>
3537
3538         * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
3539         instead of INSN_P.
3540         (bfin_optimize_loop): Likewise.
3541         (bfin_gen_bundles): Likewise.
3542         (workaround_speculation): Likewise.
3543         (find_load): Return NULL_RTX for debug_insn.
3544
3545 2009-09-15  Uros Bizjak  <ubizjak@gmail.com>
3546
3547         * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
3548         (sminsf3): Ditto.
3549
3550 2009-09-14  DJ Delorie  <dj@redhat.com>
3551
3552         * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
3553         * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
3554         VLIW mode.
3555
3556 2009-09-14  Richard Henderson  <rth@redhat.com>
3557             Jakub Jelinek  <jakub@redhat.com>
3558
3559         * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
3560         * cfgbuild.c (make_edges): Handle asm goto.
3561         * cfglayout.c (fixup_reorder_chain): Likewise.
3562         * cfgrtl.c (patch_jump_insn): Likewise.
3563         * gimple-pretty-print.c (dump_gimple_asm): Likewise.
3564         * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
3565         (gimple_build_asm_vec): Add and use labels parameter.
3566         (gimple_build_asm): Remove.
3567         (walk_gimple_asm): Walk labels too.
3568         * gimple.def (GIMPLE_ASM): Update docs.
3569         * gimple.h: Update decls.
3570         (struct gimple_statement_asm): Change nc to use unsigned char;
3571         add nl member.
3572         (gimple_asm_nlabels): New.
3573         (gimple_asm_label_op, gimple_asm_set_label_op): New.
3574         * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
3575         into gimple_build_asm_vec.
3576         * jump.c (mark_jump_label_asm): New.
3577         (mark_jump_label): Use it.
3578         (redirect_jump_1): Handle asm goto.
3579         (invert_jump_1): Soft fail if X is null.
3580         * recog.c (extract_asm_operands): New.
3581         (asm_noperands): Use it; handle asm labels.
3582         (decode_asm_operands): Use extract_asm_operands.
3583         (asm_operand_ok): Properly handle empty string.
3584         * reg-stack.c (get_asm_operands_in_out): Rename from
3585         get_asm_operand_n_inputs; use extract_asm_operands; return both
3586         inputs and outputs by reference; update all callers.
3587         * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
3588         * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
3589         (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
3590         (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
3591         (extract_asm_operands): Declare.
3592         * stmt.c (expand_asm_operands): Add and use labels parameter.
3593         (check_unique_operand_names): Likewise.
3594         (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
3595         (expand_asm_stmt): Handle asm labels.
3596         * tree-cfg.c (make_gimple_asm_edges): New.
3597         (make_edges): Use it.
3598         (cleanup_dead_labels): Handle asm labels.
3599         (is_ctrl_altering_stmt): Likewise.
3600         (gimple_redirect_edge_and_branch): Likewise.
3601         * tree.def (ASM_EXPR): Add 5th operand.
3602         * tree.h (ASM_LABELS): New.
3603         (resolve_asm_operand_names): Update decl.
3604
3605         * c-parser.c (c_parser_asm_statement): Parse asm goto.
3606         (c_parser_asm_goto_operands): New.
3607         * c-tree.h (build_asm_expr): Update decl.
3608         * c-typeck.c (build_asm_expr): Add and use labels parameter.
3609         * doc/extend.texi: Document asm goto.
3610
3611 2009-09-14  Richard Henderson  <rth@redhat.com>
3612
3613         * except.h: Update declarations.
3614         (struct pointer_map_t): Forward declare.
3615         (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
3616         (struct eh_landing_pad_d, eh_landing_pad): New.
3617         (struct eh_catch_d, eh_catch): New.
3618         (struct eh_region_d): Remove next_region_sharing_label, aka,
3619         label, tree_label, landing_pad, post_landing_pad, resume,
3620         may_contain_throw.  Rename region_number to index.  Remove
3621         u.eh_catch, u.eh_throw.  Rename u.eh_try.eh_catch to first_catch.
3622         Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
3623         (VEC(eh_landing_pad,gc)): New.
3624         (struct eh_status): Remove last_region_number.  Add lp_array,
3625         throw_stmt_table, ttype_data, ehspec_data.
3626         (ehr_next, FOR_ALL_EH_REGION_AT): New.
3627         (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
3628         * except.c (lang_protect_cleanup_actions): Return tree.
3629         (struct ehl_map_entry): Remove.
3630         (init_eh_for_function): Push zero entries for region and lp_array.
3631         (gen_eh_region): Add to region_array immediately.
3632         (gen_eh_region_catch): Operate on eh_catch objects.
3633         (gen_eh_landing_pad): New.
3634         (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
3635         (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
3636         (get_eh_region_from_number, get_eh_region_from_number_fn): New.
3637         (get_eh_landing_pad_from_number_fn): New.
3638         (get_eh_landing_pad_from_number): New.
3639         (get_eh_region_from_lp_number_fn): New.
3640         (get_eh_region_from_lp_number): New.
3641         (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
3642         (get_exception_pointer, get_exception_filter): Remove.
3643         (collect_eh_region_array, can_be_reached_by_runtime): Remove.
3644         (current_function_has_exception_handlers): Simplify.
3645         (bring_to_root, eh_region_replaceable_by_p): Remove.
3646         (replace_region, hash_type_list, hash_eh_region): Remove.
3647         (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
3648         (label_to_region_map, num_eh_regions): Remove.
3649         (get_next_region_sharing_label, must_not_throw_labels): Remove.
3650         (find_exception_handler_labels): Remove.
3651         (duplicate_eh_regions_0, find_prev_try): Remove.
3652         (struct duplicate_eh_regions_data): New.
3653         (duplicate_eh_regions_1): Rewrite.
3654         (duplicate_eh_regions): Return a pointer map instead of an
3655         integer offset.
3656         (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
3657         (redirect_eh_edge_to_label): Remove.
3658         (eh_region_outermost): Rewrite using eh_region pointers
3659         instead of integers.
3660         (add_ttypes_entry): Update for ttype_data move to eh_status.
3661         (add_ehspec_entry): Rewrite with VEC instead of varray.
3662         (assign_filter_values): Likewise.  Export.
3663         (build_post_landing_pads, connect_post_landing_pads): Remove.
3664         (dw2_build_landing_pads): Rewrite to use lp_array.
3665         (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
3666         (sjlj_assign_call_site_values): Rewrite to use lp_array.
3667         (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
3668         (sjlj_mark_call_sites): Update for landing pad numbers.
3669         (finish_eh_generation): Rewrite.
3670         (gate_handle_eh): Do nothing for no eh tree.
3671         (pass_rtl_eh): Move up near finish_eh_generation.
3672         (remove_eh_landing_pad): New.
3673         (remove_eh_handler): Export.
3674         (remove_eh_region, remove_eh_handler_and_replace): Remove.
3675         (for_each_eh_label): Rewrite to use lp_array.
3676         (make_reg_eh_region_note): New.
3677         (make_reg_eh_region_note_nothrow_nononlocal): New.
3678         (insn_could_throw_p): New.
3679         (copy_reg_eh_region_note_forward): New.
3680         (copy_reg_eh_region_note_backward): New.
3681         (check_handled, add_reachable_handler): Remove.
3682         (reachable_next_level, foreach_reachable_handler): Remove.
3683         (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
3684         (get_eh_region_and_lp_from_rtx): New.
3685         (get_eh_region_from_rtx): New.
3686         (can_throw_internal_1, can_throw_external_1): Remove.
3687         (can_throw_internal): Use get_eh_region_from_rtx.
3688         (can_throw_external): Use get_eh_region_and_lp_from_rtx.
3689         (insn_nothrow_p, can_nonlocal_goto): New.
3690         (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
3691         (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
3692         (add_action_record): Use VEC not varray.
3693         (collect_one_action_chain): Update for eh_region changes.
3694         (convert_to_eh_region_ranges): Make static.  Use VEC not varray.
3695         Use get_eh_region_and_lp_from_rtx.
3696         (gate_convert_to_eh_region_ranges): New.
3697         (pass_convert_to_eh_region_ranges): Use it.
3698         (push_uleb128, push_sleb128): Use VEC not varray.
3699         (output_one_function_exception_table): Likewise.
3700         (dump_eh_tree): Update for eh_region changes.
3701         (verify_eh_tree): Likewise.
3702         (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
3703         * tree-eh.c: Include target.h.
3704         (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
3705         Don't disallow GIMPLE_RESX; adjust argument check.
3706         (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
3707         (record_stmt_eh_region): Update for landing pad numbers;
3708         generate a landing pad if necessary.
3709         (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
3710         (remove_stmt_from_eh_lp_fn): Similarly.
3711         (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
3712         Update for lp numbers; don't special case missing throw_stmt_table.
3713         (lookup_expr_eh_lp): Similarly.
3714         (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
3715         (eh_seq, eh_region_may_contain_throw): New.
3716         (struct leh_state): Add ehp_region.
3717         (struct leh_tf_state): Remove eh_label.
3718         (emit_post_landing_pad): New.
3719         (emit_resx, emit_eh_dispatch): New.
3720         (note_eh_region_may_contain_throw): New.
3721         (frob_into_branch_around): Take eh_region not eh label;
3722         emit eh code into eh_seq.
3723         (honor_protect_cleanup_actions): Early exit for no actions.  Don't
3724         handle EXC_PTR_EXPR, FILTER_EXPR.  Use gimple_build_eh_must_not_throw,
3725         lower_eh_must_not_throw.  Emit code to eh_seq.
3726         (lower_try_finally_nofallthru): Emit eh code to eh_seq.
3727         (lower_try_finally_onedest): Likewise.
3728         (lower_try_finally_copy): Likewise.
3729         (lower_try_finally_switch): Likewise.
3730         (lower_try_finally): Initialize ehp_region.
3731         (lower_catch): Update for eh_catch objects.
3732         (lower_eh_filter): Don't handle must_not_throw.
3733         (lower_eh_must_not_throw): New.
3734         (lower_cleanup): Don't set eh_label.
3735         (lower_eh_constructs_2): Resolve eh builtins.
3736         Handle GIMPLE_EH_MUST_NOT_THROW.
3737         (lower_eh_constructs): Initialize eh_region_may_contain_throw.
3738         Add eh_seq to the end of the function body.
3739         (make_eh_dispatch_edges): New.
3740         (make_eh_edge): Remove.
3741         (make_eh_edges): Simplify for landing pads.
3742         (redirect_eh_edge_1): New.
3743         (redirect_eh_edge): Use it.
3744         (redirect_eh_dispatch_edge): New.
3745         (stmt_could_throw_p): Use a switch.  Allow RESX.
3746         (stmt_can_throw_external): Use lookup_stmt_eh_lp.
3747         (stmt_can_throw_internal): Likewise.
3748         (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
3749         (maybe_clean_or_replace_eh_stmt): Update for landing pads.
3750         (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
3751         (gate_refactor_eh): New.
3752         (pass_refactor_eh): Use it.
3753         (lower_resx, execute_lower_resx, pass_lower_resx): New.
3754         (lower_eh_dispatch, execute_lower_eh_dispatch): New.
3755         (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
3756         (remove_unreachable_handlers): Rename from
3757         tree_remove_unreachable_handlers; rewrite for landing pads;
3758         call remove_eh_handler directly.
3759         (remove_unreachable_handlers_no_lp): New.
3760         (unsplit_eh, unsplit_all_eh): New.
3761         (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
3762         (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
3763         (cleanup_empty_eh_unsplit): New.
3764         (cleanup_empty_eh): Rewrite.
3765         (cleanup_all_empty_eh): New.
3766         (execute_cleanup_eh): Rename from cleanup_eh.  Remove unreachable
3767         handlers first.  Use unsplit_all_eh, cleanup_all_empty_eh.
3768         (gate_cleanup_eh): New.
3769         (pass_cleanup_eh): Use it.
3770         (verify_eh_edges): Move later in file.  Expect one EH edge.
3771         (verify_eh_dispatch_edge): New.
3772
3773         * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
3774         (gtype-desc.o): Add TARGET_H.
3775         (tree.o): Use EXCEPT_H, not except.h.
3776         (cfgbuild.o): Add EXPR_H.
3777         (GTFILES): Add vecprim.h.
3778         * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
3779         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
3780         * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
3781         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
3782         * calls.c (emit_call_1): Use make_reg_eh_region_note.
3783         * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
3784         calls to can_throw_internal.
3785         (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
3786         (make_edges): Don't handle RESX; use can_nonlocal_goto.
3787         * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
3788         (expand_gimple_stmt): Use make_reg_eh_region_note.
3789         (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
3790         (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
3791         or find_exception_handler_labels.
3792         * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX.  Assert
3793         there is exacly one EH edge.  Use can_nonlocal_goto and
3794         can_throw_internal.
3795         * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
3796         (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
3797         * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
3798         * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
3799         * dce.c (deletable_insn_p_1): Don't test may_trap_p.
3800         (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
3801         * dse.c (scan_insn): Use insn_could_throw_p.
3802         * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
3803         * expr.c (expand_expr_real): Use make_reg_eh_region_note.
3804         (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
3805         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
3806         EXC_PTR_EXPR or FILTER_EXPR.
3807         (tree_expr_nonzero_warnv_p): Likewise.
3808         * function.h: Include vecprim.h, not varray.h
3809         (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
3810         move ttype_data and ehspec_data members to struct eh_status; change
3811         action_record_data member to a VEC.
3812         * gcse.c (hash_scan_set): Use can_throw_internal.
3813         * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
3814         * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
3815         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
3816         (block_may_fallthru): Don't handle RESX_EXPR.
3817         * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
3818         (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
3819         (dump_gimple_stmt): Dump landing pad information with TDF_EH;
3820         handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
3821         * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
3822         GIMPLE_EH_DISPATCH, GIMPLE_RESX.
3823         (gimple_size): Likewise.
3824         (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
3825         (gimple_build_resx): Use gimple_build_with_ops.
3826         (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
3827         (is_gimple_val): Likewise.
3828         (is_gimple_stmt): Remove RESX_EXPR.
3829         * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
3830         (GIMPLE_RESX): Reorder with other EH constructs.
3831         * gimple.h (struct gimple_statement_eh_mnt): New.
3832         (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
3833         (gimple_eh_filter_must_not_throw): Remove.
3834         (gimple_eh_filter_set_must_not_throw): Remove.
3835         (gimple_eh_must_not_throw_fndecl): New.
3836         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
3837         (is_gimple_resx): New.
3838         * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
3839         Don't copy EH_FILTER_MUST_NOT_THROW.
3840         * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
3841         * ipa-inline.c (estimate_function_body_sizes): Don't try to
3842         handle must_not_throw_labels specially.
3843         * ipa-pure-const.c (check_call): Update debug statement for LP.
3844         * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
3845         * ipa-utils.c (get_base_var): Likewise.
3846         * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
3847         * lower-subreg.c (move_eh_region_note): Remove.
3848         (resolve_simple_move): Use copy_reg_eh_region_note_forward.
3849         * omp-low.c (new_omp_context): Update for eh_lp_nr.
3850         (create_task_copyfn): Likewise.
3851         (maybe_catch_exception): Use gimple_build_eh_filter.
3852         * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
3853         REG_EH_REGION.  Use make_reg_eh_region_note_nothrow_nononlocal.
3854         * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
3855         and pass_lower_resx.
3856         * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
3857         * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
3858         can_throw_internal, can_nonlocal_goto.
3859         * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
3860         copy_reg_eh_region_note_forward.
3861         (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
3862         (emit_output_reload_insns): Likewise.
3863         (copy_eh_notes): Remove.
3864         * rtl.def (RESX): Remove.
3865         * rtl.h: Update declarations.
3866         * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
3867         * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
3868         (update_eh_label): Remove.
3869         (cleanup_dead_labels_eh): New.
3870         (cleanup_deal_labels): Use it instead of update_eh_label.
3871         (gimple_merge_blocks): Update landing pad data structure when
3872         removing a landing pad label.
3873         (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
3874         test; handle GIMPLE_EH_MUST_NOT_THROW.
3875         (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
3876         (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
3877         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
3878         (verify_stmt): Likewise.  Verify landing pads.
3879         (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
3880         (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
3881         (struct move_stmt_d): Add eh_map.
3882         (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
3883         (move_stmt_r): Remap eh region numbers in builtin calls,
3884         resx and eh_dispatch.
3885         (move_block_to_fn): Remove eh_offset parameter.  Use
3886         maybe_duplicate_eh_stmt_fn.
3887         (find_outermost_region_in_block): Operate on eh_region pointers
3888         instead of region numbers.
3889         (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
3890         duplicate_eh_regions.
3891         * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
3892         test earlier.  Disallow EH landing pads.
3893         * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
3894         * tree-flow.h: Update declarations.
3895         (struct tree_ann_common_d): Replace rn with lp_nr.
3896         * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
3897         (remap_eh_region_nr, remap_eh_region_tree_nr): New.
3898         (remap_gimple_stmt): Remap eh region numbers in builtin calls,
3899         resx and eh_dispatch.
3900         (copy_bb): Use maybe_duplicate_eh_stmt_fn.
3901         (copy_edges_for_bb): Use make_eh_dispatch_edges.
3902         (copy_cfg_body): Expect eh_map instead of eh_region_offset
3903         from duplicate_eh_regions.
3904         (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
3905         update RESX; handle EH_DISPATCH.
3906         (expand_call_inline): Set eh_lp_nr, not eh_region.
3907         (maybe_inline_call_in_expr): Likewise.
3908         * tree-inline.h (struct copy_body_data): Replace eh_region with
3909         eh_lp_nr, eh_region_offset with eh_map.
3910         * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
3911         * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
3912         * tree-pretty-print.c (dump_generic_node): Don't handle
3913         EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
3914         * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
3915         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
3916         EXC_PTR_EXPR, FILTER_EXPR.
3917         * tree-ssa-operands.c (get_expr_operands): Likewise.
3918         * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
3919         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3920         (ao_ref_init_from_vn_reference): Likewise.
3921         * tree-ssa-sink.c (statement_sink_location): Likewise.
3922         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3923         (mark_virtual_phi_result_for_renaming): Export.  Tidy.
3924         * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
3925         EXC_PTR_EXPR, FILTER_EXPR.
3926         (is_exception_related): Remove.
3927         (compute_avail): Don't call it.
3928         * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
3929         * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
3930         (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
3931         (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
3932         Build EH builtins.
3933         (build_resx): Remove.
3934         * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
3935         * tree.h: Update declarations.
3936         (EH_FILTER_MUST_NOT_THROW): Remove.
3937         (struct tree_label_decl): Add eh_landing_pad_nr.
3938         (EH_LANDING_PAD_NR): New.
3939         * value-prof.c (gimple_ic): Tidy variable names.  Update for
3940         landing pad numbers.
3941         (gimple_stringop_fixed_value): Tidy variable names.  Assert
3942         that neither call stmt can throw.
3943         * vecprim.h (uchar): New.
3944         (VEC(uchar,heap), VEC(uchar,gc)): New.
3945
3946         * c-common.c (c_define_builtins): Update call to
3947         build_common_builtin_nodes.
3948         * c-parser.c (c_parse_file): Don't call
3949         default_init_unwind_resume_libfunc.
3950
3951 2009-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3952
3953         * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
3954         (mips_cprestore_address_p): Likewise.
3955         (mips_save_gp_to_cprestore_slot): Likewise.
3956         (mips_restore_gp): Rename to...
3957         (mips_restore_gp_from_cprestore_slot): ...this.
3958         (mips_must_initialize_gp_p): Declare.
3959         (mips_emit_save_slot_move): Likewise.
3960         (mips_output_load_label): Return nothing.
3961         (mips_eh_uses): Declare.
3962         * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
3963         (TARGET_CPRESTORE_DIRECTIVE): New macro.
3964         (TARGET_ABSOLUTE_JUMPS): Likewise.
3965         (EH_USES): Likewise.
3966         (FIRST_PSEUDO_REGISTER): Update comment.
3967         (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
3968         (MIPS_CALL): ...here.
3969         (REGISTER_NAMES): Add $cprestore.
3970         * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
3971         Add load_label_length, has_inflexible_gp_insn_p,
3972         has_flexible_gp_insn_p, must_initialize_gp_p and
3973         must_restore_gp_when_clobbered_p.
3974         (mips_expand_call): Don't generate split instructions here.
3975         (mips_split_call): Update the call to mips_restore_gp after
3976         the above name change.
3977         (mips16_cfun_returns_in_fpr_p): Move earlier in file.
3978         (mips_find_gp_ref): New function.
3979         (mips_insn_has_inflexible_gp_ref_p): Likewise.
3980         (mips_cfun_has_inflexible_gp_ref_p): Likewise.
3981         (mips_insn_has_flexible_gp_ref_p): Likewise.
3982         (mips_cfun_has_flexible_gp_ref_p): Likewise.
3983         (mips_function_has_gp_insn): Delete.
3984         (mips_global_pointer): Drop the df_regs_ever_live_p check.
3985         Use the new functions above.  Only return INVALID_REGNUM
3986         for TARGET_ABSOLUTE_JUMPS.
3987         (mips_must_initialize_gp_p): New function.
3988         (mips_get_cprestore_base_and_offset): New function, extracted from...
3989         (mips_cprestore_slot): ...here.  Take a bool parameter.
3990         (mips_cfun_has_cprestore_slot_p): New function.
3991         (mips_cprestore_address_p): Likewise.
3992         (mips_save_gp_to_cprestore_slot): Likewise.
3993         (mips_restore_gp): Rename to...
3994         (mips_restore_gp_from_cprestore_slot): ...this.  Assert
3995         epilogue_completed.  Update the call to mips_cprestore_slot.
3996         Test cfun->machine->must_restore_gp_when_clobbered_p.
3997         (mips_direct_save_slot_move_p): New function.
3998         (mips_emit_save_slot_move): Likewise.
3999         (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
4000         of cfun->machine->global_pointer.
4001         (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
4002         (mips_save_reg): Use mips_emit_save_slot_move.
4003         (mips_expand_prologue): Set must_initialize_gp_p.
4004         Use mips_cfun_has_cprestore_slot_p.  Use gen_potential_cprestore
4005         for all cprestore saves.  Emit a use_cprestore instruction after
4006         setting up the cprestore slot.
4007         (mips_restore_reg): Use mips_emit_save_slot_move.
4008         (mips_process_load_label): New function.
4009         (mips_load_label_length): Likewise.
4010         (mips_output_load_label): Don't return asm: output it here instead.
4011         Use mips_process_load_label.
4012         (mips_adjust_insn_length): Adjust the length of branch instructions
4013         that have length MAX_PIC_BRANCH_LENGTH.
4014         (mips_output_conditional_branch): Update the call to
4015         mips_output_load_label.  Assume the branch target is OPERANDS[0]
4016         rather than OPERANDS[1].  Use MIPS_ABSOLUTE_JUMP for absolute jumps.
4017         (mips_output_order_conditional_branch): Swap the meaning of
4018         OPERANDS[0] and OPERANDS[1].
4019         (mips_variable_issue): Don't count ghost instructions.
4020         (mips_expand_ghost_gp_insns): New function.
4021         (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
4022         (mips_output_mi_thunk): Set must_initialize_gp_p.
4023         (mips_eh_uses): New function.
4024         * config/mips/predicates.md (cprestore_save_slot_operand)
4025         (cprestore_load_slot_operand): New predicates.
4026         * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
4027         (UNSPEC_MOVE_GP): Likewise.
4028         (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
4029         (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
4030         (CPRESTORE_SLOT_REGNUM): New register.
4031         (MAX_PIC_BRANCH_LENGTH): New constant.
4032         (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
4033         (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
4034         branches.  Fix commentary.
4035         (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
4036         Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
4037         Change type to "ghost".
4038         (loadgp_absolute_<mode>): Likewise.
4039         (loadgp_rtp_<mode>): Likewise.
4040         (copygp_mips16): Likewise.
4041         (loadgp_blockage): Remove redundant mode attribute.
4042         (potential_cprestore): New instruction.
4043         (cprestore): Turn into an unspec set.
4044         (use_cprestore): New instruction.
4045         (*branch_fp): Swap operands 0 and 1.  Remove redundant mode attribute.
4046         (*branch_fp_inverted): Likewise.
4047         (*branch_order<mode>): Likewise.
4048         (*branch_order<mode>_inverted): Likewise.
4049         (*branch_equality<mode>): Likewise.
4050         (*branch_equality<mode>_inverted): Likewise.
4051         (*branch_bit<bbv><mode>): Likewise.
4052         (*branch_bit<bbv><mode>_inverted): Likewise.
4053         (*branch_equality<mode>_mips16): Remove redundant mode.
4054         (jump): Turn into a define_expand.
4055         (*jump_absolute): New instruction.
4056         (*jump_pic): Likewise.
4057         (*jump_mips16): Rename previously-unnamed pattern.  Remove
4058         redundant mode attribute.
4059         (restore_gp): Split on epilogue_completed rather than
4060         reload_completed.  Change type to "ghost".
4061         (move_gp<mode>): New instruction.
4062         * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
4063         Remove redundant mode attribute.
4064         * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
4065         (bc1any4f, bc1any2t, bc1any2f): Likewise.
4066         (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
4067
4068 2009-09-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4069
4070         PR target/41210
4071         * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
4072         are returned in the same register (vs34 or v2) that Altivec vector
4073         types are returned in.
4074         (rs6000_libcall_value): Ditto.
4075
4076         PR target/41331
4077         * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
4078         instead of explicit addsi3/adddi3 calls.
4079         (rs6000_split_multireg_move): Ditto.
4080         (rs6000_emit_allocate_stack): Ditto.
4081         (rs6000_emit_prologue): Ditto.
4082         (rs6000_output_mi_thunk): Ditto.
4083
4084         * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
4085         size is 64 bits if we can use 64-bit registers.
4086
4087 2009-09-14  Bernd Schmidt  <bernd.schmidt@analog.com>
4088
4089         * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
4090         symbols.
4091
4092         From Jie Zhang <jie.zhang@analog.com>:
4093         * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
4094         save FP and RETS with saveall attribute.
4095         (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
4096         with saveall attribute.
4097
4098         * config/bfin/bfin.c (bfin_expand_builtin,
4099         case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
4100         operands.
4101
4102         From Jie Zhang <jie.zhang@analog.com>:
4103         * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
4104         before use in two places.
4105         * config/bfin/bfin.md (AREG): Define mode iterator.
4106         (reload_in, reload_out): Use mode iterator AREG.
4107
4108 2009-09-14  Richard Guenther  <rguenther@suse.de>
4109
4110         PR middle-end/41350
4111         * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
4112         EH personality path.
4113
4114 2009-09-13  Richard Guenther  <rguenther@suse.de>
4115             Rafael Avila de Espindola  <espindola@google.com>
4116
4117         * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
4118         (LANG_HOOKS_EH_PERSONALITY): Likewise.
4119         (LANG_HOOKS_INITIALIZER): Adjust.
4120         (lhd_pass_through_t): Declare.
4121         * langhooks.h (struct lang_hooks): Add eh_runtime_type and
4122         eh_personality.
4123         * langhooks.c (lhd_pass_through_t): New function.
4124         * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
4125         dwarf2out_begin_prologue): Use personality from current_function_decl.
4126         * expr.h (get_personality_function): Declare.
4127         * expr.c (get_personality_function): New function.
4128         (build_personality_function): Likewise.
4129         * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
4130         (eh_personality_libfunc): Remove.
4131         * optabs.c (build_libfunc_function): New function split out from ...
4132         (init_one_libfunc): ... here.
4133         * tree.h (DECL_FUNCTION_PERSONALITY): New.
4134         (tree_function_decl): Add personality.
4135         (lhd_gcc_personality): Declare.
4136         (build_personality_function): Likewise.
4137         * tree.c (gcc_eh_personality_decl): New.
4138         (lhd_gcc_personality): New function.
4139         * except.h (lang_eh_runtime_type): Remove.
4140         (enum eh_personality_kind): New.
4141         (build_personality_function): Declare.
4142         (function_needs_eh_personality): Declare.
4143         * except.c (lang_eh_runtime_type): Remove.
4144         (function_needs_eh_personality): New function.
4145         (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
4146         (sjlj_emit_function_enter, output_function_exception_table):
4147         Use personality from current_function_decl.
4148         * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
4149         * tree-inline.c (tree_can_inline_p): Do not inline across different
4150         EH personalities.
4151         (expand_call_inline): Likewise.  Adjust the callers EH personality.
4152         (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
4153         * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
4154         * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
4155         (c-parser.o): Likewise
4156         * c-tree.h (c_eh_initialized_p): Remove.
4157         (c_maybe_initialize_eh): Likewise.
4158         * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
4159         (finish_decl): Don't call c_maybe_initialize_eh.
4160         (c_eh_initialized_p): Remove.
4161         (c_maybe_initialize_eh): Likewise.
4162         * c-parser.c (c_parser_omp_construct): Likewise.
4163         (c_parse_file): Initialize exception handling.
4164
4165 2009-09-13  Kai Tietz  <kai.tietz@onevision.com>
4166
4167         * config.gcc (tm_file): Remove i386/biarch32.h
4168         for i?86-w64-mingw* case.
4169         (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
4170         support.
4171         * config.host: Set for x64 mingw the option
4172         use_long_long_for_widest_fast_int to yes.
4173
4174 2009-09-13  Eric Botcazou  <ebotcazou@adacore.com>
4175
4176         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
4177         * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
4178         (dbxout_begin_function): Likewise.
4179         * final.c (dwarf2_debug_info_emitted_p): New predicate.
4180         (final_start_function): Do not emit debug info if DECL_IGNORED_P is
4181         set on the function.
4182         (final_end_function): Likewise.
4183         (final_scan_insn): Likewise.
4184         (rest_of_handle_final): Likewise.
4185         * varasm.c (assemble_start_function): Likewise.
4186         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
4187
4188 2009-09-12  Jason Merrill  <jason@redhat.com>
4189
4190         * dbgcnt.c (dbg_cnt_process_single_pair): constify.
4191         * opts.c (common_handle_option): constify.
4192
4193 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
4194
4195         * doc/install.texi (avr): Remove obsolete reference site.
4196
4197 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
4198
4199         * doc/install.texi (Binaries): Adjust AIX link.
4200
4201 2009-09-12  Akim Demaille  <demaille@gostai.com>
4202
4203         * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
4204         Use an imperative sentence.
4205
4206 2009-09-11  Richard Henderson  <rth@redhat.com>
4207
4208         * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
4209         structure-name and has-tree-operands arguments; update all entries.
4210         * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
4211         update all entries.
4212         * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
4213         (gsstruct_code_size): New.
4214         (gss_for_code_): New.
4215         (gss_for_code): Remove.
4216         (gimple_size): Rewrite using gsstruct_code_size.
4217         (gimple_statement_structure): Move to gimple.h.
4218         * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
4219         (gss_for_code, gimple_statement_structure): New.
4220         (gimple_ops): Use new arrays; tidy.
4221
4222 2009-09-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4223
4224         * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
4225         operand to be a PLUS expression.
4226         * config/pa/pa.c (pa_secondary_reload): Likewise.
4227
4228 2009-09-11  Jakub Jelinek  <jakub@redhat.com>
4229
4230         * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
4231
4232         * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
4233         XEXP (in_rtx, 8).
4234
4235 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
4236
4237         From Jie Zhang <jie.zhang@analog.com>:
4238         * doc/extend.texi (node Function Attributes): Document l2
4239         function attribute.
4240         (node Blackfin Variable Attributes): Document l2 variable attributes.
4241
4242 2009-09-11  Loren J. Rittle  <ljrittle@acm.org>
4243
4244         * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
4245         to match the system compiler's configuration at inflection point.
4246         Add comment to remark a remaining difference with system compiler.
4247
4248         * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
4249         * configure: Regenerate.
4250
4251 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
4252
4253         From Jie Zhang <jie.zhang@analog.com>:
4254         * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
4255         (bfin_handle_l2_attribute): New.
4256         (bfin_attribute_table): Add l2 attribute.
4257
4258 2009-09-11  Michael Matz  <matz@suse.de>
4259
4260         PR middle-end/41275
4261         * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
4262         on the local_decls list.
4263
4264 2009-09-11  Alexandre Oliva  <aoliva@redhat.com>
4265
4266         PR debug/41276
4267         PR debug/41307
4268         * cselib.c (cselib_expand_value_rtx_cb): Document callback
4269         interface.
4270         (cselib_expand_value_rtx_1): Use callback for SUBREGs.  Adjust
4271         for VALUEs, to implement the documented interface.
4272         * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
4273         Adjust for VALUEs and anything else, to implement the
4274         documented interface.
4275
4276 2009-09-10  Nathan Froyd  <froydnj@codesourcery.com>
4277
4278         * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
4279         with actual SPE/paired vector modes before using 64-bit alignment.
4280         Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
4281
4282 2009-09-10  DJ Delorie  <dj@redhat.com>
4283
4284         * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
4285         emitted.
4286
4287         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
4288         * config/mep/mep.c (mep_legitimate_constant_p): New.
4289         * config/mep/mep-protos.h: Prototype it.
4290
4291 2009-09-10  Richard Henderson  <rth@redhat.com>
4292
4293         * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
4294
4295 2009-09-10  Jason Merrill  <jason@redhat.com>
4296
4297         * tree.c (chain_index): New fn.
4298         * tree.h: Declare it.
4299
4300 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4301
4302         * config/sol2-c.c (cmn_err_length_specs): Initialize
4303         scalar_identity_flag.
4304
4305 2009-09-10  Richard Henderson  <rth@redhat.com>
4306
4307         * tree.h (struct tree_decl_common): Move align member earlier;
4308         move label_decl_uid member ...
4309         (struct tree_label_decl): ... here.
4310         (LABEL_DECL_UID): Update to match.
4311
4312         * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
4313         not TDF_DETAILS.
4314
4315         * tree-cfg.c (gimple_redirect_edge_and_branch): Do
4316         gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
4317
4318         * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
4319         dest_prev if the edge is complex.
4320
4321         * tree-cfg.c (is_ctrl_stmt): Use a switch.
4322
4323         * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
4324         loop latch tests earlier.
4325
4326         * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
4327         before GIMPLE_RETURN, not after its predecessor; insert
4328         before GIMPLE_RESX.
4329
4330         * gimple-iterator.c (gimple_find_edge_insert_loc): Use
4331         gimple_seq_empty_p to test for no PHI nodes.
4332         * tree-cfg.c (split_critical_edges): Likewise.
4333
4334         * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
4335
4336 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
4337
4338         * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
4339         introduced by the VTA branch merge.
4340
4341 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
4342
4343         * ira-conflicts.c: Use fputs or putc instead of fprintf
4344         where appropriate.
4345         * cfg.c: Ditto.
4346         * toplev.c: Ditto.
4347         * tree-switch-conversion.c: Ditto.
4348
4349 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
4350
4351         * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
4352         introduced by the VTA branch merge.
4353
4354 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
4355
4356         Revert:
4357         2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
4358
4359         PR rtl-optimization/39779
4360         * expr.c (convert_modes): Return when mode == oldmode after
4361         CONST_INTs are processed.
4362
4363 2009-09-10  Nick Clifton  <nickc@redhat.com>
4364
4365         * config/mep/mep.c (mep_encode_section_info): Copy weakness
4366         attribute and referring decl when creating renamed symbol.
4367
4368 2009-09-10  Richard Guenther  <rguenther@suse.de>
4369
4370         PR middle-end/41257
4371         * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
4372         reachable nodes.
4373         (cgraph_finalize_compilation_unit): Compute reachability
4374         before emitting thunks.  Properly process aliases before
4375         possibly removing unreachable nodes.
4376
4377 2009-09-10  Richard Guenther  <rguenther@suse.de>
4378
4379         PR middle-end/41254
4380         * tree.c (struct free_lang_data_d): Add worklist member.
4381         (find_decls_types_r): Push onto the worklist instead of recursing.
4382         Handle TREE_BINFOs properly.
4383         (find_decls_types): New function wrapped around find_decls_types_r
4384         to process the worklist.
4385         (find_decls_types_in_eh_region): Use it.
4386         (find_decls_types_in_node): Likewise.
4387         (find_decls_types_in_var): Likewise.
4388         (free_lang_data_in_cgraph): Likewise.  Free the worklist.
4389         * tree.h (RECORD_OR_UNION_TYPE_P): New.
4390         (AGGREGATE_TYPE_P): Adjust.
4391
4392 2009-09-09  Jason Merrill  <jason@redhat.com>
4393
4394         * configure.ac: Check glibc version even if we have an in-tree
4395         assembler.
4396
4397 2009-09-09  Anthony Green  <green@moxielogic.com>
4398
4399         * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
4400         the constant 0 when appropriate.
4401         * config/moxie/constraints.md: Add constraint O.
4402
4403         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
4404         to pass up to 6 32-bit argument values in registers.
4405         (moxie_function_arg): Ditto.
4406         (moxie_arg_partial_bytes): Ditto.
4407         * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
4408         (REG_PARM_STACK_SPACE): Ditto.
4409         (FUNCTION_ARG_REGNO_P): Ditto.
4410
4411         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
4412         instruction to allocate stack space.
4413
4414 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
4415
4416         * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
4417         unnecessarily stringent constraints.  Fix address
4418         calculation in the splitters.
4419
4420 2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
4421
4422         PR rtl-optimization/39779
4423         * expr.c (convert_modes): Return when mode == oldmode after
4424         CONST_INTs are processed.
4425
4426 2009-09-09  Kai Tietz  <kai.tietz@onevision.com>
4427
4428         PR/41315
4429         * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
4430         (ix86_expand_prologue): Take frame.padding0 into logic of
4431         to_allocate checks.
4432         (ix86_expand_epilogue): Likewise.
4433
4434 2009-09-09  Jakub Jelinek  <jakub@redhat.com>
4435
4436         * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
4437         New variables.
4438         (SHLIB_LINK, SHLIB_INSTALL): Use them.
4439         * config/t-slibgcc-libgcc: New file.
4440         * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
4441
4442 2009-09-09  Martin Jambor  <mjambor@suse.cz>
4443
4444         PR tree-optimization/41089
4445         * tree-sra.c (find_var_candidates): Do not consider va_lists in
4446         early SRA.
4447
4448 2009-09-09  Richard Henderson  <rth@redhat.com>
4449
4450         * gimple.h (CASE_GIMPLE_OMP): New.
4451         (is_gimple_omp): Use it.
4452         * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
4453         (verify_gimple_debug): Likewise.
4454
4455 2009-09-09  Richard Guenther  <rguenther@suse.de>
4456
4457         PR tree-optimization/41101
4458         * tree-ssa-pre.c (maximal_set): Remove.
4459         (compute_antic_aux): Treat the maximal set as implicitly all ones.
4460         Defer all blocks we didn't visit at least one successor.
4461         (add_to_exp_gen): Do not add to the maximal set.
4462         (make_values_for_phi): Likewise.
4463         (compute_avail): Likewise.
4464         (init_pre): Do not allocate the maximal set.
4465         (execute_pre): Do not dump it.
4466
4467 2009-09-09  Martin Jambor  <mjambor@suse.cz>
4468
4469         * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
4470         an SSA_NAME rather than a is_gimple_variable.
4471
4472 2009-09-09  Richard Guenther  <rguenther@suse.de>
4473
4474         PR middle-end/41317
4475         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
4476         code dealing with plain pointer bases.
4477         (maybe_fold_offset_to_reference): Likewise.
4478         (maybe_fold_stmt_addition): Adjust.
4479
4480 2009-09-09  Richard Guenther  <rguenther@suse.de>
4481
4482         * tree.c (free_lang_data_in_type): Do not free the type variant
4483         chains.
4484         (free_lang_data): Merge char_type_node with its properly signed
4485         variant.
4486         (pass_ipa_free): Collect after freeing language specific data.
4487
4488 2009-09-09  Michael Matz  <matz@suse.de>
4489
4490         PR middle-end/41268
4491         * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
4492         SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
4493         * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
4494         to reflect reality.
4495
4496 2009-09-08  DJ Delorie  <dj@redhat.com>
4497
4498         * config/mep/mep.c (conversions[]): Add "ml" pattern.
4499
4500 2009-09-04  Jason Merrill  <jason@redhat.com>
4501
4502         * tree.c (tree_find_value): Remove.
4503         * tree.h: Remove prototype.
4504         * varasm.c (assemble_external): Use value_member instead.
4505
4506 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
4507
4508         * toplev.c (process_options): Choose default debugging type when
4509         gtoggle enables debug info and type is unset.
4510
4511 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
4512
4513         PR debug/41276
4514         PR debug/41307
4515         * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
4516         invalid subreg.
4517
4518 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
4519
4520         * configure: Rebuilt with modified libtool.m4.
4521
4522 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
4523
4524         PR debug/41229
4525         PR debug/41291
4526         PR debug/41300
4527         * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
4528
4529 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
4530
4531         * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
4532         (remove_statement): Likewise.
4533         (rewrite_use_nonlinear_expr): Adjust.
4534         (remove_unused_ivs): Collect SSA NAMEs to remove and call...
4535         * tree-ssa.c (release_defs_bitset): ... this.  New.
4536         * tree-flow.h (release_defs_bitset): Declare.
4537
4538 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
4539
4540         PR debug/41232
4541         * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
4542         in the middle block.
4543
4544 2009-09-08  Kai Tietz  <kai.tietz@onevision.com>
4545
4546         * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
4547         via intptr_t to long type.
4548         (insert_operand_rank): Cast long type via intptr_t to
4549         pointer type.
4550         * genattrtab.c (RTL_HASH): Use intptr_t to cast from
4551         pointer to scalar.
4552         * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
4553         from pointer to unsigned via uintptr_t.
4554
4555         * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
4556         uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
4557         and HAVE_INTPTR_T.
4558         * configure: Regenerated.
4559         * config.in: Regenerated
4560         * system.h (stdint.h): Add include.
4561         (inttypes.h): Likewise.
4562         * Makefile.in (aclocal): Add config/stdint.m4.
4563         * aclocal.m4: Regenerated.
4564
4565 2009-09-08  Bernd Schmidt  <bernd.schmidt@analog.com>
4566
4567         * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
4568         variables.
4569         (note_np_check_stores): New function.
4570         (harmless_null_pointer_p): New function.
4571         (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH.  Callers
4572         changed.  Take into account whether we're in the shadow of a condjump
4573         that tested NP_REG for NULL.
4574         Lose all code that tested for SEQUENCEs.
4575         (workaround_speculation): Avoid inserting NOPs for loads that are
4576         either always executed or a NULL pointer.
4577
4578 2009-09-08  Jan Hubicka  <jh@suse.cz>
4579
4580         * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
4581         * params.def (early-inlining-insns): Likewise.
4582
4583 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
4584
4585         PR rtl-optimization/41239
4586         * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
4587         * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
4588         lists.
4589         * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
4590         across calls, as the calls might not always return normally.
4591         (call_may_noreturn_p): New function.
4592         (deps_analyze_insn): Update last_function_call_may_noreturn list.
4593         (init_deps): Initialize it.
4594         (remove_from_deps): Also remove calls from
4595         last_function_call_may_noreturn list.
4596
4597 2009-09-07  Richard Henderson  <rth@redhat.com>
4598
4599         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
4600         more VR->OPERANDS than LHS operands.  Free LHS before returning.
4601
4602 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
4603
4604         * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
4605         (attr "addrtype"): New member "spreg".
4606         Use it if mem_spfp_address_operand is true for the address.
4607         (attr "type"): New entry "stall".
4608         (cpu_unit "load"): New.
4609         (insn_reservations "load32", "loadp", "loadi"): Add reservation of
4610         "load".
4611         (insn_reservation "loadsp"): New.
4612         (insn_reservation "load_stall1"): New.
4613         (insn_reservation "load_stall3"): New.
4614         (stall): New insn.
4615         * config/bfin/predicates.md (const1_operand, const3_operand): New.
4616         (mem_p_address_operand): Exclude stack and frame pointer based
4617         addresses.
4618         (mem_spfp_address_operand): New; match them here.
4619         * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
4620         (bfin_reorg): Call it if scheduling insns.
4621         (bfin_gen_bundles): Remove dummy insns created by
4622         add_sched_insns_for_speculation.
4623
4624         From Jie Zhang <jie.zhang@analog.com>:
4625         * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
4626         bfin_si_revision, bfin_workarounds): Move these ...
4627         * config/bfin/bfin.h: ... here.
4628
4629         From Mike Frysinger  <michael.frysinger@analog.com>
4630         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
4631         BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
4632         * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
4633         bf547m, bf548m, and bf549m.
4634         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
4635         for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
4636         __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
4637         BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
4638         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4639         bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
4640         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4641         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4642         * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
4643         bf542m, bf544m, bf547m, bf548m, and bf549m.
4644
4645         From Jie Zhang <jie.zhang@analog.com>:
4646         * config/bfin/predicates.md (p_register_operand): New predicate.
4647         (dp_register_operand): New predicate.
4648         * config/bfin/bfin-protos.h (WA_05000074): Define.
4649         (ENABLE_WA_05000074): Define.
4650         * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
4651         (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
4652         * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
4653         (define_attr addrtype): Allow load/store register to be P register.
4654         (define_attr storereg): New.
4655         (define_cpu_unit anomaly_05000074): New.
4656         (define_insn_reservation dsp32shiftimm): New.
4657         (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
4658         (define_insn_reservation loadp): Cannot use slot2.
4659         (define_insn_reservation loadsp): Cannot use slot2.
4660         (define_insn_reservation storep): Cannot use slot2. Does not
4661         apply when working around 05000074.
4662         (define_insn_reservation storep_anomaly_05000074): New.
4663         (define_insn_reservation storei): Does not apply when working
4664         around 05000074.
4665         (define_insn_reservation storei_anomaly_05000074): New.
4666         (define_attr length): Add dsp32shiftimm case.
4667         (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
4668         ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
4669         movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
4670         ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
4671         Set type as dsp32shiftimm for dsp32shiftimm alternatives.
4672
4673 2009-09-07  Martin Jambor  <mjambor@suse.cz>
4674
4675         PR middle-end/41282
4676         * tree-sra.c (create_artificial_child_access): Return NULL if
4677         build_ref_for_offset fails.
4678         (propagate_subacesses_accross_link): Allow build_ref_for_offset
4679         and create_artificial_child_access to fail.
4680
4681 2009-09-06  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
4682
4683         PR c++/41214
4684         * unwind-dw2.c (uw_init_context_1): Mark noinline.
4685         * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
4686         * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
4687
4688 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
4689
4690         * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
4691         block, ensure it has an exit edge.  Emit a barrier after a jump.
4692
4693 2009-09-07  Nick Clifton  <nickc@redhat.com>
4694
4695         * gcc.c (this_is_linker_script): New variable.  Like
4696         this_is_library_file but for the %T constructor.
4697         (end_going_arg): If this_is_linker_script is set then locate the
4698         script and insert a --script switch before it
4699         (do_spec_2): Initialise this_is_linker_script.
4700         (do_spec_1): Likewise.  Handle %T construct.
4701         (eval_spec_function): Preserve this_is_linker_script.
4702         * doc/invoke.texi: Document %T construct in spec files.
4703         * config/m32c/m32c.h (LIB_SPEC): Use it.
4704
4705 2009-09-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4706
4707         * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
4708         * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
4709         when volatile flag is set.
4710         * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
4711
4712 2009-09-06  Eric Botcazou  <ebotcazou@adacore.com>
4713
4714         PR bootstrap/41241
4715         * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
4716         (combine_stack_adjustments_for_block): Allow insns between stack
4717         adjustments and stores with corresponding pre-(dec|inc)rement or
4718         pre-modify operation.
4719
4720 2009-09-06  Jakub Jelinek  <jakub@redhat.com>
4721
4722         PR bootstrap/41241
4723         * combine-stack-adj.c (struct csa_memlist): Rename to...
4724         (struct csa_reflist): ... this.  Rename mem field to ref.
4725         (free_csa_memlist): Rename to...
4726         (free_csa_reflist): ... this.
4727         (record_one_stack_memref): Rename to...
4728         (record_one_stack_ref): ... this.  Handle also REG_P.
4729         (try_apply_stack_adjustment): Handle also REG_P.
4730         (struct record_stack_memrefs_data): Rename to...
4731         (struct record_stack_refs_data): ... this.  Rename memlist field to
4732         reflist.
4733         (record_stack_memrefs): Rename to...
4734         (record_stack_refs): ... this.  For DEBUG_INSNs keep traversing
4735         subexpressions instead of failing when a MEM contains SP references.
4736         For SP itself in DEBUG_INSNs queue it also onto reflist chain.
4737         (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
4738
4739 2009-09-06  Richard Guenther  <rguenther@suse.de>
4740
4741         PR middle-end/41144
4742         * tree.c (build_array_type): Do not record types marked
4743         with structural equality in the canonical type hashtable.
4744
4745 2009-09-06  Richard Guenther  <rguenther@suse.de>
4746
4747         PR middle-end/41261
4748         * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
4749
4750 2009-09-05  Richard Guenther  <rguenther@suse.de>
4751
4752         PR middle-end/41181
4753         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
4754
4755 2009-09-05  Richard Guenther  <rguenther@suse.de>
4756
4757         PR debug/41273
4758         * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
4759
4760 2009-09-05  Richard Guenther  <rguenther@suse.de>
4761
4762         PR middle-end/41271
4763         * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
4764         before comparing function argument types.
4765
4766 2009-09-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4767
4768         PR target/41024
4769         * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
4770         the assembler.
4771
4772 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
4773
4774         Revert:
4775         2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
4776
4777         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
4778         locators before emit_insn is called.
4779
4780 2009-09-04  Vladimir Makarov  <vmakarov@redhat.com>
4781
4782         PR bootstrap/41241
4783         * ira.c (update_equiv_reg): Revert my previous patch for the PR.
4784         * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
4785         (reginfo_init): Don't call allocate_reg_info.
4786
4787 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
4788
4789         PR target/41262
4790         * config/alpha/alpha.c (alpha_does_function_need_gp): Use
4791         NONDEBUG_INSN_P instead of INSN_P.
4792
4793 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
4794
4795         PR debug/41225
4796         * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
4797
4798 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
4799
4800         PR target/41252
4801         * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
4802         pattern of the split.
4803
4804 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
4805
4806         * toplev.c (process_options): Move setter of flag_var_tracking
4807         before other tests that depend on it.  Move down setter of
4808         flag_rename_registers.  Don't enable var-tracking-assignments
4809         by default if selective scheduling is enabled.  Warn if both
4810         are enabled.
4811
4812 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
4813
4814         * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
4815         comment.  Use switch statement to catch overlaps between rtx
4816         and tree codes.  Accept FUNCTION_DECLs in addition to those in...
4817         (IS_DECL_CODE): ... here. Remove.
4818         (check_value_is_not_decl): Remove.
4819         (dv_from_decl, dv_from_value): Check after conversion.
4820
4821 2009-09-04  Richard Guenther  <rguenther@suse.de>
4822
4823         PR middle-end/41257
4824         * (cgraph_finalize_compilation_unit): Move finalizing aliases
4825         after emitting tunks.  Move emitting thunks and ctors from ...
4826         (cgraph_optimize): ... here.  Remove redundant
4827         cgraph_analyze_functions.
4828         * varasm.c (find_decl_and_mark_needed): Remove no longer
4829         necessary check.
4830         (finish_aliases_1): Adjust check for thunk aliases.
4831
4832 2009-09-04  Daniel Gutson  <dgutson@codesourcery.com>
4833
4834         * config/arm/arm.md (ctzsi2): Added braces
4835         to avoid warning that broke booststrap.
4836
4837 2009-09-04  Martin Jambor  <mjambor@suse.cz>
4838
4839         PR tree-optimization/41112
4840         * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
4841         handle variable-bounded arrays.
4842         (expr_with_var_bounded_array_refs_p): New function.
4843         (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
4844
4845 2009-09-04  Wolfgang Gellerich  <gellerich@de.ibm.com>
4846
4847         * config/s390/2097.md: Removed two incorrect bypasses.
4848         (z10_fsimpdf): Fixed latency.
4849         (z10_fhex): New insn_reservation.
4850         (z10_floaddf): Fixed latency.
4851         (z10_floadsf): Fixed latency.
4852         (z10_ftrunctf): Fixed latency.
4853         (z10_ftruncdf): Fixed latency.
4854         * config/s390/s390.c (z10_cost): Fixed values.
4855         (s390_adjust_priority): Added z10 path.
4856         * config/s390/s390.md (type): Added fhex.
4857         (*mov<mode>_64dfp): Updated type attribute.
4858         (*mov<mode>_64): Updated type attribute.
4859         (*mov<mode>_31): Updated type attribute.
4860         (*mov<mode>"): Likewise.
4861         * config/s390/2084.md (x_fsimpdf): Updated condition.
4862
4863 2009-09-04  Andreas Krebbel  <krebbel1@de.ibm.com>
4864
4865         * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
4866         RTXs in the predicate for operand 1.
4867
4868 2009-09-03  Daniel Gutson  <dgutson@codesourcery.com>
4869
4870         * config/arm/arm.md (UNSPEC_RBIT): New constant.
4871         (rbitsi2): New insn.
4872         (ctzsi2): New expand.
4873         * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
4874
4875 2009-09-03  Martin Jambor  <mjambor@suse.cz>
4876
4877         * tree-sra.c (duplicate_expr_for_different_base): Removed.
4878         (create_artificial_child_access): Use build_ref_for_offset instead
4879         of duplicate_expr_for_different_base.
4880         (propagate_subacesses_accross_link): Likewise.
4881
4882 2009-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
4883
4884         * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
4885         of INSN_P.
4886         (mips16e_collect_argument_saves): Skip debug instructions.
4887         (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
4888         (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
4889         (r10k_insert_cache_barriers): Likewise.
4890         (mips_reorg_process_insns): Likewise.
4891
4892 2009-09-03  Vladimir Makarov  <vmakarov@redhat.com>
4893
4894         PR bootstrap/41241
4895         * ira.c (update_equiv_reg): Remove check on class likely spill.
4896
4897 2009-09-03  Jakub Jelinek  <jakub@redhat.com>
4898
4899         PR debug/41236
4900         * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
4901         SIGN_EXTEND or ZERO_EXTEND.  Don't assume there is a REG inside of
4902         it or SUBREG.
4903
4904         PR debug/41238
4905         * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
4906         the stack slot if it is passed by invisible reference.
4907         * var-tracking.c (vt_add_function_parameters): Handle arguments passed
4908         by invisible reference.
4909
4910 2009-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
4911
4912         * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
4913         * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
4914         * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
4915         0.
4916         * config/bfin/sync.md: New file.
4917         * config/bfin/bfin.md: Include it.
4918         (UNSPEC_ATOMIC): New.
4919         (UNSPEC_ONES): Provide a unique number.
4920
4921         From Jie Zhang <jie.zhang@analog.com>:
4922         * config/bfin/bfin.c (ret_regs): New.
4923         (must_save_fp_p): Don't return true because of frame_pointer_needed.
4924         (must_save_rets_p): New.
4925         (n_regs_saved_by_prologue): Use must_save_rets_p instead of
4926         current_function_is_leaf.
4927         (do_link): Likewise.
4928         (do_unlink): Likewise.
4929         (expand_interrupt_handler_prologue): Use ret_regs array.
4930         (expand_interrupt_handler_epilogue): Use ret_regs array and
4931         pass return register to gen_return_internal.
4932         (bfin_expand_epilogue): Pass return register to
4933         gen_return_internal.
4934         (bfin_expand_call): Explicitly clobber RETS.
4935         * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
4936         * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
4937         call_insn_fdpic, call_value_insn_fdpic, call_symbol,
4938         call_value_symbol, call_insn, call_value_insn): Explicitly clobber
4939         RETS.
4940         (return_internal): Take a reg rtx rather than the register number.
4941
4942 2009-09-03  H.J. Lu  <hongjiu.lu@intel.com>
4943
4944         * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
4945         when comparing against estimated_loop_iterations_int return.
4946
4947 2009-09-03  Richard Guenther  <rguenther@suse.de>
4948
4949         * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
4950         eh_personality_libfunc.
4951
4952 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
4953
4954         * tree-parloops.c (separate_decls_in_region): Add space.
4955
4956 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
4957
4958         * tree-parloops.c (separate_decls_in_region): Change the condition
4959         checking if there are reductions in the loop.
4960
4961 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
4962
4963         PR tree-optimization/38275
4964         * tree-parloops.c (parallelize_loops): Replace profitability condition
4965         for expected number of iterations.
4966
4967 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
4968
4969         * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
4970         (bootstrap-debug): Explain conditions in which it becomes default.
4971         (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
4972         make it add to it.
4973
4974 2009-09-03  Namhyung Kim  <namhyung@gmail.com>
4975
4976         * doc/invoke.texi (Optimize Options): Move
4977         -finline-small-functions to the -O2 list.
4978
4979 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
4980
4981         * toplev.c (process_options): Enable var-tracking-assignments
4982         by default if var-tracking is enabled.
4983
4984 2009-09-02  David Daney  <ddaney@caviumnetworks.com>
4985
4986         * cfgbuild.c (find_bb_boundaries): Split blocks containing a
4987         barrier.
4988         * emit-rtl.c (prev_nonnote_insn_bb): New function.
4989         * rtl.h (prev_nonnote_insn_bb): Declare it.
4990
4991 2009-09-03  Diego Novillo  <dnovillo@google.com>
4992
4993         * cgraph.c (cgraph_node_for_decl): New.
4994         * cgraph.h (cgraph_node_for_decl): Declare.
4995         * tree.c (host_integerp): Return 0 if T is NULL.
4996
4997 2009-09-03  Diego Novillo  <dnovillo@google.com>
4998
4999         * tree.h (struct alias_pair): Move from varasm.c.
5000         (alias_pairs): Likewise.
5001         (TYPE_MAXVAL): Define.
5002         (TYPE_MINVAL): Define.
5003         (iterative_hash_host_wide_int): Declare.
5004         (remove_unreachable_alias_pairs): Declare.
5005         * tree-pass.h (pass_ipa_free_lang_data): Declare.
5006         * diagnostic.c (default_diagnostic_starter): Make extern.
5007         (default_diagnostic_finalizer): Make extern.
5008         * diagnostic.h (default_diagnostic_starter): Declare.
5009         (default_diagnostic_finalizer): Declare.
5010         (default_tree_printer): Declare.
5011         * toplev.c (default_tree_printer): Make extern.
5012
5013 2009-09-03  Richard Guenther  <rguenther@suse.de>
5014             Diego Novillo  <dnovillo@google.com>
5015
5016         * cgraph.c (cgraph_add_new_function): Remove gimplification.
5017         * cgraphunit.c (cgraph_expand_function): Do not emit
5018         associated thunks from here.
5019         (cgraph_emit_thunks): New.
5020         (cgraph_optimize): Call it.
5021         Return if any IPA pass finds an error.
5022         * varasm.c (finish_aliases_1): Ignore errorneous aliases used
5023         by thunks.
5024
5025 2009-09-03  Simon Baldwin  <simonb@google.com>
5026             Rafael Espindola  <espindola@google.com>
5027             Richard Guenther  <rguenther@suse.de>
5028             Doug Kwan  <dougkwan@google.com>
5029             Diego Novillo  <dnovillo@google.com>
5030
5031         * tree.c: Include tree-pass.h, langhooks-def.h,
5032         diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
5033         (free_lang_data_in_type): New.
5034         (need_assembler_name_p): New.
5035         (free_lang_data_in_block): New.
5036         (free_lang_data_in_decl): New.
5037         (struct free_lang_data_d): New.
5038         (add_tree_to_fld_list): New.
5039         (find_decls_types_r): New.
5040         (get_eh_types_for_runtime): New.
5041         (find_decls_types_in_eh_region): New.
5042         (find_decls_types_in_node): New.
5043         (find_decls_types_in_var): New.
5044         (free_lang_data_in_cgraph): New.
5045         (free_lang_data): New.
5046         (gate_free_lang_data): New.
5047         (pass_ipa_free_lang_data): New.
5048
5049 2009-09-03  Diego Novillo  <dnovillo@google.com>
5050
5051         * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
5052         * langhooks.h (struct lang_hooks): Add field free_lang_data.
5053         (lang_hooks): Remove const qualifier.
5054         * ipa.c (cgraph_remove_unreachable_nodes): Call
5055         remove_unreachable_alias_pairs.
5056         * except.c (add_type_for_runtime): Check if TYPE has
5057         already been converted.
5058         (lookup_type_for_runtime): Likewise.
5059         (check_handled): Handle converted types.
5060         * varasm.c (remove_unreachable_alias_pairs): New.
5061         * gimple.c: Include demangle.h.
5062         (gimple_decl_printable_name): New.
5063         (gimple_fold_obj_type_ref): New.
5064         * gimple.h (gimple_decl_printable_name): Declare.
5065         (gimple_fold_obj_type_ref): Declare.
5066         * passes.c (init_optimization_passes): Add pass
5067         pass_ipa_free_lang_data.
5068         * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
5069         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
5070
5071 2009-09-03  Diego Novillo  <dnovillo@google.com>
5072
5073         * c-lang.c (lang_hooks): Remove const qualifier.
5074
5075 2009-09-02  Loren James Rittle  <ljrittle@acm.org>
5076
5077         * doc/install.texi (*-*-freebsd*): Update target information.
5078
5079 2009-09-02  Anatoly Sokolov  <aesok@post.ru>
5080
5081         * hard-reg-set.h (call_fixed_regs): Remove.
5082         * reginfo.c (call_fixed_regs): Remove.
5083         (init_reg_sets_1): Remove initialization of call_fixed_regs.
5084         (globalize_reg): Don't use call_fixed_regs.
5085         * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
5086         call_fixed_regs.
5087
5088 2009-09-01  Michael Matz  <matz@suse.de>
5089
5090         * expr.h (emit_storent_insn, expand_expr_real_1,
5091         expand_expr_real_2): Declare.
5092         * expr.c (emit_storent_insn, expand_expr_real_1,
5093         expand_expr_real_2): Export.
5094         (store_expr): Setting and evaluating dont_return_target is useless.
5095         (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
5096         LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
5097         * except.c (expand_resx_expr): Rename to ...
5098         (expand_resx_stmt): ... this.  Rewrite to take gimple statement.
5099         * except.h (expand_resx_stmt): Declare.
5100         * stmt.c: Add include gimple.h
5101         (expand_asm_expr): Rename to ...
5102         (expand_asm_stmt): ... this. Rewrite to take gimple statement.
5103         (expand_case): Rewrite to take gimple statement.
5104         * tree.h (expand_asm_stmt): Declare.
5105         (expand_case): Change prototype.
5106         * Makefile.in (stmt.o): Depend on gimple.h.
5107         * builtins.c (expand_builtin_synchronize): Build gimple asm
5108         statement, not an ASM_EXPR.
5109         * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
5110         gimple_to_tree, release_stmt_tree): Remove.
5111         (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
5112         ggc_free, but hold comparison code and operands separately.
5113         Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
5114         (expand_call_stmt, expand_gimple_stmt_1,
5115         expand_gimple_stmt): New helpers.
5116         (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
5117         release_stmt_tree.  Call expand_gimple_stmt instead.
5118         (expand_gimple_basic_block): Ditto.
5119
5120         * calls.c (emit_call_1): Don't look at EH regions here, make
5121         fntree parameter useless.
5122         (expand_call): New local rettype for TREE_TYPE(exp), use it
5123         throughout.  Remove local p, use addr instead.
5124         Don't look at EH regions here.
5125
5126 2009-09-02  Vladimir Makarov  <vmakarov@redhat.com>
5127
5128         * doc/invoke.texi (-fsched-pressure): Document it.
5129         (-fsched-reg-pressure-heuristic): Remove it.
5130
5131         * reload.c (ira.h): Include.
5132         (find_reloads): Add choosing reload on number of small spilled
5133         classes.
5134
5135         * haifa-sched.c (ira.h): Include.
5136         (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
5137         saved_reg_pressure, curr_reg_live, saved_reg_live,
5138         region_ref_regs): New variables.
5139         (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
5140         initiate_reg_pressure_info, setup_ref_regs,
5141         initiate_bb_reg_pressure_info, save_reg_pressure,
5142         restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
5143         functions.
5144         (setup_insn_reg_pressure_info): New function.
5145         (rank_for_schedule): Add pressure checking and insn issue time.
5146         Remove comparison of insn reg weights.
5147         (ready_sort): Set insn reg pressure info.
5148         (update_register_pressure, setup_insn_max_reg_pressure,
5149         update_reg_and_insn_max_reg_pressure,
5150         sched_setup_bb_reg_pressure_info): New functions.
5151         (schedule_insn): Add code for printing and updating reg pressure info.
5152         (find_set_reg_weight, find_insn_reg_weight): Remove.
5153         (ok_for_early_queue_removal): Do nothing if pressure_only_p.
5154         (debug_ready_list): Print reg pressure info.
5155         (schedule_block): Ditto.  Check insn issue time.
5156         (sched_init): Set up sched_pressure_p.  Allocate and set up some
5157         reg pressure related info.
5158         (sched_finish): Free some reg pressure related info.
5159         (fix_tick_ready): Make insn always ready if pressure_p.
5160         (init_h_i_d): Don't call find_insn_reg_weight.
5161         (haifa_finish_h_i_d): Free insn reg pressure info.
5162
5163         * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
5164         ira_memory_move_cost, ira_class_hard_regs,
5165         ira_class_hard_regs_num, ira_no_alloc_regs,
5166         ira_available_class_regs, ira_reg_class_cover_size,
5167         ira_reg_class_cover, ira_class_translate): Move to ira.h.
5168
5169         * ira-lives.c (single_reg_class): Check mode to find how many
5170         registers are necessary for operand.
5171         (ira_implicitly_set_insn_hard_regs): New.
5172
5173         * common.opt (fsched-pressure): New options.
5174         (fsched-reg-pressure-heuristic): Remove.
5175
5176         * ira.c (setup_eliminable_regset): Rename to
5177         ira_setup_eliminable_regset.  Make it external.
5178         (expand_reg_info): Pass cover class to setup_reg_classes.
5179         (ira): Call resize_reg_info instead of allocate_reg_info.
5180
5181         * sched-deps.c: Include ira.h.
5182         (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
5183         (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
5184         reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
5185         mark_insn_hard_regno_birth, mark_insn_reg_birth,
5186         mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
5187         mark_insn_reg_store, mark_insn_reg_clobber,
5188         setup_insn_reg_pressure_info): New.
5189         (sched_analyze_1): Update implicit_reg_pending_uses.
5190         (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
5191         Use them to create dependencies.  Set insn reg uses and pressure
5192         info.  Process reg_pending_uses in one place.
5193         (free_deps): Free implicit sets.
5194         (remove_from_deps): Remove implicit sets if necessary.  Check
5195         implicit sets when clearing reg_last_in_use.
5196         (init_deps_global): Clear implicit_reg_pending_clobbers and
5197         implicit_reg_pending_uses.
5198
5199         * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
5200         ira_memory_move_cost, ira_class_hard_regs,
5201         ira_class_hard_regs_num, ira_no_alloc_regs,
5202         ira_available_class_regs, ira_reg_class_cover_size,
5203         ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
5204         (ira_setup_eliminable_regset, ira_set_pseudo_classes,
5205         ira_implicitly_set_insn_hard_regs): New prototypes.
5206
5207         * ira-costs.c (pseudo_classes_defined_p, allocno_p,
5208         cost_elements_num): New variables.
5209         (allocno_costs, total_costs): Rename to costs and
5210         total_allocno_costs.
5211         (COSTS_OF_ALLOCNO): Rename to COSTS.
5212         (allocno_pref): Rename to pref.
5213         (allocno_pref_buffer): Rename to pref_buffer.
5214         (common_classes): Rename to regno_cover_class.
5215         (COST_INDEX): New.
5216         (record_reg_classes): Set allocno attributes only if allocno_p.
5217         (record_address_regs): Ditto.  Use COST_INDEX instead of ALLOCNO_NUM.
5218         (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
5219         and COSTS_OF_ALLOCNO.
5220         (print_costs): Rename to print_allocno_costs.
5221         (print_pseudo_costs): New.
5222         (process_bb_node_for_costs): Split into 2 functions with new
5223         function process_bb_for_costs.  Pass BB to process_bb_for_costs.
5224         (find_allocno_class_costs): Rename to find_costs_and_classes.  Add
5225         new parameter dump_file.  Use cost_elements_num instead of
5226         ira_allocnos_num.  Make one iteration if preferred classes were
5227         already calculated for scheduler.  Make 2 versions of code
5228         depending on allocno_p.
5229         (setup_allocno_cover_class_and_costs): Check allocno_p.  Use
5230         regno_cover_class and COSTS instead of common_classes and
5231         COSTS_OF_ALLOCNO.
5232         (init_costs, finish_costs): New.
5233         (ira_costs): Set up allocno_p and cost_elements_num.  Call
5234         init_costs and finish_costs.
5235         (ira_set_pseudo_classes): New.
5236
5237         * rtl.h (allocate_reg_info): Remove.
5238         (resize_reg_info): Change return type.
5239         (reg_cover_class): New.
5240         (setup_reg_classes): Add new parameter.
5241
5242         * sched-int.h (struct deps_reg): New member implicit_sets.
5243         (sched_pressure_p, sched_regno_cover_class): New external definitions.
5244         (INCREASE_BITS): New macro.
5245         (struct reg_pressure_data, struct reg_use_data): New.
5246         (struct _haifa_insn_data): Remove reg_weight.  Add members
5247         reg_pressure, reg_use_list, reg_set_list, and
5248         reg_pressure_excess_cost_change.
5249         (struct deps): New member implicit_sets.
5250         (pressure_p): New variable.
5251         (COVER_CLASS_BITS, INCREASE_BITS): New macros.
5252         (struct reg_pressure_data, struct reg_use_data): New.
5253         (INSN_REG_WEIGHT): Remove.
5254         (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
5255         INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
5256         (sched_init_region_reg_pressure_info,
5257         sched_setup_bb_reg_pressure_info): New prototypes.
5258
5259         * reginfo.c (struct reg_pref): New member coverclass.
5260         (reg_cover_class): New function.
5261         (reginfo_init, pass_reginfo_init): Move after free_reg_info.
5262         (reg_info_size): New variable.
5263         (allocate_reg_info): Make static.  Setup reg_info_size.
5264         (resize_reg_info): Use reg_info_size.  Return flag of resizing.
5265         (setup_reg_classes): Add a new parameter.  Setup cover class too.
5266
5267         * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
5268         the dependencies.
5269
5270         * sched-rgn.c (deps_join): Set up implicit_sets.
5271         (schedule_region): Set up region and basic blocks pressure
5272         relative info.
5273
5274         * passes.c (init_optimization_passes): Move
5275         pass_subregs_of_mode_init before pass_sched.
5276
5277 2009-09-02  Martin Jambor  <mjambor@suse.cz>
5278
5279         * tree-sra.c (struct access): New field grp_hint.
5280         (dump_access): Dump grp_hint.
5281         (sort_and_splice_var_accesses): Set grp_hint if a group is read
5282         multiple times.
5283         (analyze_access_subtree): Only scalarize accesses with grp_hint set or
5284         those which have been specifically read and somehow written to.
5285         (propagate_subacesses_accross_link): Set grp_hint of right child and
5286         also possibly of the left child.
5287
5288 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
5289
5290         * tree-object-size.c (addr_object_size): Always use object_size_type
5291         0 or 2 when determining the pointer pointed object size.
5292
5293 2009-09-02  Richard Guenther  <rguenther@suse.de>
5294
5295         Revert
5296         2009-08-31  Richard Guenther  <rguenther@suse.de>
5297
5298         * builtins.c (fold_builtin_memory_op): Use the alias oracle
5299         to query if the memory regions for memmove overlap.
5300         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
5301         asserts on pointers, instead deal with odd trees.
5302         (ptr_derefs_may_alias_p): Likewise.
5303         (refs_may_alias_p_1): Constructor bases also never alias.
5304
5305 2009-08-01  Christian Bruel  <christian.bruel@st.com>
5306
5307         Revert:
5308         2009-07-31  Christian Bruel  <christian.bruel@st.com>
5309         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
5310
5311 2009-09-01  Alexandre Oliva  <aoliva@redhat.com>
5312
5313         * doc/invoke.texi (-fvar-tracking-assignments): New.
5314         (-fvar-tracking-assignments-toggle): New.
5315         (-fdump-final-insns=file): Mark filename as optional.
5316         (--param min-nondebug-insn-uid): New.
5317         (-gdwarf-@{version}): Mention version 4.
5318         * opts.c (common_handle_option): Accept it.
5319         * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
5320         * regrename.c (regrename_optimize): Drop last.  Don't count debug
5321         insns as uses.  Don't reject change because of debug insn.
5322         (do_replace): Reject DEBUG_INSN as chain starter.  Take base_regno
5323         from the chain starter, and check for inexact matches in DEBUG_INSNS.
5324         (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
5325         (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
5326         * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
5327         * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
5328         * doc/gimple.texi (is_gimple_debug): New.
5329         (gimple_debug_bind_p): New.
5330         (is_gimple_call, gimple_assign_cast_p): End sentence with period.
5331         * doc/install.texi (bootstrap-debug): More details.
5332         (bootstrap-debug-big, bootstrap-debug-lean): Document.
5333         (bootstrap-debug-lib): More details.
5334         (bootstrap-debug-ckovw): Update.
5335         (bootstrap-time): New.
5336         * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
5337         (insert_phi_nodes_for): Insert debug stmts.
5338         (rewrite_stmt): Take iterator.  Insert debug stmts.
5339         (rewrite_enter_block): Adjust.
5340         (maybe_replace_use_in_debug_stmt): New.
5341         (rewrite_update_stmt): Use it.
5342         (mark_use_interesting): Return early for debug stmts.
5343         * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
5344         stmts before replacing stmt.
5345         (move_computations_stmt): Likewise.
5346         * ira-conflicts.c (add_copies): Skip debug insns.
5347         * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
5348         (regstat_bb_compute_ri): Skip debug insns.
5349         * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
5350         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
5351         check_loop_closed_ssa_stmt): Skip debug stmts.
5352         * tree-tailcall.c (find_tail_calls): Likewise.
5353         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
5354         * tree.h (MAY_HAVE_DEBUG_STMTS): New.
5355         (build_var_debug_value_stat): Declare.
5356         (build_var_debug_value): Define.
5357         (target_for_debug_bind): Declare.
5358         * reload.c (find_equiv_reg): Skip debug insns.
5359         * rtlanal.c (reg_used_between_p): Skip debug insns.
5360         (side_effects_p): Likewise.
5361         (canonicalize_condition): Likewise.
5362         * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
5363         insns never depend on debug insns.
5364         (create_ddg_dep_no_link): Likewise.
5365         (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
5366         Don't add inter-loop dependencies for debug insns.
5367         (build_intra_loop_deps): Likewise.
5368         (create_ddg): Count debug insns.
5369         * ddg.h (struct ddg::num_debug): New.
5370         (num_backargs): Pair up with previous int field.
5371         * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
5372         -fcompare-debug-second.
5373         * final.c (get_attr_length_1): Skip debug insns.
5374         (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
5375         * gcc.c (invoke_as): Call compare-debug-dump-opt.
5376         (driver_self_specs): Map -fdump-final-insns to
5377         -fdump-final-insns=..
5378         (get_local_tick): New.
5379         (compare_debug_dump_opt_spec_function): Test for . argument and
5380         compute output name.  Compute temp output spec without flag name.
5381         Compute -frandom-seed.
5382         (OPT): Undef after use.
5383         * cfgloopanal.c (num_loop_insns): Skip debug insns.
5384         (average_num_loop_insns): Likewise.
5385         * params.h (MIN_NONDEBUG_INSN_UID): New.
5386         * gimple.def (GIMPLE_DEBUG): New.
5387         * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
5388         * auto-inc-dec.c (merge_in_block): Skip debug insns.
5389         (merge_in_block): Fix whitespace.
5390         * toplev.c (flag_var_tracking): Update comment.
5391         (flag_var_tracking_assignments): New.
5392         (flag_var_tracking_assignments_toggle): New.
5393         (process_options): Don't open final insns dump file if we're not
5394         going to write to it.  Compute defaults for var_tracking.
5395         * df-scan.c (df_insn_rescan_debug_internal): New.
5396         (df_uses_record): Handle debug insns.
5397         * haifa-sched.c (ready): Initialize n_debug.
5398         (contributes_to_priority): Skip debug insns.
5399         (dep_list_size): New.
5400         (priority): Use it.
5401         (rank_for_schedule): Likewise.  Schedule debug insns as soon as
5402         they're ready.  Disregard previous debug insns to make decisions.
5403         (queue_insn): Never queue debug insns.
5404         (ready_add, ready_remove_first, ready_remove): Count debug insns.
5405         (schedule_insn): Don't reject debug insns because of issue rate.
5406         (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
5407         (queue_to_ready): Skip and discount debug insns.
5408         (choose_ready): Let debug insns through.
5409         (schedule_block): Check boundary debug insns.  Discount debug
5410         insns, schedule them early.  Adjust whitespace.
5411         (set_priorities): Check for boundary debug insns.
5412         (add_jump_dependencies): Use dep_list_size.
5413         (prev_non_location_insn): New.
5414         (check_cfg): Use it.
5415         * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
5416         stmts.
5417         (remove_unused_ivs): Reset debug stmts.
5418         * modulo-sched.c (const_iteration_count): Skip debug insns.
5419         (res_MII): Discount debug insns.
5420         (loop_single_full_bb_p): Skip debug insns.
5421         (sms_schedule): Likewise.
5422         (sms_schedule_by_order): Likewise.
5423         (ps_has_conflicts): Likewise.
5424         * caller-save.c (refmarker_fn): New.
5425         (save_call_clobbered_regs): Replace regs with saved mem in
5426         debug insns.
5427         (mark_referenced_regs): Take pointer, mark and arg.  Adjust.
5428         Call refmarker_fn mark for hardregnos.
5429         (mark_reg_as_referenced): New.
5430         (replace_reg_with_saved_mem): New.
5431         * ipa-pure-const.c (check_stmt): Skip debug stmts.
5432         * cse.c (cse_insn): Canonicalize debug insns.  Skip them when
5433         searching back.
5434         (cse_extended_basic_block): Skip debug insns.
5435         (count_reg_usage): Likewise.
5436         (is_dead_reg): New, split out of...
5437         (set_live_p): ... here.
5438         (insn_live_p): Use it for debug insns.
5439         * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
5440         (execute_optimize_stdarg): Likewise.
5441         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
5442         * tree-ssa-propagate.c (substitute_and_fold): Don't regard
5443         changes in debug stmts as changes.
5444         * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
5445         (moveup_expr): Don't move across debug insns.  Don't move
5446         debug insn if it would create a bookkeeping block.
5447         (moveup_expr_cached): Don't use cache for debug insns that
5448         are heads of blocks.
5449         (compute_av_set_inside_bb): Skip debug insns.
5450         (sel_rank_for_schedule): Schedule debug insns first.  Remove
5451         dead code.
5452         (block_valid_for_bookkeeping_p); Support lax searches.
5453         (create_block_for_bookkeeping): Adjust block numbers when
5454         encountering debug-only blocks.
5455         (find_place_for_bookkeeping): Deal with debug-only blocks.
5456         (generate_bookkeeping_insn): Accept no place to insert.
5457         (remove_temp_moveop_nops): New argument full_tidying.
5458         (prepare_place_to_insert): Deal with debug insns.
5459         (advance_state_on_fence): Debug insns don't start cycles.
5460         (update_boundaries): Take fence as argument.  Deal with
5461         debug insns.
5462         (schedule_expr_on_boundary): No full_tidying on debug insns.
5463         (fill_insns): Deal with debug insns.
5464         (track_scheduled_insns_and_blocks): Don't count debug insns.
5465         (need_nop_to_preserve_insn_bb): New, split out of...
5466         (remove_insn_from_stream): ... this.
5467         (fur_orig_expr_not_found): Skip debug insns.
5468         * rtl.def (VALUE): Move up.
5469         (DEBUG_INSN): New.
5470         * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
5471         (nearest_common_dominator_of_uses): Take debug_stmts argument.
5472         Set it if debug stmts are found.
5473         (statement_sink_location): Skip debug stmts.  Propagate
5474         moving defs into debug stmts.
5475         * ifcvt.c (first_active_insn): Skip debug insns.
5476         (last_active_insns): Likewise.
5477         (cond_exec_process_insns): Likewise.
5478         (noce_process_if_block): Likewise.
5479         (check_cond_move_block): Likewise.
5480         (cond_move_convert_if_block): Likewise.
5481         (block_jumps_and_fallthru_p): Likewise.
5482         (dead_or_predicable): Likewise.
5483         * dwarf2out.c (debug_str_hash_forced): New.
5484         (find_AT_string): Add comment.
5485         (gen_label_for_indirect_string): New.
5486         (get_debug_string_label): New.
5487         (AT_string_form): Use it.
5488         (mem_loc_descriptor): Handle non-TLS symbols.  Handle MINUS , DIV,
5489         MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING.  Accept but
5490         discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
5491         several operations that cannot be represented with DWARF opcodes.
5492         (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND.  Require
5493         dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
5494         (dwarf2out_var_location): Take during-call mark into account.
5495         (output_indirect_string): Update comment.  Output if there are
5496         label and references.
5497         (prune_indirect_string): New.
5498         (prune_unused_types): Call it if debug_str_hash_forced.
5499         More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
5500         (dw_long_long_const): Remove.
5501         (struct dw_val_struct): Change val_long_long type to rtx.
5502         (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
5503         val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
5504         (output_die): Likewise.  Use HOST_BITS_PER_WIDE_INT size of each
5505         component instead of HOST_BITS_PER_LONG.
5506         (output_loc_operands): Likewise.  For const8* assert
5507         HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
5508         (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
5509         rather than HOST_BITS_PER_LONG is >= 64.
5510         (add_AT_long_long): Remove val_hi and val_lo arguments, add
5511         val_const_double.
5512         (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
5513         HOST_BITS_PER_LONG for dw_val_class_long_long.
5514         (add_const_value_attribute): Adjust add_AT_long_long caller.  Don't
5515         handle TLS SYMBOL_REFs.  If CONST wraps a constant, tail recurse.
5516         (dwarf_stack_op_name): Handle DW_OP_implicit_value and
5517         DW_OP_stack_value.
5518         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
5519         Handle DW_OP_implicit_value.
5520         (extract_int): Move prototype earlier.
5521         (mem_loc_descriptor): For SUBREG punt if inner
5522         mode size is wider than DWARF2_ADDR_SIZE.  Handle SIGN_EXTEND
5523         and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}.  Handle
5524         EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
5525         UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
5526         (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
5527         instead of Pmode size.
5528         (loc_descriptor): Add MODE argument.  Handle CONST_INT, CONST_DOUBLE,
5529         CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
5530         attempt to handle other expressions.  Don't handle TLS SYMBOL_REFs.
5531         (concat_loc_descriptor, concatn_loc_descriptor,
5532         loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
5533         (add_location_or_const_value_attribute): Likewise.  For single
5534         location loc_lists attempt to use add_const_value_attribute
5535         for constant decls.  Add DW_AT_const_value even if
5536         NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
5537         in its expression.
5538         * cfgbuild.c (inside_basic_block_p): Handle debug insns.
5539         (control_flow_insn_p): Likewise.
5540         * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
5541         (separate_decls_in_region_debug_bind): New.
5542         (separate_decls_in_region): Process debug bind stmts afterwards.
5543         * recog.c (verify_changes): Handle debug insns.
5544         (extract_insn): Likewise.
5545         (peephole2_optimize): Skip debug insns.
5546         * dse.c (scan_insn): Skip debug insns.
5547         * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
5548         Pass it on.
5549         (setup_id_for_insn): Handle debug insns.
5550         (maybe_tidy_empty_bb): Adjust whitespace.
5551         (tidy_control_flow): Skip debug insns.
5552         (sel_remove_insn): Adjust for debug insns.
5553         (sel_estimate_number_of_insns): Skip debug insns.
5554         (create_insn_rtx_from_pattern): Handle debug insns.
5555         (create_copy_of_insn_rtx): Likewise.
5556         * sel-sched-.h (sel_bb_end): Declare.
5557         (sel_bb_empty_or_nop_p): New.
5558         (get_all_loop_exits): Use it.
5559         (_eligible_successor_edge_p): Likewise.
5560         (return_nop_to_pool): Adjust.
5561         * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
5562         * ira-lives.c (process_bb_node_lives): Skip debug insns.
5563         * gimple-pretty-print.c (dump_gimple_debug): New.
5564         (dump_gimple_stmt): Use it.
5565         (dump_bb_header): Skip gimple debug stmts.
5566         * regmove.c (optimize_reg_copy_1): Discount debug insns.
5567         (fixup_match_2): Likewise.
5568         (regmove_backward_pass): Likewise.  Simplify combined
5569         replacement.  Handle debug insns.
5570         * function.c (instantiate_virtual_regs): Handle debug insns.
5571         * function.h (struct emit_status): Add x_cur_debug_insn_uid.
5572         * print-rtl.h: Include cselib.h.
5573         (print_rtx): Print VALUEs.  Split out and recurse for VAR_LOCATIONs.
5574         * df.h (df_inns_rescan_debug_internal): Declare.
5575         * gcse.c (alloc_hash_table): Estimate n_insns.
5576         (cprop_insn): Don't regard debug insns as changes.
5577         (bypass_conditional_jumps): Skip debug insns.
5578         (one_pre_gcse_pass): Adjust.
5579         (one_code_hoisting_pass): Likewise.
5580         (compute_ld_motion_mems): Skip debug insns.
5581         (one_cprop_pass): Adjust.
5582         * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
5583         (if_convertible_stmt_p): Handle debug stmts.
5584         * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
5585         * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
5586         * ira-build.c (create_bb_allocnos): Skip debug insns.
5587         * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
5588         (has_single_use): Likewise.
5589         (single_imm_use): Likewise.
5590         (num_imm_uses): Likewise.
5591         * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
5592         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
5593         (create_outofssa_var_map): Likewise.
5594         * lower-subreg.c (adjust_decomposed_uses): New.
5595         (resolve_debug): New.
5596         (decompose_multiword_subregs): Use it.
5597         * tree-dfa.c (find_referenced_vars): Skip debug stmts.
5598         * emit-rtl.c: Include params.h.
5599         (cur_debug_insn_uid): Define.
5600         (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
5601         (copy_rtx_if_shared_1): Handle debug insns.
5602         (reset_used_flags): Likewise.
5603         (set_used_flags): LIkewise.
5604         (get_max_insn_count): New.
5605         (next_nondebug_insn): New.
5606         (prev_nondebug_insn): New.
5607         (make_debug_insn_raw): New.
5608         (emit_insn_before_noloc): Handle debug insns.
5609         (emit_jump_insn_before_noloc): Likewise.
5610         (emit_call_insn_before_noloc): Likewise.
5611         (emit_debug_insn_before_noloc): New.
5612         (emit_insn_after_noloc): Handle debug insns.
5613         (emit_jump_insn_after_noloc): Likewise.
5614         (emit_call_insn_after_noloc): Likewise.
5615         (emit_debug_insn_after_noloc): Likewise.
5616         (emit_insn_after): Take loc from earlier non-debug insn.
5617         (emit_jump_insn_after): Likewise.
5618         (emit_call_insn_after): Likewise.
5619         (emit_debug_insn_after_setloc): New.
5620         (emit_debug_insn_after): New.
5621         (emit_insn_before): Take loc from later non-debug insn.
5622         (emit_jump_insn_before): Likewise.
5623         (emit_call_insn_before): Likewise.
5624         (emit_debug_insn_before_setloc): New.
5625         (emit_debug_insn_before): New.
5626         (emit_insn): Handle debug insns.
5627         (emit_debug_insn): New.
5628         (emit_jump_insn): Handle debug insns.
5629         (emit_call_insn): Likewise.
5630         (emit): Likewise.
5631         (init_emit): Take min-nondebug-insn-uid into account.
5632         Initialize cur_debug_insn_uid.
5633         (emit_copy_of_insn_after): Handle debug insns.
5634         * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
5635         location of single rhs in place.
5636         (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
5637         (floor_sdiv_adjust): New.
5638         (cell_sdiv_adjust): New.
5639         (cell_udiv_adjust): New.
5640         (round_sdiv_adjust): New.
5641         (round_udiv_adjust): New.
5642         (wrap_constant): Moved from cselib.
5643         (unwrap_constant): New.
5644         (expand_debug_expr): New.
5645         (expand_debug_locations): New.
5646         (expand_gimple_basic_block): Drop hiding redeclaration.  Expand
5647         debug bind stmts.
5648         (gimple_expand_cfg): Expand debug locations.
5649         * cselib.c: Include tree-pass.h.
5650         (struct expand_value_data): New.
5651         (cselib_record_sets_hook): New.
5652         (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
5653         (cselib_clear_table): Move, and implemnet in terms of...
5654         (cselib_reset_table_with_next_value): ... this.
5655         (cselib_get_next_unknown_value): New.
5656         (discard_useless_locs): Don't discard preserved values.
5657         (cselib_preserve_value): New.
5658         (cselib_preserved_value_p): New.
5659         (cselib_preserve_definitely): New.
5660         (cselib_clear_preserve): New.
5661         (cselib_preserve_only_values): New.
5662         (new_cselib_val): Take rtx argument.  Dump it in details.
5663         (cselib_lookup_mem): Adjust.
5664         (expand_loc): Take regs_active in struct.  Adjust.  Silence
5665         dumps unless details are requested.
5666         (cselib_expand_value_rtx_cb): New.
5667         (cselib_expand_value_rtx): Rename and reimplment in terms of...
5668         (cselib_expand_value_rtx_1): ... this.  Adjust.  Silence dumps
5669         without details.  Copy more subregs.  Try to resolve values
5670         using a callback.  Wrap constants.
5671         (cselib_subst_to_values): Adjust.
5672         (cselib_log_lookup): New.
5673         (cselib_lookup): Call it.
5674         (cselib_invalidate_regno): Don't count preserved values as useless.
5675         (cselib_invalidate_mem): Likewise.
5676         (cselib_record_set): Likewise.
5677         (struct set): Renamed to cselib_set, moved to cselib.h.
5678         (cselib_record_sets): Adjust.  Call hook.
5679         (cselib_process_insn): Reset table when it would be cleared.
5680         (dump_cselib_val): New.
5681         (dump_cselib_table): New.
5682         * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
5683         (remove_forwarder_block): Support moving debug stmts.
5684         * cselib.h (cselib_record_sets_hook): Declare.
5685         (cselib_expand_callback): New type.
5686         (cselib_expand_value_rtx_cb): Declare.
5687         (cselib_reset_table_with_next_value): Declare.
5688         (cselib_get_next_unknown_value): Declare.
5689         (cselib_preserve_value): Declare.
5690         (cselib_preserved_value_p): Declare.
5691         (cselib_preserve_only_values): Declare.
5692         (dump_cselib_table): Declare.
5693         * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
5694         (try_crossjump_to_edge): Likewise.
5695         (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
5696         dominated blocks when debug stmts are present.
5697         * simplify-rtx.c (delegitimize_mem_from_attrs): New.
5698         * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
5699         (set_var_live_on_entry): Likewise.
5700         * loop-invariant.c (find_invariants_bb): Skip debug insns.
5701         * cfglayout.c (curr_location, last_location): Make static.
5702         (set_curr_insn_source_location): Don't avoid bouncing.
5703         (get_curr_insn_source_location): New.
5704         (get_curr_insn_block): New.
5705         (duplicate_insn_chain): Handle debug insns.
5706         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
5707         into debug stmts.
5708         * common.opt (fcompare-debug): Move to sort order.
5709         (fdump-unnumbered-links): Likewise.
5710         (fvar-tracking-assignments): New.
5711         (fvar-tracking-assignments-toggle): New.
5712         * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
5713         because of debug stmts.
5714         (mark_stmt_if_obviously_necessary): Mark debug stmts.
5715         (eliminate_unnecessary_stmts): Walk dominated blocks before
5716         dominators.
5717         * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
5718         * ira.c (memref_used_between_p): Skip debug insns.
5719         (update_equiv_regs): Likewise.
5720         * sched-deps.c (sd_lists_size): Accept empty list.
5721         (sd_init_insn): Mark debug insns.
5722         (sd_finish_insn): Unmark them.
5723         (sd_add_dep): Reject non-debug deps on debug insns.
5724         (fixup_sched_groups): Give debug insns group treatment.
5725         Skip debug insns.
5726         (sched_analyze_reg): Don't mark debug insns for sched before call.
5727         (sched_analyze_2): Handle debug insns.
5728         (sched_analyze_insn): Compute next non-debug insn.  Handle debug
5729         insns.
5730         (deps_analyze_insn): Handle debug insns.
5731         (deps_start_bb): Skip debug insns.
5732         (init_deps): Initialize last_debug_insn.
5733         * tree-ssa.c (target_for_debug_bind): New.
5734         (find_released_ssa_name): New.
5735         (propagate_var_def_into_debug_stmts): New.
5736         (propagate_defs_into_debug_stmts): New.
5737         (verify_ssa): Skip debug bind stmts without values.
5738         (warn_uninialized_vars): Skip debug stmts.
5739         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
5740         * rtl.c (rtx_equal_p_cb): Handle VALUEs.
5741         (rtx_equal_p): Likewise.
5742         * ira-costs.c (scan_one_insn): Skip debug insns.
5743         (process_bb_node_for_hard_reg_moves): Likewise.
5744         * rtl.h (DEBUG_INSN_P): New.
5745         (NONDEBUG_INSN_P): New.
5746         (MAY_HAVE_DEBUG_INSNS): New.
5747         (INSN_P): Accept debug insns.
5748         (RTX_FRAME_RELATED_P): Likewise.
5749         (INSN_DELETED_P): Likewise
5750         (PAT_VAR_LOCATION_DECL): New.
5751         (PAT_VAR_LOCATION_LOC): New.
5752         (PAT_VAR_OCATION_STATUS): New.
5753         (NOTE_VAR_LOCATION_DECL): Reimplement.
5754         (NOTE_VAR_LOCATION_LOC): Likewise.
5755         (NOTE_VAR_LOCATION_STATUS): Likewise.
5756         (INSN_VAR_LOCATION): New.
5757         (INSN_VAR_LOCATION_DECL): New.
5758         (INSN_VAR_LOCATION_LOC): New.
5759         (INSN_VAR_LOCATION_STATUS): New.
5760         (gen_rtx_UNKNOWN_VAR_LOC): New.
5761         (VAR_LOC_UNKNOWN_P): New.
5762         (NOTE_DURING_CALL_P): New.
5763         (SCHED_GROUP_P): Accept debug insns.
5764         (emit_debug_insn_before): Declare.
5765         (emit_debug_insn_before_noloc): Declare.
5766         (emit_debug_insn_beore_setloc): Declare.
5767         (emit_debug_insn_after): Declare.
5768         (emit_debug_insn_after_noloc): Declare.
5769         (emit_debug_insn_after_setloc): Declare.
5770         (emit_debug_insn): Declare.
5771         (make_debug_insn_raw): Declare.
5772         (prev_nondebug_insn): Declare.
5773         (next_nondebug_insn): Declare.
5774         (delegitimize_mem_from_attrs): Declare.
5775         (get_max_insn_count): Declare.
5776         (wrap_constant): Declare.
5777         (unwrap_constant): Declare.
5778         (get_curr_insn_source_location): Declare.
5779         (get_curr_insn_block): Declare.
5780         * tree-inline.c (insert_debug_decl_map): New.
5781         (processing_debug_stmt): New.
5782         (remap_decl): Don't create new mappings in debug stmts.
5783         (remap_gimple_op_r): Don't add references in debug stmts.
5784         (copy_tree_body_r): Likewise.
5785         (remap_gimple_stmt): Handle debug bind stmts.
5786         (copy_bb): Skip debug stmts.
5787         (copy_edges_for_bb): Likewise.
5788         (copy_debug_stmt): New.
5789         (copy_debug_stmts): New.
5790         (copy_body): Copy debug stmts at the end.
5791         (insert_init_debug_bind): New.
5792         (insert_init_stmt): Take id.  Skip and emit debug stmts.
5793         (setup_one_parameter): Remap variable earlier, register debug mapping.
5794         (estimate_num_insns): Skip debug stmts.
5795         (expand_call_inline): Preserve debug_map.
5796         (optimize_inline_calls): Check for no debug_stmts left-overs.
5797         (unsave_expr_now): Preserve debug_map.
5798         (copy_gimple_seq_and_replace_locals): Likewise.
5799         (tree_function_versioning): Check for no debug_stmts left-overs.
5800         Init and destroy debug_map as needed.  Split edges unconditionally.
5801         (build_duplicate_type): Init and destroy debug_map as needed.
5802         * tree-inline.h: Include gimple.h instead of pointer-set.h.
5803         (struct copy_body_data): Add debug_stmts and debug_map.
5804         * sched-int.h (struct ready_list): Add n_debug.
5805         (struct deps): Add last_debug_insn.
5806         (DEBUG_INSN_SCHED_P): New.
5807         (BOUNDARY_DEBUG_INSN_P): New.
5808         (SCHEDULE_DEBUG_INSN_P): New.
5809         (sd_iterator_cond): Accept empty list.
5810         * combine.c (create_log_links): Skip debug insns.
5811         (combine_instructions): Likewise.
5812         (cleanup_auto_inc_dec): New.  From Jakub Jelinek: Make sure the
5813         return value is always unshared.
5814         (struct rtx_subst_pair): New.
5815         (auto_adjust_pair): New.
5816         (propagate_for_debug_subst): New.
5817         (propagate_for_debug): New.
5818         (try_combine): Skip debug insns.  Propagate removed defs into
5819         debug insns.
5820         (next_nonnote_nondebug_insn): New.
5821         (distribute_notes): Use it.  Skip debug insns.
5822         (distribute_links): Skip debug insns.
5823         * tree-outof-ssa.c (set_location_for_edge): Likewise.
5824         * resource.c (mark_target_live_regs): Likewise.
5825         * var-tracking.c: Include cselib.h and target.h.
5826         (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
5827         MO_VAL_SET.
5828         (micro_operation_type_name): New.
5829         (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
5830         (struct micro_operation_def): Update comments.
5831         (decl_or_value): New type.  Use instead of decls.
5832         (struct emit_note_data_def): Add vars.
5833         (struct attrs_def): Use decl_or_value.
5834         (struct variable_tracking_info_def): Add permp, flooded.
5835         (struct location_chain_def): Update comment.
5836         (struct variable_part_def): Use decl_or_value.
5837         (struct variable_def): Make var_part a variable length array.
5838         (valvar_pool): New.
5839         (scratch_regs): New.
5840         (cselib_hook_called): New.
5841         (dv_is_decl_p): New.
5842         (dv_is_value_p): New.
5843         (dv_as_decl): New.
5844         (dv_as_value): New.
5845         (dv_as_opaque): New.
5846         (dv_onepart_p): New.
5847         (dv_pool): New.
5848         (IS_DECL_CODE): New.
5849         (check_value_is_not_decl): New.
5850         (dv_from_decl): New.
5851         (dv_from_value): New.
5852         (dv_htab_hash): New.
5853         (variable_htab_hash): Use it.
5854         (variable_htab_eq): Support values.
5855         (variable_htab_free): Free from the right pool.
5856         (attrs_list_member, attrs_list_insert): Use decl_or_value.
5857         (attrs_list_union): Adjust.
5858         (attrs_list_mpdv_union): New.
5859         (tie_break_pointers): New.
5860         (canon_value_cmp): New.
5861         (unshare_variable): Return possibly-modified slot.
5862         (vars_copy_1): Adjust.
5863         (var_reg_decl_set): Adjust.  Split out of...
5864         (var_reg_set): ... this.
5865         (get_init_value): Adjust.
5866         (var_reg_delete_and_set): Adjust.
5867         (var_reg_delete): Adjust.
5868         (var_regno_delete): Adjust.
5869         (var_mem_decl_set): Split out of...
5870         (var_mem_set): ... this.
5871         (var_mem_delete_and_set): Adjust.
5872         (var_mem_delete): Adjust.
5873         (val_store): New.
5874         (val_reset): New.
5875         (val_resolve): New.
5876         (variable_union): Adjust.  Speed up merge of 1-part vars.
5877         (variable_canonicalize): Use unshared slot.
5878         (VALUED_RECURSED_INTO): New.
5879         (find_loc_in_1pdv): New.
5880         (struct dfset_merge): New.
5881         (insert_into_intersection): New.
5882         (intersect_loc_chains): New.
5883         (loc_cmp): New.
5884         (canonicalize_loc_order_check): New.
5885         (canonicalize_values_mark): New.
5886         (canonicalize_values_star): New.
5887         (variable_merge_over_cur): New.
5888         (variable_merge_over_src): New.
5889         (dataflow_set_merge): New.
5890         (dataflow_set_equiv_regs): New.
5891         (remove_duplicate_values): New.
5892         (struct dfset_post_merge): New.
5893         (variable_post_merge_new_vals): New.
5894         (variable_post_merge_perm_vals): New.
5895         (dataflow_post_merge_adjust): New.
5896         (find_mem_expr_in_1pdv): New.
5897         (dataflow_set_preserve_mem_locs): New.
5898         (dataflow_set_remove_mem_locs): New.
5899         (dataflow_set_clear_at_call): New.
5900         (onepart_variable_different_p): New.
5901         (variable_different_p): Use it.
5902         (dataflow_set_different_1): Adjust.  Make detailed dump more verbose.
5903         (track_expr_p): Add need_rtl parameter.  Don't generate rtl
5904         if not needed.
5905         (track_loc_p): Pass it true.
5906         (struct count_use_info): New.
5907         (find_use_val): New.
5908         (replace_expr_with_values): New.
5909         (log_op_type): New.
5910         (use_type): New, partially split out of...
5911         (count_uses): ... this.  Count new micro-ops.
5912         (count_uses_1): Adjust.
5913         (count_stores): Adjust.
5914         (count_with_sets): New.
5915         (VAL_NEEDS_RESOLUTION): New.
5916         (VAL_HOLDS_TRACK_EXPR): New.
5917         (VAL_EXPR_IS_COPIED): New.
5918         (VAL_EXPR_IS_CLOBBERED): New.
5919         (add_uses): Adjust.  Generate new micro-ops.
5920         (add_uses_1): Adjust.
5921         (add_stores): Generate new micro-ops.
5922         (add_with_sets): New.
5923         (find_src_status): Adjust.
5924         (find_src_set_src): Adjust.
5925         (compute_bb_dataflow): Use dataflow_set_clear_at_call.
5926         Handle new micro-ops.  Canonicalize value equivalances.
5927         (vt_find_locations): Compute total size of hash tables for
5928         dumping.  Perform merge for var-tracking-assignments.  Don't
5929         disregard single-block loops.
5930         (dump_attrs_list): Handle decl_or_value.
5931         (dump_variable): Take variable.  Deal with decl_or_value.
5932         (dump_variable_slot): New.
5933         (dump_vars): Use it.
5934         (dump_dataflow_sets): Adjust.
5935         (set_slot_part): New, extended to support one-part variables
5936         after splitting out of...
5937         (set_variable_part): ... this.
5938         (clobber_slot_part): New, split out of...
5939         (clobber_variable_part): ... this.
5940         (delete_slot_part): New, split out of...
5941         (delete_variable_part): .... this.
5942         (check_wrap_constant): New.
5943         (vt_expand_loc_callback): New.
5944         (vt_expand_loc): New.
5945         (emit_note_insn_var_location): Adjust.  Handle values.  Handle
5946         EMIT_NOTE_AFTER_CALL_INSN.
5947         (emit_notes_for_differences_1): Adjust.  Handle values.
5948         (emit_notes_for_differences_2): Likewise.
5949         (emit_notes_for_differences): Adjust.
5950         (emit_notes_in_bb): Take pointer to set.  Emit AFTER_CALL_INSN notes.
5951         Adjust.  Handle new micro-ops.
5952         (vt_add_function_parameters): Adjust.  Create and bind values.
5953         (vt_initialize): Adjust.  Initialize scratch_regs and
5954         valvar_pool, flooded and perm..  Initialize and use cselib.  Log
5955         operations.  Move some code to count_with_sets and add_with_sets.
5956         (delete_debug_insns): New.
5957         (vt_debug_insns_local): New.
5958         (vt_finalize): Release permp, valvar_pool, scratch_regs.  Finish
5959         cselib.
5960         (var_tracking_main): If var-tracking-assignments is enabled
5961         but var-tracking isn't, delete debug insns and leave.  Likewise
5962         if we exceed limits or fail the stack adjustments tests, and
5963         after all var-tracking processing.
5964         More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
5965         (dataflow_set): Add traversed_vars.
5966         (value_chain, const_value_chain): New typedefs.
5967         (value_chain_pool, value_chains): New variables.
5968         (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
5969         add_value_chains, add_cselib_value_chains, remove_value_chain,
5970         remove_value_chains, remove_cselib_value_chains): New functions.
5971         (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
5972         shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
5973         static inlines.
5974         (shared_hash_find_slot_unshare, shared_hash_find_slot,
5975         shared_hash_find_slot_noinsert, shared_hash_find): Update.
5976         (dst_can_be_shared): New variable.
5977         (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
5978         Clear dst_can_be_shared.  If set->traversed_vars is non-NULL and
5979         different from set->vars, look up slot again instead of using the
5980         passed in slot.
5981         (dataflow_set_init): Initialize traversed_vars.
5982         (variable_union): Use shared_hash_*.  Use initially NO_INSERT
5983         lookup if set->vars is shared.  Don't keep slot cleared before
5984         calling unshare_variable.  Unshare set->vars if needed.  Adjust
5985         unshare_variable callers.  Clear dst_can_be_shared if needed.
5986         Even ->refcount == 1 vars must be unshared if set->vars is shared
5987         and var needs to be modified.
5988         (dataflow_set_union): Set traversed_vars during canonicalization.
5989         (VALUE_CHANGED, DECL_CHANGED): Define.
5990         (set_dv_changed, dv_changed_p): New static inlines.
5991         (track_expr_p): Clear DECL_CHANGED.
5992         (dump_dataflow_sets): Set it.
5993         (variable_was_changed): Call set_dv_changed.
5994         (emit_note_insn_var_location): Likewise.
5995         (changed_variables_stack): New variable.
5996         (check_changed_vars_1, check_changed_vars_2): New functions.
5997         (emit_notes_for_changes): Do nothing if changed_variables is
5998         empty.  Traverse changed_variables with check_changed_vars_1,
5999         call check_changed_vars_2 on each changed_variables_stack entry.
6000         (emit_notes_in_bb): Add SET argument.  Just clear it at the
6001         beginning, use it instead of local &set, don't destroy it at the end.
6002         (vt_emit_notes): Call dataflow_set_clear early on all
6003         VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
6004         computed set, dataflow_set_clear also VTI(bb)->in when we are
6005         done with the basic block.  Initialize changed_variables_stack,
6006         free it afterwards.  If ENABLE_CHECKING verify that after noting
6007         differences to an empty set value_chains hash table is empty.
6008         (vt_initialize): Initialize value_chains and value_chain_pool.
6009         (vt_finalize): Delete value_chains htab, free value_chain_pool.
6010         (variable_tracking_main): Call dump_dataflow_sets before calling
6011         vt_emit_notes, not after it.
6012         * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
6013         (propagate_var_def_into_debug_stmts): Declare.
6014         * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
6015         (df_set_note): Reject debug insns.
6016         (df_whole_mw_reg_dead_p): Take added_notes_p argument.  Don't
6017         add notes to debug insns.
6018         (df_note_bb_compute): Adjust.  Likewise.
6019         (df_simulate_uses): Skip debug insns.
6020         (df_simulate_initialize_backwards): Likewise.
6021         * reg-stack.c (subst_stack_regs_in_debug_insn): New.
6022         (subst_stack_regs_pat): Reject debug insns.
6023         (convert_regs_1): Handle debug insns.
6024         * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
6025         (print-rtl.o): Depend on cselib.h.
6026         (cselib.o): Depend on TREE_PASS_H.
6027         (var-tracking.o): Depend on cselib.h and TARGET_H.
6028         * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
6029         (init_ready_list): Skip boundary debug insns.
6030         (add_branch_dependences): Skip debug insns.
6031         (free_block_dependencies): Check for blocks with only debug insns.
6032         (compute_priorities): Likewise.
6033         * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
6034         (gimple_build_with_ops_stat): Take subcode as unsigned.  Adjust
6035         all callers.
6036         (gimple_build_debug_bind_stat): New.
6037         (empty_body_p): Skip debug stmts.
6038         (gimple_has_side_effects): Likewise.
6039         (gimple_rhs_has_side_effects): Likewise.
6040         * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
6041         (gimple_build_debug_bind_stat): Declare.
6042         (gimple_build_debug_bind): Define.
6043         (is_gimple_debug): New.
6044         (gimple_debug_bind_p): New.
6045         (gimple_debug_bind_get_var): New.
6046         (gimple_debug_bind_get_value): New.
6047         (gimple_debug_bind_get_value_ptr): New.
6048         (gimple_debug_bind_set_var): New.
6049         (gimple_debug_bind_set_value): New.
6050         (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
6051         (gimple_debug_bind_reset_value): New.
6052         (gimple_debug_bind_has_value_p): New.
6053         (gsi_next_nondebug): New.
6054         (gsi_prev_nondebug): New.
6055         (gsi_start_nondebug_bb): New.
6056         (gsi_last_nondebug_bb): New.
6057         * sched-vis.c (print_pattern): Handle VAR_LOCATION.
6058         (print_insn): Handle DEBUG_INSN.
6059         * tree-cfg.c (remove_bb): Walk stmts backwards.  Let loc
6060         of first insn prevail.
6061         (first_stmt): Skip debug stmts.
6062         (first_non_label_stmt): Likewise.
6063         (last_stmt): Likewise.
6064         (has_zero_uses_1): New.
6065         (single_imm_use_1): New.
6066         (verify_gimple_debug): New.
6067         (verify_types_in_gimple_stmt): Handle debug stmts.
6068         (verify_stmt): Likewise.
6069         (debug_loop_num): Skip debug stmts.
6070         (remove_edge_and_dominated_blocks): Remove dominators last.
6071         * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
6072         (linearize_expr): Likewise.
6073         * config/i386/i386.c (ix86_delegitimize_address): Call
6074         default implementation.
6075         * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
6076         (group_barrier_needed): Skip debug insns.
6077         (emit_insn_group_barriers): Likewise.
6078         (emit_all_insn_group_barriers): Likewise.
6079         (ia64_variable_issue): Handle debug insns.
6080         (ia64_dfa_new_cycle): Likewise.
6081         (final_emit_insn_group_barriers): Skip debug insns.
6082         (ia64_dwarf2out_def_steady_cfa): Take frame argument.  Don't
6083         def cfa without frame.
6084         (process_set): Likewise.
6085         (process_for_unwind_directive): Pass frame on.
6086         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
6087         (rs6000_delegitimize_address): New.
6088         (rs6000_debug_adjust_cost): Handle debug insns.
6089         (is_microcoded_insn): Likewise.
6090         (is_cracked_insn): Likewise.
6091         (is_nonpipeline_insn): Likewise.
6092         (insn_must_be_first_in_group): Likewise.
6093         (insn_must_be_last_in_group): Likewise.
6094         (force_new_group): Likewise.
6095         * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
6096         contains only debug insns.
6097         (rtl_merge_blocks): Skip debug insns.
6098         (purge_dead_edges): Likewise.
6099         (rtl_block_ends_with_call_p): Skip debug insns.
6100         * dce.c (deletable_insn_p): Handle VAR_LOCATION.
6101         (mark_reg_dependencies): Skip debug insns.
6102         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
6103         * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
6104         * tree-ssa-threadedge.c
6105         (record_temporary_equivalences_from_stmts): Skip debug stmts.
6106         * regcprop.c (replace_oldest_value_addr): Skip debug insns.
6107         (replace_oldest_value_mem): Use ALL_REGS for debug insns.
6108         (copyprop_hardreg_forward_1): Handle debug insns.
6109         * reload1.c (reload): Skip debug insns.  Replace unassigned
6110         pseudos in debug insns with their equivalences.
6111         (eliminate_regs_in_insn): Skip debug insns.
6112         (emit_input_reload_insns): Skip debug insns at first, adjust
6113         them later.
6114         * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
6115         (get_indirect_ref_operands): Pass opf_no_vops on.
6116         (get_expr_operands): Likewise.  Skip debug stmts.
6117         (parse_ssa_operands): Scan debug insns with opf_no_vops.
6118
6119 2009-09-01  Richard Henderson  <rth@redhat.com>
6120
6121         * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
6122         stmt_ends_pp_p statements at least once.
6123         * tree-vrp.c (vrp_initialize): Likewise.
6124         (vrp_visit_stmt): Be prepared for non-interesting stmts.
6125
6126 2009-09-01  Dodji Seketeli  <dodji@redhat.com>
6127
6128         PR bootstrap/41205
6129         Fix AIX bootstrap after PR debug/30161
6130         * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
6131         that is a GNU extension.
6132         (tmpl_value_parm_die_table): Move the definition of this global
6133         outside #ifdef DWARF2_DEBUGGING_INFO region.
6134
6135 2009-09-01  Richard Guenther  <rguenther@suse.de>
6136
6137         * tree.c (tree_expr_size): New function.
6138         * tree.h (tree_expr_size): Declare.
6139         * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
6140         * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
6141         * langhooks.c (lhd_expr_size): Remove.
6142         * langhooks.h (struct lang_hooks): Remove expr_size.
6143         * explow.c (expr_size): Use tree_expr_size.
6144         (int_expr_size): Likewise.
6145         * langhooks-def.h (lhd_expr_size): Remove.
6146         (LANG_HOOKS_EXPR_SIZE): Likewise.
6147         (LANG_HOOKS_INITIALIZER): Adjust.
6148
6149 2009-09-01  Richard Guenther  <rguenther@suse.de>
6150
6151         * tree-flow.h (mark_addressable): Move declaration ...
6152         * tree.h (mark_addressable): ... here.
6153         * stmt.c (expand_asm_operands): Use mark_addressable, not
6154         lang_hooks.mark_addressable.
6155         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
6156         LANG_HOOKS_MARK_ADDRESSABLE.
6157         * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
6158         * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
6159
6160 2009-08-31  Chris Demetriou  <cgd@google.com>
6161
6162         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
6163         vectorize if not TARGET_SSE2.
6164
6165 2009-08-31  DJ Delorie  <dj@redhat.com>
6166
6167         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
6168         registers if no coprocessor is enabled.
6169
6170 2009-08-31  Dodji Seketeli  <dodji@redhat.com>
6171
6172         PR debug/30161
6173         * cgraph.h (cgraph_get_node): Declare ...
6174         * cgraph.c (cgraph_get_node): ... new function.
6175         * dwarf2out.c (gen_generic_params_dies,
6176         generic_parameter_die, tree_add_const_value_attribute_for_decl,
6177         make_ith_pack_parameter_name,
6178         append_entry_to_tmpl_value_parm_die_table,
6179         gen_remaining_tmpl_value_param_die_attribute): New functions.
6180         (gen_subprogram_die): Generate debug info for template parameters
6181         if debug info level is higher than DINFO_LEVEL_TERSE.
6182         Use tree_add_const_value_attribute_for_decl instead of
6183         tree_add_const_value_attribute.
6184         (gen_const_die): Use tree_add_const_value_attribute_for_decl
6185         instead of tree_add_const_value_attribute.
6186         (gen_struct_or_union_type_die): Generate debug
6187         info for template parameters if debug info level is higher than
6188         DINFO_LEVEL_TERSE.
6189         (tree_add_const_value_attribute): Handle integral and pointer
6190         constants. Update comment.
6191         (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
6192         (dwarf_attr_name): Support DW_AT_GNU_template_name.
6193         (reference_to_unused): Fix thinko. Remove redundant predicates from
6194         tests.
6195         (tree_add_const_value_attribute): Make this work for constant
6196         expressions only.
6197         tree_add_const_value_attribute_for_decl is to be used for variable
6198         DECLs now.
6199         (add_location_or_const_value_attribute): Use
6200         tree_add_const_value_attribute_for_decl now.
6201         (dwarf2out_finish): Emit the DW_AT_const_value attribute of
6202         DW_TAG_template_value_param DIEs after function DIEs have been
6203         emitted.
6204         * langhooks.h (lang_hooks_for_types): Add
6205         get_argument_pack_elems.
6206         (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
6207         (lang_hooks): Added get_innermost_generic_parms,
6208         get_innermost_generic_args.
6209         * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
6210         LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
6211         LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
6212         LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
6213
6214 2009-08-31  DJ Delorie  <dj@redhat.com>
6215
6216         * config/mep/mep.c (machine_function): Add frame_locked flag.  Set
6217         it once we start generating the prologue or epilogue.
6218         (mep_call_saves_register): If the frame is locked, re-use
6219         cached values.
6220         (mep_assign_save_slots): New, broken out from mep_expand_prologue.
6221         (mep_expand_prologue): Call it.
6222         (mep_expand_epilogue): Likewise.
6223         (mep_start_function): Use the same logic as mep_expand_prologue.
6224         (mep_pass_by_reference): Make logic more readable.
6225         (mep_return_in_memory): Zero-sized objects are passed in memory.
6226         (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
6227
6228 2009-08-31  Richard Guenther  <rguenther@suse.de>
6229
6230         * builtins.c (fold_builtin_memory_op): Use the alias oracle
6231         to query if the memory regions for memmove overlap.
6232         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
6233         asserts on pointers, instead deal with odd trees.
6234         (ptr_derefs_may_alias_p): Likewise.
6235         (refs_may_alias_p_1): Constructor bases also never alias.
6236
6237 2009-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
6238
6239         * doc/install.texi (Final install): Adjust reference on where to
6240         order printed manuals.
6241
6242 2009-08-30  Olivier Hainque  <hainque@adacore.com>
6243
6244         * dwarf2out.c (switch_to_frame_table_section): Move
6245         definition prior to first use.
6246
6247 2009-08-30  Richard Guenther  <rguenther@suse.de>
6248
6249         PR tree-optimization/41186
6250         * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
6251         (ao_ref_init_from_ptr_and_size): New function.
6252         (ref_maybe_used_by_call_p_1): Be more precise tracking
6253         used ranges for builtin functions.
6254         (ref_maybe_used_by_call_p): Adjust.
6255         (call_may_clobber_ref_p_1): Be more precise tracking clobbered
6256         ranges for builtin functions.
6257         * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
6258
6259 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
6260
6261         PR target/41081
6262         * fwprop.c (get_reg_use_in): Delete.
6263         (free_load_extend): New function.
6264         (forward_propagate_subreg): Use it.
6265
6266 2009-08-29  Kaz Kojima  <kkojima@gcc.gnu.org>
6267
6268         * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
6269
6270 2009-08-29  Kai Tietz<kai.tietz@onevision.com>
6271
6272         PR/41184
6273         * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
6274         padding.
6275
6276 2009-08-29  Douglas B Rupp  <rupp@gnat.com>
6277
6278         * crtstuff.c (__do_global_dtors_aux): Use atexit if no
6279         fini or fini_array section.
6280
6281 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6282
6283         * graphite-dependences.c (graphite_legal_transform_bb): Call
6284         pbb_remove_duplicate_pdrs.
6285         * graphite-poly.c (can_collapse_pdr): Removed.
6286         (pdr_find_duplicate): Removed.
6287         (can_collapse_pdrs): New.
6288         (pbb_remove_duplicate_pdrs): New.
6289         (new_poly_dr): Do not look for duplicates.
6290         * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
6291         (PBB_PDR_DUPLICATES_REMOVED): New.
6292         (pbb_remove_duplicate_pdrs): Declared.
6293
6294 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6295
6296         * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
6297         the strides by multiplying by PDR_NB_REFS.
6298         * graphite-poly.c (can_collapse_pdr): New.
6299         (pdr_find_duplicate): New.
6300         (new_poly_dr): Call pdr_find_duplicate.  Collapse duplicate PDRs.
6301         Initialize PDR_NB_REFS.
6302         * graphite-poly.h (struct poly_dr): Add field nb_refs.
6303         (PDR_NB_REFS): New.
6304         (new_poly_dr): Number of subscripts is a graphite_dim_t.
6305
6306 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6307
6308         PR middle-end/40965
6309         * graphite-poly.c (apply_poly_transforms): Remove legality test before
6310         any transform.
6311
6312 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6313
6314         * graphite-dependences.c (pddr_original_scattering): Return NULL
6315         for read-read dependence relations.
6316         * graphite-poly.h (enum poly_dr_type): Fix comment.
6317         (pdr_read_p): New.
6318         (pdr_write_p): New.
6319         (pdr_may_write_p): New.
6320
6321 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6322
6323         * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
6324         (struct poly_dr): Same.
6325         (new_poly_dr): Same.
6326         * graphite-poly.c (new_poly_dr): Same.
6327         * graphite-dependences.c (dot_deps): Disable call to system.
6328
6329 2009-08-28  Cary Coutant  <ccoutant@google.com>
6330
6331         PR debug/41063
6332         * dwarf2out.c (gen_type_die_with_usage): Use proper context for
6333         struct/union/enum types local to a function.
6334
6335 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
6336             Sebastian Pop  <sebastian.pop@amd.com>
6337
6338         * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
6339         pbb_strip_mine_time_depth.  Changed the implementation so that
6340         transformation is expressed as a transformation on
6341         time (scatttering) dimensions.  Also, ensures that the 2d+1
6342         scheduling format is preserved.
6343         (pbb_strip_mine_profitable_p): Profitability is based on the
6344         iteration number of a given time (scattering) dimension,
6345         and not on a original loop depth dimension.
6346         (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
6347         (pbb_do_strip_mine): Call psct_dynamic_dim.
6348         * graphite-poly.c (pbb_number_of_iterations_at_time): New.
6349         * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
6350         (pbb_nb_dynamic_scattering_transform): New.
6351         (psct_dynamic_dim): New.
6352
6353 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
6354
6355         * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
6356         * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
6357         * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
6358         * graphite-interchange.c (build_linearized_memory_access): Same.
6359         (memory_stride_in_loop): Same.
6360
6361 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6362
6363         * graphite-dependences.c (pddr_original_scattering): New.
6364         (graphite_legal_transform_dr): Call pddr_original_scattering.
6365         (dot_deps_1): New.
6366         (dot_deps): New.
6367         * graphite-dependences.h (dot_deps): Declared.
6368         * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
6369         (print_pdr): Print PDR_ID.
6370         * graphite-poly.h (struct poly_dr): Add field id.
6371         (PDR_ID): New.
6372         (pbb_index): New.
6373         * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
6374
6375 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6376
6377         * graphite-dependences.c (graphite_carried_dependence_level_k): Do
6378         not delete the original dependence relation.
6379
6380 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6381
6382         * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
6383         (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
6384         (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
6385         (free_poly_ddr): New.
6386         (pddr_is_empty): New.
6387         (dependence_polyhedron_1): Now returns a poly_ddr_p.
6388         (dependence_polyhedron): Same.  Remove useless gcc_assert.
6389         Remove fprintfs.
6390         (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
6391         (graphite_carried_dependence_level_k): Call pddr_is_empty.
6392         * graphite-dependences.h (enum poly_dependence_kind): New.
6393         (poly_dr_pair): Renamed poly_ddr.  Added a field kind.
6394         (PDRP_SOURCE): Renamed PDDR_SOURCE.
6395         (PDRP_SINK): Renamed PDDR_SINK.
6396         (PDRP_DDP): Renamed PDDR_DDP.
6397         (PDDR_KIND): New.
6398         (free_poly_ddr): Declared.
6399         * graphite-poly.c (new_scop): Use the new hash function names.
6400         * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
6401         into original_pddrs.
6402         (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
6403
6404 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6405
6406         * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
6407         bounds with LT_EXPR to make niter analysis more precise on code
6408         generated by Graphite.
6409
6410 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6411
6412         * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
6413         (graphite_legal_transform_bb): Same.
6414         (poly_drs_may_alias_p): Same.
6415
6416 2009-08-28  Richard Guenther  <rguenther@suse.de>
6417
6418         * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
6419
6420 2009-08-28  Jan Beulich  <jbeulich@novell.com>
6421
6422         * config/i386/netware.c: Include langhooks.h.
6423         (i386_nlm_encode_section_info): Simplify.
6424         (netware_override_options): Delete.
6425         * config/i386/netware.h (netware_override_options): Delete
6426         declaration.
6427         (OVERRIDE_OPTIONS): Delete definition.
6428         (SUBTARGET_OVERRIDE_OPTIONS): Define.
6429         (ASM_COMMENT_START): Define.
6430         * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
6431
6432 2009-08-28  Jan Beulich  <jbeulich@novell.com>
6433
6434         * configure.ac: For in-tree ld, do a plain version check to
6435         determine whether comdat groups are supported.
6436         * configure: Regenerate.
6437
6438 2009-08-28  Olivier Hainque  <hainque@adacore.com>
6439
6440         * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
6441         always defined.  Reflect definition or absence of such for
6442         COLLECT_EXPORT_LIST.  Readability helper.
6443         (scanfilter): New enum, to help control what symbols
6444         are to be considered or ignored by scan_prog_file.
6445         (enum pass): Rename as "scanpass", moved together with scanfilter
6446         prior to scan_prog_file's prototype.
6447         (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
6448         Group prototype with the scanpass/scanfilter definitions, factorize
6449         head comments for the several implementations at the prototype.
6450         (main): Reorganize the first pass link control to let AIX
6451         drag only the needed frame tables in executables.  Prevent
6452         frame tables collection during the scan aimed at static ctors.
6453         Pre-link and scan for frame tables later to compensate.
6454         * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
6455         A C statement to issue assembly directives that create a reference
6456         to the given DWARF table identifier label from the current function
6457         section.
6458         * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
6459         to differentiate first time section entry.  Only emit a .data
6460         tables start identifier label the first time around.
6461         (switch_to_frame_table_section): New function.  Helper for
6462         output_call_frame_info to switch possibly BACK into the eh_frame
6463         or the debug_frame section depending on FOR_EH.
6464         (output_call_frame_info): Use helper to first enter the proper
6465         frame section.
6466         (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
6467         emit a link to the frame table start label from each function
6468         section.
6469         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
6470         New function.  Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
6471         * config/rs6000/rs6000-protos.h: Declare it.
6472         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
6473
6474 2009-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
6475
6476         * config/sh/sh.c (split_branches): Check the result of
6477         next_active_insn.
6478
6479 2009-08-27  Steve Ellcey  <sje@cup.hp.com>
6480
6481         * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
6482         using -pthread -fopenmp
6483
6484 2009-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
6485
6486         * doc/service.texi (service directory): Update URL.
6487
6488 2009-08-27  Uros Bizjak  <ubizjak@gmail.com>
6489
6490         PR rtl-optimization/40861
6491         * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
6492         extract word from a multi-word subreg for negative byte positions.
6493
6494 2009-08-27  Tristan Gingold  <gingold@adacore.com>
6495             Douglas B Rupp  <rupp@gnat.com>
6496
6497         * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
6498         (SECTION_VMS_OVERLAY): Define.
6499         (ia64_vms_common_object_attribute): Added.  Handle the "common_object"
6500         attribute.
6501         (ia64_vms_elf_asm_named_section): Added.  Generate .section pseudo-op
6502         for common_object.
6503         (ia64_vms_output_aligned_decl_common): Added.  Generate pseudo-op for
6504         common_object declarations.
6505         (ia64_section_type_flags): Set section flag for common_object.
6506         * config/ia64/ia64-protos.h
6507         (ia64_vms_output_aligned_decl_common): Declare.
6508         (ia64_vms_elf_asm_named_section): Declare.
6509
6510 2009-08-27  Michael Matz  <matz@suse.de>
6511
6512         * expr.c (expand_expr_real_2): New function taking exploded
6513         unary or binary expression, split out from ...
6514         (expand_expr_real_1): ... here.  Move over all unary/binary
6515         switch parts to above function, in particular these codes:
6516         PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
6517         MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
6518         ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
6519         FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
6520         FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
6521         BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
6522         BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
6523         LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
6524         NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
6525         UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
6526         WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
6527         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
6528         VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
6529         VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
6530         VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
6531         VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
6532         VEC_PACK_FIX_TRUNC_EXPR.
6533         (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
6534         full expression.
6535
6536 2009-08-27  Richard Guenther  <rguenther@suse.de>
6537
6538         * gengtype.c (main): Handle uint64_t.
6539         * ipa-utils.c (get_base_var): Indent properly.
6540         * tree-ssa-live.c (debug_scope_block): New function.
6541         * tree-flow.h (debug_scope_block): Declare.
6542         * tree-ssa-copy.c (replace_exp_1): Add vertical space.
6543         * basic-block.h (enum profile_status): Rename to
6544         enum profile_status_d.
6545         (x_profile_status): Adjust type.
6546
6547 2009-08-27  Dodji Seketeli  <dodji@redhat.com>
6548
6549         PR debug/41170
6550         * dwarf2out.c (get_context_die): Declare this static function.
6551         (gen_type_die_with_usage): Make sure a DIE is a generated for
6552         the context of a typedef.
6553
6554 2009-08-26  Anatoly Sokolov  <aesok@post.ru>
6555
6556         * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
6557         switch.
6558
6559 2009-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
6560
6561         * config/mips/mips-protos.h (mips_output_sync): Declare.
6562         (mips_sync_loop_insns): Likewise.
6563         (mips_output_sync_loop): Replace first two parameters with an rtx.
6564         * config/mips/mips.c (mips_multi_member): New structure.
6565         (mips_multi_members): New variable.
6566         (mips_multi_start): New function.
6567         (mips_multi_add): Likewise.
6568         (mips_multi_add_insn): Likewise.
6569         (mips_multi_add_label): Likewise.
6570         (mips_multi_last_index): Likewise.
6571         (mips_multi_copy_insn): Likewise.
6572         (mips_multi_set_operand): Likewise.
6573         (mips_multi_write): Likewise.
6574         (mips_print_operand_punctuation): Remove '%|' and '%-'.
6575         (mips_init_print_operand_punct): Update accordingly.
6576         (mips_start_ll_sc_sync_block): New function.
6577         (mips_end_ll_sc_sync_block): Likewise.
6578         (mips_output_sync): Likewise.
6579         (mips_sync_insn1_template): Likewise.
6580         (mips_sync_insn2_template): Likewise.
6581         (mips_get_sync_operand): Likewise.
6582         (mips_process_sync_loop): Likewise.
6583         (mips_output_sync_loop): Use mips_process_sync_loop.
6584         (mips_sync_loop_insns): New function.
6585         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
6586         (MIPS_COMPARE_AND_SWAP_12): Likewise.
6587         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
6588         (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
6589         (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
6590         (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
6591         (MIPS_SYNC_OLD_OP_12): Likewise.
6592         (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
6593         (MIPS_SYNC_NEW_OP_12): Likewise.
6594         (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
6595         (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
6596         (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
6597         (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
6598         (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
6599         (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
6600         * config/mips/mips.md (sync_mem): New attribute.
6601         (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
6602         (sync_exclusive_mask, sync_required_oldval): Likewise.
6603         (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
6604         (sync_release_barrier): Likewise.
6605         (length): Handle sync loops.
6606         (sync): Use mips_output_sync.
6607         * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
6608         (sync_compare_and_swap<mode>): Set the new sync_* attributes
6609         and use mips_output_sync_loop.
6610         (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
6611         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
6612         (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
6613         (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
6614         (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
6615         (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
6616         (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
6617         (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
6618         (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
6619
6620 2009-08-26  Richard Guenther  <rguenther@suse.de>
6621
6622         PR middle-end/41163
6623         * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
6624         the types to not match.
6625         * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
6626         verification.
6627         * tree-ssa.c (useless_type_conversion_p): Conversions to
6628         pointers to unprototyped functions are useless.
6629
6630 2009-08-26  Richard Guenther  <rguenther@suse.de>
6631
6632         * tree-ssa-structalias.c (create_variable_info_for): Remove strange
6633         whole-program condition, prepare to be called for non-globals.
6634         (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
6635         params build a representative with known type and track its fields.
6636
6637 2009-08-26  Uros Bizjak  <ubizjak@gmail.com>
6638
6639         * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
6640         clearing by a taken branch.
6641         (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
6642         effectively after bbro pass.
6643         (sync_nand<mode>): Ditto.
6644         (sync_old_<fetchop_name><mode>): Ditto.
6645         (sync_old_nand<mode>): Ditto.
6646         (sync_new_<fetchop_name><mode>): Dito.
6647         (sync_new_nand<mode>): Ditto.
6648         (sync_compare_and_swap<mode>_1): Ditto.
6649         (*sync_compare_and_swap<mode>): Ditto.
6650         (sync_lock_test_and_set<mode>_1): Ditto.
6651         ("sync_lock_test_and_set<mode>): Ditto.
6652
6653 2009-08-25  Douglas B Rupp  <rupp@gnat.com>
6654
6655         * hwint.h (HOST_LONG_FORMAT): New macro
6656         * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
6657         Use HOST_PTR_PRINTF.
6658         * system.h (HOST_PTR_PRINTF): Resurrect old macro
6659         * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
6660         (HOST_PTR_PRINTF): Document.
6661
6662 2009-08-25 Jan Hubicka  <jh@suse.cz>
6663
6664         * config/i386/bmmintrin.h: Replace by #error.
6665
6666         Revert:
6667         Michael Meissner  <michael.meissner@amd.com>
6668         Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
6669         Tony Linthicum  <tony.linthicum@amd.com>
6670
6671         * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
6672         (TARGET_ROUND): New macro for the round/ptest instructions which
6673         are shared between SSE4.1 and SSE5.
6674         (OPTION_MASK_ISA_ROUND): Ditto.
6675         (OPTION_ISA_ROUND): Ditto.
6676         (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
6677         (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
6678
6679         * config/i386/i386.opt (-msse5): New switch for SSE5 support.
6680         (-mfused-madd): New switch to give users control over whether the
6681         compiler optimizes to use the multiply/add SSE5 instructions.
6682
6683         * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
6684         (ix86_handle_option): Turn off 3dnow if -msse5.
6685         (override_options): Add SSE5 support.
6686         (print_operand): %Y prints comparison codes for SSE5 com/pcom
6687         instructions.
6688         (ix86_expand_sse_movcc): Add SSE5 support.
6689         (ix86_expand_sse5_unpack): New function to use pperm to unpack a
6690         vector type to the next largest size.
6691         (ix86_expand_sse5_pack): New function to use pperm to pack a
6692         vector type to the next smallest size.
6693         (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
6694         (IX86_BUILTIN_FMADDSD): Ditto.
6695         (IX86_BUILTIN_FMADDPS): Ditto.
6696         (IX86_BUILTIN_FMADDPD): Ditto.
6697         (IX86_BUILTIN_FMSUBSS): Ditto.
6698         (IX86_BUILTIN_FMSUBSD): Ditto.
6699         (IX86_BUILTIN_FMSUBPS): Ditto.
6700         (IX86_BUILTIN_FMSUBPD): Ditto.
6701         (IX86_BUILTIN_FNMADDSS): Ditto.
6702         (IX86_BUILTIN_FNMADDSD): Ditto.
6703         (IX86_BUILTIN_FNMADDPS): Ditto.
6704         (IX86_BUILTIN_FNMADDPD): Ditto.
6705         (IX86_BUILTIN_FNMSUBSS): Ditto.
6706         (IX86_BUILTIN_FNMSUBSD): Ditto.
6707         (IX86_BUILTIN_FNMSUBPS): Ditto.
6708         (IX86_BUILTIN_FNMSUBPD): Ditto.
6709         (IX86_BUILTIN_PCMOV_V2DI): Ditto.
6710         (IX86_BUILTIN_PCMOV_V4SI): Ditto.
6711         (IX86_BUILTIN_PCMOV_V8HI): Ditto.
6712         (IX86_BUILTIN_PCMOV_V16QI): Ditto.
6713         (IX86_BUILTIN_PCMOV_V4SF): Ditto.
6714         (IX86_BUILTIN_PCMOV_V2DF): Ditto.
6715         (IX86_BUILTIN_PPERM): Ditto.
6716         (IX86_BUILTIN_PERMPS): Ditto.
6717         (IX86_BUILTIN_PERMPD): Ditto.
6718         (IX86_BUILTIN_PMACSSWW): Ditto.
6719         (IX86_BUILTIN_PMACSWW): Ditto.
6720         (IX86_BUILTIN_PMACSSWD): Ditto.
6721         (IX86_BUILTIN_PMACSWD): Ditto.
6722         (IX86_BUILTIN_PMACSSDD): Ditto.
6723         (IX86_BUILTIN_PMACSDD): Ditto.
6724         (IX86_BUILTIN_PMACSSDQL): Ditto.
6725         (IX86_BUILTIN_PMACSSDQH): Ditto.
6726         (IX86_BUILTIN_PMACSDQL): Ditto.
6727         (IX86_BUILTIN_PMACSDQH): Ditto.
6728         (IX86_BUILTIN_PMADCSSWD): Ditto.
6729         (IX86_BUILTIN_PMADCSWD): Ditto.
6730         (IX86_BUILTIN_PHADDBW): Ditto.
6731         (IX86_BUILTIN_PHADDBD): Ditto.
6732         (IX86_BUILTIN_PHADDBQ): Ditto.
6733         (IX86_BUILTIN_PHADDWD): Ditto.
6734         (IX86_BUILTIN_PHADDWQ): Ditto.
6735         (IX86_BUILTIN_PHADDDQ): Ditto.
6736         (IX86_BUILTIN_PHADDUBW): Ditto.
6737         (IX86_BUILTIN_PHADDUBD): Ditto.
6738         (IX86_BUILTIN_PHADDUBQ): Ditto.
6739         (IX86_BUILTIN_PHADDUWD): Ditto.
6740         (IX86_BUILTIN_PHADDUWQ): Ditto.
6741         (IX86_BUILTIN_PHADDUDQ): Ditto.
6742         (IX86_BUILTIN_PHSUBBW): Ditto.
6743         (IX86_BUILTIN_PHSUBWD): Ditto.
6744         (IX86_BUILTIN_PHSUBDQ): Ditto.
6745         (IX86_BUILTIN_PROTB): Ditto.
6746         (IX86_BUILTIN_PROTW): Ditto.
6747         (IX86_BUILTIN_PROTD): Ditto.
6748         (IX86_BUILTIN_PROTQ): Ditto.
6749         (IX86_BUILTIN_PROTB_IMM): Ditto.
6750         (IX86_BUILTIN_PROTW_IMM): Ditto.
6751         (IX86_BUILTIN_PROTD_IMM): Ditto.
6752         (IX86_BUILTIN_PROTQ_IMM): Ditto.
6753         (IX86_BUILTIN_PSHLB): Ditto.
6754         (IX86_BUILTIN_PSHLW): Ditto.
6755         (IX86_BUILTIN_PSHLD): Ditto.
6756         (IX86_BUILTIN_PSHLQ): Ditto.
6757         (IX86_BUILTIN_PSHAB): Ditto.
6758         (IX86_BUILTIN_PSHAW): Ditto.
6759         (IX86_BUILTIN_PSHAD): Ditto.
6760         (IX86_BUILTIN_PSHAQ): Ditto.
6761         (IX86_BUILTIN_FRCZSS): Ditto.
6762         (IX86_BUILTIN_FRCZSD): Ditto.
6763         (IX86_BUILTIN_FRCZPS): Ditto.
6764         (IX86_BUILTIN_FRCZPD): Ditto.
6765         (IX86_BUILTIN_CVTPH2PS): Ditto.
6766         (IX86_BUILTIN_CVTPS2PH): Ditto.
6767         (IX86_BUILTIN_COMEQSS): Ditto.
6768         (IX86_BUILTIN_COMNESS): Ditto.
6769         (IX86_BUILTIN_COMLTSS): Ditto.
6770         (IX86_BUILTIN_COMLESS): Ditto.
6771         (IX86_BUILTIN_COMGTSS): Ditto.
6772         (IX86_BUILTIN_COMGESS): Ditto.
6773         (IX86_BUILTIN_COMUEQSS): Ditto.
6774         (IX86_BUILTIN_COMUNESS): Ditto.
6775         (IX86_BUILTIN_COMULTSS): Ditto.
6776         (IX86_BUILTIN_COMULESS): Ditto.
6777         (IX86_BUILTIN_COMUGTSS): Ditto.
6778         (IX86_BUILTIN_COMUGESS): Ditto.
6779         (IX86_BUILTIN_COMORDSS): Ditto.
6780         (IX86_BUILTIN_COMUNORDSS): Ditto.
6781         (IX86_BUILTIN_COMFALSESS): Ditto.
6782         (IX86_BUILTIN_COMTRUESS): Ditto.
6783         (IX86_BUILTIN_COMEQSD): Ditto.
6784         (IX86_BUILTIN_COMNESD): Ditto.
6785         (IX86_BUILTIN_COMLTSD): Ditto.
6786         (IX86_BUILTIN_COMLESD): Ditto.
6787         (IX86_BUILTIN_COMGTSD): Ditto.
6788         (IX86_BUILTIN_COMGESD): Ditto.
6789         (IX86_BUILTIN_COMUEQSD): Ditto.
6790         (IX86_BUILTIN_COMUNESD): Ditto.
6791         (IX86_BUILTIN_COMULTSD): Ditto.
6792         (IX86_BUILTIN_COMULESD): Ditto.
6793         (IX86_BUILTIN_COMUGTSD): Ditto.
6794         (IX86_BUILTIN_COMUGESD): Ditto.
6795         (IX86_BUILTIN_COMORDSD): Ditto.
6796         (IX86_BUILTIN_COMUNORDSD): Ditto.
6797         (IX86_BUILTIN_COMFALSESD): Ditto.
6798         (IX86_BUILTIN_COMTRUESD): Ditto.
6799         (IX86_BUILTIN_COMEQPS): Ditto.
6800         (IX86_BUILTIN_COMNEPS): Ditto.
6801         (IX86_BUILTIN_COMLTPS): Ditto.
6802         (IX86_BUILTIN_COMLEPS): Ditto.
6803         (IX86_BUILTIN_COMGTPS): Ditto.
6804         (IX86_BUILTIN_COMGEPS): Ditto.
6805         (IX86_BUILTIN_COMUEQPS): Ditto.
6806         (IX86_BUILTIN_COMUNEPS): Ditto.
6807         (IX86_BUILTIN_COMULTPS): Ditto.
6808         (IX86_BUILTIN_COMULEPS): Ditto.
6809         (IX86_BUILTIN_COMUGTPS): Ditto.
6810         (IX86_BUILTIN_COMUGEPS): Ditto.
6811         (IX86_BUILTIN_COMORDPS): Ditto.
6812         (IX86_BUILTIN_COMUNORDPS): Ditto.
6813         (IX86_BUILTIN_COMFALSEPS): Ditto.
6814         (IX86_BUILTIN_COMTRUEPS): Ditto.
6815         (IX86_BUILTIN_COMEQPD): Ditto.
6816         (IX86_BUILTIN_COMNEPD): Ditto.
6817         (IX86_BUILTIN_COMLTPD): Ditto.
6818         (IX86_BUILTIN_COMLEPD): Ditto.
6819         (IX86_BUILTIN_COMGTPD): Ditto.
6820         (IX86_BUILTIN_COMGEPD): Ditto.
6821         (IX86_BUILTIN_COMUEQPD): Ditto.
6822         (IX86_BUILTIN_COMUNEPD): Ditto.
6823         (IX86_BUILTIN_COMULTPD): Ditto.
6824         (IX86_BUILTIN_COMULEPD): Ditto.
6825         (IX86_BUILTIN_COMUGTPD): Ditto.
6826         (IX86_BUILTIN_COMUGEPD): Ditto.
6827         (IX86_BUILTIN_COMORDPD): Ditto.
6828         (IX86_BUILTIN_COMUNORDPD): Ditto.
6829         (IX86_BUILTIN_COMFALSEPD): Ditto.
6830         (IX86_BUILTIN_COMTRUEPD): Ditto.
6831         (IX86_BUILTIN_PCOMEQUB): Ditto.
6832         (IX86_BUILTIN_PCOMNEUB): Ditto.
6833         (IX86_BUILTIN_PCOMLTUB): Ditto.
6834         (IX86_BUILTIN_PCOMLEUB): Ditto.
6835         (IX86_BUILTIN_PCOMGTUB): Ditto.
6836         (IX86_BUILTIN_PCOMGEUB): Ditto.
6837         (IX86_BUILTIN_PCOMFALSEUB): Ditto.
6838         (IX86_BUILTIN_PCOMTRUEUB): Ditto.
6839         (IX86_BUILTIN_PCOMEQUW): Ditto.
6840         (IX86_BUILTIN_PCOMNEUW): Ditto.
6841         (IX86_BUILTIN_PCOMLTUW): Ditto.
6842         (IX86_BUILTIN_PCOMLEUW): Ditto.
6843         (IX86_BUILTIN_PCOMGTUW): Ditto.
6844         (IX86_BUILTIN_PCOMGEUW): Ditto.
6845         (IX86_BUILTIN_PCOMFALSEUW): Ditto.
6846         (IX86_BUILTIN_PCOMTRUEUW): Ditto.
6847         (IX86_BUILTIN_PCOMEQUD): Ditto.
6848         (IX86_BUILTIN_PCOMNEUD): Ditto.
6849         (IX86_BUILTIN_PCOMLTUD): Ditto.
6850         (IX86_BUILTIN_PCOMLEUD): Ditto.
6851         (IX86_BUILTIN_PCOMGTUD): Ditto.
6852         (IX86_BUILTIN_PCOMGEUD): Ditto.
6853         (IX86_BUILTIN_PCOMFALSEUD): Ditto.
6854         (IX86_BUILTIN_PCOMTRUEUD): Ditto.
6855         (IX86_BUILTIN_PCOMEQUQ): Ditto.
6856         (IX86_BUILTIN_PCOMNEUQ): Ditto.
6857         (IX86_BUILTIN_PCOMLTUQ): Ditto.
6858         (IX86_BUILTIN_PCOMLEUQ): Ditto.
6859         (IX86_BUILTIN_PCOMGTUQ): Ditto.
6860         (IX86_BUILTIN_PCOMGEUQ): Ditto.
6861         (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
6862         (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
6863         (IX86_BUILTIN_PCOMEQB): Ditto.
6864         (IX86_BUILTIN_PCOMNEB): Ditto.
6865         (IX86_BUILTIN_PCOMLTB): Ditto.
6866         (IX86_BUILTIN_PCOMLEB): Ditto.
6867         (IX86_BUILTIN_PCOMGTB): Ditto.
6868         (IX86_BUILTIN_PCOMGEB): Ditto.
6869         (IX86_BUILTIN_PCOMFALSEB): Ditto.
6870         (IX86_BUILTIN_PCOMTRUEB): Ditto.
6871         (IX86_BUILTIN_PCOMEQW): Ditto.
6872         (IX86_BUILTIN_PCOMNEW): Ditto.
6873         (IX86_BUILTIN_PCOMLTW): Ditto.
6874         (IX86_BUILTIN_PCOMLEW): Ditto.
6875         (IX86_BUILTIN_PCOMGTW): Ditto.
6876         (IX86_BUILTIN_PCOMGEW): Ditto.
6877         (IX86_BUILTIN_PCOMFALSEW): Ditto.
6878         (IX86_BUILTIN_PCOMTRUEW): Ditto.
6879         (IX86_BUILTIN_PCOMEQD): Ditto.
6880         (IX86_BUILTIN_PCOMNED): Ditto.
6881         (IX86_BUILTIN_PCOMLTD): Ditto.
6882         (IX86_BUILTIN_PCOMLED): Ditto.
6883         (IX86_BUILTIN_PCOMGTD): Ditto.
6884         (IX86_BUILTIN_PCOMGED): Ditto.
6885         (IX86_BUILTIN_PCOMFALSED): Ditto.
6886         (IX86_BUILTIN_PCOMTRUED): Ditto.
6887         (IX86_BUILTIN_PCOMEQQ): Ditto.
6888         (IX86_BUILTIN_PCOMNEQ): Ditto.
6889         (IX86_BUILTIN_PCOMLTQ): Ditto.
6890         (IX86_BUILTIN_PCOMLEQ): Ditto.
6891         (IX86_BUILTIN_PCOMGTQ): Ditto.
6892         (IX86_BUILTIN_PCOMGEQ): Ditto.
6893         (IX86_BUILTIN_PCOMFALSEQ): Ditto.
6894         (IX86_BUILTIN_PCOMTRUEQ): Ditto.
6895         (enum multi_arg_type): New enum for describing the various SSE5
6896         intrinsic argument types.
6897         (bdesc_multi_arg): New table for SSE5 intrinsics.
6898         (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
6899         (ix86_expand_multi_arg_builtin): New function for creating SSE5
6900         intrinsics.
6901         (ix86_expand_builtin): Add SSE5 intrinsic support.
6902         (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
6903         operand instructions.
6904         (ix86_expand_sse5_multiple_memory): New function to split the
6905         second memory reference from SSE5 instructions.
6906         (type_has_variadic_args_p): Delete in favor of stdarg_p.
6907         (ix86_return_pops_args): Use stdarg_p to determine if the function
6908         has variable arguments.
6909         (ix86_setup_incoming_varargs): Ditto.
6910         (x86_this_parameter): Ditto.
6911
6912         * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
6913         declaration.
6914         (ix86_expand_sse5_pack): Ditto.
6915         (ix86_sse5_valid_op_p): Ditto.
6916         (ix86_expand_sse5_multiple_memory): Ditto.
6917
6918         * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
6919         constant for SSE5 support.
6920         (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
6921         (UNSPEC_SSE5_TRUEFALSE): Ditto.
6922         (UNSPEC_SSE5_PERMUTE): Ditto.
6923         (UNSPEC_SSE5_ASHIFT): Ditto.
6924         (UNSPEC_SSE5_LSHIFT): Ditto.
6925         (UNSPEC_FRCZ): Ditto.
6926         (UNSPEC_CVTPH2PS): Ditto.
6927         (UNSPEC_CVTPS2PH): Ditto.
6928         (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
6929         (PCOM_TRUE): Ditto.
6930         (COM_FALSE_S): Ditto.
6931         (COM_FALSE_P): Ditto.
6932         (COM_TRUE_S): Ditto.
6933         (COM_TRUE_P): Ditto.
6934         (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
6935         (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
6936         types.
6937         (memory attribute): Ditto.
6938         (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
6939         Use SSE4_1_ROUND_* constants instead of hard coded numbers.
6940         (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
6941         (floor<mode>2): Ditto.
6942         (ceil<mode>2): Ditto.
6943         (btrunc<mode>2): Ditto.
6944         (nearbyintdf2): Ditto.
6945         (nearbyintsf2): Ditto.
6946         (sse_setccsf): Disable if SSE5.
6947         (sse_setccdf): Ditto.
6948         (sse5_setcc<mode>): New support for SSE5 conditional move.
6949         (sse5_pcmov_<mode>): Ditto.
6950
6951         * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
6952         (SSEMODEF4): Ditto.
6953         (SSEMODEF2P): Ditto.
6954         (ssemodesuffixf4): New mode attribute for SSE5.
6955         (ssemodesuffixf2s): Ditto.
6956         (ssemodesuffixf2c): Ditto.
6957         (sserotatemax): Ditto.
6958         (ssescalarmode): Ditto.
6959         (sse_maskcmpv4sf3): Disable if SSE5.
6960         (sse_maskcmpv2df3): Ditto.
6961         (sse_vmmaskcmpv4sf3): Ditto.
6962         (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
6963         (sse5_vmfmadd<mode>4): Ditto.
6964         (sse5_fmsub<mode>4): Ditto.
6965         (sse5_vmfmsub<mode>4): Ditto.
6966         (sse5_fnmadd<mode>4): Ditto.
6967         (sse5_vmfnmadd<mode>4): Ditto.
6968         (sse5_fnmsub<mode>4): Ditto.
6969         (sse5_vmfnmsub<mode>4): Ditto.
6970         (sse5i_fmadd<mode>4): Ditto.
6971         (sse5i_fmsub<mode>4): Ditto.
6972         (sse5i_fnmadd<mode>4): Ditto.
6973         (sse5i_fnmsub<mode>4): Ditto.
6974         (sse5i_vmfmadd<mode>4): Ditto.
6975         (sse5i_vmfmsub<mode>4): Ditto.
6976         (sse5i_vmfnmadd<mode>4): Ditto.
6977         (sse5i_vmfnmsub<mode>4): Ditto.
6978         (mulv16qi3): Add SSE5 support.
6979         (mulv4si3): Ditto.
6980         (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
6981         (sse2_mulv4si3): Disable if SSE5.
6982         (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
6983         (sse4_1_roundps): Ditto.
6984         (sse4_1_roundsd): Ditto.
6985         (sse4_1_roundss): Ditto.
6986         (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
6987         be generated.
6988         (sse_maskcmpsf3): Ditto.
6989         (sse_vmmaskcmpv4sf3): Ditto.
6990         (sse2_maskcmpv2df3): Ditto.
6991         (sse2_maskcmpdf3): Ditto.
6992         (sse2_vmmaskcmpv2df3): Ditto.
6993         (sse2_eq<mode>3): Ditto.
6994         (sse2_gt<mode>3): Ditto.
6995         (sse5_pcmov_<mode>): Add SSE5 support.
6996         (vec_unpacku_hi_v16qi): Ditto.
6997         (vec_unpacks_hi_v16qi): Ditto.
6998         (vec_unpacku_lo_v16qi): Ditto.
6999         (vec_unpacks_lo_v16qi): Ditto.
7000         (vec_unpacku_hi_v8hi): Ditto.
7001         (vec_unpacks_hi_v8hi): Ditto.
7002         (vec_unpacku_lo_v8hi): Ditto.
7003         (vec_unpacks_lo_v8hi): Ditto.
7004         (vec_unpacku_hi_v4si): Ditto.
7005         (vec_unpacks_hi_v4si): Ditto.
7006         (vec_unpacku_lo_v4si): Ditto.
7007         (vec_unpacks_lo_v4si): Ditto.
7008         (sse5_pmacsww): New SSE5 intrinsic insn.
7009         (sse5_pmacssww): Ditto.
7010         (sse5_pmacsdd): Ditto.
7011         (sse5_pmacssdd): Ditto.
7012         (sse5_pmacssdql): Ditto.
7013         (sse5_pmacssdqh): Ditto.
7014         (sse5_pmacsdqh): Ditto.
7015         (sse5_pmacsswd): Ditto.
7016         (sse5_pmacswd): Ditto.
7017         (sse5_pmadcsswd): Ditto.
7018         (sse5_pmadcswd): Ditto.
7019         (sse5_pcmov_<move>): Conditional move support on SSE5.
7020         (sse5_phaddbw): New SSE5 intrinsic insn.
7021         (sse5_phaddbd): Ditto.
7022         (sse5_phaddbq): Ditto.
7023         (sse5_phaddwd): Ditto.
7024         (sse5_phaddwq): Ditto.
7025         (sse5_phadddq): Ditto.
7026         (sse5_phaddubw): Ditto.
7027         (sse5_phaddubd): Ditto.
7028         (sse5_phaddubq): Ditto.
7029         (sse5_phadduwd): Ditto.
7030         (sse5_phadduwq): Ditto.
7031         (sse5_phaddudq): Ditto.
7032         (sse5_phsubbw): Ditto.
7033         (sse5_phsubwd): Ditto.
7034         (sse5_phsubdq): Ditto.
7035         (sse5_pperm): Ditto.
7036         (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
7037         (sse5_pperm_zero_v16qi_v8hi): Ditto.
7038         (sse5_pperm_sign_v8hi_v4si): Ditto.
7039         (sse5_pperm_zero_v8hi_v4si): Ditto.
7040         (sse5_pperm_sign_v4si_v2di): Ditto.
7041         (sse5_pperm_sign_v4si_v2di): Ditto.
7042         (sse5_pperm_pack_v2di_v4si): Ditto.
7043         (sse5_pperm_pack_v4si_v8hi): Ditto.
7044         (sse5_pperm_pack_v8hi_v16qi): Ditto.
7045         (sse5_perm<mode>): New SSE5 intrinsic insn.
7046         (rotl<mode>3): Ditto.
7047         (sse5_rotl<mode>3): Ditto.
7048         (sse5_ashl<mode>3): Ditto.
7049         (sse5_lshl<mode>3): Ditto.
7050         (sse5_frcz<mode>2): Ditto.
7051         (sse5s_frcz<mode>2): Ditto.
7052         (sse5_cvtph2ps): Ditto.
7053         (sse5_cvtps2ph): Ditto.
7054         (sse5_vmmaskcmp<mode>3): Ditto.
7055         (sse5_com_tf<mode>3): Ditto.
7056         (sse5_maskcmp<mode>3): Ditto.
7057         (sse5_maskcmp_uns<mode>3): Ditto.
7058         (sse5_maskcmp_uns2<mode>3): Ditto.
7059         (sse5_pcom_tf<mode>3): Ditto.
7060
7061         * config/i386/predicates.md (sse5_comparison_float_operator):
7062         New predicate to match the comparison operators supported by
7063         the SSE5 com instruction.
7064         (ix86_comparison_int_operator): New predicate to match just the
7065         signed int comparisons.
7066         (ix86_comparison_uns_operator): New predicate to match just the
7067         unsigned int comparisons.
7068
7069         * doc/invoke.texi (-msse5): Add documentation.
7070         (-mfused-madd): Ditto.
7071
7072         * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
7073
7074         * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
7075         mmintrin-common.h.
7076         (x86_64-*-*): Ditto.
7077
7078         * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
7079
7080         * config/i386/bmmintrin.h: New file, provide common x86 compiler
7081         intrinisics for SSE5.
7082
7083         * config/i386/smmintrin.h: Move instructions shared with SSE5 to
7084         mmintrin-common.h.
7085
7086         * config/i386/mmintrin-common.h: New file, to contain common
7087         instructions between SSE4.1 and SSE5.
7088
7089         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
7090         FOREACH_FUNCTION_ARGS to iterate over the argument list.
7091         (gen_regparm_prefix): Ditto.
7092
7093         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
7094         FOREACH_FUNCTION_ARGS to iterate over the argument list.  Use
7095         prototype_p to determine if a function is prototyped.
7096
7097 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
7098
7099         * c-common.c (c_common_reswords) add the alignof keyword,
7100         with same RID as __alignof and __alignof__
7101
7102 2009-08-25  Anatoly Sokolov  <aesok@post.ru>
7103
7104         * hooks.h (hook_bool_const_int_const_int_true): Declare.
7105         * hooks.c (hook_bool_const_int_const_int_true): New function.
7106         * target.h (struct gcc_target): Add can_eliminate field.
7107         * target-def.h (TARGET_CAN_ELIMINATE): Define.
7108         (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
7109         * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
7110         * reload1.c (update_eliminables, init_elim_table): (Ditto.).
7111         (elim_table): Revise comment.
7112         * system.h (CAN_ELIMINATE): Poison.
7113         * defaults.h (CAN_ELIMINATE): Remove.
7114         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
7115
7116         * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
7117         * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
7118         Define macro.
7119         (alpha_vms_can_eliminate): Declare as static, change return type to
7120         bool.
7121         * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
7122
7123         * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
7124         * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
7125         (arm_can_eliminate): New function.
7126
7127         * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
7128         * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
7129         (avr_can_eliminate): Declare as static.
7130         * config/avr/avr-protos.h (avr_can_eliminate): Remove.
7131
7132         * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
7133         * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
7134         (bfin_can_eliminate): New function.
7135
7136         * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
7137         * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
7138         (crx_can_eliminate): New function.
7139
7140         * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
7141         * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
7142         (fr30_can_eliminate): New function.
7143
7144         * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
7145         * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
7146         (frv_can_eliminate): New function.
7147
7148         * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
7149         * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
7150         (h8300_can_eliminate): New function.
7151
7152         * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
7153         * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
7154         (i386_can_eliminate): Declare as static, change return type to bool.
7155         * config/i386/i386-protos.h (i386_can_eliminate): Remove.
7156
7157         * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
7158         * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
7159         (ia64_can_eliminate): New function.
7160
7161         * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
7162         * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
7163         (iq2000_can_eliminate): New function.
7164
7165         * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
7166         * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
7167         (m32r_can_eliminate): New function.
7168
7169         * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
7170         * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
7171         (m68hc11_can_eliminate): New function.
7172
7173         * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
7174         * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
7175         (m68k_can_eliminate): New function.
7176
7177         * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
7178         * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
7179         (mep_can_eliminate): New function.
7180
7181         * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
7182         * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
7183         (mips_can_eliminate): New function.
7184
7185         * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
7186         * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
7187         (rs6000_can_eliminate): New function.
7188
7189         * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
7190         * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
7191         (s390_can_eliminate): Declare as static.
7192         * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
7193
7194         * config/score/score.h (CAN_ELIMINATE): Remove macro.
7195         * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
7196         (score_can_eliminate): New function.
7197
7198         * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
7199         * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
7200         (sparc_can_eliminate): Declare as static.
7201         * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
7202
7203         * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
7204         * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
7205         (xstormy16_can_eliminate): New function.
7206
7207         * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
7208         * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
7209         (v850_can_eliminate): New function.
7210
7211 2009-08-25  Uros Bizjak  <ubizjak@gmail.com>
7212
7213         * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
7214         (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
7215         (*movdfcc_ext[1234]): Disable for IEEE mode.
7216
7217 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
7218
7219         * gimplify.c (prepare_gimple_addressable): New static function.
7220         (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
7221         it addressable.
7222         (gimplify_addr_expr): Invoke it similarly on the operand instead of
7223         manually fiddling with it.
7224
7225 2009-08-25  Michael Matz  <matz@suse.de>
7226
7227         * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
7228         * dojump.c (do_jump_by_parts_greater): Take two operands instead of
7229         full expression.
7230         (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
7231         (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
7232         (do_jump): Split out code for simple binary comparisons into ...
7233         (do_jump_1): ... this, taking the individual operands and code.
7234         Change callers to helper function above accordingly.
7235         * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
7236         comparisons.
7237
7238 2009-08-25  Michael Matz  <matz@suse.de>
7239
7240         * expr.h (struct separate_ops, sepops): New type for passing
7241         around an exploded simple expression.
7242         * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
7243         Use this structure instead of expression tree.
7244         (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
7245         expression, only its type.
7246         (expand_vec_cond_expr): Take type and individual operands instead
7247         of full expression.
7248         * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
7249         expand_vec_shift_expr): Change prototype accordingly.
7250         * tree-vect-stmts.c (vectorizable_condition): Change call of
7251         expand_vec_cond_expr_p to pass only type.
7252         * expr.c (do_store_flags): Change prototype and implementation
7253         to take an exploded expression.
7254         (expand_expr_real_1): New local ops initialized with details
7255         of the full expression.  Use it instead of full
7256         expression in calls to do_store_flags, expand_vec_cond_expr,
7257         expand_widen_pattern_expr and expand_vec_shift_expr.
7258
7259 2009-08-25  Michael Matz  <matz@suse.de>
7260
7261         * expr.c (expand_expr_real_1): New local treeop0, treeop1,
7262         treeop2 initialized with first three operands of the full expression.
7263         Substitute all TREE_OPERAND (exp, [012]) calls with them.
7264
7265 2009-08-25  Kai Tietz  <kai.tietz@onevision.com>
7266
7267         * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
7268         (__gthread_objc_condition_allocate): Mark arguments as unused.
7269         (__gthread_objc_condition_deallocate): Likewise.
7270         (__gthread_objc_condition_wait): Likewise.
7271         (__gthread_objc_condition_broadcast): Likewise.
7272         (__gthread_objc_condition_signal): Likewise.
7273         (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
7274         (__gthread_objc_thread_id): Likewise.
7275
7276 2009-08-25  Janus Weil  <janus@gcc.gnu.org>
7277
7278         PR middle-end/41149
7279         * tree-pretty-print.c (print_call_name): Print the correct call name
7280         for procedure pointer components.
7281
7282 2009-08-24  Steve Ellcey  <sje@cup.hp.com>
7283
7284         * config/ia64/ia64.c (ia64_promote_function_mode): Call
7285         default_promote_function_mode when not VMS.
7286
7287 2009-08-24  Olivier Hainque  <hainque@adacore.com>
7288
7289         * convert.c (convert_to_integer): Don't assume an input pointer is
7290         POINTER_SIZE wide.  Fetch from the type instead.
7291
7292 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7293
7294         * configure.ac (AC_PREREQ): Bump to 2.64.
7295
7296 2009-08-24  Rafael Avila de Espindola  <espindola@google.com>
7297
7298         * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
7299         (process_command): Don't search standard_exec_prefix_1 and
7300         standard_exec_prefix_2.
7301
7302 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7303
7304         * config/arm/arm.c (output_return_instruction): Handle for
7305         unified syntax.
7306
7307 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7308
7309         * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
7310
7311 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7312
7313         * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
7314         (*arm_movdf_vfp): Likewise.
7315
7316 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7317
7318         * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
7319         (vashr<mode>3): Rename from ashr<mode>3.
7320         (vlshr<mode>3): Rename from lshr<mode>3.
7321
7322 2009-08-24  Kai Tietz  <kai.tietz@onevision.com>
7323
7324         PR/40786
7325         * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
7326         (check_format_info_main): Use scalar_identify_flag.
7327         (check_format_types): Check for scalar size identity if
7328         scalar_identify_flag is set.
7329         (printf_length_specs): Extend by new field.
7330         (asm_fprintf_length_specs): Likewise.
7331         (gcc_diag_length_specs): Likewise.
7332         (scanf_length_specs): Likewise.
7333         (strfmon_length_specs): Likewise.
7334         (gcc_gfc_length_specs): Likewise.
7335         * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
7336         (ms_printf_flag_specs): Likewise.
7337         * c-format.h (format_length_info): Add new member scalar_identity_flag.
7338
7339 2009-08-23  Uros Bizjak  <ubizjak@gmail.com>
7340
7341         PR target/40718
7342         * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
7343         (*call_value_pop_1): Ditto.
7344         (*sibcall_pop_1): New insn pattern.
7345         (*sibcall_value_pop_1): Ditto.
7346
7347 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
7348
7349         PR target/41081
7350         * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
7351         ashrsi3_64): New.
7352
7353 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
7354
7355         PR target/41081
7356         * fwprop.c (try_fwprop_subst): Allow multiple sets.
7357         (get_reg_use_in): New function.
7358         (forward_propagate_subreg): Propagate through subreg of zero_extend
7359         or sign_extend.
7360
7361 2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>
7362
7363         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
7364         * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
7365
7366 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7367
7368         * configure.ac: Remove --with-datarootdir, --with-docdir,
7369         --with-htmldir switches.  No need to call AC_SUBST for
7370         datarootdir, docdir, htmldir any more.
7371         * configure: Regenerate.
7372         * doc/install.texi (Configuration): Document --datarootdir,
7373         --docdir, --htmldir, --pdfdir; update documentation for
7374         --infodir, --mandir.
7375         (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
7376         M4 to 1.4.6.
7377
7378         * aclocal.m4: Regenerate.
7379         * config.in: Regenerate.
7380         * configure: Regenerate.
7381
7382 2009-08-21  Douglas B Rupp  <rupp@gnat.com>
7383             Olivier Hainque  <hainque@adacore.com>
7384
7385         * config/ia64/ia64.c: Include libfuncs.h.
7386         (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
7387         (ia64_expand_call): Use reg 25 on VMS.
7388         (ia64_initialize_trampoline): Fix for VMS ABI.
7389         (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
7390         (ia64_function_arg): Initialize reg 25 on VMS.
7391         Fix OpenVMS ABI issues for varargs.
7392         For OpenVMS, emit the Argument Information register set in the
7393         incoming/sibcall case as well.
7394         (ia64_arg_type): New function.
7395         (ia64_function_arg_advance): Keep track of cum->words.
7396         Fix OpenVMS ABI issues for varargs.
7397         (ia64_function_value): On VMS, promote mode of non-aggregate types.
7398         (ia64_override_options): Set flag_no_common on VMS.
7399         (ia64_init_builtins): Disable FWRITE builtin.
7400         (ia64_asm_output_external): Call DO_CRTL_NAMES.
7401         (ia64_vms_init_libfuncs): Add decc$ routines.
7402         (ia64_vms_valid_pointer_mode): New function.
7403         (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
7404         (ia64_promote_function_mode): New function
7405         * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
7406         (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
7407         (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
7408         (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
7409         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
7410         (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
7411         Suppress trailing '#' if VALUE is numeric.
7412         * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
7413         ia64_promote_function_mode.
7414         (TARGET_VALID_POINTER_MODE): Define.
7415
7416 2009-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
7417
7418         PR target/40671
7419         * config/rs6000/rs6000.c (rs6000_override_options): Use
7420         TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
7421
7422         PR target/41145
7423         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
7424         reporting of vector + decimal/boolean/complex error.
7425
7426 2009-08-21  Jakub Jelinek  <jakub@redhat.com>
7427
7428         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
7429         __vector double TYPE_DECL.
7430
7431 2009-08-21  Richard Earnshaw  <rearnsha@arm.com>
7432
7433         * arm.h (MACHMODE): New define.  Include insn-modes.h if available.
7434         (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
7435         * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
7436         to pointer to enum machine_mode.  Update all callers as needed.
7437
7438 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
7439
7440         * config/alpha/alpha.md (exception_receiver): Emit alternative
7441         GP load sequence if flag_reorder_blocks_and_partition is set.
7442         (*exception_receiver_2): Also enable when
7443         flag_reorder_blocks_and_partition is set.
7444
7445 2009-08-20  Matt Rice  <ratmice@gmail.com>
7446             Diego Novillo  <dnovillo@google.com>
7447
7448         * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
7449         tree-ssa-sccvn.h.
7450
7451 2009-08-20  Richard Guenther  <rguenther@suse.de>
7452
7453         * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
7454         * c-tree.h (c_dup_lang_specific_decl): Remove.
7455         (struct lang_decl, struct lang_type): Move definitions ...
7456         * c-lang.h: ... here.  New file.
7457         * c-decl.c: Include c-lang.h.
7458         (c_dup_lang_specific_decl): Remove.
7459         * c-typeck.c: Include c-lang.h.
7460         * Makefile.in (c-decl.o): Add c-lang.h dependency.
7461         (c-typeck.o): Likewise.
7462         * c-config-lang.in (gtfiles): Add c-lang.h.
7463         * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
7464         like c-tree.h.
7465
7466 2009-08-20  Uros Bizjak  <ubizjak@gmail.com>
7467
7468         * config/alpha/alpha.c (alpha_end_function): Do not clear
7469         crtl->emit structure and free insn locators if cfun->is_thunk is true,
7470         this is now handled in generic code.
7471
7472 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
7473
7474         * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
7475         (s390_z10_fix_long_loop_prediction): New function.
7476         (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
7477         (s390_reorg): Walk over the INSNs and invoke
7478         s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
7479
7480 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
7481
7482         * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
7483         "*brx_64bit", "*brx_31bit"): New patterns.
7484         * config/s390/s390.c ('E'): New output modifier.
7485
7486 2009-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7487             Richard Earnshaw  <richard.earnshaw@arm.com>
7488
7489         * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
7490         * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
7491
7492 2009-08-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7493
7494         * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
7495         patterns.
7496         * pa.c (emit_move_sequence): Check if address of operand1 is valid
7497         for mode mode of operand0 when doing secondary reload for SAR.
7498
7499 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
7500
7501         PR middle-end/41123
7502         * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
7503         of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
7504
7505 2009-08-19  Jason Merrill  <jason@redhat.com>
7506
7507         * doc/invoke.texi (C++ Dialect Options): Note change of minimum
7508         supported template depth in C++0x.
7509
7510 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
7511
7512         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
7513         free_after_compilation.
7514         * config/score/score7.c (score7_output_mi_thunk): Likewise.
7515         * config/score/score3.c (score3_output_mi_thunk): Likewise.
7516         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
7517         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
7518         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7519         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
7520         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7521
7522 2009-08-19  Ian Lance Taylor  <iant@google.com>
7523
7524         * doc/md.texi (Insn Canonicalizations): Correct canonicalization
7525         of (plus (mult (neg B) C) A).
7526
7527 2009-08-18  Michael Matz  <matz@suse.de>
7528
7529         * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
7530         instead of comparing TYPE_MAIN_VARIANT for equality.
7531         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
7532         vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
7533         * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
7534         * gimplify.c (goa_lhs_expr_p): Ditto and use
7535         STRIP_USELESS_TYPE_CONVERSION.
7536
7537 2009-08-18  Michael Matz  <matz@suse.de>
7538
7539         * tree-ssa-structalias.c (create_variable_info_for): Also mark
7540         first field in a struct.
7541         (intra_create_variable_infos): Don't deal with flag_argument_noalias.
7542
7543 2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
7544
7545         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
7546         locators before emit_insn is called.  Remove assert that
7547         cfun->is_thunk.
7548         (alpha_end_function): Clear crtl->emit structure and free insn
7549         locators if cfun->is_thunk is true.
7550
7551 2009-08-18  Jason Merrill  <jason@redhat.com>
7552
7553         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
7554         type if available.
7555         * configure.ac: Test for it.
7556         * configure, config.in: Regenerate.
7557         * doc/install.texi: Document --enable-gnu-unique-object.
7558
7559 2009-08-18  Richard Guenther  <rguenther@suse.de>
7560
7561         PR middle-end/41094
7562         * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
7563         pow(x,y*z) only if x is nonnegative.
7564
7565 2009-08-18  Jakub Jelinek  <jakub@redhat.com>
7566
7567         * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
7568         on jumps.
7569
7570         PR target/40971
7571         * config/rs6000/rs6000.c (rs6000_legitimize_address): For
7572         [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
7573
7574 2009-08-17  DJ Delorie  <dj@redhat.com>
7575
7576         * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
7577         * config/m32c/prologue.md (epilogue_freit): New.
7578         (fset_b): New.
7579         * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
7580         (bank_switch_p): Likewise.
7581         (fast_interrupt_p): Likewise.
7582         (interrupt_p): Likewise.
7583         (m32c_conditional_register_usage): Round memregs size up.
7584         (need_to_save): We only need to save $a0 when we use ENTER.
7585         (interrupt_p): Check for fast_interrupt too.
7586         (bank_switch_p): New.
7587         (fast_interrupt_p): New.
7588         (m32c_attribute_table): Add bank_switch and fast_interrupt.
7589         (m32c_emit_prolog): Support bank switching and fast interrupts.
7590         * doc/extend.texi (Function Attributes): Add bank_switch and
7591         fast_interrupt.
7592
7593 2009-08-17  Douglas B Rupp  <rupp@gnat.com>
7594
7595         * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
7596         * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
7597
7598 2009-08-16  Douglas B Rupp  <rupp@gnat.com>
7599
7600         * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
7601         (menu): Add IA-64/VMS Options.
7602         (IA-64/VMS Options): Likewise.
7603
7604 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
7605
7606         PR target/38599
7607         * config/mips/mips.md (*lwxs): Use :P for pointer values.
7608
7609 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
7610
7611         * config/mips/mips-protos.h (mips_push_asm_switch): New function.
7612         (mips_pop_asm_switch): Likewise.
7613         * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
7614         with...
7615         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
7616         (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
7617         (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
7618         (mips_print_operand_punctuation): Use them.  Check mips_noreorder
7619         instead of set_noreorder.
7620         (mips_output_function_prologue): Use the new functions.
7621         (mips_output_function_epilogue): Likewise.
7622         (mips_need_noat_wrapper_p): New function, split out from...
7623         (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
7624         Use mips_push_asm_switch and mips_pop_asm_switch.
7625         * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
7626         and mips_pop_asm_switch.
7627         (ASM_OUTPUT_REG_POP): Likewise.
7628         (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
7629         Use mips_pop_asm_switch.
7630         (mips_asm_switch): New structure.
7631         (set_noreorder, set_nomacro): Replace with...
7632         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
7633         * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
7634         instead of set_nomacro.
7635         (fix_truncsfsi2_macro): Likewise.
7636         (cprestore): Likewise.
7637         (hazard): Use mips_noreorder instead of set_noreorder.
7638         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
7639
7640 2009-08-16  Uros Bizjak  <ubizjak@gmail.com>
7641
7642         * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
7643         from prev_active_insn.
7644
7645 2009-08-16  Anatoly Sokolov  <aesok@post.ru>
7646
7647         * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
7648         * config/avr/avr.c (avr_override_options): Initialize
7649         avr_current_arch variable.
7650         (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
7651         __AVR_HAVE_16BIT_SP__ according to the device type.
7652         (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
7653         TARGET_TINY_STACK.
7654         (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
7655         Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
7656
7657 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
7658
7659         PR debug/37801
7660         * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
7661         generating inlined subroutine die only. We shouldn't be
7662         called for anything else.
7663         (gen_block_die): Don't generate inline subroutine debug info for
7664         abstract blocks.
7665
7666 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
7667
7668         * graphite-poly.c (print_pbb): Print PBB index.
7669
7670 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
7671
7672         PR middle-end/40981
7673         * graphite-interchange.c (ppl_max_for_le): Moved...
7674         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
7675         * graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
7676         ppl_Pointset_Powerset_C_Polyhedron_maximize.
7677         * graphite-ppl.h (ppl_max_for_le): Declared.
7678
7679 2009-08-14  Olatunji Ruwase <tjruwase@google.com>
7680
7681         * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
7682         supported on all platforms.
7683         * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
7684         * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
7685         * c-pragma.c: Likewise.
7686         * target-def.h (TARGET_INITIALIZER): Remove
7687         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
7688         * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
7689
7690 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
7691
7692         * config/ia64/fde-vms.c: New file.
7693         * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
7694         * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
7695         (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
7696         (uw_frame_state_for): Only register a personality routine if it is
7697         known to be compatible with our expectations.
7698         (_Unwind_FindEnclosingFunction, uw_frame_state_for):
7699         Declare unw_table_entry stack variable and
7700         mod all calls to _Unwind_FindTableEntry to add arg.
7701         * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
7702         (_Unwind_FindTableEntry): Add arg to prototype.
7703
7704 2009-08-14  Eric Botcazou  <ebotcazou@adacore.com>
7705
7706         * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
7707         field 'signal_pfs_loc'.
7708         (uw_frame_state_for): Remove duplicate code dealing with leaf
7709         procedures without unwind info.
7710         If in the frame after unwinding through a signal handler, restore
7711         the AR.PFS register instead of the CFM if AR.PFS has not been saved.
7712         * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
7713         'pfs_loc' to the AR.PFS location in the signal context; instead
7714         set 'signal_pfs_loc'.
7715         Manually generate the unwind info for the AR.PFS register.
7716         (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
7717         ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
7718         (ia64_handle_unwabi): Test 'fs->unwabi' against them.
7719         Do not set 'pfs_loc' to the AR.PFS location in the signal context;
7720         instead set 'signal_pfs_loc'.
7721         Remove code preventing the AR.PFS register from being restored
7722         from the signal context.
7723
7724 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
7725             Tristan Gingold  <gingold@adacore.com>
7726
7727         * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
7728         * config/ia64/t-vms: New file.
7729         * config/ia64/vms64.h: New file.
7730         * config/ia64/vms.h: New file.
7731         * config/ia64/vms-crtinit.asm: New file.
7732         * config/ia64/vms_symvec_libgcc_s.opt: New file.
7733         * config/ia64/vms-unwind.h: New file.
7734
7735 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
7736
7737         * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
7738         TFmode compares.
7739
7740 2009-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7741
7742         PR middle-end/30789
7743         * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
7744         Move declaration...
7745         * real.h (do_mpc_arg2): ... here.
7746         * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
7747         and RDIV_EXPR.
7748
7749 2009-08-14  Rafael Avila de Espindola  <espindola@google.com>
7750
7751         * final.c (add_debug_prefix_map): Don't use GC memory for
7752         old_prefix and new_prefix.
7753
7754 2009-08-14  Richard Guenther  <rguenther@suse.de>
7755
7756         * ipa-prop.c (compute_complex_pass_through): If we cannot
7757         compute a non-varying offset for IPA_JF_ANCESTOR punt.
7758
7759 2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7760
7761         * c-lex.c (c_lex_with_flags): Increase size of local variable
7762         to avoid memory clobber.
7763
7764 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
7765
7766         PR target/40934
7767         * config/i386/i386.c (ix86_fp_comparison_strategy):
7768         Only enable/disable sahf at function granularity.
7769
7770 2009-08-14  Hans-Peter Nilsson  <hp@axis.com>
7771
7772         PR rtl-optimization/41064
7773         * reload1.c (reload_as_needed): Don't call extract_insn
7774         for known invalid replacements after calling
7775         validate_replace_rtx_group and verify_changes.
7776
7777 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
7778
7779         PR target/41019
7780         * config/i386/sse.md (SSEMODE124C8): New mode iterator.
7781         (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
7782         ix86_expand_fp_vcond.
7783         (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
7784         Assert that operation is supported by ix86_expand_int_vcond.
7785         (vcondu<SSEMODE124C8:mode>): Ditto.
7786
7787 2009-08-13  DJ Delorie  <dj@redhat.com>
7788
7789         * config/i386/djgpp-stdint.h: New.
7790         * config.gcc (djgpp): Use it.
7791
7792 2009-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
7793
7794         * config/sh/sh.c (sh_override_options): When flag_exceptions or
7795         flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
7796
7797 2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
7798
7799         * tree-ssa-loop-prefetch.c
7800         (prune_ref_by_group_reuse): Enhance probabilistic analysis
7801         for long-stride pruning.
7802         (compute_miss_rate): New function to compute the probability
7803         that two memory references access different cache lines.
7804
7805 2009-08-13  Dave Korn  <dave.korn.cygwin@gmail.com>
7806
7807         * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
7808
7809 2009-08-13  Richard Guenther  <rguenther@suse.de>
7810
7811         PR middle-end/41047
7812         * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
7813         use the constant pointer type.
7814         * gimplify.c (canonicalize_addr_expr): Canonicalize independent
7815         of CV qualifiers on the target pointer type.
7816         * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
7817         conversion check before restrict check.
7818
7819 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
7820
7821         PR target/41029
7822         * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
7823
7824 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
7825
7826         * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
7827
7828 2009-08-12  Richard Guenther  <rguenther@suse.de>
7829
7830         PR tree-optimization/41011
7831         * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
7832         and reference constructing.
7833
7834 2009-08-12  Xinliang David Li  <davidxl@google.com>
7835
7836         PR tree-optimization/41012
7837         * tree-flow.h : New external interface.
7838         * gimple-low.c (check_call_arg): Change to public function.
7839         Remove argument mismatch check in lowering.
7840         * tree-inline.h (tree_can_inline_p): Interface change.
7841         * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
7842         into this function.
7843         * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
7844         Call change to tree_can_inline_p function.
7845         (cgraph_decide_inlining_incrementally): Ditto.
7846
7847 2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
7848
7849         PR tree-optimization/41031
7850         * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
7851         on the partition variable rather than promote_mode on the source
7852         type.  Assert that the partition variable's type has the same
7853         mode as the source value's.
7854
7855 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
7856
7857         * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
7858         for for_return == 2.
7859         * function.c (assign_parm_setup_reg): Use for_return == 2, improve
7860         comments.
7861         * calls.c (expand_call): Fix typo.
7862         * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
7863         and PARM_DECL.
7864         * stmt.c (expand_value_return): Use promote_function_mode to copy out
7865         of pseudo.
7866         * targhooks.c (default_promote_function_mode): Handle for_return == 2.
7867         * config/cris/cris.c (cris_promote_function_mode): Likewise.
7868         * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
7869         * config/pa/pa.c (pa_promote_function_mode): Likewise.
7870
7871 2009-08-12  Andrew Haley  <aph@redhat.com>
7872
7873         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
7874
7875 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7876
7877         PR bootstrap/40103
7878         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
7879
7880 2009-08-12  Richard Guenther  <rguenther@suse.de>
7881
7882         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
7883         * gimplify.c (gimplify_modify_expr): Do not use
7884         lang_hooks.types_compatible_p.
7885         * tree-ssa.c (useless_type_conversion_p): For aggregates
7886         just return false if the canonical types differ.
7887
7888 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7889
7890         PR middle-end/40980
7891         * sese.c (convert_for_phi_arg): New.
7892         (add_guard_exit_phis): Use convert_for_phi_arg.
7893
7894 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7895
7896         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
7897         unknown subscript upper bounds.
7898
7899 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7900             Pranav Garg  <pranav.garg2107@gmail.com>
7901
7902         * graphite-interchange.c (gather_access_strides): Removed.
7903         (ppl_max_for_le): New.
7904         (build_linearized_memory_access): New.
7905         (memory_stride_in_loop): New.
7906         (pbb_interchange_profitable_p): Reimplemented.
7907         * graphite-ppl.h (ppl_new_id_map): New.
7908         (ppl_interchange): New.
7909
7910 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7911
7912         * graphite-interchange.c (compute_subscript): Removed.
7913         (compute_array_size_cstr): Removed.
7914         (compute_array_size_poly): Removed.
7915         (compute_array_size): Removed.
7916         (gather_access_strides_poly): Removed.
7917         (gather_access_strides): Empty.
7918
7919 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7920
7921         * graphite-dependences.c (dependence_polyhedron_1): Replace
7922         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
7923         (graphite_legal_transform_dr): Same.
7924         (graphite_carried_dependence_level_k): Same.
7925         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
7926         Initialize PDR_NB_SUBSCRIPTS.
7927         (print_pdr_access_layout): Replace pdr_nb_subscripts with
7928         PDR_NB_SUBSCRIPTS.
7929         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
7930         (PDR_NB_SUBSCRIPTS): New.
7931         (pdr_nb_subscripts): Removed.
7932         (pdr_dim): Simplified.
7933         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
7934         with PDR_NB_SUBSCRIPTS.
7935
7936 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7937
7938         * graphite-interchange.c (compute_array_size): Remove use of
7939         PDR_DATA_CONTAINER.
7940         * graphite-poly.c (new_poly_dr): Remove argument data_container.
7941         Do not initialize PDR_DATA_CONTAINER.
7942         (print_pdr): Do not print PDR_DATA_CONTAINER.
7943         * graphite-poly.h (struct poly_dr): Remove data_container field.
7944         (PDR_DATA_CONTAINER): Removed.
7945         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
7946         PDR_DATA_CONTAINER.
7947         (build_poly_dr): Same.
7948
7949 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
7950             Sebastian Pop  <sebastian.pop@amd.com>
7951
7952         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
7953         copy of the dependence polyhedron.  Free the temporary objects.
7954         (graphite_carried_dependence_level_k): Free unused objects before
7955         returning.
7956
7957 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7958
7959         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
7960         Early return without analyzing the data dependences if no
7961         transform has been done.  Call restore_scattering if the transform
7962         is not legal.
7963         (graphite-interchange.c): Same.
7964         * graphite-poly.c (print_scattering_function): Test for
7965         PBB_TRANSFORMED.
7966         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
7967         (apply_poly_transforms): Do not gcc_assert that
7968         the transform is legal.
7969         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
7970         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
7971         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
7972         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
7973         * graphite-poly.h (struct poly_scattering): New.
7974         (struct poly_bb): Add original, transformed, and saved fields.
7975         Remove transformed_scattering, original_scattering,
7976         nb_local_variables and nb_scattering_transform fields.
7977         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
7978         (poly_scattering_new): New.
7979         (poly_scattering_free): New.
7980         (poly_scattering_copy): New.
7981         (store_scattering_pbb): New.
7982         (store_scattering): New.
7983         (restore_scattering_pbb): New.
7984         (restore_scattering): New.
7985         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
7986         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
7987
7988 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7989
7990         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
7991         (print_scop): Same.
7992
7993 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7994
7995         * Makefile.in (graphite.o): Depends on PREDICT_H.
7996         * graphite.c: Include predict.h.
7997         (graphite_finalize): Call tree_estimate_probability.
7998         * predict.c (predict_loops): Do not call scev_initialize and
7999         scev_finalize.
8000         (tree_estimate_probability_bb): New.
8001         (tree_estimate_probability): Do not initialize loops: move that
8002         code to the driver.  Call tree_estimate_probability_bb.
8003         (tree_estimate_probability_driver): New.
8004         (pass_profile): Use tree_estimate_probability_driver.
8005         * predict.h (tree_estimate_probability): Declared.
8006
8007 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
8008
8009         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
8010         * graphite-dependences.c (graphite_legal_transform): Add time to
8011         TV_GRAPHITE_DATA_DEPS.
8012         (dependency_between_pbbs_p): Same.
8013         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
8014
8015 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
8016
8017         PR rtl-optimization/41033
8018         * alias.c (nonoverlapping_component_refs_p): Punt when strict
8019         aliasing is disabled.
8020
8021 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
8022
8023         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
8024         si_mask_operand, and_load_operand, low_bitmask_operand,
8025         and_reg_operand, and_operand): New predicates.
8026         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
8027         * config/mips/mips.c (and_operands_ok): New function.
8028         * config/mips/mips-protos.h (and_operands_ok): Declare it.
8029         * config/mips/mips.md (move_type): Add ext_ins and logical.
8030         (type): Handle them.
8031         (and<mode>3): Use and_reg_operand as the second operand's predicate.
8032         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
8033         shift_shift.  Remove commutative constraint modifier.
8034         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
8035         shift_shift.
8036         (*clear_upper32_dext): Remove define_insn_and_split.
8037         (*clear_upper32): Turn this define_insn_and_split ...
8038         (splitter for ANDing register with 0xffff_ffff): .. into this.
8039
8040 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
8041
8042         * combine.c (try_widen_shift_mode): Factor out code to check if an
8043         integer constant is a low-order bitmask from here ...
8044         * rtlanal.c (low_bitmask_len): ... to here.
8045         * rtl.h (low_bitmask_len): Declare.
8046
8047 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
8048
8049         PR target/8603
8050         * config/alpha/alpha.md (addsi3): Remove expander.
8051         (addsi3): Rename from *addsi3_internal insn pattern.
8052         (subsi3): Remove expander.
8053         (subsi3): Rename from *subsi3_internal insn pattern.
8054
8055 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
8056
8057         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
8058         FWRITE_UNLOCKED.
8059
8060 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
8061             Eric Botcazou  <botcazou@adacore.com>
8062             Douglas B Rupp  <rupp@gnat.com>
8063
8064         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
8065         that records that fit in 64 bits are returned by immediate value,
8066         as required by OpenVMS Calling Standard.
8067         (function_value): Adjust for above modification.
8068         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
8069         virtual_incoming_args_rtx as base object, not next_arg.
8070         * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
8071
8072 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8073
8074         * reload.c (find_reloads_subreg_address): Check the original
8075         req_equiv_mem address to detect the case where an address is
8076         not valid in the outer mode.
8077
8078 2009-08-11  Richard Guenther  <rguenther@suse.de>
8079
8080         PR bootstrap/40788
8081         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
8082
8083 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
8084
8085         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
8086         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
8087
8088 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
8089             Douglas B Rupp  <rupp@gnat.com>
8090
8091         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
8092         PT_STACK when frame_pointer_needed on OpenVMS.
8093         (alpha_pv_save_size, alpha_using_fp): Remove.
8094         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
8095         with proper processing for PT_NULL.
8096         (alpha_vms_initial_elimination_offset): New function. Support for
8097         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
8098         (alpha_sa_size): Force procedure type to PT_STACK when
8099         frame_pointer_needed on OpenVMS.
8100         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
8101         (alpha_using_fp): Likewise.
8102         (alpha_vms_can_eliminate): Add prototype.
8103         (alpha_vms_initial_elimination_offset): Likewise.
8104         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
8105         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
8106
8107 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
8108             Douglas B Rupp  <rupp@gnat.com>
8109
8110         * config/alpha/alpha.c (common_object_handler): New function.
8111         (vms_attribute_table): Declare a single attribute "common_object".
8112         (vms_output_aligned_decl_common): New global function.
8113         (SECTION_VMS_OVERLAY): Delete.
8114         (SECTION_VMS_GLOBAL): Likewise.
8115         (SECTION_VMS_INITIALIZE): Likewise.
8116         (vms_asm_named_section): Remove support for above flags.
8117         (vms_section_type_flags): Delete.
8118         (TARGET_SECTION_TYPE_FLAGS): Likewise.
8119         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
8120         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
8121         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
8122
8123 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
8124
8125         PR target/41015
8126         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
8127         (sub_ddmmss): Likewise.
8128
8129 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
8130
8131         PR bootstrap/41018
8132         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
8133         year.
8134
8135 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8136
8137         PR target/37053
8138         * reload1.c (reload_as_needed): Use cancel_changes to completely
8139         undo a failed replacement attempt.
8140
8141 2009-08-10  Richard Guenther  <rguenther@suse.de>
8142
8143         PR middle-end/41006
8144         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
8145         (useless_type_conversion_p): ... here.  Require pointer targets
8146         to be compatible.
8147
8148 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
8149
8150         PR c++/40866
8151         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
8152         loose the original type of the statement list.
8153
8154 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
8155
8156         * config/alpha/alpha.c: Include libfuncs.h
8157         (avms_asm_output_extern): New function.
8158         (alpha_init_libfuncs): Init some decc libfuncs.
8159         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
8160         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
8161         (DO_CRTL_NAMES): Define.
8162         (LIB_SPEC): Remove.
8163         * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef.
8164         (LONG_TYPE_SIZE): Define.
8165         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
8166         (SUBTARGET_SWITCHES): Define malloc64 switch.
8167         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
8168         (MASK_RETURN_ADDR): Define.
8169         doc/invoke.texi (mmalloc64): Document switch.
8170
8171 2009-08-09  Olivier Hainque  <hainque@adacore.com>
8172             Douglas B Rupp  <rupp@gnat.com>
8173
8174         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
8175         uses_condition_handler.
8176         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
8177         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
8178         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
8179         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
8180         (code_for_builtin): New insn codes for the new alpha_builtins.
8181         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
8182         (alpha_sa_size): Account for uses_condition_handler.
8183         (alpha_expand_prologue): Likewise.
8184         (alpha_start_function): Likewise.
8185         (alpha_expand_epilogue): Likewise.
8186         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
8187         establish/revert expanders.
8188         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
8189         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
8190         New expander, resorting to the alpha.c associated function.
8191         (builtin_revert_vms_condition_handler): Likewise.
8192         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
8193         __gcc_shell_handler, the static VMS condition handler used as
8194         an indirection wrapper to the current dynamically established
8195         handler.
8196         * config/alpha/vms-unwind.h: Complete rewrite.
8197         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
8198         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
8199
8200 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
8201             Douglas B Rupp  <rupp@gnat.com>
8202
8203         * config/alpha/alpha.c (alpha_links): Add 'target' field.
8204         (alpha_need_linkage): Handle aliases.  Return function symbol.
8205         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
8206         Use ultimate alias target for the linkage name.
8207         * config/alpha/alpha.md (movmemdi): Use the symbol returned
8208         by alpha_need_linkage for the function symbol.
8209         (setmemdi): Likewise.
8210
8211 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
8212
8213         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
8214         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
8215         (ASM_WEAKEN_LABEL): Define.
8216         (CRT_CALL_STATIC_FUNCTION): Define.
8217         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
8218         (ENDFILE_SPEC): Define.
8219         (INIT_SECTION_ASM_OP): Define.
8220         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
8221         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
8222         crtend.o crtendS.o.
8223         (MULTILIB_OSDIRNAMES): Define.
8224         (shlib_version): Define.
8225         (SHLIB_EXT): Define.
8226         (SHLIB_OBJS): Define.
8227         (SHLIB_NAME): Define.
8228         (SHLIB_MULTILIB): Define.
8229         (SHLIB_INSTALL): Define.
8230         (SHLIB_SYMVEC): Define.
8231         (SHLIB_SYMVECX2): Define.
8232         (SHLIB_LINK): Define.
8233
8234 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
8235
8236         * config/alpha/alpha.c (alpha_initialize_trampoline):
8237         Initialize VMS trampoline IAW ABI for bounded procedure calls.
8238         (alpha_start_function): Emit transfer address on nested functions
8239         for VMS trampoline call.
8240         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
8241         since no longer used.
8242         * config/alpha/vms-tramp.asm: Remove.
8243         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
8244         since now only data initialized at runtime.
8245
8246 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
8247
8248         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
8249         (LINK_GCC_C_SEQUENCE_SPEC): Define.
8250         (MD_EXEC_PREFIX): Remove, no longer used.
8251         (MD_STARTFILE_PREFIX): Likewise.
8252         (INCLUDE_DEFAULTS): Likewise.
8253         * config/alpha/t-vms:
8254         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
8255
8256 2009-08-09  Richard Guenther  <rguenther@suse.de>
8257
8258         PR tree-optimization/41016
8259         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
8260         (operand_precision): Remove.
8261         (integral_operand_p): Likewise.
8262         (recognize_single_bit_test): Adjust.
8263
8264 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
8265
8266         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
8267         operation overflows.  Likewise non-cast unary arithmetic.
8268         If one arm of a conditional expression is always taken,
8269         inhibit evaluation warnings for the other arm.  Likewise inhibit
8270         evaluation warnings for the second && or || operand if the first
8271         operand is enough to determine the result.
8272         * c-typeck.c (build_conditional_expr): Apply the same inhibition
8273         rules here.
8274         (build_binary_op): Prevent duplicate evaluation warnings.
8275
8276 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
8277
8278         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
8279         and destination have different modes, Use promote_mode to
8280         determine the signedness of the conversion.  Assert that the
8281         promoted source mode matches the destination mode.  Don't pass
8282         the destination and destination mode to expand_expr if the source
8283         mode is different.  Simplify conversion logic.
8284
8285 2009-08-09  Ira Rosen  <irar@il.ibm.com>
8286
8287         PR tree-optimization/41008
8288         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
8289         from condition only in case it's a comparison. Adjust checks.
8290
8291 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
8292
8293         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
8294         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
8295         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
8296         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
8297         (dump_cand): Handle them.
8298         (struct iv_cand): New members COST_STEP and AINC_USE.
8299         (stmt_after_increment): Likewise.
8300         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
8301         callers changed.  Use gimple_uid comparison instead of scanning.
8302         (add_candidate_1): When looking for identical candidates, take
8303         AINC_USE into account.  Set it for new candidates.
8304         (force_expr_to_var_cost): Cast target_spill_cost to int.
8305         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
8306         All callers changed.  Check for availability of autoinc addressing
8307         modes, both in general for a given mode, and in the specific use case.
8308         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
8309         changed.
8310         (get_computation_cost): Likewise.
8311         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
8312         add_autoinc_candidates): New static functions.
8313         (add_candidate): Call add_autoinc_candidates for candidates based on
8314         a USE_ADDRESS use.
8315         (find_iv_candidates): Call set_autoinc_for_original_candidates.
8316         (determine_use_iv_cost_address): If we have an autoinc candidate at
8317         the matching use, verify autoinc is possible and subtract the cost
8318         of the candidate's step from the cost.
8319         (determine_iv_cost): Record the cost of the increment in the COST_STEP
8320         member of the candidate.
8321         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
8322         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
8323
8324 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
8325
8326         * config.build (ia64-hp-*vms*): New target.
8327         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8328         with ia64-hp-*vms*.
8329         * config.gcc (ia64-hp-*vms*): New target.
8330         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8331         with ia64-hp-*vms*.
8332         * config.host (ia64-hp-*vms*): New target.
8333         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8334         with ia64-hp-*vms*.
8335
8336 2009-08-08  Richard Guenther  <rguenther@suse.de>
8337
8338         PR tree-optimization/40991
8339         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
8340
8341 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
8342
8343         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
8344         mode check.  Do truncations in an integer mode.
8345         (force_to_mode): Handle subregs for all mode types.  Only do
8346         arithmetic simplifications on integer modes.
8347
8348 2009-08-07  Richard Guenther  <rguenther@suse.de>
8349
8350         PR tree-optimization/40999
8351         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
8352         (maybe_fold_reference): Lookup constant initializers.
8353         (fold_gimple_assign): Likewise.
8354
8355 2009-08-07  Richard Guenther  <rguenther@suse.de>
8356
8357         * tree-ssa.c (useless_type_conversion_p_1): Only for types
8358         that require structural equality defer to the langhook.
8359
8360 2009-08-07  Martin Jambor  <mjambor@suse.cz>
8361
8362         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
8363         comments.
8364         (struct ipa_pass_through_data): New type.
8365         (struct ipa_ancestor_jf_data): New type.
8366         (union jump_func_value): Removed field formal_id, added fields
8367         pass_through and ancestor.
8368         (struct ipa_param_call_note): Changed type of formal_id to int from
8369         unsigned.
8370         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
8371         operations jump functions and ancestor jump functions.
8372         (compute_complex_pass_through): New function.
8373         (compute_scalar_jump_functions): Call compute_complex_pass_through,
8374         reflect changes in the jump function strucutre.
8375         (update_jump_functions_after_inlining): Ignore complex pass-through
8376         and ancestor jump functions.
8377         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
8378         polynomial pass-through with operation jump functions.
8379
8380 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
8381
8382         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
8383         fde->dw_fde_begin as begin label instead of hot/cold label.
8384         Use LLSDAC label instead of LLSDA for second section lsda.
8385         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
8386         label instead of LLSDA if it is true.
8387         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
8388         callers.
8389         * except.c (add_call_site, dw2_size_of_call_site_table): Add
8390         SECTION argument.  Use it as index into crtl->eh.call_site_record
8391         array.
8392         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
8393         use it to determine how to print table entries instead of using
8394         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
8395         label instead of normal begin label as base.
8396         (sjlj_assign_call_site_values): Adjust add_call_site caller.
8397         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
8398         ensure no EH range spans between sections and that landing pads
8399         are always in the corresponding section.
8400         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
8401         for crtl->eh.call_site_record being an array rather than scalar.
8402         (output_one_function_exception_table): New function, copied
8403         from output_function_exception_table.  Adjust
8404         dw2_size_of_call_site_table, dw2_output_call_site_table
8405         callers.  For SECOND section use *C suffixed labels.
8406         (output_function_exception_table): Call
8407         output_one_function_exception_table and, when doing hot/cold
8408         partitioning, also another time for the second section.
8409         * opts.c: Include except.h.
8410         (decode_options): Allow -freorder-blocks-and-partition with
8411         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
8412         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
8413         * function.h (struct rtl_eh): Change call_site_record from
8414         scalar into array of 2 elements.
8415
8416 2009-08-07  Martin Jambor  <mjambor@suse.cz>
8417
8418         * ipa-prop.c (count_formal_params_1): New function.
8419         (ipa_get_vector_of_formal_parms): New function.
8420         (get_vector_of_formal_parm_types): New function.
8421         (ipa_modify_formal_parameters): New function.
8422         (ipa_modify_call_arguments): New function.
8423         (index_in_adjustments_multiple_times_p): New function.
8424         (ipa_combine_adjustments): New function.
8425         (ipa_dump_param_adjustments): New function.
8426         * ipa-prop.h (struct ipa_parm_adjustment): New type.
8427         (ipa_get_vector_of_formal_parms): Declare.
8428         (ipa_modify_formal_parameters): Declare.
8429         (ipa_modify_call_arguments): Declare.
8430         (ipa_combine_adjustments): Declare.
8431         (ipa_dump_param_adjustments): Declare.
8432         (build_ref_for_offset): Declare.
8433         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
8434         * tree-sra.c: Include ipa-prop.c.
8435         (build_ref_for_offset): Make public.
8436
8437 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
8438
8439         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
8440
8441 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
8442
8443         * gcc/doc/extend.texi (__builtin_extract_return_address)
8444         (__builtin_frob_return_address): Document.
8445
8446 2009-08-06  Paul Brook  <paul@codesourcery.com>
8447
8448         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
8449         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
8450         implementation on ARMv6-M.
8451
8452 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
8453
8454         * doc/extend.texi (pcs): Document new attribute for ARM.
8455
8456 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
8457
8458         * arm.c (pcs_attribute_args): Comment out unsupported attribute
8459         variants.
8460
8461 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
8462
8463         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
8464         warning ().
8465
8466 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
8467
8468         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
8469
8470 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
8471
8472         Merge ARM/hard_vfp_branch to trunk.
8473
8474         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
8475
8476         * arm.c (libcall_eq): New function.
8477         (libcall_hash): New function.
8478         (add_libcall): New function.
8479         (arm_libcall_uses_aapcs_base): New function.
8480         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
8481         libcalls using the base PCS.
8482         (arm_init_cumulative_args): Likewise.
8483
8484         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
8485
8486         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
8487         Use base ABI for conversion libfuncs between HFmode and SFmode.
8488
8489         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
8490
8491         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
8492         V4SImode as representatives of all 64-bit and 128-bit vector
8493         types.  Allow vector types without vector modes.
8494         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
8495         without vector modes like BLKmode.
8496         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
8497         BLKmode.  Avoid unsupported vector modes or TImode moves for
8498         non-TARGET_NEON.
8499         (aapcs_vfp_allocate_return_reg): Likewise.
8500         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
8501         V8QImode if TARGET_NEON || TARGET_IWMMXT.
8502
8503         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
8504
8505         * config/arm/arm.c (arm_handle_pcs_attribute): New.
8506         (arm_get_pcs_model): Pass attribute arguments to
8507         arm_pcs_from_attribute.
8508         (arm_init_cumulative_args): Use base AAPCS for conversions from
8509         floating-point types to DImode.
8510         (arm_attribute_table): Add pcs attribute.
8511         (arm_handle_pcs_attribute): New.
8512         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
8513         conversions from floating-point types to DImode, also declare them
8514         to use base AAPCS and declare functions they call to use base
8515         AAPCS and their RTABI names.
8516
8517         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
8518
8519         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
8520         -mfloat-abi=hard not being supported for VFP.
8521
8522         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
8523
8524         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
8525         SYMBOL_REF to hard_libcall_value.
8526
8527         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
8528             Richard Earnshaw  <rearnsha@arm.com>
8529
8530         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
8531         has been put on the stack, all remaining co-processory arguments for
8532         that co-processor also go on the stack.
8533
8534         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
8535
8536         * config/arm/arm.c (arm_return_in_memory): Handle returning
8537         vectors of suitable size in registers also for AAPCS case.
8538
8539         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
8540
8541         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
8542
8543         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
8544
8545         ARM Hard-VFP calling convention
8546         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
8547         * target.h (gcc_target): Add libcall_value to table of call hooks.
8548         * targhooks.h (default_libcall_value): Default implementation.
8549         * targhooks.c (default_libcall_value): Likewise.
8550         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
8551         * optabs.c (expand_unop): Use it.
8552         * expr.h (hard_libcall_value): Pass the function RTX through.
8553         * calls.c (emit_library_call_value_1): Update call to
8554         hard_libcall_value.
8555         * explow.c (hard_libcall_value): Use new target hook.
8556         * testsuite/lib/target-supports.exp
8557         (check_effective_target_arm_hard_vfp_ok): New hook.
8558         (check_effective_target_arm_neon_ok): Improve test for neon
8559         availability.
8560         * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
8561         * config/arm/arm.c: Include cgraph.h
8562         (TARGET_FUNCTION_VALUE): Override default hook.
8563         (arm_pcs_default): New variable.
8564         (arm_override_options): Don't fault hard calling convention with VFP.
8565         Add support for AAPCS variants.
8566         (arm_function_value): Make static.  Handle AAPCS variants.
8567         (arm_libcall_value): New function.
8568         (arm_apply_result_size): Handle VFP registers in results.
8569         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
8570         conventions.
8571         (pcs_attribute_args): New variable.
8572         (arm_pcs_from_attribute): New function.
8573         (arm_get_pcs_model): New function.
8574         (aapcs_vfp_cum_init): New function.
8575         (aapcs_vfp_sub_candidate): New function.
8576         (aapcs_vfp_is_return_candidate): New function.
8577         (aapcs_vfp_is_call_candidate): New function.
8578         (aapcs_vfp_allocate): New function.
8579         (aapcs_vfp_allocate_return_reg): New function.
8580         (aapcs_vfp_advance): New function.
8581         (aapcs_cp_arg_layout): New variable.
8582         (aapcs_select_call_coproc): New function.
8583         (aapcs_select_return_coproc): New function.
8584         (aapcs_allocate_return_reg): New function.
8585         (aapcs_libcall_value): New function.
8586         (aapcs_layout_arg): New function.
8587         (arm_init_cumulative_args): Initialize AAPCS args data.
8588         (arm_function_arg): Handle AAPCS variants using new interface.
8589         (arm_arg_parital_bytes): Likewise.
8590         (arm_function_arg_advance): New function.
8591         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
8592         calling conventions.
8593         (arm_setup_incoming_varargs): Handle new AAPCS args data.
8594         * arm.h (NUM_VFP_ARG_REGS): Define.
8595         (LIBCALL_VALUE): Update.
8596         (FUNCTION_VALUE): Delete.
8597         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
8598         (arm_pcs): New enum.
8599         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
8600         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
8601         (FUNCTION_ARG_REGNO_P): Add VFP regs.
8602         * arm-protos.h (arm_function_arg_advance): Add.
8603         (aapcs_libcall_value): Add.
8604         (arm_function_value): Delete.
8605
8606 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
8607             H.J. Lu  <hongjiu.lu@intel.com>
8608
8609         PR target/40957
8610         * config/i386/i386.c (standard_sse_mode_p): Remove.
8611         (standard_sse_constant_p): Return 2 for integer mode
8612         vector_all_ones_operand when SSE2 is enabled.
8613         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
8614         (ix86_expand_vector_move): Do not check for negative values from
8615         standard_sse_constant_p.
8616
8617 2009-08-06  Richard Guenther  <rguenther@suse.de>
8618
8619         * tree-ssa.c (useless_type_conversion_p_1): Make function and
8620         array type comparisons frontend independent.
8621         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
8622         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
8623         out array reference lower bound and element size operands.
8624         (ao_ref_init_from_vn_reference): Properly compute the offset
8625         for ARRAY_RANGE_REF.
8626         (vn_reference_fold_indirect): Fill out array reference lower
8627         bound and element size operands.
8628         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
8629         a non gimple valued reference operand which can happen for
8630         array reference lower bound or element size.
8631         (create_component_ref_by_pieces_1): Properly generate the
8632         element size operand for array references.
8633
8634 2009-08-06  Richard Guenther  <rguenther@suse.de>
8635
8636         PR tree-optimization/40964
8637         * tree.c (iterative_hash_host_wide_int): Export.
8638         * tree.h (iterative_hash_host_wide_int): Declare.
8639         * tree-ssa-structalias.c (heapvar_map): New struct.
8640         (heapvar_map_eq): New function.
8641         (heapvar_map_hash): Likewise.
8642         (heapvar_lookup): Adjust.
8643         (heapvar_insert): Likewise.
8644         (make_constraint_from_heapvar): Allow multiple heap variables
8645         per decl at different offsets.
8646         (init_alias_heapvars): Adjust.
8647
8648 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
8649
8650         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
8651         * mips_output_sync_loop (mips_output_sync_loop): Only emit
8652         trailing sync if TARGET_SYNC_AFTER_SC.
8653
8654 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
8655
8656         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
8657         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
8658         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
8659         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
8660         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
8661         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
8662         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
8663         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
8664         test_and_set_12): Rewrite calls to mips_output_sync_loop.
8665         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
8666         the prototype declaration match the definition.
8667         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
8668         instructions explicitly.  Add barrier_before and operands
8669         parameters.
8670         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
8671         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
8672         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
8673         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
8674         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
8675         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
8676
8677 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
8678
8679         * tree-ssa-alias.c: Fix intervals to use [) syntax.
8680
8681 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
8682             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
8683
8684         PR target/40906
8685         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
8686         source operand.
8687
8688 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
8689
8690         PR rtl-optimization/40924
8691         * dse.c (canon_address): Before calling cselib_expand_value_rtx
8692         make sure canon_rtx (mem_address) isn't simpler than
8693         canon_rtx (expanded_mem_address).
8694
8695 2009-08-05  Li Feng  <nemokingdom@gmail.com>
8696
8697         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
8698         for each poly_bb_p.
8699         (build_scop_drs): Build alias set for each SCoP.
8700
8701 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
8702
8703         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
8704         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
8705         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
8706         (MIPS_ARCH_FLOAT_SPEC): Likewise.
8707         (BASE_DRIVER_SELF_SPECS): Likewise.
8708
8709 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
8710
8711         * tree-ssa-alias.c: Fix some comment typos.
8712
8713 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
8714
8715         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
8716         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
8717
8718 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
8719
8720         PR c/39902
8721         * simplify-rtx.c (simplify_binary_operation_1): Disable
8722         simplifications for decimal float operations.
8723
8724 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
8725
8726         PR middle-end/40943
8727         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
8728         operand of INDIRECT_REF.
8729
8730 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
8731
8732         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
8733         constants referencing TLS symbols.
8734
8735 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
8736
8737         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
8738         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
8739
8740 2009-08-03  Richard Guenther  <rguenther@suse.de>
8741
8742         * tree.c (make_vector_type): Build a main variant first,
8743         get the canonical one and then build the variant.
8744         * tree-ssa.c (useless_type_conversion_p_1): Handle
8745         fixed-point types.
8746         (useless_type_conversion_p): Conversions to pointers to
8747         incomplete record types are useless.
8748
8749 2009-08-03  Richard Guenther  <rguenther@suse.de>
8750
8751         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
8752         file will be created.
8753         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
8754         * toplev.c (compile_file): Adjust comment.
8755
8756 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
8757
8758         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
8759         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
8760         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8761         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
8762         (sh_promote_function_mode): Fix typo.
8763
8764 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
8765
8766         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
8767
8768 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8769
8770         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
8771         declaration arguments.
8772
8773 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
8774
8775         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
8776         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
8777         (ix86_split_ashl): Ditto.
8778         (ix86_expand_vector_init_one_nonzero): Ditto.
8779         (ix86_expand_vector_set): Ditto.
8780         (ix86_expand_reduc_v4sf): Ditto.
8781
8782 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
8783
8784         * explow.c (promote_function_mode): Remove assert.
8785         * config/sh/sh.c (sh_promote_function_mode): Declare.
8786
8787 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8788
8789         * config/pa/pa.c (pa_promote_function_mode): Declare.
8790         Change to static.  Fix promote_mode call.
8791
8792         * gthr-dce.h (CONST_CAST2): Define if not defined.
8793         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
8794
8795         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
8796
8797 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
8798
8799         * expr.c (store_constructor): Use promote_decl_mode.  Remove
8800         now write-only variable unsignedp.
8801         (expand_expr_real_1): Use promote_decl_mode.
8802         * expr.h (promote_function_mode, promote_decl_mode): New.
8803         (promote_mode): Remove last argument.
8804         * function.c (assign_temp): Drop last argument of promote_mode.
8805         (assign_parm_find_data_types): Use promote_function_mode.
8806         (assign_parm_setup_reg): Likewise.
8807         (expand_function_end): Use promote_function_mode.
8808         * calls.c (initialize_argument_information): Use promote_function_mode.
8809         (precompute_arguments): Use promote_mode instead of checking if
8810         only PROMOTE_FUNCTION_MODE is defined.
8811         (expand_call): When making sibcall decisions, use promote_function_mode.
8812         Below, remove an if for targetm.calls.promote_function_return and
8813         and use promote_function_mode.
8814         (emit_library_call_value_1): Use promote_function_mode, fix bug
8815         where promote_mode was passed FOR_CALL == 0 for a return value in an
8816         assertion.
8817         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
8818         * explow.c (promote_function_mode, promote_decl_mode): New.
8819         (promote_mode): Keep only the FOR_CALL == 0 case.
8820         * combine.c (setup_incoming_promotion): Remove test of
8821         promote_function_args.  Use promote_function_mode.
8822         * stmt.c (expand_value_return): Use promote_decl_mode.
8823         (expand_decl): Use promote_decl_mode.
8824
8825         * expr.c (store_constructor): Use promote_decl_mode.  Remove
8826         now write-only variable unsignedp.
8827         (expand_expr_real_1): Use promote_decl_mode.
8828         * expr.h (promote_function_mode, promote_decl_mode): New.
8829         (promote_mode): Remove last argument.
8830         * function.c (assign_temp): Drop last argument of promote_mode.
8831         (assign_parm_find_data_types): Use promote_function_mode.
8832         (assign_parm_setup_reg): Likewise.
8833         (expand_function_end): Use promote_function_mode.
8834         * calls.c (initialize_argument_information): Use promote_function_mode.
8835         (precompute_arguments): Use promote_mode instead of checking if
8836         only PROMOTE_FUNCTION_MODE is defined.
8837         (expand_call): When making sibcall decisions, use promote_function_mode.
8838         Below, remove an if for targetm.calls.promote_function_return and
8839         and use promote_function_mode.
8840         (emit_library_call_value_1): Use promote_function_mode, fix bug
8841         where promote_mode was passed FOR_CALL == 0 for a return value in an
8842         assertion.
8843         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
8844         * explow.c (promote_function_mode, promote_decl_mode): New.
8845         (promote_mode): Keep only the FOR_CALL == 0 case.
8846         * combine.c (setup_incoming_promotion): Remove test of
8847         promote_function_args.  Use promote_function_mode.
8848         * stmt.c (expand_value_return): Use promote_decl_mode.
8849         (expand_decl): Use promote_decl_mode.
8850
8851         * explow.c (promote_function_mode): Just call the target hook.
8852         * targhooks.c (default_promote_function_mode,
8853         default_promote_function_mode_always_promote): New.
8854         * targhooks.h (default_promote_function_mode,
8855         default_promote_function_mode_always_promote): Declare.
8856         * target.h (promote_function_args, promote_function_return): Remove.
8857         (promote_function_mode): New.
8858         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
8859         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8860         (TARGET_PROMOTE_FUNCTION_MODE): New.
8861         (TARGET_CALLS): Adjust.
8862         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
8863         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
8864
8865         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
8866         * config/s390/s390.c (s390_promote_function_mode): ... here,
8867         with pointer handling.
8868         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8869         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8870
8871         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
8872         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
8873         with pointer handling.
8874         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8875         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8876
8877         * config/sh/sh-protos.h (sh_promote_function_mode): New.
8878         * config/sh/sh.c (sh_promote_function_mode): New.
8879         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8880         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8881
8882         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
8883         * config/cris/cris.c (cris_promote_function_mode): ... here.
8884         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8885         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
8886
8887         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
8888         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
8889         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8890         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
8891
8892         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
8893         * config/arm/arm.c (arm_promote_function_mode): ... here, without
8894         complex type handling.
8895         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8896         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8897
8898         * config/pa/pa.c (pa_promote_function_mode): New.
8899         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8900         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8901
8902         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
8903         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8904         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
8905         * config/xtensa/xtensa.c: Likewise.
8906         * config/stormy16/stormy16.c: Likewise.
8907         * config/iq2000/iq2000.c: Likewise.
8908         * config/rs6000/rs6000.c: Likewise.
8909         * config/picochip/picochip.c: Likewise.
8910         * config/arc/arc.c: Likewise.
8911         * config/mcore/mcore.c: Likewise.
8912         * config/score/score.c: Likewise.
8913         * config/mips/mips.c: Likewise.
8914         * config/bfin/bfin.c: Likewise.
8915         * config/ia64/ia64.c: Likewise (disabled though).
8916
8917         * config/frv/frv.h: Remove pointless remark.
8918
8919         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
8920         TARGET_PROMOTE_FUNCTION_ARGS,
8921         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
8922         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
8923
8924 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
8925
8926         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
8927         -floop-parallelize-all.
8928         * toplev.c (process_options): Rename flag_graphite_force_parallel to
8929         flag_loop_parallelize_all.
8930         * tree-ssa-loop.c (gate_graphite_transforms): Same.
8931         * graphite.c (graphite_transform_loops): Same.
8932         * common.opt: Same.
8933         * graphite-poly.c (apply_poly_transforms): Same.
8934
8935 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
8936
8937         PR tree-optimization/40914
8938         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
8939         if set, then check the delta field of the PMF record.
8940         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
8941         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
8942         call is stored in the delta.
8943
8944 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
8945
8946         * config/mips/mips.md (*clear_upper32_dext): New pattern.
8947
8948 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
8949
8950         * config/i386/bsd.h (ASM_BYTE): New define.
8951         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
8952         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
8953         .byte.  Use fputs or putc instead of fprintf where appropriate.
8954         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
8955         fputs or putc instead of fprintf where appropriate.
8956         * config/i386/i386elf.h: Ditto.
8957         * config/i386/sysv4.h: Ditto.
8958
8959         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
8960         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
8961         (*tls_global_dynamic_64): Ditto.
8962
8963 2009-07-31  Christian Bruel  <christian.bruel@st.com>
8964
8965         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
8966
8967 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8968
8969         * config/arm/arm.c (arm_arm_address_cost): Fix typo.
8970         Remove dead code for MINUS.
8971
8972 2009-07-31  Anthony Green  <green@moxielogic.com>
8973
8974         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
8975         $r12 in prologue.
8976         (moxie_expand_epilogue): Ditto for epilogue.
8977         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
8978         incoming arguments.
8979         (moxie_function_arg): Ditto.
8980         (moxie_pass_by_reference): Ditto.
8981         (moxie_arg_partial_bytes): Ditto.
8982         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
8983         (FUNCTION_ARG_ADVANCE) Ditto.
8984         (REG_PARM_STACK_SPACE) Ditto.
8985         (FUNCTION_ARG_REGNO_P) Dito.
8986
8987         * config.gcc: Add moxie linux config support.
8988         * gcc/config/moxie/uclinux.h: New file.
8989
8990 2009-07-31  DJ Delorie  <dj@redhat.com>
8991
8992         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
8993         (UNSPECV_SP_SWITCH_E): New.
8994         (sp_switch_1): Change to an unspec.
8995         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
8996         replace $r15.
8997         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
8998         reference the new stack's address
8999
9000 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9001
9002         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
9003         graphite-clast-to-gimple.o, graphite-dependences.o,
9004         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
9005         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
9006         (graphite-blocking.o,
9007         graphite-clast-to-gimple.o, graphite-dependences.o,
9008         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
9009         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
9010         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
9011         * cfgloop.h (struct loop): Add can_be_parallel field.
9012         * common.opt (fgraphite-identity): Moved up.
9013         (fgraphite-force-parallel): New flag.
9014         * graphite.c: Rewrite.
9015         * graphite.h: Rewrite.
9016         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
9017         after Graphite.
9018         * toplev.c (graphite_out_file): New file descriptor.
9019         (graphite_in_file): New.
9020         (process_options): flag_graphite_force_parallel cannot be used without
9021         Graphite.
9022         * tree-ssa-loop.c: Include toplev.h.
9023         (gate_graphite_transforms): Enable flag_graphite for
9024         flag_graphite_force_parallel.
9025
9026 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9027
9028         * ChangeLog.graphite: New.
9029         * graphite-blocking.c: New.
9030         * graphite-clast-to-gimple.c: New.
9031         * graphite-clast-to-gimple.h: New.
9032         * graphite-dependences.c: New.
9033         * graphite-dependences.h: New.
9034         * graphite-interchange.c: New.
9035         * graphite-poly.c: New.
9036         * graphite-poly.h: New.
9037         * graphite-ppl.c: New.
9038         * graphite-ppl.h: New.
9039         * graphite-scop-detection.c: New.
9040         * graphite-scop-detection.h: New.
9041         * graphite-sese-to-poly.c: New.
9042         * graphite-sese-to-poly.h: New.
9043         * sese.c: New.
9044         * sese.h: New.
9045
9046 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9047
9048         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
9049         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
9050
9051 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9052
9053         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
9054         (scev_is_linear_expression): Return false if the evolution is not
9055         affine multivariate.
9056
9057 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9058
9059         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
9060         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
9061
9062 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9063
9064         * tree-data-ref.c (debug_data_references): New.
9065         (debug_data_reference): New.
9066         * tree-data-ref.h (debug_data_references): Declared.
9067         (debug_data_reference): Declared.
9068
9069 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9070
9071         * tree-data-ref.c (stmt_simple_memref_p: Removed.
9072         * tree-data-ref.h (scop_p): Removed.
9073         (struct data_reference): Remove field scop.
9074         (DR_SCOP): Removed.
9075         (stmt_simple_memref_p): Removed.
9076
9077 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9078
9079         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
9080         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
9081         basic block empty.
9082
9083 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9084
9085         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
9086
9087 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9088
9089         * doc/invoke.texi (-fgraphite-identity): Documented.
9090
9091 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9092
9093         * tree-scalar-evolution.c: Fix comment.
9094         (instantiate_scev_1): Return unknow from scev instantiation if the
9095         result is not above instantiate_below.
9096
9097 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9098
9099         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
9100         static anymore.  Instantiate the symbols that may have been introduced
9101         by chrec_apply.
9102         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
9103         Declared.
9104
9105 2009-07-30  DJ Delorie  <dj@redhat.com>
9106
9107         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
9108         .vliw directive to VLIW sections.
9109
9110 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9111
9112         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
9113         New variables.
9114         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
9115         (AUTOHEADER): New variable.
9116         ($(srcdir)/cstamp-h.in): Use it.
9117
9118 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
9119             Pat Haugen  <pthaugen@us.ibm.com>
9120             Revital Eres <ERES@il.ibm.com>
9121
9122         * config/rs6000/vector.md (VEC_F): Add VSX support.
9123         (VEC_A): Ditto.
9124         (VEC_N): Ditto.
9125         (mov<mode>): Ditto.
9126         (vector_load_<mode>): Ditto.
9127         (vector_store_<mode>): Ditto.
9128         (vector GPR move split): Ditto.
9129         (vec_reload_and_plus_<mptrsize>): Ditto.
9130         (vec_reload_and_reg_<mptrsize>): Ditto.
9131         (add<mode>3): Ditto.
9132         (sub<mode>3): Ditto.
9133         (mul<mode>3): Ditto.
9134         (neg<mode>2): Ditto.
9135         (abs<mode>2): Ditto.
9136         (smin<mode>3): Ditto.
9137         (smax<mode>3): Ditto.
9138         (vector_eq<mode>): Ditto.
9139         (vector_gt<mode>): Ditto.
9140         (vector_ge<mode>): Ditto.
9141         (vector_gtu<mode>): Ditto.
9142         (vector_select_<mode>_uns): Ditto.
9143         (vector_eq_<mode>_p): Ditto.
9144         (vector_gt_<mode>_p): Ditto.
9145         (vector_ge_<mode>_p): Ditto.
9146         (vector_gtu_<mode>_p): Ditto.
9147         (cr6_test_for_zero): Ditto.
9148         (cr6_test_for_zero_reverse): Ditto.
9149         (cr6_test_for_lt): Ditto.
9150         (cr6_test_for_lt_reverse): Ditto.
9151         (xor<mode>3): Ditto.
9152         (ior<mode>3): Ditto.
9153         (and<mode>3): Ditto.
9154         (one_cmpl<mode>2): Ditto.
9155         (nor<mode>2): Ditto.
9156         (andc<mode>2): Ditto.
9157         (float<VEC_int<mode>2): Ditto.
9158         (unsigned_float<VEC_int><mode>2): Ditto.
9159         (fix_trunc<mode><VEC_int>2): Ditto.
9160         (fixuns_trunc<mode><VEC_int>2): Ditto.
9161         (vec_init<mode>):
9162         (vec_set<mode>): Ditto.
9163         (vec_extract<mode>): Ditto.
9164         (vec_interleave_highv4sf): Ditto.
9165         (vec_interleave_lowv4sf): Ditto.
9166         (vec_realign_load_<mode>): Ditto.
9167         (vec_shl_<mode>): Ditto.
9168         (vec_shr_<mode>): Ditto.
9169         (div<mode>3): New patterns for VSX.
9170         (vec_interleave_highv2df): Ditto.
9171         (vec_interleave_lowv2df): Ditto.
9172         (vec_pack_trunc_v2df): Ditto.
9173         (vec_pack_sfix_trunc_v2df): Ditto.
9174         (vec_pack_ufix_trunc_v2df): Ditto.
9175         (vec_unpacks_hi_v4sf): Ditto.
9176         (vec_unpacks_lo_v4sf): Ditto.
9177         (vec_unpacks_float_hi_v4si): Ditto.
9178         (vec_unpacks_float_lo_v4si): Ditto.
9179         (vec_unpacku_float_hi_v4si): Ditto.
9180         (vec_unpacku_float_lo_v4si): Ditto.
9181         (movmisalign<mode>): Ditto.
9182         (vector_ceil<mode>2): New patterns for vectorizing math library.
9183         (vector_floor<mode>2): Ditto.
9184         (vector_btrunc<mode>2): Ditto.
9185         (vector_copysign<mode>3): Ditto.
9186
9187         * config/rs6000/predicates.md (easy_vector_constant_msb): New
9188         predicate for setting the high bit in each word, used for copysign.
9189
9190         * config/rs6000/ppc-asm.h (f19): Whitespace.
9191         (f32-f63): Define if VSX.
9192         (v0-v31): Define if Altivec.
9193         (vs0-vs63): Define if VSX.
9194
9195         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
9196
9197         * config/rs6000/power7.md: New file, provide tuning parameters for
9198         -mcpu=power7.
9199
9200         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
9201         (rs6000_cpu_cpp_builtins): Ditto.
9202         (altivec_overloaded_builtins): Ditto.
9203         (altivec_resolve_overloaded_builtin): Ditto.
9204
9205         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
9206         debug switch to disable vectorizing simple math builtin
9207         functions.
9208
9209         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
9210         Vectorize simple math builtin functions.
9211         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
9212         hook to vectorize math builtins.
9213         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
9214         (rs6000_builtin_conversion): Add VSX/power7 support.
9215         (rs6000_builtin_vec_perm): Ditto.
9216         (vsplits_constant): Add support for loading up a vector constant
9217         with just the high bit set in each part.
9218         (rs6000_expand_vector_init): Add VSX/power7 support.
9219         (rs6000_expand_vector_set): Ditto.
9220         (rs6000_expand_vector_extract): Ditto.
9221         (rs6000_emit_move): Ditto.
9222         (bdesc_3arg): Ditto.
9223         (bdesc_2arg): Ditto.
9224         (bdesc_1arg): Ditto.
9225         (rs6000_expand_ternop_builtin): Ditto.
9226         (altivec_expand_builtin): Ditto.
9227         (rs6000_expand_unop_builtin): Ditto.
9228         (rs6000_init_builtins): Ditto.
9229         (altivec_init_builtins): Ditto.
9230         (builtin_function_type): Ditto.
9231         (rs6000_common_init_builtins): Ditto.
9232         (rs6000_handle_altivec_attribute); Ditto.
9233         (rs6000_mangle_type): Ditto.
9234         (rs6000_vector_mode_supported_p): Ditto.
9235         (rs6000_mode_dependent_address): Altivec addresses with AND -16
9236         are mode dependent.
9237
9238         * config/rs6000/vsx.md: New file for VSX support.
9239
9240         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
9241         identifing values with just the most significant bit set.
9242         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
9243         vectorized builtins.
9244
9245         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
9246         (UNSPEC_VRFIM): Delete.
9247         (splitter for loading up vector with most significant bit): New
9248         splitter for vectorizing copysign.
9249         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
9250         vectorizing simple math functions.
9251         (altivec_vrfip): Add support for vectorizing simple math functions.
9252         (altivec_vrfim): Ditto.
9253         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
9254
9255         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
9256         (power7.md, vsx.md): Include for power7 support.
9257         (copysigndf3): Use VSX instructions if -mvsx.
9258         (negdf2_fpr): Ditto.
9259         (absdf2_fpr): Ditto.
9260         (nabsdf2_fpr): Ditto.
9261         (adddf3_fpr): Ditto.
9262         (subdf3_fpr): Ditto.
9263         (muldf3_fpr): Ditto.
9264         (divdf3_fpr): Ditto.
9265         (fix_truncdfdi2_fpr): Ditto.
9266         (cmpdf_internal1): Ditto.
9267         (fred, fred_fpr): Convert into expander/insn to add VSX support.
9268         (btruncdf2, btruncdf2_fpr): Ditto.
9269         (ceildf2, ceildf2_fpr): Ditto.
9270         (floordf2, floordf2_fpr): Ditto.
9271         (floatdidf2, floatdidf2_fpr): Ditto.
9272         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
9273         (fmsubdf4_fpr): Ditto.
9274         (fnmadddf4_fpr_1): Ditto.
9275         (fnmadddf4_fpr_2): Ditto.
9276         (fnmsubdf4_fpr_1): Ditto.
9277         (fnmsubdf4_fpr_2): Ditto.
9278         (fixuns_truncdfdi2): Add expander for VSX support.
9279         (fix_truncdfdi2): Ditto.
9280         (fix_truncdfsi2): Ditto.
9281         (ftruncdf2): Ditto.
9282         (btruncsf2): Whitespace.
9283         (movdf_hardfloat32): Add support for VSX registers.
9284         (movdf_softfloat32): Ditto.
9285         (movdf_hardfloat64): Ditto.
9286         (movdf_hardfloat64_mfpgpr): Ditto.
9287         (movdf_softfloat64): Ditto.
9288         (movti splitters): Add check for vector registers supporting
9289         TImode in the future.
9290         (bpermd): Add power7 bpermd instruction.
9291
9292         * config/rs6000/altivec.h (vec_div): Define if VSX.
9293         (vec_mul): Ditto.
9294         (vec_msub): Ditto.
9295         (vec_nmadd): Ditto.
9296         (vec_nearbyint): Ditto.
9297         (vec_rint): Ditto.
9298         (vec_sqrt): Ditto.
9299         (all predicates): Use the generic builtin function, and not the V4SF
9300         specific function so that the predicates will work with VSX's V2DF.
9301         (vec_all_*): Ditto.
9302         (vec_any_*): Ditto.
9303
9304         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
9305         Document new VSX functions and types.
9306
9307         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
9308         switches.
9309
9310         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
9311         "wa", and "j" constraints.  Modify "v" to talk about Altivec
9312         instead of just vector.
9313
9314 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
9315
9316         PR debug/26475
9317         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
9318         location for phi arguments.
9319         (rewrite_update_phi_arguments): Find locations for reaching defs.
9320         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
9321         Add location to add_phi_arg calls.
9322         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
9323         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
9324         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
9325         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
9326         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
9327         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
9328         * tree-phinodes.c (make_phi_node): Initialize location.
9329         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
9330         (add_phi_arg): Add location parameter.
9331         (remove_phi_arg_num): Move location when moving phi argument.
9332         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
9333         location.
9334         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
9335         slpeel_update_phi_nodes_for_guard1,
9336         slpeel_update_phi_nodes_for_guard2,
9337         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
9338         vect_loop_versioning): Set locations.
9339         * tree-parloops.c (create_phi_for_local_result,
9340         transform_to_exit_first_loop, create_parallel_loop): Add locations.
9341         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
9342         * tree-vect-loop.c (get_initial_def_for_induction,
9343         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
9344         locations.
9345         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
9346         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
9347         (gimple_phi_arg_set_location): New.  Set locus.
9348         (gimple_phi_arg_has_location): New.  Check for locus.
9349         (redirect_edge_var_map_location): New.  Return locus from var_map.
9350         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
9351         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
9352         combining PHI arguments.
9353         (cond_store_replacement): Set location.
9354         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
9355         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
9356         scop_add_exit_phis_edge): Add locations.
9357         * tree-cfgcleanup.c (remove_forwarder_block,
9358         remove_forwarder_block_with_phi): Add locations.
9359         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
9360         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
9361         locations.
9362         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
9363         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
9364         flush_pending_stmts): Add source location.
9365         * lambda-code.c (perfect_nestify): Maintain location stack with argument
9366         stack to preserve locations.
9367         * tree-vect-stmts.c (vectorizable_load): Add location.
9368         * tree-inline.c (copy_phis_for_bb): Copy locus.
9369         (setup_one_parameter): Add call locus to inlined parameter stmts.
9370         (initialize_inlined_parameters): Pass in call location as parameter
9371         assignment locus.
9372         (tree_function_versioning): Pass location to setup_one_parameter.
9373         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
9374         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
9375         copy and edge lists.
9376         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
9377         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
9378         locus parameter and override the stmt default if provided.
9379         (new_elim_graph, clear_elim_graph, delete_elim_graph,
9380         elim_graph_add_edge, elim_graph_remove_succ_edge,
9381         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
9382         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
9383         eliminate_phi):  Add locus info in elimination graph for each edge and
9384         value copy.
9385         (insert_backedge_copies): Copy locus if present.
9386         * tree-flow.h (struct _edge_var_map): Add locus field.
9387         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
9388         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
9389         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
9390         locations.
9391         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
9392
9393 2009-07-30  Martin Jambor  <mjambor@suse.cz>
9394
9395         PR tree-optimization/40570
9396         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
9397         use inlining loops.
9398
9399 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
9400
9401         * ssa-loop-manip.c: Include langhooks.h.
9402         (rewrite_phi_with_iv): New.
9403         (rewrite_all_phi_nodes_with_iv): New.
9404         (canonicalize_loop_ivs): Move here from tree-parloops.c.
9405         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
9406         * tree-parloops.c (loop_parallel_p): Move out all conditions
9407         except dependency check.
9408         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
9409         (gen_parallel_loop): Call canonicalize_loop_ivs without
9410         reduction_list argument.
9411         (build_new_reduction): New.
9412         (gather_scalar_reductions): New.
9413         (try_get_loop_niter): New.
9414         (try_create_reduction_list): New.
9415         (parallleize_loops): Change the parallel conditions check.
9416         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
9417         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
9418
9419 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
9420
9421         * opt-functions.awk (opt_args): Allow argument to be enclosed in
9422         curly braces.
9423         * doc/options.texi (Option properties):  Mention new quoting syntax.
9424
9425 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
9426
9427         * config/alpha/alpha.c (alpha_start_function):
9428         Handle VMS_DEBUG_MAIN_POINTER
9429         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
9430         * doc/invoke.texi: Document -mdebug-main switch.
9431
9432 2009-07-29  Richard Henderson  <rth@redhat.com>
9433
9434         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
9435         (cgraph_create_edge_including_clones): Likewise.
9436         * tree-inline.c (copy_bb): Operate on the correct edges
9437         when updating the callgraph.
9438
9439 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
9440
9441         * config/alpha/vms-cc.c: Deleted.
9442         * config/alpha/vms-ld.c: Deleted.
9443         * config/alpha/t-vms64: Moved to config/vms
9444         * config/alpha/vms-crt0-64.c: Moved to config/vms
9445         * config/alpha/vms-crt0.c: Moved to config/vms
9446         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
9447         * config/alpha/vms-psxcrt0.c: Moved to config/vms
9448         * config/alpha/xm-vms.h: Moved to config/vms
9449         * config/alpha/x-vms: Moved to config/vms
9450         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
9451         config/vms/t-vms.
9452         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
9453         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
9454         (version): Set.
9455         * config/vms/t-vms64: Moved here from config/alpha
9456         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
9457         (argc,argv,envp): Enforce 32bit malloc'ing.
9458         * config/vms/vms-psxcrt0-64.c: Likewise.
9459         * config/vms/vms-crt0.c: Moved here from config/alpha.
9460         * config/vms/vms-psxcrt0.c: Likewise.
9461         * config/vms/vms-crtl-64.h: New file.
9462         * config/vms/vms-crtl.h: New file.
9463         * config/vms/vms.opt: New file.
9464         * config/vms/xm-vms64.h: New file.
9465         * config/vms/xm-vms.h: Moved here from config/alpha.
9466         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
9467         Set.
9468         * config/vms/x-vms: Moved here from config/alpha.
9469         (version, VMS_EXTRA_PARTS): Moved to t-vms.
9470         (vms-ld.o, vms-cc.o): Removed.
9471         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
9472
9473 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
9474
9475         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
9476         correct stack (obvious VMS fix).
9477
9478 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
9479
9480         * dwarf2out.c (output_file_names): Output VMS style file name, size,
9481         date, version info if VMS_DEBUGGING_INFO defined.
9482         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
9483         size, date calculating code moved here.
9484
9485 2009-07-29  Paul Brook  <paul@codesourcery.com>
9486
9487         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
9488         do_push/do_pop.
9489
9490 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
9491
9492         PR target/40577
9493         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
9494         to DImode when generating insq_le insn.
9495
9496 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
9497
9498         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
9499         New macro set for VMS_DEBUGGGING_INFO.
9500         (AT_string_form): Use it.
9501
9502 2009-07-28  DJ Delorie  <dj@redhat.com>
9503
9504         * config/mep/mep.c (vtext_section): New.
9505         (vftext_section): New.
9506         (ftext_section): New.
9507         (mep_select_section): Add support for functions.
9508         (mep_unique_section): Likewise.
9509         (mep_asm_init_sections): Likewise.
9510         (mep_encode_section_info): Remove it from here.
9511
9512         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
9513
9514 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
9515
9516         * tree.h (TREE_DEPRECATED): Document it is used for types too.
9517         (TYPE_VECTOR_OPAQUE): Use default_def_flag
9518
9519 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
9520
9521         * dwarf2out.c (output_file_names): Test new macro
9522         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
9523         (add_comp_dir_attribute): Likewise.
9524
9525 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
9526
9527         * config/i386/mingw-w64.h (LINK_SPEC): Add
9528         separating space between commands.
9529
9530 2009-07-28  Jan Hubicka  <jh@suse.cz>
9531
9532         PR tree-optimization/40759
9533         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
9534         for renaming.
9535
9536 2009-07-27  DJ Delorie  <dj@redhat.com>
9537
9538         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
9539         types are dword-aligned.
9540         (mep_expand_va_start): Likewise.
9541
9542 2009-07-27  Olivier Hainque  <hainque@adacore.com>
9543             Douglas B Rupp  <rupp@gnat.com>
9544
9545         * convert.c (convert_to_pointer): Don't assume the target
9546         pointer type is POINTER_SIZE long. Fetch its precision instead.
9547
9548 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
9549
9550         * system.h (fopen): Undefine if macro.
9551
9552 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
9553
9554         * dwarf2out.c (output_cfi_p): Removed.
9555         (output_cfis): New function.
9556         (output_fde): New function, split from output_call_frame_info.
9557         (output_call_frame_info): Use it.
9558         (dwarf2out_switch_text_section): Use output_cfis.
9559
9560 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
9561
9562         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
9563         TARGET_BI_ARCH is specified without enabling SJLJ.
9564         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
9565         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
9566
9567 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
9568
9569         * arm.md (negdi2): Use DImode if forcing a value into a register.
9570
9571 2009-07-26  Ira Rosen  <irar@il.ibm.com>
9572
9573         PR tree-optimization/40801
9574         * tree-vect-stmts.c (vectorizable_call): Get previous copy
9575         of vector operand from the previous copy of vector statement.
9576         Pass the correct definition type value to
9577         vect_get_vec_def_for_stmt_copy().
9578
9579 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9580
9581         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
9582         const char ** conversion.
9583
9584 2009-07-25 David Daney <ddaney@caviumnetworks.com>
9585
9586         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
9587         fancy_abort() if !ENABLE_ASSERT_CHECKING.
9588         (gcc_unreachable): Invoke __builtin_unreachable() if
9589         !ENABLE_ASSERT_CHECKING.
9590
9591 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
9592
9593         PR rtl-optimization/40445
9594         * emit-rtl.c (next_nonnote_insn_bb): New function.
9595         * rtl.h (next_nonnote_insn_bb): Declare new function.
9596         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
9597         with no successors that is the successor of the ENTRY_BLOCK.
9598         Continue from the top after removing an empty fallthrough block.
9599         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
9600         of next_nonnote_insn.
9601
9602 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
9603
9604         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
9605
9606 2009-07-25  Martin Jambor  <mjambor@suse.cz>
9607
9608         * c-common.c (c_common_attribute_table): New element for noclone.
9609         (handle_noclone_attribute): New function. Forward-declare.
9610         * tree-inline.c (tree_versionable_function_p): Check for noclone
9611         attribute.
9612         * doc/extend.texi (Labels as Values): Document need for noclone.
9613         (Function Attributes): Document noclone attribute.
9614
9615 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
9616
9617         PR rtl-optimization/34999
9618         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
9619         and dw_fde_switched_cold_to_hot fields.
9620         (output_cfi_p): New function.
9621         (output_call_frame_info): If fde->dw_fde_switched_sections,
9622         output 2 FDEs instead of one with corrupted header.
9623         (dwarf2out_do_cfi_startproc): New function.
9624         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
9625         and fde->dw_fde_switched_cold_to_hot.
9626         (dwarf2out_switch_text_section): Compute
9627         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
9628         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
9629         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
9630         Otherwise, compute fde->dw_fde_switch_cfi.
9631
9632 2009-07-24  Cary Coutant  <ccoutant@google.com>
9633
9634         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
9635
9636 2009-07-24  Cary Coutant  <ccoutant@google.com>
9637
9638         * cfghooks.c (split_block): Copy discriminator to new block.
9639         * tree-cfg.c (assign_discriminator): Check location of last
9640         instruction in block as well as first.
9641
9642 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
9643
9644         * config/i386/linux.c: Use fputs or putc instead of fprintf
9645         where appropriate.
9646         * config/i386/gas.h: Ditto.
9647         * config/i386/x86-64.h: Ditto.
9648         * config/i386/att.h: Ditto.
9649
9650 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9651
9652         * expmed.c (emit_store_flag): Use a recursive call to optimize the
9653         xor case.
9654
9655 2009-07-24  Martin Jambor  <mjambor@suse.cz>
9656
9657         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
9658         (ipa_push_func_to_list_1): Declare.
9659         (ipa_push_func_to_list): New function.
9660
9661         * ipa-prop.c (ipa_push_func_to_list_1): New function.
9662         (ipa_init_func_list): Call ipa_push_func_to_list_1.
9663         (ipa_push_func_to_list): Removed.
9664         (ipa_pop_func_from_list): Clear node_enqueued flag.
9665
9666 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
9667
9668         * config/s390/s390.c (override_options): Default
9669         max-unrolled-insns to 100 for z10 tuning.
9670
9671 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
9672
9673         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
9674         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
9675         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
9676         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
9677         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
9678         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
9679         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
9680
9681 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
9682
9683         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
9684         use default set in mingw32.h header.
9685         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
9686         64-bit /mingw/include path.
9687         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
9688         path.
9689
9690 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
9691
9692         PR rtl-optimization/40209
9693         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
9694
9695 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
9696
9697         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
9698         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
9699         with the rest of string where appropriate.  Use fputs or putc
9700         instead of fprintf where appropriate.
9701
9702 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
9703             Pat Haugen  <pthaugen@us.ibm.com>
9704             Revital Eres <ERES@il.ibm.com>
9705
9706         * config/rs6000/vector.md: New file.  Move most of the vector
9707         expander support here from altivec.md to allow for the VSX vector
9708         unit in the future.  Add support for secondary_reload patterns.
9709         Rewrite the patterns for vector comparison, and vector comparison
9710         predicate instructions so that the RTL expresses the desired
9711         behavior, instead of using unspec.
9712
9713         * config/rs6000/constraints.md ("f" constraint): Use
9714         rs6000_constraints to hold the precalculated register class.
9715         ("d" constraint): Ditto.
9716         ("wd" constraint): New constraint for VSX.
9717         ("wf" constraint): Ditto.
9718         ("ws" constraint): Ditto.
9719         ("wa" constraint): Ditto.
9720         ("wZ" constraint): Ditto.
9721         ("j" constraint): Ditto.
9722
9723         * config/rs6000/predicates.md (vsx_register_operand): New
9724         predicate for VSX.
9725         (vfloat_operand): New predicate for vector.md.
9726         (vint_operand): Ditto.
9727         (vlogical_operand): Ditto.
9728         (easy_fp_constant): If VSX, 0.0 is an easy constant.
9729         (easy_vector_constant): Add VSX support.
9730         (altivec_indexed_or_indirect_operand): New predicate for
9731         recognizing Altivec style memory references with AND -16.
9732
9733         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
9734         for vector secondary reload support.
9735         (rs6000_vector_reg_class): Delete, replacing it with
9736         rs6000_constraints.
9737         (rs6000_vsx_reg_class): Ditto.
9738         (rs6000_constraints): New array to hold the register classes of
9739         each of the register constraints that can vary at runtime.
9740         (builtin_mode_to_type): New static array for builtin function type
9741         creation.
9742         (builtin_hash_table): New static hash table for builtin function
9743         type creation.
9744         (TARGET_SECONDARY_RELOAD): Define target hook.
9745         (TARGET_IRA_COVER_CLASSES): Ditto.
9746         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
9747         registers are 128 bits if VSX memory reference instructions are used.
9748         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
9749         unit is being used.
9750         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
9751         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
9752         Print several of the scheduling related parameters.
9753         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
9754         rs6000_constraints instead of rs6000_vector_reg_class.  Move
9755         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
9756         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
9757         Altivec.  Add VSX support.  Setup for secondary reload support on
9758         Altivec/VSX registers.
9759         (rs6000_override_options): Make power7 set the scheduling groups
9760         like the power5.  Add support for new debug switches to override
9761         the scheduling defaults.  Temporarily disable -mcpu=power7 from
9762         setting -mvsx.  Add support for debug switches -malways-hint,
9763         -msched-groups, and -malign-branch-targets.
9764         (rs6000_buitlin_conversion): Add support for returning unsigned
9765         vector conversion functions to fix regressions due to stricter
9766         type checking.
9767         (rs6000_builtin_mul_widen_even): Ditto.
9768         (rs6000_builtin_mul_widen_odd): Ditto.
9769         (rs6000_builtin_vec_perm): Ditto.
9770         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
9771         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
9772         to zero a register.
9773         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
9774         generated upstream.
9775         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
9776         VSX types for bit operations.  Changes to accomidate vector.md.
9777         (bdesc_2arg): Ditto.
9778         (bdesc_1arg): Ditto.
9779         (struct builtin_description_predicates): Rewrite predicate
9780         handling so that RTL describes the operation, instead of passing
9781         the instruction to be used as a string argument.
9782         (bdesc_altivec_preds): Ditto.
9783         (altivec_expand_predicate_builtin): Ditto.
9784         (altivec_expand_builtin): Ditto.
9785         (rs6000_expand_ternop_builtin): Use a switch instead of an if
9786         statement for vsldoi support.
9787         (altivec_expand_ld_builtin): Change to use new names from vector.md.
9788         (altivec_expand_st_builtin): Ditto.
9789         (paired_expand_builtin): Whitespace changes.
9790         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
9791         builtin_mode_to_type table for secondary reload.  Call
9792         builtin_function_type to build random builtin functions.
9793         (altivec_init_builtins): Change to use builtin_function_type to
9794         create builtin function types dynamically as we need them.
9795         (builtin_hash_function): New support for hashing the tree types
9796         for builtin function as we need it, rather than trying to build
9797         all of the trees that we need.  Add initial preliminary VSX support.
9798         (builtin_function_type): Ditto.
9799         (builtin_function_eq): Ditto.
9800         (builtin_hash_struct): Ditto.
9801         (rs6000_init_builtins): Ditto.
9802         (rs6000_common_init_builtins): Ditto.
9803         (altivec_init_builtins): Ditto.
9804         (rs6000_common_init_builtins): Ditto.
9805         (enum reload_reg_type): New enum for simplifing reg classes.
9806         (rs6000_reload_register_type): Simplify register classes into GPR,
9807         Vector, and other registers.  Altivec and VSX addresses in reload.
9808         (rs6000_secondary_reload_inner): Ditto.
9809         (rs6000_ira_cover_classes): New target hook, that returns the
9810         appropriate cover classes, based on -mvsx being used or not.
9811         (rs6000_secondary_reload_class): Add VSX support.
9812         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
9813         (get_vsel_insn): Ditto.
9814         (rs6000_emit_vector_compare): Rewrite vector conditional support
9815         so that where we can, we use RTL operators, instead of blindly use
9816         UNSPEC.
9817         (rs6000_emit_vector_select): Ditto.
9818         (rs6000_emit_vector_cond_expr): Ditto.
9819         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
9820         (create_TOC_reference): Add -mdebug=addr support.
9821         (emit_frame_save): VSX loads/stores need register indexed addressing.
9822
9823         * config/rs6000/rs6000.md: Include vector.md.
9824
9825         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
9826
9827         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9828         support for V2DI, V2DF in logical, permute, select operations.
9829
9830         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
9831         switch for vsx/power7.
9832         (-mvsx-scalar-memory): Ditto.
9833         (-mvsx-align-128): Ditto.
9834         (-mallow-movmisalign): Ditto.
9835         (-mallow-df-permute): Ditto.
9836         (-msched-groups): Ditto.
9837         (-malways-hint): Ditto.
9838         (-malign-branch-targets): Ditto.
9839
9840         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
9841         hook instead.
9842         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
9843         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
9844         (rs6000_vector_reg_class): Delete.
9845         (rs6000_vsx_reg_class): Ditto.
9846         (enum rs6000_reg_class_enum): New enum for the constraints that
9847         vary based on target switches.
9848         (rs6000_constraints): New array to hold the register class for all
9849         of the register constraints that vary based on the switches used.
9850         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
9851         (enum rs6000_builtins): Add unsigned varients for the builtin
9852         declarations returned by target hooks for expanding multiplies,
9853         select, and permute operations.  Add VSX builtins.
9854         (enum rs6000_builtin_type_index): Add entries for VSX.
9855         (V2DI_type_node): Ditto.
9856         (V2DF_type_node): Ditto.
9857         (unsigned_V2DI_type_node): Ditto.
9858         (bool_long_type_node): Ditto.
9859         (intDI_type_internal_node): Ditto.
9860         (uintDI_type_internal_node): Ditto.
9861         (double_type_internal_node): Ditto.
9862
9863         * config/rs6000/altivec.md (whole file): Move all expanders to
9864         vector.md from altivec.md.  Rename insn matching functions to be
9865         altivec_foo.
9866         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
9867         (altivec_vcmp*): Ditto.
9868         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
9869         (VM): New iterator for moves that includes the VSX types.
9870         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
9871         (altivec_vperm_<mode>_uns): New, for unsigned types.
9872         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
9873         (altivec_eq<mode>): Ditto.
9874         (altivec_gt<mode>): Ditto.
9875         (altivec_gtu<mode>): Ditto.
9876         (altivec_eqv4sf): Ditto.
9877         (altivec_gev4sf): Ditto.
9878         (altivec_gtv4sf): Ditto.
9879         (altivec_vcmpbfp_p): Ditto.
9880
9881 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
9882
9883         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
9884         unsigned HWI.
9885
9886 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
9887
9888         PR target/40832
9889         * config/i386/i386.c (output_387_ffreep): Rewrite to use
9890         ASM_SHORT instead of .word.
9891         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
9892         instead of .word in asm template.
9893
9894 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
9895
9896         PR target/37488
9897         * ira-lives.c (bb_has_abnormal_call_pred): New function.
9898         (process_bb_node_lives): Use it.
9899
9900         * ira.c (setup_cover_and_important_classes): Don't setup
9901         ira_important_class_nums.  Add cover classes to the end of
9902         important classes.
9903         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
9904         New.
9905         (find_reg_class_closure): Use reorder_important_classes.
9906
9907         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
9908
9909         * config/i386/i386.c (i386_ira_cover_classes): New function.
9910         (TARGET_IRA_COVER_CLASSES): Redefine.
9911
9912         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
9913         importance of order of cover classes in the array.
9914
9915 2009-07-22  Diego Novillo  <dnovillo@google.com>
9916
9917         * tree-pass.h (TDF_EH): Define.
9918         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
9919         contains TDF_EH, print the EH region number holding GS.
9920         * tree-dump.c (dump_options): Add "eh".
9921         * doc/invoke.texi: Document it.
9922
9923 2009-07-22  Doug Kwan  <dougkwan@google.com>
9924
9925         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
9926
9927 2009-07-22  Michael Matz  <matz@suse.de>
9928
9929         PR tree-optimization/35229
9930         PR tree-optimization/39300
9931
9932         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
9933         (inhibit_phi_insertion): New function.
9934         (insert_into_preds_of_block): Call it for REFERENCEs.
9935         (init_pre): Initialize and finalize scalar evolutions.
9936         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
9937
9938 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
9939
9940         * config/i386/predicates.md (zero_extended_scalar_load_operand):
9941         Use CONST_VECTOR_NUNITS to determine number of elements.
9942
9943 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
9944
9945         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
9946         (U, W): Constraints are now deprecated and will be removed if we
9947         run out of letters.
9948         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
9949         the file.
9950         ("prefetch"): Add the stcmh instruction for prefetching.
9951         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
9952         changes.
9953         (s390_short_displacement): Return always true if compiling for
9954         machines not providing the long displacement facility.
9955         (s390_mem_constraint): Support the new constraint letter Z.
9956         (s390_check_qrst_address): New function.
9957
9958 2009-07-21  DJ Delorie  <dj@redhat.com>
9959
9960         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
9961         alone too.
9962
9963 2009-07-21  Jason Merrill  <jason@redhat.com>
9964
9965         * c-common.c (max_tinst_depth): Increase default to 1024.
9966
9967 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
9968
9969         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
9970         (vec_unpacku_float_lo_v4si): Ditto.
9971
9972 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
9973
9974         PR target/40811
9975         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
9976         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
9977         (builtin_description): Add __builtin_ia32_cvtudq2ps.
9978         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
9979
9980 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
9981
9982         PR tree-optimization/40813
9983         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
9984         it.
9985
9986 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
9987
9988         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
9989         with a NOP_EXPR if needed.
9990
9991 2009-07-21  Paul Brook <paul@codesourcery.com>
9992
9993         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
9994         Terminate debug dump with newline.
9995
9996 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9997
9998         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
9999         Cast "1" to unsigned HOST_WIDE_INT.
10000         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
10001         deposit length to the maximum length - lsb.  Extend length if
10002         HOST_BITS_PER_WIDE_INT is 32.
10003
10004 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
10005
10006         * cgraph.h (constant_pool_htab): New function.
10007         (constant_descriptor_tree): Move from varasm.c.
10008         * varasm.c (constant_pool_htab): New function.
10009         (constant_descriptor_tree): Move to cgraph.h.
10010
10011 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
10012
10013         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
10014
10015 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
10016
10017         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
10018         $(VARRAY_H).
10019
10020 2009-07-20  Xinliang David Li  <davidxl@google.com>
10021
10022         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
10023
10024 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
10025
10026         * config/mips/mips.md (move_type): Add arith.
10027         (type): Handle arith.
10028         (zero_extendsidi2): Rename this into ...
10029         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
10030         (zero_extendsidi2): New expander.
10031         (*zero_extendsidi2_dext): New pattern.
10032
10033 2009-07-20  Nick Clifton  <nickc@redhat.com>
10034
10035         * config.gcc (mips64-*-*): Add definition of tm_defines in order
10036         to set MIPS_ABI_DEFAULT.
10037         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
10038
10039 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
10040
10041         * tree-object-size.c (addr_object_size): Handle unions with
10042         array in it as last field of structs in __bos (, 1) as __bos (, 0).
10043
10044         PR tree-optimization/40792
10045         * tree.c (build_function_type_skip_args): Remove bogus assert.
10046
10047 2009-07-20  Jan Hubicka  <jh@suse.cz>
10048             Martin Jambor  <mjambor@suse.cz>
10049
10050         * cgraph.h (combined_args_to_skip): New field.
10051         * cgraph.c (cgraph_create_virtual_clone): Properly handle
10052         combined_args_to_skip and args_to_skip.
10053         * tree-inline.c (update_clone_info): New function.
10054         (tree_function_versioning): Call update_clone_info.
10055         * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
10056         functions.
10057         (cgraph_materialize_all_clones): More extensive dumping, working
10058         with combined_args_to_skip rather than args_to_skip.
10059
10060 2009-07-20  Ira Rosen  <irar@il.ibm.com>
10061
10062         * tree-vectorizer.h (vectorizable_condition): Add parameters.
10063         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
10064         (get_initial_def_for_reduction): Likewise.
10065         (vectorizable_reduction): Skip the check of first operand in case
10066         of COND_EXPR. Add check that it is outer loop vectorization if
10067         nested cycle was detected. Call vectorizable_condition() for
10068         COND_EXPR. If reduction epilogue cannot be created do not fail for
10069         nested cycles (if it is not double reduction). Assert that there
10070         is only one type in the loop in case of COND_EXPR. Call
10071         vectorizable_condition() to vectorize COND_EXPR.
10072         * tree-vect-stmts.c (vectorizable_condition): Update comment.
10073         Add parameters. Allow nested cycles if called from
10074         vectorizable_reduction(). Use reduction vector variable if provided.
10075         (vect_analyze_stmt): Call vectorizable_reduction() before
10076         vectorizable_condition().
10077         (vect_transform_stmt): Update call to vectorizable_condition().
10078
10079 2009-07-20  Christian Bruel  <christian.bruel@st.com>
10080
10081         * config/sh/sh.opt (-mfmovd): Resurrect and document.
10082         * doc/invoke.texi (-mfmovd): Likewise.
10083         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
10084
10085 2009-07-20  Jan Hubicka  <jh@suse.cz>
10086
10087         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
10088         when handling SSA name.
10089
10090 2009-07-19  Jan Hubicka  <jh@suse.cz>
10091
10092         PR tree-optimization/40676
10093         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
10094         virtual PHIs in empty BBs.
10095
10096 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
10097
10098         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
10099         re-expanded the compound use gen_lowpart instead to convert to the
10100         desired mode.
10101
10102 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
10103
10104         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
10105         OUTER_CONST arguments.
10106         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
10107         the new wider mode will be masked off.
10108         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
10109
10110 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
10111
10112         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
10113         high-order bits are zero.
10114
10115 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
10116
10117         * combine.c (simplify_shift_const_1): Split code to determine
10118         shift_mode into ...
10119         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
10120         new bits shifted in are identical to the old sign bit.
10121
10122 2009-07-18  Richard Guenther  <rguenther@suse.de>
10123
10124         PR c/40787
10125         * gimplify.c (gimplify_call_expr): Reject code using results from
10126         functions returning void.
10127
10128 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
10129
10130         * doc/md.texi: Document the new PowerPC "es" constraint.
10131         Document that "m" can include automodified addresses on this target,
10132         and explain how %U must be used.  Extend the "Q" and "Z" documentation
10133         to suggest "es" as well as "m".
10134         * config/rs6000/constraints.md (es): New memory constraint.
10135         (Q, Z): Update strings to match new documentation.
10136
10137 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
10138
10139         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
10140         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
10141         * config/rs6000/predicates.md (volatile_mem_operand): Use
10142         offsettable_nonstrict_memref_p.
10143         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
10144         (*floatunssidf2_internal): Likewise.
10145         (*fix_truncdfsi2_internal): Likewise.
10146         (*fix_trunctfsi2_internal): Likewise.
10147
10148 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
10149
10150         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
10151         atmega32u2 devices.
10152         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
10153
10154 2009-07-17  Richard Guenther  <rguenther@suse.de>
10155
10156         PR c/40401
10157         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
10158         (pass_warn_unused_result): Likewise.
10159         (TODO_set_props): Remove.
10160         * omp-low.c (diagnose_omp_structured_block_errors): Change to
10161         run as a pass.
10162         (pass_diagnose_omp_blocks): Define.
10163         * c-decl.c (pop_file_scope): Do not finalize the CU here.
10164         (c_gimple_diagnostics_recursively): Remove.
10165         (finish_function): Do not call it.
10166         (c_write_global_declarations): Continue after errors.
10167         Finalize the CU here.
10168         * c-gimplify.c (c_genericize): Do not gimplify here.
10169         * c-common.c (c_warn_unused_result): Move ...
10170         * tree-cfg.c (do_warn_unused_result): ... here.
10171         (run_warn_unused_result): New function.
10172         (gate_warn_unused_result): New function.
10173         (pass_warn_unused_result): New pass.
10174         * c-common.h (c_warn_unused_result): Remove.
10175         * flags.h (flag_warn_unused_result): Declare.
10176         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
10177         * opts.c (flag_warn_unused_result): Initialize to false.
10178         * toplev.c (compile_file): Add comment.
10179         * omp-low.c (create_omp_child_function): Do not register
10180         the function with the frontend.
10181         (diagnose_omp_structured_block_errors): Prepare to be
10182         called as optimization pass.
10183         (gate_diagnose_omp_blocks): New function.
10184         (pass_diagnose_omp_blocks): New pass.
10185         * cgraph.h (cgraph_optimize): Remove.
10186         (cgraph_analyze_function): Likewise.
10187         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
10188         * cgraphunit.c (cgraph_lower_function): Lower nested functions
10189         before their parents here.
10190         (cgraph_finalize_function): Not here.
10191         (cgraph_analyze_function): Gimplify functions here.
10192         (cgraph_finalize_compilation_unit): Continue after errors.
10193         Optimize the callgraph from here.
10194         (cgraph_optimize): Make static.
10195         * langhooks.c (write_global_declarations): Finalize the CU.
10196         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
10197         (gimplify_function_tree): Assert we gimplify only once.
10198         Set PROP_gimple_any property.
10199         * tree-nested.c (gimplify_all_functions): New function.
10200         (lower_nested_functions): Gimplify all nested functions.
10201         * gimple.h (diagnose_omp_structured_block_errors): Remove.
10202         * passes.c (init_optimization_passes): Add pass_warn_unused_result
10203         and pass_diagnose_omp_blocks after gimplification.  Do not
10204         set TODO_set_props on all_lowering_passes.
10205         (execute_one_pass): Do not handle TODO_set_props.
10206         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
10207         (gimplify.o): Add tree-pass.h dependency.
10208         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
10209         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
10210         (unsave_r): Likewise.
10211         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
10212         temporary variable.
10213
10214 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
10215
10216         * doc/service.texi (Service): Restore previously removed link,
10217         which isn't broken after all.
10218
10219 2009-07-17  Richard Guenther  <rguenther@suse.de>
10220
10221         PR tree-optimization/40321
10222         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
10223         PHI nodes to the maximal set.
10224         (make_values_for_phi): Add PHI arguments to the maximal set.
10225         (execute_pre): Dump PHI_GEN and the maximal set.
10226
10227 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
10228
10229         PR c++/40780
10230         * gimplify.c (gimplify_conversion): Don't change non-conversions into
10231         VIEW_CONVERT_EXPR.
10232
10233 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
10234
10235         * doc/extend.texi (Nested Functions): Replace broken link with
10236         textual reference.
10237         * doc/service.texi (Service): Remove broken link.
10238
10239 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
10240
10241         PR bootstrap/40781
10242         * builtins.c (expand_builtin_memcmp): Use loc instead of
10243         EXPR_LOCATION (exp).
10244         (expand_builtin_strncmp): Likewise.
10245
10246 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
10247             Manuel López-Ibáñez  <manu@gcc.gnu.org>
10248
10249         PR 40435
10250         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
10251         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
10252         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
10253         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
10254         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
10255         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
10256         tree-inline.c, c-common.c, c-common.h, gimple.c,
10257         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
10258         convert.c: Add location argument to fold_{unary,binary,ternary},
10259         fold_build[123], build_call_expr, build_size_arg,
10260         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
10261         fold_build1_initializer, fold_build2_initializer,
10262         fold_build3_initializer, fold_build_call_array,
10263         fold_build_call_array_initializer, fold_single_bit_test,
10264         omit_one_operand, omit_two_operands, invert_truthvalue,
10265         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
10266         combine_comparisons, fold_builtin_*, fold_call_expr,
10267         build_range_check, maybe_fold_offset_to_address, round_up,
10268         round_down.
10269
10270 2009-07-16  Jason Merrill  <jason@redhat.com>
10271
10272         PR libstdc++/37907
10273         * c-common.c (c_common_reswords): Add __is_standard_layout
10274         and __is_trivial.
10275         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
10276         * doc/implement-cxx.texi: New.
10277         * doc/gcc.texi: Include it.
10278
10279 2009-07-16  DJ Delorie  <dj@redhat.com>
10280
10281         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
10282         compares that may be indirectly affected by previous instructions.
10283
10284 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10285
10286         * builtins.c (do_mpc_arg2): New.
10287         (fold_builtin_2): Fold builtin cpow.
10288         * real.h (HAVE_mpc_pow): New.
10289
10290 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
10291
10292         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
10293         comparison to skip unprofitable schedule
10294
10295 2009-07-16  Simon Baldwin  <simonb@google.com>
10296
10297         * gcc.c (option_map): New flag -no-canonical-prefixes.
10298         * (display_help): Print help text for new flag.
10299         * (process_command): Move options translation and language specifics
10300         and handle new flag early.  Use it to set a function pointer to a
10301         prefix builder.  Replace make_relative_prefix calls with calls to
10302         the function pointed to.  Ignore new flag in regular options handling.
10303         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
10304
10305 2009-07-15  DJ Delorie  <dj@redhat.com>
10306
10307         * config/mep/mep.md (sibcall_internal): Change register to avoid
10308         argument registers.
10309         (sibcall_value_internal): Likewise.
10310
10311 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
10312
10313         PR rtl-optimization/40710
10314         * resource.c (mark_target_live_regs): Reset DF problem to LR.
10315
10316 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
10317
10318         * config/mips/mips.md (*extenddi_truncate<mode>,
10319         *extendsi_truncate<mode>): Change type attribute to move_type
10320         with shift_shift.  Split out code handling exts from here ...
10321         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
10322         pattern.
10323         (*extendhi_truncateqi): Change type attribute to move_type with
10324         shift_shift.  Split out code handling exts from here ...
10325         (*extendhi_truncateqi_exts): ... to this new pattern.
10326
10327 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
10328
10329         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
10330         instead of "and" with inverted sign bit mask value.  Use
10331         "nonimmediate_operand" for operand 1 and operand 2 predicate.
10332         Allocate registers only for operand 4 and operand 5.
10333
10334 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
10335
10336         PR middle-end/40747
10337         * fold-const.c (fold_cond_expr_with_comparison): When folding
10338         < and <= to MIN, make sure the MIN uses the same type as the
10339         comparison's operands.
10340
10341 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
10342
10343         * arm.md (ior_xor): New code iterator.
10344         (split for ior/xor with shift and zero-extend): New split pattern.
10345         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
10346
10347 2009-07-15  Richard Guenther  <rguenther@suse.de>
10348
10349         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
10350         offset member.
10351
10352 2009-07-15  Richard Guenther  <rguenther@suse.de>
10353
10354         PR middle-end/40753
10355         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
10356
10357 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
10358
10359         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
10360         handle 2.6.30 kernel.
10361
10362 2009-07-15  DJ Delorie  <dj@redhat.com>
10363
10364         * config/mep/mep.md (sibcall_internal): Change register to allow
10365         for 24-bit addresses.
10366         (sibcall_value_internal): Likewise.
10367
10368 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
10369
10370         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
10371         that are enabled/disabled by the flags introduced by a previous patch.
10372
10373 2009-07-14  DJ Delorie  <dj@redhat.com>
10374
10375         * config/mep/mep.md (sibcall_internal): Include non-toggling
10376         non-jmp case.
10377         (sibcall_value_internal): Likewise.
10378
10379 2009-07-14  Taras Glek  <tglek@mozilla.com>
10380             Rafael Espindola  <espindola@google.com>
10381
10382         * doc/sourcebuild.texi: Document install-plugin target.
10383         * configure.ac: Added install-plugin target to language makefiles.
10384         * configure: Regenerate.
10385         * Makefile.in: (install-plugin): Install more headers,
10386         depend on lang.install-plugin.
10387
10388 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10389
10390         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
10391         translation.
10392
10393 2009-07-14  DJ Delorie  <dj@redhat.com>
10394
10395         * config/mep/mep.c (mep_vliw_jmp_match): New function.
10396         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
10397         * config/mep/mep.md (sibcall_internal): Change test from
10398         mep_vliw_mode_match to mep_vliw_jmp_match.
10399         (sibcall_value_internal): Likewise.
10400
10401 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
10402
10403         * config/i386/sse.md (copysign<mode>3): New expander.
10404         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
10405         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
10406         Use ix86_build_const_vector.
10407         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
10408         IX86_BUILTIN_CPYSGNPD.
10409         (builtin_description): Add __builtin_ia32_copysignps and
10410         __builtin_ia32_copysignpd.
10411         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
10412         and BUILT_IN_COPYSIGNF.
10413
10414 2009-07-13  Jason Merrill  <jason@redhat.com>
10415
10416         * builtins.c (can_trust_pointer_alignment): New fn.
10417         (get_pointer_alignment): Factor it out from here.
10418         * tree.h: Declare it.
10419
10420 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
10421
10422         * config/rs6000/predicates.md (offsettable_mem_operand): Test
10423         RTX_AUTOINC class.
10424
10425 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
10426
10427         PR debug/40705
10428         PR c++/403057
10429         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
10430
10431 2009-07-14  Richard Guenther  <rguenther@suse.de>
10432             Andrey Belevantsev <abel@ispras.ru>
10433
10434         PR middle-end/40745
10435         * cfgexpand.c (partition_stack_vars): Do not bother to update
10436         alias information when not optimizing.
10437
10438 2009-07-14  Richard Guenther  <rguenther@suse.de>
10439             Andrey Belevantsev <abel@ispras.ru>
10440
10441         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
10442         (pt_solution_set): Likewise.
10443         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
10444         * tree-ssa-structalias.c (pt_solution_set): New function.
10445         * final.c (rest_of_clean_state): Free SSA data structures.
10446         * print-rtl.c (print_decl_name): Remove.
10447         (print_mem_expr): Implement in terms of print_generic_expr.
10448         * alias.c (ao_ref_from_mem): New function.
10449         (rtx_refs_may_alias_p): Likewise.
10450         (true_dependence): Query alias-export info.
10451         (canon_true_dependence): Likewise.
10452         (write_dependence_p): Likewise.
10453         * tree-dfa.c (get_ref_base_and_extent): For void types leave
10454         size unknown.
10455         * emit-rtl.c (component_ref_for_mem_expr): Remove.
10456         (mem_expr_equal_p): Use operand_equal_p.
10457         (set_mem_attributes_minus_bitpos): Do not use
10458         component_ref_for_mem_expr.
10459         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
10460         (update_alias_info_with_stack_vars): Likewise.
10461         (partition_stack_vars): Call update_alias_info_with_stack_vars.
10462         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
10463         explicitly nor clear stmt operands.
10464         Free the decl-to-pointer map.
10465         * tree-optimize.c (execute_free_datastructures): Do not free
10466         SSA data structures here.
10467         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
10468         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
10469         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
10470         dependencies.
10471         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
10472
10473 2009-07-13  DJ Delorie  <dj@redhat.com>
10474
10475         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
10476         unrolling at the right iteration count.
10477
10478         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
10479         calculations.
10480
10481 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
10482
10483         * haifa-sched.c (rank_for_schedule): Introduced flags to
10484         enable/disable individual scheduling heuristics.
10485         * common.opt: Introduced flags to enable/disable individual
10486         heuristics in the scheduler.
10487         * doc/invoke.texi: Introduced flags to enable/disable individual
10488         heuristics in the scheduler.
10489
10490 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
10491
10492         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
10493         config/i386/mingw-tls.c.
10494         * config/i386/mingw-tls.c: Removed.
10495
10496 2009-07-13  Ira Rosen  <irar@il.ibm.com>
10497
10498         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
10499         checks access only relevant statements.
10500         (vectorizable_reduction): Likewise.
10501
10502 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
10503
10504         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
10505         just for 32-bit case.
10506
10507 2009-07-12  Jan Hubicka  <jh@suse.cz>
10508
10509         PR tree-optimization/40585
10510         * except.c (expand_resx_expr): When there already is resume
10511         instruction, produce linked list.
10512         (build_post_landing_pads): Assert that resume is empty.
10513         (connect_post_landing_pads): Handle resume lists.
10514         (dump_eh_tree): Dump resume list.
10515
10516 2009-07-12  Ira Rosen  <irar@il.ibm.com>
10517
10518         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
10519         with additional argument.
10520         * tree-vectorizer.h (enum vect_def_type): Add
10521         vect_double_reduction_def.
10522         (vect_is_simple_reduction): Add argument.
10523         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
10524         indentation.
10525         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
10526         vect_is_simple_reduction with additional argument.
10527         (vect_analyze_loop_operations): Handle exit phi nodes in case of
10528         double reduction.
10529         (reduction_code_for_scalar_code): Handle additional codes by
10530         returning ERROR_MARK for them. Fix comment and indentation.
10531         (vect_is_simple_reduction): Fix comment, add argument to specify
10532         double reduction. Detect double reduction.
10533         (get_initial_def_for_induction): Fix indentation.
10534         (get_initial_def_for_reduction): Fix comment and indentation.
10535         Handle double reduction. Create initial definitions that do not
10536         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
10537         (vect_create_epilog_for_reduction): Fix comment, add argument to
10538         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
10539         epilogue result extraction. Create double reduction phi node and
10540         replace relevant uses.
10541         (vectorizable_reduction): Call vect_is_simple_reduction with
10542         additional argument. Fix indentation. Update epilogue code treatment
10543         according to the changes in reduction_code_for_scalar_code. Check
10544         for double reduction. Call vect_create_epilog_for_reduction with
10545         additional argument.
10546         * tree-vect-stmts.c (process_use): Handle double reduction, update
10547         documentation.
10548         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
10549         (vect_get_vec_def_for_operand): Likewise.
10550
10551 2009-07-12  Danny Smith  <dansmister@gmail.com>
10552
10553         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
10554         dllexport if !TREE_PUBLIC.
10555         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
10556
10557 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
10558
10559         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
10560         (avr_extra_arch_macro) Remove declatation.
10561         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
10562         (avr_extra_arch_macro) Declare as static.
10563         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
10564
10565 2009-07-11  Jan Hubicka  <jh@suse.cz>
10566
10567         PR middle-end/48388
10568         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
10569
10570 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
10571
10572         PR debug/40713
10573         * dwarf2out.c (dw_fde_struct): Add in_std_section and
10574         cold_in_std_section bits.
10575         (dwarf2out_begin_prologue): Initialize them.
10576         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
10577         if already covered by text_section or cold_text_section range.
10578
10579         PR rtl-optimization/40667
10580         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
10581         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
10582         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
10583         * config/i386/i386.c (ix86_minimum_alignment): New function.
10584         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
10585         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
10586         * emit-rtl.c (gen_reg_rtx): Likewise.
10587         * function.c (assign_parms): Likewise.  If nominal_type needs
10588         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
10589         rather than passed_type's alignment.
10590
10591         PR target/40668
10592         * function.c (assign_parm_setup_stack): Adjust
10593         MEM_OFFSET (data->stack_parm) if promoted_mode is different
10594         from nominal_mode on big endian.
10595
10596 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
10597
10598         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
10599
10600 2009-07-10  DJ Delorie  <dj@redhat.com>
10601
10602         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
10603
10604 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
10605
10606         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
10607         attribute.
10608         (thumb2_cbnz): Likewise.
10609
10610 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
10611
10612         PR target/39079
10613         * config.gcc (supported_defaults): Add synci.
10614         (with_synci): Add validation.
10615         (all_defaults): Add synci.
10616         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
10617         ISA_HAS_SYNCI.
10618         (synci): Same.
10619         * config/mips/mips.opt (msynci): New option.
10620         * config/mips/mips.c (mips_override_options): Warn on use of
10621         -msynci for targets that do now support it.
10622         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
10623         msynci.
10624         * gcc/doc/invoke.texi (-msynci): Document the new option.
10625         * doc/install.texi (--with-synci): Document the new option.
10626
10627 2009-07-10  Richard Guenther  <rguenther@suse.de>
10628
10629         PR tree-optimization/40496
10630         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
10631         the PHI result with a compatible type.
10632
10633 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10634
10635         PR 25509
10636         PR 40614
10637         * c.opt (Wunused-result): New.
10638         * doc/invoke.texi: Document it.
10639         * c-common.c (c_warn_unused_result): Use it.
10640
10641 2009-07-09  DJ Delorie  <dj@redhat.com>
10642
10643         * targhooks.c (default_target_can_inline_p): Rename from
10644         default_target_option_can_inline_p.
10645         * targhooks.h (default_target_can_inline_p): Likewise.
10646         * target-def.h (TARGET_CAN_INLINE_P): Rename from
10647         TARGET_OPTION_CAN_INLINE_P.
10648         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
10649         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
10650         (mep_target_can_inline_p): Rename from
10651         mep_target_option_can_inline_p.
10652
10653         PR target/40626
10654         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
10655         registers used to pass vectors.
10656
10657         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
10658
10659 2009-07-09  Tom Tromey  <tromey@redhat.com>
10660
10661         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
10662         * config/mmix/mmix.c: Include dwarf2.h.
10663         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
10664         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
10665         * config/sh/sh.c: Include dwarf2.h.
10666         * config/i386/i386.c: Include dwarf2.h.
10667         * Makefile.in (DWARF2_H): Remove 'elf'.
10668         * except.c: Include dwarf2.h.
10669         * unwind-dw2.c: Include dwarf2.h.
10670         * dwarf2out.c: Include dwarf2.h.
10671         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
10672         * unwind-dw2-fde.c: Include dwarf2.h.
10673         * dwarf2asm.c: Include dwarf2.h.
10674
10675 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
10676
10677         * haifa-sched.c (insn_finishes_cycle_p): New static function.
10678         (max_issue): Use it.
10679         * sched-int.h (struct sched_info: insn_finishes_block_p): New
10680         scheduler hook.
10681         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
10682         (region_sched_info): Update.
10683         * sched-ebb.c (ebb_sched_info): Update.
10684         * modulo-sched.c (sms_sched_info): Update.
10685         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
10686
10687 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
10688
10689         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
10690
10691 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
10692
10693         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
10694
10695 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
10696
10697         PR middle-end/40692
10698         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
10699         arg1 with arg01 if arg1 is already INTEGER_CST.
10700
10701 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
10702
10703         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
10704         Transform (and (truncate)) into (truncate (and)).
10705
10706 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
10707
10708         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
10709         creating LHS paradoxical subregs.  Fix surrounding returns to
10710         use NULL_RTX rather than 0.
10711
10712 2009-07-08  DJ Delorie  <dj@redhat.com>
10713
10714         * config/mep/mep.c: (mep_option_can_inline_p): New.
10715         (TARGET_OPTION_CAN_INLINE_P): Define.
10716
10717 2009-07-08  Mark Wielaard  <mjw@redhat.com>
10718
10719         PR debug/40659
10720         * dwarf2out.c (add_data_member_location_attribute): When we have
10721         only a constant offset don't emit a new location description using
10722         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
10723         dwarf_version > 2.
10724
10725 2009-07-08  Richard Henderson  <rth@redhat.com>
10726
10727         PR target/38900
10728         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
10729         (enum reg_class): Add CLOBBERED_REGS.
10730         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
10731         * config/i386/i386.c (ix86_conditional_register_usage): Moved
10732         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
10733         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
10734         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
10735         force 64-bit sibcalls into R11.
10736         * config/i386/constraints.md (U): New constraint.
10737         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
10738         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
10739         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
10740
10741 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
10742
10743         * basic-block.h (dump_regset, debug_regset): Remove duplicate
10744         prototypes.
10745         * c-objc-common.h (c_initialize_diagnostics): Ditto.
10746         * ebitmap.h (dump_ebitmap): Ditto.
10747         * optabs.h (optab_libfunc): Ditto.
10748         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
10749         * tree-flow.h (vect_can_force_dr_alignment_p,
10750         get_vectype_for_scalar_type): Ditto.
10751         (vectorize_loops): Move prototype to ...
10752         * tree-vectorizer.h: ... here. Also, adjust comment.
10753         (vect_set_verbosity_level): Remove duplicate prototype.
10754         * tree-ssa-loop.c: Include tree-vectorizer.h.
10755         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
10756
10757 2009-07-08  Nick Clifton  <nickc@redhat.com>
10758
10759         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
10760         forward slash.
10761
10762 2009-07-08  DJ Delorie  <dj@redhat.com>
10763
10764         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
10765         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
10766         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
10767         written to.
10768         * config/mep/intrinsics.md: Regenerated.
10769         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
10770         registers when asm() or calls are detected.
10771
10772 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10773
10774         PR c++/31246
10775         * gimplify.c (gimplify_expr): Propagate no_warning flag when
10776         gimplifying.
10777         * gimple (gimple_build_call_from_tree): Likewise.
10778         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
10779         no_warning flag before warning.
10780
10781 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10782
10783         * tree.c (set_expr_locus): Remove.
10784         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
10785         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
10786         EXPR_LOCATION.
10787         * gimplify.c (internal_get_tmp_var): Likewise.
10788         (gimplify_call_expr): Likewise.
10789         (gimplify_one_sizepos): Likewise.
10790
10791 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
10792
10793         PR debug/40666
10794         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
10795         to variables for debugging purposes.
10796
10797 2009-06-23  Mark Loeser  <mark@halcy0n.com>
10798
10799         PR build/40010
10800         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
10801
10802 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10803
10804         * pretty-print.c (pp_base_format): Remove %J.
10805         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
10806         gcc_cxxdiag_char_table): Likewise.
10807         (init_dynamic_diag_info): Likewise.
10808
10809 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10810
10811         * pretty-print.c (pp_base_format): Remove %H.
10812         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
10813         gcc_cxxdiag_char_table): Likewise.
10814         (init_dynamic_diag_info): Likewise.
10815         * config/mep/mep.c (mep_select_section): Likewise.
10816
10817 2009-07-07  Duncan Sands  <baldrick@free.fr>
10818
10819         * final.c (pass_clean_state): Give the pass a name.
10820         * passes.c (pass_rest_of_compilation): Likewise.
10821         * tree-optimize.c (pass_all_optimizations): Likewise.
10822
10823 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
10824
10825         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
10826         an extra 'decl' for error_at.
10827
10828 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
10829
10830         PR middle-end/40669
10831         * tree-tailcall.c (adjust_return_value_with_ops,
10832         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
10833         if it has complex or vector type.
10834
10835 2009-07-07  Olivier Hainque  <hainque@adacore.com>
10836
10837         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
10838         pthread symbols.
10839
10840 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
10841
10842         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
10843
10844 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10845
10846         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
10847         * c-decl.c: Likewise.
10848         * function.c: Likewise.
10849         * varasm.c: Likewise.
10850         * tree-ssa.c: Likewise.
10851         * c-common.c: Likewise.
10852         * tree-cfg.c: Likewise.
10853         * config/spu/spu.c: Likewise.
10854         * config/ia64/ia64.c: Likewise.
10855         * config/v850/v850.c: Likewise.
10856
10857 2009-07-06  DJ Delorie  <dj@redhat.com>
10858
10859         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
10860         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
10861         unspecified accesses to control registers.
10862         * config/mep/intrinsics.md: Regenerate.
10863         * config/mep/intrinsics.h: Regenerate.
10864         * config/mep/mep-intrin.h: Regenerate.
10865
10866 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10867
10868         * c-lex.c: Replace %H by an explicit location. Update all calls.
10869         * c-common.c: Likewise.
10870         * c-decl.c: Likewise.
10871         * c-typeck.c: Likewise.
10872         * fold-const.c: Likewise.
10873         * gimplify.c: Likewise.
10874         * stmt.c: Likewise.
10875         * tree-cfg.c: Likewise.
10876         * tree-ssa-loop-niter.c: Likewise.
10877         * tree-vrp.c: Likewise.
10878         * value-prof.c: Likewise.
10879
10880 2009-07-06  Diego Novillo  <dnovillo@google.com>
10881
10882         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
10883         if it has one.  Handle cases where VAR does not have an
10884         annotation or cfun is NULL.
10885
10886 2009-07-06  Diego Novillo  <dnovillo@google.com>
10887
10888         * tree.c: Include debug.h.
10889         (initialize_tree_contains_struct): New.
10890         (init_ttree): Call it.
10891         (tree_node_structure_for_code): Factor out of ...
10892         (tree_node_structure): ... here.
10893         * treestruct.def (TS_PHI_NODE): Remove.
10894         (TS_GIMPLE_STATEMENT): Remove.
10895
10896 2009-07-06  Diego Novillo  <dnovillo@google.com>
10897
10898         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
10899         (debug_tree_chain): Handle cycles.
10900
10901 2009-07-06  Nick Clifton  <nickc@redhat.com>
10902             DJ Delorie  <dj@redhat.com>
10903
10904         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
10905         __FMOVD_ENABLED__ is defined.
10906         * config/sh/sh.h
10907         (TARGET_FMOVD): Provide a default definition.
10908         (MASK_FMOVD): Likewise.
10909         (TARGET_CPU_CPP_BUILTINS): Define
10910         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
10911         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
10912         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
10913         (split for DF load from memory into register): Also handle
10914         MEMs which consist of REG+DISP addressing.
10915         (split for DF store from register to memory): Likewise.
10916         (movsf_ie): Always use single fp_mode.
10917         * config/sh/sh.c (sh_override_options): Do not automatically
10918         enable TARGET_MOVD for the SH2A when supporting doubles - leave
10919         that to the -mfmovd command line switch.
10920         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
10921         (fldi_ok): Always allow.
10922         * config/sh/sh.opt (mfmovd): Remove this switch.
10923         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
10924
10925 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
10926             Kaz Kojima  <kkojima@gcc.gnu.org>
10927
10928         PR rtl-optimization/30807
10929         * postreload.c (reload_combine): For every new use of REG_SUM,
10930         record the use of BASE.
10931
10932 2009-07-06  Jan Hubicka  <jh@suse.cz>
10933
10934         * params.def: Revert my accidental commit at 2009-06-30.
10935
10936 2009-07-04  Ian Lance Taylor  <iant@google.com>
10937
10938         PR target/40636
10939         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
10940         EXPORTED_CONST.
10941         (mingw_format_attribute_overrides): Likewise.
10942
10943 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
10944
10945         PR debug/40596
10946         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
10947         don't check cfa.reg.  Instead of cfa.indirect use
10948         fde && fde->drap_reg != INVALID_REGNUM test.
10949
10950 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
10951
10952         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
10953
10954 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
10955
10956         PR target/40587
10957         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
10958
10959 2009-07-03  Richard Guenther  <rguenther@suse.de>
10960
10961         PR tree-optimization/40640
10962         * tree-switch-conversion.c (build_arrays): Perform arithmetic
10963         in original type.
10964
10965 2009-07-03  Jan Hubicka  <jh@suse.cz>
10966
10967         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
10968         for size, reduce amount of inlining.
10969
10970 2009-07-03  Richard Guenther  <rguenther@suse.de>
10971
10972         PR middle-end/34163
10973         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
10974         if t +- x is known to not overflow and the conversion widens the
10975         operation.
10976         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
10977
10978 2009-07-03  Jan Hubicka  <jh@suse.cz>
10979
10980         * ipa-pure-const.c (analyze): Update loop optimizer init.
10981         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
10982         try_remove_empty_loop, remove_empty_loops): Remove.
10983         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
10984         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
10985         to mark regular loops as neccesary.
10986         (degenerate_phi_p): New function.
10987         (propagate_necessity, remove_dead_phis): Use it.
10988         (forward_edge_to_pdom): Likewise.
10989         (eliminate_unnecessary_stmts): Take care to remove uses of results of
10990         virtual PHI nodes that became unreachable.
10991         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
10992         * tree-flow.h (remove_empty_loops): Remove.
10993         * passes.c (init_optimization_passes): Remove.
10994
10995 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
10996
10997         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
10998         can_create_pseudo_p.
10999         (*fix_trunc<mode>_i387_1): Ditto.
11000         (*floathi<mode>2_1): Ditto.
11001         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
11002         (*fistdi2_1): Ditto.
11003         (*fist<mode>2_1): Ditto.
11004         (frndintxf2_floor): Ditto.
11005         (*fist<mode>2_floor_1): Ditto.
11006         (frndintxf2_ceil): Ditto.
11007         (*fist<mode>2_ceil_1): Ditto.
11008         (frndintxf2_trunc): Ditto.
11009         (frndintxf2_mask_pm): Ditto.
11010         (fxam<mode>2_i387_with_temp): Ditto.
11011         * config/i386/sse.md (mulv16qi3): Ditto.
11012         (*sse2_mulv4si3): Ditto.
11013         (mulv2di3): Ditto.
11014         (sse4_2_pcmpestr): Ditto.
11015         (sse4_2_pcmpistr): Ditto.
11016
11017 2009-07-03  Jan Hubicka  <jh@suse.cz>
11018
11019         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
11020         (mark_stmt_necessary): Set it.
11021         (mark_operand_necessary): Set it.
11022         (mark_control_dependent_edges_necessary): Set it.
11023         (mark_virtual_phi_result_for_renaming): New function.
11024         (get_live_post_dom): New function.
11025         (forward_edge_to_pdom): New function.
11026         (remove_dead_stmt): Fix handling of control dependences.
11027         (tree_dce_init): Init new bitmap.
11028         (tree_dce_done): Free it.
11029
11030 2009-07-02  Richard Guenther  <rguenther@suse.de>
11031
11032         PR bootstrap/40617
11033         * tree-ssa-structalias.c (new_var_info): Initialize
11034         is_restrict_var.
11035
11036 2009-07-02  Jan Hubicka  <jh@suse.cz>
11037
11038         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
11039         local.
11040
11041 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
11042
11043         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
11044         instead of recomputing it.  Adjust calls.
11045         (emit_store_flag): Adjust recursive calls.
11046
11047 2009-07-02  Richard Guenther  <rguenther@suse.de>
11048
11049         * tree-ssa-live.c (remove_unused_locals): Do not remove
11050         heap variables.
11051         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
11052         of DECL_EXTERNAL for HEAP variables.
11053         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
11054         HEAP variables.  Do not adjust RESTRICT vars.
11055         (find_what_var_points_to): Nobody cares if something
11056         points to READONLY.
11057
11058 2009-07-02  Ben Elliston  <bje@au.ibm.com>
11059
11060         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
11061         pc_low and pc_high declarations to the top of the function.
11062
11063 2009-07-01  DJ Delorie  <dj@redhat.com>
11064
11065         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
11066         registers as fixed.
11067         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
11068         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
11069         unspecified accesses to control registers.
11070         * config/mep/intrinsics.md: Regenerate.
11071         * config/mep/intrinsics.h: Regenerate.
11072         * config/mep/mep-intrin.h: Regenerate.
11073
11074 2009-07-01  Anthony Green  <green@moxielogic.com>
11075
11076         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
11077         instruction when possible.
11078         (moxie_expand_prologue): Ditto.  Also, save an instruction and
11079         some complexity by popping off of $r12 instead of $sp.
11080         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
11081         operands.
11082
11083 2009-07-01  Richard Henderson  <rth@redhat.com>
11084
11085         PR bootstrap/40347
11086         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
11087         contained no insns, reposition note before last insn.
11088
11089 2009-07-01  Richard Henderson  <rth@redhat.com>
11090
11091         PR debug/40431
11092         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
11093         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
11094
11095 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
11096
11097         PR bootstrap/40558
11098         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
11099         darwin9 for printing reg addresses with %y.
11100
11101 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
11102
11103         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
11104         truncation from operands in binary operations.
11105
11106 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
11107
11108         Revert:
11109         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
11110         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
11111         subreg of op0 to the original op0.
11112
11113         * expmed.c (store_bit_field_1): Use a temporary as the destination
11114         instead of a paradoxical subreg when we need to truncate the result.
11115
11116 2009-07-01  DJ Delorie  <dj@redhat.com>
11117
11118         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
11119         names to VLIW variants.
11120         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
11121         * config/mep/intrinsics.md: Regenerate.
11122         * config/mep/intrinsics.h: Regenerate.
11123         * config/mep/mep-intrin.h: Regenerate.
11124
11125 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
11126
11127         PR debug/40462
11128         * jump.c (returnjump_p): Revert last patch.
11129         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
11130
11131 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11132
11133         PR target/40575
11134         * pa.md (casesi32p): Use jump table label to determine the offset
11135         of the jump table.
11136         (casesi64p): Likewise.
11137
11138         * pa.c (forward_branch_p): Return bool type.  Use instruction
11139         addresses when available.  Assert that INSN has a jump label.
11140         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
11141         have a jump label.
11142
11143 2009-07-01  Richard Guenther  <rguenther@suse.de>
11144
11145         PR tree-optimization/19831
11146         * tree-ssa-dce.c (propagate_necessity): Calls to functions
11147         that only act as barriers do not make any previous stores necessary.
11148         * tree-ssa-structalias.c (handle_lhs_call): Delay making
11149         HEAP variables global, do not add a constraint from nonlocal.
11150         (find_func_aliases): Handle escapes through return statements.
11151         (compute_points_to_sets): Make escaped HEAP variables global.
11152
11153 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
11154
11155         PR bootstrap/40597
11156         * expmed.c (emit_store_flag): Perform a conversion if necessary,
11157         after reducing a DImode cstore to SImode.
11158
11159 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
11160
11161         * expr.c (expand_expr_real_1): Reinstate fallthrough to
11162         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
11163
11164 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
11165
11166         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
11167         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
11168         to 0.
11169         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
11170         and umod_optab if TARGET_BSD_DIVMOD.
11171         * config/vax/lib1funcs.asm: New file.
11172         * config/vax/t-linux: New file.
11173         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
11174
11175 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
11176
11177         PR c++/40566
11178         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
11179         to type arguments that have void type.
11180
11181         PR debug/40573
11182         * dwarf2out.c (gen_formal_parameter_die): Call
11183         equate_decl_number_to_die if node is different from origin.
11184
11185 2009-06-30  Anthony Green  <green@moxielogic.com>
11186
11187         Clean up moxie port for --enable-build-with-cxx.
11188         * config/moxie/moxie.c (moxie_function_value): First two
11189         parameters are const_tree, not tree.
11190         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
11191         (REG_CLASS_NAMES): Ditto.
11192         (REGNO_REG_CLASS): Ditto.
11193         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
11194         (moxie_function_value): Fix constyness of arguments.
11195
11196 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
11197
11198         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
11199         finalize_size_functions before further processing.
11200         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
11201         (variable_size): Call self_referential_size on size expressions
11202         that contain a PLACEHOLDER_EXPR.
11203         (size_functions): New static variable.
11204         (copy_self_referential_tree_r): New static function.
11205         (self_referential_size): Likewise.
11206         (finalize_size_functions): New global function.
11207         * tree.c: Include tree-inline.h.
11208         (push_without_duplicates): New static function.
11209         (find_placeholder_in_expr): New global function.
11210         (substitute_in_expr) <tcc_declaration>: Return the replacement object
11211         on equality.
11212         <tcc_expression>: Likewise.
11213         <tcc_vl_exp>: If the replacement object is a constant, try to inline
11214         the call in the expression.
11215         * tree.h (finalize_size_functions): Declare.
11216         (find_placeholder_in_expr): Likewise.
11217         (FIND_PLACEHOLDER_IN_EXPR): New macro.
11218         (substitute_placeholder_in_expr): Update comment.
11219         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
11220         is true.
11221         (copy_tree_body_r): Likewise.
11222         (copy_tree_body): New static function.
11223         (maybe_inline_call_in_expr): New global function.
11224         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
11225         (maybe_inline_call_in_expr): Declare.
11226         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
11227         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
11228         GIMPLE_H.
11229
11230 2009-06-30  Richard Guenther  <rguenther@suse.de>
11231
11232         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
11233         continue walking.
11234         (propagate_necessity): Do not mark reaching defs of stores
11235         as necessary.
11236
11237 2009-06-30  Jan Hubicka  <jh@suse.cz>
11238
11239         * cfgloopanal.c (check_irred): Move into ...
11240         (mark_irreducible_loops): ... here; return true if ireducible
11241         loops was found.
11242         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
11243         (analyze_function): Try to prove loop finiteness.
11244         * cfgloop.h (mark_irreducible_loops): Update prototype.
11245         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
11246
11247 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
11248
11249         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
11250
11251 2009-06-30  Ira Rosen  <irar@il.ibm.com>
11252
11253         PR tree-optimization/40542
11254         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
11255         types.
11256
11257 2009-06-30  Martin Jambor  <mjambor@suse.cz>
11258
11259         PR tree-optimization/40582
11260         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
11261         than useless_type_conversion_p.
11262         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
11263         proper place.
11264
11265 2009-06-30  Martin Jambor  <mjambor@suse.cz>
11266
11267         PR middle-end/40554
11268         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
11269
11270 2009-06-30  Richard Guenther  <rguenther@suse.de>
11271
11272         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
11273         use ao_ref references.
11274         (walk_aliased_vdefs): Likewise.
11275         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
11276         * tree-ssa-dce.c (struct ref_data): Remove.
11277         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
11278         (mark_aliased_reaching_defs_necessary): Adjust.
11279         (mark_all_reaching_defs_necessary_1): Likewise.
11280
11281 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
11282
11283         PR boostrap/40597
11284         * expmed.c (emit_cstore): New name of emit_store_flag_1.
11285         (emit_store_flag_1): Extract from emit_store_flag, adjust
11286         calls to (what now is) emit_cstore.
11287         (emit_store_flag): Call emit_store_flag_1 and also use it
11288         for what used to be recursive calls.
11289
11290 2009-06-30  Wei Guozhi  <carrot@google.com>
11291
11292         PR/40416
11293         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
11294         if the target bb post dominates from bb.
11295         * config/i386/i386.c (memory_address_length): Check existence of base
11296         register before using it.
11297
11298 2009-06-30  Nick Clifton  <nickc@redhat.com>
11299             DJ Delorie  <dj@redhat.com>
11300
11301         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
11302         __FMOVD_ENABLED__ is defined.
11303         * config/sh/sh.h
11304         (TARGET_FMOVD): Provide a default definition.
11305         (MASK_FMOVD): Likewise.
11306         (TARGET_CPU_CPP_BUILTINS): Define
11307         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
11308         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
11309         two fmov instructions depending upon whether TARGET_FMOVD is
11310         enabled.
11311         (split for DF load from memory into register): Also handle
11312         MEMs which consist of REG+DISP addressing.
11313         (split for DF store from register to memory): Likewise.
11314         * config/sh/sh.opt (mfmovd): Remove this switch.
11315         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
11316         * config/sh/sh.c (sh_override_options): Do not automatically
11317         enable TARGET_MOVD for the SH2A when supporting doubles - leave
11318         that to the -mfmovd command line switch.
11319
11320         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
11321         the SH4 and SH4A.
11322         (fldi_ok): Always allow.
11323         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
11324
11325 2009-06-29  DJ Delorie  <dj@redhat.com>
11326
11327         * doc/install.texi (mep-x-elf): Correct chip's full name.
11328
11329 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
11330
11331         * doc/extend.texi: Fix typo.
11332
11333 2009-06-29  Tom Tromey  <tromey@redhat.com>
11334
11335         * dwarf2.h: Remove.
11336         * Makefile.in (DWARF2_H): New variable.
11337         (except.o): Use it.
11338         (dwarf2out.o): Likewise.
11339         (dwarf2asm.o): Likewise.
11340         * config/i386/t-i386: Use DWARF2_H.
11341         * except.c: Include elf/dwarf2.h.
11342         * unwind-dw2.c: Include elf/dwarf2.h.
11343         * dwarf2out.c: Include elf/dwarf2.h.
11344         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
11345         <dtprel>: New field.
11346         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
11347         (size_of_loc_descr): Likewise.
11348         (output_loc_operands_raw): Likewise.
11349         (output_loc_operands): Handle new dtprel field.
11350         (loc_checksum): Update.
11351         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
11352         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
11353         * unwind-dw2-fde.c: Include elf/dwarf2.h.
11354         * dwarf2asm.c: Include elf/dwarf2.h.
11355         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
11356         * config/mmix/mmix.c: Include elf/dwarf2.h.
11357         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
11358         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
11359         * config/sh/sh.c: Include elf/dwarf2.h.
11360         * config/i386/i386.c: Include elf/dwarf2.h.
11361
11362 2009-06-29  DJ Delorie  <dj@redhat.com>
11363
11364         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
11365
11366         * doc/extend.texi: Add MeP attributes and pragmas.
11367         * doc/invoke.text: Add MeP Options.
11368         * doc/contrib.texi: Add MeP contribution.
11369         * doc/md.texi: Add MeP constraints.
11370         * doc/install.texi: Add MeP target.
11371
11372 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
11373
11374         * target.h (struct gcc_target): Add frame_pointer_required field.
11375         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
11376         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
11377         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
11378         hook.
11379         * reload1.c (update_eliminables): (Ditto.).
11380         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
11381         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
11382         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
11383
11384         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
11385
11386         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
11387         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11388         (arm_frame_pointer_required): New function.
11389
11390         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
11391         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11392         (avr_frame_pointer_required_p): Declare as static.
11393         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
11394
11395         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
11396         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11397         (bfin_frame_pointer_required): Make as static, change return type
11398         to bool.
11399         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
11400
11401         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
11402         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11403         (cris_frame_pointer_required): New function.
11404
11405         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
11406
11407         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
11408         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11409         (fr30_frame_pointer_required): New function.
11410
11411         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
11412         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11413         (frv_frame_pointer_required): Make as static, change return type
11414         to bool.
11415         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
11416
11417         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
11418         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11419         (ix86_frame_pointer_required): Make as static, change return type to
11420         bool.
11421         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
11422
11423         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
11424         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11425
11426         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
11427
11428         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
11429
11430         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
11431
11432         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
11433         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11434         (mips_frame_pointer_required): Make as static.
11435         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
11436
11437         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
11438         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11439         (mmix_frame_pointer_required): Mew function.
11440
11441         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
11442         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11443
11444         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
11445
11446         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
11447
11448         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
11449
11450         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
11451         (CAN_ELIMINATE): Redefine.
11452         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11453         (sparc_frame_pointer_required): New function.
11454         (sparc_can_eliminate): New function.
11455         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
11456
11457         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
11458         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11459
11460         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
11461         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11462         (xtensa_frame_pointer_required): Make as static, change return type
11463         to bool.
11464         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
11465         Remove.
11466
11467 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
11468
11469         * doc/plugins.texi: Document PLUGIN_START_UNIT.
11470         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
11471         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
11472         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
11473         (register_callback): Handle PLUGIN_START_UNIT.
11474         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
11475
11476 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
11477
11478         * tree.c (process_call_operands): Propagate TREE_READONLY from the
11479         operands.
11480         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
11481         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
11482
11483 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
11484
11485         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
11486         move cost.
11487
11488 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
11489
11490         * doc/extend.texi (Additional Floating Types): __float128 is also
11491         supported on i386 targets.
11492
11493 2009-06-29  Richard Guenther  <rguenther@suse.de>
11494
11495         PR middle-end/14187
11496         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
11497         flag.
11498         (pt_solutions_same_restrict_base): Declare.
11499         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
11500         flag.
11501         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
11502         (make_constraint_from, make_copy_constraint): Move earlier.
11503         (make_constraint_from_heapvar): New function.
11504         (make_constraint_from_restrict): Likewise.
11505         (handle_lhs_call): Use it.
11506         (find_func_aliases): Use it to track conversions to restrict
11507         qualified pointers.
11508         (struct fieldoff): Add only_restrict_pointers flag.
11509         (push_fields_onto_fieldstack): Initialize it.
11510         (create_variable_info_for): Track global restrict qualified pointers.
11511         (intra_create_variable_infos): Use make_constraint_from_heapvar.
11512         Track restrict qualified pointer arguments.
11513         (set_uids_in_ptset): Use varinfo is_global_var flag.
11514         (find_what_var_points_to): Set the vars_contains_restrict flag.
11515         Always create the points-to solution for sets including restrict tags.
11516         (pt_solutions_same_restrict_base): New function.
11517         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
11518         qualified pointers use pt_solutions_same_restrict_base as
11519         additional source for disambiguation.
11520
11521 2009-06-29  Richard Guenther  <rguenther@suse.de>
11522
11523         PR middle-end/38212
11524         * alias.c (find_base_decl): Remove.
11525         (get_deref_alias_set_1): Remove restrict handling.
11526         * c-common.c (c_apply_type_quals_to_decl): Do not set
11527         DECL_POINTER_ALIAS_SET.
11528         * gimplify.c (find_single_pointer_decl_1): Remove.
11529         (find_single_pointer_decl): Likewise.
11530         (internal_get_tmp_var): Remove restrict handling.
11531         (gimple_regimplify_operands): Likewise.
11532         * omp-low.c (expand_omp_atomic_pipeline): Do not set
11533         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
11534         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
11535         * tree.c (restrict_base_for_decl): Remove.
11536         (init_ttree): Do not allocate it.
11537         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
11538         LABEL_DECL_UID for label decls.
11539         (copy_node_stat): Do not copy restrict information.
11540         (decl_restrict_base_lookup): Remove.
11541         (decl_restrict_base_insert): Likewise.
11542         (print_restrict_base_statistics): Likewise.
11543         (dump_tree_statistics): Do not call print_restrict_base_statistics.
11544         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
11545         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
11546         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
11547         (LABEL_DECL_UID): Adjust.
11548         (DECL_BASED_ON_RESTRICT_P): Remove.
11549         (DECL_GET_RESTRICT_BASE): Likewise.
11550         (SET_DECL_RESTRICT_BASE): Likewise.
11551         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
11552
11553         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
11554         instead of DECL_POINTER_ALIAS_SET.
11555         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
11556         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
11557         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
11558
11559 2009-06-29  Richard Guenther  <rguenther@suse.de>
11560
11561         PR tree-optimization/40579
11562         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
11563         the IL to simplify has constants that overflowed.
11564
11565 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
11566
11567         PR tree-optimization/40550
11568         * tree-vect-generic.c (expand_vector_operations_1): Compute in
11569         vector_compute_type only when the size of vector_compute_type is
11570         less than the size of type.
11571
11572 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
11573
11574         * fold-const.c (contains_label_1): Fix comments.
11575         (contains_label_p): Do not walk trees multiple time.
11576
11577 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
11578
11579         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
11580         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
11581         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
11582         ix86_fp_comparison_operator.
11583         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
11584         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
11585         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
11586         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
11587         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
11588         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
11589         (related splits): Change predicate to ix86_fp_comparison_operator.
11590         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
11591         instead of ix86_fp_comparison_codes.
11592         (ix86_trivial_fp_comparison_operator,
11593         ix86_fp_comparison_operator): New.
11594         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
11595         (ix86_expand_compare): Eliminate last two parameters.
11596         (ix86_fp_jump_nontrivial_p): Kill.
11597         * config/i386/i386.c (put_condition_code): Eliminate call to
11598         ix86_fp_comparison_codes and subsequent assertion.
11599         (ix86_fp_comparison_codes): Eliminate.
11600         (ix86_fp_swap_condition): New.
11601         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
11602         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
11603         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
11604         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
11605         and ix86_fp_swap_condition.
11606         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
11607         Use ix86_fp_comparison_strategy.
11608         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
11609         (ix86_fp_jump_nontrivial_p): Eliminate.
11610         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
11611         call to ix86_expand_compare.
11612         (ix86_split_fp_branch, ix86_expand_setcc,
11613         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
11614         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
11615
11616 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
11617
11618         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
11619         related to jump_clobbers.
11620         * config/arm/arm.md (conds): Remove jump_clob case.
11621         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
11622         splits): Change comparison_operator to arm_comparison_operator.
11623         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
11624         Eliminate.
11625
11626 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
11627
11628         * dojump.c (do_compare_rtx_and_jump): Try swapping the
11629         condition for floating point modes.
11630         * expmed.c (emit_store_flag_1): Move here a bigger part
11631         of emit_store_flag.
11632         (emit_store_flag): Try swapping the condition for floating point
11633         modes.
11634         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
11635
11636 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
11637
11638         * expr.c (expand_expr_real_1): Just use do_store_flag.
11639         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
11640         emit_store_flag_force.
11641         * expmed.c (emit_store_flag_force): Copy here trick
11642         previously in expand_expr_real_1.  Try reversing the comparison.
11643         (emit_store_flag_1): Work if target is NULL.
11644         (emit_store_flag): Work if target is NULL, using the result mode
11645         from the comparison.  Use split_comparison, restructure final part
11646         to simplify conditionals.
11647
11648 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
11649
11650         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
11651         * dojump.c (do_jump): Change handling of floating-point
11652         ops to use just do_compare_and_jump.
11653         (split_comparison): New.
11654         (do_compare_rtx_and_jump): Add here logic coming previously
11655         in do_jump, using split_comparison.
11656
11657 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
11658
11659         PR target/40489
11660         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
11661
11662 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11663
11664         * tree-ssa-alias.c: Fix unintentional commit.
11665
11666 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11667
11668         * passes.c (execute_one_pass): Fix unintentional commit.
11669
11670 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11671
11672         * df-problems.c (df_set_seen, df_unset_seen): Delete.
11673         (df_rd_local_compute, df_md_local_compute): Inline them.
11674
11675         (df_md_scratch): New.
11676         (df_md_alloc, df_md_free): Allocate/free it.
11677         (df_md_local_compute): Only include live registers in init.
11678         (df_md_transfer_function): Prune the in-set computed by
11679         the confluence function, and the gen-set too.
11680
11681 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11682
11683         PR rtl-optimization/26854
11684         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
11685         * df-problems.c (df_rd_add_problem): Fix comment.
11686         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
11687         df_md_simulate_artificial_defs_at_top,
11688         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
11689         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
11690         df_md_transfer_function, df_md_init, df_md_confluence_0,
11691         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
11692         problem_MD, df_md_add_problem): New.
11693         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
11694         df_md_get_bb_info): New.
11695         (DF_LAST_PROBLEM_PLUS1): Adjust.
11696
11697         * Makefile.in (fwprop.o): Include domwalk.h.
11698         * fwprop.c: Include domwalk.h.
11699         (reg_defs, reg_defs_stack): New.
11700         (bitmap_only_bit_between): Remove.
11701         (process_defs): New.
11702         (process_uses): Use reg_defs and local_md instead of
11703         bitmap_only_bit_between and local_rd.
11704         (single_def_use_enter_block): New, from build_single_def_use_links.
11705         (single_def_use_leave_block): New.
11706         (build_single_def_use_links): Remove code moved to
11707         single_def_use_enter_block, invoke domwalk.
11708         (use_killed_between): Adjust comment.
11709
11710 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11711
11712         * bitmap.h (bitmap_ior_and_into): New.
11713         * bitmap.c (bitmap_ior_and_into): New.
11714
11715 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11716
11717         * domwalk.h (struct dom_walk_data): Remove all callbacks except
11718         before_dom_children_before_stmts and after_dom_children_after_stmts.
11719         Rename the two remaining callbacks to just before_dom_children and
11720         after_dom_children. Remove other GIMPLE statement walking bits.
11721         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
11722         * graphite.c: Do not include domwalk.h.
11723         * tree-into-ssa.c (interesting_blocks): New global.
11724         (struct mark_def_sites_global_data): Remove it and names_to_rename.
11725         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
11726         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
11727         now that they're not domwalk callbacks.
11728         (rewrite_initialize_block): Rename to...
11729         (rewrite_enter_block): ... this, place after called functions.  Test
11730         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
11731         (rewrite_finalize_block): Rename to...
11732         (rewrite_leave_block): ... this, place after called functions.
11733         (rewrite_update_init_block): Rename to...
11734         (rewrite_update_enter_block): ... this, place after called functions.
11735         Test interesting_blocks, call rewrite_update_stmt and
11736         rewrite_update_phi_arguments.
11737         (rewrite_update_fini_block): Rename to...
11738         (rewrite_leave_block): ... this, place after called functions.
11739         (rewrite_blocks): Remove last argument, simplify initialization of
11740         walk_data.
11741         (mark_def_sites_initialize_block): Rename to...
11742         (mark_def_sites_block): ... this, call mark_def_sites.
11743         (mark_def_sites_blocks): Remove argument, simplify initialization of
11744         walk_data.
11745         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
11746         (update_ssa): Likewise.
11747         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
11748         callback.
11749         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
11750         (dom_opt_initialize_block): Rename to...
11751         (dom_opt_enter_block): ... this, place after called functions.  Walk
11752         statements here, inline propagate_to_outgoing_edges.
11753         (dom_opt_finalize_block): Rename to...
11754         (dom_opt_leave_block): ... this, place after called functions.
11755         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
11756         domwalk callback.
11757         (dse_enter_block, dse_record_phi): New.
11758         (dse_record_phis): Delete.
11759         (dse_finalize_block): Rename to...
11760         (dse_leave_block): ... this.
11761         (tree_ssa_dse): Simplify initialization of walk_data.
11762         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
11763         Adjust initialization of walk_data.
11764         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
11765         * tree-ssa-loop-phiopt.c (get_non_trapping):
11766         Adjust initialization of walk_data.
11767         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
11768         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
11769         it's not a domwalk callback.
11770         (uncprop_initialize_block): Rename to...
11771         (dse_enter_block): ... this, call uncprop_into_successor_phis.
11772         (dse_finalize_block): Rename to...
11773         (dse_leave_block): ... this.
11774         (tree_ssa_uncprop): Simplify initialization of walk_data.
11775         * Makefile.in: Adjust dependencies.
11776
11777 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
11778
11779         * arm.md (casesi): Fix test for Thumb1.
11780         (thumb1_casesi_internal_pic): Likewise.
11781         (thumb1_casesi_dispatch): Likewise.
11782
11783 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
11784
11785         * config/arm/arm-cores.def: Added core cortex-m0.
11786         * config/arm/arm-tune.md: Regenerated.
11787         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
11788
11789 2009-06-26  DJ Delorie  <dj@redhat.com>
11790
11791         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
11792
11793         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
11794         the scheduler doesn't tag jump insns.
11795
11796 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
11797
11798         * c-decl.c (merge_decls): Re-indent.
11799
11800 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
11801
11802         PR c/39902
11803         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
11804         Special-case decimal float constants.
11805
11806 2009-06-26  Richard Henderson  <rth@redhat.com>
11807
11808         * function.h (struct function): Add cannot_be_copied_reason,
11809         and cannot_be_copied_set.
11810         * tree-inline.c (has_label_address_in_static_1): Rename from
11811         inline_forbidden_p_2; don't set inline_forbidden_reason here.
11812         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
11813         don't set inline_forbidden_reason.
11814         (copy_forbidden): New function, split out of inline_forbidden_p.
11815         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
11816         (inline_forbidden_p): Use copy_forbidden.
11817         (tree_versionable_function_p): Likewise.
11818         (inlinable_function_p): Merge into tree_inlinable_function_p.
11819         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
11820         * ipa-cp.c (ipcp_versionable_function_p): New function.
11821         (ipcp_cloning_candidate_p): Use it.
11822         (ipcp_node_modifiable_p): Likewise.
11823
11824 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
11825
11826         * builtins.c (expand_builtin_alloca): Handle builtin alloca
11827         that is marked not to be inlined. Remove flag_mudflap use.
11828         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
11829         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
11830
11831 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
11832
11833         PR bootstrap/40338
11834         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
11835         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
11836
11837 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
11838
11839         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
11840         shared libgcc.
11841         (__mingwthr_remove_key_dtor): Likewise.
11842
11843 2009-06-26  Richard Guenther  <rguenther@suse.de>
11844
11845         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
11846
11847 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
11848
11849         PR middle-end/40525
11850         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
11851         try the non-cond_exec path also.
11852
11853 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11854
11855         PR target/40468
11856         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
11857         (output_cbranch): Use new functions.
11858         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
11859         Likewise.
11860
11861 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
11862             Pat Haugen  <pthaugen@us.ibm.com>
11863             Revital Eres <ERES@il.ibm.com>
11864
11865         * config/rs6000/rs6000.c (print_operand): Correct lossage message
11866         for %c error.  Add %x support to print VSX registers as a unified
11867         register set, instead of separate float and altivec registers.
11868         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
11869         %y case, and add support for VSX pre-modify addresses.
11870         (output_toc): Add assert for CONST containing an integer constant
11871         in the PLUS case.
11872         (rs6000_adjust_cost): Add POWER7 support.
11873         (insn_must_be_first_in_group): Ditto.
11874         (insn_must_be_last_in_group): Ditto.
11875         (rs6000_emit_popcount): Ditto.
11876         (rs6000_vector_mode_supported_p): Ditto.
11877
11878         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
11879         Change some of the functions called by macros to being called
11880         through a pointer, so debug functions can be inserted if
11881         -mdebug=addr or -mdebug=cost.
11882         (rs6000_preferred_reload_class_ptr): Ditto.
11883         (rs6000_secondary_reload_class_ptr): Ditto.
11884         (rs6000_secondary_memory_needed_ptr): Ditto.
11885         (rs6000_cannot_change_mode_class_ptr): Ditto.
11886         (rs6000_secondary_reload_inner): Ditto.
11887         (rs6000_legitimize_reload_address): Ditto.
11888         (rs6000_legitimize_reload_address_ptr): Ditto.
11889         (rs6000_mode_dependent_address): Ditto.
11890         (rs6000_mode_dependent_address_ptr): Ditto.
11891
11892         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
11893         function to return true if the mode allows reg + integer
11894         addresses.
11895         (virtual_stack_registers_memory_p): New function to return true if
11896         the address refers to a virtual stack register.
11897         (rs6000_legitimate_offset_address_p): Move code to say whether a
11898         mode supports reg+int addressing to reg_offset_addressing_ok_p and
11899         call it.
11900         (rs6000_legitimate_address_p): Add checks for modes that only can
11901         do reg+reg addressing.  Start adding VSX support.
11902         (rs6000_legitimize_reload_address): Ditto.
11903         (rs6000_legitimize_address): Ditto.
11904         (rs6000_debug_legitimate_address_p): New debug functions for
11905         -mdebug=addr and -mdebug=cost.
11906         (rs6000_debug_rtx_costs): Ditto.
11907         (rs6000_debug_address_costs): Ditto.
11908         (rs6000_debug_adjust_cost): Ditto.
11909         (rs6000_debug_legitimize_address): Ditto.
11910         (rs6000_legitimize_reload_address_ptr): Point to call normal
11911         function or debug function.  Make functions called via pointer
11912         static.
11913         (rs6000_mode_dependent_address_ptr): Ditto.
11914         (rs6000_secondary_reload_class_ptr): Ditto.
11915         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
11916         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
11917         into a friendlier error.
11918         (rs6000_init_builtins): Add initial VSX support.
11919         (rs6000_adjust_cost): Fix some spacing issues.
11920
11921         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
11922         (REG_CLASS_NAMES): Ditto.
11923         (REG_CLASS_CONTENTS): Ditto.
11924         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
11925         pointer, to add -mdebug=addr support.
11926         (CANNOT_CHANGE_MODE_CLASS): Ditto.
11927         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
11928         -mdebug=addr support.
11929         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
11930         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
11931         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
11932
11933         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
11934         16-bit values.
11935         (bswapsi*): Set attribute types for load/store.  Add combiner
11936         patterns to eliminate zero extend on 64-bit.
11937         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
11938         stdbrx if the hardware supports those instructions.
11939
11940 2009-06-25  Ian Lance Taylor  <iant@google.com>
11941
11942         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
11943         (Link Options): Document -static-libstdc++.
11944
11945 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11946
11947         PR target/38731
11948         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
11949         DATA_ALIGNMENT instead.
11950
11951 2009-06-25  Richard Guenther  <rguenther@suse.de>
11952
11953         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
11954         indirect references against the callused/escaped solutions.
11955         (call_may_clobber_ref_p_1): Likewise.
11956
11957 2009-06-25  Martin Jambor  <mjambor@suse.cz>
11958
11959         PR tree-optimization/40493
11960         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
11961         (enum unscalarized_data_handling): New type.
11962         (handle_unscalarized_data_in_subtree): Return what has been done.
11963         (load_assign_lhs_subreplacements): Handle left flushes differently.
11964         (sra_modify_assign): Use unscalarized_data_handling, simplified
11965         condition determining whether to remove the statement.
11966
11967 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
11968
11969         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
11970         excerpt - @ should be doubled for texinfo.
11971
11972 2009-06-24  Ian Lance Taylor  <iant@google.com>
11973
11974         * config/arc/arc.c: Include "df.h".
11975         (arc_attribute_table): Make static.  Move higher in file.
11976         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
11977         (output_shift): Initialize n later to avoid warning.
11978         * config/arm/arm.c (arm_attribute_table): Make static.  Move
11979         higher in file.
11980         * config/avr/avr.c (avr_attribute_table): Make static.  Move
11981         higher in file.
11982         (reg_class_tab): Change array type from int to enum reg_class.
11983         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
11984         LABEL_REF.
11985         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
11986         (lshrhi3_out): Likewise.
11987         (class_likely_spilled_p): Change return type to bool.
11988         (avr_rtx_costs): Use local code variable with enum type.
11989         * config/avr/avr.md (movmemhi): Use add_reg_note.
11990         (andhi3, andsi3): Don't use AS2 with "and".
11991         (iorhi3, iorsi3): Don't use AS2 with "or".
11992         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
11993         * config/crx/crx.c: Include "df.h".
11994         (crx_attribute_table): Make static.
11995         * config/m32r/m32r.c: Include "df.h".
11996         (m32r_attribute_table): Make static.  Move higher in file.
11997         (pop): Use add_reg_note.
11998         (block_move_call): Change 0 to LCT_NORMAL in function call.
11999         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
12000         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
12001         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
12002         declare, not just when TREE_CODE is defined.
12003         * config/m68hc11/m68hc11.c: Include "expr.h".
12004         (m68hc11_attribute_table): Make static.  Move higher in file.
12005         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
12006         function call.
12007         (m68hc11_register_indirect_p): Likewise.
12008         (m68hc11_function_arg_padding): Change return type to enum
12009         direction.
12010         (emit_move_after_reload): Use add_reg_note.
12011         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
12012         (m68hc11_split_logical): Likewise.
12013         (m68hc11_rtx_costs): Add local code_and outer_code variables with
12014         enum type.
12015         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
12016         to VOIDmode in function call.
12017         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
12018         tree is defined.
12019         (m68hc11_split_logical): Update declaration.
12020         (m68hc11_function_arg_padding): Update declaration.
12021         * config/mcore/mcore.c (regno_reg_class): Change form array of int
12022         to array of enum reg_class.
12023         (mcore_attribute_table): Make static.  Move higher in file.
12024         (mcore_rtx_costs): Add cast to enum type.
12025         * config/mcore/mcore.h (regno_reg_class): Update declaration.
12026         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
12027         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
12028         in file.
12029         * config/sh/predicates.md (trapping_target_operand): Rename and to
12030         and_expr.
12031         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
12032         higher in file.
12033         * config/spu/spu.c (spu_attribute_table): Make static.  Move
12034         higher in file.
12035         * config/v850/v850.c (v850_attribute_table): Make static.  Move
12036         higher in file.
12037         (v850_rtx_costs): Use local code with enum type.
12038         (expand_epilogue): Add cast.
12039         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
12040
12041 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
12042
12043         PR target/40515
12044         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
12045         -m2a-single-only and -m2a-nofpu.
12046         * config/sh/sh.opt: Document m2a generates FPU code.
12047
12048 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
12049
12050         * defaults.h (CAN_ELIMINATE): Provide default.
12051         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
12052         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
12053         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
12054         * config/spu/spu.h (CAN_ELIMINATE): Delete.
12055         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
12056         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
12057         * config/cris/cris.h (CAN_ELIMINATE): Delete.
12058         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
12059         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
12060         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
12061
12062 2009-06-24  DJ Delorie  <dj@redhat.com>
12063
12064         * mep-ext-cop.cpu: Fix copyright notice.
12065         * mep-default: Fix copyright notice.
12066         * mep-core: Fix copyright notice.
12067         * mep: Fix copyright notice.
12068         * mep-ivc2: Fix copyright notice.
12069         * mep-c5: Fix copyright notice.
12070
12071 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
12072
12073         * doc/contrib.texi (Contributors):
12074
12075 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
12076
12077         PR middle-end/40501
12078         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
12079         src and dst operands if necessary.
12080
12081 2009-06-23  DJ Delorie  <dj@redhat.com>
12082
12083         Add MeP port.
12084         * config.gcc: Add mep support.
12085         * recog.c: Resurrect validate_replace_rtx_subexp().
12086         * recog.h: Likewise.
12087         * config/mep/: Add new port:
12088         * config/mep/constraints.md: New file.
12089         * config/mep/default.h: New file.
12090         * config/mep/intrinsics.h: New file.
12091         * config/mep/intrinsics.md: New file.
12092         * config/mep/ivc2-template.h: New file.
12093         * config/mep/mep-c5.cpu: New file.
12094         * config/mep/mep-core.cpu: New file.
12095         * config/mep/mep-default.cpu: New file.
12096         * config/mep/mep-ext-cop.cpu: New file.
12097         * config/mep/mep-intrin.h: New file.
12098         * config/mep/mep-ivc2.cpu: New file.
12099         * config/mep/mep-lib1.asm: New file.
12100         * config/mep/mep-lib2.c: New file.
12101         * config/mep/mep-pragma.c: New file.
12102         * config/mep/mep-protos.h: New file.
12103         * config/mep/mep-tramp.c: New file.
12104         * config/mep/mep.c: New file.
12105         * config/mep/mep.cpu: New file.
12106         * config/mep/mep.h: New file.
12107         * config/mep/mep.md: New file.
12108         * config/mep/mep.opt: New file.
12109         * config/mep/predicates.md: New file.
12110         * config/mep/t-mep: New file.
12111
12112 2009-06-23  Ian Lance Taylor  <iant@google.com>
12113
12114         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
12115         from loose_warn into c_loose_warn and from strict_warn into
12116         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
12117         --enable-build-with-cxx.  Set and substitute
12118         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
12119         * Makefile.in (CXXFLAGS): New variable.
12120         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
12121         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
12122         the default is the same as $(STRICT_WARN).
12123         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
12124         (CXX): New variable.
12125         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
12126         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
12127         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
12128         (HOST_LIBS): New variable.
12129         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
12130         (ALL_CXXFLAGS): New variable.
12131         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
12132         * doc/install.texi (Configuration): Document
12133         --enable-build-with-cxx, --with-stage1-ldflags,
12134         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
12135         * configure: Rebuild.
12136
12137 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12138
12139         * config/arm/arm.c (arm_override_options): Fix braces and formatting
12140         from previous commit.
12141
12142 2009-06-23  Ian Lance Taylor  <iant@google.com>
12143
12144         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
12145
12146 2009-06-23  Ian Lance Taylor  <iant@google.com>
12147
12148         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
12149         with ATTRIBUTE_UNUSED.
12150
12151 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
12152             Pat Haugen  <pthaugen@us.ibm.com>
12153             Revital Eres  <eres@il.ibm.com>
12154
12155         * config.in (HAVE_AS_POPCNTD): Add default definition.
12156         (HAVE_AS_LWSYNC): Ditto.
12157
12158         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
12159         release number.
12160         (gcc_cv_as_powerpc_cmpb): Ditto.
12161         (gcc_cv_as_powerpc_dfp): Ditto.
12162         (gcc_cv_as_powerpc_vsx): Ditto.
12163         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
12164         supporting the popcntd/lwsync instructions.
12165         (gcc_cv_as_powerpc_lwsync): Ditto.
12166         * configure: Regenerate.
12167
12168         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
12169         -mcpu=native and -mcpu=power7.
12170         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
12171
12172         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
12173         a variable instead of a mask to reduce the number of mask bits.
12174         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
12175         (-mbit-word): Ditto.
12176         (-mregnames): Ditto.
12177         * config/rs6000/rs6000.opt (-mupdate): Ditto.
12178         (-mfused-madd): Ditto.
12179
12180         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
12181         2.06 instructions.
12182         (-mvsx): New switch for VSX instructions.
12183         (-misel): Move from a variable to a mask to allow it to be set by
12184         -mcpu=.
12185
12186         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
12187         function declaration to an array declaration.
12188         (rs6000_hard_regno_nregs): New external array declaration.
12189
12190         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
12191         files included by rs6000.md.
12192
12193         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12194         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
12195
12196         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
12197         a target mask.
12198         (rs6000_debug_reg): New -mdebug= variables.
12199         (rs6000_debug_addr): Ditto.
12200         (rs6000_debug_cost): Ditto.
12201         (rs6000_pmode): New variable to hold Pmode.
12202         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
12203         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
12204         calculated at compiler start.
12205         (rs6000_hard_regno_nregs): Change function to an array which holds
12206         HARD_REGNO_NREGS calculated at compiler start.
12207         (rs6000_explicit_options): Delete isel field.
12208         (rs6000_vector_unit): New array to hold which vector unit
12209         supports arithmetic options for a given type.
12210         (rs6000_vector_mem): New array to hold which vector unit supports
12211         memory reference operations for a given type.
12212         (rs6000_vector_align): New array to given the alignment of each
12213         vector type.
12214         (power7_cost): New basic costs for power7.
12215         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
12216         (rs6000_hard_regno_nregs_internal): New function, moved from
12217         HARD_REGNO_NREGS, to calculate the number of registers each hard
12218         register takes for each type.
12219         (rs6000_debug_reg_print): New function for -mdebug=reg support.
12220         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
12221         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
12222         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
12223         unit information here so it is calculated once at compiler startup
12224         time.
12225         (rs6000_override_options): Make -misel a target mask.  Add more
12226         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
12227         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
12228         -mdebug=cost.
12229         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
12230         (rs6000_handle_option): Move -misel from variable to target mask.
12231         (rs6000_builtin_mask_for_load): Add VSX support.
12232         (rs6000_conditional_register_usage): Ditto.
12233         (USE_ALTIVEC_FOR_ARG_P): Ditto.
12234         (function_arg_boundary): Ditto.
12235         (rs6000_expand_builtin): Ditto.
12236         (def_builtin): Make abort message a little friendlier.
12237         (rs6000_emit_int_cmove): Add support for 64-bit isel.
12238
12239         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
12240         assembler support the popcntd instruction instead of a vsx
12241         instruction to enable power7 support.
12242         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
12243         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
12244         option to the assembler if -mcpu=native.
12245         (ASM_CPU_NATIVE_SPEC): Ditto.
12246         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
12247         ISA 2.06 features.
12248         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
12249         the lwsync instruction.
12250         (enum processor_type): Add PROCESSOR_POWER7.
12251         (rs6000_debug_reg): New -mdebug= options.
12252         (rs6000_debug_addr): Ditto.
12253         (rs6000_debug_cost): Ditto.
12254         (rs6000_isel): Delete.
12255         (enum rs6000_vector): New enum to say what vector unit we have.
12256         (VECTOR_UNIT_*): New macros to say which vector unit has
12257         arithmetic operations for a given type.
12258         (VECTOR_MEM_*): New macros to say which vector unit has memory
12259         operations for a given type.
12260         (TARGET_LDBRX): Whether the machine supports the ldbrx
12261         instruction.
12262         (TARGET_ISEL): Delete, -misel moved to be a mask.
12263         (TARGET_ISEL64): New macro for 64-bit isel support.
12264         (UNITS_PER_VSX_WORD): New macro.
12265         (POINTER_SIZE): Move to be an external variable, rather than
12266         calculating whether we are generating 32 ot 64-bit code.
12267         (Pmode): Ditto.
12268         (STACK_BOUNDARY): Add VSX support.
12269         (LOCAL_ALIGNMENT): Ditto.
12270         (SLOW_UNALIGNED_ACCESS): Ditto.
12271         (VSX_REGNO_P): New macro for VSX support.
12272         (VFLOAT_REGNO_P): Ditto.
12273         (VINT_REGNO_P): Ditto.
12274         (VLOGICAL_REGNO_P): Ditto.
12275         (VSX_VECTOR_MODE): Ditto.
12276         (VSX_SCALAR_MODE): Ditto.
12277         (VSX_MODE): Ditto.
12278         (VSX_MOVE_MODE): Ditto.
12279         (VSX_REG_CLASS_P): Ditto.
12280         (HARD_REGNO_NREGS): Instead of calling a function, use an array
12281         lookup.
12282         (UNITS_PER_SIMD_WORD): Add VSX support.
12283         (MODES_TIEABLE_P): Ditto.
12284         (STARTING_FRAME_OFFSET): Ditto.
12285         (STACK_DYNAMIC_OFFSET): Ditto.
12286         (EPILOGUE_USES): Ditto.
12287         (REGNO_REG_CLASS): Move to array lookup.
12288         (CLASS_MAX_NREGS): Ditto.
12289         (rs6000_vector_reg_class): Add declaration.
12290         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
12291         overlap with the floating point and Altivec registers.
12292
12293         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
12294
12295         * config/rs6000/driver-rs6000.c (asm_names): New static array to
12296         give the appropriate asm switches if -mcpu=native.
12297         (host_detect_local_cpu): Add support for "asm".
12298         (host_detect_local_cpu): Follow GNU code guidelines for name.
12299
12300         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
12301         -mbit-word to a variable instead of being a target mask.
12302
12303         * config/rs6000/sync.md (lwsync): If the assembler supports it,
12304         emit the lwsync instruction instead of emitting the instruction as
12305         an integer constant.
12306
12307         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
12308         fixuns_trundfsi2, move expander into rs6000.md.
12309
12310         * config/rs6000/rs6000.md (cpu): Add power7.
12311         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
12312         (logical predicate patterns): Change the single instruction
12313         primitives that set CR0 to be fast_compare instead of compare.
12314         (norsi*): Ditto.
12315         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
12316         (popcntddi2): Ditto.
12317         (popcount<mode>): Ditto.
12318         (floating multiply/add insns): Name the floating point
12319         multiply/add insns.
12320         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
12321         (isel_unsigned_<mode>): Ditto.
12322         (fixuns_trundfsi2): Move expander here from spe.md.
12323         (smindi3): Define if we have -misel on 64-bit systems.
12324         (smaxdi3): Ditto.
12325         (umindi3): Ditto.
12326         (umaxdi3): Ditto.
12327
12328 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
12329
12330         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
12331         extra_objs.
12332         * config/avr/avr.c (avr_current_device): New variable.
12333         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
12334         (avr_arch, mcu_type_s): Move to avr.h.
12335         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
12336         default_data_section_start fields.
12337         (avr_arch): Moved from avr.c.
12338         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
12339         library_name fields.
12340         (avr_current_device, avr_mcu_types, avr_arch_types,
12341         avr_device_to_arch, avr_device_to_data_start,
12342         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
12343         (EXTRA_SPEC_FUNCTIONS): Define.
12344         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
12345         options mapping. Use device_to_arch and device_to_data_start insted.
12346         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
12347         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
12348         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
12349         * config/avr/driver-avr.c: New file.
12350         * config/avr/avr-devices.c: New file.
12351
12352 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
12353
12354         * var-tracking.c (unshare_variable): Force initialized to
12355         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
12356         (set_variable_part): Likewise.
12357         (struct variable_union_info): Remove pos_src field.
12358         (vui_vec, vui_allocated): New variables.
12359         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
12360         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
12361         == 1 use a simpler sorting algorithm.  Compute pos field right
12362         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
12363         Avoid quadratic comparison if !flag_var_tracking_uninit.
12364         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
12365         unshare_variable unconditionally.
12366         (dataflow_set_different_2): Removed.
12367         (dataflow_set_different): Don't traverse second hash table.
12368         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
12369         unconditionally to var_reg_set or var_mem_set.
12370         (emit_notes_in_bb): Likewise.
12371         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
12372         unshare_variable.
12373         (emit_note_insn_var_location): Don't set initialized to
12374         VAR_INIT_STATUS_INITIALIZED early.
12375         (vt_finalize): Free vui_vec if needed, clear vui_vec and
12376         vui_allocated.
12377         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
12378
12379         * tree-object-size.c (addr_object_size): Instead of checking
12380         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
12381         are no FIELD_DECLs following it.
12382
12383 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
12384
12385         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
12386         order to match bswaps with signed source operands.
12387
12388 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12389
12390         * sdbout.c (sdbout_one_type): Fix braces in switch.
12391
12392 2009-06-23  Richard Guenther  <rguenther@suse.de>
12393
12394         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
12395         member.
12396         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
12397         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
12398         var_callused, callused_tree, var_storedanything, storedanything_tree,
12399         var_integer, integer_tree): Remove global variables.
12400         (new_var_info): Do not pass new id, append the new var to the
12401         global variable vector.
12402         (do_ds_constraint): Use is_global_var member of the variable-info.
12403         (new_scalar_tmp_constraint_exp): Adjust.
12404         (create_function_info_for): Likewise.
12405         (create_variable_info_for): Likewise.
12406         (find_what_var_points_to): Remove dead code.
12407         (init_base_vars): Simplify.
12408         (compute_points_to_sets): Adjust.
12409
12410 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
12411
12412         * combine.c (try_combine): Dump information about the insns we're
12413         combining.
12414
12415 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
12416
12417         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
12418         check when calling force_to_mode on TRUNCATE's operand.
12419
12420 2009-06-22  Ian Lance Taylor  <iant@google.com>
12421
12422         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
12423
12424 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
12425
12426         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
12427
12428 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12429
12430         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
12431         override library linkage flags such as -static-libgcc or
12432         -shared-libgcc.
12433
12434 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
12435
12436         * config/m68k/m68k-devices.def: Add line for MCF5221x.
12437
12438 2009-06-22  Ian Lance Taylor  <iant@google.com>
12439
12440         * config/linux.opt: Put mglibc ahead of muclibc.
12441
12442         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
12443         for duplicate decls.
12444
12445 2009-06-22  Matthias Klose  <doko@ubuntu.com>
12446
12447         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
12448
12449 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
12450
12451         PR objc/28050
12452         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
12453         instead of NULL if a parser error occurs.
12454
12455 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12456
12457         * dwarf2out.c (dwarf2_debug_hooks): Initialize
12458         non-DWARF2_DEBUGGING_INFO version.
12459
12460 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
12461
12462         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
12463         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
12464
12465         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
12466         (LIBGCC2_TF_CEXT): Define.
12467         (TF_SIZE): Define.
12468
12469 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12470
12471         PR target/40463
12472         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
12473
12474 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12475
12476         * config/arm/arm.c (arm_override_options): Disable
12477         -mcaller-super-interworking and -mcallee-super-interworking.
12478         * doc/invoke.texi (ARM Options): Document this.
12479
12480 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
12481
12482         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
12483         * config/arm/constraints.md (j): New constraint for movw operands.
12484         (N): Remove thumb2 meaning.
12485         * config/arm/arm.md (*arm_movw): Delete.
12486         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
12487         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
12488         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
12489
12490 2009-06-22  Martin Jambor  <mjambor@suse.cz>
12491
12492         PR tree-optimization/40492
12493         * tree-sra.c (sra_modify_assign): Pass zero offsets to
12494         build_ref_for_offset.
12495
12496 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
12497
12498         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
12499         JUMP_TABLE_DATA_P predicates where applicable.
12500         * auto-inc-dec.c: Ditto.
12501         * builtins.c: Ditto.
12502         * caller-save.c: Ditto.
12503         * calls.c: Ditto.
12504         * cfgcleanup.c: Ditto.
12505         * cfglayout.c: Ditto.
12506         * cfgrtl.c: Ditto.
12507         * combine.c: Ditto.
12508         * combine-stack-adj.c: Ditto.
12509         * cse.c: Ditto.
12510         * cselib.c: Ditto.
12511         * dbxout.c: Ditto.
12512         * df-scan.c: Ditto.
12513         * dse.c: Ditto.
12514         * dwarf2asm.c: Ditto.
12515         * dwarf2out.c: Ditto.
12516         * emit-rtl.c: Ditto.
12517         * except.c: Ditto.
12518         * explow.c: Ditto.
12519         * expmed.c: Ditto.
12520         * expr.c: Ditto.
12521         * final.c: Ditto.
12522         * function.c: Ditto.
12523         * fwprop.c: Ditto.
12524         * gcse.c: Ditto.
12525         * genpreds.c: Ditto.
12526         * genrecog.c: Ditto.
12527         * ifcvt.c: Ditto.
12528         * ira-costs.c: Ditto.
12529         * ira-lives.c: Ditto.
12530         * jump.c: Ditto.
12531         * loop-iv.c: Ditto.
12532         * lower-subreg.c: Ditto.
12533         * modulo-sched.c: Ditto.
12534         * optabs.c: Ditto.
12535         * postreload.c: Ditto.
12536         * print-rtl.c: Ditto.
12537         * recog.c: Ditto.
12538         * reginfo.c: Ditto.
12539         * regmove.c: Ditto.
12540         * reload1.c: Ditto.
12541         * reload.c: Ditto.
12542         * reorg.c: Ditto.
12543         * rtlanal.c: Ditto.
12544         * rtl.c: Ditto.
12545         * sched-vis.c: Ditto.
12546         * sdbout.c: Ditto.
12547         * sel-sched-ir.c: Ditto.
12548         * simplify-rtx.c: Ditto.
12549         * targhooks.c: Ditto.
12550         * var-tracking.c: Ditto.
12551         * vmsdbgout.c: Ditto.
12552
12553 2009-06-22  Matthias Klose  <doko@ubuntu.com>
12554
12555         * Makefile.in (install-plugin): Always use DESTDIR.
12556
12557 2009-06-22  Olivier Hainque  <hainque@adacore.com>
12558
12559         * config/pa/pa.c (output_call): Don't optimize post call jumps
12560         into return address adjustments if the call may throw.
12561
12562 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
12563
12564         * arm.c (thumb1_output_casesi): New function.
12565         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
12566         optimizing for size or PIC.
12567         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
12568         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
12569         (casesi): Handle Thumb-1 when optimizing for size or PIC.
12570         (thumb1_casesi_internal_pic): New expand rule.
12571         (thumb1_casesi_dispatch): New pattern.
12572         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
12573         thumb-1 mode.
12574         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
12575         in the text seciton when PIC or optimizing for size.
12576         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
12577         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
12578         preservation properties of code.
12579         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
12580         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
12581         (__gnu_thumb1_case_si): New function.
12582         * t-arm (LIB1ASMSRC): Define here.
12583         (LIB1ASMFUNCS): Add some common functions.
12584         * t-arm-elf (LIB1ASMSRC): Delete.
12585         (LIB1ASMFUNCS): Append to existing set.
12586         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12587         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12588         * t-symbian (LIB1ASMFUNCS): Likewise.
12589         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12590         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12591
12592 2009-06-21  Richard Guenther  <rguenther@suse.de>
12593
12594         PR tree-optimization/38729
12595         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
12596         to loops with a single exit if -fno-expensive-optimizations.
12597
12598 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
12599
12600         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
12601         (dataflow_set): Change vars type from htab_t to shared_hash.
12602         (shared_hash_pool, empty_shared_hash): New variables.
12603         (vars_clear): Removed.
12604         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
12605         shared_hash_find_slot_unshare, shared_hash_find_slot,
12606         shared_hash_find_slot_noinsert, shared_hash_find): New
12607         static inlines.
12608         (shared_hash_unshare, shared_hash_destroy): New functions.
12609         (unshare_variable): Unshare set->vars if shared, use
12610         shared_hash_htab.
12611         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
12612         (get_init_value, find_src_set_src, dump_dataflow_set,
12613         clobber_variable_part, emit_notes_for_differences): Use
12614         shared_hash_htab.
12615         (dataflow_set_init): Remove second argument, set vars to
12616         empty_shared_hash instead of creating a new htab.
12617         (dataflow_set_clear): Call shared_hash_destroy and set vars
12618         to empty_shared_hash instead of calling vars_clear.
12619         (dataflow_set_copy): Don't call vars_copy, instead just share
12620         the src htab with dst.
12621         (variable_union): Use shared_hash_*, use initially NO_INSERT
12622         lookup if set->vars is shared.  Don't keep slot cleared before
12623         calling unshare_variable.  Unshare set->vars if needed.
12624         Even ->refcount == 1 vars must be unshared if set->vars is shared
12625         and var needs to be modified.
12626         (variable_canonicalize): New function.
12627         (dataflow_set_union): If dst->vars is empty, just share src->vars
12628         with dst->vars and traverse with variable_canonicalize to canonicalize
12629         and unshare what is needed.
12630         (dataflow_set_different): If old_set and new_set use the same shared
12631         htab, they aren't different.  If number of htab elements is different,
12632         htabs are different.  Use shared_hash_*.
12633         (dataflow_set_destroy): Call shared_hash_destroy instead of
12634         htab_delete.
12635         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
12636         second argument to dataflow_set_init.
12637         (vt_initialize): Likewise.  Initialize shared_hash_pool and
12638         empty_shared_hash, move bb in/out initialization afterwards.
12639         Use variable_htab_free instead of NULL as changed_variables del hook.
12640         (variable_was_changed): Change type of second argument to pointer to
12641         dataflow_set.  When inserting var into changed_variables, bump
12642         refcount.  Unshare set->vars if set is shared htab and slot needs to
12643         be cleared.
12644         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
12645         lookup if set->vars is shared.  Unshare set->vars if needed.
12646         Even ->refcount == 1 vars must be unshared if set->vars is shared
12647         and var needs to be modified.  Adjust variable_was_changed caller.
12648         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
12649         vars must be unshared if set->vars is shared and var needs to be
12650         modified.  Adjust variable_was_changed caller.
12651         (emit_note_insn_var_location): Don't pool_free var.
12652         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
12653         instead of 1.
12654         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
12655         free_alloc_pool on shared_hash_pool.
12656
12657 2009-06-20  Anthony Green  <green@moxielogic.com>
12658
12659         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
12660         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
12661
12662 2009-06-20  Richard Guenther  <rguenther@suse.de>
12663
12664         * tree-ssa-structalias.c (find_func_aliases): For memset use
12665         a constraint from NULL if we memset to zero.
12666         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
12667         we explicitly handle that do not read from memory.
12668         (call_may_clobber_ref_p_1): Properly handle builtins that may
12669         set errno.
12670
12671 2009-06-20  Richard Guenther  <rguenther@suse.de>
12672
12673         PR tree-optimization/40495
12674         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
12675         (new_scalar_tmp_constraint_exp): New function.
12676         (process_constraint): Do not create temporary decls.
12677         (process_all_all_constraints): Likewise.
12678         (handle_const_call): Likewise.
12679         (create_function_info_for): Do not set decl.
12680
12681 2009-06-19  Ian Lance Taylor  <iant@google.com>
12682
12683         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
12684         (rs6000_attribute_table): Make static; move before use.
12685
12686 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
12687
12688         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
12689         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
12690         Propagate the TREE_READONLY flag without overwriting it.
12691         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
12692         Propagate the TREE_READONLY flag onto the result.
12693         (process_call_operands): Move around.  Use correct constant value.
12694
12695 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12696
12697         PR target/40482
12698         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
12699         * config/arm/arm.md: Likewise.
12700
12701 2009-06-19  Ian Lance Taylor  <iant@google.com>
12702
12703         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
12704         to GIMPLE_ERROR_MARK.
12705
12706         * c-typeck.c (build_conditional_expr): Add op1_original_type and
12707         op2_original_type parameters.  Warn about using different enum types.
12708         * c-parser.c (c_parser_conditional_expression): Pass original
12709         types to build_conditional_expr.
12710         * c-tree.h (build_conditional_expr): Update declaration.
12711
12712 2009-06-19  Ian Lance Taylor  <iant@google.com>
12713
12714         * config/i386/i386.c (ix86_function_specific_save): Test that
12715         fields match values, rather than testing the values are in a
12716         certain range.
12717
12718 2009-06-19  Richard Guenther  <rguenther@suse.de>
12719
12720         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
12721         ADDR_EXPR pointers.
12722         (ptr_derefs_may_alias_p): Likewise.
12723         (ptr_deref_may_alias_ref_p_1): New function.
12724         (ptr_deref_may_alias_ref_p): Likewise.
12725         (ref_maybe_used_by_call_p_1): Handle builtins that are not
12726         covered by looking at the ESCAPED solution.
12727         (call_may_clobber_ref_p_1): Likewise.
12728         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
12729         Handle NULL_TREE offset.  Do not produce redundant constraints.
12730         (process_all_all_constraints): New helper function.
12731         (do_structure_copy): Use it.
12732         (handle_lhs_call): Likewise.
12733         (find_func_aliases): Handle some builtins with pointer arguments
12734         and/or return values explicitly.
12735
12736 2009-06-19  Ian Lance Taylor  <iant@google.com>
12737
12738         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
12739
12740 2009-06-19  Ian Lance Taylor  <iant@google.com>
12741
12742         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
12743
12744 2009-06-19  Ian Lance Taylor  <iant@google.com>
12745
12746         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
12747         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
12748         version.
12749
12750         * c-decl.c (finish_decl): If -Wc++-compat, warn about
12751         uninitialized const.
12752
12753 2009-06-19  Ian Lance Taylor  <iant@google.com>
12754
12755         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
12756         all uses.
12757
12758         * c-decl.c (in_struct, struct_types): Remove.
12759         (struct c_binding): Add in_struct field.
12760         (c_binding_ptr): Define type, along with VEC.
12761         (struct c_struct_parse_info): Define.
12762         (struct_parse_info): New static variable.
12763         (bind): Initialize in_struct field.
12764         (start_struct): Remove enclosing_in_struct and
12765         enclosing_struct_types parameters.  Add
12766         enclosing_struct_parse_info parameter.  Change all callers.  Set
12767         struct_parse_info rather than in_struct and struct_types.
12768         (grokfield): If -Wc++-compat and there is a symbol binding for the
12769         field name, set the in_struct flag and push it on the
12770         struct_parse_info->fields vector.
12771         (warn_cxx_compat_finish_struct): New static function.
12772         (finish_struct): Remove enclosing_in_struct and
12773         enclosing_struct_types parameters.  Add
12774         enclosing_struct_parse_info parameter.  Change all callers.  Don't
12775         set C_TYPE_DEFINED_IN_STRUCT here.  Call
12776         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
12777         parameter.  Only push on struct_types if warn_cxx_compat.
12778         (finish_enum): Only push on struct_types if warn_cxx_compat.
12779         (declspecs_add_type): Add loc parameter.  Change all callers.
12780         Change all error calls to error_at.  Pass loc, not input_location,
12781         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
12782         defined in a struct.  If -Wc++-compat and parsing a struct, record
12783         that a typedef name was used.
12784         * c-parser.c (c_parser_declspecs): Get location to pass to
12785         declspecs_add_type.
12786         (c_parser_struct_or_union_specifier): Update calls to start_struct
12787         and finish_struct.
12788         * c-tree.h (struct c_struct_parse_info): Declare.
12789         (finish_struct, start_struct): Update declarations.
12790         (declspecs_add_type): Update declaration.
12791
12792 2009-06-19  Ian Lance Taylor  <iant@google.com>
12793
12794         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
12795         variable with an anonymous type.
12796
12797 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
12798
12799         * see.c: Remove for real.
12800
12801 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
12802
12803         * optabs.h (enum optab_index): Add new OTI_significand.
12804         (significand_optab): Define corresponding macro.
12805         * optabs.c (init_optabs): Initialize significand_optab.
12806         * genopinit.c (optabs): Implement significand_optab using
12807         significand?f2 patterns.
12808         * builtins.c (expand_builtin_mathfn): Handle
12809         BUILT_IN_SIGNIFICAND{,F,L}.
12810         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
12811         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
12812
12813         * config/i386/i386.md (significandxf2, significand<mode>2): New
12814         expanders to implement significandf, significand and significandl
12815         built-ins as inline x87 intrinsics.
12816
12817 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
12818
12819         * config/avr/avr.c (avr_override_options): Remove setting value of
12820         PARAM_INLINE_CALL_COST.
12821
12822 2009-06-18  Richard Henderson  <rth@redhat.com>
12823
12824         PR 40488
12825         * tree-pass.h (TDF_ASMNAME): New.
12826         * tree-dump.c (dump_options): Add asmname.
12827         * doc/invoke.texi: Document it.
12828
12829         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
12830         (dump_decl_name): ...here.
12831         (dump_function_name): New flags arg; mind TDF_ASMNAME.
12832         (dump_generic_node): Update dump_function_name calls.
12833         (print_call_name): New flags arg; update all dump calls.
12834         * diagnostic.h (print_call_name): Update.
12835         * gimple-pretty-print.c (dump_gimple_call): Update.
12836
12837 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
12838
12839         PR target/40470
12840         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
12841
12842 2009-06-18  Diego Novillo  <dnovillo@google.com>
12843
12844         * doc/plugins.texi: Document plugin_is_GPL_compatible.
12845         * plugin.c (str_license): Declare.
12846         (try_init_one_plugin): Assert that the symbol
12847         'plugin_is_GPL_compatible' exists.
12848
12849 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
12850
12851         * see.c: Remove.
12852         * Makefile.in (OBJS-common): Remove see.o.
12853         (see.o): Remove.
12854         * common.opt (fsee): Mark as preserved for backward compatibility.
12855         * opts.c (common_handle_option): Add OPT_fsee to the backward
12856         compatibility section.
12857         * passes.c (init_optimization_passes, pass_see): Remove pass.
12858         * timevar.def (TV_SEE): Remove.
12859         * tree-pass.h (pass_see): Remove declaration.
12860         * doc/invoke.texi (-fsee): Remove documentation.
12861
12862 2009-06-18  Martin Jambor  <mjambor@suse.cz>
12863
12864         * tree-sra.c: Include statistics.h
12865         (sra_stats): New variable.
12866         (sra_initialize): Clear sra_stats.
12867         (create_access_replacement): Increment sra_stats.replacements.
12868         (get_access_replacement): Do not return twice.
12869         (analyze_all_variable_accesses): Increment statistics counter by the
12870         number of scalarized aggregates.
12871         (generate_subtree_copies): Increment sra_stats.subtree_copies.
12872         (sra_modify_expr): Increment sra_stats.exprs.
12873         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
12874         (sra_modify_assign): Increment sra_stats.exprs,
12875         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
12876         (perform_intra_sra): Update statistics counters.
12877         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
12878
12879 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
12880
12881         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
12882         (arm_scalar_mode_supported_p): New function.
12883
12884 2009-06-18  Paul Brook  <paul@codesourcery.com>
12885             Sandra Loosemore  <sandra@codesourcery.com>
12886
12887         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
12888         (__extendhfsf2, __truncsfhf2): Define.
12889         * config/arm/fp16.c: New file.
12890         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
12891         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
12892
12893 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
12894
12895         * doc/extend.texi (Half-Precision): New section.
12896         * doc/invoke.texi (Option Summary): List -mfp16-format.
12897         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
12898         * config/arm/arm.opt (mfp16-format=): New.
12899         * config/arm/arm.c: Include intl.h.
12900         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
12901         (TARGET_INVALID_RETURN_TYPE): Redefine.
12902         (TARGET_PROMOTED_TYPE): Redefine.
12903         (TARGET_CONVERT_TO_TYPE): Redefine.
12904         (arm_fp16_format): Define.
12905         (all_fpus): Add entry for neon-fp16.
12906         (fp_model_for_fpu): Likewise.
12907         (struct fp16_format): Declare.
12908         (all_fp16_formats): Define.
12909         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
12910         functions.
12911         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
12912         and no ldrh.
12913         (arm_legitimate_index_p): Treat HFmode like HImode.
12914         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
12915         (coproc_secondary_reload_class): Special-case HFmode.
12916         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
12917         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
12918         (arm_init_fp16_builtins): New.
12919         (arm_init_builtins): Call it.
12920         (arm_invalid_parameter_type): New.
12921         (arm_invalid_return_type): New.
12922         (arm_promoted_type): New.
12923         (arm_convert_to_type).
12924         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
12925         format.
12926         (arm_emit_fp16_const): New function.
12927         (arm_mangle_type): Mangle __fp16 as "Dh".
12928         * config/arm/arm.h (TARGET_VFPD32): Make it know about
12929         FPUTYPE_NEON_FP16.
12930         (TARGET_NEON_FP16): New.
12931         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
12932         (enum fputype): Add FPUTYPE_NEON_FP16.
12933         (enum arm_fp16_format_type): Declare.
12934         (arm_fp16_format): Declare.
12935         (LARGEST_EXPONENT_IS_NORMAL): Define.
12936         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
12937         * config/arm/arm-modes.def (HFmode): Define.
12938         * config/arm/vfp.md: (*movhf_vfp): New.
12939         (extendhfsf2): New.
12940         (truncsfhf2): New.
12941         * config/arm/arm.md: (fpu): Add neon_fp16.
12942         (floatsihf2, floatdihf2): New.
12943         (fix_trunchfsi2, fix_trunchfdi2): New.
12944         (truncdfhf2): New.
12945         (extendhfdf2): New.
12946         (movhf): New.
12947         (*arm32_movhf): New.
12948         (*thumb1_movhf): New.
12949         (consttable_2): Add check for HFmode constants.
12950         (consttable_4): Handle HFmode constants.
12951
12952 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
12953
12954         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
12955
12956 2009-06-17  Olivier Hainque  <hainque@adacore.com>
12957
12958         * collect2.c (main): Use CONST_CAST2 to perform char ** to
12959         const char ** conversion in AIX specific section.
12960
12961 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
12962
12963         * config/i386/i386.c (ix86_special_builtin_type): Remove
12964         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
12965         (bdesc_special_args): Updated.
12966         (ix86_init_mmx_sse_builtins): Likewise.
12967         (ix86_expand_special_args_builtin): Likewise.
12968
12969 2009-06-17  Richard Henderson  <rth@redhat.com>
12970
12971         * tree-pretty-print.c (maybe_dump_asm_name): New.
12972         (dump_decl_name): Use it.
12973         (PRINT_FUNCTION_NAME): Merge into...
12974         (dump_function_name): ... here.  Use maybe_dump_asm_name.
12975
12976 2009-06-17  Cary Coutant  <ccoutant@google.com>
12977
12978         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
12979         Change caller.
12980         * debug.c (struct gcc_debug_hooks): Change placeholder for
12981         source_line hook.
12982         (debug_nothing_int_charstar_int): Replaced by...
12983         (debug_nothing_int_charstar_int_bool): ...this.
12984         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
12985         source_line prototype.
12986         (debug_nothing_int_charstar_int): Replaced by...
12987         (debug_nothing_int_charstar_int_bool): ...this.
12988         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
12989         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
12990         Output is_stmt operand when necessary.
12991         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
12992         (notice_source_line): Add is_stmt parameter.
12993         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
12994         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
12995         Change callers.
12996         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
12997         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
12998
12999 2009-06-17  Ian Lance Taylor  <iant@google.com>
13000
13001         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
13002         Change all uses.
13003         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
13004         call uses.
13005
13006 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
13007
13008         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
13009         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
13010         tree_strip_sign_nop_conversions and
13011         tree_ssa_strip_useless_type_conversions rather than stripping
13012         the operations here.
13013         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
13014         Declare them.
13015         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
13016         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
13017         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
13018         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
13019         functions.
13020
13021 2009-06-17  Michael Eager  <eager@eagercon.com>
13022
13023         * config/rs6000/constraints.md (register_constraint "d"): New.
13024         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
13025         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
13026         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
13027         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
13028         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
13029         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
13030         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
13031         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
13032         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
13033         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
13034         __fctiwz): Same.
13035         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
13036         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
13037         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
13038         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
13039         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
13040         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
13041         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
13042         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
13043         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
13044         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
13045         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
13046         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
13047         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
13048         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
13049
13050 2009-06-16  Ian Lance Taylor  <iant@google.com>
13051
13052         * profile.c (total_num_never_executed): Don't define.
13053         (compute_branch_probabilities): Don't count or print
13054         num_never_executed.
13055         (init_branch_prob): Don't set total_num_never_executed.
13056         (end_branch_prob): Don't print total_num_never_executed.
13057
13058 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
13059
13060         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
13061
13062 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
13063
13064         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
13065         (nabstd2_fpr): Same.
13066
13067 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
13068
13069         * expr.c (expand_assignment): Change complex type check.
13070
13071 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
13072
13073         * doc/plugins.texi (Building GCC plugins): Added new section.
13074
13075 2009-06-17  Ian Lance Taylor  <iant@google.com>
13076
13077         * c-pch.c (get_ident): Don't set size of templ array.
13078         (pch_init): Don't set size of partial_pch array.
13079
13080         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
13081         string constant to intialize an array whose size is the length of
13082         the string.
13083
13084 2009-06-17  Richard Guenther  <rguenther@suse.de>
13085
13086         PR tree-optimization/40389
13087         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
13088         to addressable types.
13089         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
13090
13091 2009-06-17  Richard Guenther  <rguenther@suse.de>
13092
13093         PR middle-end/40460
13094         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
13095         if there is no evolution of left in the loop bail out.
13096         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
13097         chrec_fold_multiply.
13098
13099 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
13100             Janis Johnson  <janis187@us.ibm.com>
13101
13102         PR target/39254
13103         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
13104         for the symbol ref of a constant that is the source of a move
13105         - nor for any other not-obvious-label-ref constants.
13106
13107 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
13108
13109         * plugin.c (position_pass): Skip newly inserted pass during list
13110         traversal to avoid repeated insertion.
13111
13112 2009-06-16  Ian Lance Taylor  <iant@google.com>
13113
13114         * vec.h (VEC_stack_alloc): Define different version if
13115         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
13116         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
13117         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
13118         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
13119
13120 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
13121
13122         * config.gcc (extra_headers): Add ia32intrin.h for x86.
13123
13124         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
13125         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
13126         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
13127         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
13128         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
13129         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
13130         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
13131         (bdesc_special_args): Add __builtin_ia32_rdtsc and
13132         __builtin_ia32_rdtscp.
13133         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
13134         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
13135         and __builtin_ia32_rorhi.
13136         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
13137         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
13138         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
13139         (ix86_expand_args_builtin): Likewise.
13140         (ix86_expand_special_args_builtin): Likewise.
13141
13142         * config/i386/i386.md (UNSPECV_RDTSCP): New.
13143         (UNSPECV_RDTSC): Likewise.
13144         (UNSPECV_RDPMC): Likewise.
13145         (*bsr): Renamed to ...
13146         (bsr): This
13147         (*bsr_rex64): Renamed to ...
13148         (bsr_rex64): This.
13149         (rdpmc): New.
13150         (*rdpmc): Likewise.
13151         (*rdpmc_rex64): Likewise.
13152         (rdtsc): Likewise.
13153         (*rdtsc): Likewise.
13154         (*rdtsc_rex64): Likewise.
13155         (rdtscp): Likewise.
13156         (*rdtscp): Likewise.
13157         (*rdtscp_rex64): Likewise.
13158
13159         * config/i386/ia32intrin.h: New.
13160
13161         * config/i386/x86intrin.h: Include <ia32intrin.h>.
13162
13163 2009-06-16  Ian Lance Taylor  <iant@google.com>
13164
13165         * ira-build.c (copy_info_to_removed_store_destinations):
13166         Initialize parent_a.
13167
13168 2009-06-16  Ian Lance Taylor  <iant@google.com>
13169
13170         * c-decl.c (grokdeclarator): Change size_varies to bool.
13171
13172 2009-06-16  Ian Lance Taylor  <iant@google.com>
13173
13174         * sel-sched.c: Make forward declarations of move_op_hooks and
13175         fur_hooks explicitly extern.
13176
13177 2009-06-16  Ian Lance Taylor  <iant@google.com>
13178
13179         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
13180         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
13181
13182 2009-06-16  Ian Lance Taylor  <iant@google.com>
13183
13184         * resource.c (mark_referenced_resources): Change
13185         include_delayed_effects parameter to bool.  Change all callers.
13186         (mark_end_of_function_resources): Likewise.
13187         * reorg.c (insn_references_resource_p): Likewise.
13188         (insn_sets_resource_p): Likewise.
13189         * resource.h (mark_referenced_resources): Update declaration.
13190         (mark_end_of_function_resources): Update declaration.
13191
13192 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
13193
13194         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
13195
13196 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
13197
13198         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
13199         GCC can bootstrap on AIX with GNU Binutils 2.20.
13200
13201 2009-06-16  Ian Lance Taylor  <iant@google.com>
13202
13203         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
13204
13205 2009-06-16  Ian Lance Taylor  <iant@google.com>
13206
13207         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
13208         inline, not extern inline.
13209         (exact_log2): Likewise.
13210         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
13211         test CLZ_HWI.
13212         (exact_log2): Likewise, but don't test CTZ_HWI.
13213
13214 2009-06-16  Ian Lance Taylor  <iant@google.com>
13215
13216         * bitmap.c (bitmap_clear): Don't declare as inline.
13217         * gimple.c (gimplify_assign): Likewise.
13218         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
13219         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
13220         (sched_scan_info): Remove duplicate definition.
13221
13222 2009-06-16  Ian Lance Taylor  <iant@google.com>
13223
13224         * c-common.c (skip_evaluation): Don't define.
13225         (c_inhibit_evaluation_warnings): Define global variable.
13226         (overflow_warning): Check c_inhibit_evaluation_warnings rather
13227         than skip_evaluation.
13228         (convert_and_check, warn_for_div_by_zero): Likewise.
13229         * c-common.h (skip_evaluation): Don't declare.
13230         (c_inhibit_evaluation_warnings): Declare.
13231         * c-parser.c (c_parser_typeof_specifier): Set
13232         c_inhibit_evaluation_warnings rather than skip_evaluation.
13233         (c_parser_conditional_expression): Likewise.
13234         (c_parser_binary_expression): Likewise.
13235         (c_parser_sizeof_expression): Likewise.
13236         (c_parser_alignof_expression): Likewise.
13237         * c-typeck.c (build_indirect_ref): Check
13238         c_inhibit_evaluation_warnings rather than skip_evaluation.
13239         (build_conditional_expr, build_binary_op): Likewise.
13240
13241 2009-06-16  Richard Guenther  <rguenther@suse.de>
13242
13243         * tree-ssa-alias.c (is_escape_site): Remove.
13244         * tree-ssa-alias.h (enum escape_type): Remove.
13245         (is_escape_site): Likewise.
13246         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
13247         via casts and asms without deferring to is_escape_site.
13248
13249 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
13250
13251         PR middle-end/40446
13252         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
13253         use gen_lowpart if op0 has complex mode.
13254
13255 2009-06-16  Richard Guenther  <rguenther@suse.de>
13256
13257         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
13258         variables add them to ESCAPED.
13259         (find_func_aliases): Do not make all indirectly stored values escaped.
13260
13261 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
13262
13263         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
13264         make_decl_one_only.
13265
13266 2009-06-16  Martin Jambor  <mjambor@suse.cz>
13267
13268         PR tree-optimization/40432
13269         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
13270         check whether we need to force gimple register operand.
13271
13272 2009-06-16  Martin Jambor  <mjambor@suse.cz>
13273
13274         PR tree-optimization/40413
13275         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
13276         build_ref_for_offset.
13277         (propagate_subacesses_accross_link): Fix a typo in a comment.
13278
13279 2009-06-16  Ira Rosen  <irar@il.ibm.com>
13280
13281         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
13282         with additional parameter.
13283         * tree-vectorizer.h (enum vect_def_type): Add new value
13284         vect_nested_cycle.
13285         (enum vect_relevant): Add comments.
13286         (vect_is_simple_reduction): Add new argument.
13287         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
13288         Detect nested cycles.
13289         (vect_is_simple_reduction): Update documentation, add an argument to
13290         distinguish inner-loop reduction from nested cycle, detect nested
13291         cycles, fix printings and indentation, don't swap operands in case
13292         of nested cycle.
13293         (get_initial_def_for_reduction): Handle subtraction.
13294         (vect_create_epilog_for_reduction): Add new argument to specify
13295         reduction variable.
13296         (vect_finalize_reduction): Handle subtraction, fix comments.
13297         (vectorizable_reduction): Handle nested cycles. In case of nested
13298         cycle keep track of the reduction variable position. Call
13299         vect_is_simple_reduction with additional parameter. Use original
13300         statement code in reduction epilogue for nested cycle. Call
13301         vect_create_epilog_for_reduction with additional parameter.
13302         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
13303         inner-loop vectorization.
13304         (vect_recog_widen_sum_pattern): Likewise.
13305         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
13306         and reductions.
13307         (vect_mark_stmts_to_be_vectorized): Likewise.
13308         (vect_get_vec_def_for_operand): Handle nested cycles.
13309
13310 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13311
13312         * doc/invoke.texi (Debugging Options): Fix option index entries
13313         for -fdump-statistics, -frandom-seed add entries for
13314         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
13315         (FRV Options): Fix entries for -mTLS, -mtls.
13316         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
13317         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
13318         (M68hc1x Options): Fix @itemx for -mnominmax.
13319         (MCore Options): Fix entry for -mno-lsim.
13320         (MMIX Options): Fix entry for -mabi=mmixware.
13321         (PDP-11 Options): Fix entry for -mbcopy-builtin.
13322
13323 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
13324
13325         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
13326         Mention the plugin mode of gengtype.
13327         * doc/gty.texi (Source Files Containing Type Information): Likewise.
13328         * gengtype.c: Updated copyright.
13329         (plugin_files, nb_plugin_files) Added new static variables.
13330         (measure_input_list) Care about plugin_files.
13331         (write_rtx_next): Added early return in plugin mode.
13332         (create_file): Updated copyright year in generated file. Added
13333         asserts.
13334         (oprintf): Added early return if NULL outf.
13335         (get_output_file_with_visibility): Care of plugin_files.
13336         (get_output_file_name): May return null.
13337         (write_local): Added early return.
13338         (put_mangled_filename): Ditto.
13339         (finish_root_table): Added check for base_files.
13340         (write_roots): Care about null when plugins.
13341         (main): Added plugin mode.
13342
13343 2009-06-15  Ian Lance Taylor  <iant@google.com>
13344
13345         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
13346         * gcov.c (read_count_file): Add braces around variables declared
13347         before label.
13348
13349         * c.opt (Wjump-misses-init): New warning.
13350         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
13351         -Wall and -Wc++-compat if not already set.
13352         (c_common_post_options): Clear warn_jump_misses_init if it was not
13353         set.
13354         * c-decl.c (struct c_binding): Change type field to a union with
13355         new label field.  Make it the first field in the struct.  Update
13356         references to type to use u.type instead.
13357         (struct c_spot_bindings): Define.
13358         (struct c_goto_bindings): Define.
13359         (c_goto_bindings_p): Define, along with VECs.
13360         (struct c_label_vars): Define.
13361         (struct c_scope): Add has_label_bindings field.
13362         (bind_label, set_spot_bindings): New static functions.
13363         (decl_jump_unsafe, update_spot_bindings): New static functions.
13364         (update_label_decls): New static function.
13365         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
13366         Update binding u.label field to shadowed field.
13367         (c_binding_start_stmt_expr): New function.
13368         (c_binding_end_stmt_expr): New function.
13369         (pushdecl): Don't call c_begin_vm_scope.
13370         (make_label): Add defining and p_label_vars parameters.  Change
13371         all callers.
13372         (lookup_label): Correct test for whether a label has not yet been
13373         defined.  Call bind_label rather than bind.
13374         (warn_about_goto): New static function.
13375         (lookup_label_for_goto): New function.
13376         (declare_label): Call bind_label rather than bind.
13377         (check_earlier_gotos): New static function.
13378         (define_label): Don't give errors about jumping into statement
13379         expressions or scopes of variably modified types.  Call
13380         set_spot_bindings and check_earlier_gotos.  Call bind_label
13381         instead of bind.  Don't set label_context_stack_se or
13382         label_context_stack_vm.
13383         (c_get_switch_bindings): New function.
13384         (c_release_switch_bindings): New function.
13385         (c_check_switch_jump_warnings): New function.
13386         (start_function): Don't set label_context_stack_se or
13387         label_context_stack_vm.
13388         (finish_function): Likewise.
13389         * c-typeck.c (label_context_stack_se): Don't define.
13390         (label_context_stack_vm): Don't define.
13391         (c_finish_goto_label): Call lookup_label_for_goto rather than
13392         lookup_label.  Don't give errors about jumping into a statement
13393         expression or the scope of a variably modified type.  Don't set
13394         label_context_stack_se or label_context_stack_vm.
13395         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
13396         fields.  Add bindings field.
13397         (c_start_case): Don't set deleted fields.  Set bindings field.
13398         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
13399         or blocked_vm.  Call c_check_switch_jump_warnings.
13400         (c_finish_case): Don't test blocked_stmt_expr field.  Call
13401         c_release_switch_bindings.
13402         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
13403         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
13404         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
13405         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
13406         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
13407         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
13408         (c_begin_vm_scope, c_end_vm_scope): Don't define.
13409         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
13410         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
13411         (C_DECL_UNJUMPABLE_VM): Don't define.
13412         (C_DECL_UNDEFINABLE_VM): Don't define.
13413         (struct c_label_list): Don't define.
13414         (struct c_label_context_se): Don't define.
13415         (struct c_label_context_vm): Don't define.
13416         (struct c_spot_bindings): Declare.
13417         (c_bindings_start_stmt_expr): Declare.
13418         (c_bindings_end_stmt_expr): Declare.
13419         (lookup_label_for_goto): Declare.
13420         (c_get_switch_bindings, c_release_switch_bindings): Declare.
13421         (c_check_switch_jump_warnings): Declare.
13422         (label_context_stack_se, label_context_stack_vm): Don't declare.
13423         (c_finish_goto_label): Update declaration.
13424         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
13425         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
13426         (Warning Options): Document -Wjump-misses-init.
13427
13428 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
13429
13430         * tree-object-size.c (addr_object_size): Fix a pasto in the last
13431         change.
13432
13433 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
13434
13435         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
13436
13437 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
13438
13439         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
13440
13441 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
13442
13443         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
13444
13445 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
13446
13447         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
13448         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
13449         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
13450         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
13451         * dwarf2asm.c (dw2_force_const_mem): Update call to
13452         make_decl_one_only.
13453         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
13454         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
13455         * langhooks.c (lhd_comdat_group): Remove.
13456         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
13457         * tree.h (DECL_COMDAT_GROUP): New.
13458         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
13459         (tree_decl_with_vis): Add comdat_group. Remove one_only.
13460         (make_decl_one_only): Change signature.
13461         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
13462         make_decl_one_only.
13463         (make_decl_one_only): Change signature.
13464         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
13465
13466 2009-06-15  Richard Guenther  <rguenther@suse.de>
13467
13468         PR middle-end/40439
13469         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
13470
13471 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13472
13473         * tree-ssa-math-opts.c: Remove extra divide.
13474
13475 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13476
13477         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
13478
13479 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13480
13481         * passes.c: Add bswap pass.
13482         * tree-pass.h: Add pass_optimize_bswap declaration.
13483         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
13484         Include rtl.h, expr.h and optabs.h for optab_handler check.
13485         (struct symbolic_number, pass_optimize_bswap): New definition.
13486         (do_shift_rotate, verify_symbolic_number_p): New functions.
13487         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
13488         (gate_optimize_bswap): New function.
13489         * tree.c (widest_int_cst_value): New function.
13490         * tree.h (widest_int_cst_value): Prototype added.
13491
13492 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
13493
13494         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
13495         REG_EQUAL/REG_EQUIV notes.
13496
13497 2009-06-14  Richard Guenther  <rguenther@suse.de>
13498
13499         PR middle-end/40389
13500         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
13501         has its address taken if NRV was applied and it is addressable.
13502         * tree-ssa-structalias.c (get_constraint_for_address_of): New
13503         function split out from ...
13504         (get_constraint_for_1): ... here.
13505         (handle_rhs_call): Use it to mark the return slot escaped if
13506         it is addressable and NRV was applied.
13507
13508 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
13509
13510         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
13511         Change first argument type to location_t.
13512         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
13513         Do not set input_location.
13514         Use loc instead of input_location throughout.
13515
13516 2009-06-13  Richard Guenther  <rguenther@suse.de>
13517
13518         PR tree-optimization/40421
13519         * tree-predcom.c (should_unroll_loop_p): Remove.
13520         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
13521
13522 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
13523
13524         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13525         Add location argument.
13526
13527 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
13528
13529         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
13530         build_decl.
13531         * config/s390/s390.c (s390_build_builtin_va_list): Same.
13532         (s390_gimplify_va_arg): Pass location to create_artificial_label.
13533         * config/spu/spu-protos.h: Add location to
13534         spu_resolve_overloaded_builtin.
13535         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
13536         spu_build_builtin_va_list.
13537         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
13538         argument.  Pass location to build_function_call_vec.
13539         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
13540         build_decl.
13541         (emit_fpu_switch): Same.
13542         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
13543         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
13544         to build_decl and create_artificial_label.
13545         (xtensa_gimplify_va_arg_expr): Same.
13546         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
13547         (xstormy16_gimplify_va_arg_expr): Same.
13548         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
13549         * config/arm/arm.c (arm_build_builtin_va_list): Same.
13550         * config/mips/mips.c (mips_build_builtin_va_list): Same.
13551         (mips16_build_function_stub): Same.
13552         (mips16_build_call_stub): Same.
13553
13554 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
13555
13556         PR target/40327
13557         * arm/constraints.md (Pa, Pb): New constraints.
13558         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a
13559         split pattern to deal with them.
13560
13561 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
13562
13563         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
13564         fix index entry for -Xpreprocessor.
13565
13566 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
13567
13568         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13569         Add location argument to build_decl call.
13570         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
13571         (rs6000_init_builtins): Same.
13572         (spe_init_builtins): Same.
13573         (rs6000_gimplify_va_arg): Add location argument to
13574         create_artificial_label call.
13575
13576 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
13577
13578         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
13579         * combine-stack-adj.c (pass_stack_adjustments): Use it.
13580         * Makefile.in: Fix GGC dependency for gcse.o.
13581
13582 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
13583
13584         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
13585         * gimple-pretty-print.c (dump_gimple_stmt): Same.
13586         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
13587         created.
13588         * c-parser.c (c_parser_binary_expression): Use current column while
13589         building binary operations.
13590         * common.opt (fshow-column): Enable by default.
13591         * tree-vrp.c (check_array_ref): Use warning_at.
13592         (check_array_bounds): Use location from call back if expr has no
13593         location.
13594         * tree.h: Add location argument to maybe_fold_*.
13595         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
13596         (maybe_fold_offset_to_array_ref): Add location argument and use it.
13597         (maybe_fold_offset_to_component_ref): Same.
13598         (maybe_fold_offset_to_reference): Same.
13599         (maybe_fold_offset_to_address): Same.
13600         (maybe_fold_stmt_indirect): Same.
13601         (maybe_fold_stmt_addition): Same.
13602         (fold_stmt_r): Pass location to maybe_fold_*.
13603         (fold_gimple_assign): Same.
13604         * c-tree.h: Add location argument to finish_decl,
13605         default_function_array_conversion, store_init_value.
13606         * c-decl.c (define_label): Use error_at.
13607         (c_make_fname_decl): Pass location to finish_decl.
13608         (finish_decl): New location argument.
13609         (build_compound_literal): Pass location to store_init_value.
13610         (grokdeclarator): Pass location to finish_decl.
13611         (grokfield): Same.
13612         * c-typeck.c (array_to_pointer_conversion): New location argument.
13613         (function_to_pointer_conversion): Same.
13614         (default_function_array_conversion): Same.
13615         (parser_build_unary_op): Pass location to overflow_warning.
13616         (parser_build_binary_op): Same.  Use warning_at.
13617         (build_unary_op): Pass location to array_to_pointer_conversion.
13618         (build_c_cast): Pass location to digest_init.
13619         (build_modify_expr): New location argument.
13620         (convert_for_assignment): Same.
13621         (store_init_value): Same.
13622         (digest_init): Same.
13623         (output_init_element): Pass location to digest_init and
13624         array_to_pointer_conversion.
13625         (c_finish_return): Pass location to convert_for_assignment.
13626         * gimplify.c (gimplify_conversion): Pass location to
13627         maybe_fold_offset_to_address.
13628         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
13629         to maybe_fold_stmt_addition.
13630         * c-omp.c (c_finish_omp_atomic): Pass new location to
13631         build_modify_expr.
13632         (c_finish_omp_for): Same.
13633         * c-common.c (overflow_warning): New argument.
13634         * c-common.h: New argument to build_modify_expr, overflow_warning.
13635         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
13636         finish_decl.
13637         (c_parser_initializer): Pass location to
13638         default_function_array_conversion.
13639         (c_parser_initelt): Same.
13640         (c_parser_initval): Same.
13641         (c_parser_asm_operands): Same.
13642         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
13643         (c_parser_conditional_expression): Same.
13644         (c_parser_binary_expression): Add location info to stack.  Use it.
13645         (c_parser_unary_expression): Pass location to
13646         default_function_array_conversion, parser_build_unary_op,
13647         build_indirect_ref, c_parser_postfix_expression_after_primary.
13648         (c_parser_postfix_expression_after_primary): New location argument.
13649         Use it.
13650         (c_parser_expression_conv): Pass location to
13651         default_function_array_conversion.
13652         (c_parser_expr_list): Same.
13653         (c_parser_omp_atomic): Same.
13654         (c_parser_omp_for_loop): Same.
13655         * c-tree.h: (struct c_declarator): Add comment to id_loc.
13656         (build_array_declarator): New argument.
13657         * c-decl.c (build_array_declarator): Add location argument.
13658         (grokdeclarator): Set id_loc for cdk_array.
13659         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
13660         build_array_declarator.
13661         * tree.c (build_omp_clause): Add location argument.
13662         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
13663         (OMP_CLAUSE_LOCATION): New macro.
13664         (struct tree_omp_clause): Add location field.
13665         (build_omp_clause): Add argument.
13666         * testsuite/gcc.dg/gomp/for-1.c: Fix column.
13667         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
13668         build_omp_clause.
13669         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
13670         (cp_parser_omp_clause_collapse): Same.
13671         (cp_parser_omp_clause_default): Same.
13672         (cp_parser_omp_clause_if): Same.
13673         (cp_parser_omp_clause_nowait): Same.
13674         (cp_parser_omp_clause_num_threads): Same.
13675         (cp_parser_omp_clause_ordered): Same.
13676         (cp_parser_omp_clause_schedule): Same.
13677         (cp_parser_omp_clause_untied): Same.
13678         (cp_parser_omp_for_loop): Same.
13679         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
13680         * c-tree.h (c_start_case): Add location argument.
13681         (c_process_expr_stmt): Same.
13682         (c_finish_goto_*): Same.
13683         * tree-parloops.c (initialize_reductions): Pass location to
13684         build_omp_clause.
13685         (create_parallel_loop): Same.
13686         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
13687         (gfc_trans_omp_reduction_list): Same.
13688         (gfc_trans_omp_clauses): Same.
13689         (gfc_trans_omp_do): Same.
13690         * c-typeck.c (c_finish_goto_label): Same.
13691         (c_finish_goto_ptr): New location argument.
13692         (c_start_case): Same.
13693         (emit_side_effect_warnings): Same.
13694         (c_process_expr_stmt): Same.
13695         (c_finish_stmt_expr): Same.
13696         (c_finish_omp_clauses): Use error_at instead of error.
13697         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
13698         build_omp_clause.
13699         * c-omp.c (c_split_parallel_clauses): New location argument.
13700         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
13701         to build_omp_clause.
13702         (convert_local_reference_stmt): Same.
13703         (convert_gimple_call): Same.
13704         * c-common.h (c_split_parallel_clauses): New argument.
13705         * c-parser.c (c_parser_statement_after_labels): Pass location to
13706         c_finish_goto_label.
13707         (c_parser_switch_statement): Pass location to c_start_case.
13708         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
13709         and c_process_expr_stmt.
13710         (c_parser_omp_variable_list): Add location argument.
13711         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
13712         (c_parser_omp_clause_default): Same.
13713         (c_parser_omp_clause_if): Same.
13714         (c_parser_omp_clause_num_threads): Same.
13715         (-c_parser_omp_clause_ordered): Same.
13716         (c_parser_omp_clause_reduction): Pass location to
13717         c_parser_omp_variable_list.
13718         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
13719         (c_parser_omp_clause_untied): Same.
13720         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
13721         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
13722
13723         * c-tree.h (check_for_loop_decls, undeclared_variable,
13724         build_component_ref, build_array_ref, build_external_ref,
13725         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
13726         build_conditional_expr, build_compound_expr, c_cast_expr,
13727         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
13728         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
13729         argument.
13730         * c-semantics.c (build_stmt): Same.
13731         (build_case_label): Same.
13732         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
13733         (undeclared_variable): New argument.
13734         (make_label): Same.
13735         (lookup_label): Pass location on down.
13736         (define_label): Same.
13737         (finish_decl): Same.
13738         (build_compound_literal): Same.
13739         (finish_struct): Same.
13740         (finish_function): Do not set location here.
13741         (check_for_loop_decls): New argument.
13742         * tree.c (save_expr): Set location.
13743         (build_empty_stmt): New argument.
13744         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
13745         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
13746         * builtins.c (gimplify_va_arg_expr): Use locations.
13747         (expand_builtin_sync_operation): Same.
13748         * c-typeck.c (build_component_ref): New argument.
13749         (build_array_ref): Same.
13750         (build_external_ref): Same.
13751         (c_expr_sizeof_expr): Same.
13752         (c_expr_sizeof_type): Same.
13753         (parser_build_unary_op): Same.
13754         (build_conditional_expr): Same.
13755         (build_compound_expr): Pass location on down.
13756         (build_compound_expr): New argument.
13757         (build_c_cast): Same.
13758         (c_cast_expr): Same.
13759         (build_asm_expr): Same.
13760         (c_finish_return): Same.
13761         (c_process_expr_stmt): Pass location on down.
13762         (c_finish_stmt_expr): New argument.
13763         (push_clenaup): Same.
13764         (c_finish_omp_parallel): Same.
13765         (c_finish_omp_task): Same.
13766         * gimplify.c (gimplify_call_expr): Pass location on down.
13767         * c-omp.c (c_finish_omp_master): New argument.
13768         (c_finish_omp_critical): Same.
13769         (c_finish_omp_ordered): Same.
13770         (c_finish_omp_barrier): Same.
13771         (-c_finish_omp_taskwait): Same.
13772         (c_finish_omp_atomic): Same.
13773         (c_finish_omp_flush): Same.
13774         * tree-inline.c (copy_tree_body_r): Pass location on down.
13775         (inline_forbidden_p): Remove use of input_location.
13776         * c-gimplify.c (c_build_bind_expr): New argument.
13777         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
13778         (c_sizeof_or_alignof_type): New argument.
13779         (c_alignof_expr): Same.
13780         (build_va_arg): Same.
13781         (c_add_case_label): Same.
13782         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
13783         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
13784         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
13785         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
13786         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
13787         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
13788         New argument.
13789         * stub-objc.c (objc_build_selector_expr): Same.
13790         (objc_build_throw_stmt): Same.
13791         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
13792         (c_parser_initelt): Same.
13793         (c_parser_compound_statement): Same.
13794         (c_parser_compound_statement_nostart): Same.
13795         (c_parser_label): Same.
13796         (c_parser_statement_after_labels): Same.
13797         (c_parser_if_body): Same.
13798         (c_parser_else_body): Same.
13799         (c_parser_if_statement): Same.
13800         (c_parser_switch_statement): Same.
13801         (c_parser_while_statement): Same.
13802         (c_parser_do_statement): Same.
13803         (c_parser_for_statement): Same.
13804         (c_parser_asm_statement): Same.
13805         (c_parser_conditional_expression): Same.
13806         (c_parser_binary_expression): Same.
13807         (c_parser_cast_expression): Same.
13808         (c_parser_unary_expression): Same.
13809         (c_parser_sizeof_expression): Same.
13810         (c_parser_alignof_expression): Same.
13811         (c_parser_postfix_expression): Same.
13812         (c_parser_expression): Same.
13813         (c_parser_objc_receiver): Same.
13814         (c_parser_omp_variable_list): Same.
13815         (c_parser_omp_structured_block): Same.
13816         (c_parser_omp_atomic): New argument.
13817         (c_parser_omp_barrier): Same.
13818         (c_parser_omp_critical): Same.
13819         (c_parser_omp_flush): Pass location on down.
13820         (c_parser_omp_for_loop): New argument.
13821         (c_parser_omp_for): Same.
13822         (c_parser_omp_master): Same.
13823         (c_parser_omp_ordered): Same.
13824         (c_parser_omp_sections_scope): Same.
13825         (c_parser_omp_sections): Same.
13826         (c_parser_omp_parallel): Same.
13827         (c_parser_omp_single): Same.
13828         (c_parser_omp_task): Same.
13829         (c_parser_omp_taskwait): Pass location on down.
13830         (c_parser_omp_construct): Same.
13831         (c_parser_omp_threadprivate): Same.
13832         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
13833         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
13834         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
13835         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
13836         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
13837         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
13838         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
13839         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
13840         config/i386/i386.c, stmt.c:
13841         Add location argument to the following function definitions and/or
13842         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
13843         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
13844         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
13845         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
13846         do_case, c_finish_bc_stmt, build_compound_literal,
13847         build_function_call.
13848         * c-decl.c (build_compound_literal): Add location argument.
13849         Make all diagnostic calls use location.
13850         (start_struct): Same.
13851         (finish_struct): Same.
13852         (start_enum): Same.
13853         (build_enumerator): Same.
13854         (start_function): Same.
13855         (grokdeclarator): Make all diagnostic calls use location.
13856         (store_parm_decls_oldstyle): Same.
13857         * c-typeck.c (build_function_call): Add location argument.
13858         Make all diagnostic calls use location.
13859         (do_case): Same.
13860         (c_finish_bc_stmt): Same.
13861         * tree-nested.c (get_trampoline_type): Add argument.
13862         Pass location to build_decl.
13863         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
13864         * rtl.h (RTL_LOCATION): New.
13865         * c-common.c (c_add_case_label): Add location argument.
13866         Make all diagnostic calls use location.
13867         * c-common.h: Add location argument to make_fname_decl, do_case,
13868         c_add_case_label, build_function_call, resolve_overloaded_builtin.
13869         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
13870         Set it appropriately for every case.  Pass enum_loc to start_enum
13871         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
13872         parser_xref_tag.
13873         (c_parser_struct_or_union_specifier): Save location.  Use it for
13874         start_struct, finish_struct, and parser_xref_tag.
13875
13876 2009-06-12  Ian Lance Taylor  <iant@google.com>
13877
13878         * fold-const.c (fold_unary): Rename local variable and to and_expr.
13879
13880         * c-opts.c (c_common_handle_option): For -Wc++-compat set
13881         cpp_opts->warn_cxx_operator_names.
13882
13883 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13884
13885         PR tree-opt/38865
13886         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
13887         is returns NULL and OP is a VCE, look through the VCE.
13888
13889 2009-06-12  Ian Lance Taylor  <iant@google.com>
13890
13891         PR bootstrap/40430
13892         * collect2.c (main): Use CONST_CAST2 in code inside #if
13893         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
13894
13895 2009-06-12  Joey Ye  <joey.ye@intel.com>
13896
13897         PR middle-end/39146
13898         * cfgexpand.c (get_decl_align_unit): Update
13899         max_used_stack_slot_alignment with align instead of
13900         stack_alignment_needed.
13901
13902         * function.c (assign_stack_local_1): Update
13903         max_used_stack_slot_alignment with alignment_in_bits instead
13904         of stack_alignment_needed.
13905         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
13906         here.
13907
13908 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
13909
13910         * dwarf2out.c (last_var_location_insn): New variable.
13911         (dwarf2out_end_epilogue): Clear last_var_location_insn.
13912         (dwarf2out_var_location): Don't record anything after last real
13913         insn.  Only change labels if there were any real instructions
13914         in between last note and this one, or if changed sections.
13915
13916 2009-06-11  Richard Henderson  <rth@redhat.com>
13917
13918         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
13919         note when storing the frame pointer in a register.
13920         (FRP): Don't redefine to nothing for epilogue.
13921         (alpha_expand_epilogue): Mark register and sp restores.
13922         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
13923
13924         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
13925         when gen_lowpart is needed.
13926
13927 2009-06-11  Richard Henderson  <rth@redhat.com>
13928
13929         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
13930
13931         * dwarf2out.c (need_data_align_sf_opcode): New.
13932         (div_data_align): Move earlier.
13933         (def_cfa_1, reg_save): Use it.
13934
13935 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
13936
13937         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
13938         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
13939         (ix86_handle_option): Handle OPT_mcrc32.
13940         (ix86_target_string): Add -mcrc32.
13941         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
13942
13943         * config/i386/i386.h (TARGET_CRC32): New.
13944
13945         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
13946         (sse4_2_crc32di): Likewise.
13947
13948         * config/i386/i386.opt (mcrc32): New.
13949
13950         * doc/invoke.texi: Document -mcrc32.
13951
13952 2009-06-11  Richard Henderson  <rth@redhat.com>
13953
13954         * common.opt (gdwarf-): Accept a version number.
13955         * doc/invoke.texi (gdwarf-): Update docs.
13956         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
13957         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
13958         version level, and record it.
13959
13960         * dwarf2.h (DW_CIE_VERSION): Remove.
13961         * dwarf2out.c (DWARF_VERSION): Remove.
13962         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
13963         (output_call_frame_info): Use CIE version 3 for dwarf3,
13964         or if the return register column is out of range for version 1.
13965         (dwarf_stack_op_name): Add all dwarf3 values.
13966         (DEBUG_PUBTYPES_SECTION): New.
13967         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
13968         encoding change for dwarf3.
13969         (output_die) [dw_val_class_die_ref]: Likewise.
13970         (output_compilation_unit_header): Emit correct version for dwarf3.
13971         (output_line_info): Likewise.
13972         (output_pubnames): Update for DWARF_VERSION removal.
13973         (output_aranges): Likewise.
13974         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
13975         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
13976         (dwarf2out_finish): Likewise.
13977
13978 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
13979
13980         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
13981         in r148403.
13982
13983 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
13984
13985         PR c/39252
13986         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
13987         * builtins.c (expand_builtin_unreachable): New function.
13988         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
13989         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
13990         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
13991         successors.
13992         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
13993         searching for missing barriers.
13994
13995 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13996
13997         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
13998         when -fprofile-generate* was passed.
13999         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
14000
14001 2009-06-11  Anthony Green  <green@moxielogic.com>
14002
14003         * config/moxie/moxie.md: Define length attribute for all instructions.
14004         (rCC): Define.
14005         (*b<cond:code>): Support limited branch ranges for new PC-relative
14006         branch instructions.
14007         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
14008
14009 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
14010
14011         * config/i386/i386.c (min_insn_size): Use get_attr_length
14012         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
14013         For __asm return 0.
14014
14015         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
14016         instead of emit_insn_before.
14017
14018 2009-06-10  Ian Lance Taylor  <iant@google.com>
14019
14020         PR bootstrap/40408
14021         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
14022         GIMPLE_SWITCH.
14023
14024 2009-06-10  Revital Eres  <eres@il.ibm.com>
14025
14026         * passes.c (init_optimization_passes): Reschedule
14027         predictive-commoning pass before complete unroll pass.
14028
14029 2009-06-10  Martin Jambor  <mjambor@suse.cz>
14030
14031         * cgraph.c (cgraph_node_can_be_local_p): New function.
14032         (cgraph_make_node_local): New function.
14033         * cgraph.h (cgraph_node_can_be_local_p): Declare.
14034         (cgraph_make_node_local): Declare.
14035
14036 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
14037
14038         * tree.h (tree_base): Add packed_flag and user_align fields.
14039         Decrease size of spare field.
14040         (TYPE_USER_ALIGN): Use user_align from tree_base.
14041         (DECL_USER_ALIGN): Likewise.
14042         (TYPE_PACKED): Use packed_flag from tree_base.
14043         (DECL_PACKED): Likewise.
14044         (tree_type): Delete packed_flag and user_align fields.  Widen
14045         precision field.  Widen mode field and shuffle fields to align
14046         mode on an 8-bit boundary.
14047         (tree_decl_common): Delete decl_flag_1 and user_align fields.
14048         Renumber decl_flag_* fields.  Fix comments.  Widen
14049         decl_common_unused field.
14050         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
14051         (DECL_EXTERNAL): Likewise.
14052         (DECL_BIT_FIELD): Likewise.
14053         (DECL_NONADDRESSABLE_P): Likewise.
14054         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
14055         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
14056
14057 2009-06-10  Ian Lance Taylor  <iant@google.com>
14058
14059         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
14060         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
14061         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
14062         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
14063         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
14064         DEF_VEC_ALLOC_FUNC_P.
14065         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
14066         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
14067         DEF_VEC_ALLOC_FUNC_O.
14068         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
14069         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
14070         DEF_VEC_ALLOC_FUNC_I.
14071         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
14072         (vec_stack_p_reserve_exact_1): Declare.
14073         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
14074         (vec_stack_free): Declare.
14075         (VEC_stack_alloc): Define.
14076         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
14077         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
14078         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
14079         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
14080         for void_p.
14081         (stack_vecs): New static variable.
14082         (vec_stack_p_reserve_exact_1): New function.
14083         (vec_stack_o_reserve_1): New static function.
14084         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
14085         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
14086         (vec_stack_free): New function.
14087         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
14088         (VEC_df_ref_stack_alloc): Define.
14089         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
14090         DEF_VEC_ALLOC_P_STACK.
14091         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
14092         (struct df_collection_rec): Change _vec fields to VEC.  Remove
14093         _use fields.
14094         (df_free_collection_rec): Adjust for new fields.
14095         (df_insn_rescan): Use new df_collection_rec fields.
14096         (df_notes_rescan, df_canonize_collection_rec): Likewise.
14097         (df_ref_create_structure, df_ref_record): Likewise.
14098         (df_get_conditional_uses, df_get_call_refs): Likewise.
14099         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
14100         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
14101         (df_record_exit_block_uses, df_bb_verify): Likewise.
14102         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
14103         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
14104         Remove count parameter.  Change return type to void.  Change all
14105         callers.
14106         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
14107         Remove count parameter.  Change return type to void.  Change all
14108         callers.
14109         (df_install_refs): Change old_vec parameter to VEC.  Remove count
14110         parameter.  Change all callers.
14111         (df_install_mws): Change old_vec parameter to VEC.  Remove count
14112         parameter.  Change all callers.
14113         (df_refs_verify): Change new_rec parameter to VEC.  Change call
14114         callers.
14115         (df_mws_verify): Likewise.
14116
14117 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
14118
14119         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
14120
14121 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
14122
14123         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
14124
14125 2009-06-10  Anthony Green  <green@moxielogic.com>
14126
14127         * config/moxie/crti.asm: New file.
14128         * config/moxie/crtn.asm: New file.
14129         * config/moxie/moxie.c: New file.
14130         * config/moxie/moxie.h: New file.
14131         * config/moxie/sfp-machine.h: New file.
14132         * config/moxie/moxie-protos.h: New file.
14133         * config/moxie/t-moxie: Created.
14134         * config/moxie/t-moxie-softfp: Created.
14135         * config/moxie/moxie.md: Created.
14136         * config/moxie/constraints.md: Created.
14137         * config.gcc: Add moxie support.
14138         * doc/md.texi (Machine Constraints): Add moxie constraints.
14139         * doc/contrib.texi (Contributors): Mention moxie port.
14140         * doc/install.texi (Specific): Mention the moxie port.
14141
14142 2009-06-09  Ian Lance Taylor  <iant@google.com>
14143
14144         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
14145         compiling with C++.
14146         * optabs.c (optab_table): Only use designated initializers if
14147         HAVE_DESIGNATED_INITIALIZERS is defined.
14148         (convert_optab_table): Likewise.
14149         (init_optabs): Always call init_insn_codes if
14150         HAVE_DESIGNATED_INITIALIZERS is not defined.
14151
14152 2009-06-09  Ian Lance Taylor  <iant@google.com>
14153
14154         * targhooks.c (default_builtin_vectorized_function): Change fn
14155         parameter to unsigned int.
14156         (default_builtin_vectorized_conversion): Change code parameter to
14157         unsigned int.
14158         (default_builtin_reciprocal): Change fn parameter to unsigned int.
14159         * targhooks.h: Update declarations.
14160         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
14161         parameter to unsigned int.
14162
14163         * c-typeck.c (comptypes_check_enum_int): New static function.
14164         (comptypes_internal): Add enum_and_int_p parameter.  Change all
14165         callers.
14166         (comp_target_types): Add location parameter.  Change all callers.
14167         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
14168         Change all callers.
14169         (function_types_compatible_p, type_lists_compatible_p): Likewise.
14170         (build_conditional_expr): Add colon_loc parameter.  Change all
14171         callers.
14172         (convert_for_assignment): Add location parameter.  Change all callers.
14173         * c-parser.c (c_parser_conditional_expression): Pass location of
14174         colon to build_conditional_expr.
14175         * c-tree.h (build_conditional_expr): Update declaration.
14176
14177 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
14178
14179         * graphite.c: Revert previous patch.
14180
14181 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
14182
14183         PR bootstrap/40103
14184         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
14185
14186 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
14187
14188         * tree-ssa-loop-prefetch.c
14189         (loop_prefetch_arrays): Fixed a portability problem in printf format
14190         string.
14191
14192 2009-06-09  Martin Jambor  <mjambor@suse.cz>
14193
14194         PR tree-optimization/40351
14195         * tree-sra.c (propagate_subacesses_accross_link): Check that a
14196         refrence to a potential artifical subaccess can be constructed.
14197
14198 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
14199
14200         * config/sh/sh-protos.h (sh_optimization_options): Declare.
14201         (sh_override_options): Likewise.
14202         * config/sh/sh.c: Include params.h.
14203         (sh_optimization_options): New.
14204         (sh_override_options): Likewise.
14205         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
14206         (OVERRIDE_OPTIONS): Use sh_override_options.
14207
14208 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
14209
14210         * dwarf2out.c (emit_cfa_remember): New variable.
14211         (add_fde_cfi): If emit_cfa_remember, recurse to add
14212         DW_CFA_remember_state first.
14213         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
14214         instead just set emit_cfa_remember.
14215
14216 2009-06-08  Jan Hubicka  <jh@suse.cz>
14217
14218         PR debug/40126
14219         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
14220
14221 2009-06-08  Jan Hubicka  <jh@suse.cz>
14222
14223         PR middle-end/39834
14224         * cgraphunit.c (save_inline_function_body): Do not copy transform
14225         hooks for saved inline bodies.
14226         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
14227         for given function.
14228
14229 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
14230
14231         * jump.c (returnjump_p): Handle delayed branches.  Add missing
14232         function comment.
14233
14234 2009-06-08  Jan Hubicka  <jh@suse.cz>
14235
14236         PR middle-end/40102
14237         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
14238         original node might've been modified.
14239         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
14240
14241 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
14242
14243         * tree-object-size.c (addr_object_size): Add OSI argument.
14244         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
14245         (compute_builtin_object_size, expr_object_size): Adjust callers.
14246         (plus_stmt_object_size): Call addr_object_size instead of
14247         compute_builtin_object_size.
14248
14249 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
14250             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
14251
14252         * tree-ssa-loop-prefetch.c
14253         (gather_memory_references): Introduced a counter for the number of
14254         memory references.
14255         (anything_to_prefetch_p): Introduced a counter for the number of
14256         prefetches.
14257         (is_loop_prefetching_profitable): New function with a cost model
14258         for prefetching.
14259         (loop_prefetch_arrays): Use the new cost model to determine if
14260         prefetching is profitable.
14261         * params.def (MIN_INSN_TO_PREFETCH_RATIO,
14262         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14263         * params.h (MIN_INSN_TO_PREFETCH_RATIO,
14264         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14265         * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
14266         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14267
14268 2009-06-08  Michael Matz  <matz@suse.de>
14269
14270         PR debug/40012
14271         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
14272         partitions use the same.
14273         (expand_one_var): Deal with DECL_RTL sometimes begin set also
14274         for basevars of SSA_NAMEs.
14275         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
14276         to not expand them twice.
14277         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
14278         multiple places.
14279
14280 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
14281
14282         * common.opt (fcompare-debug=, fcompare-debug-second): New.
14283         (fdump-final-insns=, gtoggle): New.
14284         * doc/invoke.texi: Document them.
14285         * final.c (rest_of_clean_state): Dump final insn stream.
14286         * gcc.c (invoke_as): Hook in -fcompare-debug.
14287         (static_spec_functions): Add compare-debug-dump-opt,
14288         compare-debug-self-opt and compare-debug-auxbase-opt.
14289         (compare_debug, compare_debug_second, compare_debug_opt): New.
14290         (switches_debug_check, n_switches_debug_check): New.
14291         (debug_auxbase_opt, debug_check_temp_file): New.
14292         (process_command): Handle -fno-compare-debug, -fcompare-debug and
14293         -fcompare-debug=*.
14294         (do_self_spec): Handle arguments after switches.
14295         (do_spec_1): Add .gk extension to temp file basenames for compare.
14296         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
14297         (cc1_options): Use it instead of normal auxbase computation for
14298         the second compare-debug compilation.
14299         (compare_files): New.
14300         (main): Set up and implement compare debug mode.
14301         (compare_debug_dump_opt_spec_function): New.
14302         (compare_debug_self_opt_spec_function): New.
14303         (compare_debug_auxbase_opt_spec_function): New.
14304         * toplev.c (process_options): Handle flag_gtoggle,
14305         flag_dump_final_insns.
14306         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
14307         during -fcompare-debug-second compilation.
14308
14309 2009-06-07  Ian Lance Taylor  <iant@google.com>
14310
14311         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
14312         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
14313
14314         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
14315         with no default node.  Change warning with %H to warning_at.
14316         Don't clear warn_switch around case checking.
14317         * doc/invoke.texi (Warning Options): Clarify distinction between
14318         -Wswitch and -Wswitch-enum.
14319
14320 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14321
14322         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
14323
14324 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14325
14326         * gbl-ctors.h: Add header guard.
14327
14328 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14329
14330         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
14331         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
14332         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
14333         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
14334         prototypes for removed functions.
14335         (expressions_equal_p): Move to ...
14336         * tree-ssa-sccvn.h: ... here and ...
14337         * matrix-reorg.c: ... adjust includes.
14338
14339 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14340
14341         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
14342
14343 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14344
14345         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
14346         (finish_function): Remove erroneous whitespace.
14347
14348 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14349
14350         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
14351         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
14352
14353 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14354
14355         * errors.c (internal_error): Commentary typo fix.
14356         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
14357         * tree-ssa-pre.c: Ditto.
14358
14359 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14360
14361         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
14362         them is supposed to hold actual statements.
14363
14364 2009-06-06  Ian Lance Taylor  <iant@google.com>
14365
14366         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
14367         empty statements can now have attributes.
14368
14369 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
14370
14371         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
14372         * config/mips/mips.md: Ditto.
14373
14374 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
14375
14376         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
14377         _RELOCATABLE.
14378         (__eabi_uconvert): Likewise.
14379
14380 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
14381
14382         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
14383         CFI_* definitions with IN_GCC.
14384
14385 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
14386
14387         * xcoffout.h (xcoffout_source_line): Update prototype.
14388
14389 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14390
14391         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
14392         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
14393
14394 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
14395
14396         PR middle-end/40340
14397         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
14398         inlined_function_outer_scope_p blocks for artificial inlines
14399         even at -g0/-g1.
14400         * tree.c (tree_nonartificial_location): Rewrite using
14401         block_nonartificial_location.
14402
14403 2009-06-05  Revital Eres  <eres@il.ibm.com>
14404             Leehod Baruch  <leehod@il.ibm.com>
14405
14406         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
14407         (expand_expr_real_1): Remove comment.
14408         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14409         Vectorize misaligned access when the target supports it.
14410         (vect_supportable_dr_alignment): Check for unaligned access support.
14411         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
14412         and remove asset.
14413
14414 2009-06-05  Julian Brown  <julian@codesourcery.com>
14415
14416         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
14417         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
14418
14419 2009-06-05  Richard Guenther  <rguenther@suse.de>
14420
14421         PR bootstrap/40350
14422         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
14423         as possibly unused.
14424
14425 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
14426
14427         * config/s390/s390.c (global_not_special_regno_p): New static inline.
14428         (save_gprs): Don't tell unwinder when a global register is saved.
14429         (s390_emit_epilogue): Emit needed epilogue unwind info.
14430
14431 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
14432
14433         * dwarf2out.c (deferred_asm_name): New.
14434         (add_name_and_src_coords_attributes): Defer creation of
14435         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
14436         computed yet.
14437         (move_linkage_attr): New.
14438         (dwarf2out_finish): Revisit deferrals and emit attributes at the
14439         right place.
14440
14441 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
14442
14443         * tree-nested.c (finalize_nesting_tree_1): Declare the
14444         frame_decl in the binding tree.
14445
14446 2009-06-04  Cary Coutant  <ccoutant@google.com>
14447
14448         * basic-block.h (struct basic_block_def): Add discriminator field.
14449         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
14450         callers.
14451         * debug.c (do_nothing_debug_hooks): Add additional entry.
14452         (debug_nothing_int_charstar_int): New function.
14453         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
14454         (debug_nothing_int_charstar_int): New declaration.
14455         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
14456         discriminator value in .loc directive.
14457         * final.c (last_discriminator): New variable.
14458         (discriminator): New variable.
14459         (final_start_function): Initialize above variables, pass current
14460         discriminator to debug hook.
14461         (notice_source_line): Check for discriminator change.
14462         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
14463         * sdbout.c (sdbout_source_line): New parameter.
14464         * tree-cfg.c (struct locus_discrim_map): New structure type.
14465         (discriminator_per_locus): New hash table.
14466         (build_gimple_cfg): Allocate and free discriminator hash table.
14467         (make_edges): Call assign_discriminator.
14468         (locus_map_hash): New function.
14469         (locus_map_eq): New function.
14470         (next_discriminator_for_locus): New function.
14471         (same_line_p): New function.
14472         (assign_discriminator): New function.
14473         (make_cond_expr_edges): Call assign_discriminator.
14474         (make_gimple_switch_edges): Likewise.
14475         (first_non_label_stmt): New function.
14476         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
14477         all callers.
14478         * xcoffout.c (xcoffout_source_line): Add new parameter.
14479
14480         * configure.ac (gcc_cv_as_discriminator): New configury check for
14481         gas support for discriminator.
14482         * configure: Regenerate.
14483         * config.in: Regenerate.
14484
14485 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14486
14487         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
14488         val after checking for integers.
14489
14490 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
14491
14492         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
14493         X64_REGPARM_MAX.
14494         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
14495         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
14496         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
14497         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
14498         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
14499         X64_SSE_REGPARM_MAX.
14500         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
14501         X64_SSE_REGPARM_MAX.
14502
14503 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
14504
14505         * gcc.c (report_times_to_file): New.
14506         (execute): Implement it.
14507         (process_command): Support -time=.
14508         * doc/invoke.texi: Document it.
14509
14510 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
14511
14512         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
14513         that have value exprs.
14514
14515 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
14516
14517         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
14518         declarations for constants until...
14519         (dw2_output_indirect_constant_1): ... this point.
14520
14521 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
14522
14523         PR target/10242
14524         * arm.md (arm_addsi3): Don't try to split an add with an
14525         eliminable register until after reload has completed.
14526
14527 2009-06-03  Ian Lance Taylor  <iant@google.com>
14528
14529         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
14530         * genattrtab.c (write_length_unit_log): Likewise.
14531         * genchecksum.c (dosum): Likewise.
14532         * gengtype.c (write_rtx_next): Likewise.
14533         (finish_root_table, write_roots): Likewise.
14534         * gimple.c (gimple_ops_offset_): Likewise.
14535         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
14536         * config/arc/arc.c (arc_attribute_table): Likewise.
14537         * config/arm/arm.c (arm_attribute_table): Likewise.
14538         * config/avr/avr.c (avr_attribute_table): Likewise.
14539         * config/crx/crx.c (crx_attribute_table): Likewise.
14540         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
14541         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
14542         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
14543         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
14544         * config/sh/sh.c (sh_attribute_table): Likewise.
14545         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
14546         * config/spu/spu.c (spu_attribute_table): Likewise.
14547         * config/v850/v850.c (v850_attribute_table): Likewise.
14548
14549         * config/alpha/alpha.c (vms_attribute_table): Make static.
14550         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
14551         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
14552         * config/mips/mips.c (mips_attribute_table): Likewise.
14553
14554         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
14555         $(SYSTEM_H).
14556         (cc1-checksum.o): Likewise.
14557
14558 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
14559
14560         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
14561
14562 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
14563
14564         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
14565         insn if it is changing sp.  Use gen_add3_insn instead of
14566         conditionally gen_addsi3 and gen_adddi3.
14567         (offset_below_red_zone_p): New static inline function.
14568         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
14569         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
14570         * config/rs6000/ppc-asm.h: Include auto-host.h.
14571         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
14572         CFI_RESTORE): Define.
14573         * config/rs6000/crtresxgpr.asm: Add unwind info.
14574         * config/rs6000/crtresxfpr.asm: Likewise.
14575         * config/rs6000/crtresgpr.asm: Likewise.
14576         * config/rs6000/crtresfpr.asm: Likewise.
14577         * config/rs6000/crtsavgpr.asm: Likewise.
14578         * config/rs6000/crtsavfpr.asm: Likewise.
14579
14580         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
14581         argument of DWARF2_FRAME_REG_OUT macros.
14582
14583 2009-06-03  Julian Brown  <julian@codesourcery.com>
14584
14585         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
14586         words or less (including TImode) in core registers.
14587
14588 2009-06-03  Richard Guenther  <rguenther@suse.de>
14589
14590         PR middle-end/40328
14591         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
14592
14593 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
14594
14595         * statistics.c (statistics_counter_event): Do not record event
14596         in pass dump if its number == -1.
14597         (curr_statistics_hash): Add assert that we never get passes
14598         with static number == -1.
14599
14600 2009-06-03  Richard Guenther  <rguenther@suse.de>
14601             Andrey Belevantsev  <abel@ispras.ru>
14602
14603         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
14604         non-BLKmode arrays addressable.
14605
14606 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
14607
14608         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
14609         * config/m68k/m68k.h: ... here.
14610
14611 2009-06-03  Martin Jambor  <mjambor@suse.cz>
14612
14613         PR tree-optimization/40323
14614         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
14615         assignment.
14616
14617 2009-06-03  Richard Guenther  <rguenther@suse.de>
14618
14619         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
14620         consistently.
14621
14622 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
14623
14624         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
14625         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
14626         JUMP_TABLE_DATA_P where applicable.
14627         * config/sh/sh.c: Ditto.
14628         * config/sh/sh.h: Ditto.
14629         * config/sh/sh.md: Ditto.
14630         * config/sh/symbian.c: Ditto.
14631
14632 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
14633
14634         * config/i386/driver-i386.c (describe_cache): Optimize
14635         concatenation of strings.  Use snprintf instead of sprintf.
14636         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
14637         target when not compiling with GCC.
14638
14639 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
14640
14641         * config/sh/sh.c: Revert last change.
14642         (sh_expand_epilogue): Emit a blockage insn before the frame
14643         pointer adjustment unconditionally.
14644
14645 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
14646
14647         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
14648         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
14649         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
14650         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
14651         to COLLECT_GCC_OPTIONS.
14652
14653 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
14654
14655         * collect2.c (target_system_root): New variable.
14656         (main): Handle --sysroot=.
14657         (ignore_library): Strip the sysroot from the library path.
14658
14659 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
14660
14661         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
14662         (collect2.o): Depend on collect2-aix.h.
14663         (collect2-aix.o): New rule.
14664         * collect2-aix.h: New file.
14665         * collect2-aix.c: Likewise.
14666         * collect2.c: Include collect2-aix.h.  Don't undefine
14667         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
14668         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
14669         Use TARGET_AIX_VERSION instead of _AIX51.
14670         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
14671         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
14672         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
14673         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
14674         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
14675
14676 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
14677
14678         * collect2.c (ignore_library): Avoid premature post-increment
14679         and null deference.
14680
14681 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
14682
14683         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
14684         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
14685         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
14686         CROSS_DIRECTORY_STRUCTURE too.
14687         (LINK_LIBG_SPEC): Likewise.
14688         (LIB_SPEC): Add %R to sysroot paths.
14689         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
14690         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
14691         * config/rs6000/aix51.h: As for aix43.h.
14692         * config/rs6000/aix52.h: Likewise.
14693         * config/rs6000/aix53.h: Likewise.
14694         * config/rs6000/aix61.h: Likewise.
14695         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
14696         to the beginning of sysroot paths.
14697
14698 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
14699
14700         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
14701         INSN_LISTs that are out of the REG_NOTE range.
14702
14703 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
14704
14705         * loop-unroll.c (struct iv_to_split): Add pointer to next.
14706         (struct var_to_expand): Likewise.
14707         (struct opt_info): Add head and tail for linked lists of the above.
14708         (analyze_insn_to_expand_var): Initialize next.
14709         (analyze_iv_to_split_insn): Likewise.
14710         (analyze_insns_in_loop): Create linked lists.
14711         (allocate_basic_variable): Simplify for use without hash table.
14712         (insert_var_expansion_initialization): Likewise, make it type-safer.
14713         (combine_var_copies_in_loop_exit): Likewise.
14714         (apply_opt_in_copies): Walk lists rather than hash tables.
14715         (release_var_copies): Simplified and inlined by hand into...
14716         (free_opt_info): ... this function.
14717
14718 2009-06-02  Richard Guenther  <rguenther@suse.de>
14719
14720         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
14721         for field decls.
14722
14723 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
14724
14725         * cfgexpand.c (gimple_expand_cfg): Discard the source location
14726         only for builtins that are not overridden.
14727
14728 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
14729
14730         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
14731         label string.
14732
14733 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
14734
14735         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
14736
14737 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
14738
14739         * combine.c (move_deaths): Compare LUIDs within the same BB only.
14740
14741 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
14742
14743         * common.opt (fdump-unnumbered-links): New.
14744         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
14745         * print-rtl.c (flag_dump_unnumbered_links): New.
14746         (print_rtx): Test it.
14747
14748 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
14749
14750         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
14751         push/pop multiple to 8-byte alignment.
14752
14753 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
14754
14755         * config/i386/i386.c (queued_cfa_restores): New static variable.
14756         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
14757         functions.
14758         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
14759         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
14760         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
14761         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
14762         note unconditionally.
14763         (ix86_emit_restore_regs_using_mov): Likewise.
14764         (ix86_emit_restore_sse_regs_using_mov): Likewise.
14765         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
14766         it through to ix86_emit_restore_reg_using_pop.
14767         (ix86_emit_leave): Add RED_OFFSET argument.  Call
14768         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
14769         instead of adding REG_CFA_OFFSET note unconditionally.
14770         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
14771         the above functions.  Call ix86_add_queued_cfa_restore_notes when
14772         needed.
14773
14774         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
14775         force output of the label even for dwarf2out_do_cfi_asm.
14776         (add_fde_cfi): If -g2 and above and cfi might change CFA,
14777         force creation of CFI label and chain DW_CFA_set_loc jumping to it
14778         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
14779         caller.
14780         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
14781         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
14782         dwarf2out_cfi_label callers.
14783         * tree.h (dwarf2out_cfi_label): Adjust prototype.
14784         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
14785         Adjust dwarf2out_cfi_label callers.
14786         * config/vax/vax.c (vax_output_function_prologue): Likewise.
14787
14788         * config/i386/i386.h (struct machine_cfa_state,
14789         struct machine_function): Guard with ifndef USED_FOR_TARGET
14790         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
14791
14792         PR other/40024
14793         * emutls.c (__emutls_get_address): Change arr->size to mean number
14794         of allocated arr->data entries instead of # of slots + 1.
14795
14796         PR middle-end/40316
14797         * recog.c (peep2_reinit_state): New function.
14798         (peephole2_init_state): Use it at the end of a basic block and also
14799         when seeing a RTX_FRAME_RELATED_P insn.
14800
14801 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
14802
14803         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
14804         fixuns_truncrfdi2): New.
14805         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
14806         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
14807         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
14808         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
14809         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
14810         *recip_approx): Remove.
14811         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
14812         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
14813         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
14814         move to div.md.
14815         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
14816         setf_exp_rf): New.
14817
14818 2009-06-01  Ian Lance Taylor  <iant@google.com>
14819
14820         * attribs.c (register_attribute): Use CONST_CAST.
14821         * collect2.c (main): Use CONST_CAST2.
14822         (scan_prog_file): Likewise.
14823         * gcc.c (process_command, main): Likewise.
14824         * toplev.c (toplev_main): Likewise.
14825
14826         * c-typeck.c (handle_warn_cast_qual): New static function,
14827         partially broken out of build_c_cast.
14828         (build_c_cast): Call handle_warn_cast_qual.
14829         * doc/invoke.texi (Warning Options): Document new effect of
14830         -Wcast-qual.
14831
14832 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
14833
14834         * diagnostic.c (diagnostic_build_prefix): Always print columns.
14835         (diagnostic_report_current_module): Print columns.
14836         * common.opt (flag_show_column): Enable by default.
14837
14838 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
14839
14840         * alias.c (find_base_term): Check for NULL term before returning.
14841
14842 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
14843
14844         Revert due to PR40320:
14845         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
14846         * calls.c (emit_library_call_value_1): Don't force_operand for move
14847         and push insns.
14848
14849 2009-06-01  Olivier Hainque  <hainque@adacore.com>
14850             Eric Botcazou  <ebotcazou@adacore.com>
14851
14852         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
14853         to be processed as a bitfield for constructor output purposes.
14854         * output.h (initializer_constant_valid_for_bitfield_p): Declare
14855         new function.
14856         * varasm.c (oc_local_state): New type, output_constructor
14857         local state to support communication with helpers.
14858         (oc_outer_state): New type, output_constructor outer state of
14859         relevance in recursive calls.
14860         (output_constructor_array_range): New output_constructor helper,
14861         extracted code for an array range element.
14862         (output_constructor_regular_field): New output_constructor helper,
14863         extracted code for an element that is not a bitfield.
14864         (output_constructor_bitfield): New output_constructor helper,
14865         extracted code for a bitfield element.  Accept an OUTER state
14866         argument for recursive processing.  Recurse on record or array
14867         CONSTRUCTOR values, possibly past noop conversions.
14868         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
14869         VALUE is a valid constant-valued expression for use in a static
14870         bit-field initializer.
14871         (output_constructor): Rework to use helpers.  Accept and honor an
14872         OUTER state argument for recursive calls.  Return total size.  Be
14873         prepared for nested constructors initializing bitfields.
14874         (output_constant): Feed OUTER in calls to output_constructor.
14875
14876 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
14877
14878         * calls.c (emit_library_call_value_1): Don't force_operand for move
14879         and push insns.
14880
14881 2009-06-01  Nick Clifton  <nickc@redhat.com>
14882
14883         * doc/invoke.texi (IA-64 Options): Fix typo.
14884
14885 2009-06-01  Ira Rosen  <irar@il.ibm.com>
14886
14887         PR tree-optimization/39129
14888         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
14889         printed message.
14890         (vect_do_peeling_for_loop_bound): Use
14891         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
14892         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
14893         (vect_loop_versioning): Likewise.
14894         (vect_create_cond_for_alias_checks): Fix indentation.
14895         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
14896         macros.
14897         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
14898         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
14899         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
14900         "control flow in loop".
14901         (vect_estimate_min_profitable_iters): Use
14902         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
14903         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
14904         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
14905         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
14906         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
14907         statement belongs to a group of strided accesses with the exact code
14908         check.
14909         (vectorizable_load): Likewise.
14910         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
14911         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
14912
14913 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
14914
14915         * config/freebsd-stdint.h: New file.
14916         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
14917         Add freebsd-stdint.h to tm_file.
14918
14919 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
14920
14921         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
14922         (thumb2_extendhidi2): Likewise.
14923
14924 2009-05-31  Ian Lance Taylor  <iant@google.com>
14925
14926         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
14927
14928 2009-05-31  Ian Lance Taylor  <iant@google.com>
14929
14930         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
14931         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
14932         (ipa-reference.o): Depend upon gt-ipa-reference.h.
14933
14934 2009-05-31  Jason Merrill  <jason@redhat.com>
14935
14936         * tree-pretty-print.c (print_call_name): Take the callee, not the
14937         call itself.  Make non-static.  Use dump_function_name for functions.
14938         (dump_generic_node): Adjust.
14939         * diagnostic.h: Declare print_call_name.
14940         * gimple-pretty-print.c (dump_gimple_call): Use it.
14941
14942 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
14943
14944         * config/sh/sh.md (ashldi3_std): New define_expand.
14945         (ashldi3): Use it.
14946
14947 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
14948
14949         PR target/40313
14950         * config/sh/sh.c: Include debug.h.
14951         (sh_expand_epilogue): Emit a blockage insn before the frame
14952         pointer adjustment also when dwarf2out_do_frame returns true.
14953
14954 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
14955
14956         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
14957         (thumb2_extendqidi2): New pattern.
14958
14959 2009-05-31  Ira Rosen  <irar@il.ibm.com>
14960
14961         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
14962         mark phis for renaming.
14963         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
14964         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
14965         Call mark_sym_for_renaming.
14966         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
14967         * tree-vect-loop.c (vect_transform_loop): Remove
14968         vect_memsyms_to_rename initialization and a call to
14969         mark_set_for_renaming.
14970
14971 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
14972
14973         PR middle-end/40304
14974         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
14975         frame related even if !set_cfa && style < 0.
14976
14977 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
14978
14979         * config/i386/mingw-tls.c: New file.
14980         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
14981         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
14982         defining _WIN32 but not __CYGWIN__.
14983
14984 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14985
14986         * configure.ac: Add MPC support.
14987
14988         * config.in, configure: Regenerate.
14989
14990 2009-05-29  Richard Henderson  <rth@redhat.com>
14991
14992         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
14993         NOTE_INSN_BASIC_BLOCK.
14994         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
14995         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
14996         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
14997         to be deleted.
14998         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
14999         add in_use field.
15000         (add_cfi): Disable check redefining cfa away from drap.
15001         (lookup_cfa_1): Add remember argument; handle remember/restore.
15002         (lookup_cfa): Pass remember argument.
15003         (cfa_remember): New.
15004         (compute_barrier_args_size_1): Remove sibcall check.
15005         (dwarf2out_frame_debug_def_cfa): New.
15006         (dwarf2out_frame_debug_adjust_cfa): New.
15007         (dwarf2out_frame_debug_cfa_offset): New.
15008         (dwarf2out_frame_debug_cfa_register): New.
15009         (dwarf2out_frame_debug_cfa_restore): New.
15010         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
15011         (dwarf2out_begin_epilogue): New.
15012         (dwarf2out_frame_debug_restore_state): New.
15013         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
15014         DW_CFA_restore_state.
15015         (output_cfi_directive): Likewise.
15016         (convert_cfa_to_fb_loc_list): Likewise.
15017         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
15018         * dwarf2out.h: Update.
15019         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
15020         (copy_insn_1): Early out for null.
15021         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
15022         and dwarf2out_frame_debug_restore_state.
15023         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
15024         (prologue_insn_hash, epilogue_insn_hash): New.
15025         (free_after_compilation): Adjust freeing accordingly.
15026         (record_insns): Create hash table if needed; push insns into
15027         hash instead of array.
15028         (maybe_copy_epilogue_insn): New.
15029         (contains): Search hash table instead of array.
15030         (sibcall_epilogue_contains): Remove.
15031         (thread_prologue_and_epilogue_insns): Split eh_return insns
15032         and mark them as epilogues.
15033         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
15034         scanning in terms of basic blocks.
15035         * insn-notes.def (CFA_RESTORE_STATE): New.
15036         * jump.c (returnjump_p_1): Accept EH_RETURN.
15037         (eh_returnjump_p_1, eh_returnjump_p): New.
15038         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
15039         CFA_REGISTER, CFA_RESTORE): New.
15040         * rtl.def (EH_RETURN): New.
15041         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
15042
15043         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
15044         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
15045
15046         * config/i386/i386.c (gen_push): Update cfa state.
15047         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
15048         add a CFA_ADJUST_CFA note.
15049         (ix86_dwarf_handle_frame_unspec): Remove.
15050         (ix86_expand_prologue): Update cfa state.
15051         (ix86_emit_restore_reg_using_pop): New.
15052         (ix86_emit_restore_regs_using_pop): New.
15053         (ix86_emit_leave): New.
15054         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
15055         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
15056         * config/i386/i386.h (struct machine_cfa_state): New.
15057         (ix86_cfa_state): New.
15058         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
15059         (eh_return_internal): Merge from eh_return_<mode>,
15060         use eh_return rtx, split w/ epilogue.
15061
15062 2009-05-29  Ian Lance Taylor  <iant@google.com>
15063
15064         * builtins.c (validate_gimple_arglist): Don't use va_arg with
15065         enum type.
15066         * calls.c (emit_library_call_value_1): Likewise.
15067
15068         * c-typeck.c (c_build_va_arg): New function.
15069         * c-tree.h (c_build_va_arg): Declare.
15070         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
15071         instead of build_va_arg.
15072
15073 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
15074
15075         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
15076         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
15077         (ptr_difference_cost): Use affine combinations to compute it.
15078         (difference_cost): Likewise.
15079         (get_computation_cost_at): Compute more accurate cost for addresses
15080         if the ratio is a multiplier allowed in addresses.
15081         For non-addresses, consider that an additional offset or symbol is
15082         added only once.
15083
15084 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
15085
15086         * config/i386/i386.c (ix86_decompose_address): Avoid useless
15087         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
15088
15089         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
15090         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
15091         (prefix_rex): For UNIT_MMX don't imply the prefix by default
15092         if MODE_DI.
15093         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
15094         to 1 for TYPE_SSE{IADD1,CVT1}.
15095         (prefix_vex_imm8): Removed.
15096         (length_vex): Only pass 1 as second argument to
15097         ix86_attr_length_vex_default if prefix_extra is 0.
15098         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
15099         (length): For prefix vex computation use length_immediate
15100         attribute instead of prefix_vex_imm8.
15101         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
15102         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
15103         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
15104         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
15105         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
15106         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
15107         a space in between the operands.
15108         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
15109         if one operand is 0xff and the other one si, di, bp or sp.
15110         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
15111         other one si, di, bp or sp.
15112         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
15113         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
15114         type and mode attributes.
15115         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
15116         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
15117         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
15118         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
15119         prefix_data16 attribute iff MODE_DF.
15120         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
15121         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
15122         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
15123         constm128_operand in length_immediate computation.
15124         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
15125         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
15126         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
15127         length_immediate attribute to 1.
15128         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
15129         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
15130         for certain alternatives.
15131         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
15132         prefix_data16 attribute if MODE_V1DF.
15133         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
15134         length_immediate to 1.
15135         (set_got_rex64, set_rip_rex64): Remove length attribute, set
15136         length_address to 4, set mode attribute to MODE_DI.
15137         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
15138         (fxam<mode>2_i387): Set length attribute to 4.
15139         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
15140         *prefetch_3dnow_rex): Override length_address attribute.
15141         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
15142         attributes.
15143         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
15144         (constm128_operand): Removed.
15145         * config/i386/i386.c (memory_address_length): For
15146         disp && !index && !base in 64-bit mode account for SIB byte if
15147         print_operand_address can't optimize disp32 into disp32(%rip)
15148         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
15149         for fs: or gs: segment.
15150         (ix86_attr_length_immediate_default): When checking if shortform
15151         is possible, truncate immediate to the length of the non-shortened
15152         immediate.
15153         (ix86_attr_length_address_default): Ignore MEM_P operands
15154         with X constraint.
15155         (ix86_attr_length_vex_default): Only check for DImode on
15156         GENERAL_REG_P operands.
15157         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
15158         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
15159         (sse_cvttps2pi): Clear prefix_rep attribute.
15160         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
15161         attribute.
15162         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
15163         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
15164         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
15165         iff operand 2 is const_int_operand.
15166         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
15167         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
15168         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
15169         instead of vex.
15170         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
15171         prefix_data16.
15172         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
15173         prefix_data16 attribute for movlpd and movhpd instructions.
15174         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
15175         length_immediate for shufpd instruction.
15176         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
15177         (avx_cmpp<avxmodesuffixf2c><mode>3,
15178         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
15179         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
15180         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
15181         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
15182         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
15183         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
15184         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
15185         prefix_data16 attribute for the first alternative to 1.
15186         (*avx_loadlps): Override length_immediate for the first alternative.
15187         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
15188         attributes for second alternative.
15189         (*vec_concatv2sf_sse4_1): Override length_immediate and
15190         prefix_data16 attributes for second alternative.
15191         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
15192         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
15193         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
15194         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
15195         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
15196         prefix_data16 and length_immediate to 1.
15197         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
15198         to 1.
15199         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
15200         prefix_extra attribute for variants that don't have 0f prefix alone.
15201         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
15202         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
15203         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
15204         *sse4_1_pextrd): Set length_immediate to 1.
15205         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
15206         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
15207         to 1.
15208         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
15209         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
15210         length_immediate to 1 for second alternative.
15211         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
15212         prefix_extra and length_immediate attributes for the first
15213         alternative.
15214         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
15215         first alternative.
15216         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
15217         to 1 for the first and third alternative.
15218         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
15219         alternative.
15220         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
15221         attribute.
15222         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
15223         attribute to 0.
15224         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
15225         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
15226         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
15227         *avx_psign<mode>3): Set prefix_extra attribute to 1.
15228         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
15229         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
15230         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
15231         ssse3_psign<mode>3): Override prefix_rex attribute.
15232         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
15233         (ssse3_palignrti): Override length_immediate to 1.
15234         (ssse3_palignrdi): Override length_immediate to 1, override
15235         prefix_rex attribute.
15236         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
15237         (sse4a_extrqi): Override length_immediate to 2.
15238         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
15239         (sse4a_insertq): Override prefix_data16 to 0.
15240         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
15241         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
15242         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
15243         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
15244         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
15245         and length_immediate to 1.
15246         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
15247         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
15248         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
15249         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
15250         and length_immediate to 1.
15251         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
15252         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
15253         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
15254         avx_ptest256): Override prefix_extra to 1.
15255         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
15256         Override prefix_data16 and length_immediate to 1.
15257         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
15258         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
15259         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
15260         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
15261         prefix_data16 to 0 and prefix_extra to 2.
15262         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
15263         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
15264         attribute.
15265         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
15266         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
15267         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
15268         and prefix_extra to 2.
15269         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
15270         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
15271         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
15272         avx_vpermilvar<mode>3,
15273         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
15274         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
15275         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
15276         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
15277         Override prefix_extra to 1.
15278         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
15279         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
15280         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
15281         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
15282         prefix_extra and length_immediate to 1.
15283         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
15284         modrm to 0.
15285         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
15286         to 1 for the first alternative.
15287         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
15288         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
15289         cases.
15290         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
15291         *movv2sf_internal_avx, *movv2sf_internal): Override
15292         prefix_rep attribute for certain alternatives.
15293         (*mov<mode>_internal): Override prefix_rep or prefix_data16
15294         attributes for certain alternatives.
15295         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
15296         attributes for certain alternatives.
15297         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
15298         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
15299         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
15300         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
15301         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
15302         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
15303         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
15304         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
15305         length_immediate to 1 if operand 2 is const_int_operand.
15306         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
15307         *vec_extractv2si_1): Set length_immediate attribute to 1.
15308         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
15309         using old 3DNOW insn rather than SSE/3DNOW_A.
15310         (mmx_emms, mmx_femms): Clear modrm attribute.
15311
15312 2009-05-29  Martin Jambor  <mjambor@suse.cz>
15313
15314         * tree-sra.c:  New implementation of SRA.
15315
15316         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
15317         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
15318         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
15319         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
15320         (SRA_MAX_STRUCTURE_COUNT): Removed.
15321         (SRA_FIELD_STRUCTURE_RATIO): Removed.
15322         * doc/invoke.texi (sra-max-structure-size): Removed.
15323         (sra-field-structure-ratio): Removed.
15324
15325 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
15326
15327         PR middle-end/40291
15328         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
15329         before expansion.
15330
15331 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
15332
15333         PR rtl-optimization/40101
15334         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
15335         seqno.  Adjust comment.
15336         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
15337         inserting bookkeeping before a jump, the jump is not scheduled.
15338         When no positive seqno found, provide a value.  Add comment.
15339
15340 2009-05-29  Richard Guenther  <rguenther@suse.de>
15341
15342         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
15343         short-cutting on the first component.
15344
15345 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
15346
15347         PR middle-end/39958
15348         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
15349         for trees other than decls/types.
15350
15351 2009-05-29  Richard Guenther  <rguenther@suse.de>
15352
15353         * tree-ssa-operands.c (get_expr_operands): Do not handle
15354         INDIRECT_REFs in the handled-component case.  Remove
15355         unused get_ref_base_and_extent case.
15356         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
15357         tree_low_cst and host_integerp where possible.
15358         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
15359         codes for equivalence.
15360         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
15361
15362 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
15363
15364         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
15365         to tmake_file for i[34567]86-*-cygwin*.
15366
15367 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
15368
15369         PR target/40017
15370         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
15371         (altivec_categorize_keyword, init_vector_keywords,
15372         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
15373         similar to bool.
15374
15375 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
15376
15377         * tree.c (handle_dll_attribute): Check if node is
15378         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
15379
15380 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
15381
15382         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
15383         component.
15384         (thumb2_zero_extendqidi2): Likewise.
15385
15386 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
15387
15388         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
15389         instead of gen_movrt.
15390         * config/sh/sh.md (movrt): Remove.
15391
15392 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
15393
15394         * doc/invoke.texi (IA-64 Options):
15395         Add -msdata, -mfused-madd, -mno-inline-float-divide,
15396         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
15397         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
15398         -msched-prefer-non-control-spec-insns,
15399         -msched-stop-bits-after-every-cycle,
15400         -msched-count-spec-in-critical-path,
15401         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
15402         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
15403         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
15404         and -msched-spec-verbose.
15405
15406 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
15407
15408         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
15409         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
15410         error if used.
15411         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
15412
15413 2009-05-28  Richard Guenther  <rguenther@suse.de>
15414
15415         * tree-ssa-alias.c (ao_ref_init): New function.
15416         (ao_ref_base): Likewise.
15417         (ao_ref_base_alias_set): Likewise.
15418         (ao_ref_alias_set): Likewise.
15419         (refs_may_alias_p_1): Change signature.
15420         (refs_may_alias_p): Adjust.
15421         (refs_anti_dependent_p): Likewise.
15422         (refs_output_dependent_p): Likewise.
15423         (call_may_clobber_ref_p_1): Change signature.
15424         (call_may_clobber_ref_p): Adjust.
15425         (stmt_may_clobber_ref_p_1): New function split out from ...
15426         (stmt_may_clobber_ref_p): ... here.
15427         (maybe_skip_until): Adjust signature.
15428         (get_continuation_for_phi): Likewise.
15429         (walk_non_aliased_vuses): Likewise.
15430         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
15431         (ao_ref_init): Declare.
15432         (ao_ref_base): Likewise.
15433         (ao_ref_alias_set): Likewise.
15434         (stmt_may_clobber_ref_p_1): Likewise.
15435         (walk_non_aliased_vuses): Adjust.
15436         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
15437         (get_ref_from_reference_ops): remove.
15438         (vn_reference_lookup_2): Adjust signature.
15439         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
15440         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
15441         (vn_reference_lookup): Adjust.
15442         (vn_reference_insert): Likewise.
15443         (vn_reference_insert_pieces): Adjust signature.
15444         (visit_reference_op_call): Adjust.
15445         * tree-ssa-pre.c (get_expr_type): Simplify.
15446         (phi_translate_1): Adjust.
15447         (compute_avail): Likewise.
15448         (translate_vuse_through_block): Do not re-build trees.
15449         (value_dies_in_block_x): Likewise.
15450         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
15451         fields.
15452         (vn_reference_lookup_pieces): Adjust declaration.
15453         (vn_reference_insert_pieces): Likewise.
15454
15455 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
15456
15457         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
15458         with checking disabled.
15459
15460 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
15461
15462         PR target/37216
15463
15464         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
15465         macro definition for support of three-operand format aligned
15466         .comm directive in assembler on cygwin/pe/mingw target OS.
15467         * configure:  Regenerate.
15468         * config.h:  Regenerate.
15469
15470         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
15471         aligned form of .comm directive if -mpe-aligned-commons is in effect.
15472         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
15473
15474         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
15475         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
15476
15477 2009-05-28  Ira Rosen  <irar@il.ibm.com>
15478
15479         PR tree-optimization/40254
15480         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
15481         in analysis of basic blocks.
15482
15483 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
15484
15485         PR middle-end/33699
15486         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
15487         * target-def.h (TARGET_CONST_ANCHOR): New macro.
15488         (TARGET_INITIALIZER): Use it.
15489         * cse.c (CHEAPER): Move it up to the other macros.
15490         (insert): Rename this ...
15491         (insert_with_costs): ... to this.  Add cost parameters.  Update
15492         function comment.
15493         (insert): New function.  Call insert_with_costs.
15494         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
15495         find_reg_offset_for_const, try_const_anchors): New functions.
15496         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
15497         when using a const-anchor.  Call insert_const_anchors.
15498         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
15499         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
15500
15501 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
15502
15503         * tree-inline.c (remap_decls): Enable nonlocalized variables
15504         when not optimizing.
15505
15506 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
15507
15508         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
15509         Simplify other tests involving optimize.
15510
15511 2009-05-27  Tom Tromey  <tromey@redhat.com>
15512
15513         * unwind-dw2.c (_Unwind_DebugHook): New function.
15514         (uw_install_context): Call _Unwind_DebugHook.
15515
15516 2009-05-27  Tom Tromey  <tromey@redhat.com>
15517
15518         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
15519
15520 2009-05-27  Ian Lance Taylor  <iant@google.com>
15521
15522         * Makefile.in (LINKER, LINKER_FLAGS): Define.
15523         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
15524         (ALL_LINKERFLAGS): Define.
15525         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
15526         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
15527         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
15528         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
15529         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
15530         $(LINKER_FOR_BUILD).
15531         (build/gcov-iov$(build_exeext)): Likewise.
15532
15533 2009-05-27  Julian Brown  <julian@codesourcery.com>
15534
15535         * gcse.c (target.h): Include.
15536         (can_assign_to_reg_without_clobbers_p): Check that the target allows
15537         copy of argument to a pseudo register.
15538
15539 2009-05-27  Diego Novillo  <dnovillo@google.com>
15540
15541         * tree-ssa-live.c (dump_scope_block): Document arguments.
15542         (dump_scope_blocks): Document.
15543         (debug_scope_blocks): New.
15544         * tree-flow.h (debug_scope_blocks): Declare.
15545
15546 2009-05-21  Denis Chertykov  <denisc@overta.ru>
15547
15548         * doc/contrib.texi (Contributors): Add myself to the list.
15549
15550 2009-05-27  Olivier Hainque  <hainque@adacore.com>
15551
15552         * expr.c (target_align): New function.  Alignment the TARGET of an
15553         assignment may be assume to have.
15554         (highest_pow2_factor_for_target): Use it instead of relying on
15555         immediate tree attributes of TARGET, not necessarily honored when
15556         intermediate bitfields are involved.
15557
15558 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
15559
15560         PR target/40266
15561         * config/i386/driver-i386.c (host_detect_local_cpu): Support
15562         AVX, SSE4, AES, PCLMUL and POPCNT.
15563
15564 2009-05-27  Diego Novillo  <dnovillo@google.com>
15565
15566         * tree-pretty-print.c (dump_location): New.
15567         (dump_generic_node): Call it.
15568         Factor code to handle BLOCK nodes ...
15569         (dump_block_node): ... here.
15570
15571 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
15572
15573         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
15574         with it.
15575         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
15576         included.
15577         * gcc-plugin.h: Include config.h and system.h.
15578         (IN_GCC): Define if not defined.
15579
15580 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
15581
15582         PR middle-end/40249
15583         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
15584         with -fno-inline.
15585
15586 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
15587
15588         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
15589         applicable.
15590         * config/m32r/m32r.h: Ditto.
15591         * config/m32r/m32r.md: Ditto.
15592         * config/m32r/predicates.md: Ditto.
15593
15594 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
15595
15596         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
15597
15598 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
15599
15600         * doc/plugins.texi
15601         (Loading plugins): typo.
15602         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
15603         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
15604         (Interacting with the GCC Garbage Collector): Added new section.
15605         (Giving information about a plugin): Added new section for
15606         PLUGIN_INFO.
15607         * ggc.h (ggc_register_root_tab): Added declaration.
15608         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
15609         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
15610         (register_callback): Improved comment in declaration.
15611         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
15612         (extra_root_vec) Added static variable for dynamic roots registration.
15613         (ggc_register_root_tab) Added new routine.
15614         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
15615         PLUGIN_GGC_MARKING event.
15616         * ggc-zone.c: Include plugin.h.
15617         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
15618         * ggc-page.c: Include plugin.h.
15619         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
15620         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
15621         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
15622         (register_callback): check lack of callbacks for
15623         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
15624         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
15625         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
15626         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
15627         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
15628         dependency on plugin.h.
15629         (plugin.o): Added dependency on ggc.h...
15630
15631 2009-05-26  Richard Guenther  <rguenther@suse.de>
15632
15633         PR middle-end/40248
15634         Revert
15635         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
15636         with mismatched comparison modes.
15637
15638         * expr.c (expand_expr_real_1): Expand the operand of a
15639         VIEW_CONVERT_EXPR in its natural mode.
15640
15641 2009-05-26  Ian Lance Taylor  <iant@google.com>
15642
15643         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
15644         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
15645         (ALL_COMPILERFLAGS): Define.
15646         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
15647         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
15648         (collect2$(exeext), collect2.o): Likewise.
15649         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
15650         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
15651         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
15652         (libbackend.o, intl.o, cppdefault.o): Likewise.
15653         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
15654         (build/%.o): Use $(COMPILER_FOR_BUILD).
15655         (build/gen%$(build_exeext)): Likewise.
15656         (build/gcov-iov$(build_exeext)): LIkewise.
15657         * config/t-darwin (darwin.o): Use $(COMPILER).
15658         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
15659         * config/t-sol2 (sol2-c.o): Likewise.
15660         (sol2.o): Likewise.
15661         * config/t-vxworks (vxworks.o): Likewise.
15662         * config/x-darwin (host-darwin.o): Likewise.
15663         * config/x-hpux (host-hpux.o): Likewise.
15664         * config/x-linux (host-linux.o): Likewise.
15665         * config/x-solaris (host-solaris.o): Likewise.
15666         * config/alpha/x-alpha (driver-alpha.o): Likewise.
15667         * config/arm/t-arm (arm-c.o): Likewise.
15668         * config/arm/t-pe (pe.o): Likewise.
15669         * config/arm/t-wince-pe (pe.o): Likewise.
15670         * config/i386/t-cygming (winnt.o): Likewise.
15671         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
15672         * config/i386/t-cygwin (cygwin1.o): Likewise.
15673         (cygwin2.o): Likewise.
15674         * config/i386/t-i386 (i386-c.o): Likewise.
15675         * config/i386/t-interix (winnt.o): Likewise.
15676         * config/i386/t-netware (netware.o): Likewise.
15677         * config/i386/t-nwld (nwld.o): Likewise.
15678         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
15679         * config/i386/x-i386 (driver-i386.o): Likewise.
15680         * config/i386/x-cygwin (host-cygwin.o): Likewise.
15681         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
15682         * config/ia64/t-ia64 (ia64-c.o): Likewise.
15683         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
15684         * config/mips/x-native (driver-native.o): Likewise.
15685         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
15686         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
15687         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
15688         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
15689         * config/score/t-score-elf (score7.o): Likewise.
15690         (score3.o): Likewise.
15691         * config/sh/t-sh (sh-c.o): Likewise.
15692         * config/sh/t-symbian (sh-c.o): Likewise.
15693         (symbian.o): Likewise.
15694         * config/spu/t-spu-elf (spu-c.o): Likewise.
15695         * config/v850/t-v850 (v850-c.o): Likewise.
15696         * config/v850/t-v850e (v850-c.o): Likewise.
15697
15698 2009-05-26  Richard Guenther  <rguenther@suse.de>
15699
15700         PR tree-optimization/40122
15701         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
15702         VECTOR_CSTs if possible.
15703         (fold_gimple_assign): Likewise.
15704
15705 2009-05-26  Richard Guenther  <rguenther@suse.de>
15706
15707         PR middle-end/40252
15708         * fold-const.c (fold_binary): Use the correct types for building
15709         rotates.
15710
15711 2009-05-26  Richard Guenther  <rguenther@suse.de>
15712
15713         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
15714         redundant calls to merge_alias_info.
15715         (bump_vector_ptr): Likewise.
15716         * tree-ssa-copy.c (merge_alias_info): Remove.
15717         (replace_exp_1): Remove call to merge_alias_info.
15718         (propagate_tree_value): Likewise.
15719         (fini_copy_prop): Propagate points-to info.
15720         * tree-flow.h (merge_alias_info): Remove.
15721
15722 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
15723
15724         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
15725
15726 2009-05-25  Jan Hubicka  <jh@suse.cz>
15727
15728         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
15729         * cgraph.h (struct inline_summary): New filed self_wize,
15730         size_inlining_benefit, self_time and time_inlining_benefit.
15731         (struct cgraph_global_info): Replace insns by time ans size fields.
15732         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
15733         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
15734         (ipcp_update_callgraph): Do not touch function bodies.
15735         * ipa-inline.c: Include except.h
15736         (MAX_TIME): New constant.
15737         (overall_insns): Remove.
15738         (leaf_node_p): New.
15739         (overall_size, max_benefit): New static variables.
15740         (cgraph_estimate_time_after_inlining): New function.
15741         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
15742         (cgraph_clone_inlined_nodes): Update size.
15743         (cgraph_mark_inline_edge): Update size.
15744         (cgraph_estimate_growth): Use size info.
15745         (cgraph_check_inline_limits): Check size.
15746         (cgraph_default_inline_p): Likewise.
15747         (cgraph_edge_badness): Compute badness based on benefit and size cost.
15748         (cgraph_decide_recursive_inlining): Check size.
15749         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
15750         and times.
15751         (cgraph_decide_inlining): Likewise.
15752         (cgraph_decide_inlining_incrementally): Likewise; honor
15753         PARAM_EARLY_INLINING_INSNS.
15754         (likely_eliminated_by_inlining_p): New predicate.
15755         (estimate_function_body_sizes): New function.
15756         (compute_inline_parameters): Use it.
15757         * except.c (must_not_throw_labels): New function.
15758         * except.h (must_not_throw_labels): Declare.
15759         * tree-inline.c (init_inline_once): Kill inlining_weigths
15760         * tree-ssa-structalias.c: Avoid uninitialized warning.
15761         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
15762         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
15763         (PARAM_INLINE_CALL_COST): Remove.
15764         (PARAM_EARLY_INLINING_INSNS): New.
15765
15766 2009-05-25  Richard Guenther  <rguenther@suse.de>
15767
15768         PR tree-optimization/36327
15769         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
15770         callback for reference translation or lookup at the point of may-defs.
15771         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
15772         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
15773         for union COMPONENT_REFs.
15774         (vn_reference_lookup_3): New callback.  Lookup from memset
15775         and CONSTRUCTOR assignment, translate through struct copies.
15776         (vn_reference_lookup_pieces): Make sure to not free the
15777         passed operands array.  Adjust walk_non_aliased_vuses call.
15778         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
15779         make sure we do not leak memory.
15780
15781 2009-05-25  Richard Guenther  <rguenther@suse.de>
15782
15783         * tree-ssa-alias.h (dump_points_to_solution): Declare.
15784         * tree-inline.c (expand_call_inline): Reset the escaped and
15785         callused solutions.
15786         * tree-ssa-structalias.c (pass_build_ealias): New.
15787         * tree-pass.h (pass_build_ealias): Declare.
15788         * passes.c (init_optimization_passes): Add PTA during
15789         early optimizations.
15790         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
15791         and CALLUSED solutions.
15792         (dump_points_to_solution): New function, split out from ...
15793         (dump_points_to_info_for): ... here.
15794         * tree-parloops.c (parallelize_loops): Reset the escaped and
15795         callused solutions.
15796
15797 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15798
15799         PR bootstrap/40027
15800         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
15801         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
15802
15803 2009-05-25  Ira Rosen  <irar@il.ibm.com>
15804
15805         PR tree-optimization/40238
15806         * tree-vect-stmts.c (vect_init_vector): Insert initialization
15807         statements after basic block's labels.
15808         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
15809         to free the allocated memory.
15810
15811 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
15812
15813         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
15814         return address with a USE.
15815
15816 2009-05-24  Richard Guenther  <rguenther@suse.de>
15817
15818         PR middle-end/40233
15819         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
15820         array type from the main variant of the inner type.
15821
15822 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
15823
15824         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
15825         definition to bool (from int) to un-break build.
15826         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
15827
15828 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
15829
15830         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
15831         discard_stmt_changes): Delete.
15832         * tree-ssa-operands.c (scb_stack): Delete.
15833         (init_ssa_operands): Do not initialize it.
15834         (fini_ssa_operands): Do not free it.
15835         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
15836
15837         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
15838         update_stmt, remove the others.  Fix comments.
15839         * tree-dfa.c (optimize_stack_restore): Likewise.
15840         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
15841         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
15842         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
15843         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
15844         Likewise.
15845         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
15846         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
15847         (dom_opt_finalize_block): Likewise, adjusting access to
15848         stmts_to_rescan.
15849         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
15850         (stmts_to_rescan): Change item type to gimple.
15851         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
15852
15853 2009-05-24  Ira Rosen  <irar@il.ibm.com>
15854
15855         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
15856         * tree-pass.h (pass_slp_vectorize): New pass.
15857         * params.h (SLP_MAX_INSNS_IN_BB): Define.
15858         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
15859         * tree-vectorizer.c (timevar.h): Include.
15860         (user_vect_verbosity_level): Declare.
15861         (vect_location): Fix comment.
15862         (vect_set_verbosity_level): Update user_vect_verbosity_level
15863         instead of vect_verbosity_level.
15864         (vect_set_dump_settings): Add an argument. Ignore user defined
15865         verbosity if dump flags require higher level of verbosity. Print to
15866         stderr only for loop vectorization.
15867         (vectorize_loops): Update call to vect_set_dump_settings.
15868         (execute_vect_slp): New function.
15869         (gate_vect_slp): Likewise.
15870         (struct gimple_opt_pass pass_slp_vectorize): New.
15871         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
15872         access its members.
15873         (vec_info_for_bb): New function.
15874         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
15875         (VECTORIZATION_ENABLED): New macro.
15876         (SLP_ENABLED, SLP_DISABLED): Likewise.
15877         (vect_is_simple_use): Add bb_vec_info argument.
15878         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
15879         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
15880         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
15881         vect_schedule_slp, vect_analyze_slp): Likewise.
15882         (vect_analyze_stmt): Add slp_tree argument.
15883         (find_bb_location): Declare.
15884         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
15885         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
15886         (vect_analyze_loop_operations, vect_analyze_loop,
15887         get_initial_def_for_induction, vect_create_epilog_for_reduction,
15888         vect_finalize_reduction, vectorizable_reduction,
15889         vectorizable_live_operation, vect_transform_loop): Likewise.
15890         * tree-data-ref.c (dr_analyze_innermost): Update comment,
15891         skip evolution analysis if analyzing a basic block.
15892         (dr_analyze_indices): Likewise.
15893         (initialize_data_dependence_relation): Skip the test whether the
15894         object is invariant for basic blocks.
15895         (compute_all_dependences): Skip dependence analysis for data
15896         references in basic blocks.
15897         (find_data_references_in_stmt): Don't fail in case of invariant
15898         access in basic block.
15899         (find_data_references_in_bb): New function.
15900         (find_data_references_in_loop): Move code to
15901         find_data_references_in_bb and add a call to it.
15902         (compute_data_dependences_for_bb): New function.
15903         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
15904         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
15905         that STEP is 0.
15906         (vect_analyze_data_ref_dependence): Check for interleaving in case of
15907         unknown dependence in basic block and fail in case of dependence in
15908         basic block.
15909         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
15910         dependence instances from either loop or basic block vectorization
15911         info.
15912         (vect_compute_data_ref_alignment): Check if it is loop vectorization
15913         before calling nested_in_vect_loop_p.
15914         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
15915         dependence instances from either loop or basic block vectorization
15916         info.
15917         (vect_verify_datarefs_alignment): Likewise.
15918         (vect_enhance_data_refs_alignment): Adjust function calls.
15919         (vect_analyze_data_refs_alignment): Likewise.
15920         (vect_analyze_group_access): Fix printing. Skip different checks if
15921         DR_STEP is 0. Keep strided stores either in loop or basic block
15922         vectorization data structure. Fix indentation.
15923         (vect_analyze_data_ref_access): Fix comments, allow zero step in
15924         basic blocks.
15925         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
15926         dependence instances from either loop or basic block vectorization
15927         info.
15928         (vect_analyze_data_refs): Update comment. Call
15929         compute_data_dependences_for_bb to analyze basic blocks.
15930         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
15931         case of loop vectorization. In case of basic block vectorization use
15932         data-ref itself as a base.
15933         (vect_create_data_ref_ptr): In case of basic block vectorization:
15934         don't advance the pointer, add new statements before the current
15935         statement.  Adjust function calls.
15936         (vect_supportable_dr_alignment): Support only aligned accesses in
15937         basic block vectorization.
15938         * common.opt (ftree-slp-vectorize): New flag.
15939         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
15940         (vect_pattern_recog_1): Likewise.
15941         * tree-vect-stmts.c (process_use): Likewise.
15942         (vect_init_vector): Add new statements in the beginning of the basic
15943         block in case of basic block SLP.
15944         (vect_get_vec_def_for_operand): Adjust function calls.
15945         (vect_finish_stmt_generation): Likewise.
15946         (vectorizable_call): Add assert that it is loop vectorization, adjust
15947         function calls.
15948         (vectorizable_conversion, vectorizable_assignment): Likewise.
15949         (vectorizable_operation): In case of basic block SLP, take
15950         vectorization factor from statement's type and skip the relevance
15951         check. Adjust function calls.
15952         (vectorizable_type_demotion): Add assert that it is loop
15953         vectorization, adjust function calls.
15954         (vectorizable_type_promotion): Likewise.
15955         (vectorizable_store): Check for outer loop only in case of loop
15956         vectorization. Adjust function calls. For basic blocks, skip the
15957         relevance check and don't advance pointers.
15958         (vectorizable_load): Likewise.
15959         (vectorizable_condition): Add assert that it is loop vectorization,
15960         adjust function calls.
15961         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
15962         that it is not reduction, get vector type, call only supported
15963         functions, skip loop specific parts.
15964         (vect_transform_stmt): Check for outer loop only in case of loop
15965         vectorization.
15966         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
15967         (vect_is_simple_use): Fix comment, add new argument, fix conditions
15968         for external definition.
15969         * passes.c (pass_slp_vectorize): New pass.
15970         * tree-vect-slp.c (find_bb_location): New function.
15971         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
15972         check for patterns only in loops.
15973         (vect_build_slp_tree): Add argument, adjust function calls, fail in
15974         case of multiple types in basic block SLP.
15975         (vect_mark_slp_stmts_relevant): New function.
15976         (vect_supported_load_permutation_p): Fix comment.
15977         (vect_analyze_slp_instance): Add argument. In case of basic block
15978         SLP, take vectorization factor from statement's type, check that
15979         unrolling factor is 1. Adjust function call. Save SLP instance in
15980         either loop or basic block vectorization structure. Return FALSE,
15981         if SLP failed.
15982         (vect_analyze_slp): Add argument. Get strided stores groups from
15983         either loop or basic block vectorization structure. Return FALSE
15984         if basic block SLP failed.
15985         (new_bb_vec_info): New function.
15986         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
15987         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
15988         (vect_schedule_slp): Add argument. Get SLP instances from either
15989         loop or basic block vectorization structure. Set vectorization factor
15990         to be 1 for basic block SLP.
15991         (vect_slp_transform_bb): New function.
15992         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
15993
15994 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
15995
15996         * final.c (shorten_branches): Do not align labels for jump tables.
15997         (final_scan_insn): Use JUMP_TABLE_DATA_P.
15998
15999 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
16000
16001         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
16002         Remove outdated reference to flow.c and fix nits.
16003         * doc/gccint.texi: Tweak RTL description.
16004         * doc/rtl.texi: Likewise.
16005
16006 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
16007
16008         * config/avr/avr.c: Change my email address.
16009         * config/avr/avr.h: Likewise.
16010         * config/avr/avr.md: Likewise.
16011         * config/avr/avr-protos.h: Likewise.
16012         * config/avr/libgcc.S: Likewise.
16013
16014 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
16015
16016         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
16017         (spu_split_load, spu_split_store): Change return type to int.
16018         (spu_split_convert): Declare.
16019         * config/spu/predicates.md (spu_mem_operand): Remove.
16020         (spu_mov_operand): Update.
16021         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
16022         * config/spu/spu.c (regno_aligned_for_load): Remove.
16023         (reg_aligned_for_addr, spu_expand_load): Define.
16024         (spu_expand_extv): Reimplement and handle MEM.
16025         (spu_expand_insv): Handle MEM.
16026         (spu_sched_reorder): Handle insn's with length 0.
16027         (spu_legitimate_address_p): Reimplement.
16028         (store_with_one_insn_p): Return TRUE for any mode with size
16029         larger than 16 bytes.
16030         (address_needs_split): Define.
16031         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
16032         operands.
16033         (spu_convert_move): Define.
16034         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
16035         (spu_split_store): Change all MEM's to TImode.
16036         (spu_init_expanders): Preallocate registers that correspond to
16037         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
16038         mark_reg_pointer.
16039         (spu_split_convert): Define.
16040         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
16041         (_move<mode>, _movdi, _movti): Update predicate and condition.
16042         (load, store): Change to define_split.
16043         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
16044         extend<mode>ti2.
16045         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
16046         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
16047         define_insn_and_split of lshr<mode>3.
16048         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
16049         (<v>ashr<mode>3_imm): Define.
16050         (extv, extzv, insv): Allow MEM operands.
16051         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
16052         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
16053         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
16054         (_spu_convert2): Change to define_insn_and_split and remove the
16055         corresponding define_peephole2.
16056         (stack_protect_set, stack_protect_test, stack_protect_test_si):
16057         Change predicates to memory_operand.
16058
16059 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
16060
16061         * config/arm/thumb2.md: Add 16-bit multiply instructions.
16062
16063 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
16064
16065         PR tree-optimization/40219
16066         * tree.c (iterative_hash_expr): Make sure the builtin function is
16067         a normal builtin function and not a front end or back end builtin
16068         before indexing into the built_in_decls array.
16069
16070 2009-05-22  Richard Guenther  <rguenther@suse.de>
16071
16072         PR middle-end/38964
16073         * alias.c (write_dependence_p): Do not use TBAA for answering
16074         anti-dependence or output-dependence.
16075         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
16076         (emit_pointer_definition): Remove.
16077         (emit_alias_warning): Likewise.
16078         (find_what_var_points_to): Remove TBAA pruning code.
16079         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
16080         violations.
16081         (compute_points_to_sets): Remove code computing the set of
16082         dereferenced pointers.
16083         * tree-data-ref.c (dr_may_alias_p): Properly use the split
16084         oracle for querying anti and output dependencies.
16085         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
16086         if TBAA may be applied.
16087         (refs_anti_dependent_p): New function.
16088         (refs_output_dependent_p): Likewise.
16089         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
16090         (refs_output_dependent_p): Likewise.
16091         * doc/tree-ssa.texi (Memory model): New section.
16092         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
16093         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
16094         * cfgexpand.c (expand_gimple_basic_block): Do not handle
16095         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
16096         * expr.c (expand_expr_real_1): Likewise.
16097         * gimple-low.c (lower_stmt): Likewise.
16098         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
16099         (dump_gimple_cdt): Remove.
16100         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
16101         (gimple_size): Likewise.
16102         (walk_gimple_op): Likewise.
16103         (is_gimple_stmt): Likewise.
16104         (walk_stmt_load_store_addr_ops): Likewise.
16105         (gimple_build_cdt): Remove.
16106         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
16107         * gimple.h (gimple_cdt_new_type): Remove.
16108         (gimple_cdt_new_type_ptr): Likewise.
16109         (gimple_cdt_set_new_type): Likewise.
16110         (gimple_cdt_location): Likewise.
16111         (gimple_cdt_location_ptr): Likewise.
16112         (gimple_cdt_set_location): Likewise.
16113         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
16114         * tree-cfg.c (remove_useless_stmts_1): Do not handle
16115         GIMPLE_CHANGE_DYNAMIC_TYPE.
16116         (verify_types_in_gimple_stmt): Likewise.
16117         * tree-inline.c (estimate_num_insns): Likewise.
16118         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
16119         (copy_decl_to_var): Likewise.
16120         (copy_result_decl_to_var): Likewise.
16121         * tree-pretty-print.c (dump_generic_node): Do not handle
16122         CHANGE_DYNAMIC_TYPE_EXPR.
16123         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
16124         * tree-ssa-operands.c (get_expr_operands): Likewise.
16125         * tree-ssa-structalias.c (struct variable_info): Remove
16126         no_tbaa_pruning member.
16127         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
16128         (unify_nodes): Do not copy it.
16129         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
16130         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
16131         (set_uids_in_ptset): Do not check it.
16132         (find_what_var_points_to): Likewise.
16133         (compute_tbaa_pruning): Remove.
16134         (compute_points_to_sets): Do not call it.
16135         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
16136         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
16137         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
16138         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
16139         (DECL_NO_TBAA_P): Likewise.
16140         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
16141         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
16142         (expand_omp_atomic_pipeline): Do not set it.
16143         * print-tree.c (print_node): Do not dump it.
16144         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
16145         redundant check.
16146
16147 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
16148
16149         PR target/39856
16150         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
16151         for clobber.
16152
16153 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
16154
16155         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
16156         non-external.
16157
16158 2009-05-22  Ben Elliston  <bje@au.ibm.com>
16159
16160         * Makefile.in (bversion.h, s-bversion): New targets.
16161         (TOPLEV_H): Add bversion.h.
16162         * toplev.h: Include "bversion.h".
16163         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
16164         the __format__ attribute only if compiling with the same version
16165         of GCC as the sources (the "build version").
16166
16167 2009-05-22  Ben Elliston  <bje@au.ibm.com>
16168
16169         * c-format.c (handle_format_attribute): Fix comment typo.
16170
16171 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
16172
16173         PR target/37846
16174         * config/ia64/ia64.opt (mfused-madd): New.
16175         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
16176         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
16177         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
16178         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
16179         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
16180         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
16181         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
16182         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
16183         instruction if !TARGET_FUSED_MADD.
16184         (fpma, fpms): Remove colon from name.
16185
16186 2009-05-22  Richard Guenther  <rguenther@suse.de>
16187
16188         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
16189         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
16190         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
16191         TARGET_MEM_REF.
16192         (create_expression_by_pieces): Only convert if necessary.
16193         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
16194         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
16195
16196 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
16197
16198         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
16199         regular pattern from a template and rename it ...
16200         (*extzv_truncsi_exts): ... to this.
16201
16202 2009-05-21  Richard Guenther  <rguenther@suse.de>
16203
16204         * cgraph.h (struct cgraph_node): Remove inline_decl member.
16205         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
16206         (cgraph_default_inline_p): Likewise.
16207         (cgraph_decide_inlining_incrementally): Likewise.
16208
16209 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
16210             Uros Bizjak  <ubizjak@gmail.com>
16211
16212         * config/i386/cpuid.h (bit_MOVBE): New.
16213
16214         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
16215
16216         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
16217         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
16218         (ix86_handle_option): Handle OPT_mmovbe.
16219         (ix86_target_string): Add -mmovbe.
16220         (pta_flags): Add PTA_MOVBE.
16221         (processor_alias_table): Add PTA_MOVBE to "atom".
16222         (override_options): Handle PTA_MOVBE.
16223
16224         * config/i386/i386.h (TARGET_MOVBE): New.
16225
16226         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
16227         (*bswapsi_movbe): New.
16228         (*bswapdi_movbe): Likewise.
16229         (bswapdi2): Renamed to ...
16230         (*bswapdi_1): This.
16231         (bswapdi2): New expander.
16232
16233         * config/i386/i386.opt (mmovbe): New.
16234
16235         * doc/invoke.texi: Document -mmovbe.
16236
16237 2009-05-21  Taras Glek  <tglek@mozilla.com>
16238
16239         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
16240         * gcc-plugin.h (plugin_init): Updated signature.
16241         * gcc-plugin.h (plugin_name_args): Moved to this header.
16242         * doc/plugins.texi (plugin_init): Updated documention to reflect
16243         API change.
16244         * doc/plugins.texi (plugin_name_args): Added to documention.
16245
16246 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
16247
16248         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
16249         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
16250
16251 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
16252
16253         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
16254         JUMP_TABLE_DATA_P predicates where applicable.
16255         * config/i386/predicates.md: Ditto.
16256         * config/i386/sse.md: Ditto.
16257
16258 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
16259
16260         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
16261         operand2 -128 override length_immediate attribute to 1.
16262         * config/i386/predicates.md (constm128_operand): New predicate.
16263
16264         * config/i386/i386.c (memory_address_length): Handle %r12
16265         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
16266         also check REGNO.
16267         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
16268         mode look through optional ZERO_EXTEND and SUBREG.
16269         * config/i386/i386.md (R12_REG): New define_constant.
16270         (prefix_data16): For sse unit set also for MODE_TI insns.
16271         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
16272         insns set if operand 1 is ext_QIreg_operand.
16273         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
16274         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
16275         immediate.
16276         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
16277         mode from MODE_DI to MODE_SI.
16278         (movdi_1_rex64): Override modrm and length_immediate attributes
16279         only for movabs (TYPE_IMOV, alternative 2).
16280         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
16281         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
16282         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
16283         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
16284         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
16285         prefix_rex attribute if DImode.
16286         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
16287         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
16288         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
16289         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
16290         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
16291         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
16292         Likewise.  For TYPE_IMOV clear length_immediate attribute.
16293         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
16294         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
16295         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
16296         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
16297         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
16298         or one operand TYPE_ISHIFT.
16299         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
16300         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
16301         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
16302         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
16303         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
16304         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
16305         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
16306         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
16307         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
16308         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
16309         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
16310         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
16311         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
16312         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
16313         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
16314         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
16315         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
16316         set mode attribute, don't override length attribute.
16317         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
16318         to 1.
16319         (return_internal_long): Set length attribute to 2 instead of 1.
16320         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
16321         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
16322         prefix_rex attribute.
16323         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
16324         New predicates.
16325         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
16326
16327 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16328
16329         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
16330
16331 2009-05-20  Ian Lance Taylor  <iant@google.com>
16332
16333         * tree.c (build_tree_list_vec_stat): New function.
16334         (ctor_to_vec): New function.
16335         (build_nt_call_vec): New function.
16336         (build_call_array): Change args to be a const pointer.
16337         (build_call_vec): New function.
16338         * tree.h (build_nt_call_vec): Declare.
16339         (build_tree_list_vec_stat): Declare.
16340         (build_tree_list_vec): Define.
16341         (build_call_array): Update declaration.
16342         (build_call_vec): Declare.
16343         (ctor_to_vec): Declare.
16344         * c-common.c (tree_vector_cache): New static variable.
16345         (make_tree_vector): New function.
16346         (release_tree_vector): New function.
16347         (make_tree_vector_single): New function.
16348         (make_tree_vector_copy): New function.
16349         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
16350         (make_tree_vector_single, make_tree_vector_copy): Declare.
16351         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
16352         (c_parser_expr_list): Don't manage cache here, instead call
16353         make_tree_vector.
16354         (c_parser_release_expr_list): Remove static function.
16355         (c_parser_vec_to_tree_list): Remove static function.
16356         (c_parser_attributes): Call build_tree_list_vec instead of
16357         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
16358         c_parser_release_expr_list.
16359         (c_parser_postfix_expression_after_primary): Likewise.
16360         (c_parser_objc_keywordexpr): Likewise.
16361
16362 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
16363
16364         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
16365         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
16366         TARGET_CONVERT_TO_TYPE.
16367         * hooks.c (hook_tree_const_tree_null): Define.
16368         * hooks.h (hook_tree_const_tree_null): Declare.
16369         * target.h (struct gcc_target):  Add invalid_parameter_type,
16370         invalid_return_type, promoted_type, and convert_to_type fields.
16371         * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
16372         (TARGET_INVALID_RETURN_TYPE): Define.
16373         (TARGET_PROMOTED_TYPE): Define.
16374         (TARGET_CONVERT_TO_TYPE): Define.
16375         (TARGET_INITIALIZER): Update for new fields.
16376         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
16377         (grokparms): Check targetm.invalid_parameter_type.
16378         * c-typeck.c (default_conversion): Check targetm.promoted_type.
16379         * c-convert.c (convert): Check targetm.convert_to_type.
16380
16381 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
16382
16383         * config/mips/mips.md (*extenddi_truncate<mode>,
16384         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
16385         defintions.
16386         (*extendhi_truncateqi): New define_insn_and_sptit.
16387
16388 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
16389
16390         PR middle-end/40204
16391         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
16392         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
16393
16394 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
16395
16396         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
16397         the operand of VIEW_CONVERT_EXPR.
16398
16399 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
16400
16401         * config/i386/driver-i386.c (host_detect_local_cpu): Check
16402         extended family and model for Intel processors.  Support Intel Atom.
16403
16404 2009-05-20  Olivier Hainque  <hainque@adacore.com>
16405
16406         * gstab.h (stab_code_type): Define, to be used instead of the
16407         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
16408         notice.
16409         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
16410         occurrences by stab_code_type.
16411         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
16412
16413 2009-05-20  Martin Jambor  <mjambor@suse.cz>
16414
16415         * tree-flow.h (insert_edge_copies_seq): Undeclare.
16416         (sra_insert_before): Likewise.
16417         (sra_insert_after): Likewise.
16418         (sra_init_cache): Likewise.
16419         (sra_type_can_be_decomposed_p): Likewise.
16420         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
16421         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
16422         (sra_insert_before): Likewise.
16423         (sra_insert_after): Likewise.
16424         (sra_init_cache): Likewise.
16425         (insert_edge_copies_seq): Made static and moved upwards.
16426
16427         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
16428         case.
16429
16430         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
16431
16432         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
16433         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
16434         simple copies.
16435
16436 2009-05-20  Richard Guenther  <rguenther@suse.de>
16437
16438         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
16439         with mismatched comparison modes.
16440
16441 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16442
16443         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
16444         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
16445         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
16446         with shifts for Thumb2.
16447         (orsi_notsi): New for orn.
16448         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
16449         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
16450         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
16451         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
16452         Don't invert remainder for IOR.
16453
16454 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
16455
16456         PR tree-optimization/40087
16457         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
16458         number_of_iterations_ne): Rename never_infinite argument.
16459         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
16460         number_of_iterations_le): Handle pointer-type ivs when
16461         exit_must_be_taken is false.
16462         (number_of_iterations_cond):  Do not always assume that
16463         exit_must_be_taken if the control variable is a pointer.
16464
16465 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16466
16467         * c-typeck.c (build_binary_op): Allow % on integal vectors.
16468         * doc/extend.texi (Vector Extension): Document that % is allowed too.
16469
16470 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
16471
16472         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
16473         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
16474
16475 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16476
16477         PR c/40172
16478         * c.opt (Wlogical-op): Disabled by default.
16479         * c-opt (c_common_post_options): Do not enable Wlogical-op with
16480         Wextra.
16481         * doc/invoke.texi (Wlogical-op): Likewise.
16482
16483 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
16484
16485         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
16486         into CASE_CONVERT.
16487         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
16488         Propagate the type of the first operand.
16489         <ASSERT_EXPR>: Simplify.
16490         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
16491         Rewrite using the RHS code as discriminant.
16492         <NOP_EXPR>: Turn into CASE_CONVERT.
16493         <PLUS_EXPR>: Propagate the type of the first operand.
16494
16495 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
16496
16497         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
16498         (ia64_dconst_0_375): New.
16499         * config/ia64/ia64.c (ia64_override_options): Remove
16500         -minline-sqrt-min-latency warning.
16501         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
16502         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
16503         * config/ia64/ia64.md (*sqrt_approx): Remove.
16504         (sqrtsf2): Remove #if 0.
16505         (sqrtsf2_internal_thr): Rewrite and move to div.md.
16506         (sqrtdf): Remove assert.
16507         (sqrtdf2_internal_thr): Rewrite and move to div.md.
16508         (sqrtxf2): Remove #if 0.
16509         (sqrtxf2_internal_thr): Rewrite and move to div.md.
16510         * div.md (sqrt_approx_rf): New.
16511         (sqrtsf2_internal_thr): New implementation.
16512         (sqrtsf2_internal_lat): New.
16513         (sqrtdf2_internal_thr: New implementation.
16514         (sqrtxf2_internal): New implementation.
16515
16516 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
16517             Hans-Peter Nilsson  <hp@axis.com>
16518
16519         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
16520         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
16521         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
16522         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
16523         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
16524         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
16525         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
16526         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
16527         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
16528         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
16529         * c-common.c: ...from here.
16530
16531 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16532
16533         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
16534
16535 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16536
16537         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
16538
16539 2009-05-19  Ben Elliston  <bje@au.ibm.com>
16540
16541         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
16542         assignments with memcpy calls.
16543         (add_fdes): Likewise.
16544         (binary_search_unencoded_fdes): Likewise.
16545         (linear_search_fdes): Eliminate type puns.
16546
16547 2009-05-19  Richard Guenther  <rguenther@suse.de>
16548
16549         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
16550         not falsely claim to have propagated into all uses.
16551
16552 2009-05-19  Ben Elliston  <bje@au.ibm.com>
16553
16554         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
16555         version to v3.0.
16556
16557 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
16558
16559         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
16560         * config/sh/sh.c (sh_legitimate_address_p): Make static.
16561         (TARGET_LEGITIMATE_ADDRESS_P): New.
16562         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16563         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
16564
16565 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
16566
16567         PR debug/40109
16568         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
16569         child of the containing namespace's DIE.
16570
16571 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
16572
16573         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
16574         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
16575         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
16576         extend patterns.
16577
16578 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
16579
16580         PR target/39942
16581         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
16582         gen_align with gen_pad.
16583         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
16584         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
16585
16586         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
16587         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
16588
16589         * config/i386/i386.md (align): Renamed to ...
16590         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
16591         ASM_OUTPUT_MAX_SKIP_PAD.
16592
16593 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
16594
16595         * config.gcc: Fix variable syntax.
16596
16597         PR target/39531
16598         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
16599         before calling exact_log2.
16600         (output_iorsi3): Likewise.
16601         (output_xorsi3): Likewise.
16602
16603 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
16604
16605         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
16606         for the none zero constant operand except for EQ and NE
16607         comprisons even when the first operand is R0.
16608
16609 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
16610
16611         * config/s390/2064.md: Remove trailing whitespaces.
16612         * config/s390/2084.md: Likewise.
16613         * config/s390/constraints.md: Likewise.
16614         * config/s390/fixdfdi.h: Likewise.
16615         * config/s390/libgcc-glibc.ver: Likewise.
16616         * config/s390/s390-modes.def: Likewise.
16617         * config/s390/s390-protos.h: Likewise.
16618         * config/s390/s390.c: Likewise.
16619         * config/s390/s390.h: Likewise.
16620         * config/s390/s390.md: Likewise.
16621         * config/s390/tpf-unwind.h: Likewise.
16622
16623 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
16624
16625         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
16626
16627 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
16628
16629         M68K TLS support.
16630         * configure.ac (m68k-*-*): Check if binutils support TLS.
16631         * configure: Regenerate.
16632         * config/m68k/predicates.md (symbolic_operand): Extend comment.
16633         * config/m68k/constraints.md (Cu): New constraint.
16634         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
16635         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
16636         (movsi): Handle TLS symbols.
16637         (addsi3_5200): Handle XTLS symbols, indent.
16638         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
16639         (m68k_tls_reference_p): Declare.
16640         (m68k_legitimize_address): Declare.
16641         (m68k_unwrap_symbol): Declare.
16642         * config/m68k/m68k.opt (mxtls): New option.
16643         * config/m68k/m68k.c (ggc.h): Include.
16644         (m68k_output_dwarf_dtprel): Implement hook.
16645         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
16646         (m68k_expand_prologue): Load GOT pointer when function needs it.
16647         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
16648         (m68k_legitimate_constant_address_p): Same.
16649         (m68k_decompose_address): Handle TLS references.
16650         (m68k_get_gp): New static function.
16651         (enum m68k_reloc): New contants.
16652         (TLS_RELOC_P): New macro.
16653         (m68k_wrap_symbol): New static function.
16654         (m68k_unwrap_symbol): New function.
16655         (m68k_final_prescan_insn_1): New static function.
16656         (m68k_final_prescan_insn): New function.
16657         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
16658         functions.
16659         (legitimize_pic_address): Handle TLS references..
16660         (m68k_tls_get_addr, m68k_get_tls_get_addr)
16661         (m68k_libcall_value_in_a0_p)
16662         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
16663         (m68k_call_m68k_read_tp): Helper variables and functions for ...
16664         (m68k_legitimize_tls_address): Handle TLS references.
16665         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
16666         New functions.
16667         (m68k_legitimize_address): Handle TLS symbols.
16668         (m68k_get_reloc_decoration): New static function.
16669         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
16670         UNSPEC_RELOC32.
16671         (m68k_output_dwarf_dtprel): Implement hook.
16672         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
16673         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
16674         m68k_call_* routines.
16675         (sched_attr_op_type): Handle TLS symbols.
16676         (gt-m68k.h): Include.
16677         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
16678         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
16679
16680 2009-05-18  Martin Jambor  <mjambor@suse.cz>
16681
16682         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
16683         (visit_store_addr_for_mod_analysis): New function.
16684         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
16685         (determine_cst_member_ptr): Use gimple_assign_single_p.
16686         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
16687         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
16688         operands.  Don't check number of operands of a NOP_EXPR.
16689
16690 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
16691
16692         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
16693
16694 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16695
16696         PR c/40172
16697         * c-common.c (warn_logical_operator): Don't warn if one of
16698         expression isn't always true or false.
16699
16700 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
16701
16702         * config/i386/biarch32.h: New file.
16703         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
16704
16705 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
16706
16707         * config/mips/mips.md (*zero_extend<mode>_trunchi,
16708         *zero_extend<mode>_truncqi): Merge these into ...
16709         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
16710         Name the pattern following this as *zero_extendhi_truncqi.
16711
16712 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
16713
16714         PR middle-end/39301
16715         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
16716         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
16717         (output_info): Make field HOST_WIDEST_INT.
16718         (print_statistics): Use HOST_WIDEST_INT_PRINT.
16719         (dump_bitmat_statistics): Same.
16720
16721 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
16722
16723         * config.gcc (use_gcc_stdint):  Set to wrap.
16724         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
16725         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
16726         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
16727         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
16728         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
16729         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
16730         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
16731         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
16732
16733 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
16734
16735         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
16736         tune_64.
16737         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
16738         Move definitions earlier.
16739         (OPT_ARCH64, OPT_ARCH32): Define.
16740         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
16741         and tune_64.
16742
16743 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
16744
16745         PR target/40153
16746         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
16747         implies.
16748
16749 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
16750
16751         * arm.md (movdi2): Copy non-reg values to DImode registers.
16752
16753 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
16754
16755         PR target/39942
16756         * final.c (label_to_max_skip): New function.
16757         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
16758         CODE_LABEL_NUMBER <= max_labelno.
16759         * output.h (label_to_max_skip): New prototype.
16760         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
16761         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
16762         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
16763         Handle CODE_LABELs with >= 16 byte alignment or with
16764         max_skip == (1 << align) - 1.
16765         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
16766         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
16767
16768         PR target/39942
16769         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
16770         .p2align 3 if MAX_SKIP is smaller than 7.
16771         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
16772
16773 2009-05-15  Ian Lance Taylor  <iant@google.com>
16774
16775         * alias.c (struct alias_set_entry_d): Rename from struct
16776         alias_set_entry.  Change all uses.
16777         * except.c (struct call_site_record_d): Rename from struct
16778         call_site_record.  Change all uses.
16779         * except.h (struct eh_region_d): Rename from struct eh_region.
16780         Change all uses.
16781         * gcse.c (struct hash_table_d): Rename from struct hash_table.
16782         Change all uses.
16783         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
16784         ivtype_map_elt.  Change all uses.
16785         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
16786         Change all uses.
16787         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
16788         * graphite.h (struct name_tree_d): Rename from struct name_tree.
16789         Change all uses.
16790         (struct sese_d): Rename from struct sese.  Change all uses.
16791         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
16792         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
16793         * optabs.h (struct optab_d): Rename from struct optab.  Change all
16794         uses.
16795         (struct convert_optab_d): Rename from struct convert_optab.
16796         Change all uses.
16797         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
16798         ipa_opt_pass.  Change all uses.
16799         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
16800         all uses.
16801
16802         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
16803         defined as a typedef.
16804         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
16805         defined as a tag.
16806
16807 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16808
16809         PR 16302
16810         * fold-const.c (make_range,build_range_check,merge_ranges): Move
16811         declaration to...
16812         (merge_ranges): Returns bool.
16813         * tree.h (make_range): .. to here.
16814         (build_range_check): Likewise.
16815         (merge_ranges): Likewise. Renamed from merge_ranges.
16816         * c-typeck.c (parser_build_binary_op): Update calls to
16817         warn_logical_operator.
16818         * c-common.c (warn_logical_operator): Add new warning.
16819         * c-common.h (warn_logical_operator): Update declaration.
16820
16821 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16822
16823         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
16824
16825 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16826
16827         * doc/install.texi: Document MPC requirements, flags etc.
16828
16829         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
16830         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
16831         Evaluate constant arguments.
16832         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
16833         (fold_builtin_1): Likewise, also evaluate constant arguments.
16834         Remove superfluous break.
16835         (do_mpc_ckconv): New.
16836         * real.h: Include mpc.h.
16837         * toplev.c (print_version): Output MPC version info if available.
16838
16839 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
16840
16841         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
16842
16843 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16844
16845         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
16846         only once.
16847
16848 2009-05-15  Jan Hubicka  <jh@suse.cz>
16849
16850         * doc/invoke.texi (max-early-inliner-iterations): New flag.
16851         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
16852         (try_inline): Fix return value.
16853         (cgraph_decide_inlining_incrementally): Honor new value.
16854         (cgraph_early_inlining): Handle indirect inlining.
16855         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
16856
16857 2009-05-15  Jan Hubicka  <jh@suse.cz>
16858
16859         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
16860         * cgraphunit.c (cgraph_finalize_function): Set it.
16861         (cgraph_expand_function): Use it.
16862
16863 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
16864
16865         * real.c (encode_ieee_half): Define.
16866         (decode_ieee_half): Define.
16867         (ieee_half_format): Define.
16868         (arm_half_format): Define.
16869         * real.h (ieee_half_format): Declare.
16870         (arm_half_format): Declare.
16871
16872 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
16873
16874         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
16875         swapped, and reversed optabs exist before trying to use them.
16876
16877 2009-05-15  Paul Brook  <paul@codesourcery.com>
16878             Sandra Loosemore  <sandra@codesourcery.com>
16879
16880         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
16881         loads.  Allow PRE_DEC.
16882         (output_move_neon): Handle PRE_DEC.
16883         (arm_print_operand): Add 'A' for neon structure loads.
16884         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
16885         * config/arm/neon.md (neon_mov): Update comment.
16886         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
16887         calls.
16888         (Um): New constraint.
16889
16890 2009-05-15  Jan Hubicka  <jh@suse.cz>
16891
16892         Revert the following patch until testsuite fallout is fixed:
16893         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
16894         * cgraph.h (struct inline_summary): New filed self_wize,
16895         size_inlining_benefit, self_time and time_inlining_benefit.
16896         (struct cgraph_global_info): Replace insns by time ans size fields.
16897         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
16898         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
16899         (ipcp_update_callgraph): Do not touch function bodies.
16900         * ipa-inline.c: Include except.h
16901         (MAX_TIME): New constant.
16902         (overall_insns): Remove
16903         (overall_size, max_benefit): New static variables.
16904         (cgraph_estimate_time_after_inlining): New function.
16905         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
16906         (cgraph_clone_inlined_nodes): Update size.
16907         (cgraph_mark_inline_edge): Update size.
16908         (cgraph_estimate_growth): Use size info.
16909         (cgraph_check_inline_limits): Check size.
16910         (cgraph_default_inline_p): Likewise.
16911         (cgraph_edge_badness): Compute badness based on benefit and size cost.
16912         (cgraph_decide_recursive_inlining): Check size.
16913         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
16914         and times.
16915         (cgraph_decide_inlining): Likewise.
16916         (cgraph_decide_inlining_incrementally): Likewise; honor
16917         PARAM_EARLY_INLINING_INSNS.
16918         (likely_eliminated_by_inlining_p): New predicate.
16919         (estimate_function_body_sizes): New function.
16920         (compute_inline_parameters): Use it.
16921         * except.c (must_not_throw_labels): New function.
16922         * except.h (must_not_throw_labels): Declare.
16923         * tree-inline.c (init_inline_once): Kill inlining_weigths
16924         * tree-ssa-structalias.c: Avoid uninitialized warning.
16925         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
16926         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
16927         (PARAM_INLINE_CALL_COST): Remove.
16928         (PARAM_EARLY_INLINING_INSNS): New.
16929
16930 2009-05-15  Richard Guenther  <rguenther@suse.de>
16931
16932         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
16933         not TODO_update_ssa.
16934
16935 2009-05-15  Richard Guenther  <rguenther@suse.de>
16936
16937         PR tree-optimization/39999
16938         * gimple.h (gimple_expr_type): Use the expression type looking
16939         through useless conversions.
16940         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
16941         (vn_nary_op_insert_stmt): Likewise.
16942         (simplify_binary_expression): Likewise.
16943
16944 2009-05-15  Richard Guenther  <rguenther@suse.de>
16945
16946         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
16947         New options, enabled by default.
16948         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
16949         Document.
16950         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
16951         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
16952         * tree-ssa-structalias.c (gate_tree_pta): New function.
16953         (pass_build_alias): Use it.
16954
16955 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
16956
16957         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
16958         recurse on an invariant address if a conversion from a pointer
16959         type to a wider integer type is involved.
16960
16961 2009-05-15  Jan Hubicka  <jh@suse.cz>
16962
16963         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
16964         * cgraph.h (struct inline_summary): New filed self_wize,
16965         size_inlining_benefit, self_time and time_inlining_benefit.
16966         (struct cgraph_global_info): Replace insns by time ans size fields.
16967         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
16968         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
16969         (ipcp_update_callgraph): Do not touch function bodies.
16970         * ipa-inline.c: Include except.h
16971         (MAX_TIME): New constant.
16972         (overall_insns): Remove
16973         (overall_size, max_benefit): New static variables.
16974         (cgraph_estimate_time_after_inlining): New function.
16975         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
16976         (cgraph_clone_inlined_nodes): Update size.
16977         (cgraph_mark_inline_edge): Update size.
16978         (cgraph_estimate_growth): Use size info.
16979         (cgraph_check_inline_limits): Check size.
16980         (cgraph_default_inline_p): Likewise.
16981         (cgraph_edge_badness): Compute badness based on benefit and size cost.
16982         (cgraph_decide_recursive_inlining): Check size.
16983         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
16984         and times.
16985         (cgraph_decide_inlining): Likewise.
16986         (cgraph_decide_inlining_incrementally): Likewise; honor
16987         PARAM_EARLY_INLINING_INSNS.
16988         (likely_eliminated_by_inlining_p): New predicate.
16989         (estimate_function_body_sizes): New function.
16990         (compute_inline_parameters): Use it.
16991         * except.c (must_not_throw_labels): New function.
16992         * except.h (must_not_throw_labels): Declare.
16993         * tree-inline.c (init_inline_once): Kill inlining_weigths
16994         * tree-ssa-structalias.c: Avoid uninitialized warning.
16995         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
16996         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
16997         (PARAM_INLINE_CALL_COST): Remove.
16998         (PARAM_EARLY_INLINING_INSNS): New.
16999         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
17000         (inline-call-cost): Remove.
17001         (early-inlining-insns): New.
17002
17003 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
17004
17005         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
17006         for bounds.
17007         (print_int_cst_bounds_in_octal_p): Likewise.
17008         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
17009         with subtypes.
17010         * dwarf2out.c (base_type_die): Likewise.
17011         (is_subrange_type): Delete.
17012         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
17013         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
17014         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
17015         if the destination type is boolean.
17016         (build_range_check): Do not special-case subtypes.
17017         (fold_sign_changed_comparison): Likewise.
17018         (fold_unary): Likewise.
17019         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
17020         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
17021         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
17022         * tree.c (subrange_type_for_debug_p): New predicate based on the
17023         former is_subrange_type.
17024         * tree.h (subrange_type_for_debug_p): Declare.
17025         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
17026         (convert_affine_scev): Remove call to above function.
17027         (chrec_convert_aggressive): Likewise.
17028         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
17029         false for conversions involving subtypes.
17030         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
17031         (vrp_val_min): Likewise.
17032         (needs_overflow_infinity): Likewise.
17033         (extract_range_from_unary_expr): Likewise.
17034
17035 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
17036
17037         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
17038         * config/frv/frv.c: Likewise.
17039         * config/s390/s390.c: Likewise.
17040         * config/sparc/sparc.h: Likewise.
17041         * config/i386/i386.h: Likewise.
17042         * config/i386/i386.c: Likewise.
17043         * config/crx/crx.c: Likewise.
17044         * config/m68hc11/m68hc11.h: Likewise.
17045         * config/iq2000/iq2000.c: Likewise.
17046         * config/mn10300/mn10300.h: Likewise.
17047         * config/mn10300/mn10300.c: Likewise.
17048         * config/m68k/m68k.c: Likewise.
17049         * config/rs6000/rs6000.c: Likewise.
17050         * config/rs6000/xcoff.h: Likewise.
17051         * config/rs6000/linux64.h: Likewise.
17052         * config/rs6000/sysv4.h: Likewise.
17053         * config/score/score3.c: Likewise.
17054         * config/score/score7.c: Likewise.
17055         * config/score/score.c: Likewise.
17056         * config/arm/arm.md: Likewise.
17057         * config/mips/mips.c: Likewise.
17058         * config/mips/mips.md: Likewise.
17059         * config/bfin/bfin.h: Likewise.
17060         * config/pa/pa.c: Likewise.
17061         * config/pa/constraints.md: Likewise.
17062
17063         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
17064         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
17065         * config/pdp11/pdp11.h: Use memory_address_p instead.
17066
17067 2009-05-14  Ian Lance Taylor  <iant@google.com>
17068
17069         * passes.c (finish_optimization_passes): Change i to int.
17070         * plugin.c (plugins_active_p): Change event to int.
17071         (dump_active_plugins): Likewise.
17072         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
17073         Add cast.
17074         * tree.c (tree_range_check_failed): Change c to unsigned int.
17075         (omp_clause_range_check_failed): Likewise.
17076         (build_common_builtin_nodes): Change mode to int.  Add cast.
17077         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
17078         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
17079
17080         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
17081         ++ or -- with a variable of enum type.
17082
17083 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
17084
17085         PR driver/40144
17086         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
17087
17088 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
17089
17090         * store-motion.c: Do not include params.h
17091         * Makefile.in: Fix dependencies for various files.
17092
17093 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
17094
17095         * auto-inc-dec.c: Fix pass description, remove apparent
17096         accidental duplication.
17097
17098 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
17099
17100         PR middle-end/40147
17101         * ipa-utils.h (memory_identifier_string): Moved to ...
17102         * tree.h (memory_identifier_string): Here.  Add GTY(()).
17103
17104 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
17105
17106         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
17107         in the former documentation of...
17108         (GO_IF_LEGITIMATE_ADDRESS): ... this.
17109         * ira-conflicts.c (get_dup_num): Use address_operand.
17110         * targhooks.c (default_legitimate_address_p): New.
17111         * targhooks.h (default_legitimate_address_p): New.
17112         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
17113         Call hook.
17114         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
17115         * target.h (struct target): Add legitimate_address_p.
17116         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
17117         (TARGET_INITIALIZER): Include it.
17118
17119         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17120         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
17121         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
17122         (TARGET_LEGITIMATE_ADDRESS_P): New.
17123
17124         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17125         (REG_OK_STRICT_P): Delete.
17126         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
17127         (frv_legitimate_address_p_1): ... this.
17128         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
17129         (frv_legitimate_address_p_1): ... the renamed old
17130         frv_legitimate_address_p.
17131         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
17132         (TARGET_LEGITIMATE_ADDRESS_P): New.
17133
17134         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17135         * config/s390/s390-protos.h (legitimate_address_p): Remove.
17136         * config/s390/s390.c (legitimate_address_p): Rename to...
17137         (s390_legitimate_address_p): ... this, make static.
17138         (legitimize_address): Adjust call.
17139         (TARGET_LEGITIMATE_ADDRESS_P): New.
17140         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
17141
17142         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17143         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
17144         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
17145         (TARGET_LEGITIMATE_ADDRESS_P): New.
17146
17147         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17148         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
17149         * config/spu/spu.c (spu_legitimate_address): Rename to...
17150         (spu_legitimate_address_p): ... this, make static.
17151         (TARGET_LEGITIMATE_ADDRESS_P): New.
17152
17153         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17154         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
17155         * config/sparc/sparc.c (legitimate_address_p): Rename to...
17156         (sparc_legitimate_address_p): ... this, make static and return bool.
17157         (legitimize_address): Adjust call.
17158         (TARGET_LEGITIMATE_ADDRESS_P): New.
17159
17160         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17161         * config/i386/i386-protos.h (legitimate_address_p): Remove.
17162         * config/i386/i386.c (legitimate_address_p): Rename to...
17163         (ix86_legitimate_address_p): ... this, make static.
17164         (constant_address_p): Move after it, adjust call.
17165         (TARGET_LEGITIMATE_ADDRESS_P): New.
17166
17167         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17168         * config/avr/avr-protos.h (legitimate_address_p): Remove.
17169         * config/avr/avr.c (legitimate_address_p): Rename to...
17170         (avr_legitimate_address_p): ... this, make static.
17171         (legitimize_address): Adjust call.
17172         (TARGET_LEGITIMATE_ADDRESS_P): New.
17173
17174         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17175         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
17176         * config/crx/crx.c (crx_legitimate_address_p): Make static.
17177         (TARGET_LEGITIMATE_ADDRESS_P): New.
17178
17179         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17180         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
17181         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
17182         (TARGET_LEGITIMATE_ADDRESS_P): New.
17183
17184         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17185         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
17186         Remove.
17187         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
17188         Make static.
17189         (TARGET_LEGITIMATE_ADDRESS_P): New.
17190
17191         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17192         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
17193         Remove.
17194         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
17195         Rename to...
17196         (m68hc11_legitimate_address_p): ... this, make static.
17197         (go_if_legitimate_address_internal): Rename to...
17198         (m68hc11_legitimate_address_p_1): ... this.
17199         (legitimize_address): Adjust call.
17200         (TARGET_LEGITIMATE_ADDRESS_P): New.
17201
17202         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17203         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
17204         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
17205         (TARGET_LEGITIMATE_ADDRESS_P): New.
17206
17207         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17208         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
17209         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
17210         (mn10300_legitimate_address_p): ... this, make static.
17211         (TARGET_LEGITIMATE_ADDRESS_P): New.
17212
17213         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17214         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
17215         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
17216         (TARGET_LEGITIMATE_ADDRESS_P): New.
17217
17218         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17219         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
17220         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
17221         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17222         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
17223         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
17224         (rs6000_legitimate_address_p): ... this, make static.
17225         (TARGET_LEGITIMATE_ADDRESS_P): New.
17226         (REG_MODE_OK_FOR_BASE_P): Delete.
17227         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
17228
17229         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17230         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
17231         Delete.
17232         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
17233         static, adjust types.
17234         (TARGET_LEGITIMATE_ADDRESS_P): New.
17235
17236         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17237         * config/score/score.c (score_address_p): Rename to...
17238         (score_legitimate_address_p): ... this.
17239         (TARGET_LEGITIMATE_ADDRESS_P): New.
17240         * config/score/score3.c (score3_address_p): Rename to...
17241         (score3_legitimate_address_p): ... this.
17242         * config/score/score7.c (score7_address_p): Rename to...
17243         (score7_legitimate_address_p): ... this.
17244
17245         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
17246         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
17247         GO_IF_LEGITIMATE_ADDRESS): Delete.
17248         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
17249         thumb2_legitimate_address_p): Delete.
17250         (arm_legitimate_address_p): Rename to...
17251         (arm_legitimate_address_outer_p): ... this.
17252         * config/arm/constraints.md ("Uq"): Adjust call.
17253         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
17254         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
17255         to...
17256         (arm_legitimate_address_outer_p): ... this.
17257         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
17258         static.
17259         (TARGET_LEGITIMATE_ADDRESS_P): New.
17260
17261         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17262         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
17263         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
17264         (TARGET_LEGITIMATE_ADDRESS_P): New.
17265
17266         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17267         * config/vax/vax-protos.h (legitimate_address_p): Remove.
17268         * config/vax/vax.c (legitimate_address_p): Rename to...
17269         (vax_legitimate_address_p): ... this, make static.
17270         (TARGET_LEGITIMATE_ADDRESS_P): New.
17271
17272         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17273         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
17274         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
17275         (TARGET_LEGITIMATE_ADDRESS_P): New.
17276
17277         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17278         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
17279         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
17280         (mmix_legitimate_address_p): ... this, make static.
17281         (TARGET_LEGITIMATE_ADDRESS_P): New.
17282
17283         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17284         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
17285         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
17286         (TARGET_LEGITIMATE_ADDRESS_P): New.
17287
17288 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
17289
17290         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
17291         of MODE_COMPLEX_INT.
17292
17293 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17294
17295         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
17296         LCT_NORMAL in function call.
17297         * mips-tdump.c (print_file_desc): Add cast to enum type.
17298         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
17299         (mark_stabs): Add casts to enum types.
17300         (parse_stabs_common): Add casts to enum types.
17301
17302 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
17303
17304         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
17305         Check for invalid values of LETTER.
17306
17307 2009-05-13  Taras Glek  <tglek@mozilla.com>
17308
17309         * attribs.c (register_attribute): moved out attribute registration
17310         into register_attribute.
17311         * doc/plugins.texi: Documented register_attribute and
17312         PLUGIN_ATTRIBUTES.
17313         * gcc-plugin.h: Added forward decl for register_attribute.
17314         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
17315         * plugin.c (register_callback, invoke_plugin_callbacks): Added
17316         PLUGIN_ATTRIBUTES boilerplate.
17317
17318 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
17319
17320         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
17321         values even in sentinel and empty entries.
17322         (ms_printf_flag_specs):  Likewise.
17323         (ms_scanf_flag_specs):  Likewise.
17324         (ms_strftime_flag_specs):  Likewise.
17325         (ms_print_char_table):  Likewise.
17326         (ms_scan_char_table):  Likewise.
17327         (ms_time_char_table):  Likewise.
17328
17329 2009-05-13  Doug Kwan  <dougkwan@google.com>
17330
17331         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
17332
17333 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
17334
17335         * config/mips/mips.md (store): Add attributes for QI and HI.
17336         Update comment.
17337         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
17338         (truncdi<mode>2): ... this new pattern.
17339
17340 2009-05-13  Brad Hards  <bradh@kde.org>
17341
17342         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
17343
17344 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
17345             Ben Elliston <bje@au.ibm.com>
17346
17347         PR middle-end/40035
17348         * dse.c (check_mem_read_rtx): Guard against width == -1.
17349
17350 2009-05-13  Michael Matz  <matz@suse.de>
17351
17352         PR middle-end/39976
17353         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
17354         (trivially_conflicts_p): New function.
17355         (insert_backedge_copies): Use it.
17356
17357 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
17358
17359         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
17360         (handle_stdc_pragma): Use new enum constant names.
17361         (handle_pragma_float_const_decimal64): Ditto.
17362
17363 2009-05-13  Ian Lance Taylor  <iant@google.com>
17364
17365         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
17366         tree.def.
17367
17368 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
17369
17370         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
17371         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
17372         multilibs.
17373         * config/m68k/m68k.h (FL_UCLINUX): Define.
17374
17375 2009-05-13  Jan Hubicka  <jh@suse.cz>
17376
17377         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
17378
17379 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
17380
17381         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
17382         unless -fschedule-insns is specified.
17383
17384 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
17385
17386         PR target/39561
17387         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
17388         TARGET_EXPAND_CBRANCHDI4.
17389         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
17390         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
17391         (cmpeqdi): Fix comment.
17392
17393 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
17394
17395         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
17396         (sh_legitimate_address_p): Likewise.
17397         * config/sh/sh.c (sh_legitimate_index_p): New.
17398         (sh_legitimate_address_p): Likewise.
17399         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
17400         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
17401         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
17402         (MAYBE_BASE_REGISTER_RTX_P): New macro.
17403         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
17404         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
17405         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
17406         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
17407         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
17408
17409 2009-05-12  Jan Hubicka  <jh@suse.cz>
17410
17411         * tree-inline.c (estimate_operator_cost): Add operands;
17412         when division happens by constant, it is cheap.
17413         (estimate_num_insns): Loads and stores are not having cost of 0;
17414         EH magic stuff is cheap; when computing runtime cost of switch,
17415         use log2 base of amount of its cases; builtin_expect has cost of 0;
17416         compute cost for moving return value of call.
17417         (init_inline_once): Initialize time_based flags.
17418         * tree-inline.h (eni_weights_d): Add time_based flag.
17419
17420 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
17421
17422         * df-core.c: Update head documentation.
17423
17424 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
17425
17426         PR bootstrap/40118
17427         * rs6000.c (rs6000_generate_compare): Use op1b instead of
17428         shadowing exisiting variable op1.
17429
17430 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
17431
17432         PR target/37179
17433         * config/i386/driver-i386.c (processor_signatures): New enum.
17434         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
17435         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
17436         processor signature to detect geode processor.
17437
17438 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
17439
17440         Revert:
17441
17442         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
17443
17444         * optabs.c (prepare_cmp_insn): Temporarily disable test that
17445         causes spurious differences between trunk and cond-optab branch.
17446
17447 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
17448
17449         * dojump.c (compare_from_rtx): Delete.
17450         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
17451         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
17452         if the comparison does not satisfy the predicate; test predicates for
17453         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
17454         further if one existing pattern fails.
17455         * expr.h (compare_from_rtx): Delete.
17456         (prepare_operand): Declare it.
17457         * optabs.c: Change "lib call" to "libcall" throughout.
17458         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
17459         HAVE_conditional_trap, emit_cmp_insn): Delete.
17460         (can_compare_p): Delete cmp_optab case.
17461         (prepare_float_lib_cmp): Return an rtx and a machine mode.
17462         Accept other parameters by value.
17463         (prepare_operand): Make non-static.
17464         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
17465         other parameters by value.  Try to widen operands here based on
17466         an optab_methods argument and looking at cbranch_optab.
17467         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
17468         loop.  Use cbranch_optab directly.
17469         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
17470         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
17471         assertion.
17472         (emit_conditional_move, emit_conditional_add): Inline what's needed
17473         of compare_from_rtx, using new prepare_cmp_insn for the rest.
17474         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
17475         with COMPARE.  Move cmov_optab and cstore_optab above
17476         with cbranch_optab, move cmp_optab down with ucmp_optab,
17477         remove tst_otpab.  Do not initialize trap_rtx.
17478         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
17479         for trap code.  Do not check HAVE_conditional_trap.  Use
17480         prepare_cmp_insn.  Accept no predicate for operand 3.
17481         * optabs.h (OTI_cmp): Mark as used only for libcalls.
17482         (OTI_ctrap, ctrap_optab): New.
17483         (tst_optab): Delete.
17484         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
17485         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
17486         with lookup of ctrap_optab.
17487         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
17488         Delete.
17489         (ctrap_optab): New.
17490
17491         * combine.c (combine_simplify_rtx, simplify_set): Do not
17492         special case comparing against zero for cc0 machines.
17493         * simplify-rtx.c (simplify_binary_operation_1): Never remove
17494         COMPARE on cc0 machines.
17495         (simplify_relational_operation): Return a new expression when
17496         a COMPARE could be removed.
17497         * final.c (final_scan_insn): Compare cc_status values
17498         against LHS of a (compare FOO (const_int 0)) cc0 source.
17499         Also check if cc_status.value is the full compare.
17500
17501         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
17502         (cstoreMM4): Document.
17503         (conditional_trap): Document ctrapMM4 instead.
17504         (sync_compare_and_swapMM): Refer to cbranchcc4.
17505         (Dependent Patterns): Eliminate obsolete information referring to
17506         the old jump optimization phase.
17507         (Canonicalization): Include cbranchcc4 case, omit canonicalization
17508         of compares with 0 on cc0 machines.
17509         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
17510         avoiding references to cc0.  Remove text about storing operands
17511         in cmpMM.
17512         * doc/tm.texi (Condition Codes): Include blurb on different
17513         condition code representations, separate into subsections for
17514         CC0, MODE_CC and conditional execution.
17515
17516         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
17517         alpha_emit_setcc): Accept operands and a machine mode.
17518         * config/alpha/alpha.c (alpha_emit_conditional_branch):
17519         Get code/op0/op1 from operands, use machine mode argument
17520         instead of alpha_compare.fp_p.  Emit the branch here.
17521         (alpha_emit_setcc): Likewise, and return boolean.
17522         (alpha_emit_conditional_move): Likewise.  Assert that
17523         cmp_op_mode == cmp_mode, and simplify accordingly.
17524         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
17525         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
17526         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
17527         Delete.
17528         (stack probe test): Use cbranchdi4.
17529         * config/alpha/predicates.md (alpha_cbranch_operator): New.
17530
17531         * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
17532         * config/arc/arc.h (movsicc, movsfcc): Use it.
17533         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
17534         (cbranchsi4, cstoresi4): New.
17535         (cmpsi, bCC and sCC expanders): Remove.
17536
17537         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
17538         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
17539         * config/arm/predicates.md (arm_comparison_operator): Only include
17540         floating-point operators if there is a hardware floating-point unit.
17541         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
17542         deferring to cbranch_cc and cstore_cc respectively.
17543         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
17544         cbranch_cc, cstore_cc): New.
17545         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
17546         arm_compare_op1.
17547         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
17548
17549         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
17550         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
17551         as an argument.
17552         (adjust_insn_length): Adjust calls.
17553         (avr_reorg): Handle (compare (foo) (const_int 0)).
17554         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
17555         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
17556         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
17557         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
17558         (bCC): Remove.
17559         (cbranchqi4, cbranchhi4, cbranchsi4): New.
17560         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
17561
17562         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
17563         (cbranchsi4, cstorebi4, cstoresi4): New.
17564         (movbisi): This insn is duplicate, split it to zero_extend.
17565         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
17566         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
17567         (bfin_optimize_loop): Use cbranch expander.
17568         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
17569         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
17570         (bfin_bimode_comparison_operator): ... this.
17571         (bfin_direct_comparison_operator): New.
17572
17573         * config/cris/cris.c (cris_normal_notice_update_cc): Look
17574         inside (compare FOO (const_int 0)).
17575         (cris_rtx_costs): Handle ZERO_EXTRACT.
17576         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
17577         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
17578         (*tstdi_v32): Delete.
17579         (*cmpdi_non_v32): Add M alternative for operand 1.
17580         (cmpsi, cmp<mode>): Make private.
17581         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
17582         with COMPARE.
17583         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
17584
17585         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
17586         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
17587         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
17588         (cc_reg_operand): New.
17589         (any_cond): Delete.
17590         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
17591         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
17592         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
17593         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
17594         crx_expand_scond): Delete.
17595
17596         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
17597         (cbranchsi4): New.
17598         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
17599         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
17600
17601         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
17602         cstoresi4, cstoresf4, cstoredf4): New.
17603         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
17604         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
17605         Receive the entire operands array.
17606         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
17607         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
17608         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
17609         Get test/op0/op1 from the operands array.
17610         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
17611
17612         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
17613         (h8300_expand_store): New.
17614         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
17615         (const_int 0)).
17616         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
17617         (h8300_expand_store): New.
17618         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
17619         or do not try to produce (set (cc0) REG).
17620         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
17621         change a compare into a move to a scratch register.  Disable some
17622         peepholes when comparing with zero.
17623         (tstsi, tsthi, tstsi, cmpqi): Make private.
17624         (cmphi): Delete.
17625         (bCC, sCC): Delete.
17626         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
17627         cstoresi4): New.
17628
17629         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
17630         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
17631         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
17632         (ix86_emit_i387_log1p): Use cbranchxf2.
17633         (ix86_expand_setcc): Return void.
17634         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
17635         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
17636         cmp<MODEF>, cmpcc): Remove.
17637         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
17638         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
17639         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
17640         (sCC and bCC expanders): Remove.
17641         (stack_protect_test): Use cbranchcc4.
17642
17643         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
17644         Delete.
17645         (ia64_expand_compare): Accept three rtx by reference and return void.
17646         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
17647         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
17648         from *expr.  Update *expr with the BImode comparison to do.
17649         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
17650         cmptf, bCC, sCC, conditional_trap): Delete.
17651         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
17652         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
17653         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
17654         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
17655         * config/ia64/predicates.md (ia64_cbranch_operator): New.
17656
17657         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
17658         type of last argument.
17659         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
17660         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
17661         use machine mode argument instead of branch_type.  Remove dead
17662         code for floating-point comparisons.
17663         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
17664         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
17665         Remove.
17666         (cbranchsi4, cstoresi4): New.
17667         * config/iq2000/predicates.md (reg_or_const_operand): New.
17668
17669         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
17670         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
17671         (b<code>_op): Rewrite to...
17672         (bcc_op): ... this, using match_operator.
17673         (s<code>_op): Rewrite to...
17674         (scc_op): ... this, using match_operator.
17675         (s<code>_24_op): Rewrite to...
17676         (scc_op_24): ... this, using match_operator.
17677         (s<code>_<mode>): Rewrite to...
17678         (cstore<mode>4): ... this, using match_operator.
17679         (s<code>_<mode>_24): Rewrite to...
17680         (cstore<mode>4_24): ... this, using match_operator.
17681         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
17682         m32c_unpend_compare, m32c_expand_scc): Delete.
17683         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
17684         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
17685         (m32c_expand_movcc): Change NE to EQ if necessary.
17686         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
17687
17688         * config/m32r/m32r-protos.h (gen_cond_store): New.
17689         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
17690         (gen_cond_store): New, from sCC patterns.
17691         (m32r_expand_block_move): Use cbranchsi4.
17692         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
17693         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
17694         (cbranchsi4, cstoresi4): New.
17695
17696         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
17697         Delete.
17698         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
17699         (m68hc11_notice_update_cc): Look into a compare with 0.
17700         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
17701         Delete.
17702         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
17703         cmphi, cmpqi, bCC): Delete.
17704         (cbranchsi4, cbranchhi4, cbranchqi4): New.
17705         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
17706         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
17707         sets with COMPARE.
17708
17709         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
17710         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
17711         * config/m68k/constraints.md (H): New.
17712         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
17713         the define_insn below.
17714         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
17715         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
17716         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
17717         patterns): Wrap RHS with COMPARE.
17718         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
17719         (*cmpdi_internal): Name this pattern.
17720         (cmpdi): Change to define_insn.
17721         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
17722         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
17723         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
17724         predicate.
17725         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
17726         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
17727         (conditional_trap): Change to...
17728         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
17729         (*conditional_trap): Use the ordered_comparison_operator and
17730         const1_operand predicates.
17731         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
17732         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
17733         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
17734         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
17735
17736         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
17737         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
17738         (mcore_gen_compare): New.
17739         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
17740         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
17741         (mcore_gen_compare): ... this.
17742         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
17743         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
17744         (stack probe pattern): Use cbranchsi4.
17745
17746         * config/mips/predicates.md (mips_cstore_operator): New.
17747         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
17748         * config/mips/mips.md (any_cond): Delete.
17749         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
17750         always succeed.
17751         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
17752         fixuns_truncsfdi2): Use cbranch patterns.
17753         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
17754         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
17755         Adjust call to mips_expand_conditional_branch.
17756         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
17757         cstore<GPR:mode>4.
17758         * config/mips/mips-protos.h (mips_expand_conditional_branch,
17759         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
17760         * config/mips/mips.c (cmp_operands): Delete.
17761         (mips_emit_compare): Get comparison operands from *op0/*op1.
17762         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
17763         that it succeeds.  Use op0/op1 instead of cmp_operands.
17764         (mips_expand_conditional_branch, mips_expand_conditional_move,
17765         mips_expand_conditional_trap): Likewise.
17766         (mips_block_move_loop): Use cbranch patterns.
17767         * config/mips/mips.h (cmp_operands): Delete.
17768
17769         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
17770         (mmix_gen_compare_reg): Just return a register in the right CC mode.
17771         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
17772         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
17773         (*cmpcc_folded): Rename to...
17774         (*cmpdi_folded): this.
17775         (*cmpcc): Rename to...
17776         (*cmps): ... this.
17777         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
17778         (bCC): Remove.
17779         (cbranchdi4): New.
17780         (cbranchdf4): New.  Handle invalid comparisons here.
17781         * config/mmix/predicates.md (float_comparison_operator): New.
17782
17783         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
17784         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
17785         * config/mn10300/mn10300.md (tst): Delete.
17786         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
17787         Name these patterns and wrap RHS in a compare.
17788         (*cmpsi): Make this pattern private.  Include tst.
17789         (*cmpsf): Make this pattern private.
17790         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
17791         (compare with zero peepholes): Likewise.
17792         (bCC): Remove.
17793         (cbranchsi4, cbranchsf4): New.
17794         (casesi): Use cbranchsi4.
17795
17796         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
17797         hppa_branch_type): Delete.
17798         (return_addr_rtx): Use cbranchsi4.
17799         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
17800         Emit CCFPmode comparison here.
17801         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
17802         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
17803         hppa_branch_type): Delete.
17804         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
17805         (movsicc, movdicc): Remove references to hppa_compare_op0,
17806         hppa_compare_op1 and compare_from_rtx.
17807         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
17808         (casesi): Use cbranchsi4.
17809
17810         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
17811         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
17812         * config/pdp11/pdp11.md (register_or_const0_operand): New.
17813         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
17814         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
17815         (bCC): Delete.
17816         (cbranchdf4, cbranchhi4, cbranchqi4): New.
17817         (*branch, *branch_inverted): New.
17818
17819         * config/picochip/picochip.md (cbranchhi4): Use
17820         ordered_comparison_operator.
17821         (cmphi, bCC): Remove.
17822
17823         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
17824         (trap_comparison_operator): Delete.
17825         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
17826         rs6000_emit_cbranch): Accept mode and operands.
17827         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
17828         rs6000_compare_fp_p): Delete.
17829         (rs6000_generate_compare): Accept mode and comparison.  Extract code
17830         and op0/op1 from there.  Replace references to rs6000_compare_op0
17831         and rs6000_compare_op1.
17832         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
17833         extract result from passed operands.
17834         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
17835         extract loc from passed operands.
17836         (rs6000_emit_cmove): Likewise.
17837         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
17838         rs6000_compare_fp_p): Delete.
17839         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
17840         (cbranch<GPR>4, cbranch<FP>4): New.
17841         (cstore<mode>4): New.  Consolidate here all choices about when to use
17842         portable or specialized sCC sequences.
17843         (stack_protect_test): Use cbranchsi4.
17844         (conditional_trap): Replace with ctrap<GPR>4.
17845         (conditional trap insn): Replace trap_comparison_operator with
17846         ordered_comparison_operator.
17847
17848         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
17849         (s390_emit_prologue): Use ctrap.
17850         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
17851         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
17852         New predicates replacing...
17853         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
17854         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
17855         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
17856         (add<mode>cc): Do not use s390_compare_op0/op1.
17857         (s<code>): Change to...
17858         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
17859         (seq): Change to...
17860         (cstorecc4): ... this.  Handle EQ or NE equally.
17861         (*sne): Un-privatize for use in cstorecc4.
17862         (b<code>): Change to...
17863         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
17864         (conditional_trap): Replace with...
17865         (ctrap<GPR>4, ctrap<FP>4): ... these.
17866         (stack_protect): Use cbranchcc4.
17867
17868         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
17869         * config/score/score-protos.h (score_gen_cmp): Delete.
17870         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
17871         (score_block_move-loop): Use cbranchsi4.
17872         * config/score/score.md (cbranchsi4): New.
17873         (cmpsi, bCC): Delete.
17874         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
17875         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
17876         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
17877         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
17878         * config/score/score3.h (score3_gen_cmp): Delete.
17879         * config/score/score7.h (score7_gen_cmp): Delete.
17880
17881         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
17882         (sh_emit_scc_to_t): ... this.  Return void.
17883         (from_compare): Rename to...
17884         (sh_emit_compare_and_branch): ... this.
17885         (sh_emit_compare_and_set): New.
17886         (sh_expand_t_scc): Accept operands.
17887         * config/sh/predicates.md (sh_float_comparison_operator): New.
17888         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
17889         (prepare_scc_operands): Rename to...
17890         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
17891         arguments.
17892         (sh_emit_cheap_store_flag): New.
17893         (sh_emit_set_t_insn): New.
17894         (from_compare): Rename to...
17895         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
17896         handling of TARGET_SH2E floating point to avoid recursive call.
17897         Generate branch here.
17898         (sh_emit_compare_and_set): New.
17899         (sh_expand_t_scc): Get op0/op1 from arguments.
17900         (sh_emit_cheap_store_flag): New.
17901         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
17902         cases.
17903         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
17904         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
17905         (movsicc, movdicc): Do nothing when it recreated operands from
17906         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
17907         prepare_scc_operands (now sh_emit_scc_to_t).
17908         (udivdi3): Use cstoresi4.
17909         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
17910         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
17911         (cbranchint4_media, cbranchfp4_media): New.
17912         (casesi): Use cbranchdi4.
17913         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
17914         Delete.
17915         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
17916         (movnegt): Remove second operand.
17917         (cbranchsf4, cbranchdf4): New.
17918         (stack_protect): Use cbranchdi4/cbranchsi4.
17919
17920         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
17921         (gen_compare_reg): Accept comparison, extract part of it to...
17922         (gen_compare_reg_1): ... this.
17923         (gen_compare_operator): Delete.
17924         (gen_v9_scc): Accept separate destination, comparison code and arms.
17925         Do not use sparc_compare_op0/sparc_compare_op1.
17926         (emit_scc_insn, emit_conditional_branch_insn): New.
17927         (emit_v9_brxx): Make static.  Remove useless assertion.
17928         (sparc_emit_float_lib_cmp): Return RTL instead of calling
17929         emit_cmp_insn.
17930         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
17931         * config/sparc/sparc-protos.h (gen_compare_reg,
17932         sparc_emit_float_lib_cmp): Adjust prototype.
17933         (emit_scc_insn, emit_conditional_branch_insn): New.
17934         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
17935         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
17936         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
17937         iterators to the top.
17938         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
17939         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
17940         snedi_special_trunc): Delete.
17941         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
17942         and snedi_special_trunc.
17943         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
17944         cbranchdi4, cbranch<F:mode>4): New.
17945         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
17946         here.  Use gen_compare_reg instead of gen_compare_operator.
17947         (conditional_trap): Replace with...
17948         (ctrapsi4, ctrapdi4): ... this.
17949         (stack_protect_test): Use cbranchcc4.
17950
17951         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
17952         argument to rtx.
17953         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
17954         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
17955         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
17956         from operands[0] or operands[3] depending on is_set.
17957         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
17958         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
17959         cmpdf, bCC), sCC: Remove.
17960         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
17961         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
17962         cstoredf4): New.
17963         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
17964         spu_emit_branch_or_set.
17965
17966         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
17967         Add two arguments.
17968         * config/stormy16/stormy16.h (xstormy16_compare_op0,
17969         xstormy16_compare_op1): Delete.
17970         * config/stormy16/stormy16.c (xstormy16_compare_op0,
17971         xstormy16_compare_op1): Delete.
17972         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
17973         Adjust calls.
17974         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
17975         (cmphi, cmpsi, bCC): Remove.
17976
17977         * config/v850/v850.md (tstsi, cmpsi): Fold into...
17978         (*cmpsi): ... this one.
17979         (cbranchsi4, cstoresi4): New.
17980         (bCC expanders): Delete.
17981         (sCC insns): Fold into...
17982         (*setcc): ... this one.
17983         (casesi): Do not use gen_cmpsi and gen_bgtu.
17984         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
17985         (movsicc): Simplify.
17986         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
17987
17988         * config/vax/vax-protos.h (cond_name): New.
17989         (vax_output_conditional_branch): Remove.
17990         * config/vax/vax.c (cond_name): New.
17991         (vax_output_conditional_branch): Remove.
17992         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
17993         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
17994         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
17995         (bit<VAXint>): Wrap source with (compare).
17996         (b<code> and following unnamed pattern): Rename to *branch and
17997         *branch_reversed.  Change macroization to match_operator.
17998         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
17999
18000         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
18001         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
18002         Change last argument to machine_mode.
18003         (xtensa_expand_scc): Add machine_mode argument.
18004         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
18005         (gen_conditional_move, xtensa_expand_conditional_branch,
18006         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
18007         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
18008         Adjust operand numbers.
18009         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
18010         Delete.
18011         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
18012         (cmpsi, cmpsf, b<code>, s<code>): Delete.
18013         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
18014
18015 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
18016
18017         * optabs.c (prepare_cmp_insn): Temporarily disable test that
18018         causes spurious differences between trunk and cond-optab branch.
18019
18020 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
18021
18022         PR target/37137
18023         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
18024
18025 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
18026
18027         * tree.c (iterative_hash_pointer): Delete.
18028         (iterative_hash_expr): Short-circuit handling of NULL pointer.
18029         Hash UIDs and versions of SSA names.  Don't special-case built-in
18030         function declarations.
18031
18032 2009-05-11  Ian Lance Taylor  <iant@google.com>
18033
18034         PR bootstrap/40103
18035         * graphite.c: Force -Wc++-compat to only be a warning before
18036         #including "cloog/cloog.h".
18037
18038 2009-05-11  Martin Jambor  <mjambor@suse.cz>
18039
18040         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
18041
18042 2009-05-11  Jan Hubicka  <jh@suse.cz>
18043
18044         * tree-ssa-loop-ivcanon.c: Include target.h
18045         (struct loop_size): new structure.
18046         (constant_after_peeling): New predicate.
18047         (tree_estimate_loop_size): New function.
18048         (estimated_unrolled_size): Rewrite for new estimates.
18049         (try_unroll_loop_completely): Use new estimates.
18050         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
18051
18052 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18053
18054         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
18055         libcpp interface change.
18056         (spu_macro_to_expand): Likewise.
18057
18058 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
18059
18060         PR tree-optimization/40026
18061         * gimplify.c (gimplify_init_constructor): Change initial conditional
18062         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
18063         optimize_compound_literals_in_ctor.
18064
18065 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
18066
18067         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
18068         New devices.
18069         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
18070
18071 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
18072
18073         * tree-vect-data-refs.c (vect_analyze_group_access): Use
18074         HOST_WIDE_INT for gap.
18075
18076 2009-05-11  Ira Rosen  <irar@il.ibm.com>
18077
18078         PR tree-optimization/40074
18079         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
18080         account in group size and step comparison.
18081
18082 2009-05-11  Richard Guenther  <rguenther@suse.de>
18083
18084         * passes.c (init_optimization_passes): Strip now incorrect comment.
18085         (execute_function_todo): Do not set PROP_alias.
18086         * tree-pass.h (PROP_alias): Remove.
18087         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
18088         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
18089         * tree-nrv.c (pass_return_slot): Likewise.
18090         * tree-object-size.c (pass_object_sizes): Likewise.
18091         * tree-ssa-dom.c (pass_dominator): Likewise.
18092         (pass_phi_only_cprop): Likewise.
18093         * tree-ssa-dse.c (pass_dse): Likewise.
18094         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
18095         (pass_cselim): Likewise.
18096         * tree-ssa-pre.c (pass_pre): Likewise.
18097         (pass_fre): Likewise.
18098         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
18099         * tree-ssa-sink.c (pass_sink_code): Likewise.
18100         * tree-stdarg.c (pass_stdarg): Likewise.
18101         * tree-tailcall.c (pass_tail_calls): Likewise.
18102         * tree-vrp.c (pass_vrp): Likewise.
18103
18104 2009-05-10  Ian Lance Taylor  <iant@google.com>
18105
18106         * basic-block.h (enum profile_status): Break out of struct
18107         control_flow_graph.
18108         * cgraph.h (struct inline_summary): Break out of struct
18109         cgraph_local_info.
18110         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
18111         of struct cgraph_order_sort.
18112         * combine.c (enum undo_kind): New enum, broken out of struct undo.
18113         * cse.c (struct branch_path): Break out of struct
18114         cse_basic_block_data.
18115         * except.h (enum eh_region_type): Break out of struct eh_region.
18116         * gcc.c (enum add_del): Break out of struct modify_target.
18117         * genrecog.c (enum decision_type): Break out of struct decision_test.
18118         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
18119         ggc_pch_data.
18120         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
18121         * regmove.c (enum match_use): New enum, broken out of struct match.
18122         * sched-int.h (enum post_call_group): New enum, broken out of
18123         struct deps.
18124         (struct deps_reg): Break out of struct deps.
18125         * target.h (struct asm_int_op): Break out of struct gcc_target.
18126         * tree-eh.c (struct goto_queue_node): Break out of struct
18127         leh_tf_state.
18128         * tree-inline.h (enum copy_body_cge_which): Break out of
18129         copy_body_data.
18130         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
18131
18132         * c-decl.c (in_struct, struct_types): New static variables.
18133         (pushtag): Add loc parameter.  Change all callers.
18134         (lookup_tag): Add ploc parameter.  Change all callers.
18135         (check_compound_literal_type): New function.
18136         (parser_xref_tag): Add loc parameter.  Change all callers.  If
18137         -Wc++-compat, warn about struct/union/enum types defined within a
18138         struct or union.
18139         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
18140         and loc parameters.  Change all callers.  Change error calls to
18141         error_at, using loc.  For a redefinition, if the location of the
18142         original definition is known, report it.  Set in_struct and
18143         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
18144         (finish_struct): Add new parameters enclosing_in_struct and
18145         enclosing_struct_types.  Change all callers.  Set
18146         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
18147         in the struct.  If in a struct, add this struct to struct_types.
18148         (start_enum): Add loc parameter.  Change all callers.  Use
18149         error_at for errors, using loc.  For a redefinition, if the
18150         location of the original definition is known, report it.  If in a
18151         struct, add this enum type to struct_types.  If -Wc++-compat warn
18152         if in sizeof, typeof, or alignof.
18153         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
18154         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
18155         (c_parser_enum_specifier): Get enum location for start_enum.
18156         (c_parser_struct_or_union_specifier): Get struct location for
18157         start_struct.  Save in_struct and struct_types status between
18158         start_struct and finish_struct.
18159         (c_parser_cast_expression): Get location of cast.
18160         (c_parser_alignof_expression): Get location of type.
18161         (c_parser_postfix_expression): Likewise.
18162         (c_parser_postfix_expression_after_paren_type): Add type_loc
18163         parameter.  Change all callers.  Call check_compound_literal_type.
18164         Use type_loc for error about variable size type.
18165         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
18166         of an enum constant from an enum type defined in a struct or union.
18167         (c_cast_expr): Add loc parameter.  Change all callers.  If
18168         -Wc++-compat, warn about defining a type in a cast.
18169         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
18170         (start_enum, start_struct, finish_struct): Update declarations.
18171         (parser_xref_tag, c_cast_expr): Update declarations.
18172         (check_compound_literal_type): Declare.
18173
18174 2009-05-11  Ben Elliston  <bje@au.ibm.com>
18175
18176         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
18177         for recent libcpp interface change.
18178         (rs6000_macro_to_expand): Likewise.
18179
18180 2009-05-10  Michael Matz  <matz@suse.de>
18181
18182         PR target/40031
18183         * config/arm/arm.c (require_pic_register): Emit on entry edge,
18184         not at entry of function.
18185
18186 2009-05-10  Richard Guenther  <rguenther@suse.de>
18187
18188         PR tree-optimization/40081
18189         Revert
18190         * tree-sra.c (instantiate_element): Instantiate scalar replacements
18191         using the main variant of the element type.  Do not fiddle with
18192         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
18193
18194         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
18195         structs with volatile fields.
18196
18197 2009-05-10  Jan Hubicka  <jh@suse.cz>
18198
18199         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
18200         (estimate_move_cost): Assert that it does not get called for
18201         VOID_TYPE_P.
18202         (estimate_num_insns): Skip VOID types in argument handling.
18203         (optimize_inline_calls): Delete unreachable blocks and verify that
18204         callgraph is valid.
18205
18206 2009-05-10  Jan Hubicka  <jh@suse.cz>
18207
18208         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
18209         * cgraph.c (cgraph_mark_address_taken_node): New function.
18210         (dump_cgraph_node): Dump new flag.
18211         * cgraph.h (struct cgraph_node): Add address_taken.
18212         (cgraph_mark_address_taken_node): New function.
18213         * ipa.c (cgraph_postorder): Prioritize functions with address taken
18214         since new direct calls can be born.
18215
18216 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
18217
18218         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
18219         tok->val.node.node.
18220
18221 2009-05-10  Jan Hubicka  <jh@suse.cz>
18222
18223         PR middle-end/40084
18224         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
18225         argument; rewrite.
18226         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
18227         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
18228         * tree-inline.c (copy_bb): Set frequency correctly.
18229         (fold_marked_statements): Update call to
18230         cgraph_update_edges_for_call_stmt.
18231
18232 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
18233
18234         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
18235         identifiers in diagnostics.
18236         * config/arm/arm.c (arm_handle_fndecl_attribute,
18237         arm_handle_isr_attribute): Likewise.
18238         * config/avr/avr.c (avr_handle_progmem_attribute,
18239         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
18240         * config/bfin/bfin.c (handle_int_attribute,
18241         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
18242         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
18243         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
18244         Likewise.
18245         * config/darwin.c (darwin_handle_kext_attribute,
18246         darwin_handle_weak_import_attribute): Likewise.
18247         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
18248         h8300_handle_eightbit_data_attribute,
18249         h8300_handle_tiny_data_attribute): Likewise.
18250         * config/i386/i386.c (ix86_handle_cconv_attribute,
18251         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
18252         * config/i386/winnt.c (ix86_handle_shared_attribute,
18253         ix86_handle_selectany_attribute): Likewise.
18254         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
18255         * config/m32c/m32c.c (function_vector_handler): Likewise.
18256         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
18257         m68hc11_handle_fntype_attribute): Likewise.
18258         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
18259         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
18260         * config/mips/mips.c (mips_insert_attributes,
18261         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
18262         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
18263         rs6000_handle_struct_attribute): Likewise.
18264         * config/sh/sh.c (sh_insert_attributes,
18265         sh_handle_resbank_handler_attribute,
18266         sh_handle_interrupt_handler_attribute,
18267         sh2a_handle_function_vector_handler_attribute,
18268         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
18269         Likewise.
18270         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
18271         * config/spu/spu.c (spu_handle_fndecl_attribute,
18272         spu_handle_vector_attribute): Likewise.
18273         * config/stormy16/stormy16.c
18274         (xstormy16_handle_interrupt_attribute): Likewise.
18275         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
18276         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
18277
18278 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
18279
18280         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
18281         (pp_translate_identifiers): New.
18282         (pp_identifier): Only conditionally translate identifier to locale
18283         character set.
18284         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
18285         (pp_base_tree_identifier): Only conditionally translate identifier
18286         to locale character set.
18287         * c-pretty-print.c (M_): Define.
18288         (pp_c_type_specifier, pp_c_primary_expression): Mark English
18289         fragments for conditional translation with M_.
18290         * tree-pretty-print.c (maybe_init_pretty_print): Disable
18291         identifier translation.
18292
18293 2009-05-10  Richard Guenther  <rguenther@suse.de>
18294
18295         PR tree-optimization/40081
18296         * tree-sra.c (instantiate_element): Instantiate scalar replacements
18297         using the main variant of the element type.  Do not fiddle with
18298         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
18299
18300 2009-05-09  Jan Hubicka  <jh@suse.cz>
18301
18302         PR middle-end/40080
18303         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
18304         indirect calls; verify cgraph afterwards.
18305
18306 2009-05-09  Jan Hubicka  <jh@suse.cz>
18307
18308         PR bootstrap/40082
18309         * ipa.c (update_inlined_to_pointer): New function.
18310         (cgraph_remove_unreachable_nodes): Use it.
18311
18312 2009-05-09  Jan Hubicka  <jh@suse.cz>
18313
18314         * tree-eh.c (struct leh_state): Remove prev_try.
18315         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
18316         not track prev_try.
18317         * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
18318         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
18319         remove_eh_handler_and_replace, foreach_reachable_handler,
18320         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
18321         * except.h (struct eh_region): Remove eh_region_u_cleanup.
18322         (gen_eh_region_cleanup): Update prototype.
18323
18324 2009-05-09  Jan Hubicka  <jh@suse.cz>
18325
18326         PR middle-end/40043
18327         * except.c (copy_eh_region): Always set prev_try.
18328         (redirect_eh_edge_to_label): Find outer try.
18329         (foreach_reachable_handler): When looking for prev try
18330         handle case where previous try is not going to be taken.
18331
18332 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
18333
18334         PR tree-optimization/40049
18335         * tree-vect-stmts.c (vectorizable_operation): If the machine has
18336         only vector/vector shifts, convert the type of the constant to the
18337         appropriate type to avoid building incorrect trees, which
18338         eventually have problems with garbage collection.
18339
18340 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
18341
18342         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
18343         -1 for complex floating-point types if honoring signed zeros.
18344
18345 2009-05-08  Jan Hubicka  <jh@suse.cz>
18346
18347         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
18348         argument; handle correctly when profile is absent.
18349         (build_cgraph_edges): Update.
18350         (rebuild_cgraph_edges): Update.
18351         * cgraph.c: Do not include varray.h.
18352         (cgraph_set_call_stmt_including_clones): New function.
18353         (cgraph_create_edge_including_clones): Likewise
18354         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
18355         (cgraph_update_edges_for_call_stmt): Handle clones.
18356         (cgraph_remove_node): Handle clone tree.
18357         (cgraph_remove_node_and_inline_clones): New function.
18358         (dump_cgraph_node): Dump clone tree.
18359         (cgraph_clone_node): Handle clone tree.
18360         (clone_function_name): Bring here from tree-inline.c.
18361         (cgraph_create_virtual_clone): New function.
18362         * cgraph.h (ipa_replace_map): Move here from ipa.h.
18363         (cgraph_clone_info): New function.
18364         (strut cgraph_node): Add clone_info and new clone tree pointers.
18365         (cgraph_remove_node_and_inline_clones,
18366         cgraph_set_call_stmt_including_clones,
18367         cgraph_create_edge_including_clones,
18368         cgraph_create_virtual_clone): Declare.
18369         (cgraph_function_versioning): Use VEC argument.
18370         (compute_call_stmt_bb_frequency): Update prototype.
18371         (cgraph_materialize_all_clones): New function.
18372         * ipa-cp.c (ipcp_update_cloned_node): Remove.
18373         (ipcp_create_replace_map): Update to VECtors.
18374         (ipcp_update_callgraph): Use virtual clones.
18375         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
18376         (ipcp_update_profiling): Do not update local profiling.
18377         (ipcp_insert_stage): Use VECtors and virtual clones.
18378         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
18379         (clone_of_p): New function.
18380         (cgraph_preserve_function_body_p): Use clone tree.
18381         (cgraph_optimize): Materialize clones.
18382         (cgraph_function_versioning): Update for VECtors.
18383         (save_inline_function_body): Use clone tree.
18384         (cgraph_materialize_clone): New function.
18385         (cgraph_materialize_all_clones): Likewise.
18386         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
18387         * ipa.c: Include gimple.h.
18388         (cgraph_remove_unreachable_nodes): Use clone tree.
18389         * ipa-prop.c (ipa_note_param_call): Update call to
18390         compute_call_stmt_bb_frequencycall.
18391         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
18392         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
18393         (copy_bb): Handle updating of clone tree; add new edge when new call
18394         appears.
18395         (expand_call_inline): Be strict about every call having edge.
18396         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
18397         (delete_unreachable_blocks_update_callgraph): New function.
18398         (tree_function_versioning): Use VECtors; always remove unreachable
18399         blocks and fold conditionals.
18400         * tree-inline.h: Do not include varray.h.
18401         (tree_function_versioning): Remove.
18402         * Makefile.in (GTFILES): Remove tree-inline.c
18403         * passes.c (do_per_function): Do only functions having body.
18404         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
18405         tree.
18406
18407 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
18408             Andrew Morrow  <acm@google.com>
18409
18410         PR c/36892
18411         * c-common.c (c_common_attribute_table): Permit deprecated
18412         attribute to take an optional argument.
18413         (handle_deprecated_attribute): If the optional argument to
18414         __attribute__((deprecated)) is not a string ignore the attribute
18415         and emit a warning.
18416
18417         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
18418         * c-typeck.c (build_component_ref): Likewise.
18419         (build_external_ref): Likewise.
18420
18421         * toplev.c (warn_deprecated_use): Add an attribute argument.
18422         Emit the message associated with __attribute__((deprecated)).
18423
18424         * toplev.h (warn_deprecated_use): Updated.
18425
18426         * doc/extend.texi: Document new optional parameter to
18427         __attribute__((deprecated))
18428
18429 2009-05-08  Michael Eager <eager@eagercon.com>
18430
18431         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
18432         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
18433
18434 2009-05-08  Richard Guenther  <rguenther@suse.de>
18435
18436         PR tree-optimization/40062
18437         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
18438         Avoid exponential behavior.
18439
18440 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
18441
18442         PR rtl-optimization/33928
18443         PR 26854
18444         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
18445         process_uses, build_single_def_use_links): New.
18446         (update_df): Update use_def_ref.
18447         (forward_propagate_into): Use get_def_for_use instead of use-def
18448         chains.
18449         (fwprop_init): Call build_single_def_use_links and let it initialize
18450         dataflow.
18451         (fwprop_done): Free use_def_ref.
18452         (fwprop_addr): Eliminate duplicate call to df_set_flags.
18453         * df-problems.c (df_rd_simulate_artificial_defs_at_top,
18454         df_rd_simulate_one_insn): New.
18455         (df_rd_bb_local_compute_process_def): Update head comment.
18456         (df_chain_create_bb): Use the new RD simulation functions.
18457         * df.h (df_rd_simulate_artificial_defs_at_top,
18458         df_rd_simulate_one_insn): New.
18459         * opts.c (decode_options): Enable fwprop at -O1.
18460         * doc/invoke.texi (-fforward-propagate): Document this.
18461
18462 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
18463
18464         PR c/24581
18465         * c-typeck.c (build_binary_op): Handle arithmetic between one real
18466         and one complex operand specially.
18467         * tree-complex.c (some_nonzerop): Do not identify a real value as
18468         zero if flag_signed_zeros.
18469
18470 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
18471
18472         PR rtl-optimization/33928
18473         * loop-invariant.c (record_use): Fix && vs. || mishap.
18474
18475 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
18476
18477         PR rtl-optimization/33928
18478         * loop-invariant.c (struct use): Add addr_use_p.
18479         (struct def): Add n_addr_uses.
18480         (struct invariant): Add cheap_address.
18481         (create_new_invariant): Set cheap_address.
18482         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
18483         (record_uses): Pass df_ref to record_use.
18484         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
18485         used only as such.
18486
18487 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
18488
18489         * config/sh/sh.c: Do not include c-pragma.h.
18490
18491 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18492
18493         * config/spu/spu.c: Remove include of c-common.h.
18494
18495 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
18496
18497         PR c/39037
18498         * c-common.h (mark_valid_location_for_stdc_pragma,
18499         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
18500         clear_float_const_decimal64, float_const_decimal64_p): New.
18501         * c.opt (Wunsuffixed-float-constants): New.
18502         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
18503         unsuffixed float constant, handle new warning.
18504         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
18505         * c-decl.c (c_scope): New flag float_const_decimal64.
18506         (set_float_const_decimal64, clear_float_const_decimal64,
18507         float_const_decimal64_p): New.
18508         (push_scope): Set new flag.
18509         * c-parser.c (c_parser_translation_unit): Mark when it's valid
18510         to use STDC pragmas.
18511         (c_parser_external_declaration): Ditto.
18512         (c_parser_compound_statement_nostart): Ditto.
18513         * c-pragma.c (valid_location_for_stdc_pragma,
18514         mark_valid_location_for_stdc_pragma,
18515         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
18516         handle_pragma_float_const_decimal64): New.
18517         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
18518         * cp/semantics.c (valid_location_for_stdc_pragma_p,
18519         set_float_const_decimal64, clear_float_const_decimal64,
18520         float_const_decimal64_p): New dummy functions.
18521         * doc/extend.texi (Decimal Float): Remove statement that the
18522         pragma, and suffix for double constants, are not supported.
18523         * doc/invoke.texi (Warning Options): List new option.
18524         (-Wunsuffixed-float-constants): New.
18525
18526 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
18527
18528         * config/i386/i386.c: Do not include c-common.h.
18529
18530 2009-05-07  Mark Heffernan  <meheff@google.com>
18531
18532         * doc/invoke.texi (Debugging Options): Document change of debugging
18533         dump location.
18534         * opts.c (decode_options): Make dump_base_name relative to
18535         aux_base_name directory.
18536
18537 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
18538
18539         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
18540         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
18541
18542 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
18543
18544         * Makefile.in (install-plugin): Simplify a bit.
18545
18546 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
18547
18548         * Makefile.in (OBJS-common): Add regcprop.o.
18549         (regcprop.o): New.
18550         * timevar.def (TV_CPROP_REGISTERS): New.
18551         * regrename.c (regrename_optimize): Return 0.
18552         (rest_of_handle_regrename): Delete.
18553         (pass_rename_registers): Point to regrename_optimize.
18554         (struct value_data_entry, struct value_data,
18555         kill_value_one_regno, kill_value_regno, kill_value,
18556         set_value_regno, init_value_data, kill_clobbered_value,
18557         kill_set_value, kill_autoinc_value, copy_value,
18558         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
18559         replace_oldest_value_reg, replace_oldest_value_addr,
18560         replace_oldest_value_mem, copyprop_hardreg_forward_1,
18561         debug_value_data, validate_value_data): Move...
18562         * regcprop.c: ... here.
18563         (rest_of_handle_cprop): Delete.
18564         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
18565
18566 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
18567
18568         PR middle-end/40057
18569         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
18570         GEN_INT for 1 << bitnum.
18571         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
18572         build_int_cst_type.
18573
18574 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
18575
18576         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
18577         Remove wrong description of "nand" operation.
18578
18579 2009-05-06  Richard Guenther  <rguenther@suse.de>
18580             Adam Nemet  <anemet@caviumnetworks.com>
18581
18582         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
18583         comment.  Add that if LHS is not a gimple register, then RHS1 has
18584         to be a single object (GIMPLE_SINGLE_RHS).
18585
18586 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
18587
18588         * expr.c (get_def_for_expr): Move it up in the file.
18589         (store_field): When expanding a bit-field store, look at the
18590         defining gimple stmt for the masking conversion.
18591
18592 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
18593
18594         PR middle-end/39986
18595         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
18596         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
18597         32-bit memcpy into long.
18598
18599 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
18600
18601         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
18602         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
18603         new_reg_loc_descr.
18604         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
18605         instead of appending DW_OP_deref*.
18606
18607 2009-05-06  Michael Matz  <matz@suse.de>
18608
18609         PR middle-end/40021
18610         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
18611         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
18612
18613 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
18614
18615         * Makefile.in (install-plugin): Fix srcdir handling.
18616
18617 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
18618
18619         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
18620         when processing for not_regs_needed bitmap.
18621         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
18622         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while
18623         handling it for rhs.
18624
18625 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
18626
18627         * config/i386/i386.md (unnamed inc/dec peephole): Use
18628         optimize_insn_for_size_p instead of optimize_size.
18629         * config/i386/predicates.md (incdec_operand): Likewise.
18630         (aligned_operand): Likewise.
18631         * config/i386/sse.md (divv8sf3): Likewise.
18632         (sqrtv8sf2): Likewise.
18633
18634 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
18635
18636         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
18637
18638         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
18639
18640 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
18641
18642         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
18643         ssemodesuffixf2c with avxmodesuffixf2c.
18644
18645 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
18646
18647         PR c/40032
18648         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
18649
18650 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
18651
18652         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
18653         (struct tree_base): Adjust spacing for 8 bit boundaries.
18654         (struct tree_decl_common): Add decl_by_reference_flag bit.
18655         (DECL_BY_REFERENCE): Adjust.
18656         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
18657         print DECL_BY_REFERENCE bit.
18658         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
18659         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
18660         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
18661         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
18662         unconditionally.
18663
18664         PR middle-end/39666
18665         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
18666         range of the type, but default label is missing, add it with one
18667         of the existing labels instead of adding a new label for it.
18668
18669 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
18670
18671         * dwarf.h: Remove.
18672
18673 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
18674
18675         * Makefile.in (enable_plugin, plugin_includedir): New.
18676         (install): Depend on install-plugin.
18677         (PLUGIN_HEADERS): New.
18678         (install-plugin): New.
18679         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
18680
18681 2009-05-05  Richard Guenther  <rguenther@suse.de>
18682
18683         PR tree-optimization/40022
18684         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
18685         the only vuse.
18686         (phivn_valid_p): Fix tuplification error, simplify.
18687         (phiprop_insert_phi): Add dumps.
18688         (propagate_with_phi): Simplify.
18689
18690 2009-05-05  Richard Guenther  <rguenther@suse.de>
18691
18692         PR middle-end/40023
18693         * builtins.c (gimplify_va_arg_expr): Properly build the address.
18694
18695 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
18696
18697         * tree.h (strip_float_extensions): Remove duplicate declaration.
18698         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
18699         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
18700         block_ultimate_origin): Rearrange the declarations line to match the
18701         comment that indicates the .c file which the functions are defined.
18702         (dwarf2out_*, set_decl_rtl): Add comment.
18703         (get_base_address): Adjust comment.
18704         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
18705         declarations line and add comment.
18706         (is_builtin_name): Add blank after function name, for clarity.
18707
18708 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
18709
18710         * attribs.c (decl_attributes): Use %qE for identifiers in
18711         diagnostics.
18712         * cgraphunit.c (verify_cgraph_node): Translate function names to
18713         locale character set in diagnostics.
18714         * coverage.c (get_coverage_counts): Use %qE for identifiers in
18715         diagnostics.
18716         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
18717         Document that functions are named in UTF-8.
18718         * expr.c (expand_expr_real_1): Translate function names to locale
18719         character set in diagnostics.
18720         * gimplify.c (omp_notice_variable, omp_is_private,
18721         gimplify_scan_omp_clauses): Use %qE for identifiers in
18722         diagnostics.
18723         * langhooks.c (lhd_print_error_function): Translate function names
18724         to locale character set.
18725         * langhooks.h (decl_printable_name): Document that return value is
18726         in internal character set.
18727         * stmt.c: Include pretty-print.h
18728         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
18729         diagnostics.
18730         (resolve_operand_name_1): Translate named operand name to locale
18731         character set.
18732         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
18733         diagnostics.
18734         * toplev.c (announce_function): Translate function names to locale
18735         character set.
18736         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
18737         (default_tree_printer): Use pp_identifier or translate identifiers
18738         to locale character set.  Mark "<anonymous>" for translation.
18739         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
18740         for identifiers in diagnostics.
18741         * tree.c (handle_dll_attribute): Use %qE for identifiers in
18742         diagnostics.
18743         * varasm.c (output_constructor): Use %qE for identifiers in
18744         diagnostics.
18745
18746 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
18747
18748         * configure.ac: use ` ` instead of $()
18749         * configure: Regenerate.
18750
18751 2009-05-05  Ben Elliston  <bje@au.ibm.com>
18752
18753         * config/pa/linux-atomic.c: Eliminate conditional include of
18754         errno.h on non-LP64 systems to simplify build requirements.
18755
18756 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
18757
18758         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
18759         diagnostics.
18760         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
18761         and pass value to identifier_to_locale.
18762         (warn_variable_length_array): Make name a tree.
18763         (grokdeclarator): Separate diagnostic texts for named and unnamed
18764         declarators.  Use %qE for named declarators.
18765         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
18766         diagnostics.
18767         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
18768         identifiers in diagnostics.
18769         * c-typeck.c (push_member_name, start_init): Pass identifiers to
18770         identifier_to_locale.  Mark "anonymous" strings for translation.
18771
18772 2009-05-04  Michael Eager <eager@eagercon.com>
18773
18774         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
18775         address for DImode/DFmode only if double-precision FP regs.
18776
18777 2009-05-04  Michael Eager <eager@eagercon.com>
18778
18779         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
18780         TARGET_SINGLE_FLOAT check.
18781
18782 2009-05-04  Michael Eager <eager@eagercon.com>
18783
18784         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
18785
18786 2009-05-04  Michael Eager <eager@eagercon.com>
18787
18788         * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
18789         * config/rs6000/t-xilinx: New
18790
18791 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
18792
18793         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
18794         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
18795         * gcc/explow.c (memory_address): Use target hook.
18796         * gcc/targhooks.c (default_legitimize_address): New.
18797         * gcc/targhooks.h (default_legitimize_address): New.
18798         * gcc/target.h (legitimize_address): New.
18799         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
18800         (TARGET_INITIALIZER): Include it.
18801         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
18802
18803         * config/bfin/bfin-protos.h (legitimize_address): Remove.
18804         * config/bfin/bfin.c (legitimize_address): Remove.
18805         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
18806         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
18807         Remove.
18808         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
18809         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
18810
18811         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
18812         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
18813         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
18814         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
18815         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
18816         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
18817         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
18818         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
18819         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
18820         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
18821         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
18822         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
18823         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
18824         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
18825         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
18826         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
18827         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
18828         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
18829         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
18830         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
18831         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
18832         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
18833         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
18834
18835         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
18836         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
18837         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
18838         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
18839         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
18840         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
18841         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
18842         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
18843         (thumb_legitimize_address): Delete.
18844         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
18845         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
18846         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
18847         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
18848         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
18849         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
18850         Delete.
18851         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
18852         Delete.
18853
18854         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
18855         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
18856         * config/m32r/m32r.c (m32r_legitimize_address): New.
18857         * config/m68k/m68k.c (m68k_legitimize_address): New.
18858         * config/score/score.c (score_legitimize_address): Standardize.
18859         * config/score/score3.c (score3_legitimize_address): Standardize.
18860         * config/score/score3.h (score3_legitimize_address): Adjust.
18861         * config/score/score7.c (score7_legitimize_address): Standardize.
18862         * config/score/score7.h (score7_legitimize_address): Adjust.
18863         * config/sh/sh.c (sh_legitimize_address): New.
18864         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
18865
18866         * gcc/config/s390/s390.c (legitimize_address): Rename to...
18867         (s390_legitimize_address): ... this.
18868         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
18869         (sparc_legitimize_address): ... this.
18870         * gcc/config/i386/i386.c (legitimize_address): Rename to...
18871         (ix86_legitimize_address): ... this.
18872         * gcc/config/avr/avr.c (legitimize_address): Rename to...
18873         (avr_legitimize_address): ... this.
18874         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
18875         (mn10300_legitimize_address): ... this.
18876         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
18877         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
18878         (alpha_expand_mov): Adjust call.
18879
18880         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
18881         * config/spu/spu.c (spu_legitimize_address): Likewise.
18882         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
18883         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
18884
18885 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
18886
18887         * intl.c (locale_encoding, locale_utf8): New.
18888         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
18889         * intl.h (locale_encoding, locale_utf8): Declare.
18890         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
18891         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
18892         New.
18893         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
18894         argument.
18895         (pp_tree_identifier): Define to call pp_base_tree_identifier.
18896         (pp_base_tree_identifier): Declare as function.
18897         (identifier_to_locale): Declare.
18898         * Makefile.in (pretty-print.o): Update dependencies.
18899         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
18900
18901 2009-05-04  Richard Guenther  <rguenther@suse.de>
18902
18903         PR middle-end/40015
18904         * builtins.c (fold_builtin_memory_op): Do not decay to element
18905         type if the size matches the whole array.
18906
18907 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
18908
18909         * expmed.c (synth_mult): When trying out a shift, pass the result
18910         of a signed shift.
18911
18912 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
18913
18914         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
18915         (shiftsub1_cost): New.
18916         (init_expmed): Compute shiftsub1_cost.
18917         (synth_mult): Optimize multiplications by constants of the form
18918         -(2^^m-1) for some constant positive integer m.
18919
18920 2009-05-03  Richard Guenther  <rguenther@suse.de>
18921
18922         PR c/39983
18923         * c-typeck.c (array_to_pointer_conversion): Do not built
18924         ADDR_EXPRs of arrays of pointer-to-element type.
18925         * c-gimplify.c (c_gimplify_expr): Revert change fixing
18926         up wrong ADDR_EXPRs after-the-fact.
18927         * c-common.c (strict_aliasing_warning): Strip pointer
18928         conversions for obtaining the original type.
18929         * builtins.c (fold_builtin_memset): Handle array types.
18930         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
18931         and array types
18932
18933 2009-05-03  Richard Guenther  <rguenther@suse.de>
18934
18935         PR middle-end/23329
18936         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
18937         Do not lose casts from array types with unknown extent to array
18938         types with known extent.
18939         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
18940         alias set compatibility.
18941
18942 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18943
18944         * flags.h (extra_warnings): Delete.
18945         * toplev.c (process_options): Handle Wuninitialized here.
18946         * opts.c (extra_warnings): Delete.
18947         (set_Wextra): Delete.
18948         (common_handle_option): -Wextra can be handled automatically.
18949         * c-opts.c (c_common_handle_option): Delete obsolete code.
18950         (c_common_post_options): Simplify comment.
18951         * common.opt (W): Add Var.
18952         (Wextra): Add Var.
18953         (Wuninitialized): Initialize to -1.
18954
18955 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
18956             Richard Guenther  <rguenther@suse.de>
18957
18958         * expr.c (get_def_for_expr): New function.
18959         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
18960         SSA rather than trees.
18961         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
18962         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
18963
18964 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
18965
18966         * c-common.c (reswords): Add _Imaginary.
18967         * c-common.c (enum rid): Add RID_IMAGINARY.
18968
18969 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
18970
18971         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
18972         Patch by Richard Guenther.
18973
18974 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
18975
18976         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
18977         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
18978         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
18979         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
18980         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
18981         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
18982         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
18983         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
18984         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
18985         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
18986         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
18987         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
18988         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
18989         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
18990         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
18991         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
18992         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
18993         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
18994
18995 2009-05-02  Richard Guenther  <rguenther@suse.de>
18996
18997         PR tree-optimization/39940
18998         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
18999         doing so.
19000
19001 2009-05-02  Richard Guenther  <rguenther@suse.de>
19002
19003         PR middle-end/40001
19004         * tree-ssa.c (execute_update_addresses_taken): Properly check
19005         if we can mark a variable DECL_GIMPLE_REG_P.
19006         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
19007         back to the end of the function.
19008         (is_gimple_reg_type): Remove complex type special casing.
19009         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
19010         if not optimizing.
19011
19012 2009-05-02  Ben Elliston  <bje@au.ibm.com>
19013
19014         * doc/collect2.texi (Collect2): Document search path behaviour
19015         when configured with --with-ld.
19016
19017 2009-05-02  Jan Hubicka  <jh@suse.cz>
19018
19019         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
19020         parameter; update callers.
19021         (coalesce_cost_edge): EH edges are costier because they needs
19022         splitting even if not critical and even more costier when there are
19023         multiple EH predecestors.
19024
19025 2009-05-02  Jan Hubicka  <jh@suse.cz>
19026
19027         * except.c (remove_eh_handler_and_replace): Handle updating after
19028         removing TRY blocks.
19029
19030 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
19031
19032         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
19033
19034 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
19035
19036         * varasm.c: Do not include c-pragma.h.
19037         * attribs.c: Do not incude c-common.h.
19038
19039 2009-05-01  Michael Matz  <matz@suse.de>
19040
19041         * calls.c (initialize_argument_information): Handle SSA names like
19042         decls with a non MEM_P DECL_RTL.
19043
19044 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
19045
19046         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
19047         * ipa-utils.c: Likewise.
19048         * ipa-type-escape.c: Likewise.
19049         * cgraphunit.c Do not include c-common.h.
19050         * ipa-pure-const.c: Likewise.
19051         * tree-if-conv.c: Likewise.
19052         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
19053         * ipa-struct-reorg.c: Likewise.
19054         * tree-nomudflap.c: Likewise.
19055         * tree-ssa-structalias.c: Likewise.
19056
19057 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
19058
19059         * store-motion.c: Many cleanups to make this pass a first-class
19060         citizen instead of an appendix to gcse load motion.  Add TODO list
19061         to make this pass faster/cleaner/better.
19062
19063         (struct ls_expr): Post gcse.c-split cleanups.
19064         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
19065         "stores" field to "avail_stores".
19066         (pre_ldst_mems): Rename to store_motion_mems.
19067         (pre_ldst_table): Rename to store_motion_mems_table.
19068         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
19069         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
19070         (ldst_entry): Rename to st_expr_entry, update users.
19071         (free_ldst_entry): Rename to free_st_expr_entry, update users.
19072         (free_ldst_mems): Rename to free_store_motion_mems, update users.
19073         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
19074         update caller.
19075         (first_ls_expr): Rename to first_st_expr, update users.
19076         (next_ls_expr): Rename to next_st_expr, update users.
19077         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
19078         fields properly for store motion instead of names inherited from load
19079         motion in gcse.c.
19080         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
19081         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
19082         are done with it.
19083
19084         (ae_kill): Rename to st_kill, update users.
19085         (ae_gen): Rename to st_avloc, update users.
19086         (transp): Rename to st_transp, update users.
19087         (pre_insert_map): Rename to st_insert_map, update users.
19088         (pre_delete_map): Rename to st_delete_map, update users.
19089         (insert_store, build_store_vectors, free_store_memory,
19090         one_store_motion_pass): Update for abovementioned changes.
19091
19092         (gcse_subst_count, gcse_create_count): Remove.
19093         (one_store_motion_pass): New statistics counters "n_stores_deleted"
19094         and "n_stores_created", local variables.
19095
19096         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
19097         use for_each_rtx.
19098
19099         (regvec, compute_store_table_current_insn): Remove.
19100         (reg_set_info, reg_clear_last_set): Remove.
19101         (compute_store_table): Use DF caches instead of local dataflow
19102         solvers.
19103
19104 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
19105
19106         * c-objc-common.c (c_tree_printer): Print identifiers with
19107         pp_identifier, not pp_string.  Mark "({anonymous})" for
19108         translation.
19109         * c-pretty-print.c (pp_c_ws_string): New.
19110         (pp_c_cv_qualifier, pp_c_type_specifier,
19111         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
19112         pp_c_storage_class_specifier, pp_c_function_specifier,
19113         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
19114         pp_c_primary_expression, pp_c_postfix_expression,
19115         pp_c_unary_expression, pp_c_shift_expression,
19116         pp_c_relational_expression, pp_c_equality_expression,
19117         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
19118         use pp_string and pp_c_ws_string in place of pp_identifier and
19119         pp_c_identifier for non-identifiers.  Mark English strings for
19120         translation.
19121         * c-pretty-print.h (pp_c_ws_string): Declare.
19122
19123 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
19124             Roland McGrath <roland@redhat.com>
19125
19126         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
19127         (ENABLE_LD_BUILDID): New configuration option.
19128         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
19129         (LINK_BUILDID_SPEC): New macro.
19130         (init_spec): If defined, prepend it between LINK_EH_SPEC and
19131         link_spec.
19132         * doc/install.texi: Document --enable-linker-build-id option.
19133         * configure: Rebuild.
19134         * config.in: Rebuild.
19135
19136 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
19137
19138         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
19139         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
19140         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
19141         MIPS_GP_SAVE_AREA_SIZE.
19142         * config/mips/mips.c (struct mips_frame_info): Update comment
19143         before arg_pointer_offset and hard_frame_pointer_offset.
19144         (mips_compute_frame_info): Update diagram before function: to
19145         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
19146         indicate the position of frame_pointer_rtx with -fstack-protector and
19147         to show args_size.  Don't allocate cprestore area for leaf functions
19148         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
19149         cprestore_size.
19150         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
19151
19152 2009-04-30  Michael Matz  <matz@suse.de>
19153
19154         PR tree-optimization/39955
19155         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
19156
19157 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
19158
19159         * ira.c (setup_cover_and_important_classes):  Use safe macro
19160         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
19161         directly.
19162         * genpreds.c (write_tm_preds_h):  Output suitable definition of
19163         REG_CLASS_FOR_CONSTRAINT.
19164
19165 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
19166
19167         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
19168         instead of an int.
19169         * bitmap.c (bitmap_descriptor): Likewise.
19170         * ggc-common.c (loc_descriptor): Likewise.
19171         * varray.c (varray_descriptor): Likewise.
19172         * vec.c (vec_descriptor): Likewise.
19173
19174 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
19175
19176         * Makefile.in (dce.o): Add $(EXCEPT_H).
19177         * dce.c: Include except.h and delete redundant vector definitions.
19178         (deletable_insn_p): Return false for non-call insns that can throw
19179         if DF is running.
19180
19181 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
19182
19183         * gcse.c (ae_gen): Remove.
19184         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
19185         and make non-static function to make it available in store-motion.c.
19186         Update call sites with search-and-replace.
19187         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
19188         extract_mentioned_regs, extract_mentioned_regs_helper,
19189         find_moveable_store, compute_store_table, load_kills_store, find_loads,
19190         store_killed_in_insn, store_killed_after, store_killed_before,
19191         build_store_vectors, insert_insn_start_basic_block, insert-store,
19192         remove_reachable_equiv_notes, replace_store_insn, delete_store,
19193         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
19194         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
19195         * store-motion.c: ...new file.  Also copy data structures from gcse.c
19196         and clean up to remove parts not used by store motion.
19197         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
19198         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
19199
19200 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19201
19202         PR target/38571
19203         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
19204         when optimizing for size.
19205
19206 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
19207
19208         * gcse.c (gcse_constant_p): Fix typo in last change.
19209
19210 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
19211
19212         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
19213
19214 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
19215
19216         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
19217
19218 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
19219
19220         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
19221         CONST_HIGH_PART result.
19222
19223 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
19224
19225         * config/avr/avr.c (initial_elimination_offset): Rename to
19226         avr_initial_elimination_offset.
19227         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
19228         change return type to bool.
19229         (avr_can_eliminate): New function.
19230         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
19231         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
19232         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
19233         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
19234         avr_initial_elimination_offset.
19235         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
19236         (avr_initial_elimination_offset): Define.
19237
19238 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
19239             Steven Bosscher  <steven@gcc.gnu.org>
19240
19241         PR rtl-optimization/39938
19242         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
19243         * cfgrtl.c: Include insn-attr.h.
19244         (rest_of_pass_free_cfg): New function.
19245         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
19246         * resource.c (init_resource_info): Remove call to df_analyze.
19247
19248 2009-04-29  Richard Guenther  <rguenther@suse.de>
19249
19250         PR target/39943
19251         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
19252         allow conversion to signed integers.
19253
19254 2009-04-29  Richard Guenther  <rguenther@suse.de>
19255
19256         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
19257         shifts of floating point vectors if the shift amount is
19258         a constant multiple of the element size.
19259
19260 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
19261             Michael Matz  <matz@suse.de>
19262
19263         PR middle-end/39927
19264         PR bootstrap/39929
19265         * tree-outof-ssa.c (emit_partition_copy): New function.
19266         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
19267         insert_part_to_rtx_on_edge): Perform the partition base var
19268         copy using emit_partition_copy.
19269         (insert_value_copy_on_edge): Convert constants to the right mode.
19270         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
19271         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
19272
19273 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
19274
19275         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
19276         scan backwards to try to find a constant to initialize it.
19277
19278         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
19279         insn before the loop_end instruction, don't look past labels.
19280
19281 2009-04-29  Richard Guenther  <rguenther@suse.de>
19282
19283         PR middle-end/39937
19284         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
19285         loose type conversions.
19286         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
19287         stmts only if there are no uses of its definition.
19288
19289 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
19290
19291         * config/bfin/bfin.h (splitting_loops): Declare.
19292         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
19293         Reorder bit definitions to be ascending.
19294         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
19295         * config/bfin/bfin.c (splitting_loops): New variable.
19296         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
19297         (struct loop_info): Remove members INIT and LOOP_INIT.
19298         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
19299         the LSETUP sequence.  Allow LC to be loaded from any register, but
19300         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
19301         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
19302         set to 1.
19303         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
19304         of reload_completed.
19305
19306         From Jie Zhang:
19307         * config/bfin/bfin.md (movsi_insn): Refine constraints.
19308
19309 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
19310
19311         * Makefile.in (PLUGIN_VERSION_H): New.
19312         (OBJS-common): Remove plugin-version.o.
19313         (plugin.o): Depend on (PLUGIN_VERSION_H).
19314         (plugin-version.o): Remove.
19315         * configure: Regenerate
19316         * configure.ac: Create plugin-version.h.
19317         * gcc-plugin.h (plugin_gcc_version): Remove.
19318         (plugin_default_version_check): Change signature.
19319         * plugin-version.c: Remove.
19320         * plugin.c: Include plugin-version.h.
19321         (str_plugin_gcc_version_name): Remove.
19322         (try_init_one_plugin): Pass gcc version to plugin_init.
19323         (plugin_default_version_check): Both gcc and plugin versions are now
19324         arguments.
19325
19326 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
19327
19328         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
19329         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
19330         Remove special case testing for last insn of inner loops. Don't fail
19331         if the loop ends with a jump, emit an extra nop instead.
19332
19333         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
19334         DREGS rather than comparing directly.  Remove code that tries to
19335         account for latencies.
19336
19337 2009-04-29  Richard Guenther  <rguenther@suse.de>
19338
19339         PR tree-optimization/39941
19340         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
19341         eliminating an indirect call.
19342
19343 2009-04-29  Richard Guenther  <rguenther@suse.de>
19344
19345         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
19346         parameter.  Allow invariants as base if !require_lvalue.
19347         (verify_gimple_assign_single): Adjust.
19348
19349 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
19350
19351         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
19352         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
19353         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
19354         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
19355         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
19356         a VEC_SELECT.
19357         * config/bfin/bfin.c (bfin_expand_builtin,
19358         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
19359
19360 2009-04-28  Richard Guenther  <rguenther@suse.de>
19361
19362         * tree-vect-loop.c (get_initial_def_for_induction): Use
19363         correct types for pointer increment.
19364
19365 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19366
19367         * toplev.c (print_version): Update GMP version string calculation.
19368
19369 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
19370
19371         PR rtl-optimization/39938
19372         * resource.c (init_resource_info): Add call to df_analyze.
19373
19374 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
19375
19376         * config/alpha/alpha.md (usegp): Cast the result of
19377         alpha_find_lo_sum_using_gp to enum attr_usegp.
19378         * config/alpha/alpha.c (override_options): Remove end-of-structure
19379         marker element from cpu_table.  Use array size of cpu_table to handle
19380         -mcpu and -mtune options.
19381         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
19382
19383 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
19384
19385         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
19386         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
19387         tune_32 and tune_64.
19388         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
19389         support on PowerPC.
19390         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
19391         * config/rs6000/option-defaults.h: ... here.  New file.
19392         (OPT_64, OPT_32): Define.
19393         (MASK_64BIT): Define to 0 if not already defined.
19394         (OPT_ARCH64, OPT_ARCH32): Define.
19395         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
19396         and tune_64.
19397
19398 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19399
19400         * config/arm/arm.c (arm_override_options): Emit error on using
19401         fpa with AAPCS.
19402
19403 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
19404
19405         PR rtl-optimization/39914
19406         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
19407         registers for allocnos created from user-defined variables only
19408         when not optimizing.
19409
19410 2009-04-28  Richard Guenther  <rguenther@suse.de>
19411
19412         PR middle-end/39937
19413         * fold-const.c (fold_binary): Use distribute_real_division only
19414         on float types.
19415
19416 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
19417
19418         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
19419         add hpux-stdint.h to tm_file.
19420         (hppa[12]*-*-hpux11*): Ditto.
19421         (ia64*-*-hpux*): Ditto.
19422         * config/hpux-stdint.h: New.
19423         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
19424         __STDC_EXT__ for all compiles.
19425         * config/pa/pa-hpux.h: Ditto.
19426         * config/pa/pa-hpux10.h: Ditto.
19427         * config/pa/pa-hpux11.h: Ditto.
19428
19429 2009-04-28  Catherine Moore  <clm@codesourcery.com>
19430
19431         * debug.h (set_name): Add comment.
19432
19433 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
19434
19435         PR target/39929
19436         * config/darwin.c (machopic_gen_offset): Check
19437         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
19438         * config/arm/arm.c (require_pic_register): Likewise.
19439
19440 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
19441
19442         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
19443         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
19444         m32c_promote_prototypes): Delete.
19445
19446 2009-04-28  Michael Matz  <matz@suse.de>
19447
19448         PR middle-end/39922
19449         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
19450         constants.
19451
19452 2009-04-28  Richard Guenther  <rguenther@suse.de>
19453
19454         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
19455
19456 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19457
19458         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
19459         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
19460         * config/arm/arm-tune.md: Regenerate.
19461
19462 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
19463
19464         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
19465         block if there are complex incoming edges.
19466         (sel_merge_blocks): Remove useless assert.
19467         (sel_redirect_edge_and_branch): Check that edge was redirected.
19468         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
19469         (sel_find_rgns): Delete declaration.
19470         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
19471         the region when it is not a preheader.
19472
19473 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
19474
19475         PR c/39323
19476         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
19477
19478 2009-04-28  Richard Guenther  <rguenther@suse.de>
19479
19480         * tree.h (SSA_NAME_VALUE): Remove.
19481         (struct tree_ssa_name): Remove value_handle member.
19482         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
19483         array for jump threading.
19484         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
19485         SSA_NAME_VALUEs.
19486         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
19487         * tree-flow.h (threadedge_initialize_values): Declare.
19488         (threadedge_finalize_values): Likewise.
19489         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
19490         (SSA_NAME_VALUE): Define.
19491         (threadedge_initialize_values): New function.
19492         (threadedge_finalize_values): Likewise.
19493         * tree-ssa-dom.c (ssa_name_values): New global variable.
19494         (SSA_NAME_VALUE): Define.
19495         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
19496
19497 2009-04-28  Ira Rosen  <irar@il.ibm.com>
19498
19499         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
19500         Use REPORT_VECTORIZED_LOCATIONS instead
19501         REPORT_VECTORIZED_LOOPS.
19502         * tree-vectorizer.c (vect_verbosity_level): Make static.
19503         (vect_loop_location): Rename to vect_location.
19504         (vect_set_verbosity_level): Update comment.
19505         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
19506         and vect_location.
19507         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
19508         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
19509         instead REPORT_UNVECTORIZED_LOOPS.
19510         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
19511         and vect_loop_def to vect_external_def and vect_internal_def.
19512         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
19513         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
19514         REPORT_UNVECTORIZED_LOCATIONS.
19515         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
19516         and vect_used_in_loop and to vect_unused_in_scope and
19517         vect_used_in_scope.
19518         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
19519         (vect_verbosity_level): Remove declaration.
19520         (vect_analyze_operations): Likewise.
19521         (vect_analyze_stmt): Declare.
19522         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
19523         REPORT_UNVECTORIZED_LOCATIONS.
19524         (vect_get_loop_niters): Fix indentation.
19525         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
19526         (vect_analyze_loop_operations): New function.
19527         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
19528         vect_analyze_operations.
19529         (vect_is_simple_reduction): Use new names.
19530         (vectorizable_live_operation, vect_transform_loop): Likewise.
19531         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
19532         to specify whether the data references can be a part of interleaving
19533         chain.
19534         (vect_analyze_data_ref_dependence): Use new names.
19535         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
19536         (vect_create_addr_base_for_vector_ref): Remove redundant code.
19537         * tree-vect-patterns.c (widened_name_p): Use new names.
19538         (vect_recog_dot_prod_pattern): Likewise.
19539         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
19540         (process_use, vect_mark_stmts_to_be_vectorized,
19541         vect_model_simple_cost, vect_model_store_cost,
19542         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
19543         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
19544         vectorizable_operation, vectorizable_type_demotion,
19545         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
19546         vectorizable_condition): Likewise.
19547         (vect_analyze_operations): Split into vect_analyze_loop_operations
19548         and ...
19549         (vect_analyze_stmt): ... new function.
19550         (new_stmt_vec_info): Use new names.
19551         (vect_is_simple_use): Use new names and fix comment.
19552         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
19553         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
19554
19555 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
19556
19557         PR target/39911
19558         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
19559         and integer modes for x87 operands.  Do not ICE for unsupported size,
19560         generate error instead.  Generate error for unsupported operand types.
19561         ['z']: Do not handle HImode memory operands specially.  Warning
19562         for floating-point operands.  Fallthru to 'Z' for unsupported operand
19563         types.  Do not ICE for unsupported size, generate error instead.
19564         (output_387_binary_op): Use %Z to output operands.
19565         (output_fp_compare): Ditto.
19566         (output_387_reg_move): Ditto.
19567
19568 2009-04-28  Ben Elliston  <bje@au.ibm.com>
19569
19570         PR c++/35652
19571         Revert:
19572
19573         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19574
19575         * builtins.c (c_strlen): Do not warn here.
19576         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
19577         * c-common.c (pointer_int_sum): Take an explicit location.
19578         Warn about offsets out of bounds.
19579         * c-common.h (pointer_int_sum): Adjust declaration.
19580
19581 2009-04-27  Ian Lance Taylor  <iant@google.com>
19582
19583         * collect2.c (is_ctor_dtor): Change type of ret field in struct
19584         names to symkind.
19585         * dce.c (run_fast_df_dce): Change type of old_flags to int.
19586         * df-core.c (df_set_flags): Change return type to int.  Change
19587         type of old_flags to int.
19588         (df_clear_flags): Likewise.
19589         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
19590         (df_get_conditional_uses): Likewise.
19591         * df.h (df_set_flags, df_clear_flags): Update declarations.
19592         * dwarf2out.c (struct indirect_string_node): Change type of form
19593         field to enum dwarf_form.
19594         (AT_string_form): Change return type to enum dwarf_form.
19595         * fixed-value.c (fixed_compare): Add cast to enum type.
19596         * fwprop.c (update_df): Change 0 to VOIDmode.
19597         * gensupport.c: Change 0 to UNKNOWN.
19598         * gimple.h (gimple_cond_code): Add cast to enum type.
19599         * haifa-sched.c (reemit_notes): Add cast to enum type.
19600         * hooks.c (hook_int_void_no_regs): Remove function.
19601         * hooks.h (hook_int_void_no_regs): Remove declaration.
19602         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
19603         * predict.c (combine_predictions_for_insn): Add casts to enum type.
19604         * real.c (real_arithmetic): Add cast to enum type.
19605         (real_compare): Likewise.
19606         * target.h (struct gcc_target): Change return type of
19607         branch_target_register_class to enum reg_class.
19608         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
19609         default_branch_target_register_class.
19610         * targhooks.c (default_branch_target_register_class): New function.
19611         * targhooks.h (default_branch_target_register_class): Declare.
19612         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
19613         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
19614         cast to int.
19615         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
19616         ERROR_MARK.
19617         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
19618         vect_uninitialized_def.  Change 0 to ERROR_MARK.
19619         * tree-vect-stmts.c (supportable_widening_operation): Don't
19620         initialize icode1 and icode2.
19621         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
19622         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
19623         and to STD_C89.
19624         (cmn_err_flag_specs): Change 0 to STD_C89.
19625         (cmn_err_char_table): Likewise.
19626         * config/arm/arm.c (get_arm_condition_code): Change type of code
19627         to enum arm_cond_code.
19628         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
19629         (IWMMXT_BUILTIN2): Likewise.
19630         (neon_builtin_type_bits): Don't define typedef.
19631         (neon_builtin_datum): Change type of bits field to int.
19632         (arm_expand_neon_args): Add cast to enum type.
19633         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
19634         TLS_MODEL_NONE.
19635         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
19636         casts to enum type.
19637         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
19638         MIPS_FP_COND_f.
19639         * config/mips/mips.md (jal_macro): Return enum constant.
19640         (single_insn): Likewise.
19641         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
19642         CODE_FOR_nothing.
19643         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19644         casts to enum type.
19645         * config/s390/s390.c (s390_tune_flags): Change type to int.
19646         (s390_arch_flags): Likewise.
19647         (s390_handle_arch_option): Change flags field of struct pta to int.
19648         * config/s390/s390.h (s390_tune_flags): Update declaration.
19649         (s390_arch_flags): Likewise.
19650         * config/sh/sh.c (prepare_move_operands): Compare
19651         tls_symbolic_operand result with enum constant.
19652         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
19653         (sh_expand_prologue): Add cast to enum type.
19654         (sh_expand_epilogue): Likewise.
19655         (tls_symbolic_operand): Change return type to enum tls_model.
19656         (fpscr_set_from_mem): Add cast to enum type.
19657         (legitimize_pic_address): Compare tls_symbolic_operand result with
19658         enum constant.
19659         (sh_target_reg_class): Change return type to enum reg_class.
19660         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
19661         PROCESSOR_xxx.
19662         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
19663         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
19664         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
19665         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
19666         (delayed_branch, tls_call_delay): Likewise.
19667         (eligible_for_sibcall_delay): Likewise.
19668         (eligible_for_return_delay): Likewise.
19669         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
19670         (spu_expand_builtin_1): Likewise.
19671
19672         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
19673         for all types of conversions.
19674         (output_init_element): Issue -Wc++-compat warning if needed when
19675         initializing a bitfield with enum type.
19676         * c-parser.c (c_parser_expression): Set original_type to
19677         original_type of right hand operand of comma operator.
19678
19679 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19680
19681         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
19682         grammar nits.
19683         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
19684         * doc/cpp.texi (Standard Predefined Macros)
19685         (Implementation-defined behavior): Likewise.
19686         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
19687         * doc/gimple.texi (GIMPLE Exception Handling)
19688         (@code{GIMPLE_ASSIGN}): Likewise.
19689         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
19690         * doc/invoke.texi (Warning Options, Optimize Options)
19691         (AVR Options, Darwin Options): Likewise.
19692         (Optimize Options): Reformulate -fwhole-program description.
19693         * doc/loop.texi (Lambda): Likewise.
19694         * doc/md.texi (Output Template, Define Constraints)
19695         (Standard Names, Insn Splitting): Likewise.
19696         * doc/options.texi (Option properties): Likewise.
19697         * doc/passes.texi (Tree-SSA passes): Likewise.
19698         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
19699         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
19700         (File Names and DBX): Likewise.
19701         * doc/trouble.texi (Incompatibilities): Likewise.
19702
19703 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
19704
19705         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
19706         instruction is correct.
19707
19708 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
19709
19710         Allow non-constant arguments to conversion intrinsics.
19711         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
19712         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
19713         * spu.c (print_operand): Handle 'v' and 'w'.
19714         (exp2_immediate_p, spu_gen_exp2): Define.
19715         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
19716         spu_convtf_1): Update parameter descriptions.
19717         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
19718         * constraints.md ('v', 'w'): New.
19719         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
19720         Remove.
19721         (i2f, I2F): New define_mode_attr.
19722         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
19723         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
19724         fixuns_truncv4sfv4si2):  Update to use mode attribute.
19725         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
19726         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
19727         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
19728         patterns for combine.
19729
19730 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
19731
19732         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
19733         (cprop, hoist, pre, store_motion): New debug counters.
19734         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
19735         is not an RTL pass anymore.
19736         (pass_profiling): Remove extern decl for pass removed in 2005.
19737         (pass_gcse, pass_jump_bypass): Remove.
19738         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
19739         to 0 for clean state.
19740         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
19741         * cse.c (gate_handle_cse_after_global_opts,
19742         rest_of_handle_cse_after_global_opts): New functions.
19743         (pass_cse_after_global_opts): New pass, does local CSE.
19744         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
19745         (TV_CPROP): New timevar.
19746         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
19747         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
19748         (gcse_main, recompute_all_luids): Remove.
19749         (compute_hash_table_work): Call max_reg_num instead of reading
19750         max_gcse_regno.
19751         (cprop_jump): Don't set run_jump_opt_after_gcse.
19752         (constprop_register): Always allow to alter jumps.
19753         (cprop_insn): Likewise.
19754         (do_local_cprop): Likewise.
19755         (local_cprop_pass): Likewise.  Return non-zero if something changed.
19756         (cprop): Remove function, fold interesting bits into one_cprop_pass.
19757         (find_implicit_sets): Add note about missed optimization opportunity.
19758         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
19759         pass_rtl_cprop execute function.
19760         Don't bother tracking the pass number, each pass gets its own dumpfile
19761         now anyway.
19762         Always allow to alter jumpsand bypass jumps.
19763         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
19764         will just find no suitable set.
19765         (pre_edge_insert): Fix dumping, this function is for PRE only.
19766         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
19767         pass_rtl_pre execute function.
19768         (hoist_code): Return non-zero if something changed.  Keep track of
19769         substitutions and insertions for statistics gathering similar to PRE.
19770         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
19771         called from the pass_rtl_hoist execute function.  Show pass statistics.
19772         (compute_store_table): Use max_reg_num directly instead of using the
19773         formerly global max_gcse_regno.
19774         (build_store_vectors): Likewise.
19775         (replace_store_insn): Fix dumping.
19776         (store_motion): Rename to ...
19777         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
19778         pass, called from the pass_rtl_store_motion execute function.  Keep
19779         track of substitutions and insertions for statistics gathering similar
19780         to PRE.
19781         (bypass_jumps): Remove, fold interesting bits into ...
19782         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
19783         from the pass_rtl_cprop execute function.
19784         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
19785         pass_jump_bypass): Remove.
19786         (gate_handle_gcse, rest_of_handle_gcse): Remove.
19787         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
19788         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
19789         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
19790         (gate_rtl_store_motion, execute_rtl_store_motion,
19791         pass_rtl_store_motion): New.
19792         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
19793         make it clear that -fcse-skip-blocks is a no-op for backward compat.
19794         * passes.c (init_optimization_passes): Remove pass_gcse and
19795         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
19796         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
19797         instead of pass_jump_bypass.
19798
19799 2009-04-27  Richard Guenther  <rguenther@suse.de>
19800
19801         PR middle-end/39928
19802         * gimplify.c (gimplify_expr): If we are required to create
19803         a temporary make sure it ends up as register.
19804
19805 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
19806
19807         PR target/39903
19808         * config/i386/i386.c (construct_container): Don't call
19809         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
19810         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
19811
19812 2009-04-27  Michael Matz  <matz@suse.de>
19813
19814         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
19815         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
19816         * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
19817         (dump_replaceable_exprs): Take a bitmap.
19818         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
19819         array.
19820         (expand_gimple_basic_block): Likewise.
19821         * tree-ssa-ter.c (struct temp_expr_table_d): Make
19822         replaceable_expressions member a bitmap.
19823         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
19824         (mark_replaceable): Likewise.
19825         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
19826         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
19827
19828 2009-04-27  Richard Guenther  <rguenther@suse.de>
19829
19830         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
19831         (verify_stmts): Dispatch to gimple/type verification code.
19832         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
19833         issue with call argument types.
19834
19835 2009-04-27  Michael Matz  <matz@suse.de>
19836
19837         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
19838         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
19839         to above.
19840
19841 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
19842             Eric Botcazou  <ebotcazou@adacore.com>
19843
19844         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
19845         a label's basic block.
19846         (mark_target_live_regs): Tidy and rework obsolete comments.
19847         Change back DF problem to LIVE.  If a label starts a basic block,
19848         assume that all registers that used to be live then still are.
19849         (init_resource_info): If a label starts a basic block, set its
19850         BLOCK_FOR_INSN accordingly.
19851         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
19852
19853 2009-04-27  Richard Guenther  <rguenther@suse.de>
19854
19855         * tree-flow-inline.h (function_ann): Remove.
19856         (get_function_ann): Likewise.
19857         * tree-dfa.c (create_function_ann): Remove.
19858         * tree-flow.h (struct static_var_ann_d): Remove.
19859         (struct function_ann_d): Likewise.
19860         (union tree_ann_d): Remove fdecl member.
19861         (function_ann_t): Remove.
19862         (function_ann, get_function_ann, create_function_ann): Remove
19863         declarations.
19864
19865 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
19866
19867         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
19868
19869 2009-04-27  Jan Hubicka  <jh@suse.cz>
19870
19871         * ipa-pure-const.c (struct funct_state_d): New fields
19872         state_previously_known, looping_previously_known; remove
19873         state_set_in_source.
19874         (analyze_function): Use new fields.
19875         (propagate): Avoid assumption that state_set_in_source imply
19876         nonlooping.
19877
19878         * tree-ssa-loop-niter.c (finite_loop_p): New function.
19879         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
19880         * cfgloop.h (finite_loop_p): Declare.
19881
19882 2009-04-26  Michael Matz  <matz@suse.de>
19883
19884         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
19885
19886 2009-04-26  Michael Matz  <matz@suse.de>
19887
19888         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
19889         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
19890         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
19891         pass_mark_used_blocks): Remove.
19892         * tree-optimize.c (pass_free_datastructures,
19893         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
19894         * passes.c (init_optimization_passes): Don't call
19895         pass_mark_used_blocks, remove dead code.
19896
19897 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
19898
19899         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
19900         * tree-ssa-live.h (register_ssa_partition): Likewise.
19901
19902 2009-04-26  Michael Matz  <matz@suse.de>
19903
19904         Expand from SSA.
19905         * builtins.c (fold_builtin_next_arg): Handle SSA names.
19906         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
19907         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
19908         SSA names.
19909         (compare_pairs): Swap cost comparison.
19910         (coalesce_ssa_name): Don't use change_partition_var.
19911         * tree-nrv.c (struct nrv_data): Add modified member.
19912         (finalize_nrv_r): Set it.
19913         (tree_nrv): Use it to update statements.
19914         (pass_nrv): Require PROP_ssa.
19915         * tree-mudflap.c (mf_decl_cache_locals,
19916         mf_build_check_statement_for): Use make_rename_temp.
19917         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
19918         * alias.c (find_base_decl): Handle SSA names.
19919         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
19920         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
19921         * rtl.h (set_reg_attrs_for_parm): Declare.
19922         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
19923         to "optimized", remove unused locals at finish.
19924         (execute_free_datastructures): Make global, call
19925         delete_tree_cfg_annotations.
19926         (execute_free_cfg_annotations): Don't call
19927         delete_tree_cfg_annotations.
19928
19929         * ssaexpand.h: New file.
19930         * expr.c (toplevel): Include ssaexpand.h.
19931         (expand_assignment): Handle SSA names the same as register variables.
19932         (expand_expr_real_1): Expand SSA names.
19933         * cfgexpand.c (toplevel): Include ssaexpand.h.
19934         (SA): New global variable.
19935         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
19936         (SSAVAR): New macro.
19937         (set_rtl): New helper function.
19938         (add_stack_var): Deal with SSA names, use set_rtl.
19939         (expand_one_stack_var_at): Likewise.
19940         (expand_one_stack_var): Deal with SSA names.
19941         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
19942         before unique numbers.
19943         (expand_stack_vars): Use set_rtl.
19944         (expand_one_var): Accept SSA names, add asserts for them, feed them
19945         to above subroutines.
19946         (expand_used_vars): Expand all partitions (without default defs),
19947         then only the local decls (ignoring those expanded already).
19948         (expand_gimple_cond): Remove edges when jumpif() expands an
19949         unconditional jump.
19950         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
19951         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
19952         SSA name.
19953         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
19954         members of SA; deal with PARM_DECL partitions here; expand
19955         all PHI nodes, free tree datastructures and SA.  Commit instructions
19956         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
19957         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
19958         info and statements at start, collect garbage at finish.
19959         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
19960         (VAR_ANN_PARTITION) Remove.
19961         (change_partition_var): Don't declare.
19962         (partition_to_var): Always return SSA names.
19963         (var_to_partition): Only accept SSA names.
19964         (register_ssa_partition): Only check argument.
19965         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
19966         member.
19967         (delete_var_map): Don't free it.
19968         (var_union): Only accept SSA names, simplify.
19969         (partition_view_init): Mark only useful SSA names as used.
19970         (partition_view_fini): Only deal with SSA names.
19971         (change_partition_var): Remove.
19972         (dump_var_map): Use ssa_name instead of partition_to_var member.
19973         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
19974         basic blocks.
19975         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
19976         (struct _elim_graph): New member const_dests; nodes member vector of
19977         ints.
19978         (set_location_for_edge): New static helper.
19979         (create_temp): Remove.
19980         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
19981         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
19982         (new_elim_graph): Allocate const_dests member.
19983         (clean_elim_graph): Truncate const_dests member.
19984         (delete_elim_graph): Free const_dests member.
19985         (elim_graph_size): Adapt to new type of nodes member.
19986         (elim_graph_add_node): Likewise.
19987         (eliminate_name): Likewise.
19988         (eliminate_build): Don't take basic block argument, deal only with
19989         partition numbers, not variables.
19990         (get_temp_reg): New static helper.
19991         (elim_create): Use it, deal with RTL temporaries instead of trees.
19992         (eliminate_phi): Adjust all calls to new signature.
19993         (assign_vars, replace_use_variable, replace_def_variable): Remove.
19994         (rewrite_trees): Only do checking.
19995         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
19996         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
19997         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
19998         contains_tree_r, MAX_STMTS_IN_LATCH,
19999         process_single_block_loop_latch, analyze_edges_for_bb,
20000         perform_edge_inserts): Remove.
20001         (expand_phi_nodes): New global function.
20002         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
20003         functions, initialize new parameter, remember partitions having a
20004         default def.
20005         (finish_out_of_ssa): New global function.
20006         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
20007         don't reset in_ssa_p here, don't disable TER when mudflap.
20008         (pass_del_ssa): Remove.
20009         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
20010         partition members.
20011         (execute_free_datastructures): Declare.
20012         * Makefile.in (SSAEXPAND_H): New variable.
20013         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
20014         * basic-block.h (commit_one_edge_insertion): Declare.
20015         * passes.c (init_optimization_passes): Move pass_nrv and
20016         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
20017         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
20018         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
20019         (redirect_branch_edge): Deal with super block when expanding, split
20020         out jump patching itself into ...
20021         (patch_jump_insn): ... here, new static helper.
20022
20023 2009-04-26  Michael Matz  <matz@suse.de>
20024
20025         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
20026         beyond num_ssa_names.
20027         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
20028         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
20029
20030 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
20031
20032         PR inline-asm/39543
20033         * fwprop.c (forward_propagate_asm): New function.
20034         (forward_propagate_and_simplify): Propagate also into __asm, if it
20035         doesn't increase the number of referenced registers.
20036
20037         PR c/39889
20038         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
20039
20040 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
20041
20042         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
20043         note_nonlocal_vla_type for nonlocal VLAs.
20044         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
20045         contains_remapped_vars, remap_vla_decls): New functions.
20046         (convert_nonlocal_reference_stmt): If not optimizing, call
20047         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
20048         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
20049         if it wasn't found in var_map.
20050         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
20051         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
20052         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
20053         declare_vars.
20054         * gimplify.c (nonlocal_vlas): New variable.
20055         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
20056         referenced VLAs.
20057         (gimplify_body): Create and destroy nonlocal_vlas.
20058
20059         * dwarf2out.c (loc_descr_plus_const): New function.
20060         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
20061         mem_loc_descriptor, loc_descriptor_from_tree_1,
20062         descr_info_loc, gen_variable_die): Use it.
20063
20064         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
20065         !TREE_STATIC VAR_DECLs.
20066         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
20067         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
20068         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
20069         DECL_BY_REFERENCE is valid.
20070         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
20071         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
20072         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
20073         Copy DECL_BY_REFERENCE.
20074         (struct nesting_copy_body_data): New type.
20075         (nesting_copy_decl): New function.
20076         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
20077         if they have variable length.
20078
20079 2009-04-26  Michael Matz  <matz@suse.de>
20080
20081         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
20082         mark new temporaries for renaming.
20083
20084 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
20085
20086         PR c/39581
20087         * c-decl.c (global_bindings_p): Return negative value.
20088         (c_variable_size): New.  Based on variable_size from
20089         stor-layout.c.
20090         (grokdeclarator): Call c_variable_size not variable_size.
20091
20092 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
20093
20094         * config/i386/i386.c (print_operand) ['z']: Fix typo.
20095
20096 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
20097
20098         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
20099         Redefine it to just use mingw/include.
20100         (ASM_SPEC): Rules for -m32 and -m64.
20101         (LINK_SPEC): Use Likewise.
20102         (SPEC_32): New define.
20103         (SPEC_64): Likewise.
20104         (SUB_LINK_SPEC): Likewise.
20105         (MULTILIB_DEFAULTS): New define.
20106         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
20107         Add multilib options.
20108         (MULTILIB_DIRNAMES): Likewise.
20109         (MULTILIB_OSDIRNAMES): Likewise.
20110         (LIBGCC): Likewise.
20111         (INSTALL_LIBGCC): Likewise.
20112
20113 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
20114
20115         PR c/39556
20116         * c-tree.h (enum c_inline_static_type): New.
20117         (record_inline_static): Declare.
20118         * c-decl.c (struct c_inline_static, c_inline_statics,
20119         record_inline_static, check_inline_statics): New.
20120         (pop_file_scope): Call check_inline_statics.
20121         (start_decl): Call record_inline_static instead of pedwarning
20122         directly for static in inline function.
20123         * c-typeck.c (build_external_ref): Call record_inline_static
20124         instead of pedwarning directly for static referenced in inline
20125         function.
20126
20127 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
20128
20129         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
20130         not new but only being rescanned.
20131         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
20132         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
20133         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
20134         record_set_info, compute_set, grealloc): Remove.
20135         (recompute_all_luids): New function.
20136         (gcse_main): Don't compute sets, and don't do related memory
20137         allocations/free-ing.  If something changed before the end of the
20138         pass, update LUIDs using recompute_all_luids.
20139         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
20140         (free_gcse_mem): Don't free it either.
20141         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
20142         Use the df insn LUIDs.
20143         (load_killed_in_block): Likewise.
20144         (compute_hash_table_work): Don't compute reg_set_in_block.
20145         (compute_transp): Use DF_REG_DEF_CHAINs.
20146         (local_cprop_pass): Don't use compute_sets and related functions.
20147         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
20148         Use get_max_uid() instead of max_cuid.
20149         (insert_insn_end_basic_block, pre_insert_copy_insn,
20150         update_ld_motion_stores): Don't try to
20151         keep reg_set tables up to date.
20152         (pre_insert_copies): Use df insn LUIDs.
20153         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
20154         (reg_set_info): Don't use extra bitmap argument.
20155         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
20156         information to compute regs_set_in_block.
20157         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
20158         (bypass_jumps): Don't use compute_sets and friends.
20159
20160 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20161
20162         PR testsuite/39710
20163         * opts.c (undocumented_msg): Do not leave blank even with
20164         ENABLE_CHECKING.
20165
20166 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
20167
20168         * c-decl.c (build_enumerator): Allow values folding to integer
20169         constants but not integer constant expressions with a pedwarn if
20170         pedantic.
20171
20172 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
20173
20174         PR c/39582
20175         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
20176         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
20177         type is an integer constant.
20178
20179 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
20180
20181         PR target/39897
20182         * config/i386/i386.c (print_operand) ['z']: Revert handling of
20183         HImode operands.
20184
20185 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
20186
20187         PR c/39564
20188         * c-decl.c (grokdeclarator): Diagnose declarations of functions
20189         with variably modified return type and no storage class
20190         specifiers, except for the case of nested functions.  Distinguish
20191         extern declarations of functions with variably modified return
20192         types from those of objects with variably modified types.
20193
20194 2009-04-25  Jan Hubicka  <jh@suse.cz>
20195
20196         * tree.c (list_equal_p): New function.
20197         * tree.h (list_equal_p): Declare.
20198         * coretypes.h (edge_def, edge, const_edge, basic_block_def
20199         basic_block_def, basic_block, const_basic_block): New.
20200         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
20201         (redirect_eh_edge): New function.
20202         (make_eh_edge_update_phi): EH edges are not abnormal.
20203         * except.c: Include tree-flow.h.
20204         (list_match): New function.
20205         (eh_region_replaceable_by_p): New function.
20206         (replace_region): New function.
20207         (hash_type_list): New function.
20208         (hash_eh_region): New function.
20209         (eh_regions_equal_p): New function.
20210         (merge_peers): New function.
20211         (remove_unreachable_regions): Verify EH tree when checking;
20212         merge peers.
20213         (copy_eh_region_1): New function.
20214         (copy_eh_region): New function.
20215         (push_reachable_handler): New function.
20216         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
20217         regions without label but with live RESX.
20218         * except.h (redirect_eh_edge_to_label): New.
20219         * tree-flow.h (redirect_eh_edge): New.
20220         * coretypes.h (edge_def, edge, const_edge, basic_block_def
20221         basic_block_def, basic_block, const_basic_block): Remove.
20222         * Makefile.in (except.o): Add dependency on tree-flow.h
20223         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
20224         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
20225         Remove.
20226
20227 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
20228
20229         PR bootstrap/39645
20230         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
20231         on the destination of memcpy.
20232
20233 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
20234
20235         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
20236         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
20237         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
20238
20239 2009-04-25  Jan Hubicka  <jh@suse.cz>
20240
20241         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
20242         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
20243         to be reached by different label than left.
20244         (update_eh_edges): Update comment; remove edge_to_remove if possible
20245         and return true if suceeded.
20246         (cleanup_empty_eh): Accept sharing map; handle shared regions.
20247         (cleanup_eh): Compute sharing map.
20248         * except.c (remove_eh_handler_and_replace): Add argument if we should
20249         update regions.
20250         (remove_unreachable_regions): Update for label sharing.
20251         (label_to_region_map): Likewise.
20252         (get_next_region_sharing_label): New function.
20253         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
20254         prev_try pointers.
20255         (remove_eh_handler): Update.
20256         (remove_eh_region_and_replace_by_outer_of): New function.
20257         * except.h (struct eh_region): Add next_region_sharing_label.
20258         (remove_eh_region_and_replace_by_outer_of,
20259         get_next_region_sharing_label): Declare.
20260         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
20261
20262 2009-04-25  Jan Hubicka  <jh@suse.cz>
20263
20264         * tree-cfg.c (split_critical_edges): Split also edges where we can't
20265         insert code even if they are not critical.
20266
20267 2009-04-25  Jan Hubicka  <jh@suse.cz>
20268
20269         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
20270         (gimple_can_remove_branch_p): EH edges won't remove branch by
20271         redirection.
20272         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
20273         updating of non-abnormal EH edges.
20274         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
20275         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
20276         (split_critical_edges): Split also edges where emitting code on them
20277         will lead to splitting later.
20278
20279 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
20280             H.J. Lu  <hongjiu.lu@intel.com>
20281
20282         PR target/39590
20283         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
20284         the configured assembler supports fildq and fistpq mnemonics.
20285         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
20286         * configure: Regenerated.
20287         * config.in: Ditto.
20288
20289         * config/i386/i386.c (print_operand): Handle 'Z'.
20290         ['z']: Remove handling of special fild/fist suffixes.
20291         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
20292         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
20293         suffix of fild insn.
20294         (*floatsi<mode>2_vector_mixed): Ditto.
20295         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
20296         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
20297         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
20298         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
20299         * config/i386/gas.h (GAS_MNEMONICS): Remove.
20300
20301 2009-04-25  Ben Elliston  <bje@au.ibm.com>
20302
20303         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
20304         the source of a set operation.
20305
20306 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
20307
20308         * target.h (struct gcc_target): Add case_values_threshold field.
20309         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
20310         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
20311         * targhooks.c (default_case_values_threshold): New function.
20312         * targhooks.h (default_case_values_threshold): Declare function.
20313         * stmt.c (expand_case): Use case_values_threshold target hook.
20314         * expr.h (case_values_threshold): Remove declartation.
20315         * expr.c (case_values_threshold): Remove function.
20316         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
20317
20318         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
20319         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
20320         (avr_case_values_threshold): Declare as static.
20321         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
20322
20323         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
20324         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
20325         (mn10300_case_values_threshold): New function.
20326
20327 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
20328
20329         * ira.c (setup_cover_and_important_classes): Add enum cast.
20330
20331 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
20332
20333         * genpreds.c (write_enum_constraint_num): Output definition of
20334         CONSTRAINT_NUM_DEFINED_P macro.
20335         * ira.c (setup_cover_and_important_classes): Use
20336         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
20337
20338 2009-04-24  DJ Delorie  <dj@redhat.com>
20339
20340         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
20341         __SH2A_SINGLE_ONLY__ also.
20342
20343 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
20344
20345         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
20346         (movdf_internal): Ditto.
20347         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
20348         SFmode and DFmode constants.
20349         (ia64_print_operand): Add 'G' format for printing
20350         floating point constants.
20351
20352 2009-04-24  Richard Guenther  <rguenther@suse.de>
20353
20354         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
20355         from unsigned additions.
20356
20357 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
20358
20359         * c-typeck.c (set_init_index): Allow array designators that are
20360         not integer constant expressions with a pedwarn if pedantic.
20361
20362 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
20363
20364         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
20365         zero if no overlap in nonzero bits between the operands.
20366
20367 2009-04-24  Ian Lance Taylor  <iant@google.com>
20368
20369         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
20370         (record_dead_and_set_regs): Likewise.
20371         * df.h (struct df_mw_hardreg): Change flags field to int.
20372         (struct df_base_ref): Likewise.
20373         (struct df): Change changeable_flags field to int.
20374         * df-scan.c (df_defs_record): Change clobber_flags to int.
20375         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
20376         constants rather than #define macros.
20377         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
20378         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
20379         (enum dwarf_calling_convention): Likewise.
20380         (enum dwarf_line_number_x_ops): Likewise.
20381         (enum dwarf_call_frame_info): Likewise.
20382         (enum dwarf_source_language): Likewise.
20383         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
20384         (add_calling_convention_attribute): Likewise.
20385         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
20386         (combine_comparisons): Change compcode to int.  Add cast to enum type.
20387         * genrecog.c (maybe_both_true_2): Change c to int.
20388         (write_switch): Likewise.  Add cast to enum type.
20389         * gimplify.c (gimplify_omp_for): Handle return values from
20390         gimplify_expr using MIN rather than bitwise or.
20391         (gimplify_expr): Add cast to enum type.
20392         * ipa-prop.c (update_jump_functions_after_inlining): Change
20393         IPA_BOTTOM to IPA_JF_UNKNOWN.
20394         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
20395         Add casts to enum type.
20396         (setup_cover_and_important_classes): Change cl to int.  Add casts
20397         to enum type.
20398         (setup_class_translate): Change cl and mode to int.
20399         (ira_init_once): Change mode to int.
20400         (free_register_move_costs): Likewise.
20401         (setup_prohibited_mode_move_regs): Add casts to enum type.
20402         * langhooks.c (add_builtin_function_common): Rework assertion that
20403         value fits bitfield.
20404         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
20405         * omega.c (omega_do_elimination): Avoid math on enum types.
20406         * optabs.c (expand_vec_shift_expr): Remove casts to int.
20407         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
20408         int local to handle integral_argment value.
20409         * regmove.c (try_auto_increment): Change PUT_MODE to
20410         PUT_REG_NOTE_KIND.
20411         * reload.c (push_secondary_reload): Add casts to enum type.
20412         (secondary_reload_class, find_valid_class): Likewise.
20413         * reload1.c (emit_input_reload_insns): Likewise.
20414         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
20415         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
20416         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
20417         constant.
20418         * tree.c (build_common_builtin_nodes): Add casts to enum type.
20419         * tree-complex.c (complex_lattice_t): Typedef to int rather than
20420         enum type.
20421         (expand_complex_libcall): Add casts to enum type.
20422         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
20423         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
20424         with ERROR_MARK, not NUM_TREE_CODES.
20425         (vect_create_epilog_for_reduction): Likewise.
20426         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
20427         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
20428         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
20429         enum machine_mode.
20430         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
20431         vect_unused_in_loop.  Change 0 to loop_vect.
20432         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
20433         * var-tracking.c (get_init_value): Change return type to enum
20434         var_init_status.
20435         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
20436         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
20437         arm_fp_model.
20438         (arm_override_options): Add casts to enum type.
20439         (arm_emit_tls_decoration): Likewise.
20440         * config/i386/i386.c (ix86_function_specific_restore): Add casts
20441         to enum type.
20442         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
20443         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
20444         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
20445         enum type.
20446         * config/s390/s390.c (code_for_builtin_64): Change to array of
20447         enum insn_code.
20448         (code_for_builtin_31): Likewise.
20449         (s390_expand_builtin): Change code_for_builtin to enum insn_code
20450         const *.
20451         * config/sparc/sparc.c (sparc_override_options): Change value
20452         field in struct code_model to enum cmodel.  In initializer change
20453         0 to NULL and add cast to enum type.
20454
20455         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
20456         Change all callers.  Issue a -Wc++-compat warning using
20457         lhs_origtype if necessary.
20458         (convert_for_assignment): Issue -Wc++-compat warnings about
20459         invalid conversions to enum type on assignment.
20460         * c-common.h (build_modify_expr): Update declaration.
20461
20462 2009-04-24  Nick Clifton  <nickc@redhat.com>
20463
20464         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
20465         (function_arg_advance): Likewise.
20466         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
20467         5th alternative.
20468
20469 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
20470
20471         * config/s390/constraints.md ('I', 'J'): Fix condition.
20472
20473 2009-04-24  Diego Novillo  <dnovillo@google.com>
20474
20475         * gengtype-parse.c (parse_error): Add newline after message.
20476
20477 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
20478
20479         * config/i386/sse.md (avxmodesuffixs): Removed.
20480         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
20481         (*avx_pinsr<ssevecsize>): This.
20482
20483 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
20484
20485         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
20486         follow chains of regs with a single definition, and allow expressions
20487         that are function_invariant_p.
20488         (simple_rhs_p): Allow expressions that are function_invariant_p.
20489
20490 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
20491
20492         PR middle-end/39867
20493         * fold-const.c (fold_cond_expr_with_comparison): When folding
20494         > and >= to MAX, make sure the MAX uses the same type as the
20495         comparison's operands.
20496
20497 2009-04-24  Nick Clifton  <nickc@redhat.com>
20498
20499         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
20500         addressing for DImode accesses.
20501         (frv_print_operand_address): Handle PLUS case.
20502         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
20503
20504 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
20505
20506         PR rtl-optimization/39794
20507         * alias.c (canon_true_dependence): Add x_addr argument.
20508         * rtl.h (canon_true_dependence): Adjust prototype.
20509         * cse.c (check_dependence): Adjust canon_true_dependence callers.
20510         * cselib.c (cselib_invalidate_mem): Likewise.
20511         * gcse.c (compute_transp): Likewise.
20512         * dse.c (scan_reads_nospill): Likewise.
20513         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
20514         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
20515         canon_base_addr of the group, plus optional offset.
20516         (struct group_info): Rename canon_base_mem to
20517         canon_base_addr.
20518         (get_group_info): Set canon_base_addr to canon_rtx of base, not
20519         canon_rtx of base_mem.
20520
20521 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
20522
20523         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
20524         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
20525
20526 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20527
20528         * config/spu/spu-builtins.h: Delete file.
20529
20530         * config/spu/spu.h (enum spu_builtin_type): Move here from
20531         spu-builtins.h.
20532         (struct spu_builtin_description): Likewise.  Add GTY marker.
20533         Do not use enum spu_function_code or enum insn_code.
20534         (spu_builtins): Add extern declaration.
20535
20536         * config/spu/spu.c: Do not include "spu-builtins.h".
20537         (enum spu_function_code, enum spu_builtin_type_index,
20538         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
20539         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
20540         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
20541         unsigned_V2DI_type_node): Move here from spu-builtins.h.
20542         (spu_builtin_types): Make static.  Add GTY marker.
20543         (spu_builtins): Add extern declaration with GTY marker.
20544         Include "gt-spu.h".
20545
20546         * config/spu/spu-c.c: Do not include "spu-builtins.h".
20547         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
20548         Check programmatically whether all parameters are scalar.
20549
20550         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
20551
20552 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
20553
20554         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
20555         assignment from the constructor either if the target is volatile.
20556
20557 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
20558
20559         * config/arm/arm.md (insv): Do not share operands[0].
20560
20561 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
20562
20563         * config/vxlib-tls.c (active_tls_threads): Delete.
20564         (delete_hook_installed): New.
20565         (tls_delete_hook): Don't delete the delete hook.
20566         (tls_destructor): Delete it here.
20567         (__gthread_set_specific): Adjust installing the delete hook.
20568         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
20569         __gthread_leave_tsd_dtor_context.
20570
20571 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
20572
20573         * c-format.c (gcc_tdiag_char_table): Add support for %E.
20574
20575 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
20576
20577         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
20578         enum type.
20579         (alpha_rtx_costs): Ditto.
20580         (emit_unlikely_jump): Use add_reg_note.
20581         (emit_frame_store_1): Ditto.
20582         (alpha_expand_prologue): Ditto.
20583         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
20584         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
20585
20586 2009-04-23  Nick Clifton  <nickc@redhat.com>
20587
20588         * config/v850/v850.md (epilogue): Remove suppressed code.
20589         (return): Rename to return_simple and remove test of frame size.
20590         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
20591         to gen_return_simple.
20592
20593 2009-04-22  Jing Yu  <jingyu@google.com>
20594
20595         PR testsuite/39781
20596         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
20597
20598 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20599
20600         PR C/31499
20601         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
20602         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
20603         value is a VECTOR_CST, the element type is the element type of the
20604         vector.
20605
20606 2009-04-22  DJ Delorie  <dj@redhat.com>
20607
20608         * config/m32c/m32c.h: Update GTY annotations to new syntax.
20609
20610 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
20611
20612         * alias.c (find_base_term): Move around LO_SUM case, so that
20613         CONST falls through into PLUS/MINUS handling.
20614
20615         PR c/39855
20616         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
20617         into 0, use omit_one_operand.
20618
20619 2009-04-23  Ben Elliston  <bje@au.ibm.com>
20620
20621         * config/rs6000/linux-unwind.h (get_regs): Remove type
20622         puns. Change the type of `pc' to an array of unsigned ints and
20623         update all users.  Constify frame24.
20624
20625 2009-04-22  DJ Delorie  <dj@redhat.com>
20626
20627         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
20628         declarations before code.
20629         (current_function_special_page_vector): Likewise.
20630         (m32c_expand_insv): Silence a warning.
20631
20632 2009-04-21  Taras Glek  <tglek@mozilla.com>
20633
20634         * alias.c: Update GTY annotations to new syntax.
20635         * basic-block.h: Likewise.
20636         * bitmap.h: Likewise.
20637         * c-common.h: Likewise.
20638         * c-decl.c: Likewise.
20639         * c-parser.c: Likewise.
20640         * c-pragma.c: Likewise.
20641         * c-tree.h: Likewise.
20642         * cfgloop.h: Likewise.
20643         * cgraph.h: Likewise.
20644         * config/alpha/alpha.c: Likewise.
20645         * config/arm/arm.h: Likewise.
20646         * config/avr/avr.h: Likewise.
20647         * config/bfin/bfin.c: Likewise.
20648         * config/cris/cris.c: Likewise.
20649         * config/darwin.c: Likewise.
20650         * config/frv/frv.c: Likewise.
20651         * config/i386/i386.c: Likewise.
20652         * config/i386/i386.h: Likewise.
20653         * config/i386/winnt.c: Likewise.
20654         * config/ia64/ia64.h: Likewise.
20655         * config/iq2000/iq2000.c: Likewise.
20656         * config/mips/mips.c: Likewise.
20657         * config/mmix/mmix.h: Likewise.
20658         * config/pa/pa.c: Likewise.
20659         * config/pa/pa.h: Likewise.
20660         * config/rs6000/rs6000.c: Likewise.
20661         * config/s390/s390.c: Likewise.
20662         * config/sparc/sparc.c: Likewise.
20663         * config/xtensa/xtensa.c: Likewise.
20664         * cselib.h: Likewise.
20665         * dbxout.c: Likewise.
20666         * dwarf2out.c: Likewise.
20667         * except.c: Likewise.
20668         * except.h: Likewise.
20669         * fixed-value.h: Likewise.
20670         * function.c: Likewise.
20671         * function.h: Likewise.
20672         * gimple.h: Likewise.
20673         * integrate.c: Likewise.
20674         * optabs.c: Likewise.
20675         * output.h: Likewise.
20676         * real.h: Likewise.
20677         * rtl.h: Likewise.
20678         * stringpool.c: Likewise.
20679         * tree-data-ref.c: Likewise.
20680         * tree-flow.h: Likewise.
20681         * tree-scalar-evolution.c: Likewise.
20682         * tree-ssa-address.c: Likewise.
20683         * tree-ssa-alias.h: Likewise.
20684         * tree-ssa-operands.h: Likewise.
20685         * tree.c: Likewise.
20686         * tree.h: Likewise.
20687         * varasm.c: Likewise.
20688         * varray.h: Likewise.
20689         * vec.h: Likewise.
20690         * coretypes.h: Do not define GTY macro if it is already defined.
20691         * doc/gty.texi: Update GTY documentation to new syntax.
20692         * gengtype-lex.l: Enforce attribute-like syntax for GTY
20693         annotations on structs.
20694         * gengtype-parse.c: Likewise.
20695
20696 2009-04-22  Mark Heffernan  <meheff@google.com>
20697
20698         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
20699
20700 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
20701
20702         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
20703         where appropriate.
20704
20705 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
20706
20707         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
20708         the same as a PLUS without a shift.  Increase the cost of a
20709         CONST_INT in MULT.
20710
20711 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20712
20713         * Makefile.in: Update dependencies.
20714         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
20715         * errors.h: Remove bogus comment about compatibility.
20716         (warning): Update declaration.
20717         * genautomata.c: Update all calls to warning.
20718         * gimple.c: Do not include errors.h. Include toplev.h.
20719         * tree-ssa-structalias.c: Do not include errors.h.
20720         * omega.c: Likewise.
20721         * tree-ssa-reassoc.c: Likewise.
20722         * config/spu/spu-c.c: Likewise.
20723         * config/spu/t-spu-elf: Update dependencies.
20724
20725 2009-04-22  Richard Guenther  <rguenther@suse.de>
20726
20727         PR tree-optimization/39824
20728         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
20729         make sure the types are compatible.
20730
20731 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20732
20733         PR c++/14875
20734         * c-common.c (c_parse_error): Take a token_flags parameter.
20735         Use token_type for the token type instead.
20736         Pass token_flags to cpp_type2name.
20737         * c-common.h (c_parse_error): Update declaration.
20738         * c-parser.c (c_parser_error): Pass 0 as token flags.
20739
20740 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
20741
20742         PR rtl-optimization/39580
20743         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
20744
20745 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20746
20747         * function.c (expand_function_end): Do not emit a jump to the "naked"
20748         return label for fall-through returns.
20749         * except.c (sjlj_emit_function_exit): Always place the call to the
20750         unregister function at the location installed by expand_function_end.
20751
20752 2009-04-22  Richard Guenther  <rguenther@suse.de>
20753
20754         PR tree-optimization/39845
20755         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
20756         (gen_inbound_check): Likewise.
20757
20758 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
20759
20760         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
20761         padding for PPC.
20762         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
20763         * config/vxlib.c (__gthread_once): Add race guard for PPC.
20764
20765 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
20766
20767         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
20768         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
20769         shift counts to avoid out-of-bounds array accesses.
20770
20771 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
20772
20773         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
20774         (Pmode): Move above.
20775
20776 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
20777
20778         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
20779         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
20780         GET_CODE macro.  Use IN_RANGE macro where appropriate.
20781         * config/alpha/alpha.h: Ditto.
20782         * config/alpha/alpha.md: Ditto.
20783         * config/alpha/constraints.md: Ditto.
20784         * config/alpha/predicates.md: Ditto.
20785
20786 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
20787
20788         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
20789         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20790         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20791         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20792         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20793         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20794         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20795         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20796         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20797         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20798         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20799         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20800         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20801         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20802         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20803         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20804         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20805         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20806         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20807         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20808         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20809         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20810         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20811         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20812         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20813         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20814         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20815
20816 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
20817
20818         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
20819         references from comments.
20820         * cfgbuild.c: (count_basic_blocks): Delete.
20821         (find_basic_blocks_1): Delete.
20822         (find_basic_blocks): Delete.
20823         * except.c (finish_eh_generation): Make static.  Move comment from
20824         except.h here.  Remove find_basic_blocks references from comments.
20825         * except.h (finish_eh_generation): Delete.
20826         * basic-block.h (find_basic_blocks): Delete.
20827         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
20828
20829 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
20830
20831         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
20832         (sdbout_parms):  Likewise.
20833
20834 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
20835
20836         * config/sh/sh.c (prepare_cbranch_operands): Use
20837         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
20838         (expand_cbranchdi4): Likewise.
20839         (from_compare): Add cast to enum type.
20840         (expand_cbranchsi4): Use add_reg_note.
20841         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
20842         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
20843         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
20844         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
20845         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
20846         instead of CODE_FOR_nothing.
20847         (cbranchdi4): Likewise.  Fix the order of arguments for
20848         gen_rtx_fmt_ee.
20849         (push_fpscr): Use add_reg_note.
20850         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
20851         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
20852
20853 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
20854
20855         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
20856         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
20857         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
20858         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
20859         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
20860         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
20861         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
20862         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
20863         config/alpha/x-vms, config/arc/t-arc,
20864         config/arm/README-interworking, config/arm/arm-c.c,
20865         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
20866         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
20867         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
20868         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
20869         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
20870         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
20871         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
20872         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
20873         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
20874         config/cris/t-elfmulti, config/crx/t-crx,
20875         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
20876         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
20877         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
20878         config/h8300/t-h8300, config/i386/athlon.md,
20879         config/i386/darwin-libgcc.10.4.ver,
20880         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
20881         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
20882         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
20883         config/i386/t-linux64, config/i386/t-nwld,
20884         config/i386/t-rtems-i386, config/i386/t-sol2-10,
20885         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
20886         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
20887         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
20888         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
20889         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
20890         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
20891         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
20892         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
20893         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
20894         config/m68k/t-uclinux, config/mcore/t-mcore,
20895         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
20896         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
20897         config/mips/crtn.asm, config/mips/irix-crti.asm,
20898         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
20899         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
20900         config/mips/mips-fixed.md, config/mips/sb1.md,
20901         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
20902         config/mips/t-iris6, config/mips/t-isa3264,
20903         config/mips/t-libgcc-mips16, config/mips/t-linux64,
20904         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
20905         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
20906         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
20907         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
20908         config/mn10300/t-linux, config/mn10300/t-mn10300,
20909         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
20910         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
20911         config/picochip/libgccExtras/clzsi2.asm,
20912         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
20913         config/rs6000/darwin-libgcc.10.4.ver,
20914         config/rs6000/darwin-libgcc.10.5.ver,
20915         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
20916         config/rs6000/t-aix43, config/rs6000/t-aix52,
20917         config/rs6000/t-darwin, config/rs6000/t-fprules,
20918         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
20919         config/rs6000/t-lynx, config/rs6000/t-netbsd,
20920         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
20921         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
20922         config/rs6000/t-rtems, config/rs6000/t-spe,
20923         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
20924         config/score/t-score-elf, config/sh/divcost-analysis,
20925         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
20926         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
20927         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
20928         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
20929         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
20930         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
20931         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
20932         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
20933         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
20934         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
20935         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
20936         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
20937         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
20938         limitx.h, version.c, xcoff.h: Add copyright and license notices.
20939         * config/h8300/genmova.sh: Include copyright and license notices
20940         in generated output.
20941         * config/h8300/mova.md: Regenerate.
20942         * doc/install.texi2html: Include word "Copyright" in copyright
20943         notice and use name "Free Software Foundation, Inc.".
20944         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
20945         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
20946         ChangeLog-2007, ChangeLog-2008: Correct dates.
20947
20948 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
20949
20950         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
20951         NE_EXPR operations as well.
20952         * c-parser.c (c_parser_condition): Do not set location information on
20953         the condition.
20954         (c_parser_conditional_expression): Likewise.
20955         (c_parser_binary_expression): Set location information on operators.
20956         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
20957         TRUTH_NOT_EXPR has been folded.
20958         * fold-const.c (fold_truth_not_expr): Copy location information from
20959         the incoming expression to the outgoing one.
20960         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
20961         recursive calls on the LHS of the operator but pass that of the
20962         operator to recursive calls on the RHS of the operator.  Set it
20963         on the COND_EXPR.
20964         (shortcut_cond_expr): Set the locus of the operator on the second
20965         COND_EXPR and that of the expression on the first in degenerate cases.
20966         Pass the locus of the expression to calls to shortcut_cond_r.
20967         Set the locus of the 'then' block on the associated jump, if any.
20968         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
20969         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
20970         expression to call to gimplify_boolean_expr.
20971
20972 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
20973
20974         * config.gcc: Add additional configuration for
20975         i686-w64-mingw* and x86_64-w64-mingw* triplet.
20976         * config/i386/mingw-w64.h: New mingw-w64 specific header.
20977         (CPP_SPEC): Redefine for allowing -municode option.
20978         (STARTFILE_SPEC): Likewise.
20979         * config/i386/t-mingw-w64: New.
20980         * config/i386/mingw-w64.opt: New.
20981         (municode): Add new target option.
20982         * doc/invoke.texi (municode): Add documentation for new option.
20983
20984 2009-04-21  Ian Lance Taylor  <iant@google.com>
20985
20986         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
20987         Correct test for number of arguments.
20988         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
20989
20990 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
20991
20992         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
20993         argument of emit_library_call.
20994
20995 2009-04-21  Richard Guenther  <rguenther@suse.de>
20996
20997         PR middle-end/39829
20998         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
20999         inside VIEW_CONVERT_EXPRs.
21000
21001 2009-04-21  Martin Jambor  <mjambor@suse.cz>
21002
21003         * tree-switch-conversion.c (build_constructors): Split a long line.
21004         (constructor_contains_same_values_p): New function.
21005         (build_one_array): Create assigns of constants if possible, do not
21006         call mark_sym_for_renaming, call update_stmt.
21007         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
21008         make_rename_temp.  Do not call mark_symbols_for_renaming, call
21009         update_stmt.
21010         (gen_def_assigns): Do not call mark_symbols_for_renaming or
21011         find_new_referenced_vars, call update_stmt.
21012         (gen_inbound_check): Use create_tmp_var and create ssa names manually
21013         instead of calling make_rename_temp.  Do not call
21014         find_new_referenced_vars or mark_symbols_for_renaming, call
21015         update_stmt.
21016
21017 2009-04-21  Richard Guenther  <rguenther@suse.de>
21018
21019         PR tree-optimization/39827
21020         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
21021         (tree_ssa_phiprop): Pass the correct array size.
21022
21023 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
21024
21025         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
21026
21027 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21028
21029         PR 16202
21030         * c-typeck.c (lvalue_p): Move declaration ...
21031         * c-common.h (lvalue_p): ... to here.
21032         * c-common.c (candidate_equal_p): New.
21033         (add_tlist): Use it.
21034         (merge_tlist): Use it.
21035         (warn_for_collisions_1): Likewise.
21036         (warning_candidate_p): Accept more candidates.
21037         (verify_tree): A warning candidate can be an expression. Use
21038         candidate_equal_p.
21039
21040 2009-04-21  Ben Elliston  <bje@au.ibm.com>
21041
21042         PR target/5267
21043         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
21044         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
21045         options.  Remove -mcall-solaris documentation.
21046
21047 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21048
21049         PR c++/13358
21050         * doc/invoke.texi (-Wlong-long): Update description.
21051         * c-lex (interpret_integer): Only warn if there was no previous
21052         overflow and -Wlong-long is enabled.
21053         * c-decl.c (declspecs_add_type): Drop redundant flags.
21054         * c.opt (Wlong-long): Init to -1.
21055         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
21056         and front-end warn_long_long. Wlong-long only depends on other
21057         flags if it is uninitialized.
21058         * c-parser.c (disable_extension_diagnostics): warn_long_long is
21059         the same for CPP and FE.
21060         (restore_extension_diagnostics): Likewise.
21061
21062 2009-04-20  Ian Lance Taylor  <iant@google.com>
21063
21064         Fix enum conversions which are invalid in C++:
21065         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
21066         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
21067         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
21068         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
21069         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
21070         (dbxout_parms): Likewise.
21071         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
21072         (df_clear_flags): Likewise.
21073         * df-problems.c (df_rd_bb_local_compute_process_def): Change
21074         top_flag parameter to int.
21075         (df_chain_create_bb_process_use): Likewise.
21076         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
21077         Remove cast.
21078         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
21079         (df_ref_create_structure, df_def_record_1): Likewise.
21080         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
21081         (df_notes_rescan): Change 0 to VOIDmode in function call.
21082         (df_get_call_refs, df_insn_refs_collect): Likewise.
21083         (df_bb_regs_collect): Likewise.
21084         (df_entry_block_defs_collect): Likewise.
21085         (df_exit_block_uses_collect): Likewise.
21086         * df.h: Update declarations.
21087         * double-int.c (double_int_divmod): Add cast to enum type.
21088         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
21089         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
21090         (based_loc_descr): Likewise.
21091         (loc_descriptor_from_tree_1): Change first_op and second_op to
21092         enum dwarf_location_atom.  Add cast to enum type.
21093         * expmed.c (init_expmed): Change 0 to SET in function call.
21094         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
21095         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
21096         (do_store_flag): Likewise.
21097         * fixed-value.h (struct fixed_value): Change mode to enum
21098         machine_mode.
21099         * function.c (assign_parms): Change 0 to VOIDmode in function call.
21100         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
21101         function call.
21102         (insert_insn_decl, insert_decl, insert_state): Likewise.
21103         (automata_list_finish): Likewise.
21104         * genrecog.c (process_define_predicate): Add cast to enum type.
21105         * gensupport.c (init_predicate_table): Add cast to enum type.
21106         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
21107         function call.
21108         (gimple_build_call_1, gimple_build_label): Likewise.
21109         (gimple_build_goto, gimple_build_asm_1): Likewise.
21110         (gimple_build_switch_1, gimple_build_cdt): Likewise.
21111         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
21112         (enum fallback): Rename from enum fallback_t.
21113         (fallback_t): Typedef as int.
21114         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
21115         GSI_SAME_STMT in function call.
21116         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
21117         enum type.
21118         (setup_reg_class_relations): Likewise.
21119         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
21120         (setup_prohibited_class_mode_regs): Add cast to enum type.
21121         (setup_prohibited_mode_move_regs): Likewise.
21122         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
21123         (record_address_regs): Change i to enum reg_class.
21124         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
21125         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
21126         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
21127         (GET_MODE_2XWIDER_MODE): Likewise.
21128         (GET_CLASS_NARROWEST_MODE): Likewise.
21129         * omp-low.c (expand_omp_for): Add cast to enum type.
21130         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
21131         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
21132         * postreload.c (reload_cse_simplify_operands): Change rclass local
21133         to enum reg_class.
21134         * predict.c (combine_predictions_for_insn): Change best_predictor
21135         and predictor to enum br_predictor.
21136         (combine_predictions_for_bb): Likewise.
21137         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
21138         use SET_PREDICT_EXPR_OUTCOME.
21139         * real.c (real_arithmetic): Change icode to code in function call.
21140         * reginfo.c (init_move_cost): Add casts to enum type.
21141         (init_reg_sets_1, init_fake_stack_mems): Likewise.
21142         * regmove.c (regclass_compatible_p): Change class0 and class1 to
21143         enum reg_class.
21144         * reload.c (find_valid_class): Add casts to enum type.
21145         (push_reload): Change 0 to NO_REGS in function call.
21146         (find_reloads): Change this_alternative to array of enum
21147         reg_class.  Remove some now-unnecessary casts.
21148         (make_memloc): Change 0 to VOIDmode in function call.
21149         * reload1.c (reload): Change 0 to VOIDmode in function call.
21150         (eliminate_regs_1, elimination_effects): Likewise.
21151         (eliminate_regs_in_insn): Likewise.
21152         (emit_input_reload_insns): Add cast to enum type.
21153         (delete_output_reload): Change 0 to VOIDmode in function call.
21154         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
21155         to enum type in function call.
21156         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
21157         (SET_PREDICT_EXPR_OUTCOME): Define.
21158         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
21159         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
21160         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
21161         (dump_function): Likewise.
21162         * tree-dump.h: Update declarations.
21163         * tree-pass.h: Update declarations.
21164         * varasm.c (assemble_integer): Change mclass to enum mode_class.
21165         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
21166         enum type.
21167         (arm_rtx_costs_1): Correct parenthesization.
21168         (arm_rtx_costs): Add casts to enum type.
21169         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
21170         (vfp_emit_fstmd): Use add_rg_note.
21171         (emit_multi_reg_push, emit_sfm): Likewise.
21172         (thumb_set_frame_pointer): Likewise.
21173         (arm_expand_prologue): Likewise.
21174         (arm_regno_class): Change return type to enum reg_class.
21175         (thumb1_expand_prologue): Use add_reg_note.
21176         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
21177         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
21178         in function call.
21179         * config/arm/gentune.sh: Add cast to enum type.
21180         * config/arm/arm-tune.md: Rebuild.
21181         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
21182         (ix86_split_fp_branch, predict_jump): Likewise.
21183         (ix86_expand_multi_arg_builtin): Change sub_code from enum
21184         insn_code to enum rtx_code.
21185         (ix86_builtin_vectorized_function): Add cast to enum type.
21186         * config/i386/i386.md (truncdfsf2): Change slot to enum
21187         ix86_stack_slot.
21188         (truncxf<mode>2, isinf<mode>2): Likewise.
21189         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
21190         enum type.
21191         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
21192         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
21193         (insert_bundle_state): Change 1 to INSERT in function call.
21194         (ia64_add_bundle_selector_before): Likewise.
21195         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
21196         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
21197         (restore_stack_nonlocal): Likewise.
21198         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
21199         function call.
21200         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
21201         function call.
21202         (mips_rtx_costs): Likewise.
21203         (mips_override_options): Add casts to enum type.
21204         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
21205         in function call.
21206         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
21207         (store_reg, set_reg_plus_d): Likewise.
21208         (hppa_expand_prologue, hppa_profile_hook): Likewise.
21209         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
21210         cast to enum type.
21211         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
21212         function call.
21213         (emit_unlikely_jump): Use add_reg_note.
21214         (rs6000_emit_allocate_stack): Likewise.
21215         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
21216         (output_toc): Change 1 to INSERT in function call.
21217         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
21218         (rs6000_initialize_trampoline): Likewise.
21219         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
21220         function call.
21221         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
21222         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
21223         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
21224         (save_gprs): Use add_reg_note.
21225         (s390_emit_prologue): Likewise.
21226         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
21227         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
21228         (sparc_fold_builtin): Add cast to enum type.
21229         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
21230         enum insn_code.
21231         (spu_expand_prologue): Use add_reg_note.
21232         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
21233
21234 2009-04-20  Ian Lance Taylor  <iant@google.com>
21235
21236         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
21237         (c_parser_postfix_expression_after_primary): Get VEC for list of
21238         arguments.  Get original types of arguments.  Call
21239         build_function_call_vec.
21240         (cached_expr_list_1, cached_expr_list_2): New static variables.
21241         (c_parser_expr_list): Change return type to VEC *.  Add
21242         p_orig_types parameter.  Change all callers.
21243         (c_parser_release_expr): New static function.
21244         (c_parser_vec_to_tree_list): New static function.
21245         * c-typeck.c (build_function_call): Rewrite to build a VEC and
21246         call build_function_call_vec.
21247         (build_function_call_vec): New function, based on old
21248         build_function_call.
21249         (convert_arguments): Remove nargs and argarray parameters.  Change
21250         values to a VEC.  Add origtypes parameter.
21251         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
21252         (convert_for_assignment): Add origtype parameter.  Change all
21253         callers.  If warn_cxx_compat, check for conversion to an enum
21254         type when calling a function.
21255         (store_init_value): Add origtype parameter.  Change all callers.
21256         (digest_init): Likewise.
21257         (struct init_node): Add origtype field.
21258         (add_pending_init): Add origtype parameter.  Change all callers.
21259         (output_init_element): Likewise.
21260         (output_pending_init_elements): Pass origtype from init_node to
21261         output_init_element.
21262         (process_init_element): Pass origtype from c_expr to
21263         output_init_element.
21264         (c_finish_return): Add origtype parameter.  Change all callers.
21265         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
21266         caller.
21267         (sync_resolve_params): Likewise.
21268         (sync_resolve_return): Change params to first_param.  Change caller.
21269         (resolve_overloaded_builtins): Change params to VEC *.  Change
21270         callers.  Save first parameter around call to build_function_call_vec.
21271         * c-decl.c (finish_decl): Add origtype parameter.  Change all
21272         callers.  Call build_function_call_vec rather than
21273         build_function_call for cleanup.
21274         * c-tree.h: Update declarations.
21275         * c-common.h: Update declarations.
21276         * stub-objc.c (objc_rewrite_function_call): Change parameter from
21277         params to first_param.
21278         * target.h (struct gcc_target): Change resolve_overloaded_builtin
21279         params parameter from tree to void *.
21280         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21281         Change arglist parameter to have type void *, and to be a pointer
21282         to a VEC.
21283         * config/rs6000/rs6000-protos.h
21284         (altivec_resolve_overloaded_builtin): Update declaration.
21285         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
21286         fnargs parameter to have type void *, and to be a pointer to a
21287         VEC.  Call build_function_call_vec instead of
21288         build_function_call.
21289         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
21290
21291 2009-04-20  Joey Ye  <joey.ye@intel.com>
21292             Xuepeng Guo  <xuepeng.guo@intel.com>
21293             H.J. Lu  <hongjiu.lu@intel.com>
21294
21295         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
21296
21297         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
21298         (IX86_LEA_PRIORITY): Likewise.
21299         (distance_non_agu_define): New function.
21300         (distance_agu_use): Likewise.
21301         (ix86_lea_for_add_ok): Likewise.
21302         (ix86_dep_by_shift_count): Likewise.
21303
21304         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
21305         should split for LEA.
21306
21307         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
21308         function.
21309         (ix86_dep_by_shift_count): Likewise.
21310
21311 2009-04-20  Richard Guenther  <rguenther@suse.de>
21312
21313         * expr.c (handled_component_p): Move ...
21314         * tree.h (handled_component_p): ... here.
21315         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
21316         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
21317         and REALPART_EXPR to be in one group.
21318
21319 2009-04-20  Richard Guenther  <rguenther@suse.de>
21320
21321         * basic-block.h (get_all_dominated_blocks): Declare.
21322         * dominance.c (get_all_dominated_blocks): New function.
21323         * tree-cfg.c (get_all_dominated_blocks): Remove.
21324         (remove_edge_and_dominated_blocks): Adjust.
21325         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
21326         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
21327         instead of recursing.
21328
21329 2009-04-20  Doug Kwan  <dougkwan@google.com>
21330
21331         * cgraph.h (cgraph_node_ptr): New type for vector functions.
21332         (struct cgraph_node_set_def): New type.
21333         (cgraph_node_set) New type. Also declare vector functions.
21334         (struct cgraph_node_set_element_def): New type.
21335         (cgraph_node_set_element): Ditto.
21336         (cgraph_node_set_iterator): New iterator type.
21337         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
21338         cgraph_node_set_remove, dump_cgraph_node_set,
21339         debug_cgraph_node_set): New prototypes.
21340         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
21341         cgraph_node_set_size): New inlines.
21342         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
21343         including cgraph.h.
21344         (struct ipa_opt_pass): Add struct cgraph_node_set_def
21345         argument to function 'write_summary'.
21346         * ipa.c: Include ggc.h.
21347         (hash_cgraph_node_set_element,
21348         eq_cgraph_node_set_element, cgraph_node_set_new,
21349         cgraph_node_set_add, cgraph_node_set_remove,
21350         cgraph_node_set_find, dump_cgraph_node_set,
21351         debug_cgraph_node_set): New functions.
21352         * Makefile.in (ipa.o): Add dependency on GGC_H.
21353
21354 2009-04-20  Ira Rosen  <irar@il.ibm.com>
21355
21356         PR tree-optimization/39675
21357         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
21358         check of the return code of vect_schedule_slp. Check that
21359         stmt_vec_info still exists for the statement, before checking its
21360         vectorization type.
21361
21362 2009-04-20  Michael Matz  <matz@suse.de>
21363
21364         * Makefile.in (generated_files): Take out $(simple_generated_c).
21365
21366 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
21367
21368         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
21369         (UINTPTR_TYPE):  Likewise.
21370
21371 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
21372
21373         PR c/37481
21374         * c-typeck.c (digest_init): Check for initializing an array with a
21375         string literal.
21376
21377 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
21378
21379         PR c/19771
21380         * c-semantics.c (pop_stmt_list): Propagate
21381         STATEMENT_LIST_HAS_LABEL to parent statement list.
21382
21383 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
21384
21385         * config/mips/mips.h (mips_tune_attr): New macro.
21386         * config/mips/mips.md (cpu): Use it.
21387
21388 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
21389
21390         PR c/38243
21391         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
21392         declaring a tag.
21393
21394 2009-04-19  Diego Novillo  <dnovillo@google.com>
21395
21396         * toplev.c (compile_file): Move call to coverage_finish ...
21397         * cgraphunit.c (ipa_passes): ... here.
21398         Call cgraph_process_new_functions.
21399         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
21400         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
21401
21402 2009-04-19  Jan Hubicka  <jh@suse.cz>
21403
21404         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
21405         cfun.
21406         (dump_cgraph_node): Dump can throw external flag.
21407         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
21408
21409 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21410
21411         PR c/32061
21412         PR c++/36954
21413         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
21414         * common.opt (Wlogical-op): Move from here...
21415         * c.opt (Wlogical-op): ... to here.
21416         * c-typeck.c (parser_build_binary_op): Update call to
21417         warn_logical_operator.
21418         * c-opts.c (c_common_post_options): Enable warn_logical_op with
21419         extra_warnings.
21420         * c-common.c (warn_logical_op): Update.
21421         * c-common.h (warn_logical_op): Update declaration.
21422
21423 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
21424
21425         * tree.c (protected_set_expr_location): Fix formatting.
21426
21427 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
21428
21429         PR c/27676
21430         * c-typeck.c (readonly_warning): new.
21431         (build_unary_op, build_modify_expr): Use readonly_warning for
21432         storing into something readonly but not const-qualified.
21433
21434 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
21435
21436         PR c/22367
21437         * c-typeck.c (build_unary_op): Check for taking address of
21438         expression of type void.
21439
21440 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
21441
21442         PR c/35210
21443         * c-typeck.c (build_function_call): Check for calling a function
21444         with qualified void return types.  Call require_complete_type when
21445         generating a trap.
21446
21447 2009-04-18  Jan Hubicka  <jh@suse.cz>
21448
21449         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
21450         Set nothrow flag.
21451         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
21452         can_throw_external flag.
21453         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
21454         * ipa-pure-const.c (ignore_edge): New function.
21455         (propagate): Compute order for NOTHROW computation; set NOTHROWs
21456         only over can_throw_external edges.
21457         (local_pure_const): Add nothrow flag.
21458         * ipa-utils.c (searchc): Add ignore_edge callback.
21459         (ipa_utils_reduced_inorder): Add ignore_edge callback.
21460         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
21461         (set_nothrow_function_flags): Update cgraph.
21462         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
21463
21464 2009-04-18  Richard Guenther  <rguenther@suse.de>
21465
21466         PR middle-end/39804
21467         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
21468         (fold_stmt): ... this and ...
21469         (fold_stmt_inplace): ... this.
21470         (fold_stmt_1): Fold references in calls and asms.
21471         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
21472
21473 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
21474
21475         * tree-vrp.c (ssa_name_nonzero_p): Remove.
21476         * tree.h: Remove the prototype for ssa_name_nonzero_p.
21477
21478 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
21479
21480         * tree.c (function_args_count): Remove.
21481         * tree.h: Remove the prototype for function_args_count.
21482
21483 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
21484
21485         * tree-iterator.c (expr_only): Remove.
21486         * tree.h: Remove the prototype for expr_only.
21487
21488 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
21489
21490         * reginfo.c (cannot_change_mode_set_regs): Remove.
21491         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
21492
21493 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
21494
21495         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
21496         whether operands 0 and 1 overlaps.
21497
21498 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21499
21500         PR middle-end/36902
21501         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
21502         pointer. Use warning_at instead of warning.
21503         (search_for_addr_array): Likewise.
21504         (check_array_bounds): Likewise.
21505         (check_all_array_refs): Check that the incoming edge is not in the
21506         list of edges to be removed.
21507         (check_all_array_refs): Avoid the temporal pointer.
21508         (vrp_visit_cond_stmt): Fix typo.
21509         (simplify_switch_using_ranges): Handle the case where the switch
21510         index is an integer constant.
21511
21512 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
21513
21514         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
21515
21516 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
21517
21518         * doc/extend.texi, doc/invoke.texi: Fix typos.
21519
21520 2009-04-17  Cary Coutant  <ccoutant@google.com>
21521
21522         * tree-flow-inline.h (get_lineno): Fix inverted test.
21523
21524 2009-04-17  Diego Novillo  <dnovillo@google.com>
21525
21526         * tree-ssa-pre.c (create_expression_by_pieces): Remove
21527         assertion for AVAIL_OUT.
21528
21529 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
21530
21531         PR target/38627
21532         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
21533         * config/sh/linux-atomic.asm: Likewise.
21534
21535 2009-04-17  Diego Novillo  <dnovillo@google.com>
21536
21537         * except.c (debug_eh_tree): New.
21538         (struct eh_region, struct eh_status): Move ...
21539         * except.h: ... here.
21540         (add_type_for_runtime): Declare extern.
21541         (lookup_type_for_runtime): Likewise.
21542         (debug_eh_tree): Declare.
21543         * Makefile.in (GTFILES): List except.h before except.c
21544
21545 2009-04-17  Diego Novillo  <dnovillo@google.com>
21546
21547         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
21548         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
21549         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
21550         (find_vars_r): ... here.
21551         * tree-flow.h (find_referenced_vars_in): Declare.
21552         * tree-ssa-pre.c (create_expression_by_pieces): Assert
21553         that AVAIL_OUT exists for BLOCK.
21554         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
21555         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
21556         (tree-parloops.o): Likewise.
21557
21558 2009-04-17  Simon Baldwin  <simonb@google.com>
21559
21560         * toplev.c (default_tree_printer): Add handling for %E format.
21561
21562 2009-04-17  Diego Novillo  <dnovillo@google.com>
21563
21564         * tree-pretty-print.c (dump_generic_node): Add break after
21565         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
21566         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
21567         FUNCTION_TYPE together.  Call print_struct_decl when printing
21568         structures and TDF_SLIM is not given.
21569         (print_struct_decl): Fix logic for detecting recursion.
21570
21571 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
21572
21573         PR 31567
21574         * gcc.c (create_at_file): New.
21575         (compile_input_file_p): New.
21576         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
21577         * main.c (main): Update call to toplev_main.
21578         * toplev.c (toplev_main): Change signature. Call expandargv.
21579         * toplev.h (toplev_main): Change signature.
21580
21581 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
21582
21583         * dwarf2out.c (field_byte_offset): Use the type size as the field size
21584         if the latter is not constant.
21585
21586 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
21587
21588         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
21589
21590 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
21591
21592         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
21593         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
21594
21595 2009-04-17  Richard Guenther  <rguenther@suse.de>
21596
21597         * tree-ssa-structalias.c (get_constraint_for_component_ref):
21598         Handle component references view-converting an invariant address.
21599
21600 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
21601
21602         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
21603         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
21604         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
21605         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
21606         Use @deftypevr rather than @deftypevar.
21607
21608 2009-04-17  Richard Guenther  <rguenther@suse.de>
21609
21610         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
21611         (get_prop_source_stmt): Likewise.
21612         (can_propagate_from): Likewise.
21613
21614 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
21615
21616         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
21617         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
21618         (--with-multilib-list): Add default value.
21619         * configure: Regenerate.
21620         * Makefile.in (TM_ENDIAN_CONFIG): Define.
21621         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
21622         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
21623         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
21624         Don't add default cpu to multilib list unnecessarily, but do enable
21625         the relevant compiler option..
21626         Add support for --with-multilib-list=<blank> and
21627         --with-multilib-list=!<somelib> to supress unwanted multilibs.
21628         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
21629         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
21630         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
21631         TM_MULTILIB_CONFIG.
21632         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
21633         (MULTILIB_OSDIRNAMES): New variable.
21634         * config/sh/t-1e: Delete file.
21635         * config/sh/t-mlib-sh1: Delete file.
21636         * config/sh/t-mlib-sh2: Delete file.
21637         * config/sh/t-mlib-sh2a: Delete file.
21638         * config/sh/t-mlib-sh2a-nofpu: Delete file.
21639         * config/sh/t-mlib-sh2a-single: Delete file.
21640         * config/sh/t-mlib-sh2a-single-only: Delete file.
21641         * config/sh/t-mlib-sh2e: Delete file.
21642         * config/sh/t-mlib-sh3e: Delete file.
21643         * config/sh/t-mlib-sh4: Delete file.
21644         * config/sh/t-mlib-sh4-nofpu: Delete file.
21645         * config/sh/t-mlib-sh4-single: Delete file.
21646         * config/sh/t-mlib-sh4-single-only: Delete file.
21647         * config/sh/t-mlib-sh4a: Delete file.
21648         * config/sh/t-mlib-sh4a-nofpu: Delete file.
21649         * config/sh/t-mlib-sh4a-single: Delete file.
21650         * config/sh/t-mlib-sh4a-single-only: Delete file.
21651         * config/sh/t-mlib-sh4al: Delete file.
21652         * config/sh/t-mlib-sh5-32media: Delete file.
21653         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
21654         * config/sh/t-mlib-sh5-64media: Delete file.
21655         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
21656         * config/sh/t-mlib-sh5-compact: Delete file.
21657         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
21658         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
21659         * doc/install.texi (Options specification): Add
21660         --with-multilib-list and --with-endian.
21661
21662 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
21663
21664         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
21665         REVISION_c.
21666         (OBJS-common): Add plugin-version.o.
21667         (plugin-version.o): New.
21668         * gcc-plugin.h (plugin_gcc_version): New.
21669         (plugin_default_version_check): New.
21670         (plugin_init_func, plugin_init): Add version argument.
21671         * plugin-version.c: New.
21672         * plugin.c (str_plugin_gcc_version_name): New.
21673         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
21674         pass it to the init function.
21675         (plugin_default_version_check): New.
21676
21677 2009-04-17  Richard Guenther  <rguenther@suse.de>
21678
21679         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
21680         for decl-vs-decl disambiguation.
21681
21682 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
21683
21684         * config/s390/s390.h (s390_tune_attr): New macro definition.
21685         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
21686
21687 2009-04-17  Richard Guenther  <rguenther@suse.de>
21688
21689         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
21690         (fold_stmt_r): Likewise.
21691         (maybe_fold_reference): New function.
21692         (fold_gimple_assign): Handle cases fold_stmt_r did.
21693         (fold_stmt): Do not use fold_stmt_r.
21694         (fold_stmt_inplace): Likewise.
21695
21696 2009-04-17  Richard Guenther  <rguenther@suse.de>
21697
21698         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
21699         (record_equivalences_from_stmt): Remove useless checks and
21700         simplifications.
21701         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
21702         the type is already suitable.
21703
21704 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
21705
21706         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
21707
21708 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
21709
21710         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
21711         (CMPtype): Define as __gcc_CMPtype.
21712
21713 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
21714
21715         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
21716         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
21717
21718 2009-04-17  Richard Guenther  <rguenther@suse.de>
21719
21720         PR tree-optimization/39746
21721         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
21722         special-casing for builtins and static variable use/def.
21723         (call_may_clobber_ref_p_1): Likewise.
21724
21725 2009-04-16  Ian Lance Taylor  <iant@google.com>
21726
21727         * df.h: Include "timevar.h".
21728         (struct df_problem): Change tv_id field to timevar_id_t.
21729         * tree-pass.h: Include "timevar.h".
21730         (struct opt_pass): Change tv_id field to timevar_id_t.
21731         * timevar.h (timevar_id_t): Define TV_NONE.
21732         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
21733         TV_NONE rather than tv_id != 0.
21734         (execute_one_pass): Likewise.
21735         * Makefile.in (DF_H): Add $(TIMEVAR_H).
21736         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
21737         dependencies to $(TREE_PASS_H).
21738         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
21739         to TV_NONE.
21740         (pass_branch_target_load_optimize2): Likewise.
21741         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
21742         (pass_outof_cfg_layout_mode): Likewise.
21743         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
21744         (pass_rebuild_cgraph_edges): Likewise.
21745         (pass_remove_cgraph_callee_edges): Likewise.
21746         * df-core.c (pass_df_initialize_opt): Likewise.
21747         (pass_df_initialize_no_opt): Likewise.
21748         (pass_df_finish): Likewise.
21749         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
21750         * except.c (pass_set_nothrow_function_flags): Likewise.
21751         (pass_convert_to_eh_region_ranges): Likewise.
21752         * final.c (pass_compute_alignments): Likewise.
21753         * function.c (pass_instantiate_virtual_regs): Likewise.
21754         (pass_init_function): Likewise.
21755         (pass_leaf_regs): Likewise.
21756         (pass_match_asm_constraints): Likewise.
21757         * gimple-low.c (pass_lower_cf): Likewise.
21758         (pass_mark_used_blocks): Likewise.
21759         * init-regs.c (pass_initialize_regs): Likewise.
21760         * integrate.c (pass_initial_value_sets): Likewise.
21761         * ira.c (pass_ira): Likewise.
21762         * jump.c (pass_cleanup_barriers): Likewise.
21763         * omp-low.c (pass_expand_omp): Likewise.
21764         (pass_lower_omp): Likewise.
21765         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
21766         * recog.c (pass_split_all_insns): Likewise.
21767         (pass_split_after_reload): Likewise.
21768         (pass_split_before_regstack): Likewise.
21769         (pass_split_before_sched2): Likewise.
21770         (pass_split_for_shorten_branches): Likewise.
21771         * reginfo.c (pass_reginfo_init): Likewise.
21772         (pass_subregs_of_mode_init): Likewise.
21773         (pass_subregs_of_mode_finish): Likewise.
21774         * passes.c (pass_postreload): Likewise.
21775         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
21776         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
21777         (pass_warn_function_return): Likewise.
21778         (pass_warn_function_noreturn): Likewise.
21779         * tree-complex.c (pass_lower_complex): Likewise.
21780         (pass_lower_complex_O0): Likewise.
21781         * tree-if-conv.c (pass_if_conversion): Likewise.
21782         * tree-into-ssa.c (pass_build_ssa): Likewise.
21783         * tree-mudflap.c (pass_mudflap_1): Likewise.
21784         (pass_mudflap_2): Likewise.
21785         * tree-nomudflap.c (pass_mudflap_1): Likewise.
21786         (pass_mudflap_2): Likewise.
21787         * tree-nrv.c (pass_return_slot): Likewise.
21788         * tree-object-size.c (pass_object_sizes): Likewise.
21789         * tree-optimize.c (pass_all_optimizations): Likewise.
21790         (pass_early_local_passes): Likewise.
21791         (pass_all_early_optimizations): Likewise.
21792         (pass_cleanup_cfg): Likewise.
21793         (pass_cleanup_cfg_post_optimizing): Likewise.
21794         (pass_free_datastructures): Likewise.
21795         (pass_free_cfg_annotations): Likewise.
21796         (pass_fixup_cfg): Likewise.
21797         (pass_init_datastructures): Likewise.
21798         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
21799         (pass_late_warn_uninitialized): Likewise.
21800         (pass_update_address_taken): Likewise.
21801         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
21802         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
21803         (pass_cse_sincos): Likewise.
21804         (pass_convert_to_rsqrt): Likewise.
21805         * tree-ssa-structalias.c (pass_build_alias): Likewise.
21806         * tree-stdarg.c (pass_stdarg): Likewise.
21807         * tree-tailcall.c (pass_tail_recursion): Likewise.
21808         (pass_tail_calls): Likewise.
21809         * tree-vect-generic.c (pass_lower_vector): Likewise.
21810         (pass_lower_vector_ssa): Likewise.
21811         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
21812
21813 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
21814
21815         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
21816         XLR entry.
21817         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
21818         Handle -march=xlr.
21819         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
21820         logical and signext.
21821
21822 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
21823
21824         PR target/39767
21825         * config/sh/predicates.md (arith_operand): Check if the operand
21826         of TRUNCATE is a REG.
21827
21828 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21829
21830         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
21831         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
21832
21833 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21834
21835         * tree-iterator.c (tsi_split_statement_list_after,
21836         tsi_split_statement_list_before): Remove.
21837         * tree-iterator.h: Remove the prototypes for
21838         tsi_split_statement_list_after and tsi_split_statement_list_before.
21839
21840 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21841
21842         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
21843         * tree-ssa-propagate.h: Remove the prototype for
21844         stmt_makes_single_load.
21845
21846 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21847
21848         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
21849         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
21850
21851 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21852
21853         * tree-iterator.c (EXPR_LAST_BODY): Remove.
21854
21855 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21856
21857         * except.c (eh_region_outer_p): Remove.
21858         * except.h: Remove the prototype for eh_region_outer_p.
21859
21860 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21861
21862         * function.c (current_function_assembler_name): Remove.
21863         * function.h: Remove the prototype for
21864         current_function_assembler_name.
21865
21866 2009-04-16  Ian Lance Taylor  <iant@google.com>
21867
21868         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
21869         (add_reg_note): Call alloc_reg_note.
21870         * rtl.h (alloc_reg_note): Declare.
21871         * combine.c (try_combine): Use alloc_reg_note.
21872         (recog_for_combine, move_deaths): Likewise.
21873         (distribute_notes): Use alloc_reg_note and add_reg_note.
21874         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
21875         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
21876         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
21877
21878 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
21879
21880         PR rtl-optimization/39762
21881         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
21882         ira_may_move_out_cost): Add comments about way of their usage.
21883         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
21884
21885         * ira-conflicts.c (process_regs_for_copy): Use function
21886         ira_get_register_move_cost instead of global
21887         ira_register_move_cost.
21888
21889         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
21890         color_pass, move_spill_restore, update_curr_costs): Ditto.
21891
21892         * ira-lives.c (process_single_reg_class_operands): Ditto.
21893
21894         * ira-emit.c (emit_move_list): Ditto.
21895
21896         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
21897         (record_reg_classes): Ditto.  Use functions
21898         ira_get_register_move_cost and ira_get_may_move_cost instead of
21899         global vars ira_register_move_cost, ira_may_move_out_cost and
21900         ira_may_move_in_cost.
21901         (record_address_regs): Don't call ira_init_register_move_cost.
21902         Use function ira_get_may_move_cost instead of global
21903         ira_may_move_in_cost.
21904         (process_bb_node_for_hard_reg_moves): Use function
21905         ira_get_register_move_cost instead of global ira_register_move_cost.
21906         (ira_costs): Don't call ira_init_register_move_cost.
21907
21908 2009-04-16  Richard Guenther  <rguenther@suse.de>
21909
21910         * tree-cfg.c (verify_gimple_assign_binary):
21911         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
21912         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
21913         (create_general_new_stmt): Note that this function is broken.
21914
21915 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
21916
21917         * common.opt (fhelp): Add Var(help_flag).
21918         * gcc-plugin.h (plugin_info): Add help.
21919         * plugin.c (plugin_name_args): Add help.
21920         (register_plugin_info): Set plugin->help.
21921         (print_help_one_plugin): New.
21922         (print_plugins_help): New.
21923         * plugin.h (print_plugins_help): New.
21924         * toplev.c (toplev_main): Call print_plugins_help if needed.
21925
21926 2009-04-16  Richard Guenther  <rguenther@suse.de>
21927
21928         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
21929         (gimple_ior_addresses_taken_1): New function.
21930         (gimple_ior_addresses_taken): Likewise.
21931         * gimple.h (struct gimple_statement_with_ops_base): Remove
21932         addresses_taken member.
21933         (gimple_ior_addresses_taken): Declare.
21934         (gimple_addresses_taken, gimple_addresses_taken_ptr,
21935         gimple_set_addresses_taken): Remove.
21936         * ipa-reference.c (mark_address): New function.
21937         (scan_stmt_for_static_refs): Use it for marking addresses taken.
21938         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
21939         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
21940         (gimple_add_to_addresses_taken): Remove.
21941         (get_tmr_operands): Call mark_address_taken.
21942         (get_asm_expr_operands): Likewise.
21943         (get_expr_operands): Likewise.
21944         (build_ssa_operands): Do not clear the addresses_taken bitmap.
21945         (free_stmt_operands): Do not free it.
21946         * tree-ssa.c (delete_tree_ssa): Likewise.
21947         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
21948
21949 2009-04-16  Richard Guenther  <rguenther@suse.de>
21950
21951         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
21952         (walk_stmt_load_store_ops): Likewise.
21953         * gimple.c (get_base_loadstore): New function.
21954         (walk_stmt_load_store_addr_ops): Likewise.
21955         (walk_stmt_load_store_ops): Likewise.
21956         * ipa-pure-const.c (check_op): Simplify.
21957         (check_load, check_store): New functions.
21958         (check_stmt): Use walk_stmt_load_store_ops.
21959         * ipa-reference.c (mark_load): Adjust signature.
21960         (mark_store): Likewise.
21961         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
21962
21963 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
21964
21965         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
21966         (plugin_info): New.
21967         * opts.c (common_handle_option): Don't call print_version.
21968         * plugin.c (plugin_name_args): Add version.
21969         (register_plugin_info): New.
21970         (register_callback): Handle PLUGIN_INFO.
21971         (try_init_one_plugin): New.
21972         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
21973         if failed to init.
21974         (finalize_one_plugin): New.
21975         (finalize_plugins): New.
21976         (print_one_plugin): New.
21977         (print_plugins_versions): New.
21978         * plugin.h (print_plugins_versions): New.
21979         (finalize_plugins): New.
21980         * toplev.c (compile_file): Don't call initialize_plugins.
21981         (print_version): Call print_plugins_versions.
21982         (toplev_main): Call initialize_plugins. Print version if needed.
21983         Call finalize_plugins.
21984
21985 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
21986
21987         * common.opt (fversion): New.
21988         * gcc.c (print_version): New.
21989         (process_command): Don't print the version. Just set print_version.
21990         (main): Print version. Call subprocesses if print_version and
21991         verbose_flag are set.
21992         * opts.c (common_handle_option): Handle OPT_fversion.
21993
21994 2009-04-16  Richard Guenther  <rguenther@suse.de>
21995             Ira Rosen  <irar@il.ibm.com>
21996
21997         PR tree-optimization/39698
21998         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
21999         type of the reduction variable.  Only generate the def if
22000         it is needed.
22001
22002         * omp-low.c (expand_omp_for_generic): When converting to a pointer
22003         make sure to first convert to an integer of the same precision.
22004         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
22005         the type of the evolution correctly in computing the new
22006         induction variable base.
22007
22008 2009-04-16  Richard Guenther  <rguenther@suse.de>
22009
22010         PR middle-end/39625
22011         * tree-cfg.c (make_blocks): Split statements with to-be
22012         abnormal SSA names on the lhs.
22013
22014 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
22015
22016         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
22017         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
22018         * c-typeck.c (really_start_incremental_init): Likewise.
22019         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
22020         (TARGET_INITIALIZER): Remove it.
22021         * target.h (struct target): Remove vector_opaque_p.
22022         * tree.c (build_opaque_vector_type): New.
22023         * tree.h (TYPE_VECTOR_OPAQUE): New.
22024         (build_opaque_vector_type): Declare.
22025         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
22026         * config/rs6000/rs6000.c (build_opaque_vector_type,
22027         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
22028         (rs6000_init_builtins): Use build_opaque_vector_type for
22029         opaque_V4SI_type_node.
22030
22031 2009-04-15  Catherine Moore  <clm@codesourcery.com>
22032
22033         * debug.h (set_name):  Declare.
22034         * dwarf2out.c (dwarf2out_set_name): Declare.
22035         (dwarf2_debug_hooks): Add set_name.
22036         (find_AT_string): New.
22037         (add_AT_string): Call find_AT_string.
22038         (dwarf2out_set_name): New.
22039         * cp/decl.c (grokdeclarator): Call set_name.
22040         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
22041         * debug.c (do_nothing_debug_hooks):  Likewise.
22042         * dbxout.c (dbx_debug_hooks): Likewise.
22043         * sdbout.c (sdb_debug_hooks): Likewise.
22044
22045 2009-04-15  Michael Eager  <eager@eagercon.com>
22046
22047         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
22048         reg for single-precision FPU.
22049         * config/rs6000/rs6000.md (movsi_internal1): Only for
22050         !TARGET_SINGLE_FPU.
22051         (movsi_internal1_single): New. Add pattern to move SI values to/from
22052         single-precision FP regs.
22053
22054 2009-04-15  Richard Guenther  <rguenther@suse.de>
22055
22056         * omp-low.c (lower_rec_input_clauses): Build correct address
22057         expressions.
22058         (expand_omp_for_generic): Fix multiplication type.
22059         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
22060         (generate_memset_zero): Fix types.
22061         * tree-profile.c (prepare_instrumented_value): Correctly
22062         widen a pointer.
22063
22064 2009-04-15  Ian Lance Taylor  <iant@google.com>
22065
22066         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
22067         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
22068         for -Wall and for -Wc++-compat.
22069         (c_common_post_options): For C++, set warn_enum_compare if not
22070         already set.
22071         * c-tree.h (struct c_expr): Add field original_type.
22072         (build_external_ref): Update declaration.
22073         * c-parser.c (c_parser_braced_init): Set original_type.
22074         (c_parser_initelt): Likewise.
22075         (c_parser_expr_no_commas): Likewise.
22076         (c_parser_conditional_expression): Likewise.
22077         (c_parser_cast_expression): Likewise.
22078         (c_parser_unary_expression): Likewise.  Pull setting of
22079         original_code to top of function.
22080         (c_parser_sizeof_expression): Set original_type.
22081         (c_parser_alignof_expression): Likewise.
22082         (c_parser_postfix_expression): Likewise.  Pull setting of
22083         original_code to top of function.
22084         (c_parser_postfix_expression_after_paren_type): Set original_type.
22085         (c_parser_postfix_expression_after_primary): Likewise.
22086         (c_parser_expression): Likewise.
22087         * c-typeck.c (build_external_ref): Add type parameter.  Change all
22088         callers.
22089         (c_expr_sizeof_expr): Set original_type field.
22090         (parser_build_unary_op): Likewise.
22091         (parser_build_binary_op): Likewise.  Optionally warn about
22092         comparisons of enums of different types.
22093         (digest_init): Set original_type field.
22094         (really_start_incremental_init): Likewise.
22095         (push_init_level, pop_init_level): Likewise.
22096         * doc/invoke.texi (Warning Options): -Wenum-compare now
22097         supported in C.
22098
22099 2009-04-15  Richard Guenther  <rguenther@suse.de>
22100
22101         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
22102         out a necessary conversion.
22103         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
22104         names we didn't value number.
22105         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
22106
22107 2009-04-15  Richard Guenther  <rguenther@suse.de>
22108
22109         PR tree-optimization/39764
22110         * tree-ssa-ccp.c (get_value): Canonicalize value with
22111         canonicalize_float_value.
22112
22113 2009-04-15  Jan Hubicka  <jh@suse.cz>
22114
22115         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
22116         Wrong version of patch.
22117
22118 2009-04-15  Jan Hubicka  <jh@suse.cz>
22119
22120         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
22121
22122 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
22123
22124         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
22125         our distinct integral and vector types.
22126
22127 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
22128
22129         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
22130         * init.c (build_vtbl_address): Remove call to assemble_external.
22131
22132 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
22133
22134         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
22135         output for other floating point modes.
22136
22137 2009-04-14  Diego Novillo  <dnovillo@google.com>
22138
22139         * diagnostic.c (diagnostic_report_diagnostic): Do not
22140         warn about loaded plugins for DK_ERROR and DK_WARNING.
22141         * c-decl.c (declspecs_add_type): Move call to
22142         invoke_plugin_callbacks ...
22143         * c-parser.c (c_parser_declspecs): ... here.
22144         * plugin.c (dump_active_plugins): Tidy output.
22145
22146 2009-04-14  Diego Novillo  <dnovillo@google.com>
22147             Le-Chun Wu  <lcwu@google.com>
22148
22149         * configure.ac: Add --enable-plugin support.
22150         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
22151         * Makefile.in (PLUGIN_H): Define.
22152         Export ENABLE_PLUGIN and GMPINC to site.exp.
22153         Add PLUGINLIBS to link command.
22154         Add/modify dependencies for plugin.o and files including plugin.h.
22155         (plugin.o): New.
22156         * config.in: Regenerate.
22157
22158         * opts.c (common_handle_option): Handle OPT_fplugin_ and
22159         OPT_fplugin_arg_.
22160
22161 2009-04-14  Le-Chun Wu  <lcwu@google.com>
22162
22163         * tree-pass.h (register_one_dump_file): Add a prototype for
22164         register_one_dump_file.
22165         * toplev.c (compile_file): Call initialize_plugins.
22166         (do_compile): Call invoke_plugin_callbacks.
22167         (toplev_main): Call invoke_plugin_callbacks.
22168         * common.opt: Add -fplugin= and -fplugin-arg-.
22169         * gcc-plugin.h: New public header file for plugins to include.
22170         * plugin.c: New source file.
22171         * plugin.h: New internal header file.
22172         * passes.c (register_one_dump_file): Make it external.
22173
22174         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
22175
22176 2009-04-14  Diego Novillo  <dnovillo@google.com>
22177
22178         * doc/plugins.texi: New.
22179         * doc/gccint.texi: Add reference to Plugins chapter.
22180         * doc/invoke.texi: Document -fplugin and -fplugin-arg
22181         * diagnostic.c (diagnostic_report_diagnostic): Warn about
22182         loaded plugins, if any.
22183         * timevar.def (TV_PLUGIN_INIT): Define.
22184         (TV_PLUGIN_RUN): Define.
22185         * plugin.c: Include timevar.h
22186         (plugins_active_p): New.
22187         (dump_active_plugins): New.
22188         (debug_active_plugins): New.
22189
22190 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
22191
22192         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
22193         library paths.
22194         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
22195
22196 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
22197
22198         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
22199         the same as a minus without a shift.
22200
22201 2009-04-14  Nick Clifton  <nickc@redhat.com>
22202
22203         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
22204         comparisons with small integers will always produce a short
22205         branch.
22206
22207 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
22208
22209         Merge:
22210         2008-12-19  Diego Novillo  <dnovillo@google.com>
22211
22212         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
22213
22214 2009-04-14  Richard Guenther  <rguenther@suse.de>
22215
22216         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
22217         verification.
22218         (verify_gimple_assign_binary): Likewise.  Handle shifts and
22219         rotates correctly.
22220         (verify_gimple_phi): Print the mismatched argument position.
22221         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
22222         Fix types.
22223         (vect_update_init_of_dr): Likewise.
22224         * matrix-reorg.c (transform_access_sites): Do what the
22225         comment suggests.
22226         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
22227
22228 2009-04-13  Michael Eager  <eager@eagercon.com>
22229
22230         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
22231         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
22232         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
22233         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
22234         remove duplicate config
22235
22236 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
22237
22238         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
22239         file_name:line_number type locator of the call site.
22240
22241 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
22242
22243         * genautomata.c: Put blank after comma.
22244         (automaton_decls): New.
22245         (struct unit_usage): Add comments to member next.
22246         (store_alt_unit_usage): Keep the list ordered.
22247         (unit_present_on_list_p, equal_alternatives_p): New.
22248         (check_regexp_units_distribution): Check units distribution
22249         correctness correctly.
22250         (main): Don't write automata if error is found.  Return correct
22251         exit code.
22252
22253         * config/m68k/cf.md (cfv4_ds): Remove.
22254         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
22255         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
22256
22257         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
22258         power4-load-ext, power4-store, power4-store-update,
22259         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
22260         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
22261         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
22262         power4-sqrt, power4-isync): Modify reservation to make correct
22263         unit distribution to automata.
22264
22265         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
22266         power5-store-update, power5-two, power5-three, power5-lmul,
22267         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
22268
22269 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
22270
22271         * except.c (pass_set_nothrow_function_flags): Set name and add
22272         TODO_dump_func.
22273         (set_nothrow_function_flags): Mention in the dump file when
22274         changing a function to nothrow.
22275
22276 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
22277
22278         PR/39066
22279         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
22280         instead of unsigned long.
22281
22282 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22283
22284         * config/arm/arm.c (return_used_this_function): Remove.
22285         (arm_output_function_prologue): Remove use of
22286         return_used_this_function.
22287         (output_return_instruction): Replace use of
22288         return_used_this_function
22289         by cfun->machine->return_used_this_function.
22290         (arm_output_epilogue): Likewise.
22291         (arm_output_function_epilogue): Likewise.
22292         (thumb_unexpanded_epilogue): Likewise.
22293         * config/arm/arm.h (struct machine_function):
22294         New member return_used_this_function.
22295
22296 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
22297
22298         * doc/install.texi: Correct description of default directory for
22299         --with-gxx-include-dir.
22300
22301 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
22302
22303         * fold-const.c (build_range_check): Properly deal with enumeral and
22304         boolean base types.
22305
22306 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
22307
22308         * doc/invoke.texi (max_gcse_passes): Remove documentation.
22309         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
22310         * params.h (MAX_GCSE_PASSES): Remove.
22311         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
22312         in sequence.  Remove ability to run multiple passes.
22313         (bypass_jumps): Report run as third CPROP pass.
22314
22315 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
22316
22317         PR middle-end/39651
22318         * except.c (can_throw_external): Look at each insn in a SEQUENCE
22319         when deciding whether the whole SEQUENCE can throw.
22320
22321 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
22322
22323         PR target/39740
22324         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
22325         offseted label references.
22326
22327 2009-04-11  Jan Hubicka  <jh@suse.cz>
22328
22329         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
22330
22331 2009-04-11  Richard Guenther  <rguenther@suse.de>
22332
22333         PR middle-end/39732
22334         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
22335         return variables as TREE_ADDRESSABLE.
22336
22337 2009-04-11  Richard Guenther  <rguenther@suse.de>
22338
22339         PR tree-optimization/39713
22340         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
22341         reference trees have SSA_NAME operands.
22342
22343 2009-04-11  Richard Guenther  <rguenther@suse.de>
22344
22345         PR c/39712
22346         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
22347         address expressions.
22348
22349 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
22350
22351         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
22352         match changes in Cygwin 1.7
22353         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
22354         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
22355
22356 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
22357
22358         PR tree-optimization/39701
22359         * doc/invoke.texi (Optimization Options): Document change in
22360         meaning and initialization of -fdelete-null-pointer-checks.
22361
22362 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
22363
22364         PR middle-end/39701
22365         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
22366
22367         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
22368         here.
22369
22370         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
22371
22372 2009-04-10  Chao-ying Fu  <fu@mips.com>
22373
22374         * doc/tm.texi (Instruction Output): Document
22375         TARGET_ASM_FINAL_POSTSCAN_INSN.
22376         * target.h (final_postscan_insn): New field in asm_out.
22377         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
22378         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
22379         * final.c (final_scan_insn): Call
22380         targetm.asm_out.final_postscan_insn after outputting
22381         an asm macro and a normal instruction.
22382
22383         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
22384         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
22385         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
22386         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
22387         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
22388
22389 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
22390
22391         PR middle-end/39701
22392         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
22393         variables as non-NULL even with -fdelete-null-pointer-checks.
22394
22395 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
22396
22397         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
22398
22399 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
22400
22401         PR target/39678
22402         * config/i386/i386.c (classify_argument): Handle SCmode with
22403         (bit_offset % 64) != 0.
22404
22405 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
22406
22407         * doc/invoke.texi (Optimize Options): Add cross-reference to
22408         -Q --help=optimizers examples.
22409
22410 2009-04-10  Ben Elliston  <bje@au.ibm.com>
22411
22412         PR target/36800
22413         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
22414         regalign for the reg == fpr and TDmode case.
22415
22416 2009-04-09  David Ayers  <ayers@fsfe.org>
22417
22418         PR objc/29200
22419         * objc/objc-act.c (warn_with_method): Remove helper function.
22420         (check_duplicates): Call warning and inform directly.
22421         (really_start_method): Likewise.
22422
22423 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
22424
22425         * expmed.c (expand_divmod): Always use a comparison for a division
22426         by a large unsigned integer.
22427
22428         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
22429         for things others than variables or functions as nonzero.
22430
22431 2009-04-09  Nick Clifton  <nickc@redhat.com>
22432
22433         * unwind-compat.c: Change copyright header to refer to version
22434         3 of the GNU General Public License with version 3.1 of the
22435         GCC Runtime Library Exception and to point readers at the
22436         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
22437         * config/alpha/crtfastmath.c: Likewise.
22438         * config/alpha/linux-unwind.h: Likewise.
22439         * config/alpha/qrnnd.asm: Likewise.
22440         * config/alpha/vms-crt0-64.c: Likewise.
22441         * config/alpha/vms-crt0.c: Likewise.
22442         * config/alpha/vms-dwarf2.asm: Likewise.
22443         * config/alpha/vms-dwarf2eh.asm: Likewise.
22444         * config/alpha/vms-psxcrt0-64.c: Likewise.
22445         * config/alpha/vms-psxcrt0.c: Likewise.
22446         * config/alpha/vms_tramp.asm: Likewise.
22447         * config/arc/initfini.c: Likewise.
22448         * config/arc/lib1funcs.asm: Likewise.
22449         * config/arm/bpabi-v6m.S: Likewise.
22450         * config/arm/bpabi.S: Likewise.
22451         * config/arm/bpabi.c: Likewise.
22452         * config/arm/crti.asm: Likewise.
22453         * config/arm/crtn.asm: Likewise.
22454         * config/arm/ieee754-df.S: Likewise.
22455         * config/arm/ieee754-sf.S: Likewise.
22456         * config/arm/lib1funcs.asm: Likewise.
22457         * config/arm/libunwind.S: Likewise.
22458         * config/arm/linux-atomic.c: Likewise.
22459         * config/arm/mmintrin.h: Likewise.
22460         * config/arm/pr-support.c: Likewise.
22461         * config/arm/unaligned-funcs.c: Likewise.
22462         * config/arm/unwind-arm.c: Likewise.
22463         * config/arm/unwind-arm.h: Likewise.
22464         * config/avr/libgcc.S: Likewise.
22465         * config/bfin/crti.s: Likewise.
22466         * config/bfin/crtlibid.s: Likewise.
22467         * config/bfin/crtn.s: Likewise.
22468         * config/bfin/lib1funcs.asm: Likewise.
22469         * config/bfin/linux-unwind.h: Likewise.
22470         * config/cris/arit.c: Likewise.
22471         * config/cris/cris_abi_symbol.c: Likewise.
22472         * config/darwin-64.c: Likewise.
22473         * config/darwin-crt2.c: Likewise.
22474         * config/darwin-crt3.c: Likewise.
22475         * config/darwin.h: Likewise.
22476         * config/dbxelf.h: Likewise.
22477         * config/dfp-bit.c: Likewise.
22478         * config/dfp-bit.h: Likewise.
22479         * config/elfos.h: Likewise.
22480         * config/fixed-bit.c: Likewise.
22481         * config/fixed-bit.h: Likewise.
22482         * config/fp-bit.c: Likewise.
22483         * config/fp-bit.h: Likewise.
22484         * config/fr30/crti.asm: Likewise.
22485         * config/fr30/crtn.asm: Likewise.
22486         * config/fr30/lib1funcs.asm: Likewise.
22487         * config/freebsd-spec.h: Likewise.
22488         * config/frv/cmovd.c: Likewise.
22489         * config/frv/cmovh.c: Likewise.
22490         * config/frv/cmovw.c: Likewise.
22491         * config/frv/frvbegin.c: Likewise.
22492         * config/frv/frvend.c: Likewise.
22493         * config/frv/lib1funcs.asm: Likewise.
22494         * config/glibc-stdint.h: Likewise.
22495         * config/h8300/clzhi2.c: Likewise.
22496         * config/h8300/crti.asm: Likewise.
22497         * config/h8300/crtn.asm: Likewise.
22498         * config/h8300/ctzhi2.c: Likewise.
22499         * config/h8300/fixunssfsi.c: Likewise.
22500         * config/h8300/lib1funcs.asm: Likewise.
22501         * config/h8300/parityhi2.c: Likewise.
22502         * config/h8300/popcounthi2.c: Likewise.
22503         * config/i386/ammintrin.h: Likewise.
22504         * config/i386/att.h: Likewise.
22505         * config/i386/avxintrin.h: Likewise.
22506         * config/i386/biarch64.h: Likewise.
22507         * config/i386/bmmintrin.h: Likewise.
22508         * config/i386/cpuid.h: Likewise.
22509         * config/i386/cross-stdarg.h: Likewise.
22510         * config/i386/crtfastmath.c: Likewise.
22511         * config/i386/crtprec.c: Likewise.
22512         * config/i386/cygming-crtbegin.c: Likewise.
22513         * config/i386/cygming-crtend.c: Likewise.
22514         * config/i386/cygwin.asm: Likewise.
22515         * config/i386/emmintrin.h: Likewise.
22516         * config/i386/gmm_malloc.h: Likewise.
22517         * config/i386/gthr-win32.c: Likewise.
22518         * config/i386/i386.h: Likewise.
22519         * config/i386/immintrin.h: Likewise.
22520         * config/i386/linux-unwind.h: Likewise.
22521         * config/i386/linux64.h: Likewise.
22522         * config/i386/mm3dnow.h: Likewise.
22523         * config/i386/mmintrin-common.h: Likewise.
22524         * config/i386/mmintrin.h: Likewise.
22525         * config/i386/nmmintrin.h: Likewise.
22526         * config/i386/pmm_malloc.h: Likewise.
22527         * config/i386/pmmintrin.h: Likewise.
22528         * config/i386/smmintrin.h: Likewise.
22529         * config/i386/sol2-c1.asm: Likewise.
22530         * config/i386/sol2-ci.asm: Likewise.
22531         * config/i386/sol2-cn.asm: Likewise.
22532         * config/i386/sol2-gc1.asm: Likewise.
22533         * config/i386/tmmintrin.h: Likewise.
22534         * config/i386/unix.h: Likewise.
22535         * config/i386/w32-unwind.h: Likewise.
22536         * config/i386/wmmintrin.h: Likewise.
22537         * config/i386/x86-64.h: Likewise.
22538         * config/i386/x86intrin.h: Likewise.
22539         * config/i386/xmmintrin.h: Likewise.
22540         * config/ia64/crtbegin.asm: Likewise.
22541         * config/ia64/crtend.asm: Likewise.
22542         * config/ia64/crtfastmath.c: Likewise.
22543         * config/ia64/crti.asm: Likewise.
22544         * config/ia64/crtn.asm: Likewise.
22545         * config/ia64/fde-glibc.c: Likewise.
22546         * config/ia64/lib1funcs.asm: Likewise.
22547         * config/ia64/linux-unwind.h: Likewise.
22548         * config/ia64/quadlib.c: Likewise.
22549         * config/ia64/unwind-ia64.c: Likewise.
22550         * config/linux.h: Likewise.
22551         * config/m32c/m32c-lib1.S: Likewise.
22552         * config/m32c/m32c-lib2-trapv.c: Likewise.
22553         * config/m32c/m32c-lib2.c: Likewise.
22554         * config/m32r/initfini.c: Likewise.
22555         * config/m68hc11/larith.asm: Likewise.
22556         * config/m68hc11/m68hc11-crt0.S: Likewise.
22557         * config/m68k/cf.md: Likewise.
22558         * config/m68k/crti.s: Likewise.
22559         * config/m68k/crtn.s: Likewise.
22560         * config/m68k/lb1sf68.asm: Likewise.
22561         * config/m68k/linux-unwind.h: Likewise.
22562         * config/mcore/crti.asm: Likewise.
22563         * config/mcore/crtn.asm: Likewise.
22564         * config/mcore/lib1.asm: Likewise.
22565         * config/mips/linux-unwind.h: Likewise.
22566         * config/mips/loongson.h: Likewise.
22567         * config/mips/mips16.S: Likewise.
22568         * config/mmix/crti.asm: Likewise.
22569         * config/mmix/crtn.asm: Likewise.
22570         * config/pa/fptr.c: Likewise.
22571         * config/pa/hpux-unwind.h: Likewise.
22572         * config/pa/lib2funcs.asm: Likewise.
22573         * config/pa/linux-atomic.c: Likewise.
22574         * config/pa/linux-unwind.h: Likewise.
22575         * config/pa/milli64.S: Likewise.
22576         * config/pa/quadlib.c: Likewise.
22577         * config/pa/stublib.c: Likewise.
22578         * config/picochip/libgccExtras/adddi3.asm: Likewise.
22579         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
22580         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
22581         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
22582         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
22583         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
22584         * config/picochip/libgccExtras/divmod15.asm: Likewise.
22585         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
22586         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
22587         * config/picochip/libgccExtras/longjmp.asm: Likewise.
22588         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
22589         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
22590         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
22591         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
22592         * config/picochip/libgccExtras/setjmp.asm: Likewise.
22593         * config/picochip/libgccExtras/subdi3.asm: Likewise.
22594         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
22595         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
22596         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
22597         * config/rs6000/750cl.h: Likewise.
22598         * config/rs6000/altivec.h: Likewise.
22599         * config/rs6000/biarch64.h: Likewise.
22600         * config/rs6000/crtresfpr.asm: Likewise.
22601         * config/rs6000/crtresgpr.asm: Likewise.
22602         * config/rs6000/crtresxfpr.asm: Likewise.
22603         * config/rs6000/crtresxgpr.asm: Likewise.
22604         * config/rs6000/crtsavfpr.asm: Likewise.
22605         * config/rs6000/crtsavgpr.asm: Likewise.
22606         * config/rs6000/darwin-asm.h: Likewise.
22607         * config/rs6000/darwin-fallback.c: Likewise.
22608         * config/rs6000/darwin-fpsave.asm: Likewise.
22609         * config/rs6000/darwin-ldouble.c: Likewise.
22610         * config/rs6000/darwin-tramp.asm: Likewise.
22611         * config/rs6000/darwin-unwind.h: Likewise.
22612         * config/rs6000/darwin-vecsave.asm: Likewise.
22613         * config/rs6000/darwin-world.asm: Likewise.
22614         * config/rs6000/e500crtres32gpr.asm: Likewise.
22615         * config/rs6000/e500crtres64gpr.asm: Likewise.
22616         * config/rs6000/e500crtres64gprctr.asm: Likewise.
22617         * config/rs6000/e500crtrest32gpr.asm: Likewise.
22618         * config/rs6000/e500crtrest64gpr.asm: Likewise.
22619         * config/rs6000/e500crtresx32gpr.asm: Likewise.
22620         * config/rs6000/e500crtresx64gpr.asm: Likewise.
22621         * config/rs6000/e500crtsav32gpr.asm: Likewise.
22622         * config/rs6000/e500crtsav64gpr.asm: Likewise.
22623         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
22624         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
22625         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
22626         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
22627         * config/rs6000/eabi-ci.asm: Likewise.
22628         * config/rs6000/eabi-cn.asm: Likewise.
22629         * config/rs6000/eabi.asm: Likewise.
22630         * config/rs6000/linux-unwind.h: Likewise.
22631         * config/rs6000/linux64.h: Likewise.
22632         * config/rs6000/paired.h: Likewise.
22633         * config/rs6000/paired.md: Likewise.
22634         * config/rs6000/ppc64-fp.c: Likewise.
22635         * config/rs6000/ppu_intrinsics.h: Likewise.
22636         * config/rs6000/rs6000.h: Likewise.
22637         * config/rs6000/si2vmx.h: Likewise.
22638         * config/rs6000/sol-ci.asm: Likewise.
22639         * config/rs6000/sol-cn.asm: Likewise.
22640         * config/rs6000/spe.h: Likewise.
22641         * config/rs6000/spu2vmx.h: Likewise.
22642         * config/rs6000/sysv4.h: Likewise.
22643         * config/rs6000/tramp.asm: Likewise.
22644         * config/rs6000/vec_types.h: Likewise.
22645         * config/s390/linux-unwind.h: Likewise.
22646         * config/s390/tpf-unwind.h: Likewise.
22647         * config/score/crti.asm: Likewise.
22648         * config/score/crtn.asm: Likewise.
22649         * config/sh/crt1.asm: Likewise.
22650         * config/sh/crti.asm: Likewise.
22651         * config/sh/crtn.asm: Likewise.
22652         * config/sh/divtab-sh4-300.c: Likewise.
22653         * config/sh/divtab-sh4.c: Likewise.
22654         * config/sh/divtab.c: Likewise.
22655         * config/sh/lib1funcs-4-300.asm: Likewise.
22656         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
22657         * config/sh/lib1funcs.asm: Likewise.
22658         * config/sh/lib1funcs.h: Likewise.
22659         * config/sh/linux-atomic.asm: Likewise.
22660         * config/sh/linux-unwind.h: Likewise.
22661         * config/sh/shmedia.h: Likewise.
22662         * config/sh/sshmedia.h: Likewise.
22663         * config/sh/ushmedia.h: Likewise.
22664         * config/sparc/crtfastmath.c: Likewise.
22665         * config/sparc/linux-unwind.h: Likewise.
22666         * config/sparc/sol2-c1.asm: Likewise.
22667         * config/sparc/sol2-ci.asm: Likewise.
22668         * config/sparc/sol2-cn.asm: Likewise.
22669         * config/spu/divmodti4.c: Likewise.
22670         * config/spu/divv2df3.c: Likewise.
22671         * config/spu/float_disf.c: Likewise.
22672         * config/spu/float_unsdidf.c: Likewise.
22673         * config/spu/float_unsdisf.c: Likewise.
22674         * config/spu/float_unssidf.c: Likewise.
22675         * config/spu/mfc_multi_tag_release.c: Likewise.
22676         * config/spu/mfc_multi_tag_reserve.c: Likewise.
22677         * config/spu/mfc_tag_release.c: Likewise.
22678         * config/spu/mfc_tag_reserve.c: Likewise.
22679         * config/spu/mfc_tag_table.c: Likewise.
22680         * config/spu/multi3.c: Likewise.
22681         * config/spu/spu_internals.h: Likewise.
22682         * config/spu/spu_intrinsics.h: Likewise.
22683         * config/spu/spu_mfcio.h: Likewise.
22684         * config/spu/vec_types.h: Likewise.
22685         * config/spu/vmx2spu.h: Likewise.
22686         * config/stormy16/stormy16-lib2.c: Likewise.
22687         * config/svr4.h: Likewise.
22688         * config/sync.c: Likewise.
22689         * config/v850/lib1funcs.asm: Likewise.
22690         * config/vxlib-tls.c: Likewise.
22691         * config/vxlib.c: Likewise.
22692         * config/vxworks-dummy.h: Likewise.
22693         * config/xtensa/crti.asm: Likewise.
22694         * config/xtensa/crtn.asm: Likewise.
22695         * config/xtensa/ieee754-df.S: Likewise.
22696         * config/xtensa/ieee754-sf.S: Likewise.
22697         * config/xtensa/lib1funcs.asm: Likewise.
22698         * config/xtensa/lib2funcs.S: Likewise.
22699         * config/xtensa/linux-unwind.h: Likewise.
22700         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
22701         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
22702         * coretypes.h: Likewise.
22703         * crtstuff.c: Likewise.
22704         * defaults.h: Likewise.
22705         * dwarf2.h: Likewise.
22706         * emutls.c: Likewise.
22707         * gbl-ctors.h: Likewise.
22708         * gcov-io.h: Likewise.
22709         * ginclude/float.h: Likewise.
22710         * ginclude/iso646.h: Likewise.
22711         * ginclude/stdarg.h: Likewise.
22712         * ginclude/stdbool.h: Likewise.
22713         * ginclude/stddef.h: Likewise.
22714         * ginclude/stdfix.h: Likewise.
22715         * ginclude/stdint-gcc.h: Likewise.
22716         * ginclude/tgmath.h: Likewise.
22717         * gthr-aix.h: Likewise.
22718         * gthr-dce.h: Likewise.
22719         * gthr-gnat.c: Likewise.
22720         * gthr-gnat.h: Likewise.
22721         * gthr-lynx.h: Likewise.
22722         * gthr-mipssde.h: Likewise.
22723         * gthr-nks.h: Likewise.
22724         * gthr-posix.c: Likewise.
22725         * gthr-posix.h: Likewise.
22726         * gthr-posix95.h: Likewise.
22727         * gthr-rtems.h: Likewise.
22728         * gthr-single.h: Likewise.
22729         * gthr-solaris.h: Likewise.
22730         * gthr-tpf.h: Likewise.
22731         * gthr-vxworks.h: Likewise.
22732         * gthr-win32.h: Likewise.
22733         * gthr.h: Likewise.
22734         * libgcc2.c: Likewise.
22735         * libgcc2.h: Likewise.
22736         * libgcov.c: Likewise.
22737         * tsystem.h: Likewise.
22738         * typeclass.h: Likewise.
22739         * unwind-c.c: Likewise.
22740         * unwind-compat.h: Likewise.
22741         * unwind-dw2-fde-compat.c: Likewise.
22742         * unwind-dw2-fde-darwin.c: Likewise.
22743         * unwind-dw2-fde-glibc.c: Likewise.
22744         * unwind-dw2-fde.c: Likewise.
22745         * unwind-dw2-fde.h: Likewise.
22746         * unwind-dw2.c: Likewise.
22747         * unwind-dw2.h: Likewise.
22748         * unwind-generic.h: Likewise.
22749         * unwind-pe.h: Likewise.
22750         * unwind-sjlj.c: Likewise.
22751         * unwind.inc: Likewise.
22752         * config/arm/neon-gen.ml: Change generated copyright header to
22753         refer to version 3 of the GNU General Public License with
22754         version 3.1 of the GCC Runtime Library Exception and to point
22755         readers at the COPYING3 and COPYING3.RUNTIME files and the
22756         FSF's license web page.
22757         * config/arm/arm_neon.h: Regenerate.
22758
22759 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
22760
22761         * config/cris/cris.md: Change copyright header to refer to version
22762         3 of the GNU General Public License.
22763         * doc/install.texi2html: Change copyright header to refer to version
22764         3 of the GNU General Public License and to point readers at the
22765         COPYING3 file and the FSF's license web page.
22766         * config/vax/linux.h: Likewise.
22767
22768 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
22769
22770         * config/i386/i386.md (cmpcc): New.
22771         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
22772         (sync_compare_and_swap_cc*): Delete.
22773
22774         * config/s390/s390.c (s390_compare_emitted): Remove.
22775         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
22776         s390_compare_emitted used to be handled.  Assert that modes match.
22777         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
22778         refer to sync_compare_and_swap_ccsi.
22779         * config/s390/s390.h (s390_compare_emitted): Remove.
22780         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
22781         instead of s390_compare_emitted.
22782         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
22783         instead of s390_compare_emitted.
22784         * config/s390/s390.md (cmpcc): New.
22785         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
22786         CC_REGNUM, do not pretend it's set.
22787         (sync_compare_and_swap_cc*): Delete.
22788         * config/s390/predicates.md (cc_reg_operand): New.
22789
22790         * expr.c (sync_compare_and_swap_cc): Delete.
22791         * optabs.h (sync_compare_and_swap_cc): Delete.
22792         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
22793         is being used with can_compare_p.
22794         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
22795         (find_cc_set): New.
22796         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
22797         look for a MODE_CC set instead.  Use emit_store_flag.
22798         (expand_compare_and_swap_loop): Likewise, with some additional
22799         complication to avoid a force_reg when useless.  Use
22800         emit_cmp_and_jump_insns.
22801         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
22802         * doc/md.texi (sync_compare_and_swap_cc): Merge with
22803         sync_compare_and_swap documentation.
22804
22805 2009-04-09  Jan Hubicka  <jh@suse.cz>
22806
22807         * except.c (find_prev_try): Break out from ....
22808         (duplicate_eh_regions): ... here; properly update prev_try pointers
22809         when duplication part of tree.
22810         (dump_eh_tree): Improve dumping.
22811         (verify_eh_region): New.
22812         (verify_eh_tree): Use it.
22813
22814 2009-04-06  Richard Guenther  <rguenther@suse.de>
22815
22816         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
22817         &ARRAY addresses by adjusting their types and prepending
22818         a conversion.
22819         * tree-cfg.c (verify_gimple_assign_single): Verify that
22820         addresses are correct.
22821
22822 2009-04-09  Richard Guenther  <rguenther@suse.de>
22823
22824         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
22825         indices into an array reference if possible.
22826         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
22827         Fold POINTER_PLUS_EXPR statements with invariant address.
22828
22829 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
22830
22831         PR target/39634
22832         * config.gcc (powerpc64-*-linux*): Always build biarch.
22833
22834 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
22835
22836         PR c/39613
22837         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
22838         it and pedwarn if this results in an INTEGER_CST.
22839
22840 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22841
22842         * doc/install.texi: Update minimum GMP version.  Remove obsolete
22843         text in MPFR section.
22844
22845 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
22846
22847         * dwarf2out.c (class_scope_p): New static inline.
22848         (class_or_namespace_scope_p): Use it.
22849         (gen_variable_die): Use DW_TAG_member tag for static data member
22850         declarations instead of DW_TAG_variable.
22851
22852         PR middle-end/39573
22853         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
22854         variables.
22855
22856 2009-04-08  Richard Guenther  <rguenther@suse.de>
22857
22858         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
22859         valueize random data.
22860
22861 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
22862
22863         * config.gcc (aix tm_file):  Add aix-stdint.h.
22864         (aix tm clause use_gcc_stdint):  Set to wrap.
22865         * config/rs6000/aix-stdint.h:  New file.
22866
22867 2009-04-08  Richard Guenther  <rguenther@suse.de>
22868
22869         PR middle-end/36291
22870         * tree-dfa.c (add_referenced_var): Do not recurse into
22871         global initializers.
22872         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
22873         exposed variables.
22874         (fold_const_aggregate_ref): Likewise.
22875
22876 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
22877
22878         * recog.c (ordered_comparison_operator): New.
22879         * gensupport.c (std_preds): Add it.
22880         * doc/md.texi (Machine-Independent Predicates): Document it.
22881
22882 2009-04-08  Jan Hubicka  <jh@suse.cz>
22883
22884         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
22885         * function.h (rtl_eh): Remove exception_handler_label_map.
22886         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
22887         remove_exception_handler_label, for_each_eh_label_1): Remove.
22888         (rtl_remove_unreachable_regions): Remove.
22889         (convert_from_eh_region_ranges): Do not remove unreachable regions.
22890         (find_exception_handler_labels): Don't build the hashtable.
22891         (maybe_remove_eh_handler): Remove.
22892         (for_each_eh_label): Rewrite to walk the tree.
22893         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
22894         * except.h (maybe_remove_eh_handler): Remove.
22895         * passes.c (init_optimization_passes): Schedule second EH cleanup
22896         before out-of-ssa.
22897         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
22898         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
22899
22900 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
22901
22902         * genoutput.c (validate_optab_operands): New.
22903         (gen_insn, gen_expand): Call it.
22904
22905         * genflags.c (gen_insn): Detect misused iterators.
22906         (main): Pass line_no to gen_insn, exit with status 1 on error.
22907
22908         * genextract.c (line_no): Make global.
22909         (VEC_safe_set_locstr): Change assertion to error message.
22910         (main): Exit with status 1 on error.
22911
22912 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
22913
22914         PR c/39614
22915         PR c/39673
22916         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
22917         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
22918         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
22919         * c-convert.c (convert): Do not call fold on results of conversion
22920         functions when the result is a C_MAYBE_CONST_EXPR.
22921         * c-parser.c (c_parser_postfix_expression): Do not fold condition
22922         of __builtin_choose_expr.
22923         * c-typeck.c (remove_c_maybe_const_expr): New.
22924         (build_unary_op, build_conditional_expr, build_compound_expr,
22925         build_binary_op, c_objc_common_truthvalue_conversion): Call
22926         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
22927         integer operands.
22928
22929 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
22930
22931         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
22932         CODE to produce a new one. Add a prototype to use fold_convert_const
22933
22934 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
22935
22936         PR bootstrap/39660
22937         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
22938         mix declarations and code.
22939
22940 2009-04-08  Ben Elliston  <bje@au.ibm.com>
22941
22942         * gcc.c: Replace `CC' with `GCC' throughout.
22943
22944 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
22945
22946         * doc/invoke.texi: Document Atom support.
22947
22948 2009-04-07  Jason Merrill  <jason@redhat.com>
22949
22950         PR c++/25185
22951         * c-common.h, c-common.c: Add flag_pretty_templates.
22952         * c-opts.c (c_common_handle_option): Set it.
22953         * c.opt: Add -fno-pretty-templates.
22954         * doc/invoke.texi (C++ Dialect Options): Likewise.
22955
22956 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
22957
22958         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
22959         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
22960         (ia64_expand_builtin): Likewise.
22961
22962 2009-04-07  Martin Jambor  <mjambor@suse.cz>
22963
22964         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
22965         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
22966         ADDR_EXPRS are include too.
22967
22968 2009-04-07  Richard Guenther  <rguenther@suse.de>
22969
22970         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
22971         decls are only used if passes as parameters or if they are
22972         local statics and the call is not to a builtin.
22973         (call_may_clobber_ref_p_1): Likewise.
22974
22975 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
22976
22977         * expr.c (do_store_flag): Remove last argument.  Simplify code
22978         to avoid duplication of tests already done by can_compare_p.
22979         (expand_expr_real_1): Adjust caller.
22980
22981 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
22982
22983         * optabs.c (can_compare_p): Test the predicate of a
22984         cbranch and cstore pattern.
22985
22986 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
22987
22988         * expr.c (convert_move): Use emit_store_flag instead of
22989         "emulating" it.
22990
22991 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
22992
22993         * config/i386/i386.c (ix86_compare_emitted): Remove.
22994         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
22995         ix86_compare_op0 like ix86_compare_emitted used to be handled.
22996         * config/i386/i386.h (ix86_compare_emitted): Remove.
22997         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
22998         instead of ix86_compare_emitted.
22999         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
23000
23001 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
23002
23003         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
23004         Add t-sysroot-suffix to tmake_file.
23005         * config/print-sysroot-suffix.sh: New file.
23006         * config/t-sysroot-suffix: New file.
23007
23008 2009-04-07  Ben Elliston  <bje@au.ibm.com>
23009
23010         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
23011         as the latter produces a warning when the target does not support
23012         infinity.
23013
23014 2009-04-07  Ben Elliston  <bje@au.ibm.com>
23015
23016         * dfp.c: Replace type punning assignments with memcpy throughout.
23017         * Makefile.in (dfp.o-warn): Remove.
23018
23019 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
23020
23021         PR target/39634
23022         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
23023         Include soft-fp/t-softfp after rs6000/t-linux64.
23024
23025 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
23026
23027         * stor-layout.c (set_sizetype): Use the full precision of their
23028         machine mode for bitsize types.
23029
23030 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
23031
23032         * config/i386/i386.md: Revert 2 accidental checkins.
23033
23034 2009-04-06  Joey Ye  <joey.ye@intel.com>
23035             Xuepeng Guo  <xuepeng.guo@intel.com>
23036             H.J. Lu  <hongjiu.lu@intel.com>
23037
23038         Atom pipeline model, tuning and insn selection.
23039         * config.gcc (atom): Add atom config options and target.
23040
23041         * config/i386/atom.md: New.
23042
23043         * config/i386/i386.c (atom_cost): New cost.
23044         (m_ATOM): New macro flag.
23045         (initial_ix86_tune_features): Set m_ATOM.
23046         (x86_accumulate_outgoing_args): Likewise.
23047         (x86_arch_always_fancy_math_387): Likewise.
23048         (processor_target): Add Atom cost.
23049         (cpu_names): Add Atom cpu name.
23050         (override_options): Set Atom ISA.
23051         (ix86_issue_rate): New case PROCESSOR_ATOM.
23052         (ix86_adjust_cost): Likewise.
23053
23054         * config/i386/i386.h (TARGET_ATOM): New target macro.
23055         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
23056         (TARGET_OPT_AGU): New target option.
23057         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
23058         (processor_type): Add PROCESSOR_ATOM.
23059
23060         * config/i386/i386.md (cpu): Add new value "atom".
23061         (use_carry, movu): New attr.
23062         (atom.md): Include atom.md.
23063         (adddi3_carry_rex64): Set attr "use_carry".
23064         (addqi3_carry): Likewise.
23065         (addhi3_carry): Likewise.
23066         (addsi3_carry): Likewise.
23067         (*addsi3_carry_zext): Likewise.
23068         (subdi3_carry_rex64): Likewise.
23069         (subqi3_carry): Likewise.
23070         (subhi3_carry): Likewise.
23071         (subsi3_carry): Likewise.
23072         (x86_movdicc_0_m1_rex64): Likewise.
23073         (*x86_movdicc_0_m1_se): Likewise.
23074         (x86_movsicc_0_m1): Likewise.
23075         (*x86_movsicc_0_m1_se): Likewise.
23076         (*adddi_1_rex64): Emit add insn as much as possible.
23077         (*addsi_1): Likewise.
23078         (return_internal): Set atom_unit.
23079         (return_internal_long): Likewise.
23080         (return_pop_internal): Likewise.
23081         (*rcpsf2_sse): Set atom_sse_attr attr.
23082         (*qrt<mode>2_sse): Likewise.
23083         (*prefetch_sse): Likewise.
23084
23085         * config/i386/i386-c.c (ix86_target_macros_internal): New case
23086         PROCESSOR_ATOM.
23087         (ix86_target_macros_internal): Likewise.
23088
23089         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
23090         (*prefetch_sse_rex): Likewise.
23091         (sse_rcpv4sf2): Likewise.
23092         (sse_vmrcpv4sf2): Likewise.
23093         (sse_sqrtv4sf2): Likewise.
23094         (<sse>_vmsqrt<mode>2): Likewise.
23095         (sse_ldmxcsr): Likewise.
23096         (sse_stmxcsr): Likewise.
23097         (*sse_sfence): Likewise.
23098         (sse2_clflush): Likewise.
23099         (*sse2_mfence): Likewise.
23100         (*sse2_lfence): Likewise.
23101         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
23102         (<sse>_movup<ssemodesuffixf2c>): Likewise.
23103         (avx_movdqu<avxmodesuffix>): Likewise.
23104         (avx_lddqu<avxmodesuffix>): Likewise.
23105         (sse2_movntv2di): Change attr "type" to "ssemov".
23106         (sse2_movntsi): Likewise.
23107         (rsqrtv8sf2): Change attr "type" to "sseadd".
23108         (sse3_addsubv2df3): Set attr "atom_unit".
23109         (sse3_h<plusminus_insn>v4sf3): Likewise.
23110         (*sse2_pmaddwd): Likewise.
23111         (*vec_extractv2di_1_rex64): Likewise.
23112         (*vec_extractv2di_1_avx): Likewise.
23113         (sse2_psadbw): Likewise.
23114         (ssse3_phaddwv8hi3): Likewise.
23115         (ssse3_phaddwv4hi3): Likewise.
23116         (ssse3_phadddv4si3): Likewise.
23117         (ssse3_phadddv2si3): Likewise.
23118         (ssse3_phaddswv8hi3): Likewise.
23119         (ssse3_phaddswv4hi3): Likewise.
23120         (ssse3_phsubwv8hi3): Likewise.
23121         (ssse3_phsubwv4hi3): Likewise.
23122         (ssse3_phsubdv4si3): Likewise.
23123         (ssse3_phsubdv2si3): Likewise.
23124         (ssse3_phsubswv8hi3): Likewise.
23125         (ssse3_phsubswv4hi3): Likewise.
23126         (ssse3_pmaddubsw128): Likewise.
23127         (sse3_pmaddubsw: Likewise.
23128         (ssse3_palignrti): Likewise.
23129         (ssse3_palignrdi): Likewise.
23130
23131 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
23132
23133         * doc/install.texi (Specific): Fix two cross-references to MinGW.
23134
23135 2009-04-06  Richard Guenther  <rguenther@suse.de>
23136
23137         PR tree-optimization/28868
23138         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
23139         of which PHI results we inserted.
23140         (insert_into_preds_of_block): Record inserted PHIs.
23141         (eliminate): Eliminate redundant PHI nodes.
23142         (init_pre): Init inserted_phi_names.
23143
23144 2009-04-06  Richard Guenther  <rguenther@suse.de>
23145
23146         PR tree-optimization/39643
23147         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
23148         IMAGPART_EXPRs of complex constants.
23149         (execute_fold_all_builtins): If we folded a call queue
23150         TODO_update_address_taken.
23151
23152 2009-04-06  Jan Hubicka  <jh@suse.cz>
23153
23154         PR middle-end/39659
23155         * except.c (remove_unreachable_regions): Propagate may_contain_throw
23156         flag.
23157
23158 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
23159
23160         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
23161         delay slot.
23162         (ic_invalidate_array): Likewise.
23163
23164 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
23165
23166         * calls.c (emit_library_call_value_1): Fix a problem with parameter
23167         alignment for library calls.
23168
23169 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
23170
23171         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
23172         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
23173         * config/i386/mingw-stdint.h:  New file.
23174
23175 2009-04-05  Richard Guenther  <rguenther@suse.de>
23176
23177         PR tree-optimization/39648
23178         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
23179         our &A vs. &A[0] IL deficiencies.
23180
23181 2009-04-04  Jan Hubicka  <jh@suse.cz>
23182
23183         * except.c (sjlj_find_directly_reachable_regions): Be ready for
23184         removed toplevel regions.
23185         (sjlj_mark_call_sites): Likewise.
23186
23187 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
23188
23189         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
23190         (cygwin tm clause use_gcc_stdint):  Set to wrap.
23191         * config/i386/cygwin-stdint.h:  New file.
23192
23193 2009-04-04  Richard Guenther  <rguenther@suse.de>
23194
23195         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
23196         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
23197         single-argument PHIs if we are in loop-closed SSA form.
23198         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
23199         for the pre-condition.
23200         (slpeel_tree_peel_loop_to_edge): Likewise.
23201         (vect_build_loop_niters): Take an optional sequence to append stmts.
23202         (vect_generate_tmps_on_preheader): Likewise.
23203         (vect_do_peeling_for_loop_bound): Take extra guards for the
23204         pre-condition.
23205         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
23206         the cost model check.
23207         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
23208         guards if we are going to peel.  Do not apply versioning in that case.
23209         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
23210         (vect_do_peeling_for_loop_bound): Likewise.
23211         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
23212         loop bound only record extra pre-conditions, do not apply loop
23213         versioning.
23214
23215 2009-04-04  Richard Guenther  <rguenther@suse.de>
23216
23217         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
23218         renaming code.
23219
23220 2009-04-04  Jan Hubicka  <jh@suse.cz>
23221
23222         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
23223         last_basic_block for size of bb->index indexed array.
23224         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
23225         compute_out, link_btr_uses, build_btr_def_use_webs,
23226         build_btr_def_use_webs, migrate_btr_defs): Likewise.
23227
23228 2009-04-04  Jan Hubicka  <jh@suse.cz>
23229
23230         * except.c (remove_eh_handler_and_replace): Break out from ...
23231         (remove_eh_handler): ... here.
23232         (bring_to_root): New function.
23233         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
23234         handled ones, bring others to root of tree.
23235
23236 2009-04-04  Jan Hubicka  <jh@suse.cz>
23237
23238         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
23239         (all_phis_safe_to_merge): New function.
23240         (update_info): New structure.
23241         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
23242         (cleanup_empty_eh): Update SSA if possible.
23243
23244 2009-04-04  Richard Guenther  <rguenther@suse.de>
23245
23246         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
23247         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
23248         (append_vuse): Likewise.
23249
23250 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
23251
23252         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
23253         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
23254         instead of REG_UNSAVED for DW_CFA_undefined.
23255         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
23256         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
23257         outermost frame.
23258
23259 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
23260
23261         PR target/39501
23262         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
23263
23264 2009-04-04  Richard Guenther  <rguenther@suse.de>
23265
23266         PR tree-optimization/8781
23267         PR tree-optimization/37892
23268         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
23269         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
23270         (valueize_refs): Call it for *& valueizations.
23271         (shared_reference_ops_from_ref): Rename to ...
23272         (valueize_shared_reference_ops_from_ref): ... this and valueize.
23273         (shared_reference_ops_from_call): Rename to ...
23274         (valueize_shared_reference_ops_from_call): ... this and valueize.
23275         (vn_reference_lookup): Update.
23276         (visit_reference_op_call): Likewise.
23277         * tree-ssa-pre.c (phi_translate_1): Fold *&.
23278         (eliminate): Value-replace the call address in call statements.
23279
23280 2009-04-04  Richard Guenther  <rguenther@suse.de>
23281
23282         PR tree-optimization/39636
23283         * tree-ssa-forwprop.c
23284         (forward_propagate_addr_into_variable_array_index): Check for
23285         GIMPLE_ASSIGN before accessing the rhs code.
23286
23287 2009-04-03  Jason Merrill  <jason@redhat.com>
23288
23289         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
23290
23291 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
23292
23293         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
23294         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
23295         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
23296         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
23297         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
23298         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
23299         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
23300         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
23301         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
23302         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
23303         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
23304         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
23305         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
23306         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
23307         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
23308         Use fr_reg_or_fp01_operand instead of fr_register_operand
23309
23310         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
23311         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
23312         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
23313
23314 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
23315
23316         PR rtl-optimization/39607
23317         PR rtl-optimization/39631
23318
23319         Revert:
23320
23321         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
23322         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
23323         instead of DF_LR_OUT.
23324         * ira-lives.c (process_bb_node_lives): Ditto.
23325         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
23326         instead of DF_LR_{OUT,IN}.
23327         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
23328         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
23329
23330 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
23331
23332         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
23333         (execute_lower_omp): Always run but take the short way out if -fopenmp
23334         is not given.
23335         (gate_lower_omp): Remove, forcing the pass manager to always run the
23336         pass and always set PROP_gimple_lomp.
23337         (pass_lower_omp): Remove gate function.
23338         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
23339         PROP_trees.  Instead, require it.
23340         * ipa-cp.c (pass_ipa_cp): Likewise.
23341         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
23342         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
23343         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
23344         and PROP_gimple_leh.
23345
23346 2009-04-03  Richard Guenther  <rguenther@suse.de>
23347
23348         PR middle-end/13146
23349         PR tree-optimization/23940
23350         PR tree-optimization/33237
23351         PR middle-end/33974
23352         PR middle-end/34093
23353         PR tree-optimization/36201
23354         PR tree-optimization/36230
23355         PR tree-optimization/38049
23356         PR tree-optimization/38207
23357         PR tree-optimization/38230
23358         PR tree-optimization/38301
23359         PR tree-optimization/38585
23360         PR middle-end/38895
23361         PR tree-optimization/38985
23362         PR tree-optimization/39299
23363         * tree-ssa-structalias.h: Remove.
23364         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
23365         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
23366         (struct vuse_element_d): Remove.
23367         (struct vuse_vec_d): Likewise.
23368         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
23369         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
23370         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
23371         VUSE_ELEMENT_VAR): Likewise.
23372         (struct voptype_d): Likewise.
23373         (NUM_VOP_FREE_BUCKETS): Likewise.
23374         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
23375         (struct stmt_operands_d): Remove.
23376         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
23377         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
23378         VDEF_NUM, VDEF_VECT): Likewise.
23379         (copy_virtual_operands): Remove.
23380         (operand_build_cmp): Likewise.
23381         (create_ssa_artificial_load_stmt): Likewise.
23382         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
23383         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
23384         vuse_index and mayuse_index members.  Pack and move done and iter_type
23385         members to the front.
23386         (SSA_OP_VMAYUSE): Remove.
23387         (SSA_OP_VIRTUAL_USES): Adjust.
23388         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
23389         (unlink_stmt_vdef): Declare.
23390         (add_to_addressable_set): Remove.
23391         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
23392         (vrp_visit_stmt): Likewise.
23393         * doc/tree-ssa.texi (Alias analysis): Update.
23394         * doc/invoke.texi (max-aliased-vops): Remove docs.
23395         (avg-aliased-vops): Likewise.
23396         * tree-into-ssa.c (syms_to_rename): Remove.
23397         (need_to_update_vops_p): Likewise.
23398         (need_to_initialize_update_ssa_p): Rename to ...
23399         (update_ssa_initialized_fn): ... this.  Track function we are
23400         initialized for.
23401         (symbol_marked_for_renaming): Simplify.
23402         (add_new_name_mapping): Do not set need_to_update_vops_p.
23403         (dump_currdefs): Use SYMS_TO_RENAME.
23404         (rewrite_update_stmt): Always walk all uses/defs.
23405         (dump_update_ssa): Adjust.
23406         (init_update_ssa): Take function argument.  Track what we are
23407         initialized for.
23408         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
23409         (create_new_def_for): Initialize for cfun, assert we are initialized
23410         for cfun.
23411         (mark_sym_for_renaming): Simplify.
23412         (mark_set_for_renaming): Do not initialize update-ssa.
23413         (need_ssa_update_p): Simplify.  Take function argument.
23414         (name_mappings_registered_p): Assert we ask for the correct function.
23415         (name_registered_for_update_p): Likewise.
23416         (ssa_names_to_replace): Likewise.
23417         (release_ssa_name_after_update_ssa): Likewise.
23418         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
23419         (dump_decl_set): Do not print a newline.
23420         (debug_decl_set): Do it here.
23421         (dump_update_ssa): And here.
23422         * tree-ssa-loop-im.c (move_computations): Adjust.
23423         (movement_possibility): Likewise.
23424         (determine_max_movement): Likewise.
23425         (gather_mem_refs_stmt): Likewise.
23426         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
23427         or NAME_MEMORY_TAG.
23428         * tree-complex.c (update_all_vops): Remove.
23429         (expand_complex_move): Adjust.
23430         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
23431         Simplify test for memory referencing statement.  Exclude
23432         non-invariant ADDR_EXPRs.
23433         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
23434         * tree-loop-distribution.c (generate_memset_zero): Adjust.
23435         (rdg_flag_uses): Likewise.
23436         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
23437         related code.
23438         (tree_optimize_tail_calls_1): Also split the
23439         edge from the entry block if we have degenerate PHI nodes in
23440         the first basic block.
23441         * tree.c (init_ttree): Remove memory-tag related code.
23442         (tree_code_size): Likewise.
23443         (tree_node_structure): Likewise.
23444         (build7_stat): Re-write to be build6_stat.
23445         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
23446         (SSA_VAR_P): Adjust.
23447         (struct tree_memory_tag): Remove.
23448         (struct tree_memory_partition_tag): Likewise.
23449         (union tree_node): Adjust.
23450         (build7): Re-write to be build6.
23451         * tree-pass.h (pass_reset_cc_flags): Remove.
23452         (TODO_update_address_taken): New flag.
23453         (pass_simple_dse): Remove.
23454         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
23455         * params.h (MAX_ALIASED_VOPS): Remove.
23456         (AVG_ALIASED_VOPS): Likewise.
23457         * omp-low.c (expand_omp_taskreg): Update SSA form.
23458         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
23459         aliases the lhs in a copy stmt.
23460         * tree-ssa-dse.c (struct address_walk_data): Remove.
23461         (memory_ssa_name_same): Likewise.
23462         (memory_address_same): Likewise.
23463         (get_kill_of_stmt_lhs): Likewise.
23464         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
23465         unused stores.  Look through PHI nodes into post-dominated regions.
23466         (dse_optimize_stmt): Simplify.  Properly remove stores.
23467         (tree_ssa_dse): Compute dominators.
23468         (execute_simple_dse): Remove.
23469         (pass_simple_dse): Likewise.
23470         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
23471         gimple_loaded_syms and gimple_stored_syms computation.
23472         * toplev.c (dump_memory_report): Dump alias and pta stats.
23473         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
23474         (vn_reference_eq): Likewise.
23475         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
23476         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
23477         valueize_vuses): Remove.
23478         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
23479         (get_def_ref_stmt_vuse): ... this.
23480         (vn_reference_lookup_2): New function.
23481         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
23482         walking equivalent vuses.  Simplify.
23483         (vn_reference_lookup): Likewise.
23484         (vn_reference_insert): Likewise.
23485         (vn_reference_insert_pieces): Likewise.
23486         (visit_reference_op_call): Simplify.
23487         (visit_reference_op_load): Likewise.
23488         (visit_reference_op_store): Likewise.
23489         (init_scc_vn): Remove shared_lookup_vuses initialization.
23490         (free_scc_vn): Remove shared_lookup_vuses freeing.
23491         (sort_vuses, sort_vuses_heap): Remove.
23492         (get_ref_from_reference_ops): Export.
23493         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
23494         vector with single vuse pointer.
23495         (vn_reference_lookup_pieces, vn_reference_lookup,
23496         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
23497         (shared_vuses_from_stmt): Remove.
23498         (get_ref_from_reference_ops): Declare.
23499         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
23500         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
23501         memory-tag related code.
23502         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
23503         (likely_value): Add comment, skip static-chain of call statements.
23504         (surely_varying_stmt_p): Adjust.
23505         (gimplify_and_update_call_from_tree): Likewise.
23506         (execute_fold_all_builtins): Do not rebuild alias info.
23507         (gimplify_and_update_call_from_tree): Properly update VOPs.
23508         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
23509         (copy_ref_info): Remove memory-tag related code.
23510         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
23511         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
23512         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
23513         computation.
23514         * tree-ssa-dom.c (gimple_p): Remove typedef.
23515         (eliminate_redundant_computations): Adjust.
23516         (record_equivalences_from_stmt): Likewise.
23517         (avail_expr_hash): Likewise.
23518         (avail_expr_eq): Likewise.
23519         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
23520         (stmt_makes_single_load): Likewise.
23521         (stmt_makes_single_store): Likewise.
23522         * tree-ssa-alias.c: Rewrite completely.
23523         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
23524         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
23525         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
23526         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
23527         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
23528         Remove public functions.
23529         (pass_reset_cc_flags): Remove.
23530         (pass_build_alias): Move ...
23531         * tree-ssa-structalias.c (pass_build_alias): ... here.
23532         * tree-ssa-alias.c (may_be_aliased): Move ...
23533         * tree-flow-inline.h (may_be_aliased): ... here.
23534         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
23535         count_uses_and_derefs): Move ...
23536         * gimple.c: ... here.
23537         * gimple.h (count_uses_and_derefs): Declare.
23538         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
23539         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
23540         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
23541         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
23542         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
23543         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
23544         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
23545         New functions.
23546         * tree-dfa.c (refs_may_alias_p): Move ...
23547         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
23548         * tree-ssa-alias.h: New file.
23549         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
23550         (statement_sink_location): Likewise.
23551         * opts.c (decode_options): Do not adjust max-aliased-vops or
23552         avg-aliased-vops values.
23553         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
23554         (TV_CALL_CLOBBER): Likewise.
23555         (TV_FLOW_SENSITIVE): Likewise.
23556         (TV_FLOW_INSENSITIVE): Likewise.
23557         (TV_MEMORY_PARTITIONING): Likewise.
23558         (TV_ALIAS_STMT_WALK): New timevar.
23559         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
23560         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
23561         (get_address_description): Remove memory-tag related code.
23562         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
23563         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
23564         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
23565         and immediate uses in statements.  Document.
23566         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
23567         (dump_symbols): Remove.
23568         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
23569         * alias.c (get_deref_alias_set): New function split out from ...
23570         (get_alias_set): ... here.
23571         * alias.h (get_deref_alias_set): Declare.
23572         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
23573         type parameter.  Remove restrict pointer handling.  Create a
23574         ref-all pointer in case type-based alias sets do not conflict.
23575         (vect_analyze_data_refs): Remove SMT related code.
23576         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
23577         (vectorizable_load): Likewise.
23578         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
23579         (DR_SYMBOL_TAG, DR_VOPS): Remove.
23580         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
23581         Ignore vops and SMTs.
23582         (dr_analyze_alias): Likewise..
23583         (free_data_ref): Likewise.
23584         (create_data_ref): Likewise.
23585         (analyze_all_data_dependences): Likewise.
23586         (get_references_in_stmt): Adjust.
23587         * tree-flow-inline.h (gimple_aliases_computed_p,
23588         gimple_addressable_vars, gimple_call_clobbered_vars,
23589         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
23590         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
23591         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
23592         gimple_mem_ref_stats): Remove.
23593         (gimple_vop): New function.
23594         (op_iter_next_use): Remove vuses and mayuses cases.
23595         (op_iter_next_def): Remove vdefs case.
23596         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
23597         (clear_and_done_ssa_iter): Do not set removed fields.
23598         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
23599         Assert we are not iterating over vuses or vdefs if not also
23600         iterating over uses or defs.
23601         (op_iter_init_use): Likewise.
23602         (op_iter_init_def): Likewise.
23603         (op_iter_next_vdef): Remove.
23604         (op_iter_next_mustdef): Likewise.
23605         (op_iter_init_vdef): Likewise.
23606         (compare_ssa_operands_equal): Likewise.
23607         (link_use_stmts_after): Handle vuse operand.
23608         (is_call_used): Use is_call_clobbered.
23609         (is_call_clobbered): Global variables are always call clobbered,
23610         query the call-clobbers bitmap.
23611         (mark_call_clobbered): Ignore global variables.
23612         (clear_call_clobbered): Likewise.
23613         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
23614         virtual operands sanity check.
23615         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
23616         Remove.
23617         (TARGET_MEM_REF): Remove TMR_TAG operand.
23618         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
23619         Remove call-clobber related code.
23620         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
23621         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
23622         partitions or escape reason.
23623         (get_single_def_stmt, get_single_def_stmt_from_phi,
23624         get_single_def_stmt_with_phi): Remove.
23625         (dump_referenced_vars): Tidy.
23626         (get_ref_base_and_extent): Allow bare decls.
23627         (collect_dfa_stats): Adjust.
23628         * graphite.c (rename_variables_in_stmt): Adjust.
23629         (graphite_copy_stmts_from_block): Likewise.
23630         (translate_clast): Likewise.
23631         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
23632         (EXPR_DIES): New.
23633         (translate_vuse_through_block): Use the oracle.
23634         (phi_translate_1): Adjust.
23635         (value_dies_in_block_x): Use the oracle.  Cache the outcome
23636         in EXPR_DIES.
23637         (valid_in_sets): Check if the VUSE for
23638         a REFERENCE is available.
23639         (eliminate): Do not remove stmts during elimination,
23640         instead queue and remove them afterwards.
23641         (do_pre): Do not rebuild alias info.
23642         (pass_pre): Run TODO_rebuild_alias before PRE.
23643         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
23644         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
23645         (mark_all_v_defs_stmt): Remove.
23646         (mark_all_v_defs_seq): Adjust.
23647         (sra_replace): Likewise.
23648         (scalarize_use): Likewise.
23649         (scalarize_copy): Likewise.
23650         (scalarize_init): Likewise.
23651         (scalarize_ldst): Likewise.
23652         (todoflags): Remove.
23653         (tree_sra): Do not rebuild alias info.
23654         (tree_sra_early): Adjust.
23655         (pass_sra): Run TODO_update_address_taken before SRA.
23656         * tree-predcom.c (set_alias_info): Remove.
23657         (prepare_initializers_chain): Do not call it.
23658         (mark_virtual_ops_for_renaming): Adjust.
23659         (mark_virtual_ops_for_renaming_list): Remove.
23660         (initialize_root_vars): Adjust.
23661         (initialize_root_vars_lm): Likewise.
23662         (prepare_initializers_chain): Likewise.
23663         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
23664         (may_propagate_copy_into_stmt): Likewise.
23665         (merge_alias_info): Do nothing for now.
23666         (propagate_tree_value_into_stmt): Adjust.
23667         (stmt_may_generate_copy): Likewise.
23668         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
23669         not mark symbols for renaming.
23670         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
23671         with the same statement, make sure to update the new pointed-to one.
23672         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
23673         call statements, do not mark symbols for renaming.
23674         (mark_operand_necessary): Dump something.
23675         (ref_may_be_aliased): New function.
23676         (mark_aliased_reaching_defs_necessary_1): New helper function.
23677         (mark_aliased_reaching_defs_necessary): Likewise.
23678         (mark_all_reaching_defs_necessary_1): Likewise.
23679         (mark_all_reaching_defs_necessary): Likewise.
23680         (propagate_necessity): Do not process virtual PHIs.  For
23681         non-aliased loads mark all reaching definitions as necessary.
23682         For aliased loads and stores mark the immediate dominating
23683         aliased clobbers as necessary.
23684         (visited): New global static.
23685         (perform_tree_ssa_dce): Free visited bitmap after propagating
23686         necessity.
23687         (remove_dead_phis): Perform simple dead virtual PHI removal.
23688         (remove_dead_stmt): Properly unlink virtual operands when
23689         removing stores.
23690         (eliminate_unnecessary_stmts): Schedule PHI removal after
23691         stmt removal.
23692         * tree-ssa-ter.c (is_replaceable_p): Adjust.
23693         (process_replaceable): Likewise.
23694         (find_replaceable_in_bb): Likewise.
23695         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
23696         based on the single gimple vop.
23697         (verify_flow_insensitive_alias_info): Remove.
23698         (verify_flow_sensitive_alias_info): Likewise.
23699         (verify_call_clobbering): Likewise.
23700         (verify_memory_partitions): Likewise.
23701         (verify_alias_info): Likewise.
23702         (verify_ssa): Adjust..
23703         (execute_update_addresses_taken): Export.  Update SSA
23704         manually.  Optimize only when optimizing.  Use a local bitmap.
23705         (pass_update_address_taken): Remove TODO_update_ssa, add
23706         TODO_dump_func.
23707         (pass_update_address_taken): Just use TODO_update_address_taken.
23708         (init_tree_ssa): Do not initialize addressable_vars.
23709         (verify_ssa): Verify new VUSE / VDEF properties.
23710         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
23711         Do not call verify_alias_info.
23712         (delete_tree_ssa): Clear the VUSE, VDEF operands.
23713         Do not free the loaded and stored syms bitmaps.  Reset the escaped
23714         and callused solutions.  Do not free addressable_vars.
23715         Remove memory-tag related code.
23716         (warn_uninitialized_var): Aliases are always available.
23717         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
23718         * lambda-code.c (can_put_in_inner_loop): Adjust.
23719         (can_put_after_inner_loop): Likewise.
23720         (perfect_nestify): Likewise.
23721         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
23722         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
23723         (vectorizable_conversion): Do not mark symbols for renaming.
23724         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
23725         (expand_call_inline): Unlink the calls virtual operands before
23726         replacing it.
23727         (tree_function_versioning): Do not call update_ssa if we are not
23728         updating clones.  Simplify.
23729         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
23730         (propagate_with_phi): Likewise..
23731         * tree-outof-ssa.c (create_temp): Remove memory tag and call
23732         clobber code.  Assert we are not aliased or global.
23733         * tree-flow.h: Include tree-ssa-alias.h
23734         (enum escape_type): Remove.
23735         (struct mem_sym_stats_d): Likewise.
23736         (struct mem_ref_stats_d): Likewise.
23737         (struct gimple_df): Add vop member.  Remove global_var,
23738         call_clobbered_vars, call_used_vars, addressable_vars,
23739         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
23740         escaped and callused members.
23741         (struct ptr_info_def): Remove all members, add points-to solution
23742         member pt.
23743         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
23744         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
23745         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
23746         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
23747         (tree-ssa-alias.o): Likewise.
23748         (toplev.o): Add tree-ssa-alias.h
23749         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
23750         * gimple.c (gimple_set_bb): Fix off-by-one error.
23751         (is_gimple_reg): Do not handle memory tags.
23752         (gimple_copy): Also copy virtual operands.
23753         Delay updating the statement.  Do not reset loaded and stored syms.
23754         (gimple_set_stored_syms): Remove.
23755         (gimple_set_loaded_syms): Likewise.
23756         (gimple_call_copy_skip_args): Copy the virtual operands
23757         and mark the new statement modified.
23758         * tree-ssa-structalias.c (may_alias_p): Remove.
23759         (set_uids_in_ptset): Take the alias set to prune with as
23760         parameter.  Fold in the alias test of may_alias_p.
23761         (compute_points_to_sets): Compute whether a ptr is dereferenced
23762         in a local sbitmap.
23763         (process_constraint): Deal with &ANYTHING on the lhs, reject all
23764         other ADDRESSOF constraints on the lhs.
23765         (get_constraint_for_component_ref): Assert that we don't get
23766         ADDRESSOF constraints from the base of the reference.
23767         Properly generate UNKNOWN_OFFSET for DEREF if needed.
23768         (struct variable_info): Remove collapsed_to member.
23769         (get_varinfo_fc): Remove.
23770         (new_var_info): Do not set collapsed_to.
23771         (dump_constraint): Do not follow cycles.
23772         (dump_constraint_graph): Likewise.
23773         (build_pred_graph): Likewise.
23774         (build_succ_graph): Likewise.
23775         (rewrite_constraints): Likewise.
23776         (do_simple_structure_copy): Remove.
23777         (do_rhs_deref_structure_copy): Remove.
23778         (do_lhs_deref_structure_copy): Remove.
23779         (collapse_rest_of_var): Remove.
23780         (do_structure_copy): Re-implement.
23781         (pta_stats): New global variable.
23782         (dump_pta_stats): New function.
23783         (struct constraint_expr): Make offset signed.
23784         (UNKNOWN_OFFSET): Define special value.
23785         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
23786         (solution_set_expand): New helper function split out from ...
23787         (do_sd_constraint): ... here.
23788         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
23789         (do_ds_constraint): Likewise.
23790         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
23791         and CALLUSED = *CALLUSED.
23792         (set_union_with_increment): Make inc argument signed.
23793         (type_safe): Remove.
23794         (get_constraint_for_ptr_offset): Handle unknown and negative
23795         constant offsets.
23796         (first_vi_for_offset): Handle offsets before start.  Bail
23797         out early for offsets beyond the variable extent.
23798         (first_or_preceding_vi_for_offset): New function.
23799         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
23800         Together with ESCAPED = *ESCAPED this properly computes reachability.
23801         (find_what_var_points_to): New function.
23802         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
23803         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
23804         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
23805         pt_solutions_intersect): New functions.
23806         (compute_call_used_vars): Remove.
23807         (compute_may_aliases): New main entry into PTA computation.
23808         * gimple.h (gimple_p): New typedef.
23809         (struct gimple_statement_base): Remove references_memory_p.
23810         (struct gimple_statement_with_memory_ops_base): Remove
23811         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
23812         members.
23813         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
23814         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
23815         gimple_set_references_memory): Remove.
23816         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
23817         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
23818         New functions.
23819         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
23820         (verify_expr): Allow RESULT_DECL.
23821         (gimple_duplicate_bb): Do not copy virtual operands.
23822         (gimple_duplicate_sese_region): Adjust.
23823         (gimple_duplicate_sese_tail): Likewise.
23824         (mark_virtual_ops_in_region): Remove.
23825         (move_sese_region_to_fn): Do not call it.
23826         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
23827         and pass_simple_dse.
23828         (execute_function_todo): Handle TODO_update_address_taken,
23829         call execute_update_addresses_taken for TODO_rebuild_alias.
23830         (execute_todo): Adjust.
23831         (execute_one_pass): Init dump files early.
23832         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
23833         call-clobbered.
23834         (create_general_new_stmt): Clear vops.
23835         * tree-ssa-reassoc.c (get_rank): Adjust.
23836         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
23837         symbols for renaming.
23838         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
23839         (PARAM_AVG_ALIASED_VOPS): Likewise.
23840         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
23841         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
23842         * tree-ssa-operands.c: Simplify for new virtual operand representation.
23843         (operand_build_cmp, copy_virtual_operands,
23844         create_ssa_artificial_load_stmt, add_to_addressable_set,
23845         gimple_add_to_addresses_taken): Remove public functions.
23846         (unlink_stmt_vdef): New function.
23847
23848 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
23849
23850         * config.gcc (powerpc-*-linux*): Merge variants.
23851
23852 2009-04-02  Chao-ying Fu  <fu@mips.com>
23853             James Grosbach  <james.grosbach@microchip.com>
23854
23855         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
23856         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
23857         cop0_sp_offset.
23858         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
23859         keep_interrupts_masked_p, use_debug_exception_return_p.
23860         (mips_attribute_table): Add interrupt, use_shadow_register_set,
23861         keep_interrupts_masked, use_debug_exception_return.
23862         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
23863         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
23864         New functions.
23865         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
23866         (mips_print_operand): Process COP0 registers to print $0 .. $31
23867         correctly for GAS to process.
23868         (mips_interrupt_extra_call_saved_reg_p): New function.
23869         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
23870         extra registers.
23871         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
23872         (mips_compute_frame_info): Add supports for interrupt context that
23873         includes doubleword accumulators and COP0 registers.
23874         (mips_for_each_saved_acc): New function.
23875         (mips_for_each_saved_gpr_and_fpr): Change the function name from
23876         mips_for_each_saved_reg.
23877         (mips_save_reg): Save accumulators.
23878         (mips_kernel_reg_p): A new for_each_rtx callback.
23879         (mips_expand_prologue): Support interrupt handlers.
23880         (mips_restore_reg): Restore accumulators.
23881         (mips_expand_epilogue): Support interrupt handlers.
23882         (mips_can_use_return_insn): Return false for interrupt handlers.
23883         (mips_epilogue_uses): New function.
23884         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
23885         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
23886         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
23887         cop0_move): New instructions.
23888         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
23889         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
23890         defines.
23891         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
23892         New defines.
23893         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
23894         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
23895         interrupt handlers, we use K0 as the temporary register.
23896         (EPILOGUE_USES): Change to a function call.
23897         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
23898         handlers, we use K0 as the temporary register.
23899
23900         * doc/extend.texi (Function Attributes): Document interrupt,
23901         use_shadow_register_set, keep_interrupts_masked,
23902         use_debug_exception_return for MIPS attributes.
23903
23904 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
23905
23906         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
23907         Remove a number of t-files from tmake_file.
23908         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
23909         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
23910         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
23911         target_prototype, not TARGET_PROTOTYPE.
23912         (LINK_OS_GNU_SPEC): Define.
23913         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
23914         and darwin-ldoubdle.c.
23915
23916 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
23917
23918         PR driver/39293
23919         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
23920         (cpp_options): Ditto.
23921         (default_compilers): Ditto.
23922         (display_help): Ditto.
23923         (process_command): Ditto.
23924         (do_spec_1): Ditto.
23925         (set_input): Use lbasename instead of duplicate code.
23926         (save_temps_prefix): New static for -save-temps=obj.
23927         (save_temps_length): Ditto.
23928
23929         * doc/invoke.texi (-save-temps=obj): Document new variant to
23930         -save-temps switch.
23931
23932 2009-04-02  Jeff Law  <law@redhat.com>
23933
23934         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
23935         variable.
23936
23937 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
23938
23939         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
23940         * configure: Regenerated.
23941
23942 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
23943
23944         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
23945         share the argument list.
23946
23947 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
23948
23949         Merge
23950
23951         2009-02-12  Diego Novillo  <dnovillo@google.com>
23952
23953         * varpool.c (debug_varpool): New.
23954         * cgraph.h (debug_varpool): Declare.
23955
23956 2009-04-02  Jan Hubicka  <jh@suse.cz>
23957
23958         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
23959         pass.
23960
23961 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
23962
23963         * config/i386/i386.c (ix86_abi): Move initialization to ...
23964         (override_options): Here.
23965
23966 2009-04-02  Christian Bruel  <christian.bruel@st.com>
23967
23968         * config/sh/sh.c (sh_dwarf_register_span): New function.
23969         (TARGET_DWARF_REGISTER_SPAN): Define.
23970         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
23971
23972 2009-04-02  Ira Rosen  <irar@il.ibm.com>
23973
23974         PR tree-optimization/39595
23975         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
23976         interleaved loads group is not  greater than the SLP group size.
23977
23978 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
23979
23980         * builtins.c (is_builtin_name): New.
23981         (called_as_built_in): Use is_builtin_name.
23982         * tree.h (is_builtin_name): New.
23983         * varasm.c (incorporeal_function_p): Use is_builtin_name
23984
23985 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
23986
23987         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
23988
23989 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
23990
23991         PR c++/26693
23992         * c-decl.c (clone_underlying_type): Move this ...
23993         * c-common.c (set_underlying_type): ... here.
23994         Also, make sure the function properly sets TYPE_STUB_DECL() on
23995         the newly created typedef variant type.
23996         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
23997         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
23998         points.
23999
24000 2009-04-02  Richard Guenther  <rguenther@suse.de>
24001
24002         PR tree-optimization/37221
24003         * tree-flow.h (degenerate_phi_result): Declare.
24004         * tree-ssa-dom.c (degenerate_phi_result): Export.
24005         * tree-scalar-evolution.c (analyze_initial_condition): If
24006         the initial condition is defined by a degenerate PHI node
24007         use the degenerate value.
24008
24009 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
24010
24011         PR rtl-optimization/39588
24012         * combine.c (merge_outer_ops): Do not set the constant when this
24013         is not necessary.
24014         (simplify_shift_const_1): Do not modify it either in this case.
24015
24016 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
24017
24018         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
24019         tuning is deprecated if -mtune value is set to an Itanium1 variant.
24020
24021 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
24022
24023         PR c/29027
24024         * c-lex.c (interpret_float): Default (no suffix) is double.
24025
24026 2009-04-1  Xinliang David Li  <davidxl@google.com>
24027
24028         * config/i386/i386.c (legitimate_constant_p): Recognize
24029         all one vector constant.
24030
24031 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24032
24033         * config/vax/vax.c: Add #includes to silence warnings.
24034         Change #include order to silence two warnings.
24035
24036 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24037
24038         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
24039         (ASM_SPEC): Pass -k to the assembler for PIC code.
24040
24041 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24042
24043         * config.gcc: Add vax-*-linux* to the switch.
24044         * config/vax/linux.h: New file. (TARGET_VERSION,
24045         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
24046
24047 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24048
24049         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
24050         Use predicate macros instead of GET_CODE() == foo.
24051         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
24052         ashlsi3, rotrsi3, <unnamed>): Likewise.
24053
24054 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24055
24056         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
24057         jbbccihi, jbbccisi): Remova trailing whitespace.
24058         * config/vax/constraints.md: Likewise.
24059         * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
24060         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
24061         * config/vax/predicates.md: Likewise.
24062         * config/vax/vax.c (print_operand_address, vax_output_int_move,
24063         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
24064         * config/vax/vax.h: Likewise.
24065         * config/vax/vax.md (nonlocal_goto): Likewise.
24066
24067 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24068
24069         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
24070         (indirectable_address_p, adjacent_operands_p): Add spaces around
24071         braces.
24072         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
24073
24074 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24075
24076         * config/vax/vax.c (legitimate_constant_address_p,
24077         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
24078         index_term_p, reg_plus_index_p, legitimate_address_p,
24079         vax_mode_dependent_address_p): Update comments to match functions
24080         modified by the recent int->bool conversion.
24081
24082 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24083
24084         * config/vax/builtins.md: Update copyright message.
24085         * config/vax/constraints.md: Likewise.
24086         * config/vax/netbsd-elf.h: Likewise.
24087         * config/vax/predicates.md: Likewise.
24088         * config/vax/vax-protos.h: Likewise.
24089         * config/vax/vax.c: Likewise.
24090         * config/vax/vax.h: Likewise.
24091         * config/vax/vax.md: Likewise.
24092         * config/vax/vax.opt: Likewise.
24093
24094 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24095
24096         * config/vax/builtins.md (ffssi2, ffssi2_internal,
24097         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
24098         * config/vax/constraints.md (B, R): Likewise.
24099         * config/vax/predicates.md (external_memory_operand,
24100         nonimmediate_addsub_di_operand): Likewise.
24101         * config/vax/vax.c (vax_output_int_add): Likewise.
24102         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
24103         untyped_call): Likewise.
24104
24105 2009-04-01  Matt Thomas  <matt@3am-software.com>
24106
24107         * config/vax/predicates.md: New file.
24108         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
24109         external_const_operand, nonsymbolic_operand, external_memory_operand,
24110         indirect_memory_operand, indexed_memory_operand,
24111         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
24112         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
24113         predicate.
24114         * config/vax/constraints.md: New file.
24115         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
24116         New constraint.
24117         * config/vax/builtins.md: New file.
24118         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
24119         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
24120         jbbccisi): Define.
24121         * config/vax/vax.opt (mqmath): Add option.
24122         * config/vax/vax.md (isfx): Extend with DI.
24123         (VAXintQH, VAXintQHSD): Define.
24124         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
24125         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
24126         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
24127         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
24128         (movdi): Update constraints and use vax_output_int_move().
24129         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
24130         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
24131         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
24132         nonlocal_goto): New.
24133         (mov<mode>): Extend accepted operand types.
24134         (subdi3_old): Rename from subdi3, change update constraints and use
24135         a new implementation.
24136         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
24137         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
24138         MOVE_RATIO, CLEAR_RATIO): Define.
24139         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
24140         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
24141         (PRINT_OPERAND): Redefine using a function instead of inlined code.
24142         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
24143         (split_quadword_operands): Make static and really allow variable
24144         splitting.
24145         (print_operand_address): Update for PIC generation.
24146         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
24147         indexable_address_p, fixup_mathdi_operand,
24148         vax_expand_addsub_di_operands, adjacent_operands_p): New.
24149         (vax_float_literal, legitimate_constant_p,
24150         indirectable_constant_address_p, index_term_p,
24151         reg_plus_index_p): Return bool instead of int.
24152         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
24153         where needed.
24154         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
24155         generation.
24156         (vax_output_conditional_branch): Indent.
24157         (legitimate_constant_address_p, indirectable_constant_address_p,
24158         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
24159         vax_mode_dependent_address_p): Return bool instead of int, update for
24160         PIC generation.
24161         * config/vax/vax-protos.h (legitimate_constant_address_p,
24162         legitimate_constant_p, legitimate_address_p,
24163         vax_mode_dependent_address_p): Change declaration to bool.
24164         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
24165         vax_expand_addsub_di_operands, vax_output_int_subtract,
24166         vax_output_movmemsi): Declare.
24167         (split_quadword_operands, vax_float_literal): Delete declaration.
24168         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
24169         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
24170         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
24171         ASM_OUTPUT_DWARF_PCREL): Define.
24172         (ASM_SPEC): Change definition to allow PIC generation.
24173
24174 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
24175
24176         * doc/sourcebuild.texi: Update front-end requirements.
24177
24178 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
24179
24180         PR target/39226
24181         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
24182         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
24183         (booldi3_internal3): Use boolean_or_operator instead of
24184         boolean_operator.
24185
24186 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
24187
24188         PR c/39605
24189         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
24190         declarator whose size is not an integer constant expression but
24191         folds to an integer constant, then treat it as a constant
24192         subsequently.
24193
24194 2009-04-01  Richard Guenther  <rguenther@suse.de>
24195
24196         * fold-const.c (fold_plusminus_mult_expr): Do not fold
24197         i * 4 + 2 to (i * 2 + 1) * 2.
24198
24199 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
24200
24201         PR c/37772
24202         * c-parser.c (c_parser_asm_statement): Skip until close paren and
24203         return if c_parser_asm_string_literal returned NULL.
24204
24205 2009-04-01  Nick Clifton  <nickc@redhat.com>
24206
24207         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
24208         already defined.
24209         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
24210         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
24211         other typedefs to avoid conflicts with libgcc2.c.  Define labels
24212         to gain 16-bit bit-manipulation functions from libgcc2.c and then
24213         include it.
24214         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
24215         to gain 16-bit trapping arithmetic functions from libgcc2.c and
24216         then include it.
24217
24218 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
24219
24220         * varasm.c (default_function_rodata_section): Declare DOT as
24221         const char*.
24222
24223 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
24224             Andrey Galkin  <agalkin@hypercom.com>
24225
24226         PR/39492
24227         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
24228         Make object_name unique for each process.
24229
24230 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
24231
24232         PR other/39591
24233         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
24234         addressable variables in the parallel that could go out of scope while
24235         running queued tasks.
24236
24237 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
24238
24239         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
24240         (CASE_VALUES_THRESHOLD): Redefine.
24241         * config/avr/avr.c (avr_override_options): Remove initialization of
24242         avr_case_values_threshold variable.
24243         (avr_case_values_threshold): Remove variable. Add new function.
24244         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
24245         * config/avr/avr.opt (mno-tablejump): Remove option.
24246         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
24247
24248 2009-04-01  DJ Delorie  <dj@redhat.com>
24249
24250         * varasm.c (default_function_rodata_section): Don't assume
24251         anything about where the first '.' in the section name is.
24252
24253 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
24254
24255         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
24256         rs6000_emit_stack_tie.
24257
24258 2009-03-31  Ian Lance Taylor  <iant@google.com>
24259
24260         * tree-eh.c (tree_remove_unreachable_handlers): Compare
24261         gimple_code with GIMPLE_RESX, not RESX.
24262
24263 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
24264
24265         * c-common.c (c_get_ident): New.
24266         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
24267
24268 2009-04-01  Ben Elliston  <bje@au.ibm.com>
24269
24270         * config/rs6000/sysv4.opt (msdata): Improve option description.
24271
24272 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
24273
24274         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
24275         (divdf3_internal_lat): Remove.
24276         (divxf3_internal_lat): Remove.
24277         (divxf3_internal_thr): Remove.
24278         (divxf): Use divxf3_internal.
24279         * config/ia64/div.md (divsf3_internal_lat): New.
24280         (divdf3_internal_lat): New.
24281         (divxf3_internal): New.
24282
24283 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
24284
24285         PR c/448
24286         * Makefile.in (USE_GCC_STDINT): Define.
24287         (stmp-int-hdrs): Install stdint.h if applicable.
24288         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
24289         if known.
24290         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
24291         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
24292         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
24293         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24294         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24295         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24296         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24297         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24298         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
24299         (c_common_nodes_and_builtins): Initialize
24300         underlying_wchar_type_node.  Do not initialize
24301         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
24302         nodes for new types.
24303         (c_stddef_cpp_builtins): Define macros for new types.
24304         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
24305         Remove.
24306         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
24307         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
24308         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
24309         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
24310         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
24311         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
24312         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
24313         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
24314         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
24315         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
24316         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
24317         int16_type_node, int32_type_node, int64_type_node,
24318         uint8_type_node, uint16_type_node, c_uint32_type_node,
24319         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
24320         int_least32_type_node, int_least64_type_node,
24321         uint_least8_type_node, uint_least16_type_node,
24322         uint_least32_type_node, uint_least64_type_node,
24323         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
24324         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
24325         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
24326         uintptr_type_node): Define.
24327         * c-cppbuiltin.c (builtin_define_constants,
24328         builtin_define_type_minmax): New.
24329         (builtin_define_stdint_macros): Define more macros.
24330         (c_cpp_builtins): Define more limit macros.
24331         (type_suffix): New.
24332         (builtin_define_type_max): Define in terms of
24333         builtin_define_type_minmax.  Remove is_long parameter.  All
24334         callers changed.
24335         * config.gcc (use_gcc_stdint): Define.
24336         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
24337         Add newlib-stdint.h for generic targets.
24338         * config/glibc-stdint.h, config/newlib-stdint.h,
24339         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
24340         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
24341         * config/score/score.h (UINTPTR_TYPE): Define.
24342         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
24343         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
24344         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24345         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24346         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24347         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24348         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24349         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
24350         * config/spu/spu.h (STDINT_LONG32): Define.
24351         * configure.ac (use_gcc_stdint): Substitute.
24352         * configure: Regenerate.
24353         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
24354         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
24355         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
24356         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
24357         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
24358         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
24359         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
24360         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
24361         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
24362         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
24363         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
24364         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
24365         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
24366         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
24367         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
24368         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
24369         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
24370         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
24371         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
24372         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
24373         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
24374         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
24375         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
24376         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24377         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24378         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24379         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24380         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24381         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
24382
24383 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
24384
24385         * loop-iv.c (suitable_set_for_replacement): Renamed from
24386         simplify_using_assignment; changed to return bool and to accept new
24387         args DEST and SRC.  Return true iff we find a source/destination pair
24388         that can be used to make a replacement, and fill SRC and DEST if so.
24389         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
24390         changed.
24391         (simplify_using_initial_values): Deal with altered regs here and track
24392         more precisely the effect they have on the validity of our expression.
24393
24394         * loop-iv.c (simplify_using_condition): A condition of the form
24395         (EQ REG CONST) can be used to simply make a substitution.
24396         (simplify_using_initial_values): Keep track of conditions we have seen
24397         and keep using them to simplify new expressions, while applying the
24398         same substitutions to them as to the expression.
24399
24400         * simplify-rtx.c (simplify_relational_operation_1): Simplify
24401         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
24402         GEU/LTU reversed.
24403
24404         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
24405         changed.  Use this when trying to improve the upper bound.
24406         Generate the comparison by using simplify_gen_relational.
24407
24408         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
24409
24410         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
24411         functions.
24412         (simplify_using_assignment, simplify_using_initial_values): Call
24413         replace_in_expr to make replacements.  Call replace_single_def_regs
24414         once on the initial version of the expression.
24415
24416 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24417
24418         PR target/27237
24419         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
24420
24421 2009-03-31  Richard Guenther  <rguenther@suse.de>
24422
24423         PR middle-end/31029
24424         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
24425         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
24426
24427 2009-03-31  Richard Guenther  <rguenther@suse.de>
24428
24429         * tree.h (div_if_zero_remainder): Declare.
24430         * fold-const.c (div_if_zero_remainder): Export.
24431         * tree-ssa-forwprop.c
24432         (forward_propagate_addr_into_variable_array_index): Handle
24433         constant array index addition outside of the variable index.
24434
24435 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
24436
24437         PR target/39592
24438         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
24439         define_splits, floatunssi<mode>2): Require x87 conversions from
24440         DImode to be permitted.
24441
24442 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
24443
24444         PR preprocessor/15638
24445         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
24446
24447 2009-03-31  Richard Guenther  <rguenther@suse.de>
24448
24449         PR middle-end/23401
24450         PR middle-end/27810
24451         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
24452         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
24453         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
24454         a separate statement.
24455         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
24456         (lookup_tmp_var): Likewise.
24457         (is_gimple_formal_tmp_or_call_rhs): Remove.
24458         (is_gimple_reg_or_call_rhs): Rename to ...
24459         (is_gimple_reg_rhs_or_call): ... this.
24460         (is_gimple_mem_or_call_rhs): Rename to ...
24461         (is_gimple_mem_rhs_or_call): ... this.
24462         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
24463         DECL_GIMPLE_REG_P only if is_formal is true.
24464         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
24465         for non-proper post-modify expression gimplification.
24466         (gimplify_self_mod_expr): For post-modify expressions gimplify
24467         the lvalue to a minimal lvalue.
24468         (rhs_predicate_for): Remove formal temp case.
24469         (gimplify_modify_expr_rhs): Likewise.
24470         (gimplify_addr_expr): Use is_gimple_reg.
24471         (gimplify_expr): Remove formal temp cases.
24472         (gimple_regimplify_operands): Likewise.
24473         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
24474         and FILTER_EXPR like constants.
24475         * gimple.c (walk_gimple_op): Fix val_only initialization, use
24476         is_gimple_reg.
24477         (is_gimple_formal_tmp_rhs): Remove.
24478         (is_gimple_reg_rhs): Remove special casing.
24479         (is_gimple_mem_rhs): Fix.
24480         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
24481         (is_gimple_formal_tmp_var): Remove.
24482         (is_gimple_formal_tmp_reg): Likewise.
24483         (is_gimple_min_lval): Allow invariant component ref parts.
24484         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
24485         is_gimple_formal_tmp_reg): Remove declarations.
24486         * tree-cfg.c (verify_expr): Verify that variables with address
24487         taken do not have DECL_GIMPLE_REG_P set.
24488         * tree-mudflap.c (mf_build_check_statement_for): Use
24489         force_gimple_operand instead of gimplify_expr.
24490
24491 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
24492
24493         * modulo-sched.c (sms_schedule_by_order): Pass the actual
24494         schedulable rows to compute_split_row.
24495
24496 2009-03-31  Ben Elliston  <bje@au.ibm.com>
24497
24498         PR target/31635
24499         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
24500         OPT_mvrsave.
24501
24502 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
24503
24504         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
24505         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
24506         * configure: Regenerate.
24507         * config.in: Regenerate.
24508         * config/rs6000/rs6000.opt (mtls-markers): Add.
24509         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
24510         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
24511         (tls_ld_aix, tls_ld_sysv): Likewise.
24512         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
24513         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
24514
24515 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
24516
24517         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
24518
24519 2009-03-30  Jan Hubicka  <jh@suse.cz>
24520
24521         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
24522         out of RESX.
24523         (tree_remove_unreachable_handlers): Cleanup EH predecestor
24524         detection and label handling.
24525
24526 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
24527
24528         * ira-int.h (ira_allocno): Rename left_conflicts_num to
24529         left_conflicts_size.
24530         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
24531         ALLOCNO_LEFT_CONFLICTS_SIZE.
24532
24533         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
24534         remove_allocno_from_bucket_and_push,
24535         allocno_spill_priority_compare, push_allocnos_to_stack,
24536         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
24537         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
24538         (setup_allocno_left_conflicts_num): Ditto.  Rename to
24539         setup_allocno_left_conflicts_size.
24540         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
24541         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
24542         setup_allocno_left_conflicts_size instead of
24543         setup_allocno_left_conflicts_num.
24544
24545         * ira-build.c (ira_create_allocno): Use
24546         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
24547         ALLOCNO_LEFT_CONFLICTS_NUM.
24548
24549 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
24550
24551         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
24552         instead of DF_LR_OUT.
24553
24554         * ira-lives.c (process_bb_node_lives): Ditto.
24555
24556         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
24557         instead of DF_LR_{OUT,IN}.
24558
24559         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
24560
24561         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
24562
24563 2009-03-30  Jan Hubicka  <jh@suse.cz>
24564
24565         * except.c (label_to_region_map): Fix thinko.
24566
24567 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
24568
24569         PR middle-end/38237
24570         * tree.h (tree_find_value): New declaration.
24571         * tree.c (tree_find_value): New function.
24572         * varasm.c (assemble_external): Avoid duplicate entries on lists.
24573
24574 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
24575
24576         PR debug/39563
24577         * c-decl.c (struct c_binding): Add locus field.
24578         (bind): Add locus argument, set locus field from it.
24579         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
24580         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
24581         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
24582         implicitly_declare, undeclared_variable, lookup_label,
24583         declare_label, c_make_fname_decl, c_builtin_function,
24584         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
24585         bind callers.
24586
24587 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
24588
24589         PR target/38781
24590         * config/i386/i386.c (classify_argument): Check total size of
24591         structure.
24592
24593 2009-03-30  Martin Jambor  <mjambor@suse.cz>
24594
24595         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
24596         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
24597         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
24598         respectively.
24599
24600         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
24601         seen_variable_array_ref while also traversing a union.
24602
24603         * tree-inline.c (optimize_inline_calls): Do not call
24604         cgraph_node_remove_callees.
24605         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
24606         (pass_remove_cgraph_callee_edges): New variable.
24607         * passes.c (init_optimization_passes): Add
24608         pass_remove_cgraph_callee_edges after early inlining and before all
24609         late intraprocedural passes.
24610
24611         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
24612
24613 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
24614
24615         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
24616         Fix typos in names.
24617
24618 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
24619
24620         * combine.c (simplify_comparison): Use have_insn_for.
24621         * dojump.c (do_jump): Likewise.
24622
24623 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
24624
24625         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
24626         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
24627         sparc_compare_op0 like sparc_compare_emitted used to be handled.
24628         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
24629         instead of sparc_compare_emitted.
24630         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
24631         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
24632         instead of sparc_compare_emitted.
24633
24634 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
24635
24636         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
24637         enter/exit cfglayout mode.
24638         (pass_partition_block): Require it.
24639         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
24640         (combine_instructions): Track basic blocks instead of labels.
24641         (update_cfg_for_uncondjump): New.
24642         (try_combine): Use it.  Update jumps after rescanning.
24643         (pass_combine): Require PROP_cfglayout.
24644         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
24645
24646 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
24647
24648         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
24649         Provide/destroy PROP_cfglayout respectively.
24650         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
24651         * tree-pass.h (PROP_cfglayout): New.
24652
24653 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
24654
24655         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
24656         fold_convert_const_fixed_from_fixed,
24657         fold_convert_const_fixed_from_int,
24658         fold_convert_const_fixed_from_real, fold_negate_const): Do not
24659         set TREE_CONSTANT_OVERFLOW.
24660         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
24661         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
24662
24663 2009-03-30  Ira Rosen  <irar@il.ibm.com>
24664
24665         * tree-vect-loop-manip.c: New file.
24666         * tree-vectorizer.c: Update documentation and included files.
24667         (vect_loop_location): Make extern.
24668         (rename_use_op): Move to tree-vect-loop-manip.c
24669         (rename_variables_in_bb, rename_variables_in_loop,
24670         slpeel_update_phis_for_duplicate_loop,
24671         slpeel_update_phi_nodes_for_guard1,
24672         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
24673         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
24674         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
24675         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
24676         find_loop_location): Likewise.
24677         (new_stmt_vec_info): Move to tree-vect-stmts.c.
24678         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
24679         get_vectype_for_scalar_type, vect_is_simple_use,
24680         supportable_widening_operation, supportable_narrowing_operation):
24681         Likewise.
24682         (bb_in_loop_p): Move to tree-vect-loop.c.
24683         (new_loop_vec_info, destroy_loop_vec_info,
24684         reduction_code_for_scalar_code, report_vect_op,
24685         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
24686         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
24687         (vect_supportable_dr_alignment): Likewise.
24688         * tree-vectorizer.h (tree-data-ref.h): Include.
24689         (vect_loop_location): Declare.
24690         Reorganize function declarations according to the new file structure.
24691         * tree-vect-loop.c: New file.
24692         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
24693         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
24694         * tree-vect-data-refs.c: New file.
24695         * tree-vect-patterns.c (timevar.h): Don't include.
24696         * tree-vect-stmts.c: New file.
24697         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
24698         tree-vect-slp.c, tree-vect-loop.c.
24699         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
24700         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
24701         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
24702         (tree-vect-analyze.o): Remove.
24703         (tree-vect-transform.o): Likewise.
24704         (tree-vect-data-refs.o): Add rule.
24705         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
24706         tree-vect-slp.o): Likewise.
24707         (tree-vect-patterns.o): Remove redundant dependencies.
24708         (tree-vectorizer.o): Likewise.
24709         * tree-vect-slp.c: New file.
24710
24711 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24712
24713         * optc-gen.awk: Warn if an option flag has multiple different
24714         help strings.
24715
24716 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
24717
24718         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
24719         -floop-block): Document dependences on PPL, CLooG and Graphite.
24720
24721 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
24722
24723         PR rtl-optimization/323
24724         * c-common.c (c_fully_fold, convert_and_check,
24725         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
24726         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
24727         * c-common.def (EXCESS_PRECISION_EXPR): New.
24728         * c-cppbuiltin.c (builtin_define_float_constants): Define
24729         constants with enough digits for long double.
24730         * c-lex.c (interpret_float): Interpret constant with excess
24731         precision where appropriate.
24732         * c-opts.c (c_common_post_options): Set
24733         flag_excess_precision_cmdline.  Give an error for
24734         -fexcess-precision=standard for C++ for processors where the
24735         option is significant.
24736         * c-parser.c (c_parser_conditional_expression): Handle excess
24737         precision in condition.
24738         * c-typeck.c (convert_arguments): Handle arguments with excess
24739         precision.
24740         (build_unary_op): Move excess precision outside operation.
24741         (build_conditional_expr): Likewise.
24742         (build_compound_expr): Likewise.
24743         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
24744         (build_modify_expr): Handle excess precision in RHS.
24745         (convert_for_assignment): Handle excess precision in converted
24746         value.
24747         (digest_init, output_init_element, process_init_element): Handle
24748         excess precision in initializer.
24749         (c_finish_return): Handle excess precision in return value.
24750         (build_binary_op): Handle excess precision in operands and add
24751         excess precision as needed for operation.
24752         * common.opt (-fexcess-precision=): New option.
24753         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
24754         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
24755         For standard excess precision, output explicit conversion to and
24756         truncation from XFmode.
24757         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
24758         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
24759         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
24760         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
24761         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
24762         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
24763         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
24764         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
24765         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
24766         define_splits, sqrt<mode>2): Disable where appropriate for
24767         standard excess precision.
24768         * convert.c (convert_to_real): Do not shorten arithmetic to type
24769         for which excess precision would be used.
24770         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
24771         * doc/invoke.texi (-fexcess-precision=): Document option.
24772         (-mfpmath=): Correct index entry.
24773         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
24774         flag_excess_precision): New.
24775         * langhooks.c (lhd_post_options): Set
24776         flag_excess_precision_cmdline.
24777         * opts.c (common_handle_option): Handle -fexcess-precision=.
24778         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
24779         init_excess_precision): New.
24780         (lang_dependent_init_target): Call init_excess_precision.
24781         * tree.c (excess_precision_type): New.
24782         * tree.h (excess_precision_type): Declare.
24783
24784 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
24785
24786         PR c/35235
24787         * c-typeck.c (build_component_ref): Do not copy qualifiers from
24788         non-lvalue to component.
24789
24790 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
24791
24792         PR preprocessor/34695
24793         * Makefile.in (c-opts.o): Depend on c-tree.h.
24794         * c-common.c: Move down include of diagnostic.h.
24795         (done_lexing, c_cpp_error): New.
24796         * c-common.h (done_lexing): Declare.
24797         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
24798         (parse_in).
24799         * c-opts.c: Include c-tree.h.
24800         (c_common_init_options): Set preprocessor error callback.
24801         (c_common_handle_option): Do not set preprocessor
24802         inhibit_warnings, warnings_are_errors, warn_system_headers,
24803         pedantic_errors or inhibit_warnings flags.
24804         (c_common_post_options): Do not check cpp_errors (parse_in).
24805         (c_common_finish): Do not output dependencies if there were
24806         errors.  Do not check return value of cpp_finish.
24807         * c-ppoutput.c (pp_file_change): Set input_location.
24808         * c-tree.h (c_cpp_error): Declare.
24809         * diagnostic.c (diagnostic_set_info_translated): Also initialize
24810         override_column.
24811         (diagnostic_build_prefix): Check override_column.
24812         * diagnostic.h (diagnostic_info): Add override_column field.
24813         (diagnostic_override_column): Define.
24814
24815 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
24816
24817         * c-common.c (c_expand_expr, c_staticp): Remove.
24818         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
24819         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
24820         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
24821         * c-gimplify.c (gimplify_compound_literal_expr,
24822         optimize_compound_literals_in_ctor): Remove.
24823         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
24824         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
24825         * c-semantics.c (emit_local_var): Remove.
24826
24827         * langhooks-def.h (lhd_expand_expr): Remove.
24828         * langhooks.c (lhd_expand_expr): Remove.
24829         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
24830
24831         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
24832         handling from c-semantics.c; don't call into langhook.
24833         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
24834         * gimplify.c (gimplify_compound_literal_expr,
24835         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
24836         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
24837         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
24838         as was done in c-gimplify.c.
24839         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
24840         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
24841         Move from c-common.h.
24842         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
24843
24844         * tree.c (staticp): Do not call langhook.
24845         * langhooks.c (lhd_staticp): Delete.
24846         * langhooks-def.h (lhd_staticp): Delete prototype.
24847         (LANG_HOOKS_STATICP): Delete.
24848         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
24849
24850         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
24851         instead of DECL_STMTs.
24852
24853 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
24854
24855         PR c/456
24856         PR c/5675
24857         PR c/19976
24858         PR c/29116
24859         PR c/31871
24860         PR c/35198
24861         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
24862         void_type_node.
24863         (fold_call_expr): Return a NOP_EXPR from folding rather than the
24864         contained expression.
24865         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
24866         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
24867         conditional expressions for C.
24868         (decl_constant_value_for_optimization): Move from
24869         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
24870         whether optimizing and that the expression is a VAR_DECL not of
24871         array type instead of doing such checks in the caller.  Do not
24872         check pedantic.  Call gcc_unreachable for C++.
24873         * c-common.def (C_MAYBE_CONST_EXPR): New.
24874         * c-common.h (c_fully_fold, c_save_expr,
24875         decl_constant_value_for_optimization): New prototypes.
24876         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
24877         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
24878         EXPR_INT_CONST_OPERANDS): Define.
24879         * c-convert.c (convert): Strip nops from expression.
24880         * c-decl.c (groktypename): Take extra parameters expr and
24881         expr_const_operands.  Update call to grokdeclarator.
24882         (start_decl): Update call to grokdeclarator.  Add statement for
24883         expressions used in type of decl.
24884         (grokparm): Update call to grokdeclarator.
24885         (push_parm_decl): Update call to grokdeclarator.
24886         (build_compound_literal): Add parameter non_const and build a
24887         C_MAYBE_COSNT_EXPR if applicable.
24888         (grokdeclarator): Take extra parameters expr and
24889         expr_const_operands.  Track expressions used in declaration
24890         specifiers and declarators.  Fold array sizes and track whether
24891         they are constant expressions and whether they are integer
24892         constant expressions.
24893         (parser_xref_tag): Set expr and expr_const_operands fields in
24894         return value.
24895         (grokfield): Update call to grokdeclarator.
24896         (start_function): Update call to grokdeclarator.
24897         (build_null_declspecs): Set expr and expr_const_operands fields in
24898         return value.
24899         (declspecs_add_type): Handle expressions in typeof specifiers.
24900         * c-parser.c (c_parser_declspecs): Set expr and
24901         expr_const_operands fields for declaration specifiers.
24902         (c_parser_enum_specifier): Likewise.
24903         (c_parser_struct_or_union_specifier): Likewise.
24904         (c_parser_typeof_specifier): Likewise.  Update call to
24905         groktypename.  Fold expression as needed.  Return expressions with
24906         type instead of adding statements.
24907         (c_parser_attributes): Update calls to c_parser_expr_list.
24908         (c_parser_statement_after_labels): Fold expression before passing
24909         to objc_build_throw_stmt.
24910         (c_parser_condition): Fold expression.
24911         (c_parser_asm_operands): Fold expression.
24912         (c_parser_conditional_expression): Use c_save_expr.  Update call
24913         to build_conditional_expr.
24914         (c_parser_alignof_expression): Update call to groktypename.
24915         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
24916         original_code.  Fold expression argument of va_arg.  Create
24917         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
24918         argument to va_arg.  Update calls to groktypename.  Fold array
24919         index for offsetof.  Verify that first argument to
24920         __builtin_choose_expr has integer type.
24921         (c_parser_postfix_expression_after_paren_type): Update calls to
24922         groktypename and build_compound_literal.  Handle expressions with
24923         side effects in type name.
24924         (c_parser_postfix_expression_after_primary): Update call to
24925         c_parser_expr_list.  Set original_code for calls to
24926         __builtin_constant_p.
24927         (c_parser_expr_list): Take extra parameter fold_p.  Fold
24928         expressions if requested.
24929         (c_parser_objc_type_name): Update call to groktypename.
24930         (c_parser_objc_synchronized_statement): Fold expression.
24931         (c_parser_objc_receiver): Fold expression.
24932         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
24933         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
24934         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
24935         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
24936         (struct c_typespec): Add elements expr and expr_const_operands.
24937         (struct c_declspecs): Add elements expr and expr_const_operands.
24938         (groktypename, build_conditional_expr, build_compound_literal):
24939         Update prototypes.
24940         (in_late_binary_op): Declare.
24941         * c-typeck.c (note_integer_operands): New function.
24942         (in_late_binary_op): New variable.
24943         (decl_constant_value_for_broken_optimization): Move to c-common.c
24944         and rename to decl_constant_value_for_optimization.
24945         (default_function_array_conversion): Do not strip nops.
24946         (default_conversion): Do not call
24947         decl_constant_value_for_broken_optimization.
24948         (build_array_ref): Do not fold result.
24949         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
24950         result when operand is a VLA.
24951         (c_expr_sizeof_type): Update call to groktypename.  Handle
24952         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
24953         result when operand names a VLA type.
24954         (build_function_call): Update call to build_compound_literal.
24955         Only fold result for calls to __builtin_* functions.  Strip
24956         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
24957         the function designator.
24958         (convert_arguments): Fold arguments.  Update call to
24959         convert_for_assignment.
24960         (build_unary_op): Handle increment and decrement of
24961         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
24962         decrement earlier.  Fold operand of increment and decrement.
24963         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
24964         built for integer operand.  Wrap returns that are INTEGER_CSTs
24965         without being integer constant expressions or that have integer
24966         constant operands without being INTEGER_CSTs.
24967         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
24968         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
24969         result is an integer constant expression or can be used in
24970         unevaluated parts of one and avoid folding and wrap as
24971         appropriate.  Fold operands before possibly doing -Wsign-compare
24972         warnings.
24973         (build_compound_expr): Wrap result for C99 if operands can be used
24974         in integer constant expressions.
24975         (build_c_cast): Update call to digest_init.  Do not ignore
24976         overflow from casting floating-point constants to integers.  Wrap
24977         results that could be confused with integer constant expressions,
24978         null pointer constants or floating-point constants.
24979         (c_cast_expr): Update call to groktypename.  Handle expressions
24980         included in type name.
24981         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
24982         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
24983         Update calls to convert_for_assignment.
24984         (convert_for_assignment): Take new parameter
24985         null_pointer_constant.  Do not strip nops or call
24986         decl_constant_value_for_broken_optimization.  Set
24987         in_late_binary_op for conversions to boolean.
24988         (store_init_value): Update call to digest_init.
24989         (digest_init): Take new parameter null_pointer_constant.  Do not
24990         call decl_constant_value_for_broken_optimization.  pedwarn for
24991         initializers not constant expressions.  Update calls to
24992         convert_for_assignment.
24993         (constructor_nonconst): New.
24994         (struct constructor_stack): Add nonconst element.
24995         (really_start_incremental_init, push_init_level, pop_init_level):
24996         Handle constructor_nonconst and nonconst element.
24997         (set_init_index): Call constant_expression_warning for array
24998         designators.
24999         (output_init_element): Fold value.  Set constructor_nonconst as
25000         applicable.  pedwarn for initializers not constant expressions.
25001         Update call to digest_init.  Call constant_expression_warning
25002         where constant initializers are required.
25003         (process_init_element): Use c_save_expr.
25004         (c_finish_goto_ptr): Fold expression.
25005         (c_finish_return): Fold return value.  Update call to
25006         convert_for_assignment.
25007         (c_start_case): Fold switch expression.
25008         (c_process_expr_stmt): Fold expression.
25009         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
25010         ensure statement expression is not evaluated in constant expression.
25011         (build_binary_op): Track whether results are integer constant
25012         expressions or may occur in such, disable folding and wrap results
25013         as applicable.  Fold operands for -Wsign-compare warnings unless
25014         in_late_binary_op.
25015         (c_objc_common_truthvalue_conversion): Handle results folded to
25016         integer constants that are not integer constant expressions.
25017         * doc/extend.texi: Document when typeof operands are evaluated,
25018         that condition of __builtin_choose_expr is an integer constant
25019         expression, and more about use of __builtin_constant_p in
25020         initializers.
25021
25022 2009-03-29  Richard Guenther  <rguenther@suse.de>
25023
25024         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
25025         propagate addresses of array references.
25026
25027 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
25028
25029         * regmove.c (perhaps_ends_bb_p): Remove.
25030         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
25031         from INSN and check that the main loop stays within that basic block.
25032         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
25033         (regmove_forward_pass): Split out from regmove_optimize.  Use
25034         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
25035         (regmove_backward_pass): Split out from regmove_optimize.  Use
25036         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
25037         (regmove_optimize): Simplify.
25038
25039 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
25040
25041         PR target/39545
25042         * config/i386/i386.c (classify_argument): Ignore flexible array
25043         member in struct and warn ABI change.
25044
25045 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
25046
25047         * config/i386/i386-protos.h (ix86_agi_dependent): New.
25048
25049         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
25050         (ix86_adjust_cost): Updated.
25051
25052 2009-03-29  Jan Hubicka  <jh@suse.cz>
25053
25054         PR middle-end/28850
25055         * tree-pass.h (pass_cleanup_eh): New function.
25056         (remove_unreachable_regions): Break code handling RTL
25057         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
25058         that can not be reached by runtime.
25059         (can_be_reached_by_runtime): New function.
25060         (label_to_region_map): New function.
25061         (num_eh_regions): New function.
25062         (rtl_remove_unreachable_regions): New function.
25063         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
25064         (remove_eh_region): New function.
25065         * except.h: Include sbitmap and vecprim.
25066         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
25067         num_eh_regions): Declare.
25068         * passes.c (init_optimization_passes): Schedule cleanup_eh.
25069         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
25070         * tree-eh.c (tree_remove_unreachable_handlers): New function.
25071         (tree_empty_eh_handler_p): New function.
25072         (cleanup_empty_eh): New function.
25073         (cleanup_eh): New function.
25074         (pass_cleanup_eh): New function.
25075
25076 2009-03-29  Jan Hubicka  <jh@suse.cz>
25077
25078         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
25079         for removed regions.
25080
25081 2009-03-29  Jan Hubicka  <jh@suse.cz>
25082
25083         * except.c (dump_eh_tree): Dump all datastructures.
25084
25085 2009-03-29  Jan Hubicka  <jh@suse.cz>
25086
25087         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
25088         (duplicate_eh_regions_1): Likewise.
25089         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
25090         vector; call EH verification.
25091         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
25092         Be ready for region being removed.
25093
25094 2009-03-29  Jan Hubicka  <jh@suse.cz>
25095
25096         * bitmap.c (bitmap_last_set_bit): New function.
25097         * bitmap.h (bitmap_last_set_bit): Declare.
25098
25099 2009-03-29  David Ayers  <ayers@fsfe.org>
25100
25101         PR objc/27377
25102         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
25103         by calling objc_compare_types and surpress warnings about
25104         incompatible C pointers that are compatible ObjC pointers.
25105
25106 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
25107
25108         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
25109         call initialize_inline_failed.
25110         (initialize_inline_failed): Move it from here ...
25111         * cgraph.c (initialize_inline_failed): ... to here.
25112         (cgraph_create_edge): Call initialize_inline_failed rather than
25113         setting inline_failed directly.
25114
25115 2009-03-29  Ben Elliston  <bje@au.ibm.com>
25116
25117         PR target/32542
25118         * sysv4.opt (msdata): Improve comment.
25119         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
25120         * sysv4.h (SVR4_ASM_SPEC): Likewise.
25121
25122 2009-03-29  Ben Elliston  <bje@au.ibm.com>
25123
25124         PR target/30451
25125         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
25126         load and store attributes.
25127
25128 2009-03-29  Ben Elliston  <bje@au.ibm.com>
25129
25130         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
25131         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
25132         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
25133         * doc/extend.texi (X86 Built-in Functions): Add index entries for
25134         __builtin_infq and __builtin_huge_valq.
25135
25136 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
25137
25138         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
25139         atmega8m1 devices.
25140         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
25141         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
25142
25143 2009-03-28  Xinliang David Li  <davidxl@google.com>
25144
25145         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
25146         (do_dbg_cnt): New function.
25147
25148 2009-03-28  Jan Hubicka  <jh@suse.cz>
25149
25150         Merge from pretty-ipa:
25151
25152         2009-03-27  Jan Hubicka  <jh@suse.cz>
25153
25154         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
25155         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
25156         * passes.c (function_called_by_processed_nodes_p): New.
25157         * ipa-pure-const.c (check_call): Fix handling of operands.
25158         (analyze_function): Dump debug output for skipped bodies.
25159         (local_pure_const): Use function_called_by_processed_nodes_p.
25160         * dwarf2out.c (reference_to_unused): Use output.
25161         * passes.c (do_per_function_toporder): Likewise.
25162
25163         2008-11-12  Jan Hubicka  <jh@suse.cz>
25164
25165         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
25166         * ipa-pure-const.c (funct_state_d): Add can throw field; make
25167         state_set_in_source enum
25168         (check_decl): Ignore memory tags; do not set fake looping flags;
25169         dump diagnostics.
25170         (check_operand, check_tree, check_rhs_var, check_lhs_var,
25171         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
25172         (check_call, analyze_function): Rewrite.
25173         (check_stmt): New.
25174         (add_new_function): Update call of analyze_function.
25175         (generate_summary): Add call of analyze_function.
25176         (propagate): Propagate can_throw; handle state_set_in_source correctly.
25177         (local_pure_const): New function.
25178         (pass_local_pure_const): New pass.
25179         * ipa-inline.c (inline_transform): Set after_inlining.
25180         * tree-eh.c (stmt_can_throw_external): New.
25181         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
25182         work with aliasing built.
25183         * tree-flow.h (stmt_can_throw_external): New.
25184         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
25185         and local pure/const pass in early and late optimization queue.
25186
25187 2009-03-28  Martin Jambor  <mjambor@suse.cz>
25188
25189         * fold-const.c (get_pointer_modulus_and_residue): New parameter
25190         allow_func_align.
25191         (fold_binary): Allow function decl aligment consideration is the
25192         second argument is integer constant one.
25193         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
25194         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
25195         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
25196
25197 2009-03-28  Jan Hubicka  <jh@suse.cz>
25198
25199         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
25200         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
25201         * function.h (rtl_data): Add nothrow flag.
25202         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
25203         set DECL_NOTHROW for AVAILABLE functions.
25204
25205 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
25206
25207         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
25208         following vector keyword has expansion starting with pixel or bool
25209         keyword, expand vector to __vector and pixel or bool to __pixel or
25210         __bool.
25211
25212         PR c++/39554
25213         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
25214         warn_if_disallowed_function_p): Removed.
25215         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
25216         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
25217         warning_if_disallowed_function_p.
25218         * flags.h (warn_if_disallowed_function_p,
25219         warn_disallowed_functions): Removed.
25220         * common.opt (Wdisallowed-function-list=): Removed.
25221         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
25222
25223 2009-03-28  Richard Guenther  <rguenther@suse.de>
25224
25225         PR tree-optimization/38723
25226         * tree-ssa-pre.c (compute_avail): Add all default definitions to
25227         the entry block.
25228
25229 2009-03-28  Jan Hubicka  <jh@suse.cz>
25230
25231         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
25232         test introduced by my previous patch.
25233
25234 2009-03-28  Richard Guenther  <rguenther@suse.de>
25235
25236         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
25237         the PHIs value undefined.
25238
25239 2009-03-28  Jan Hubicka  <jh@suse.cz>
25240
25241         * tree-pass.h (pass_fixup_cfg): New pass.
25242         * ipa-inline.c (inline_transform): Set
25243         always_inline_functions_inlined/after_inlining.
25244         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
25245         (pass_fixup_cfg): New pass.
25246         * passes.c (init_optimization_passes): Add fixup_cfg.
25247
25248 2009-03-28  Richard Guenther  <rguenther@suse.de>
25249
25250         PR tree-optimization/38458
25251         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
25252         argument use the arguments copy-of value.
25253
25254 2009-03-28  Richard Guenther  <rguenther@suse.de>
25255
25256         PR tree-optimization/38180
25257         * tree-ssa-ccp.c (get_default_value): Simplify.
25258         (likely_value): Likewise.
25259         (surely_varying_stmt_p): Properly handle VOP case.
25260         (ccp_initialize): Likewise.
25261         (ccp_fold): Handle propagating through *&.
25262         (fold_const_aggregate_ref): Also handle decls.
25263
25264 2009-03-28  Jan Hubicka  <jh@suse.cz>
25265
25266         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
25267         * cgraph.h (cgraph_node): Likewise.
25268         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
25269         (cgraph_reset_node): Use process flag.
25270         (cgraph_mark_functions_to_output): Likewise.
25271         (cgraph_expand_function): Likewise.
25272         (cgraph_expand_all_functions): Likewise.
25273         (cgraph_output_in_order): Likewise.
25274         * dwarf2out.c (reference_to_unused): Likewise.
25275         * passes.c do_per_function_toporder): Likewise.
25276
25277 2009-03-28  Jan Hubicka  <jh@suse.cz>
25278
25279         Bring from lto-branch:
25280
25281         2008-09-03  Doug Kwan  <dougkwan@google.com>
25282
25283         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
25284         enums instead of reason strings.
25285         * cgraph.c (cgraph_create_edge): Same.
25286         (cgraph_inline_failed_string): New function.
25287         * cgraph.h (cgraph_inline_failed_t): New enum type.
25288         (cgraph_inline_failed_string): New prototype.
25289         (struct cgraph_edge): Change type of INLINED_FAILED from constant
25290         char pointer to cgraph_inline_failed_t.
25291         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
25292         (cgraph_default_inline_p): Ditto.
25293         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
25294         to cgraph_inline_failed_t pointer.
25295         * cif-code.def: New file.
25296         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
25297         reason string.
25298         (cgraph_check_inline_limits): Change type of REASON to pointer to
25299         cgraph_inline_failed_t.  Replace reason strings with enums.
25300         (cgraph_default_inline_p): Ditto.
25301         (cgraph_recursive_inlining_p): Ditto.
25302         (update_caller_keys): Change type of FAILED_REASON to
25303         cgraph_inline_failed_t.
25304         (cgraph_set_inline_failed): Change type of REASON to pointer to
25305         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
25306         convert enums to strings for text output.
25307         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
25308         to be of type cgraph_inline_failed_t.  Replace reason strings with
25309         enums.  Call cgraph_inline_failed_string to covert enums
25310         to strings for text output.
25311         (cgraph_decide_inlining): Replace reason strings with enums.
25312         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
25313         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
25314         for text output.
25315         * tree-inline.c (expand_call_inline): Change type of REASON
25316         to cgraph_inline_failed_t.  Replace reason strings with enums.
25317         Call cgraph_inline_failed_string for text output.
25318         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
25319         (cgraph.o): Ditto.
25320
25321 2009-03-28  Jan Hubicka  <jh@suse.cz>
25322
25323         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
25324         cgraph_clone_node): Remove master clone handling.
25325         (cgraph_is_master_clone, cgraph_master_clone): Remove.
25326         * cgraph.h (master_clone): Remove.
25327         (cgraph_is_master_clone, cgraph_master_clone): Remove.
25328         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
25329         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
25330
25331 2009-03-28  Jan Hubicka  <jh@suse.cz>
25332
25333         * cgraph.c (cgraph_function_body_availability): Functions declared
25334         inline are always safe to assume that it is not going to be replaced.
25335
25336 2009-03-28  Richard Guenther  <rguenther@suse.de>
25337
25338         PR tree-optimization/38513
25339         * tree-ssa-pre.c (eliminate): Remove redundant stores.
25340         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
25341         EXC_PTR_EXPR and FILTER_EXPR.
25342         (get_ref_from_reference_ops): Likewise.
25343
25344 2009-03-28  Richard Guenther  <rguenther@suse.de>
25345
25346         PR tree-optimization/38968
25347         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
25348         Use FLOOR_MOD_EXPR to compute misalignment.
25349
25350 2009-03-28  Richard Guenther  <rguenther@suse.de>
25351
25352         PR tree-optimization/37795
25353         * tree.h (combine_comparisons): Declare.
25354         * fold-const.c (combine_comparisons): Export.
25355         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
25356         comparisons.
25357         (ifcombine_iforif): Use combine_comparisons.
25358
25359 2009-03-28  Jan Hubicka  <jh@suse.cz>
25360
25361         * tree-eh.c (inlinable_call_p): New function.
25362         (make_eh_edges): Use it.
25363         (verify_eh_edges): Use it.
25364         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
25365         * except.c (reachable_next_level): Add inlinable_function argument
25366         (sjlj_find_directly_reachable_regions): Update.
25367         (add_reachable_handler): Do not set saw_any_handlers.
25368         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
25369         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
25370         Add new inlinable call parameter.
25371         (can_throw_internal, can_throw_external): Update.
25372         * except.h (can_throw_internal_1, can_throw_external_1,
25373         foreach_reachable_handler): Update declaration.
25374
25375 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
25376
25377         * config/arm/t-arm-coff, config/h8300/coff.h,
25378         config/i386/i386-aout.h, config/i386/i386-coff.h,
25379         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
25380         config/pdp11/2bsd.h, config/rs6000/aix41.h,
25381         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
25382         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
25383         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
25384         sys-types.h: Remove.
25385         * Makefile.in: Remove protoize and fixproto support and references
25386         in comments.
25387         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
25388         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
25389         Remove.
25390         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
25391         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
25392         unprotoize$(exeext).
25393         (rest.encap): Don't depend on $(STMP_FIXPROTO)
25394         (.PHONY): Don't depend on proto.
25395         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
25396         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
25397         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
25398         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
25399         build/gen-protos.o, build/scan.o, xsys-protos.h,
25400         build/fix-header$(build_exeext), build/fix-header.o,
25401         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
25402         stmp-install-fixproto): Remove.
25403         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
25404         SYSCALLS.c or fixproto files.
25405         (install-common): Don't install protoize.
25406         (install-headers-tar, install-headers-cpio, install-headers-cp):
25407         Don't depend on $(STMP_FIXPROTO).
25408         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
25409         install fixproto files or write out fixproto settings.
25410         (uninstall): Don't uninstall protoize.
25411         * config.gcc (use_fixproto): Remove.
25412         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
25413         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
25414         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
25415         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
25416         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
25417         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
25418         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
25419         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
25420         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
25421         * config/t-vxworks (STMP_FIXPROTO): Remove.
25422         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
25423         STMP_FIXPROTO): Remove.
25424         * config.in, configure: Regenerate.
25425         * crtstuff.c (gid_t, uid_t): Don't undefine.
25426         * doc/install.texi: Change m68k-coff to m68k-elf in example.
25427         (arm-*-coff, arm-*-aout: Remove target entries.
25428         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
25429         Remove mention of AIX 4.1.
25430         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
25431         * doc/invoke.texi (Running Protoize): Remove.
25432         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
25433         (Protoize Caveats): Remove.
25434         * tsystem.h: Update comments on headers assumed to exist.
25435
25436 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
25437
25438         * genautomata.c: Add a new year to the copyright.  Add a new
25439         reference.
25440         (struct insn_reserv_decl): Add comments for member bypass_list.
25441         (find_bypass): Remove.
25442         (insert_bypass): New.
25443         (process_decls): Use insert_bypass.
25444         (output_internal_insn_latency_func): Output all bypasses with the
25445         same input insn in one switch case.
25446
25447         * rtl.def (define_bypass): Describe bypass choice.
25448         * doc/md.texi (define_bypass): Ditto.
25449
25450 2009-03-27  Richard Guenther  <rguenther@suse.de>
25451
25452         * gimplify.c (mark_addressable): Export.
25453         * tree-flow.h (mark_addressable): Declare.
25454         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
25455         * tree-ssa.c (verify_phi_args): Verify that address taken
25456         variables have TREE_ADDRESSABLE set.
25457
25458 2009-03-27  Richard Guenther  <rguenther@suse.de>
25459
25460         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
25461         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
25462         Do not mark decls TREE_ADDRESSABLE.
25463         (build_fold_addr_expr): Adjust.
25464         (fold_addr_expr): Remove.
25465         (fold_unary): Use build_fold_addr_expr.
25466         (fold_comparison): Likewise.
25467         (split_address_to_core_and_offset): Likewise.
25468         * coverage.c (tree_coverage_counter_addr): Mark the array decl
25469         TREE_ADDRESSABLE.
25470         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
25471         (gimplify_modify_expr_to_memcpy): Mark source and destination
25472         addressable.
25473         * omp-low.c (create_omp_child_function): Mark the object decl
25474         TREE_ADDRESSABLE.
25475         (lower_rec_input_clauses): Mark the var we take the address of
25476         TREE_ADDRESSABLE.
25477         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
25478
25479 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25480
25481         PR middle-end/39315
25482         * cfgexpand.c (expand_one_stack_var_at): Change alignment
25483         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
25484
25485 2009-03-27  Richard Guenther  <rguenther@suse.de>
25486
25487         PR tree-optimization/39120
25488         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
25489         constraints.
25490         (handle_lhs_call): Process return constraints.  Add escape
25491         constraints if necessary.
25492         (handle_const_call): Fill out return constraints.  Make nested
25493         case more precise.  Avoid consttmp if possible.
25494         (handle_pure_call): Fill out return constraints.  Avoid
25495         callused if possible.
25496         (find_func_aliases): Simplify call handling.
25497
25498 2009-03-27  Richard Guenther  <rguenther@suse.de>
25499
25500         PR tree-optimization/39120
25501         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
25502         as a representative.
25503         (solve_graph): Do propagate CALLUSED.
25504         (handle_pure_call): Use a scalar constraint from CALLUSED for
25505         the return value.
25506         (find_what_p_points_to): CALLUSED shall not appear in poins-to
25507         solutions.
25508
25509 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25510
25511         PR c/39323
25512         * c-common.c (handle_aligned_attribute): Properly check alignment
25513         overflow.  Use (1U << i) instead of (1 << i).
25514
25515         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
25516
25517         * expr.h (get_mem_align_offset): Updated.
25518
25519         * tree.h (tree_decl_common): Change align to "unsigned int" and
25520         move it before pointer_alias_set.
25521
25522 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25523             Jakub Jelinek  <jakub@redhat.com>
25524
25525         PR target/38034
25526         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
25527         gr_register_operand with gr_reg_or_0_operand.
25528         (cmpxchg_rel_di): Likewise.
25529         (sync_lock_test_and_set<mode>): Likewise.
25530
25531 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25532
25533         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
25534         (true_regnum): Likewise.
25535
25536         * rtlanal.c (subreg_info): Moved to ...
25537         * rtl.h (subreg_info): Here.  New.
25538         (subreg_get_info): New.
25539
25540         * rtlanal.c (subreg_get_info): Make it extern.
25541
25542 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25543
25544         PR target/39472
25545         * config/i386/i386.c (ix86_abi): New.
25546         (override_options): Handle -mabi=.
25547         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
25548         (ix86_call_abi_override): Likewise.
25549         (init_cumulative_args): Likewise.
25550         (function_arg_advance): Likewise.
25551         (function_arg_64): Likewise.
25552         (function_arg): Likewise.
25553         (ix86_pass_by_reference): Likewise.
25554         (ix86_function_value_regno_p): Likewise.
25555         (ix86_build_builtin_va_list_abi): Likewise.
25556         (setup_incoming_varargs_64): Likewise.
25557         (is_va_list_char_pointer): Likewise.
25558         (ix86_init_machine_status): Likewise.
25559         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
25560         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
25561         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
25562         (ix86_function_abi): Make it static and return enum calling_abi.
25563         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
25564         with ix86_abi.
25565         (ix86_fn_abi_va_list): Updated.
25566
25567         * config/i386/i386.h (ix86_abi): New.
25568         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
25569         (CONDITIONAL_REGISTER_USAGE): Likewise.
25570         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
25571         (machine_function): Likewise.
25572
25573         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
25574         with ix86_abi.
25575         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
25576         (STACK_BOUNDARY): Likewise.
25577         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
25578
25579         * config/i386/i386.opt (mabi=): New.
25580
25581         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
25582         return enum calling_abi.
25583         (ix86_function_type_abi): Likewise.
25584         (ix86_function_abi): Removed.
25585
25586         * doc/invoke.texi: Document -mabi= option for x86.
25587
25588 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25589
25590         * builtins.c (real_dconstp): Delete.
25591         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
25592
25593 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
25594             Jakub Jelinek  <jakub@redhat.com>
25595
25596         PR debug/37959
25597         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
25598         (gen_subprogram_die): When a function is explicit, generate the
25599         DW_AT_explicit attribute.
25600         * langhooks.h (struct lang_hooks_for_decls): Add
25601         function_decl_explicit_p langhook.
25602         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
25603         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
25604
25605 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
25606
25607         * builtins.c (fold_builtin_memory_op): Optimize memmove
25608         into memcpy if we can prove source and destination don't overlap.
25609
25610         * tree-inline.c: Include gt-tree-inline.h.
25611         (clone_fn_id_num): New variable.
25612         (clone_function_name): New function.
25613         (tree_function_versioning): Use it.
25614         * Makefile.in (GTFILES): Add tree-inline.c.
25615
25616 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
25617
25618         * BASE-VER: Change to 4.5.0.
25619
25620 2009-03-27  Xinliang David Li  <davidxl@google.com>
25621
25622         PR tree-optimization/39557
25623         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
25624
25625 2009-03-27  Xinliang David Li  <davidxl@google.com>
25626
25627         PR tree-optimization/39548
25628         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
25629         candidate check.
25630
25631 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25632
25633         * c-common.c (pointer_int_sum): Use %wd on return from
25634         tree_low_cst.
25635
25636 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25637
25638         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
25639         on return from tree_low_cst.
25640
25641 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
25642
25643         PR c++/36799
25644         * ginclude/stdarg.h (va_copy): Define also for
25645         __GXX_EXPERIMENTAL_CXX0X__.
25646
25647 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25648
25649         PR c++/35652
25650         * builtins.h (c_strlen): Do not warn here.
25651         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
25652         * c-common.c (pointer_int_sum): Take an explicit location.
25653         Warn about offsets out of bounds.
25654         * c-common.h (pointer_int_sum): Adjust declaration.
25655
25656 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25657
25658         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
25659         markup glitch.
25660
25661 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
25662
25663         PR c++/39554
25664         * opts.c (warn_if_disallowed_function_p): Don't assume
25665         get_callee_fndecl must return non-NULL.
25666
25667 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
25668
25669         PR rtl-optimization/39522
25670         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
25671         when reg_reloaded_valid is set.
25672
25673 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25674
25675         * config/spu/divv2df3.c: New file.
25676         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
25677         (DPBIT_FUNCS): Filter out _div_df.
25678
25679 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
25680
25681         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
25682         a jump insn, count that jump in the distance to the loop start.
25683
25684 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
25685
25686         PR target/39523
25687         * config/sh/sh.c (calc_live_regs): Fix condition for global
25688         registers except PIC_OFFSET_TABLE_REGNUM.
25689
25690 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
25691
25692         PR/39518
25693         * doc/invoke.texi (-mconsole): New.
25694         (-mcygwin): New.
25695         (-mno-cygwin): New.
25696         (-mdll): New.
25697         (-mnop-fun-dllimport): New.
25698         (-mthread): New.
25699         (-mwin32): New.
25700         (-mwindows): New.
25701         (sub section "i386 and x86-64 Windows Options"): New.
25702
25703 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
25704
25705         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
25706         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
25707
25708 2009-03-25  Richard Guenther  <rguenther@suse.de>
25709
25710         PR middle-end/39497
25711         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
25712         of -Wno-error.
25713
25714 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
25715
25716         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
25717         neither of haifa/selective schedulers are working.
25718
25719 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25720
25721         * doc/invoke.texi (Debugging Options): Fix description of
25722         -fno-merge-debug-strings.
25723
25724 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
25725
25726         * config/cris/libgcc.ver: New version-script.
25727         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
25728
25729         * configure.ac <GAS features, nop mnemonic>: Add pattern
25730         crisv32-*-* for "nop".
25731         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
25732         * configure: Regenerate.
25733
25734 2009-03-24  Ira Rosen  <irar@il.ibm.com>
25735
25736         PR tree-optimization/39529
25737         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
25738         mark_sym_for_renaming for the tag copied to the new vector
25739         pointer.
25740
25741 2009-03-24  Arthur Loiret  <aloiret@debian.org>
25742
25743         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
25744         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
25745         EXTRA_SPEC_FUNCTIONS.
25746         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
25747         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
25748         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
25749         -march and -mtune options.
25750
25751 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
25752
25753         * config/m68k/t-rtems: Add m5329 multilib.
25754
25755 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
25756             Jakub Jelinek  <jakub@redhat.com>
25757
25758         PR debug/39524
25759         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
25760         nodes.
25761
25762 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
25763
25764         PR c/39495
25765         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
25766         instead of c_parser_expression_conv, if original_code isn't one of the
25767         4 allowed comparison codes, fail.
25768
25769 2009-03-23  Richard Guenther  <rguenther@suse.de>
25770
25771         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
25772         * tree.h (struct tree_type): Likewise.
25773         * reload.h (struct insn_chain): Likewise.
25774         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
25775         * function.h (struct function): Likewise.
25776         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
25777
25778 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
25779
25780         PR tree-optimization/39516
25781         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
25782
25783 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
25784
25785         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
25786         should be set true if BITS_PER_WORD of target is bigger than 32
25787
25788 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
25789
25790         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
25791         Translate -B-options to -rpath-link.  Correct existing
25792         rpath-link and conditionalize on !nostdlib.
25793
25794 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25795
25796         * doc/extend.texi (Function Attributes, Variable Attributes):
25797         Fix typos.
25798         * doc/invoke.texi (Debugging Options, Optimize Options)
25799         (i386 and x86-64 Options, MCore Options): Likewise.
25800
25801 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
25802
25803         PR debug/37890
25804         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
25805         it for block local namespace aliases.
25806         (gen_decl_die): Pass context_die to gen_namespace_die.
25807
25808 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
25809
25810         PR c/39495
25811         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
25812         minimum or maximum value.
25813
25814 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
25815
25816         * reginfo.c (globalize_reg): Recompute derived reg sets.
25817
25818 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
25819
25820         PR target/39063
25821         * libgcc2.c (mprotect): Do not use signed arguments for
25822         VirtualProtect, use DWORD arguments.  Also fix the 'may
25823         be used uninitialized' warning for the np variable.
25824
25825 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
25826
25827         PR target/39496
25828         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
25829         functions using regparm calling conventions when not optimizing.
25830         (ix86_function_sseregparm): Similarly for sseregparm calling
25831         conventions.
25832
25833 2009-03-19  Li Feng  <nemokingdom@gmail.com>
25834
25835         PR middle-end/39500
25836         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
25837         dependence if the first conflict is after niter iterations.
25838
25839 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
25840
25841         PR middle-end/38609
25842         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
25843         functions with dynamic stack-pointer adjustments.
25844
25845 2009-03-19  Ben Elliston  <bje@au.ibm.com>
25846
25847         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
25848         option; change to -msdata=data.
25849
25850 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25851
25852         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
25853         and -fopenmp.
25854
25855 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
25856
25857         PR target/35180
25858         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
25859
25860 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
25861
25862         * doc/invoke.texi (Code Gen Options): Expand discussion of
25863         -fno-common.
25864
25865 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
25866
25867         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
25868         * matrix-reorg.c (struct matrix_info): Likewise.
25869         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
25870         * rtl.h (struct mem_attrs): Likewise.
25871         * df.h (struct df): Likewise.
25872         * tree-data-ref.h (struct data_dependence_relation): Likewise.
25873         * ira-int.h (struct ira_allocno): Likewise.
25874         * df-scan.c (struct df_collection_rec): Likewise.
25875         * ira.c (struct equivalence): Likewise.
25876         * function.c (struct temp_slot): Likewise.
25877         * cfgloop.h (struct loop): Likewise.
25878
25879         PR debug/39485
25880         * function.c (use_register_for_decl): When not optimizing, disregard
25881         register keyword for variables with types containing methods.
25882
25883 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
25884
25885         PR middle-end/39447
25886         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
25887         (is_simple_operand): Call contains_component_ref_p before calling data
25888         reference analysis that would fail on COMPONENT_REFs.
25889
25890         * tree-vrp.c (search_for_addr_array): Fix formatting.
25891
25892 2009-03-18  Richard Guenther  <rguenther@suse.de>
25893
25894         * tree-vect-transform.c (vect_loop_versioning): Fold the
25895         generated comparisons.
25896         * tree-vectorizer.c (set_prologue_iterations): Likewise.
25897         (slpeel_tree_peel_loop_to_edge): Likewise.
25898
25899 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25900
25901         PR middle-end/37805
25902         * opts.c (print_specific_help): In addition to `undocumented',
25903         accept `separate' and `joined' flags if passed alone.  Describe
25904         output by the first matched one of those.
25905         (common_handle_option): Skip over empty strings.
25906         * gcc.c (display_help): Fix help string for `--help='.
25907         * doc/invoke.texi (Option Summary, Overall Options): With
25908         `--help=', classes and qualifiers can both be repeated, but
25909         only the latter can be negated.  One should not pass only
25910         negated qualifiers.  Fix markup and examples.
25911
25912         Revert
25913         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
25914         PR middle-end/37805
25915         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
25916         and -fhelp=separate.
25917
25918 2009-03-17  Jing Yu  <jingyu@google.com>
25919
25920         PR middle-end/39378
25921         * function.h (struct rtl_data): Move is_thunk from here...
25922         (struct function): ...to here.
25923         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
25924         * varasm.c (assemble_start_function): Change is_thunk from crtl to
25925         cfun.
25926         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
25927         cfun.
25928         (alpha_does_function_need_gp, alpha_start_function): Likewise.
25929         (alpha_output_function_end_prologue): Likewise.
25930         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
25931         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
25932         (rs6000_output_function_epilogue): Likewise.
25933         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
25934
25935 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
25936
25937         PR target/39482
25938         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
25939         from different units in a single alternative.
25940         (*truncdfsf_i387): Ditto.
25941         (*truncxfsf2_mixed): Ditto.
25942         (*truncxfdf2_mixed): Ditto.
25943
25944 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
25945
25946         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
25947         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
25948
25949         PR debug/39474
25950         * tree-ssa-live.c (remove_unused_locals): Don't remove local
25951         unused non-artificial variables when not optimizing.
25952
25953         PR debug/39471
25954         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
25955         DW_TAG_imported_module even if decl is IMPORTED_DECL with
25956         NAMESPACE_DECL in its DECL_INITIAL.
25957
25958         PR middle-end/39443
25959         * optabs.c (set_user_assembler_libfunc): New function.
25960         * expr.h (set_user_assembler_libfunc): New prototype.
25961         * c-common.c: Include libfuncs.h.
25962         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
25963         for memcmp, memset, memcpy, memmove and abort.
25964         * Makefile.in (c-common.o): Depend on libfuncs.h.
25965
25966         PR debug/39412
25967         * dwarf2out.c (gen_inlined_enumeration_type_die,
25968         gen_inlined_structure_type_die, gen_inlined_union_type_die,
25969         gen_tagged_type_instantiation_die): Removed.
25970         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
25971         do nothing.
25972
25973 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
25974
25975         PR testsuite/38526
25976         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
25977         its use.
25978         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
25979         (check-parallel-%): Ditto.
25980         (check-consistency): Ditto.
25981
25982 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
25983
25984         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
25985         local variable rhs by NULL_TREE.
25986
25987 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
25988
25989         PR target/39477
25990         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
25991
25992 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
25993
25994         PR target/39476
25995         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
25996
25997 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
25998
25999         PR target/39473
26000         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
26001         for ms->sysv ABI calls only in 64bit mode.
26002
26003         * config/i386/i386.md (untyped_call): Support 32bit.
26004
26005 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
26006
26007         * doc/extend.texi: Replace x86_65 with x86_64.
26008
26009 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
26010
26011         PR tree-optimization/39455
26012         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
26013         mismatches for POINTER_TYPE_P (type).
26014         (number_of_iterations_le): Likewise.
26015
26016 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
26017
26018         * config/picochip/picochip.c: Removed profiling support.
26019         * config/picochip/picochip.md: Removed profiling instruction.
26020         * config/picochip/picochip.h: Removed profiling builtin.
26021
26022 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
26023
26024         * doc/install.texi (--with-host-libstdcxx): Document.
26025
26026 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
26027
26028         PR target/34299
26029         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
26030         generate a warning if the function name does not begin with
26031         "__vector" and the function has either the 'signal' or 'interrupt'
26032         attribute, from here to ...
26033         (avr_declare_function_name): ...here. New function.
26034         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
26035         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
26036
26037 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
26038
26039         PR bootstrap/39454
26040         * cse.c (fold_rtx): Don't modify original const_arg1 when
26041         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
26042         separate variable instead.
26043         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
26044         from out of range shift counts.
26045         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
26046
26047 2009-03-13  Catherine Moore  <clm@codesourcery.com>
26048
26049         * config/i386/x-mingw32 (host-mingw32.o): Replace
26050         diagnostic.h with $(DIAGNOSTIC_H).
26051
26052 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
26053
26054         PR target/39431
26055         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
26056         predicate.
26057         * config/i386/sync.md (sync_compare_and_swap<mode>,
26058         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
26059         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
26060         into a register.
26061         (sync_double_compare_and_swapdi_pic,
26062         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
26063         cmpxchg8b_pic_memory_operand instead of just memory_operand.
26064
26065 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
26066
26067         PR target/39445
26068         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
26069
26070 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
26071
26072         PR target/39327
26073         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
26074         (avx_addsubv4df3): Likewise.
26075         (*avx_addsubv4sf3): Likewise.
26076         (sse3_addsubv4sf3): Likewise.
26077
26078 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
26079
26080         PR target/38824
26081         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
26082
26083 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
26084
26085         PR debug/39432
26086         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
26087         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
26088         registers for allocnos created from user-defined variables.
26089
26090 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26091
26092         PR target/39181
26093         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
26094         of non-integer mode as well.
26095
26096 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
26097
26098         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
26099         for functions for which the parameter types are unknown.
26100
26101 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
26102
26103         PR target/39137
26104         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
26105         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
26106         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
26107         * config/i386/i386.c (ix86_local_alignment): For
26108         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
26109         long long variables on the stack to avoid dynamic realignment.
26110         Allow the first argument to be a decl rather than type.
26111         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
26112
26113 2009-03-11  Nick Clifton  <nickc@redhat.com>
26114
26115         PR target/5362
26116         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
26117         options.
26118         Add description to mno-lsim option.
26119         * config/mcore/mcore.h: Remove comment about deprecated m4align
26120         option.
26121         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
26122         * doc/invoke.texi: Add description of mno-lsim and
26123         mstack-increment options.
26124
26125         * config/fr30/fr30.opt: Document the -mno-lsim option.
26126         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
26127         and -mno-lsim options.
26128
26129 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26130
26131         * fold-const.c (fold_comparison): Only call fold_inf_compare
26132         if the mode supports infinities.
26133
26134 2009-03-11  Jason Merrill  <jason@redhat.com>
26135
26136         PR debug/39086
26137         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
26138         end already did.  Notice GIMPLE_CALL modifications of the result.
26139         Don't copy debug information from an ignored decl or a decl from
26140         another function.
26141
26142 2009-03-10  Richard Guenther  <rguenther@suse.de>
26143             Nathan Froyd  <froydnj@codesourcery.com>
26144
26145         PR middle-end/37850
26146         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
26147         (__divMODE3): Likewise.
26148
26149 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
26150
26151         PR tree-optimization/39394
26152         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
26153         DECL_SIZE_UNIT of variable length FIELD_DECLs.
26154
26155 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26156
26157         * recog.c (verfiy_changes): Disallow renaming of hard regs in
26158         inline asms for register asm ("") declarations.
26159
26160 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
26161
26162         * fold-const.c (fold_unary): Fix comment.
26163
26164 2009-03-07  Jan Hubicka  <jh@suse.cz>
26165
26166         PR target/39361
26167         * tree-inline.c (setup_one_parameter): Do replacement of const
26168         argument by constant in SSA form.
26169
26170 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26171
26172         PR middle-end/38028
26173         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
26174         determine alignment passed to assign_stack_local.
26175         (assign_parms_unsplit_complex): Likewise.
26176         * except.c (sjlj_build_landing_pads): Likewise.
26177
26178 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
26179
26180         PR middle-end/39360
26181         * tree-flow.h (add_referenced_var): Return bool instead of void.
26182         * tree-dfa.c (add_referenced_var): Return result of
26183         referenced_var_check_and_insert call.
26184         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
26185         of referenced_var_check_and_insert.
26186
26187         PR debug/39372
26188         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
26189         (gen_variable_die): Emit DW_AT_location on abstract static variable's
26190         DIE, don't emit it if abstract origin already has it.
26191         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
26192         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
26193
26194 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
26195
26196         * genpreds.c (needs_variable): Fix parentheses at variable name
26197         detection.
26198         (write_tm_constrs_h): Indent generated code.
26199
26200 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26201
26202         * doc/extend.texi (Function Attributes): Add documentation
26203         for isr attributes.
26204
26205 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
26206
26207         PR debug/39387
26208         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
26209         take locus from its DECL_SOURCE_LOCATION instead of input_location.
26210
26211 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
26212
26213         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
26214         the loop as bad.
26215
26216 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
26217
26218         PR debug/39379
26219         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
26220         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
26221
26222 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
26223
26224         * config/i386/i386.md (R8_REG, R9_REG): New constants.
26225         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
26226         constants instead of magic numbers.
26227         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
26228         (QI_REG_P): Ditto.
26229         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
26230         (x86_64_ms_abi_int_parameter_registers): Ditto.
26231         (x86_64_int_return_registers): Ditto.
26232         (ix86_maybe_switch_abi): Ditto.
26233         (ix86_expand_call): Ditto for clobbered_registers array.
26234         (ix86_hard_regno_mode_ok): Ditto.
26235         (x86_extended_QIreg_mentioned_p): Ditto.
26236
26237 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
26238
26239         PR tree-optimization/39349
26240         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
26241
26242         * combine.c (gen_lowpart_for_combine): Use omode when generating
26243         clobber.
26244
26245 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
26246
26247         PR rtl-optimization/39235
26248         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
26249
26250 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
26251
26252         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
26253
26254 2009-03-04  Richard Guenther  <rguenther@suse.de>
26255
26256         PR tree-optimization/39362
26257         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
26258         that occur in abnormal PHIs should be varying.
26259
26260 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
26261
26262         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
26263         Extend comments.
26264         (simple_iv):  Take loop as an argument instead of statement.
26265         * tree-scalar-evolution.h (simple_iv): Declaration changed.
26266         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
26267         to simple_iv.
26268         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
26269         Ditto.
26270         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
26271         * matrix-reorg.c (analyze_transpose): Ditto.
26272         * tree-data-ref.c (dr_analyze_innermost): Ditto.
26273         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
26274         * tree-predcom.c (ref_at_iteration): Ditto.
26275         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
26276
26277 2009-03-04  Richard Guenther  <rguenther@suse.de>
26278
26279         PR tree-optimization/39358
26280         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
26281         escaped_id and callused_id.
26282         (solve_graph): Likewise.
26283
26284 2009-03-04  Richard Guenther  <rguenther@suse.de>
26285
26286         PR tree-optimization/39339
26287         * tree-sra.c (try_instantiate_multiple_fields): Make it
26288         no longer ICE on the above.
26289
26290 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
26291
26292         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
26293         that fits within Pmode.
26294
26295 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
26296
26297         PR middle-end/10109
26298         * tm.texi (LIBCALL_VALUE): Update description.
26299
26300 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
26301
26302         PR middle-end/34443
26303         * doc/extend.texi (section): Update description.
26304
26305 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
26306
26307         PR middle-end/39345
26308         * tree-inline.c (remapped_type): New.
26309         (can_be_nonlocal): Call remapped_type instead of remap_type.
26310
26311 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
26312
26313         PR fortran/39354
26314         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
26315         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
26316
26317 2009-03-03  Richard Guenther  <rguenther@suse.de>
26318
26319         PR middle-end/39272
26320         * tree.c (tree_nonartificial_location): New function.
26321         * tree.h (tree_nonartificial_location): Declare.
26322         * builtins.c (expand_builtin_memory_chk): Provide location
26323         of the call location for artificial function pieces.
26324         (maybe_emit_chk_warning): Likewise.
26325         (maybe_emit_sprintf_chk_warning): Likewise.
26326         (maybe_emit_free_warning): Likewise.
26327         * expr.c (expand_expr_real_1): Likewise.
26328
26329 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
26330
26331         PR tree-optimization/39343
26332         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
26333         COMPONENT_REF t has ARRAY_TYPE.
26334
26335 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
26336
26337         PR middle-end/39335
26338         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
26339         when the type precision of the induction variable should be
26340         larger than the type precision of nit.
26341         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
26342         * graphite.c (graphite_loop_normal_form): Same.
26343         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
26344
26345 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
26346
26347         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
26348         (*call_1_rex64_ms_sysv): Use named constants instead of magic
26349         numbers to describe clobbered registers.
26350         (*call_value_0_rex64_ms_sysv): Ditto.
26351         * config/i386/mmx.md (mmx_emms): Ditto.
26352         (mmx_femms): Ditto.
26353
26354 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
26355
26356         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
26357         of ABI_64.
26358
26359 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26360
26361         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
26362         (spu_section_type_flags): New function.
26363
26364 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
26365
26366         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
26367         reg_class_contents of FLOAT_REGS into a temporary.
26368
26369 2009-03-02  Richard Guenther  <rguenther@suse.de>
26370             Ira Rosen  <irar@il.ibm.com>
26371
26372         PR tree-optimization/39318
26373         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
26374         information to the vectorized statement.
26375
26376 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
26377
26378         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
26379         variable.  Use defined names instead of magic constants for REX SSE
26380         registers.
26381
26382 2009-03-01  Richard Guenther  <rguenther@suse.de>
26383
26384         PR tree-optimization/39331
26385         * omp-low.c (lower_send_shared_vars): Do not receive new
26386         values for the reference of DECL_BY_REFERENCE parms or results.
26387
26388 2009-03-01  Jan Hubicka  <jh@suse.cz>
26389
26390         PR debug/39267
26391         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
26392         BLOCK_NONLOCALIZED_VAR): New macros.
26393         (tree_block): Add nonlocalized_vars.
26394         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
26395         gen_decl_die): Add origin argument.  Allow generation of die with
26396         origin at hand only.
26397         (gen_member_die, gen_type_die_with_usage, force_decl_die,
26398         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
26399         of gen_*.
26400         (gen_block_die): Fix checking for unused blocks.
26401         (process_scope_var): Break out from .... ; work with origins only.
26402         (decls_for_scope) ... here; process nonlocalized list.
26403         (dwarf2out_ignore_block): Look for nonlocalized vars.
26404         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
26405         vars.
26406         (dump_scope_block): Dump them.
26407         * tree-inline.c (remap_decls): Handle nonlocalized vars.
26408         (remap_block): Likewise.
26409         (can_be_nonlocal): New predicate.
26410         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
26411
26412 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26413
26414         * configure: Regenerate.
26415
26416 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26417
26418         * optc-gen.awk: No need to duplicate option flags twice.
26419         Reuse help texts for duplicate options which do not have any.
26420
26421         * gcc.c (display_help): Document --version.
26422
26423         * gcc.c (main): If print_help_list and verbose_flag, ensure
26424         driver output comes before subprocess output.
26425
26426         * optc-gen.awk: Assign all remaining fields to help string,
26427         space-separated, for multi-line help in *.opt.
26428
26429         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
26430         -Wno-pedantic-ms-format is for MinGW targets only.
26431
26432         * doc/options.texi (Option file format): Fix bad indentation,
26433         restoring dropped sentence.
26434
26435 2009-02-28  Jan Hubicka  <jh@suse.cz>
26436
26437         * tree-inline.c (tree_function_versioning): Output debug info.
26438
26439 2009-02-28  Jan Hubicka  <jh@suse.cz>
26440
26441         PR debug/39267
26442         * tree-inline.c (setup_one_parameter): Do not copy propagate
26443         arguments when not optimizing.
26444
26445 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
26446
26447         PR target/39327
26448         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
26449         (avx_addsubv4df3): Likewise.
26450         (*avx_addsubv4sf3): Likewise.
26451         (sse3_addsubv4sf3): Likewise.
26452         (*avx_addsubv2df3): Likewise.
26453         (sse3_addsubv2df3): Likewise.
26454         (avx_unpckhps256): Correct item selectors.
26455         (avx_unpcklps256): Likewise.
26456         (avx_unpckhpd256): Likewise.
26457         (avx_unpcklpd256): Likewise.
26458
26459 2009-02-28  Jan Hubicka  <jh@suse.cz>
26460
26461         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
26462         static vars.
26463         (copy_arguments_for_versioning): If var is declared don't declare it.
26464         (tree_function_versioning): First setup substitutions and then copy
26465         args.
26466
26467 2009-02-27  Jan Hubicka  <jh@suse.cz>
26468
26469         PR debug/39267
26470         * cgraph.h (varpool_output_debug_info): Remove.
26471         * cgraphunit.c (varpool_output_debug_info): Remove.
26472         * dwarf2out.c (deferred_locations_struct): New struct
26473         (deferred_locations): New type.
26474         (deferred_locations_list): New static var.
26475         (deffer_location): New function.
26476         (gen_variable_die): Use it.
26477         (decls_for_scope): Output info on local static vars.
26478         (dwarf2out_finish): Process deferred locations.
26479         * varpool.c (varpool_output_debug_info): Remove.
26480
26481 2009-02-27  Jan Hubicka  <jh@suse.cz>
26482
26483         PR debug/39267
26484         * tree.h (TREE_PROTECTED): Fix comment.
26485         (BLOCK_HANDLER_BLOCK): Remove.
26486         (struct tree_block): Remove handler_block add body_block.
26487         (inlined_function_outer_scope_p): New.
26488         (is_body_block): Remove.
26489         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
26490         * dwarf2out.c (is_inlined_entry_point): Remove.
26491         (add_high_low_attributes): Use inlined_function_outer_scope_p.
26492         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
26493         code.
26494         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
26495         * gimplify.c (gimplify_expr): Gimplify body blocks.
26496         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
26497         block with multiple subblocks.
26498         (dump_scope_block): Prettier output; dump more flags and info.
26499         (dump_scope_blocks): New.
26500         (remove_unused_locals): Use dump_scope_blocks.
26501         * tree-flow.h (dump_scope_blocks): Declare.
26502         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
26503         * stmt.c (is_body_block): Remove.
26504         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
26505         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
26506
26507 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
26508
26509         PR middle-end/39308
26510         * graphite.c (graphite_loop_normal_form): Do not call
26511         number_of_iterations_exit from a gcc_assert.
26512
26513 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26514
26515         * config/s390/s390.c (s390_swap_cmp): Look for conditional
26516         jumps if COND is NULL.
26517         (find_cond_jump): New function.
26518         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
26519         * config/s390/s390.md: Remove z10_cobra attribute value.
26520
26521 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
26522
26523         * config/alpha/alpha.h (alpha_expand_mov): Return false if
26524         force_const_mem returns NULL_RTX.
26525
26526 2009-02-26  Jan Hubicka  <jh@suse.cz>
26527
26528         PR debug/39267
26529         * cgraph.h (varpool_output_debug_info): Remove.
26530         * cgraphunit.c (varpool_output_debug_info): Remove.
26531         * dwarf2out.c (deferred_locations_struct): New struct
26532         (deferred_locations): New type.
26533         (deferred_locations_list): New static var.
26534         (deffer_location): New function.
26535         (gen_variable_die): Use it.
26536         (decls_for_scope): Output info on local static vars.
26537         (dwarf2out_finish): Process deferred locations.
26538         * varpool.c (varpool_output_debug_info): Remove.
26539
26540 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
26541
26542         PR rtl-optimization/39241
26543         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
26544         to subreg_offset_representable_p.
26545
26546 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
26547
26548         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
26549         execute function prototype.  Get f and nregs from max_reg_num
26550         and get_insns.  Remove the first backward pass as it's dead,
26551         guard the forward pass by flag_expensive_optimizations.
26552         (rest_of_handle_regmove): Delete.
26553         (pass_regmove): Replace it with regmove_optimize.
26554
26555 2009-02-25  Martin Jambor  <mjambor@suse.cz>
26556
26557         PR tree-optimization/39259
26558         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
26559         calls_alloca function flags.
26560         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
26561         calls are detected.
26562
26563 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
26564
26565         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
26566         flags_set_1_rtx, flags_set_1_set): Delete.
26567         (regmove_optimize): Do not call mark_flags_life_zones.
26568
26569 2009-02-24  Julian Brown  <julian@codesourcery.com>
26570
26571         PR target/35965
26572         * config/arm/arm.c (require_pic_register): Only set
26573         cfun->machine->pic_reg once per function.
26574
26575 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
26576
26577         * doc/invoke.texi (Link Options): Document an easier way to pass
26578         options that take arguments to the GNU linker using -Xlinker and -Wl.
26579
26580 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
26581
26582         PR target/33785
26583         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
26584
26585 2009-02-24  Richard Guenther  <rguenther@suse.de>
26586
26587         PR debug/39285
26588         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
26589
26590 2009-02-24  Richard Guenther  <rguenther@suse.de>
26591             Zdenek Dvorak  <ook@ucw.cz>
26592
26593         PR tree-optimization/39233
26594         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
26595         from converting them to a generic type.
26596
26597 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
26598
26599         PR tree-optimization/39260
26600         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
26601         contains a condition with a real type.
26602         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
26603
26604 2009-02-23  Jason Merrill  <jason@redhat.com>
26605
26606         PR c++/38880
26607         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
26608         narrowing_initializer_constant_valid_p.
26609         (narrowing_initializer_constant_valid_p): Don't return
26610         null_pointer_node for adding a pointer to itself.
26611
26612 2009-02-23  Jan Hubicka  <jh@suse.cz>
26613
26614         PR c/12245
26615         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
26616         resizing.
26617
26618 2009-02-23  Jan Hubicka  <jh@suse.cz>
26619
26620         PR tree-optimization/37709
26621         * tree.c (block_ultimate_origin): Move here from dwarf2out.
26622         * tree.h (block_ultimate_origin): Declare.
26623         * dwarf2out.c (block_ultimate_origin): Move to tree.c
26624         * tree-ssa-live.c (remove_unused_scope_block_p):
26625         Eliminate blocks containig no instructions nor live variables nor
26626         nested blocks.
26627         (dump_scope_block): New function.
26628         (remove_unused_locals): Enable removal of dead blocks by default;
26629         enable dumping at TDF_DETAILS.
26630
26631 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
26632
26633         * config/i386/i386.c (classify_argument): Don't allow COImode
26634         and OImode.
26635         (function_arg_advance_32): Don't allow OImode.
26636         (function_arg_32): Likewise.
26637         (function_value_32): Likewise.
26638         (return_in_memory_32): Likewise.
26639         (function_arg_64): Remove OImode comment.
26640
26641 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
26642
26643         PR target/39261
26644         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
26645         ix86_expand_vector_set for V4DImode in 64bit mode only.
26646         (ix86_expand_vector_init_one_var): Likewise.
26647
26648 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
26649
26650         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
26651
26652 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
26653
26654         PR bootstrap/39257
26655         * loop-iv.c: Revert last change.
26656         * emit-rtl.c: Likewise.
26657
26658 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
26659
26660         PR target/39256
26661         * config/i386/i386.c (type_natural_mode): Remove an extra
26662         space in the warning message.
26663         (function_value_32): Handle 32-byte vector modes.
26664         (return_in_memory_32): Likewise.
26665
26666 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
26667
26668         * loop-iv.c (truncate_value): New function.
26669         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
26670         of lowpart_subreg.
26671         (lowpart_subreg): Move to...
26672         * emit-rtl.c: ...here.
26673
26674 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
26675
26676         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
26677         accidental and undocumented change at revision 140860.
26678
26679 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
26680
26681         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
26682         take gimple_seq * arguments.
26683         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
26684         types_compatible_p langhook.
26685
26686 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
26687             Joseph Myers  <joseph@codesourcery.com>
26688
26689         * config/arm/arm.c (arm_builtin_va_list): New function.
26690         (arm_expand_builtin_va_start): Likewise.
26691         (arm_gimplify_va_arg_expr): Likewise.
26692         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
26693         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
26694         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
26695         (va_list_type): New variable.
26696         (arm_mangle_type): Mangle va_list_type appropriately.
26697
26698 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
26699
26700         PR middle-end/39157
26701         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
26702         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
26703         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
26704         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
26705         parameter to 1000 for -O1 by default.
26706         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
26707         parameter.
26708         * loop-invariant.c: Include params.h.
26709         (move_loop_invariants): Don't call move_single_loop_invariants on
26710         very large loops.
26711
26712 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
26713
26714         * calls.c (emit_library_call_value_1): Use slot_offset instead of
26715         offset when calculating bounds for indexing stack_usage_map.  Fixes
26716         a buffer overflow with certain target setups.
26717
26718 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
26719
26720         PR target/39240
26721         * calls.c (expand_call): Clear try_tail_call if caller and callee
26722         disagree in promotion of function return value.
26723
26724 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
26725
26726         PR target/39175
26727         * c-common.c (c_determine_visibility): If visibility changed and
26728         DECL_RTL has been already set, call make_decl_rtl to update symbol
26729         flags.
26730
26731 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
26732
26733         PR c++/39188
26734         * varasm.c (assemble_variable): Don't check DECL_NAME when
26735         globalizing a variable.
26736
26737 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
26738
26739         PR c/38483
26740         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
26741         expression before any __builtin_trap call.
26742         * c-typeck.c (build_function_call): Convert and check function
26743         arguments before generating a call to a trap.  Evaluate the
26744         function arguments before the trap.
26745
26746 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
26747
26748         PR target/39228
26749         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
26750         (UNSPEC_FXAM_MEM): New unspec.
26751         (fxam<mode>2_i387_with_temp): New insn and split pattern.
26752         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
26753         memory using fxam<mode>2_i387_with_temp to remove excess precision.
26754
26755 2009-02-19  Richard Guenther  <rguenther@suse.de>
26756
26757         PR tree-optimization/39207
26758         PR tree-optimization/39074
26759         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
26760         storedanything_tree): New.
26761         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
26762         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
26763         (build_succ_graph): Add edges from STOREDANYTHING to all
26764         non-direct nodes.
26765         (init_base_vars): Initialize STOREDANYTHING.
26766         (compute_points_to_sets): Free substitution info after
26767         building the succ graph.
26768         (ipa_pta_execute): Likewise.
26769
26770         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
26771         field.
26772         (do_ds_constraint): Do not add to special var or non-pointer
26773         field solutions.
26774         (type_could_have_pointers): Split out from ...
26775         (could_have_pointers): ... here.  For arrays use the element type.
26776         (create_variable_info_for): Initialize may_have_pointers.
26777         (new_var_info): Likewise.
26778         (handle_lhs_call): Make the HEAP variable unknown-sized.
26779         (intra_create_variable_infos): Use a type with pointers for
26780         PARM_NOALIAS, make it unknown-sized.
26781
26782 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
26783
26784         PR target/39224
26785         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
26786
26787 2009-02-18  Jason Merrill  <jason@redhat.com>
26788
26789         PR target/39179
26790         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
26791         value if DECL_EXTERNAL.
26792         * tree-sra.c (sra_walk_gimple_assign): Likewise.
26793         * target.h (gcc_target::binds_local_p): Clarify "module".
26794         * tree.h (TREE_PUBLIC): Clarify "module".
26795
26796 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
26797
26798         PR target/38891
26799         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
26800         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
26801
26802 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
26803
26804         PR target/39082
26805         * c.opt (Wabi): Support C and ObjC.
26806         (Wpsabi): New.
26807
26808         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
26809
26810         * config/i386/i386.c (classify_argument): Warn once about the ABI
26811         change when passing union with long double.
26812
26813         * doc/invoke.texi: Update -Wabi for warning psABI changes.
26814
26815 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
26816
26817         PR c/35447
26818         * c-parser.c (c_parser_compound_statement): Always enter and leave
26819         a scope.
26820
26821 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26822
26823         PR target/34587
26824         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
26825
26826 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
26827
26828         PR tree-optimization/36922
26829         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
26830         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
26831         Likewise.
26832
26833 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
26834
26835         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
26836         to 0 for EABI64.
26837
26838 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
26839
26840         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
26841
26842 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
26843
26844         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
26845         tree sharing.
26846
26847 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
26848             Richard Sandiford  <rdsandiford@googlemail.com>
26849
26850         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
26851         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
26852         (loongson_biadd): ...this.
26853
26854 2009-02-17  Richard Guenther  <rguenther@suse.de>
26855
26856         PR tree-optimization/39202
26857         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
26858         a var make sure to follow existing collapses.
26859
26860 2009-02-17  Richard Guenther  <rguenther@suse.de>
26861
26862         PR middle-end/39214
26863         * langhooks.c (lhd_print_error_function): Check for NULL block.
26864
26865 2009-02-17  Richard Guenther  <rguenther@suse.de>
26866
26867         PR tree-optimization/39204
26868         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
26869         of the PHI arg.
26870
26871 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
26872
26873         * config/soft-fp/double.h: Update from glibc CVS.
26874
26875 2009-02-17  Richard Guenther  <rguenther@suse.de>
26876
26877         PR tree-optimization/39207
26878         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
26879         strict-aliasing warnings for pointers pointing to NULL.
26880
26881 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
26882
26883         PR c/35446
26884         * c-parser.c (c_parser_braced_init): Call pop_init_level when
26885         skipping until next close brace.
26886
26887 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
26888
26889         PR target/37049
26890         * config/i386/i386.c (ix86_expand_push): Set memory alignment
26891         to function argument boundary.
26892
26893 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
26894
26895         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
26896         in the lea_add. Reload eventually constraints it properly.
26897         * config/picochip/constraints.md: Remove the target constraint
26898         "b", since it is not needed anymore.
26899
26900 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
26901
26902         * gthr-dce.h: Uglify function parameter and local variable names.
26903         * gthr-gnat.h: Likewise.
26904         * gthr-mipssde.h: Likewise.
26905         * gthr-nks.h: Likewise.
26906         * gthr-posix95.h: Likewise.
26907         * gthr-posix.h: Likewise.
26908         * gthr-rtems.h: Likewise.
26909         * gthr-single.h: Likewise.
26910         * gthr-solaris.h: Likewise.
26911         * gthr-tpf.h: Likewise.
26912         * gthr-vxworks.h: Likewise.
26913         * gthr-win32.h: Likewise.
26914
26915 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
26916
26917         PR target/39196
26918         * config/i386/i386.md: Restrict the new peephole2 to move
26919         between MMX/SSE registers.
26920
26921 2009-02-15  Richard Guenther  <rguenther@suse.de>
26922
26923         Revert
26924         2009-02-13  Richard Guenther  <rguenther@suse.de>
26925
26926         * configure.ac: Enable LFS.
26927         * configure: Re-generate.
26928         * config.in: Likewise.
26929
26930 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26931
26932         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
26933         spu_srqwbyte, spu_srqwbytebc): Define.
26934         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
26935         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
26936         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
26937         "shrqby_<mode>"): New insn-and-split patterns.
26938         * config/spu/spu.c (expand_builtin_args): Determine and return
26939         number of operands using spu_builtin_description data.
26940         (spu_expand_builtin_1): Use it.
26941
26942 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
26943
26944         PR target/38056
26945         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
26946         TARGET_CONST_GP.
26947
26948 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
26949
26950         PR target/39149
26951         * config/i386/i386.c (override_options): Correct warning
26952         messages for -malign-loops, -malign-jumps and -malign-functions.
26953
26954 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
26955
26956         PR target/39152
26957         * config/i386/i386.md: Restrict the new peephole2 to move
26958         between the general purpose registers.
26959
26960 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
26961
26962         PR target/39162
26963         * config/i386/i386.c (type_natural_mode): Add a new argument.
26964         Return the original mode and warn ABI change if vector size is 32byte.
26965         (function_arg_advance): Updated.
26966         (function_arg): Likewise.
26967         (ix86_function_value): Likewise.
26968         (ix86_return_in_memory): Likewise.
26969         (ix86_sol10_return_in_memory): Likewise.
26970         (ix86_gimplify_va_arg): Likewise.
26971         (function_arg_32): Don't warn ABX ABI change here.
26972         (function_arg_64): Likewise.
26973
26974 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
26975
26976         * loop-iv.c (implies_p): In the final case, test that operands 0
26977         of the two comparisons match.
26978
26979         * config/bfin/bfin.c (find_prev_insn_start): New function.
26980         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
26981         (find_next_insn_start): Move.
26982
26983 2009-02-13  Richard Guenther  <rguenther@suse.de>
26984
26985         * configure.ac: Enable LFS.
26986         * configure: Re-generate.
26987         * config.in: Likewise.
26988
26989 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
26990
26991         PR c/35444
26992         * c-parser.c (c_parser_parms_list_declarator): Discard pending
26993         sizes on syntax error after some arguments have been parsed.
26994
26995 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
26996
26997         * doc/invoke.texi (-fira): Remove.
26998
26999 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
27000
27001         * caller-save.c: Replace regclass.c with reginfo.c in comments.
27002         * recog.c: Likewise.
27003         * rtl.h: Likewise.
27004
27005 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
27006
27007         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
27008         (umul_ppmm): Likewise.
27009         (count_leading_zeros): Likewise.
27010         (count_trailing_zeros): Likewise.
27011         (UMUL_TIME): Likewise.
27012
27013 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
27014
27015         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
27016         soft-fp/t-softfp to tmake_file.
27017
27018         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
27019         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
27020         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
27021         IA64_BUILTIN_INFQ]: New.
27022         (ia64_init_builtins): Initialize __builtin_infq,
27023         __builtin_fabsq and __builtin_copysignq if not HPUX.
27024         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
27025         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
27026
27027         * config/ia64/lib1funcs.asm (__divtf3): Define only if
27028         SHARED is defined.
27029         (__fixtfti): Likewise.
27030         (__fixunstfti): Likewise.
27031         (__floattitf): Likewise.
27032
27033         * config/ia64/libgcc-glibc.ver: New.
27034         * config/ia64/t-fprules-softfp: Likewise.
27035         * config/ia64/sfp-machine.h: Likewise.
27036
27037         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
27038         (LIBGCC2_TF_CEXT): Likewise.
27039         (TF_SIZE): Likewise.
27040         (TARGET_INIT_LIBFUNCS): Likewise.
27041
27042         * config/ia64/t-glibc (SHLINB_MAPFILES):
27043         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
27044
27045 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
27046
27047         * config/i386/i386.c (construct_container): Rewrite processing
27048         BLKmode with X86_64_SSE_CLASS.
27049
27050 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
27051
27052         PR target/39152
27053         * config/i386/i386.md: Replace simplify_replace_rtx with
27054         replace_rtx in the new peephole2.
27055
27056 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
27057
27058         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
27059         loop unrolling do not happen at -O2.
27060
27061 2009-02-12  Michael Matz  <matz@suse.de>
27062
27063         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
27064
27065 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
27066
27067         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
27068         for -g3.
27069
27070 2009-02-12  Ben Elliston  <bje@au.ibm.com>
27071
27072         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
27073         patterns when updating the back chain.  Missed in the 2009-02-10
27074         change.
27075
27076 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
27077
27078         * doc/extend.texi (Decimal Floating Types): Update identifier of
27079         draft TR and list of missing support.
27080
27081 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
27082
27083         PR middle-end/39154
27084         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
27085         bit to variable length decl's flags, add it also to its
27086         pointer replacement variable.
27087
27088 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
27089             Jakub Jelinek  <jakub@redhat.com>
27090
27091         PR target/39118
27092         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
27093         (memory_blockage): New expander.
27094         (*memory_blockage): New insn pattern.
27095         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
27096         instead of general blockage at the end of function prologue when
27097         frame pointer is used to access red zone area.  Do not emit blockage
27098         when profiling, it is emitted in generic code.
27099         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
27100         function epilogue when frame pointer is used to access red zone area.
27101
27102 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
27103
27104         PR target/38824
27105         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
27106         by arithmetic with memory operands.
27107         * config/i386/predicates.md (commutative_operator): New.
27108
27109 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
27110
27111         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
27112         bulleted lists.
27113
27114 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
27115
27116         * alias.h (record_alias_subset): Declare.
27117         * alias.c (record_alias_subset): Make global.
27118
27119 2009-02-10  Nick Clifton  <nickc@redhat.com>
27120
27121         * tree-parloops.c: Change license to GPLv3.
27122         * ipa-struct-reorg.c: Change license to GPLv3.
27123         * ipa-struct-reorg.h: Change license to GPLv3.
27124
27125 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
27126
27127         PR c/39084
27128         * c-decl.c (start_struct): Return NULL on error.
27129
27130 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
27131
27132         PR middle-end/39124
27133         * cfgloopmanip.c (remove_path): Call remove_bbs after
27134         cancel_loop_tree, not before it.
27135
27136         PR target/39139
27137         * function.h (struct function): Add has_local_explicit_reg_vars bit.
27138         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
27139         VAR_DECLs were seen.
27140         * tree-ssa-live.c (remove_unused_locals): Recompute
27141         cfun->has_local_explicit_reg_vars.
27142         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
27143         copies or clearings if cfun->has_local_explicit_reg_vars.
27144
27145 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
27146
27147         PR target/39118
27148         * config/i386/i386.c (expand_prologue): Emit blockage at the end
27149         of function prologue when frame pointer is used to access
27150         red zone area.
27151
27152 2009-02-10  Richard Guenther  <rguenther@suse.de>
27153
27154         PR middle-end/39127
27155         * gimplify.c (gimple_regimplify_operands): Always look if
27156         we need to create a temporary.
27157
27158 2009-02-10  Richard Guenther  <rguenther@suse.de>
27159
27160         PR tree-optimization/39132
27161         * tree-loop-distribution.c (todo): New global var.
27162         (generate_memset_zero): Trigger TODO_rebuild_alias.
27163         (tree_loop_distribution): Return todo.
27164
27165 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
27166
27167         PR target/39119
27168         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
27169         (x86_64_reg_class_name): Removed.
27170         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
27171         first one isn't X86_64_SSE_CLASS or any other ones aren't
27172         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
27173         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
27174         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
27175         and 3 X86_64_SSEUP_CLASS.
27176         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
27177         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
27178
27179 2009-02-10  Ben Elliston  <bje@au.ibm.com>
27180
27181         * config/rs6000/rs6000.md (allocate_stack): Always use an update
27182         form instruction to update the stack back chain word, even if the
27183         user has disabled the generation of update instructions.
27184         (movdi_<mode>_update_stack): New.
27185         (movsi_update_stack): Likewise.
27186         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
27187         always use an update form instruction to update the stack back
27188         chain word.
27189
27190 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
27191
27192         PR middle-end/38953
27193         * graphite.c (if_region_set_false_region): After moving a region in
27194         the false branch of a condition, remove the empty dummy basic block.
27195         (gloog): Remove wrong fix for PR38953.
27196
27197 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27198
27199         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
27200         generation due to implicit sign extension.
27201
27202 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
27203
27204         PR middle-end/38981
27205         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
27206         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
27207
27208 2009-02-09  Richard Guenther  <rguenther@suse.de>
27209
27210         PR middle-end/35202
27211         * convert.c (convert_to_real): Disable (float)fn((double)x)
27212         to fnf(x) conversion if errno differences may occur and
27213         -fmath-errno is set.
27214
27215 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
27216
27217         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
27218         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
27219         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
27220
27221 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
27222
27223         PR c/35434
27224         * c-common.c (handle_alias_attribute): Disallow attribute for
27225         anything not a FUNCTION_DECL or VAR_DECL.
27226
27227 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
27228
27229         PR c/39035
27230         * real.c (do_compare): Special-case compare of zero against
27231         decimal float value.
27232
27233 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
27234
27235         PR c/36432
27236         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
27237         as indicating flexible array members unless the field itself is
27238         being declarared as the incomplete array.
27239
27240 2009-02-06  Jan Hubicka  <jh@suse.cz>
27241
27242         PR tree-optimization/38844
27243         * ipa-inline.c (try_inline): Stop inlining recursion when edge
27244         is already inlined.
27245
27246 2009-02-06  Richard Guenther  <rguenther@suse.de>
27247
27248         PR middle-end/38977
27249         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
27250         fork because we may expand it as __gcov_fork.
27251
27252 2009-02-06  Nick Clifton  <nickc@redhat.com>
27253
27254         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
27255
27256 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
27257
27258         PR tree-optimization/35659
27259         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
27260         vn_phi_eq): Shortcut if hashcode does not match.
27261         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
27262         NULL operands.
27263         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
27264         and avoid iterative_hash_expr.
27265         (FOR_EACH_VALUE_ID_IN_SET): New.
27266         (value_id_compare): Remove.
27267         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
27268         sort expressions by value id.
27269
27270 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
27271
27272         PR target/38991
27273         * config/sh/predicates.md (general_movsrc_operand): Don't check
27274         the subreg of system registers here.
27275
27276 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
27277
27278         PR c++/39106
27279         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
27280         on the copied decl.
27281
27282 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
27283
27284         PR rtl-optimization/39110
27285         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
27286         addresses, not aligned ones.
27287
27288 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
27289             Richard Guenther  <rguenther@suse.de>
27290
27291         PR tree-optimization/39100
27292         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
27293         comment says and add edges.
27294
27295 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
27296
27297         PR c/35435
27298         * c-common.c (handle_tls_model_attribute): Ignore attribute for
27299         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
27300
27301 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
27302
27303         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
27304         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
27305         register_bb_in_sese, new_sese, free_sese): Moved.
27306         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
27307         outermost_loop_in_scop, build_scop_iteration_domain,
27308         expand_scalar_variables_ssa_name, get_vdef_before_scop,
27309         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
27310         Use loop_in_sese_p instead of loop_in_scop_p.
27311         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
27312         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
27313         (scopdet_basic_block_info): Fix bug in scop detection.
27314         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
27315         eq_loop_to_cloog_loop): Remove.
27316         (nb_loops_around_loop_in_scop, nb_loop
27317         ref_nb_loops): Moved here...
27318         * graphite.h (ref_nb_loops): ... from here.
27319         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
27320         (loop_domain_dim, loop_iteration_vector_dim): Remove.
27321         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
27322
27323 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
27324             Hans-Peter Nilsson  <hp@axis.com>
27325
27326         PR rtl-optimization/37889
27327         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
27328         Move offset handling from PLUS to before the switch.  Use new
27329         arguments when considering SYMBOL_REFs too.
27330         (rtx_addr_can_trap_p): Pass dummy offset and size.
27331         (enum may_trap_p_flags): Remove.
27332         (may_trap_p_1): Pass size from MEM_SIZE.
27333
27334         PR rtl-optimization/38921
27335         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
27336         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
27337         * rtlanal.c (may_trap_after_code_motion_p): Delete.
27338         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
27339
27340 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
27341
27342         AVX Programming Reference (January, 2009)
27343         * config/i386/sse.md (*vpclmulqdq): New.
27344
27345 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
27346
27347         PR tree-optimization/38977
27348         PR gcov-profile/38292
27349         * calls.c (special_function_p): Disregard __builtin_ prefix.
27350
27351 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
27352
27353         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
27354         non-indexable addresses even before reload.
27355
27356 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
27357
27358         PR c/29129
27359         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
27360         as having variable size.  Do not give an error for unnamed
27361         parameters with [*] declarators.  Give a warning for type names
27362         with [*] declarators and mark them as variable size.
27363         * c-parser.c (c_parser_sizeof_expression): Do not give an error
27364         for sizeof applied to [*] type names.
27365
27366 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
27367
27368         PR C++/36607
27369         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
27370
27371 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
27372
27373         * gcc.c (process_command): Update copyright notice dates.
27374         * gcov.c (print_version): Likewise.
27375         * gcov-dump.c (print_version): Likewise.
27376         * mips-tfile.c (main): Likewise.
27377         * mips-tdump.c (main): Likewise.
27378
27379 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
27380
27381         PR c/35433
27382         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
27383         for composite type involving a zero-length array type.
27384
27385 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
27386
27387         PR target/35318
27388         * function.c (match_asm_constraints_1): Skip over
27389         initial optional % in the constraint.
27390
27391         PR inline-asm/39059
27392         * c-parser.c (c_parser_postfix_expression): If fixed point is not
27393         supported, don't accept FIXED_CSTs.
27394         * c-decl.c (finish_declspecs): Error if fixed point is not supported
27395         and _Sat is used without _Fract/_Accum.  Set specs->type to
27396         integer_type_node for cts_fract/cts_accum if fixed point is not
27397         supported.
27398
27399 2009-02-02  Catherine Moore  <clm@codesourcery.com>
27400
27401         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
27402
27403 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
27404
27405         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
27406         (ABI_HAS_64BIT_SYMBOLS): Use it.
27407         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
27408
27409 2009-02-02  Paul Brook  <paul@codesourcery.com>
27410
27411         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
27412
27413 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
27414
27415         PR inline-asm/39058
27416         * recog.h (asm_operand_ok): Add constraints argument.
27417         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
27418         recurse on matching constraint.
27419         (check_asm_operands): Pass constraints as 3rd argument to
27420         asm_operand_ok.  Don't look up matching constraint here.
27421         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
27422         to asm_operand_ok.
27423
27424 2009-02-02  Ben Elliston  <bje@au.ibm.com>
27425
27426         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
27427         TARGET_NARROW_VOLATILE_BITFIELD macro names.
27428
27429 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27430
27431         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
27432         information.  Remove some obsolete information.  Reorganize.
27433
27434         * config/pa/fptr.c: Revert license to GPL 2.
27435         * config/pa/milli64.S: Likewise.
27436
27437 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
27438
27439         PR target/38904
27440         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
27441         LIBRARY name in, instead of hard-coding it.
27442         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
27443         extra target make frag to tmake_files according to EH model.
27444         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
27445         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
27446         frags that define makefile variable EH_MODEL appropriately.
27447         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
27448         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
27449         to "-sjlj" according to type of EH configured.
27450         (LIBGCC_SONAME):  Concatenate it to shared library base name.
27451         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
27452         to "_sjlj" according to type of EH configured.
27453         (LIBGCC_SONAME):  Concatenate it to shared library base name.
27454         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
27455         (SHLIB_LINK):  Add missing semicolon to if-else construct.
27456         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
27457         string value of "pe_dll" command-line option.
27458         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
27459         (SHLIB_SONAME):  Use it when overriding t-cygming default.
27460         (SHLIB_IMPLIB):  Override t-cygming default.
27461         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
27462         string value of "pe_dll" command-line option.
27463
27464 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
27465
27466         PR target/38952
27467         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
27468         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
27469
27470 2009-01-31  Richard Guenther  <rguenther@suse.de>
27471
27472         PR tree-optimization/38937
27473         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
27474         computing the transitive closure.
27475
27476 2009-01-30  Richard Guenther  <rguenther@suse.de>
27477
27478         PR tree-optimization/39041
27479         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
27480         Propagate variable indices only if the types match for this stmt.
27481
27482 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
27483
27484         PR target/39013
27485         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
27486         inline but never defined.
27487
27488 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
27489
27490         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
27491         (*insv_h_di_reg_extimm): New insn.
27492         (*insv_l<mode>_reg_extimm): New insn.
27493
27494 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
27495
27496         * config/picochip/picochip.c (flag_conserve_stack): set
27497         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
27498         fconserve-stack. Reduce call-overhead used by inliner.
27499
27500 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
27501
27502         PR/38157
27503         * common.opt (flag_conserve_stack): Initialised to zero.
27504
27505 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
27506
27507         PR/39002
27508         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
27509         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
27510         method.
27511
27512 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
27513
27514         * ira-color.c (allocno_reload_assign): Update comments.
27515         * regmove.c (regmove_optimize): Likewise.
27516
27517         * ra.h: Removed.
27518
27519 2009-01-29  Robert Millan  <rmh@aybabtu.com>
27520
27521         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
27522         * config/i386/kopensolaris-gnu.h: New file.  Undefine
27523         `MD_UNWIND_SUPPORT'.
27524         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
27525
27526 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
27527
27528         PR tree-optimization/39007
27529         * tree-loop-distribution.c (generate_builtin): Use
27530         recompute_dominator to compute the immediate dominator of the
27531         basic block just after the loop.
27532
27533 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
27534
27535         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
27536         (ASM_OUTPUT_DWARF_PCREL): Define.
27537
27538 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
27539
27540         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
27541         * doc/passes.texi: Remove entries about regclass, local-alloc, and
27542         global.  Modify entries about regmove and IRA.
27543
27544         * ra-conflict.c: Remove the file.
27545
27546         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
27547
27548         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
27549         (pass_regclass_init): Rename to pass_reginfo_init.
27550
27551         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
27552
27553         * toplev.h (flag_ira): Remove.
27554
27555         * caller-save.c (setup_save_areas): Remove flag_ira.
27556
27557         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
27558
27559         * global.c: Remove the file.
27560
27561         * opts.c (decode_options): Remove flag_ira.
27562
27563         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
27564
27565         * regmove.c: Modify file description.
27566         (find_use_as_address, try_auto_increment): Define them only if
27567         AUTO_INC_DEC is defined.
27568         (replacement_quality, replace_in_call_usage, fixup_match_1,
27569         stable_and_no_regs_but_for_p): Remove.
27570         (reg_set_in_bb): Make it static.
27571         (regmove_optimize): Remove flag_ira and code which worked for
27572         !flag_ira.
27573
27574         * local-alloc.c: Remove the file.
27575
27576         * common.opt (fira): Remove.
27577
27578         * ira.c: Include except.h.
27579         (eliminable_regset): Move from global.c.
27580         (mark_elimination): Ditto.  Remove flag_ira.
27581         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
27582         equiv_mem_modified, validate_equiv_mem_from_store,
27583         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
27584         contains_replace_regs, memref_referenced_p, memref_used_between_p,
27585         no_equiv, recorded_label_ref): Move from local-alloc.c.
27586         (update_equiv_regs): Ditto.  Make it static.
27587         (print_insn_chain, print_insn_chains): Move it from global.c.
27588         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
27589         (build_insn_chain): Ditto.  Make it static.
27590         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
27591         Rename to init_live_subregs.
27592         (gate_ira): Remove flag_ira.
27593
27594         * regclass.c: Rename reginfo.c.  Change file description.
27595         (FORBIDDEN_INC_DEC_CLASSES): Remove.
27596         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
27597         (init_reg_sets_1): Remove code for evaluation of
27598         reg_class_superclasses and losing_caller_save_reg_set.
27599         (init_regs): Remove init_reg_autoinc.
27600         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
27601         ok_for_base_p_nonstrict): Remove.
27602         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
27603         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
27604         corresponding entries.
27605         (dump_regclass, record_operand_costs, scan_one_insn,
27606         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
27607         record_address_regs, auto_inc_dec_reg_p): Remove.
27608         (gt-regclass.h): Rename to gt-reginfo.h.
27609
27610         * rtl.h (dump_global_regs, retry_global_alloc,
27611         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
27612
27613         * Makefile.in (RA_H): Remove.
27614         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
27615         Rename regclass.o to reginfo.o.
27616         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
27617         gt-reginfo.h.
27618         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
27619         (GTFILES): Rename regclass.c to reginfo.c.
27620
27621         * passes.c (init_optimization_passes): Remove pass_local_alloc and
27622         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
27623
27624         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
27625         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
27626         Remove flag_ira.
27627         (finish_spills): Ditto.  Remove code for !flag_ira.
27628
27629 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
27630
27631         PR middle-end/35854
27632         * doc/invoke.texi (rtl debug options): Complete rewrite.
27633         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
27634         to auto_inc_dec".
27635         * mode-switching.c (pass_mode_switching): Rename pass from
27636         "mode-sw" to "mode_sw".
27637         * except.c (pass_convert_to_eh_ranges): Rename pass from
27638         "eh-ranges" to "eh_ranges".
27639         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
27640         to "subreg1".
27641
27642
27643 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
27644             Alexander Monakov  <amonakov@ispras.ru>
27645
27646         PR middle-end/38857
27647         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
27648         register.
27649         (move_exprs_to_boundary): Change return type and pass through
27650         should_move from move_op.  Relax assert.  Update usage ...
27651         (schedule_expr_on_boundary): ... here.  Use should_move instead of
27652         cant_move.
27653         (move_op_orig_expr_found): Indicate that insn was disconnected from
27654         stream.
27655         (code_motion_process_successors): Do not call after_merge_succs
27656         callback if original expression was not found when traversing any of
27657         the branches.
27658         (code_motion_path_driver): Change return type.  Update prototype.
27659         (move_op): Update comment.  Add a new parameter (should_move).  Update
27660         prototype.  Set *should_move based on indication provided by
27661         move_op_orig_expr_found.
27662
27663 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
27664
27665         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
27666         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
27667         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
27668         * config/rs6000/rs6000.c (rs6000_override_options): Default
27669         avoid-indexed-addresses on for Power6, off for everything else.
27670         (avoiding_indexed_address_p): New function.
27671         (rs6000_legitimize_address): Use it.
27672         (rs6000_legitimate_address): Likewise.
27673         * config/rs6000/rs6000.md (movXX_updateX): Likewise
27674
27675 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
27676
27677         PR tree-optimization/38997
27678         * tree-loop-distribution.c (generate_memset_zero): Use
27679         POINTER_PLUS_EXPR for a pointer addition.
27680
27681 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
27682
27683         * config/s390/s390.md (bswap<mode>2): New pattern added.
27684
27685 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
27686
27687         * config/s390/s390.md (*tls_load_31): Added type attribute.
27688
27689 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
27690
27691         * config/s390/s390.md: Fix a few comments.
27692
27693 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
27694
27695         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
27696         (*tm<mode>_full): Fixed z10prop attribute.
27697         (*tst<mode>_extimm): Fixed z10prop attribute.
27698         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
27699         (*tstqiCCT_cconly): Fixed z10prop attribute.
27700         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
27701         (*movsi_larl): Fixed z10prop attribute.
27702         (*movsi_zarch): Fixed z10prop attribute.
27703         (*movsi_eas): Fixed z10prop attribute.
27704         (*movhi): Fixed z10prop attribute.
27705         (*movqi): Fixed z10prop attribute.
27706         (*movstrictqi): Fixed z10prop attribute.
27707         (*mov<mode>): Fixed z10prop attribute.
27708         (*movcc): Fixed z10prop attribute.
27709         (*sethighpartdi_64): Fixed z10prop attribute.
27710         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
27711         (*negdi2_sign_cc): Fixed z10prop attribute.
27712         (*negdi2_sign): Fixed z10prop attribute.
27713         (*absdi2_sign_cc): Fixed z10prop attribute.
27714         (*absdi2_sign): Fixed z10prop attribute.
27715         (*negabsdi2_sign_cc): Fixed z10prop attribute.
27716         (*negabsdi2_sign): Fixed z10prop attribute.
27717         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
27718         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
27719         (doloop_si64): Fixed z10prop attribute.
27720         (doloop_si31): Fixed z10prop attribute.
27721         (doloop_long): Fixed z10prop attribute.
27722         (indirect_jump): Fixed z10prop attribute.
27723         (nop): Fixed z10prop attribute.
27724         (main_base_64): Fixed z10prop attribute.
27725         (reload_base_64): Fixed z10prop attribute.
27726
27727 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
27728
27729         PR rtl-optimization/38740
27730         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
27731         if !optimize.
27732         * config/mips/mips.c (mips_reorg): Likewise.
27733
27734 2009-01-28  Richard Guenther  <rguenther@suse.de>
27735
27736         PR tree-optimization/38926
27737         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
27738         with the correct value id to a value.
27739         (do_regular_insertion): Use the value number of edoubleprime
27740         for the value number of the expr.
27741
27742         Revert
27743         2008-08-21  Richard Guenther  <rguenther@suse.de>
27744
27745         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
27746         a PHI ask VN if it is already available.
27747         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
27748         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
27749
27750 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
27751
27752         PR middle-end/38934
27753         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
27754         set to varying whenever max has TREE_OVERFLOW set, similarly
27755         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
27756
27757 2009-01-28  Richard Guenther  <rguenther@suse.de>
27758
27759         PR middle-end/38908
27760         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
27761         uninitialized aggregate uses in call arguments.
27762
27763 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
27764
27765         PR tree-optimization/38984
27766         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
27767         the nothing_id variable if -fno-delete-null-pointer-checks.
27768
27769 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
27770
27771         PR target/38988
27772         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
27773         (set_got_offset_rex64): Ditto.
27774
27775 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
27776
27777         PR target/38941
27778         * doc/extend.texi: Improve local variable with asm reg.
27779
27780 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
27781
27782         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
27783         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
27784         was not supplied then set warn_packed_bitfield_compat to the
27785         default value of 1.
27786         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
27787         against 1.
27788
27789 2009-01-27  Richard Guenther  <rguenther@suse.de>
27790
27791         PR tree-optimization/38503
27792         * cfgexpand.c (expand_gimple_basic_block): Ignore
27793         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
27794         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
27795         variables that cannot have TBAA applied.
27796         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
27797         statements.
27798
27799 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
27800
27801         PR middle-end/38969
27802         * calls.c (initialize_argument_information): Do not wrap complex
27803         arguments in SAVE_EXPR.
27804
27805 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
27806
27807         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
27808         (INSTALL_LIBGCC): Revert typo commit.
27809
27810 2009-01-26  Richard Guenther  <rguenther@suse.de>
27811
27812         PR tree-optimization/38745
27813         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
27814         from special handling.
27815
27816 2009-01-26  Richard Guenther  <rguenther@suse.de>
27817
27818         PR tree-optimization/38745
27819         * tree-ssa.c (execute_update_addresses_taken): Do not include
27820         variables that cannot possibly be a register in not_reg_needs.
27821         Do not clear TREE_ADDRESSABLE on vars that may not become
27822         registers.
27823         * tree-ssa.c (update_alias_info_1): Include those in the set
27824         of addressable vars.
27825
27826 2009-01-26  Richard Guenther  <rguenther@suse.de>
27827
27828         PR middle-end/38851
27829         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
27830         * tree-ssa-dse.c: Include langhooks.h
27831         (execute_simple_dse): Remove stores with zero size.
27832
27833 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
27834
27835         PR c/38957
27836         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
27837         as PLUS_EXPR.
27838
27839 2009-01-24  Julian Brown  <julian@codesourcery.com>
27840
27841         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
27842         config/arm/linux-atomic.c.
27843         * config/arm/linux-atomic.c: New.
27844
27845 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
27846
27847         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
27848         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
27849         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
27850
27851 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
27852
27853         PR c/38938
27854         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
27855         properly.
27856
27857 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
27858
27859         PR tree-optimization/38953
27860         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
27861         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
27862         (gloog): Split the exit of the scop when the scop exit is a loop exit.
27863         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
27864         changed the CFG.
27865
27866 2009-01-24  Paul Brook  <paul@codesourcery.com>
27867
27868         * config/arm/neon.md (neon_type): Move to arm.md.
27869         (neon_mov<VSTRUCT>): Add neon_type attribute.
27870         * config/arm/arm.md (neon_type): Move to here.
27871         (conds): Add "unconditioal" and use as default for NEON insns.
27872
27873 2009-01-24  Ben Elliston  <bje@au.ibm.com>
27874
27875         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
27876         void *' warning from -Wc++-compat.
27877         * Makefile.in (dominance.o-warn): Remove.
27878
27879 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
27880
27881         PR tree-optimization/38932
27882         * fold-const.c (fold_unary_ignore_overflow): New.
27883         * tree.h (fold_unary_ignore_overflow): Declare.
27884         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
27885         * tree-ssa-sccvn.c (visit_reference_op_load,
27886         simplify_unary_expression): Likewise.
27887
27888 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
27889
27890         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
27891         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
27892         regardless of their type.
27893         * c-common.c (handle_packed_attribute): Don't ignore packed on
27894         bitfields.
27895         * c.opt (Wpacked-bitfield-compat): New warning option.
27896         * stor-layout.c (place_field): Warn if offset of a field changed.
27897         * doc/extend.texi (packed): Mention the ABI change.
27898         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
27899         (Warning Options): Add it to the list.
27900
27901 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
27902
27903         * c-opts.c (c_common_post_options): Fix a typo in comments.
27904
27905 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
27906
27907         PR middle-end/38615
27908         * gimplify.c (gimplify_init_constructor): Fix promotion of const
27909         variables to static.
27910         * doc/invoke.texi (-fmerge-all-constants): Update description.
27911
27912 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
27913
27914         PR target/38931
27915         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
27916         (*movdi_1_rex64): Use type "mmx" for alternative 5.
27917
27918 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
27919
27920         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
27921         a word boundary.
27922         (LOCAL_ALIGNMENT): Similarly.
27923
27924 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
27925             Joseph Myers  <joseph@codesourcery.com>
27926
27927         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
27928         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
27929         * config/arm/arm-tune.md: Regenerate.
27930         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
27931         -march=iwmmxt2.
27932
27933 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
27934
27935         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
27936         version number to five.
27937
27938 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
27939
27940         PR c++/38930
27941         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
27942         * c-common.c (set_underlying_type): Likewise.
27943         (is_typedef_decl ): Likewise
27944         * tree.h: Likewise
27945         (set_underlying_type): Likewise.
27946         (is_typedef_type): Likewise.
27947
27948 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
27949
27950         PR middle-end/38587
27951         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
27952         crossing setjmps.
27953
27954 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
27955
27956         PR bootstrap/37660
27957         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
27958         (LIBGCC_SPEC):  Don't define.
27959         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
27960
27961 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
27962
27963         PR rtl-optimization/38879
27964         * alias.c (base_alias_check): Unaligned access via AND address can
27965         alias all surrounding object types except those with sizes equal
27966         or wider than the size of unaligned access.
27967
27968 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
27969
27970         PR c++/26693
27971         * c-decl.c (clone_underlying_type): Move this ...
27972         * c-common.c (set_underlying_type): ... here.
27973         Also, make sure the function properly sets TYPE_STUB_DECL() on
27974         the newly created typedef variant type.
27975         (is_typedef_decl ): New entry point.
27976         * tree.h: Added a new member member_types_needing_access_check to
27977         struct tree_decl_non_common.
27978         (set_underlying_type): New entry point.
27979         (is_typedef_type): Likewise.
27980
27981 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
27982
27983         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
27984         Check whether two instructions have memory references that
27985         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
27986         are helper functions for traversing.
27987         * alias.h (insn_alias_sets_confilict_p): New prototypes.
27988         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
27989         not to draw dependency edge for instructions with non-conflicting
27990         alias sets.
27991
27992 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
27993
27994         PR other/38758
27995         * longlong.h: Update copyright years.  Use soft-fp license notice.
27996         Sync __clz_tab declaration with glibc.
27997
27998 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
27999
28000         PR target/30687
28001         * doc/extend.texi (syscall_linkage): New.
28002         (version_id): Modify.
28003
28004 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
28005             Richard Guenther  <rguenther@suse.de>
28006
28007         PR tree-optimization/38747
28008         PR tree-optimization/38748
28009         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
28010         conversion if the base address is an indirect reference and the
28011         aliasing sets could cause issues.
28012
28013 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
28014
28015         * common.opt (fgraphite, fgraphite-identity): Add comment for
28016         explaining why these options are not documented.
28017
28018 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
28019
28020         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
28021         gimple_call_lhs is NULL.
28022
28023 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
28024
28025         PR target/38868
28026         * emit-rtl.c (adjust_address_1): Make sure memref is never
28027         overwritten.
28028
28029 2009-01-20  Ben Elliston  <bje@au.ibm.com>
28030
28031         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
28032         const qualifier from arg parameter. Remove unnecessary cast to char *.
28033         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
28034         const qualifier from arg 2.
28035
28036 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
28037
28038         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
28039
28040 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
28041
28042         PR c/38869
28043         * rtl.h (reinit_regs): New prototype.
28044         * regclass.c: Include ira.h.
28045         (reinit_regs): New.
28046         * Makefile.in (regclass.o): Add ira.h.
28047         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
28048
28049 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
28050
28051         PR target/38736
28052         * c-common.c (handle_aligned_attribute): Use
28053         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
28054         default alignment value.
28055
28056         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
28057
28058         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
28059         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
28060
28061         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
28062         __BIGGEST_ALIGNMENT__.
28063
28064         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
28065
28066 2009-01-18  Richard Guenther  <rguenther@suse.de>
28067
28068         PR tree-optimization/38819
28069         * tree-flow.h (operation_could_trap_helper_p): Declare.
28070         * tree-eh.c (operation_could_trap_helper_p): Export.
28071         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
28072         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
28073         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
28074         are about to insert a possibly trapping instruction and fail
28075         in this case.
28076
28077 2009-01-18  Andreas Schwab  <schwab@suse.de>
28078
28079         * doc/install.texi (Configuration): Remove obsolete paragraph
28080         about use of --with-gnu-ld with --with-gnu-as.
28081
28082 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
28083
28084         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
28085         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
28086         Follow spelling conventions.
28087
28088 2009-01-18  Ben Elliston  <bje@au.ibm.com>
28089
28090         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
28091         C++ warning about implicit conversion from void * to struct
28092         bitmap_head_def *.
28093         (bitmap_obstack_free): Likewise for bitmap_element *.
28094         * Makefile.in (bitmap.o-warn): Remove.
28095
28096 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
28097
28098         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
28099
28100 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
28101             Tobias Grosser  <tobi.grosser@amd.com>
28102
28103         * graphite.c (graphite_trans_scop_block): Do not block single
28104         nested loops.
28105
28106 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
28107
28108         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
28109         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
28110         test with assertion.
28111
28112 2009-01-16  Richard Guenther  <rguenther@suse.de>
28113
28114         PR tree-optimization/38835
28115         PR middle-end/36227
28116         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
28117         and INT + PTR -> (INT)(PTR p+ INT) folding.
28118         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
28119
28120 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
28121
28122         PR target/38554
28123         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
28124         the subreg from a lowpart subreg if it is also casting the value.
28125
28126 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
28127             Tobias Grosser  <tobi.grosser@amd.com>
28128
28129         * graphite.c (compare_prefix_loops): New.
28130         (build_scop_canonical_schedules): Rewritten.
28131         (graphite_transform_loops): Move build_scop_canonical_schedules
28132         after build_scop_iteration_domain.
28133
28134 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
28135             Tobias Grosser  <tobi.grosser@amd.com>
28136
28137         * graphite.c (add_conditions_to_domain): Add the loops to
28138         the dimension of the iteration domain.  Do copy the domain
28139         only when it exists.
28140         (build_scop_conditions_1): Do not call add_conditions_to_domain.
28141         (add_conditions_to_constraints): New.
28142         (can_generate_code_stmt, can_generate_code): Removed.
28143         (gloog): Do not call can_generate_code.
28144         (graphite_transform_loops): Call add_conditions_to_constraints
28145         after building the iteration domain.
28146
28147 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
28148
28149         PR tree-optimization/38789
28150         * tree-ssa-threadedge.c
28151         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
28152         __builtin_constant_p.
28153
28154 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
28155
28156         * dce.c (delete_unmarked_insns): Reversed the order that insns are
28157         examined before deleting them.
28158
28159 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
28160
28161         * function.c (aggregate_value_p): Correctly extract the function
28162         type from CALL_EXPR_FN lookup.
28163
28164 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
28165
28166         * config/picochip/picochip.c (picochip_override_options): Revert
28167         CFI asm flag disable commited previously.
28168
28169 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
28170             Tobias Grosser  <tobi.grosser@amd.com>
28171             Jan Sjodin  <jan.sjodin@amd.com>
28172
28173         * graphite.c (scan_tree_for_params): On substractions negate
28174         all the coefficients of the term.
28175         (clast_to_gcc_expression_red): New.  Handle reduction expressions
28176         of more than two operands.
28177         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
28178         (get_vdef_before_scop): Handle also the case of default definitions.
28179
28180 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
28181
28182         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
28183         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
28184         Also use them when walking CALL_INSN_FUNCTION_USAGE.
28185
28186 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
28187             Joey Ye  <joey.ye@intel.com>
28188
28189         PR middle-end/37843
28190         * cfgexpand.c (expand_stack_alignment): Don't update stack
28191         boundary nor check incoming stack boundary here.
28192         (gimple_expand_cfg): Update stack boundary and check incoming
28193         stack boundary here.
28194
28195 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
28196
28197         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
28198
28199 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
28200
28201         PR rtl-optimization/38245
28202         * calls.c (expand_call): Add stack arguments to
28203         CALL_INSN_FUNCTION_USAGE even for pure calls (when
28204         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
28205         in regs and partially in memory or BLKmode arguments.
28206         (emit_library_call_value_1): Add stack arguments to
28207         CALL_INSN_FUNCTION_USAGE even for pure calls (when
28208         ACCUMULATE_OUTGOING_ARGS).
28209         * dce.c: Include tm_p.h.
28210         (find_call_stack_args): New function.
28211         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
28212         argument.
28213         (mark_insn): Call find_call_stack_args for CALL_Ps.
28214         (prescan_insns_for_dce): Walk insns backwards in bb rather than
28215         forwards.  Allocate and free arg_stores bitmap if needed, pass it
28216         down to deletable_insn_p, don't mark stores set in arg_stores
28217         bitmap, clear the bitmap at the beginning of each bb.
28218         * Makefile.in (dce.o): Depend on $(TM_P_H).
28219
28220 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
28221
28222         PR target/22599
28223         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
28224         to make sure the insn is a conditional test (bug 22599).  Reformat a
28225         few long lines.
28226
28227 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
28228
28229         PR middle-end/38431
28230         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
28231         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
28232         (gloog): Do not call cleanup_tree_cfg.
28233         (graphite_transform_loops): Call cleanup_tree_cfg after all
28234         scops have been code generated.
28235
28236 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
28237         * doc/gty.texi (Invoking the garbage collector): Added new node
28238         and section documenting ggc_collect.
28239
28240 2009-01-14  Richard Guenther  <rguenther@suse.de>
28241
28242         PR tree-optimization/38826
28243         PR middle-end/38477
28244         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
28245         initialization notes only if we actually emitted a warning.
28246         (intra_create_variable_infos): Add constraints for a result decl
28247         that is passed by hidden reference.
28248         (build_pred_graph): Mark all related variables non-direct on
28249         address-taking.
28250
28251 2009-01-14  Nick Clifton  <nickc@redhat.com>
28252
28253         * ira-conflicts.c: Include addresses.h for the definition of
28254         base_reg_class.
28255         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
28256         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
28257
28258 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
28259
28260         PR target/38811
28261         * Makefile.in (ira-lives.o): Add except.h.
28262
28263         * ira-lives.c: Include except.h.
28264         (process_bb_node_lives): Process can_throw_internal.
28265
28266 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
28267
28268         PR rtl-optimization/38774
28269         * combine.c (simplify_set): When undoing cc_use change, don't do
28270         PUT_CODE on the newly created comparison, but instead put back the
28271         old comparison.
28272
28273 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
28274
28275         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
28276         values.  Remove duplicate arm8 entry.
28277
28278 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
28279
28280         PR tree-optimization/38786
28281         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
28282         the SSA_NAME case of expand_scalar_variables_expr.
28283         Set the type of an expression to the type of its assign statement.
28284         (expand_scalar_variables_expr): Also gather the scalar computation
28285         used to index the memory access.  Do not pass loop_p.
28286         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
28287         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
28288         the gimple_stmt_iterator where it inserts new code.
28289         Do not pass loop_p.
28290         (copy_bb_and_scalar_dependences): Do not pass loop_p.
28291         (translate_clast): Update call to copy_bb_and_scalar_dependences.
28292
28293 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
28294
28295         * graphite.h (debug_value): Removed.
28296         * graphite.c (debug_value): Removed.
28297
28298 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
28299
28300         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
28301         ldrd/strd with two 32-bit instructions.
28302
28303 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
28304
28305         * config/arm/arm.c (struct processors): Pass for speed down into
28306         cost helper functions.
28307         (const_ok_for_op): Handle COMPARE and inequality nodes.
28308         (arm_rtx_costs_1): Rewrite.
28309         (arm_size_rtx_costs): Update prototype.
28310         (arm_rtx_costs): Pass speed down to helper functions.
28311         (arm_slowmul_rtx_costs): Rework cost calculations.
28312         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
28313         (arm_9e_rtx_costs): Likewise.
28314
28315 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
28316
28317         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
28318         relocations of local symbols wider than UNITS_PER_WORD are not valid.
28319         (alpha_legitimize_address): Do not split local symbols wider than
28320         UNITS_PER_WORD into HIGH/LO_SUM parts.
28321
28322 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
28323
28324         PR bootstrap/38580
28325         * gcc.c (process_command): Replace call to execvp with calls
28326         to pex_one and exit.
28327
28328 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
28329
28330         PR target/29141
28331         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
28332         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
28333         variant for devices with 3-byte PC.
28334         (__tablejump_elpm__): New.
28335
28336 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
28337
28338         PR c/32041
28339         * c-parser.c (c_parser_postfix_expression): Allow `->' in
28340         offsetof member-designator, handle it as `[0].'.
28341
28342 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28343
28344         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
28345         function when not using named sections on targets with named sections
28346         if branch distance is less than 262132.
28347
28348 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
28349
28350         * combine.c (combine_instructions):  Recompute
28351         optimize_this_for_speed_p  for each BB in the main combine loop.
28352
28353 2009-01-12  Tomas Bily  <tbily@suse.cz>
28354
28355         PR middlend/38385
28356         * tree-loop-distribution.c (prop_phis): New function.
28357         (generate_builtin): Call prop_phis.
28358
28359 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
28360
28361         PR tree-optimization/38807
28362         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
28363         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
28364
28365 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
28366
28367         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
28368         subreg of op0 to the original op0.
28369
28370 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
28371
28372         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
28373
28374 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
28375
28376         PR debug/7055
28377         * mips-tfile.c (parse_def): Fix parsing of def strings
28378         starting with digits.
28379
28380 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
28381
28382         PR target/38695
28383         * config/arm/arm.c (arm_is_long_call_p): Don't call
28384         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
28385
28386 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
28387
28388         * regrename.c (regrename_optimize): Fix dumping.
28389         (find_oldest_value_reg): Preserve REG_POINTER.
28390         (copy_hardreg_forward_1): Likewise.
28391
28392 2009-01-09  Diego Novillo  <dnovillo@google.com>
28393
28394         * gimple.h (struct gimple_statement_base) <uid>: Document
28395         the restrictions on its use.
28396         (gimple_uid): Tidy.
28397         (gimple_set_uid): Tidy.
28398
28399 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
28400
28401         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
28402         zero guard even if align_bytes != 0 and count is smaller than
28403         size_needed.
28404
28405 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
28406
28407         PR rtl-optimization/38495
28408         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
28409         (add_range_and_copies_from_move_list): Print all added ranges.
28410         Add ranges to memory optimized destination.
28411
28412 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
28413
28414         PR target/38686
28415         PR target/38708
28416         * config/i386/i386.c (override_options): Reject
28417         -mstringop-strategy=rep_8byte with -m32.
28418         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
28419         to 1.  Do count comparison against epilogue_size_needed at compile
28420         time even when count_exp was constant forced into register.  For
28421         size_needed don't jump to epilogue, instead just avoid aligning
28422         and invoke the body algorithm.  If need_zero_guard, add zero guard
28423         even if count is non-zero, but smaller than size_needed + number of
28424         bytes that could be stored for alignment.
28425         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
28426         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
28427         but smaller than size_needed + number of bytes that could be stored
28428         for alignment.  Compare size_needed with epilogue_size_needed instead
28429         of desired_align - align, don't adjust size_needed, pass
28430         epilogue_size_needed to the epilogue expanders.
28431
28432         PR c/35742
28433         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
28434
28435 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28436
28437         * pa.c (last_address): Change to unsigned.
28438         (update_total_code_bytes): Change argument to unsigned.  Don't
28439         check if insn addresses are set.
28440         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
28441         addresses are not set.
28442         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
28443
28444 2009-01-09  Nick Clifton  <nickc@redhat.com>
28445
28446         * config/sh/symbian.c: Replace uses of DECL_INLINE with
28447         DECL_DECLARED_INLINE_P.
28448
28449 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
28450
28451         PR middle-end/38347
28452         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
28453         GET_MODE (op0) in operand_subword_force calls.
28454
28455         PR middle-end/38771
28456         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
28457         fold_convert arg0 operands to TREE_TYPE (op0) first.
28458
28459 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
28460
28461         * params.def (ira-max-conflict-table-size): Decrease default value
28462         to 1000.
28463
28464 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
28465
28466         PR tree-optimization/37031
28467         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
28468         on parameter_set.
28469         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
28470         allocate it using gc instead of heap, use VEC_quick_push instead of
28471         VEC_safe_push.
28472         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
28473         instead of heap, use VEC_quick_push instead of VEC_safe_push.
28474         * tree-data-ref.h (struct access_matrix): Change matrix to gc
28475         allocated vector from heap allocated.
28476         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
28477         * tree-loop-linear.c (linear_transform_loops): Allocate nest
28478         vector only after perfect_loop_nest_depth call.
28479
28480 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
28481             Jan Sjodin  <jan.sjodin@amd.com>
28482
28483         PR tree-optimization/38559
28484         * graphite.c (debug_value, copy_constraint,
28485         swap_constraint_variables, scale_constraint_variable, ): New.
28486         (get_lower_bound, get_upper_bound): Removed.
28487         (graphite_trans_bb_strip_mine): Clean up this code that works
28488         only for constant number of iterations.  Fully copy upper and
28489         lower bound constraints, not only the constant part of them.
28490         * graphite.h (debug_value): Declared.
28491
28492 2009-01-08  Ira Rosen  <irar@il.ibm.com>
28493
28494         PR tree-optimization/37194
28495         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
28496         Don't add the cost of cost model guard in prologue to scalar
28497         outside cost in case of known number of iterations.
28498
28499 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
28500             Alan Modra  <amodra@bigpond.net.au>
28501
28502         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
28503         non-word-aligned REG+CONST addressing.
28504
28505 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
28506
28507         PR target/38706
28508         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
28509         free_after_compilation when outputting a thunk.
28510         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
28511         Do not call free_after_compilation here.
28512
28513 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
28514
28515         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
28516         (ix86_valid_target_attribute_inner_p): Ditto.
28517
28518 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
28519
28520         PR tree-optimization/38492
28521         PR tree-optimization/38498
28522         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
28523         * tree-chrec.h (scev_is_linear_expression): Declared.
28524         * graphite.c (graphite_cannot_represent_loop_niter): New.
28525         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
28526         (graphite_loop_normal_form): Use gcc_assert.
28527         (scan_tree_for_params): Use CASE_CONVERT.
28528         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
28529         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
28530         Use gcc_assert.  Discard scops that contain unhandled cases.
28531         (build_scop_conditions): Return a boolean status for unhandled cases.
28532         (strip_mine_profitable_p): Print the loop number, not its depth.
28533         (is_interchange_valid): Pass the depth of the loop nest, don't
28534         recompute it wrongly.
28535         (graphite_trans_bb_block): Same.
28536         (graphite_trans_bb_block): Print tentative of loop blocking.
28537         (graphite_trans_scop_block): Do not print that the loop has been
28538         blocked.
28539         (graphite_transform_loops): Do not handle scops that contain condition
28540         scalar phi nodes.
28541
28542 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
28543
28544         AVX Programming Reference (December, 2008)
28545         * config/i386/avxintrin.h (_mm256_stream_si256): New.
28546         (_mm256_stream_pd): Likewise.
28547         (_mm256_stream_ps): Likewise.
28548
28549         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
28550         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
28551         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
28552         (bdesc_special_args): Add __builtin_ia32_movntdq256,
28553         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
28554         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
28555         (ix86_expand_special_args_builtin): Likewise.
28556
28557         * config/i386/sse.md (AVXMODEDI): New.
28558         (avx_movnt<mode>): Likewise.
28559         (avx_movnt<mode>): Likewise.
28560         (<sse>_movnt<mode>): Remove AVX support.
28561         (sse2_movntv2di): Likewise.
28562
28563 2009-01-07  Richard Guenther  <rguenther@suse.de>
28564
28565         PR middle-end/38751
28566         * fold-const.c (extract_muldiv): Remove obsolete comment.
28567         (fold_plusminus_mult_expr): Undo MINUS_EXPR
28568         to PLUS_EXPR canonicalization for the canonicalization.
28569
28570 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
28571
28572         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
28573         hosted cross-compilers generating less efficient code.
28574
28575 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
28576
28577         * function.h (rtl_data): Add a dbr_scheduled_p field.
28578         * reorg.c (dbr_schedule): Set it.
28579         (gate_handle_delay_slots): Check it.
28580         * config/mips/mips.c (mips_base_delayed_branch): Delete.
28581         (mips_reorg): Check flag_delayed_branch instead of
28582         mips_base_delayed_branch.
28583         (mips_override_options): Don't set mips_base_delayed_branch
28584         or flag_delayed_branch.
28585
28586 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
28587
28588         PR rtl-optimization/38426.
28589         * ira.c (ira): Set current_function_is_leaf earlier.
28590
28591 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
28592
28593         PR rtl-optimization/38722
28594         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
28595         too early, only set a flag and modify after last possible
28596         undo_all point.
28597
28598 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
28599
28600         PR c/34252
28601         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
28602         * real.c (decimal_single_format): Correct values of emin and emax.
28603         (decimal_double_format): Ditto.
28604         (decimal_quad_format): Ditto.
28605         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
28606         computation of DECnn_MIN and DECnn_MAX for corrected values of
28607         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
28608         __DECnn_MIN__, and adjust its computation for the corrected value
28609         of emin.
28610
28611 2009-01-06  Jan Hubicka  <jh@suse.cz>
28612
28613         PR target/38744
28614         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
28615
28616 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
28617
28618         * doc/contrib.texi (Contributors): Slightly adjust the end note.
28619         Add Robert Clark to the list of testers.
28620
28621 2009-01-06  Jan Hubicka  <jh@suse.cz>
28622             Kai Tietz  <kai.tietz@onevision.com>
28623
28624         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
28625         * config/i386/i386.c (ix86_expand_call): Add clobbers.
28626
28627 2009-01-06  Jan Hubicka  <jh@suse.cz>
28628             Kai Tietz  <kai.tietz@onevision.com>
28629
28630         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
28631         for w64 ABI.
28632         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
28633         (ix86_nsaved_regs): Count only general purpose regs.
28634         (ix86_nsaved_sseregs): New.
28635         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
28636         to 16 for w64; compute padding and size of sse reg save area.
28637         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
28638         general purpose regs.
28639         (ix86_emit_save_sse_regs_using_mov): New.
28640         (ix86_expand_prologue): Save SSE regs if needed.
28641         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
28642         (ix86_emit_restore_sse_regs_using_mov): New.
28643         (ix86_expand_epilogue): Save SSE regs if needed.
28644
28645 2009-01-06  Jan Hubicka  <jh@suse.cz>
28646             Kai Tietz  <kai.tietz@onevision.com>
28647
28648         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
28649         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
28650         functions when accumulate outgoing args is off.
28651
28652 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
28653
28654         PR bootstrap/38742
28655         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
28656         before using pseudos_have_intersected_live_ranges_p.
28657
28658         * ira-int.h (ira_assert): Always define.
28659
28660 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
28661
28662         AVX Programming Reference (December, 2008)
28663         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
28664         (_mm256_permute2_pd): Likewise.
28665         (_mm_permute2_ps): Likewise.
28666         (_mm256_permute2_ps): Likewise.
28667         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
28668         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
28669
28670         * config/i386/i386.c (ix86_builtins): Remove
28671         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
28672         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
28673         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
28674         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
28675         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
28676         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
28677         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
28678         __builtin_ia32_vpermil2ps256.
28679         (ix86_init_mmx_sse_builtins): Updated.
28680         (ix86_expand_args_builtin): Likewise.
28681
28682 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28683
28684         * pa.c (output_call): Relocate non-jump insns in the delay slot of
28685         long absolute calls when generating PA 2.0 code.
28686
28687 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
28688
28689         PR rtl-optimization/38583
28690         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
28691
28692         * params.def (ira-max-conflict-table-size): New.
28693
28694         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
28695
28696         * ira.h (ira_conflicts_p): New external definition.
28697
28698         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
28699         table.  Report this.  Return result of building.
28700         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
28701         building conflict table.
28702
28703         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
28704         (ira_color): Use ira_conflicts_p.
28705
28706         * global.c: Include ira.h.
28707         (pseudo_for_reload_consideration_p, build_insn_chain): Use
28708         ira_conflicts_p.
28709
28710         * Makefile.in (global.o): Add ira.h.
28711
28712         * ira-build.c (mark_all_loops_for_removal,
28713         propagate_some_info_from_allocno): New.
28714         (remove_unnecessary_allocnos): Call
28715         propagate_some_info_from_allocno.
28716         (remove_low_level_allocnos): New.
28717         (remove_unnecessary_regions): Add parameter.  Call
28718         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
28719         parameter to remove_unnecessary_regions.
28720         (ira_build): Remove all regions but root if the conflict table was
28721         not built.  Update conflict hard regs for allocnos crossing calls.
28722
28723         * ira.c (ira_conflicts_p): New global.
28724         (ira): Define and use ira_conflicts_p.
28725
28726         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
28727         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
28728         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
28729
28730 2009-01-06  Ben Elliston  <bje@au.ibm.com>
28731
28732         * gengtype-lex.l (YY_NO_INPUT): Define.
28733
28734 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
28735
28736         PR c/34911
28737         * c-common.c (handle_vector_size_attribute): Also reject
28738         BOOLEAN_TYPE types.
28739
28740 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
28741
28742         PR tree-optimization/38492
28743         * graphite.c (rename_map_elt, debug_rename_elt,
28744         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
28745         rename_map_elt_info, eq_rename_map_elts,
28746         get_new_name_from_old_name, bb_in_sese_p): Moved around.
28747         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
28748         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
28749         (sese_build_livein_liveouts): New.
28750         (new_sese, free_sese): New.
28751         (new_scop): Call new_sese.
28752         (free_scop): Call free_sese.
28753         (rename_variables_from_edge, rename_phis_end_scop): Removed.
28754         (register_old_new_names): Renamed register_old_and_new_names.
28755         (register_scop_liveout_renames, add_loop_exit_phis,
28756         insert_loop_close_phis, struct igp,
28757         default_liveout_before_guard, add_guard_exit_phis,
28758         insert_guard_phis, copy_renames): New.
28759         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
28760         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
28761         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
28762         (scop_adjust_phis_for_liveouts): New.
28763         (gloog): Call scop_adjust_phis_for_liveouts.
28764
28765         * graphite.h (struct sese): Documented.  Added fields liveout,
28766         num_ver and livein.
28767         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
28768         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
28769         (struct scop): Added field liveout_renames.
28770         (SCOP_LIVEOUT_RENAMES): New.
28771
28772 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
28773
28774         PR tree-optimization/38510
28775         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
28776         (translate_clast): Call recompute_all_dominators before
28777         graphite_verify.
28778         (gloog): Call recompute_all_dominators before graphite_verify.
28779
28780 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
28781             Jan Sjodin  <jan.sjodin@amd.com>
28782
28783         PR tree-optimization/38500
28784         * graphite.c (create_sese_edges): Call fix_loop_structure after
28785         splitting blocks.
28786
28787 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
28788
28789         * config.gcc: Add m32r*-*-rtems*.
28790         * config/m32r/rtems.h: New file.
28791
28792 2009-01-05  Ben Elliston  <bje@au.ibm.com>
28793
28794         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
28795         (.po.pox): Likewise.
28796         (po/gcc.pot): Likewise.
28797
28798 2009-01-04  David S. Miller  <davem@davemloft.net>
28799
28800         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
28801         (STARTING_FRAME_OFFSET): Always set to zero.
28802
28803 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
28804
28805         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
28806         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
28807         fixed-point types, and vectors of the same.
28808
28809 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
28810
28811         * config/mips/sync.md (*mb_barrier): Rename to...
28812         (*memory_barrier): ...this.
28813
28814 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
28815
28816         * doc/extend.texi (Function Attributes): Move @cindex after @item
28817         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
28818         and put in alphabetical order. Fix 'target' name and put in order.
28819         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
28820         typos.
28821
28822 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
28823
28824         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
28825         (memory_barrier): Expand as unspec instead of unspec_volatile.
28826         Remove mem:BLK from insn operands.  Use Pmode scratch register.
28827         (*memory_barrier): Define as unspec instead of unspec_volatile.
28828         Use (match_dup 0) as input operand.
28829
28830         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
28831         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
28832         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
28833         scratch register.  Remove operand 1.
28834         (*stbar): Define as unspec instead of unspec_volatile.
28835         Use (match_dup 0) as input operand, remove (const_int 8).
28836         (*membar): Define as unspec instead of unspec_volatile.
28837         Use (match_dup 0) as input operand, remove input operand 2.
28838
28839         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
28840         (memory_barrier): Expand as unspec instead of unspec_volatile.
28841         Remove mem:BLK from insn operands.  Use Pmode scratch register.
28842         (*memory_barrier): Define as unspec instead of unspec_volatile.
28843         Use (match_dup 0) as input operand.
28844
28845         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
28846         Remove mem:BLK from insn operands.  Use Pmode scratch register.
28847         Set volatile flag on operand 0.
28848         (*memory_barrier): New insn pattern.
28849
28850         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
28851         insn operands.
28852         (*memory_barrier): Use (match_dup 0) as input operand.
28853
28854         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
28855         Remove mem:BLK from insn operands.  Use Pmode scratch register.
28856         Set volatile flag on operand 0.
28857         (*mb_internal): New insn pattern.
28858
28859         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
28860
28861 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
28862
28863         PR middle-end/38586
28864         * function.c (struct temp_slot): Move to the section of the file
28865         that deals with temp slots.  Remove field 'address'.
28866         (temp_slot_address_table): New hash table of address -> temp slot.
28867         (struct temp_slot_address_entry): New struct, items for the table.
28868         (temp_slot_address_compute_hash, temp_slot_address_hash,
28869         temp_slot_address_eq, insert_temp_slot_address): Support functions
28870         for the new table.
28871         (find_temp_slot_from_address): Rewrite to use the new hash table.
28872         (remove_unused_temp_slot_addresses): Remove addresses of temp
28873         slots that have been made available.
28874         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
28875         worker function for remove_unused_temp_slot_addresses.
28876         (assign_stack_temp_for_type): Don't clear the temp slot address list.
28877         Add the temp slot address to the address -> temp slot map.
28878         (update_temp_slot_address): Update via insert_temp_slot_address.
28879         (free_temp_slots): Call remove_unused_temp_slot_addresses.
28880         (pop_temp_slots): Likewise.
28881         (init_temp_slots): Allocate the address -> temp slot map, or empty
28882         the map if it is already allocated.
28883         (prepare_function_start): Initialize temp slot processing.
28884
28885 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
28886
28887         PR middle-end/38584
28888         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
28889         Calculate the size of all stack vars assuming no packing of stack
28890         vars will happen, replacing a quadratic algorithm with a linear one.
28891
28892 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
28893
28894         PR target/38707
28895         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
28896         can't be used.
28897
28898 2009-01-03  Diego Novillo  <dnovillo@google.com>
28899
28900         * doc/contrib.texi: Update contributions.
28901
28902 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
28903
28904         PR c++/38705
28905         * builtins.c (fold_builtin_memory_op): Give up if either operand
28906         is volatile.  Set srctype or desttype to non-qualified version
28907         of the other type.
28908
28909         PR c/38700
28910         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
28911         and FUNCTION_DECLs.
28912
28913 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
28914
28915         PR rtl-optimization/35805
28916         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
28917         problem if fast dce is able to remove any instructions.
28918         * dce.c (dce_process_block): Fix dump message.
28919
28920 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
28921
28922         PR 33649
28923         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
28924
28925 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
28926
28927         PR middle-end/38690
28928         * tree-flow.h (op_code_prio, op_prio): New prototypes.
28929         * tree-pretty-print.c (op_code_prio): New function.
28930         (op_prio): No longer static.  Use op_code_prio.
28931         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
28932         Use op_prio and op_code_prio to determine if () should be
28933         printed around operand(s) or not.
28934
28935         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
28936         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
28937         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
28938         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
28939         pp_character instead of pp_string for single letter printing.
28940
28941 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
28942
28943         * doc/extend.texi: Fix '#pragma GCC option' typo.
28944
28945 2009-01-02  Richard Guenther  <rguenther@suse.de>
28946
28947         * doc/install.texi (--enable-checking): Mention different
28948         default for stage1.
28949         (--enable-stage1-checking): Document.
28950
28951 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
28952
28953         PR middle-end/30142
28954         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
28955         case to be an error.
28956
28957 2009-01-02  Ben Elliston  <bje@au.ibm.com>
28958
28959         * config/fp-bit.h (pack_d): Constify argument.
28960         * config/fp-bit.c (makenan): Constify return type. Remove casts.
28961         (isnan): Constify argument.
28962         (isinf): Likewise.
28963         (iszero): Likewise.
28964         (pack_d): Likewise.
28965         (_fpadd_parts): Constify return type.
28966         (_fpmul_parts): Likewise.
28967         (_fpdiv_parts): Likewise.
28968
28969 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
28970
28971         PR c/36489
28972         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
28973         warn about overwriting initializer with side-effects or
28974         -Woverride-init if !IMPLICIT.
28975         (output_init_element): Likewise.  Pass IMPLICIT down to
28976         add_pending_init.
28977         (process_init_element): Add IMPLICIT argument.  Pass it down
28978         to output_init_element.
28979         (push_init_element, pop_init_level, set_designator): Adjust
28980         process_init_element callers.
28981         (set_nonincremental_init, set_nonincremental_init_from_string):
28982         Adjust add_pending_init callers.
28983         (output_pending_init_elements): Adjust output_init_element callers.
28984         * c-tree.h (process_init_element): Adjust prototype.
28985         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
28986         process_init_element callers.
28987
28988 \f
28989 Copyright (C) 2009 Free Software Foundation, Inc.
28990
28991 Copying and distribution of this file, with or without modification,
28992 are permitted in any medium without royalty provided the copyright
28993 notice and this notice are preserved.