gimple.c (iterative_hash_gimple_type): For integer types also hash their minimum...
[gcc.git] / gcc / ChangeLog
1 2009-10-16 Richard Guenther <rguenther@suse.de>
2
3 * gimple.c (iterative_hash_gimple_type): For integer types
4 also hash their minimum and maximum values and the string flag.
5 For array types hash their domain and the string flag.
6
7 2009-10-16 Richard Guenther <rguenther@suse.de>
8
9 * gimple.c (gimple_types_compatible_p): Restrict completing
10 types to record or unions. Simplify completion.
11 Do not merge records or unions with different
12 TYPE_STRUCTURAL_EQUALITY_P tag.
13 (iterative_hash_gimple_type): Restrict non-recursing into
14 pointer targets for records and unions.
15
16 2009-10-15 Jakub Jelinek <jakub@redhat.com>
17
18 PR debug/41717
19 * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
20 * dwarf2out.c (mem_loc_descriptor): Don't handle
21 POST_INT/POST_DEC/POST_MODIFY like SUBREG. For SUBREG
22 punt if it is not lowpart subreg or if inner mode isn't
23 MODE_INT.
24
25 2009-10-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26
27 * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
28 investigating previous or next insns.
29
30 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
31
32 * tree-sra.c (build_ref_for_offset_1): Update comment.
33
34 2009-10-16 Wolfgang Gellerich <gellerich@de.ibm.com>
35
36 * config/s390/s390.md (atype): Added missing values.
37
38 2009-10-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39
40 PR target/41702
41 * pa.md (casesi): Use sign extended index in call to
42 gen_casesi64p.
43 (casesi64p): Update pattern to reflect above.
44
45 2009-10-15 Steve Ellcey <sje@cup.hp.com>
46
47 PR rtl-optimization/41697
48 * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
49
50 2009-10-15 Michael Meissner <meissner@linux.vnet.ibm.com>
51
52 PR target/23983
53 * config/rs6000/predicates.md: Update copyright year.
54 * config/rs6000/altivec.md: Ditto.
55
56 * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
57 (MD_INCLUDES): Add a2.md.
58
59 * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
60 RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
61 (builtin_classify): New static vector to classify various builtins
62 to get the tree attributes correct.
63 (def_builtin): Set the attributes of builtins based on what the
64 builtin does (i.e. memory operation, floating point, saturation
65 need special attributes, others are pure functions).
66
67 * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
68 the builtins.
69 (enum rs6000_builtins): Include rs6000-builtin.def to define the
70 builtins. Change the end marker to MAX_RS6000_BUILTINS from
71 RS6000_BUILTIN_COUNT.
72 (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
73 MAX_RS6000_BUILTINS.
74
75 * config/rs6000/rs6000-builtin.def: New file that combines the
76 builtin enumeration name and attributes.
77
78 2009-10-15 H.J. Lu <hongjiu.lu@intel.com>
79
80 * config/i386/linux.h (ASM_SPEC): Add --32.
81
82 2009-10-15 Jakub Jelinek <jakub@redhat.com>
83
84 * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
85 and DW_TAG_template_alias.
86 (dwarf_attr_name): Handle DW_AT_main_subprogram,
87 DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
88 DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
89 DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
90 DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
91 and DW_AT_GNU_odr_signature.
92 (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
93 DW_FORM_flag_present and DW_FORM_ref_sig8.
94 (output_signature): Only print name on the first byte.
95 (output_die): Likewise for dw_val_class_data8.
96
97 2009-10-15 Alexander Monakov <amonakov@ispras.ru>
98
99 * doc/invoke.texi: Clarify that most optimizations are not enabled
100 without -O.
101
102 2009-10-15 Richard Guenther <rguenther@suse.de>
103
104 PR lto/41668
105 * gimple.c (compare_type_names_p): Handle anonymous names
106 differently based on new mode argument.
107 (gimple_types_compatible_p): For structs also compare the tags.
108 (iterative_hash_type_name): Rename to ...
109 (iterative_hash_name): ... this. Hash all names.
110 (iterative_hash_gimple_type): Fix hashing the struct tag of
111 pointer targets. Hash field decl names.
112
113 2009-10-15 Richard Guenther <rguenther@suse.de>
114
115 PR lto/41669
116 * gimple.c (gimple_get_alias_set): Avoid recursing on
117 invalid type topology.
118
119 2009-10-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
120
121 * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
122
123 2009-10-15 Richard Guenther <rguenther@suse.de>
124
125 * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
126
127 2009-10-15 Jakub Jelinek <jakub@redhat.com>
128
129 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
130 add --with-tune{,-32,-64} configured default for -mtune if explicit
131 -mcpu is used.
132
133 2009-10-14 Daniel Gutson <dgutson@codesourcery.com>
134
135 * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds
136 fixed.
137
138 2009-10-14 DJ Delorie <dj@redhat.com>
139
140 * config/h8300/h8300.c (F): New.
141 (Fpa): New.
142 (h8300_emit_stack_adjustment): Call them.
143 (push): Likewise.
144 (h8300_push_pop): Likewise.
145 (h8300_expand_prologue): Likewise.
146 * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
147 (MUST_USE_SJLJ_EXCEPTIONS): Define.
148 (INCOMING_RETURN_ADDR_RTX): Define.
149 (INCOMING_FRAME_SP_OFFSET): Define.
150 (DWARF_CIE_DATA_ALIGNMENT): Define.
151
152 2009-10-14 Jakub Jelinek <jakub@redhat.com>
153
154 * stor-layout.c (place_field): Don't emit -Wpadded warnings for
155 fields in builtin structs.
156 (finalize_record_size): Likewise.
157
158 2009-10-14 Richard Guenther <rguenther@suse.de>
159
160 * gimple.c (gtc_ob): New global.
161 (struct type_pair_d): Replace pointers with type UIDs.
162 (type_pair_hash): Adjust.
163 (type_pair_eq): Likewise.
164 (lookup_type_pair): Likewise. Allocate from an obstack.
165 (gimple_force_type_merge): Adjust.
166 (gimple_types_compatible_p): Likewise.
167 (free_gimple_type_tables): Free the obstack.
168
169 2009-10-14 Jakub Jelinek <jakub@redhat.com>
170
171 * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
172 stmts setting DEBUG_EXPR_DECLs.
173
174 * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
175 Don't crash if mode1 is VOIDmode.
176
177 2009-09-26 Vladimir Makarov <vmakarov@redhat.com>
178
179 * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
180 * params.h (IRA_LOOP_RESERVED_REGS): New
181 * tree-pass.h (pass_subregs_of_mode_init,
182 pass_subregs_of_mode_finish): Remove.
183 * passes.c (pass_subregs_of_mode_init,
184 pass_subregs_of_mode_finish): Remove.
185 (pass_reginfo_init): Move before loop optimizations.
186 * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
187 * common.opt (fira-loop-pressure): New.
188 * toplev.h (flag_ira_loop_pressure): New.
189 * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New
190 externals.
191 * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
192 Make external and void type functions.
193 (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
194 pass_subregs_of_mode_finish): Remove.
195 * ira-costs.c (init_costs): Call init_subregs_of_mode.
196 * regmove.c: Include ira.h.
197 (regmove_optimize): Call ira_set_pseudo_classes after IRA based
198 register pressure calculation in loops.
199 * loop-invariant.c: Include REGS_H and ira.h.
200 (struct loop_data): New members max_reg_pressure, regs_ref, and
201 regs_live.
202 (struct invariant): New member orig_regno.
203 (curr_loop): New variable.
204 (find_exits): Initialize regs_ref and regs_live.
205 (create_new_invariant): Initialize orig_regno.
206 (get_cover_class_and_nregs): New.
207 (get_inv_cost): Make aregs_needed an array. Use regs_needed as an
208 array. Add code for flag_ira_loop_pressure.
209 (gain_for_invariant): Make new_regs an array. Add code for
210 flag_ira_loop_pressure.
211 (best_gain_for_invariant): Ditto.
212 (set_move_mark): New parameter gain. Use it for debugging output.
213 (find_invariants_to_move): Make regs_needed and new_regs an array.
214 Add code for flag_ira_loop_pressure.
215 (move_invariant_reg): Set up orig_regno.
216 (move_invariants): Set up reg classes for pseudos for
217 flag_ira_loop_pressure.
218 (free_loop_data): Clear regs_ref and regs_live.
219 (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
220 get_regno_cover_class, change_pressure, mark_regno_live,
221 mark_regno_death, mark_reg_store, mark_reg_clobber,
222 mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
223 (move_loop_invariants): Calculate pressure. Initialize curr_loop.
224 * ira.c (ira): Call ira_set_pseudo_classes after IRA based
225 register pressure calculation in loops if new regs were added.
226 Call finish_subregs_of_mode.
227 * opts.c (decode_options): Set up flag_ira_loop_pressure.
228 * Makefile.in (loop-invariant.o): Add ira.h.
229 (regmove.o): Ditto.
230 * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
231 Describe.
232 * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
233
234 2009-10-14 Richard Guenther <rguenther@suse.de>
235
236 * lto-symtab.c (lto_symtab_compatible): Fold in ...
237 (lto_symtab_merge): ... here. Rewrite both to take the
238 prevailing and a to-be-merged entry and to queue diagnostics
239 properly.
240 (lto_symtab_resolve_replaceable_p): New predicate for
241 symbol resolution.
242 (lto_symtab_resolve_can_prevail_p): Likewise.
243 (lto_symtab_resolve_symbols): Rewrite. Fold in code that
244 handles merging commons by choosing the largest decl. Fold
245 in code that gives ODR errors.
246 (lto_symtab_merge_decls_2): Simplify a lot. Emit queued
247 diagnostics here.
248 (lto_symtab_merge_decls_1): Re-structure. Deal with the
249 case of no prevailing decl here. Diagnose mismatches
250 in object types here. Drop all but the prevailing decls.
251 (lto_symtab_prevailing_decl): Return the single prevailing decl.
252 * lto-streamer-in.c (lto_input_tree_ref): Deal with
253 VIEW_CONVERT_EXPRs in decl slots. Unshare the tree in this case.
254
255 2009-10-14 Richard Guenther <rguenther@suse.de>
256
257 PR lto/41521
258 * lto-streamer-in.c (input_bb): Replace debug stmts with
259 nops instead of dropping them.
260
261 2009-10-14 Nick Clifton <nickc@redhat.com>
262
263 * gcc/doc/extended.texi: Replace the dash character with
264 @minus{} in situations where it is being used as a minus
265 symbol.
266 * gcc/doc/tm.texi: Likewise.
267 * gcc/doc/md.texi: Likewise.
268
269 2009-10-14 Jakub Jelinek <jakub@redhat.com>
270
271 PR preprocessor/41543
272 * input.h (BUILTINS_LOCATION): Change to 1 from 2.
273 Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
274 * tree.c: Include intl.h.
275 (expand_location): Handle BUILTINS_LOCATION.
276 * Makefile.in (tree.o): Depend on intl.h.
277
278 PR debug/41695
279 * dwarf2out.c (dwarf2out_var_location): Always clear
280 last_postcall_label when changing last_label.
281
282 2009-10-14 Pascal Obry <obry@adacore.com>
283
284 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
285 (process_command): Handle -E as done with -c and -S. Do not add
286 the target executable suffix to the output file when -E is used.
287 (main): Adjust error message accordingly.
288
289 2009-10-14 Alexandre Oliva <aoliva@redhat.com>
290
291 PR debug/41343
292 PR debug/41447
293 PR debug/41264
294 PR debug/41338
295 * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
296 decl with rtl.
297 (tree_code_size): Likewise.
298
299 2009-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
300
301 * builtins.c (fold_builtin_1): Support complex "arc" functions.
302 * real.h (HAVE_mpc_arc): Define.
303
304 2009-10-14 Kaz Kojima <kkojima@gcc.gnu.org>
305
306 * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
307 (struct builtin_description): Add fndecl field.
308 (bdesc): Remove const qualifier. Update initializer.
309 (sh_media_init_builtins): Remove const qualifier for d. Record
310 the result of add_builtin_function to the fndecl field.
311 (sh_builtin_decl): New.
312 (sh_media_builtin_decl): New.
313
314 2009-10-14 Hans-Peter Nilsson <hp@axis.com>
315
316 PR target/38948
317 * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
318 requests between special registers.
319
320 2009-10-13 Eric Botcazou <ebotcazou@adacore.com>
321
322 * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
323
324 2009-10-13 Richard Henderson <rth@redhat.com>
325
326 PR tree-optimization/41377
327 * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
328 (cleanup_empty_eh_merge_phis): New change_region parameter;
329 pass it on to redirect_eh_edge_1. Update callers.
330 (cleanup_empty_eh_unsplit): Don't require an existing EH label
331 at the destination block.
332
333 2009-10-13 Basile Starynkevitch <basile@starynkevitch.net>
334
335 * passes.c (register_pass): Replaced gcc_unreachable by
336 fatal_error on failure. Mentions plugins in comments & messages.
337
338 2009-10-13 Jakub Jelinek <jakub@redhat.com>
339
340 PR target/41693
341 * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
342 * sched-vis.c (print_value): Use it.
343 * cselib.c (cselib_hash_rtx): Likewise.
344 * print-rtl.c (print_rtx): Likewise.
345 * cfgexpand.c (expand_debug_rtx): Likewise.
346 * var-tracking.c (vt_expand_loc_callback): Likewise.
347
348 2009-10-13 Richard Guenther <rguenther@suse.de>
349
350 PR lto/41565
351 * opts.c (handle_option): Split out code to handle setting
352 the options flag var ...
353 (set_option): ... here.
354 * opts.h (set_option): Declare.
355 * lto-opts.c (register_user_option_p): Include -fexceptions
356 and all position independent code variants.
357 (handle_common_option): Remove.
358 (lto_reissue_options): Use set_option.
359
360 2009-10-13 Martin Jambor <mjambor@suse.cz>
361
362 PR tree-optimization/41661
363 * ipa-prop.c (compute_complex_pass_through): Allow only operations
364 that are tcc_comparisons or do not change the type in any
365 un-usleless way.
366 * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
367 folding tcc_comparison operations.
368
369 2009-10-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
370
371 * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
372 properly.
373
374 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
375
376 PR debug/41343
377 PR debug/41447
378 PR debug/41264
379 PR debug/41338
380 * tree.def (DEBUG_EXPR_DECL): New.
381 * rtl.def (DEBUG_EXPR): New.
382 * gengtype.c (adjust_field_rtx_def): Handle it.
383 * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
384 (insert_debug_temp_for_var_def): ... this. Drop support for
385 moving. Take iterator for def stmt; insert debug stmt before it.
386 Scan early for use count and kind in debug stmts.
387 (propagate_defs_into_debug_stmts): Rename to...
388 (insert_debug_temps_for_defs): ... this. Likewise.
389 * tree.h (DEBUG_TEMP_UID): New.
390 * tree.c (next_debug_decl_uid): New.
391 (make_node_stat): Count debug decls separately.
392 (copy_node_stat): Likewise.
393 * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
394 * var-tracking.c (dv_is_decl_p): Recognize it.
395 (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
396 (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
397 (vt_expand_loc_callback): Expand DEBUG_EXPRs.
398 (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
399 * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
400 (cselib_hash_rtx): Likewise.
401 (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
402 * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
403 debug bind stmts.
404 * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
405 (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
406 * rtl.c (copy_rtx): Likewise.
407 (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
408 * print-rtl.c (print_rtx): Likewise.
409 * sched-vis.c (print_value): Likewise.
410 (print_insn): Handle DEBUG_EXPR_DECL.
411 * tree-dump.c (dequeue_and_dump): Likewise.
412 * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
413 * gimple-iterator (gsi_replace): Check for same lhs.
414 (gsi_remove): Insert debug temps.
415 * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
416 (move_computations_stmt): Drop explicit propagation into debug stmts.
417 (rewrite_bittest): Likewise. Use gsi_remove for propagation.
418 * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
419 * tree-ssa-sink.c (statement_sink_location): Likewise.
420 * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
421 * tree-ssanames.c (release_ssa_name): Adjust for rename.
422 * tree-flow.h: Likewise.
423 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
424 debug temps without values.
425 (eliminate_unnecessary_stmts): Don't discard just-inserted
426 debug stmts.
427
428 2009-10-12 Hans-Peter Nilsson <hp@axis.com>
429
430 PR target/26515
431 * config/cris/cris.md (andu): Check that operand 1 is one of the
432 general registers. Fix typo in head comment.
433
434 2009-10-12 Stefan Dösinger <stefan@codeweavers.com>
435
436 * config/i386/i386.md (vswapmov): New.
437 * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
438 (ix86_function_ms_hook_prologue): New.
439 (ix86_expand_prologue): Handle ms_hook_prologue attribute.
440 * configure.ac: Test for swap suffix support in as.
441 * configure: Rebuild.
442
443 2009-10-12 Jakub Jelinek <jakub@redhat.com>
444
445 PR target/41680
446 * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
447 paradoxical subregs to prevent partial register stalls if the inner
448 mode is integer mode.
449
450 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
451
452 * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
453
454 2009-10-12 Dodji Seketeli <dodji@redhat.com>
455
456 PR c++/41570
457 * gcc/dwarf2out.c (template_parameter_pack_die,
458 gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
459
460 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
461
462 PR debug/41616
463 * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
464 on updates too.
465 (maybe_register_def): Likewise. Take stmt iterator.
466 (rewrite_update_stmt): Take stmt iterator and pass it on.
467 (rewrite_update_enter_block): Pass stmt iterator.
468
469 2009-10-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
470
471 * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
472 (spu_builtin_decl): New function.
473
474 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
475
476 * config/i386/i386.md (SWIM): New mode iterator.
477 (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
478 using SWIM mode iterator.
479 (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
480 patterns using SWI48 mode iterator.
481 (*x86_mov<mode>cc_0_m1_se): Macroize insn from
482 *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
483 (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
484 (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
485 patterns using SWI248 mode iterator.
486 * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
487 gen_x86_movdicc_0_m1_rex64 for renamed function
488
489 2009-10-11 Jose Ruiz <ruiz@adacore.com>
490 Eric Botcazou <ebotcazou@adacore.com>
491
492 PR target/33743
493 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
494 * config/sparc/sol2-unwind.h: New file.
495
496 2009-10-11 Olivier Hainque <hainque@adacore.com>
497 Eric Botcazou <ebotcazou@adacore.com>
498
499 PR target/33743
500 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
501 * config/i386/sol2-unwind.h: New file.
502
503 2009-10-11 H.J. Lu <hongjiu.lu@intel.com>
504
505 PR target/41665
506 * config/i386/i386.md (addsi_1_zext): Get the proper second
507 operand for lea.
508
509 2009-10-11 Richard Sandiford <rdsandiford@googlemail.com>
510
511 * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
512 all OLD_RTXes, not just REGs. Use copy_rtx to create the
513 replacement value.
514
515 2009-10-11 Richard Guenther <rguenther@suse.de>
516
517 * gimple.c (iterative_hash_type_name): Do not handle special
518 anonymous names.
519
520 2009-10-11 Uros Bizjak <ubizjak@gmail.com>
521
522 * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
523 (*setcc_si_1_and): Ditto.
524 (*setcc_si_1_movzbl): Ditto.
525 (*setcc_<mode>_2): Ditto.
526 (*setcc_qi): Rename from *setcc_1.
527 (*setcc_qi_slp): Rename from *setcc_2.
528
529 (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
530 (*zero_extendqisi2_movzbw_and splitter): Ditto.
531
532 * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
533 "if" condition, there is already assert with reload_completed present.
534
535 2009-10-11 Gerald Pfeifer <gerald@pfeifer.com>
536
537 * plugin.c (try_init_one_plugin): Improve constness of variable err.
538
539 2009-10-10 Gerald Pfeifer <gerald@pfeifer.com>
540
541 * doc/install.texi (Final install): Refer to
542 http://gcc.gnu.org/bugs/ for bug reporting.
543
544 2009-10-10 Peter Bergner <bergner@vnet.ibm.com>
545
546 * configure.ac: Add test for dci instruction.
547 * configure: Regenerate.
548 * config.in: Likewise.
549 * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
550 * doc/invoke.texi: Add cpu_type 476 and 476fp.
551 (-mmulhw): Add 476 to description.
552 (-mdlmzb): Likewise.
553 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
554 * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
555 (processor_target_table): Add 476 and 476fp entries.
556 (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
557 (rs6000_issue_rate): Add CPU_PPC476.
558 * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
559 (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
560 (processor_type): Add PROCESSOR_PPC476.
561 (EXTRA_SPECS): Add asm_cpu_476 string.
562 * config/rs6000/rs6000.md: (define_attr "type"): Add isel attribute.
563 (define_attr "cpu"): Add ppc476.
564 Include 476.md.
565 Update comments for 476.
566 (isel_signed, isel_unsigned): Change to use "isel" type attribute.
567 * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
568 Update copyright year.
569 * config/rs6000/476.md: New file.
570 * config/rs6000/40x.md: Add description for "isel" attribute.
571 Update copyright year.
572 * config/rs6000/440.md: Likewise.
573 * config/rs6000/603.md: Likewise.
574 * config/rs6000/6xx.md: Likewise.
575 * config/rs6000/7450.md: Likewise.
576 * config/rs6000/7xx.md: Likewise.
577 * config/rs6000/8540.md: Likewise.
578 * config/rs6000/cell.md: Likewise.
579 * config/rs6000/e300c2c3.md: Likewise.
580 * config/rs6000/e500mc.md: Likewise.
581 * config/rs6000/mpc.md: Likewise.
582 * config/rs6000/power4.md: Likewise.
583 * config/rs6000/power5.md: Likewise.
584 * config/rs6000/power6.md: Likewise.
585 * config/rs6000/power7.md: Likewise.
586 * config/rs6000/rios1.md: Likewise.
587 * config/rs6000/rios2.md: Likewise.
588 * config/rs6000/rs64.md: Likewise.
589
590 2009-10-10 Richard Guenther <rguenther@suse.de>
591
592 PR tree-optimization/41654
593 * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
594 a cond expr before calling gimple_cond_set_condition_from_tree.
595 (ifcombine_iforif): Likewise.
596
597 2009-10-09 Ian Lance Taylor <iant@google.com>
598
599 * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
600 * configure: Rebuild.
601
602 2009-10-09 Neil Vachharajani <nvachhar@google.com>
603
604 * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
605 deprecated.
606
607 2009-10-09 Richard Guenther <rguenther@suse.de>
608
609 PR lto/41638
610 * target-def.h (TARGET_BUILTIN_DECL): Define.
611 (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
612 * target.h (struct gcc_target): Add builtin_decl target hook.
613 * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
614 * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
615 target builtins.
616 * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
617 not gcc_unreachable.
618 (lto_output_builtin_tree): Sorry if the target does not support
619 streaming target builtins.
620 * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
621 (rs6000_builtin_decl): New function.
622 * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
623 (ix86_builtin_decl): New function.
624
625 2009-10-09 Jakub Jelinek <jakub@redhat.com>
626
627 PR preprocessor/41445
628 * c-ppoutput.c (do_line_change): New function.
629 (cb_line_change): Use it.
630 (scan_translation_unit): Call do_line_change if
631 avoid_paste or PREV_WHITE and token location is on a different line
632 than print.src_line.
633
634 PR debug/40521
635 * dwarf2out.c (dwarf2out_init): Test whether
636 HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
637 it is defined.
638
639 PR rtl-optimization/41646
640 * calls.c (expand_call): For BLKmode types returned in registers
641 avoid likely spilled hard regs in copy_blkmode_from_reg generated
642 insns.
643
644 2009-10-09 Richard Guenther <rguenther@suse.de>
645
646 PR tree-optimization/41634
647 * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
648 we remove the correct elements.
649 (optimize_stmt): Make sure to update stmt operands before
650 optimizing redundancies.
651
652 2009-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
653
654 * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
655
656 2009-10-09 Richard Guenther <rguenther@suse.de>
657
658 PR driver/41637
659 * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
660 globals.
661 (lto_wrapper_exit): New function.
662 (fatal): Use it.
663 (fatal_perror): Likewise.
664 (fork_execute): Use global args_name, do not free it.
665 (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
666 * lto-streamer.h: Remove duplicate prototypes.
667
668 2009-10-09 Richard Guenther <rguenther@suse.de>
669
670 * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
671 before calling stmt_can_throw_external.
672
673 2009-10-09 Eric Botcazou <ebotcazou@adacore.com>
674
675 PR tree-optimization/40071
676 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
677 pointer if the original data reference doesn't conflict with the
678 created vector data reference. Fix long line.
679
680 2009-10-09 Uros Bizjak <ubizjak@gmail.com>
681
682 * config/i386/i386.md (any_div): New code iterator.
683 (u): Handle div and udiv.
684 (sgnprefix): Ditto.
685 (<u>divqi3): Macroize insn from {,u}divqi3 using any_div
686 code iterator.
687 (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
688 lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
689 (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
690 lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
691
692 2009-10-08 Joseph Myers <joseph@codesourcery.com>
693
694 * gcc.c (main): Remove trailing "." from diagnostics.
695
696 2009-10-08 Cary Coutant <ccoutant@google.com>
697
698 Add support for debugging with ICF (Identical Code Folding).
699 * calls.c (debug.h): New #include.
700 (emit_call_1): Call virtual_call_token debug hook.
701 * common.opt (-fenable-icf-debug): New option.
702 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
703 locations in the source).
704 (poc_label_num): New variable.
705 (dcall_entry, vcall_entry): New typedefs.
706 (dcall_table, vcall_table): New variables.
707 (struct vcall_insn): New type.
708 (vcall_insn_table): New variable.
709 (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
710 (size_of_dcall_table): New function.
711 (output_dcall_table): New function.
712 (size_of_vcall_table): New function.
713 (output_vcall_table): New function.
714 (dwarf2out_direct_call): New function.
715 (vcall_insn_table_hash): New function.
716 (vcall_insn_table_eq): New function.
717 (dwarf2out_virtual_call_token): New function.
718 (dwarf2out_virtual_call): New function.
719 (dwarf2out_init): Allocate new tables and sections.
720 (prune_unused_types): Mark DIEs referenced from direct call table.
721 (dwarf2out_finish): Output direct and virtual call tables.
722 * final.c (final_scan_insn): Call direct_call and virtual_call
723 debug hooks.
724 * debug.h (struct gcc_debug_hooks): Add direct_call,
725 virtual_call_token, virtual_call hooks.
726 (debug_nothing_uid): New function.
727 * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
728 (debug_nothing_uid): New function.
729 * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
730 (xcoff_debug_hooks): Likewise.
731 * sdbout.c (sdb_debug_hooks): Likewise.
732 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
733 * doc/invoke.texi (-fenable-icf-debug): New option.
734
735 2009-10-08 Alexandre Oliva <aoliva@redhat.com>
736
737 PR debug/41353
738 * regmove.c (regmove_backward_pass): Replace src with dst in the
739 debug insn, and check for dst before rather than after.
740
741 2009-10-08 Janis Johnson <janis187@us.ibm.com>
742
743 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
744 (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
745
746 2009-10-08 Jan Hubicka <jh@suse.cz>
747
748 PR middle-end/41626
749 * cgraphbuild.c (record_reference): When parameter DATA is NULL,
750 do not mark cgraph nodes as needed.
751 (record_references_in_initializer): Add new only_vars parameter.
752 * cgraph.h (record_references_in_initializer): New parameter.
753 * varasm.c (assemble_variable): Update call.
754 * varpool.c (varpool_analyze_pending_decls): Always look for
755 referenced vars.
756
757 2009-10-08 Anatoly Sokolov <aesok@post.ru>
758
759 * config/avr/avr.c (last_insn_address) Remove variable.
760 (expand_prologue): Don't initialise last_insn_address variable.
761 (final_prescan_insn): Don't output insn size.
762 * config/avr/avr.opt (msize): Remove switch.
763 * doc/invoke.texi (AVR Options): Remove documentation of -msize
764 switch.
765
766 2009-10-08 Adam Nemet <anemet@caviumnetworks.com>
767
768 * combine.c (label_tick_ebb_start): Fix comment.
769 (combine_instructions): Set label_tick and label_tick_ebb_start before
770 calling setup_incoming_promotions. Start them from 1. Increment
771 label_tick instead of deriving it from the BB index. Rather than
772 comparing ticks use the block from the previous iteration to decide
773 whether to start a new EBB. Remove empty lines before function.
774
775 2009-10-08 Michael Matz <matz@suse.de>
776
777 PR middle-end/41573
778 * builtins.c (fold_builtin_isascii): Use fold_build2.
779 (fold_builtin_isdigit): Ditto.
780 * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
781 * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
782 remove_useless_stmts_cond, remove_useless_stmts_tf,
783 remove_useless_stmts_tc, remove_useless_stmts_bind,
784 remove_useless_stmts_goto, remove_useless_stmts_label,
785 remove_useless_stmts_1, remove_useless_stmts,
786 pass_remove_useless_stmts): Remove.
787 * tree-pass.h (pass_remove_useless_stmts): Don't declare.
788 * passes.c (init_optimization_passes): Don't add
789 pass_remove_useless_stmts.
790 * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
791 * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
792 static constants.
793 * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
794 for static constants.
795 * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
796 * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
797
798 2009-10-08 Richard Guenther <rguenther@suse.de>
799
800 * gimple.c (free_gimple_type_tables): New function.
801 * gimple.h (free_gimple_type_tables): Declare.
802
803 2009-10-07 Mark Heffernan <meheff@google.com>
804
805 * ipa-prop.c (ipa_print_node_params) Only print
806 names of named arguments.
807
808 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
809
810 * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
811 being statically linked.
812
813 2009-10-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
814
815 * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
816
817 2009-10-08 Jan Hubicka <jh@suse.cz>
818
819 PR bootstrap/41620
820 * ipa.c (cgraph_externally_visible_p,
821 function_and_variable_visibility,
822 whole_program_function_and_variable_visibility): Skip non-finalized
823 nodes.
824
825 2009-10-08 Nick Clifton <nickc@redhat.com>
826
827 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
828 CONST_DOUBLEs.
829
830 2009-10-08 Andreas Tobler <a.tobler@schweiz.org>
831
832 PR bootstrap/37739
833 * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
834
835 2009-10-07 Joseph Myers <joseph@codesourcery.com>
836
837 PR c/41182
838 * c-common.c (c_fully_fold_internal): Strip nops from the result
839 of recursive calls to c_fully_fold_internal.
840 (c_wrap_maybe_const): New.
841 (c_save_expr): Use c_wrap_maybe_const.
842 * c-common.h (c_wrap_maybe_const): Declare.
843 * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
844 build_binary_op): Use c_wrap_maybe_const.
845
846 2009-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
847
848 * real.c: Fix comment to reflect actual exponent size.
849
850 2009-10-08 Ben Elliston <bje@au.ibm.com>
851
852 * config/rs6000/a2.md: Add FSF comment header.
853
854 2009-10-07 Uros Bizjak <ubizjak@gmail.com>
855
856 * config/i386/i386.md (any_extend): New code iterator.
857 (u, s): New code attributes.
858 (sgnprefix): Ditto.
859 (DWIH): Rewrite as code iterator for SI and DI modes.
860 (DWI): Rewrite as mode attribute.
861 (dwi): New mode attribute.
862 (di): Depend on SI mode and DI mode.
863 (doubleint_general_operand): Remove mode attribute.
864
865 (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
866 DWIH mode iterator.
867
868 (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
869 (*sub<mode>3_doubleword): Ditto.
870
871 (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
872 using SWIM248 mode iterator.
873 (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
874 using SWI48 mode iterator.
875 (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
876 patterns using DWIH mode iterator and any_extend code iterator.
877 (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
878 using any_extend code iterator.
879 (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
880 patterns using DWIH mode iterator and any_extend code iterator.
881 (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
882 using any_extend code iterator.
883 (<s>mul<mode>3_highpart): Macroize expander from
884 {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
885 and any_extend code iterator.
886 (*<s>muldi3_highpart_1): Macroize insn from
887 *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
888 (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
889 patterns using any_extend code iterator.
890 (*<s>mulsi3_highpart_zext): Macroize insn from
891 *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
892
893 2009-10-07 Jakub Jelinek <jakub@redhat.com>
894
895 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
896 DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
897 refering to a DIE with DW_AT_const_value.
898
899 2009-10-07 Vladimir Makarov <vmakarov@redhat.com>
900
901 PR middle-end/22072
902 * ira-lives.c (check_and_make_def_conflict): Process all operands.
903
904 2009-10-06 Jan Hubicka <jh@suse.cz>
905
906 * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
907 correctly.
908
909 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
910
911 * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
912 *lea_2_rex64): Move before *add<mode>_1 pattern.
913
914 2009-10-07 Jan Hubicka <jh@suse.cz>
915
916 * collect2.c (main): Add -fno-whole-program.
917 * gcc.c (set_collect_gcc_options): Do not remove whole program here.
918
919 2009-10-07 Jan Hubicka <jh@suse.cz>
920
921 * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
922 has no address taken.
923 * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
924 never needed.
925 (cgraph_clone_node): Clear externally_visible flag for clones.
926 * cgraph.h (cgraph_only_called_directly_p,
927 cgraph_can_remove_if_no_direct_calls_p): New predicates.
928 * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
929 * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
930 (ipcp_initialize_node_lattices, ipcp_estimate_growth,
931 ipcp_insert_stage): Likwise.
932 * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
933 externally_visible flag.
934 (verify_cgraph_node): Verify that inline clones look right.
935 (process_function_and_variable_attributes): Do not set
936 externally_visible flags.
937 (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
938 been already run.
939 * lto-cgraph.c (lto_output_node): Assert that inline clones are not
940 boundaries.
941 * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
942 clear externally_visible when turning into inline clones
943 (cgraph_mark_inline_edge): Use new predicates.
944 (cgraph_estimate_growth): Likewise.
945 (cgraph_decide_inlining): Likewise.
946 * ipa.c (cgraph_postorder): Likewise.
947 (cgraph_remove_unreachable_nodes): Likewise; sanity check
948 that inline clones are not needed.
949 (cgraph_externally_visible_p): New predicate.
950 (function_and_variable_visibility): Add whole_program parameter;
951 always set externally_visible flag; handle COMDAT function
952 privatization.
953 (local_function_and_variable_visibility): New function.
954 (gate_whole_program_function_and_variable_visibility): New function.
955 (whole_program_function_and_variable_visibility): New function.
956 (pass_ipa_whole_program_visibility): New function.
957 * passes.c (init_optimization_passes): Add whole program visibility
958 pass.
959 (do_per_function_toporder, function_called_by_processed_nodes_p): Do
960 not care about needed/reachable flags.
961 * varpool.c: Include flags.h
962 (decide_is_variable_needed): When doing LTO assume whole-program mode.
963 (varpool_finalize_decl): When we are in LTO read-back, all variables
964 are analyzed.
965 (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
966
967 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
968
969 * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
970 add MASK_HARD_DFP.
971
972 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
973
974 * config.gcc: Don't include the makefile fragments intended for
975 libgcc.
976 * config/s390/fixdfdi.h: File removed.
977 * config/s390/libgcc-glibc.ver: File removed.
978 * config/s390/s390.h: Remove the fixdfdi.h hack.
979 * config/s390/t-crtstuff: File moved to libgcc dir.
980 * config/s390/t-linux: Likewise.
981 * config/s390/t-tpf: libgcc specific parts removed.
982 * config/s390/t-linux64: Likewise.
983
984 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
985
986 * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
987 (lto-compress.o): Likewise.
988
989 2009-10-07 Danny Smith <dannysmith@users.sourceforge.net>
990
991 PR target/41512
992 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
993 dllexport to class members here.
994 (i386_pe_determine_dllimport_p): Only check static class data for
995 definition.
996 (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
997 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
998 functions for vague linkage.
999 (i386_pe_type_dllexport_p): Fix formatting.
1000 (maybe_add_dllexport) New function.
1001 (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
1002 to class members.
1003
1004 2009-10-07 Ben Elliston <bje@au.ibm.com>
1005
1006 * config/rs6000/a2.md: Remove duplicated lines.
1007
1008 2009-10-07 Ben Elliston <bje@au.ibm.com>
1009
1010 * config.gcc (powerpc*-*-*): Handle a2.
1011 * config/rs6000/rs6000.md (cpu): Add ppca2. Include "a2.md".
1012 * config/rs6000/a2.md: New file.
1013 * config/rs6000/rs6000.opt (mno-update): New.
1014 (mupdate): Return to using a mask, not a var.
1015 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
1016 (enum processor_type): Add PROCESSOR_PPCA2.
1017 * config/rs6000/rs6000.c (ppca2_cost): New costs.
1018 (rs6000_override_options): Add "a2" to processor_target_table.
1019 Update rs6000_always_hint logic. Correctly set rs6000_cost for a2.
1020 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
1021
1022 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
1023
1024 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
1025 Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
1026 reference to nonexistent gen_truncxfxf2 function.
1027
1028 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
1029
1030 * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
1031 (DWIH, g, di, doubleint_general_operand): New mode attributes.
1032 (general_operand): Handle TI mode.
1033 (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
1034 using SDWIM mode iterator.
1035 (*add<mode>3_doubleword): New insn_and_split pattern. Macroize
1036 pattern from *add{di,ti}3_1 patterns and corresponding splitters
1037 using DWI mode iterator.
1038 (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
1039 patterns using SWI mode iterator.
1040 (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
1041 using SWI48 mode iterator.
1042 (*add<mode>_1): Ditto from add{si,di}_1 patterns.
1043 (*add<mode>_2): Ditto from add{si,di}_2 patterns.
1044 (*add<mode>_3): Ditto from add{si,di}_3 patterns.
1045 (*add<mode>_5): Ditto from add{si,di}_5 patterns.
1046 (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
1047 using SDWIM mode iterator.
1048 (*sub<mode>3_doubleword): New insn_and_split pattern. Macroize
1049 pattern from *sub{di,ti}3_1 patterns and corresponding splitters
1050 using DWI mode iterator.
1051 (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
1052 patterns using SWI mode iterator.
1053 (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
1054 (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
1055 (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
1056 (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
1057 patterns using plusminus code iterator.
1058 (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
1059 sub<mode>3 patterns using plusminus code iterator.
1060 * config/i386/i386.c (override_options): Update the call to
1061 gen_subdi_carry_rex64 for renamed function.
1062 (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
1063 and gen_adddi3_carry_rex64 for renamed functions. Use indirect
1064 calls to instruction expanders.
1065
1066 2009-10-06 Martin Jambor <mjambor@suse.cz>
1067
1068 PR bootstrap/41395
1069 * opts.c (decode_options): Run IPA-SRA at -O2.
1070
1071 2009-10-06 Richard Guenther <rguenther@suse.de>
1072
1073 * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
1074
1075 2009-10-06 Tobias Burnus <burnus@net-b.de>
1076
1077 PR lto/41591
1078 * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
1079 -flto and -fwhole-program flags can be combined.
1080
1081 2009-10-06 Ryan Mansfield <rmansfield@qnx.com>
1082
1083 PR driver/41217
1084 * gcc.c (process_command): Check that -o argument was specified.
1085
1086 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
1087
1088 * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
1089
1090 2009-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1091
1092 * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
1093 * doc/invoke.texi (Warning Options): Annotate allowed languages
1094 for -Wunsuffixed-float-constants.
1095
1096 2009-10-05 Jakub Jelinek <jakub@redhat.com>
1097
1098 * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
1099 DW_TAG_{const,volatile}_type if its DW_AT_type already has the
1100 same name and isn't the main variant.
1101
1102 PR debug/41558
1103 * dwarf2out.c (loc_by_reference): Removed.
1104 (dw_loc_list_1): New function.
1105 (dw_loc_list): Remove toplev argument, add want_address argument.
1106 Don't look at decl_by_reference_p at all. Use dw_loc_list_1.
1107 (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
1108 want_address == 2 to dw_loc_list. For successful dw_loc_list
1109 set have_address to 1 only if want_address is not 0.
1110
1111 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
1112
1113 * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
1114 * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
1115 a code block followed by two pointers.
1116 (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
1117 * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
1118 (MIPS_MOVE): Likewise.
1119 (MIPS_LUI): Likewise.
1120 (MIPS_JR): Likewise.
1121 (MIPS_BAL): Likewise.
1122 (MIPS_NOP): Likewise.
1123 (mips_asm_trampoline_template): Delete.
1124 (mips_trampoline_code_size): New function.
1125 (mips_trampoline_init): Add shorter sequences for all cases
1126 except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
1127 Calculate the opcodes directly, rather than copying from a template.
1128 Only flush the code part of the trampoline.
1129 (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
1130
1131 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
1132
1133 * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
1134 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
1135 (INCOMING_RETURN_ADDR_RTX): Likewise.
1136 (FUNCTION_PROFILER): Likewise. Replace GP_REG_FIRST + 1
1137 with AT_REGNUM.
1138 * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
1139 with RETURN_ADDR_REGNUM.
1140 (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
1141 * config/mips/mips.c (mips16_build_call_stub): Replace
1142 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
1143 with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
1144 (mips_print_operand_punctuation): Likewise.
1145 (mips_frame_set): Likewise.
1146 (mips16e_output_save_restore): Likewise.
1147 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
1148 (mips_save_reg_p): Likewise.
1149 (mips_return_addr): Likewise.
1150 (mips_set_return_address): Likewise.
1151 (mips_direct_save_slot_move_p): Likewise.
1152 (mips_output_function_prologue): Likewise.
1153 (mips_restore_reg): Likewise.
1154 (mips_expand_epilogue): Likewise.
1155 (mips_epilogue_uses): Likewise.
1156 * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
1157 (*mov<mode>_ra): Use it instead of a hard-coded 31.
1158 (clear_hazard_<mode>): Likewise.
1159 (call_internal): Likewise.
1160 (call_internal_direct): Likewise.
1161 (call_direct_split): Likewise.
1162 (call_value_internal): Likewise.
1163 (call_value_split): Likewise.
1164 (call_value_internal_direct): Likewise.
1165 (call_value_direct_split): Likewise.
1166 (call_value_multiple_internal): Likewise.
1167 (call_value_multiple_split): Likewise.
1168
1169 2009-10-05 Eric Botcazou <ebotcazou@adacore.com>
1170 Jakub Jelinek <jakub@redhat.com>
1171
1172 PR rtl-optimization/41511
1173 * combine.c (record_value_for_reg): Pass explicit values as argument
1174 to get_last_value_validate.
1175 (get_last_value_validate): Document INSN parameter.
1176 For non-readonly MEMs, assume they might have been modified if INSN
1177 was in another basic block.
1178 (get_last_value): Minor reformatting.
1179
1180 2009-10-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
1181
1182 PR tree-opt/40992
1183 * final.c (asm_str_count): Split out from asm_insn_count.
1184 * rtl.h (asm_str_count): New prototype.
1185 * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
1186 asm_str_count.
1187
1188 2009-10-05 Sriraman Tallam <tmsriram@google.com>
1189
1190 * doc/plugins.texi: Change plugin_pass to register_pass_info.
1191
1192 2009-10-05 Basile Starynkevitch <basile@starynkevitch.net>
1193 Rafael Espindola <espindola@google.com>
1194
1195 * gengtype.c (write_types): Moved call to write_func_for_structure
1196 into seperate loops.
1197
1198 2009-10-05 Richard Guenther <rguenther@suse.de>
1199
1200 PR lto/41281
1201 * lto-cgraph.c (output_cgraph): Output toplevel asms.
1202 (input_cgraph_1): Input toplevel asms.
1203
1204 2009-10-05 Richard Guenther <rguenther@suse.de>
1205
1206 PR lto/40902
1207 * lto-symtab.c (lto_compatible_attributes_p): Remove.
1208 (external_aggregate_decl_p): Likewise.
1209 (lto_symtab_compatible): Re-structure. Remove dead code.
1210 For variables ignore toplevel qualifiers when comparing types.
1211 Issue warnings, not errors for mismatched user-alignment.
1212
1213 2009-10-05 Richard Guenther <rguenther@suse.de>
1214
1215 PR lto/41552
1216 PR lto/41487
1217 * lto-symtab.c (struct lto_symtab_base_def): Remove.
1218 (struct lto_symtab_identifier_def): Likewise.
1219 (struct lto_symtab_decl_def): Likewise.
1220 (struct lto_symtab_entry_def): New.
1221 (lto_symtab_identifier_t): Rename to ...
1222 (lto_symtab_entry_t): ... this.
1223 (lto_symtab_decls): Remove.
1224 (lto_symtab_base_hash): Rename to ...
1225 (lto_symtab_entry_hash): ... this.
1226 (lto_symtab_base_eq): Rename to ...
1227 (lto_symtab_entry_eq): ... this.
1228 (lto_symtab_base_marked_p): Rename to ...
1229 (lto_symtab_entry_marked_p): ... this.
1230 (lto_symtab_identifier_marked_p): Remove.
1231 (lto_symtab_decl_marked_p): Likewise.
1232 (lto_symtab_maybe_init_hash_tables): Rename to ...
1233 (lto_symtab_maybe_init_hash_table): ... this.
1234 (lto_symtab_set_resolution_and_file_data): Remove.
1235 (lto_symtab_register_decl): New function.
1236 (lto_symtab_get_identifier): Remove.
1237 (lto_symtab_get): New function.
1238 (lto_symtab_get_resolution): Adjust.
1239 (lto_symtab_get_identifier_decl): Remove.
1240 (lto_symtab_set_identifier_decl): Likewise.
1241 (lto_symtab_merge_decl): Rename to ...
1242 (lto_symtab_merge): ... this. Rewrite.
1243 (lto_symtab_merge_var): Remove.
1244 (lto_symtab_merge_fn): Likewise.
1245 (lto_symtab_prevailing_decl): Adjust.
1246 (lto_cgraph_replace_node): New function.
1247 (lto_symtab_merge_decls_2): Likewise.
1248 (lto_symtab_merge_decls_1): Likewise.
1249 (lto_symtab_fixup_var_decls): Likewise.
1250 (lto_symtab_resolve_symbols): Likewise.
1251 (lto_symtab_merge_decls): Likewise.
1252 (lto_symtab_prevailing_decl): Adjust.
1253 (lto_symtab_get_symtab_def): Remove.
1254 (lto_symtab_get_file_data): Likewise.
1255 (lto_symtab_clear_resolution): Adjust.
1256 (lto_symtab_clear_resolution): Likewise.
1257 * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
1258 (input_cgraph_1): Likewise.
1259 * lto-streamer-in.c (get_resolution): Do not provide fake
1260 symbol resolutions here.
1261 (deferred_global_decls): Remove.
1262 (lto_register_deferred_decls_in_symtab): Likewise.
1263 (lto_register_var_decl_in_symtab): Change signature, register
1264 variable via lto_symtab_register_decl.
1265 (lto_register_function_decl_in_symtab): Likewise.
1266 (lto_read_tree): Adjust.
1267 * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
1268 (lto_symtab_merge_var): Likewise.
1269 (lto_symtab_merge_fn): Likewise.
1270 (lto_symtab_register_decl): Declare.
1271 (lto_symtab_merge_decls): Likewise.
1272
1273 2009-10-05 Richard Guenther <rguenther@suse.de>
1274
1275 PR tree-optimization/23821
1276 * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
1277 * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
1278 simple IV increments.
1279
1280 2009-10-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1281
1282 * config/arm/arm.c (arm_override_options): Really initialize
1283 flag_dwarf2_cfi_asm to 0.
1284
1285 2009-10-05 Doug Kwan <dougkwan@google.com>
1286
1287 PR rtl-optimization/41574
1288 * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
1289 floating point and we are not doing unsafe math optimizations.
1290
1291 2009-10-03 Simon Baldwin <simonb@google.com>
1292 Cary Coutant <ccoutant@google.com>
1293 Rafael Espindola <espindola@google.com>
1294 Richard Guenther <rguenther@suse.de>
1295 Jan Hubicka <jh@suse.cz>
1296 Doug Kwan <dougkwan@google.com>
1297 H.J. Lu <hongjiu.lu@intel.com>
1298 Bill Maddox <maddox@google.com>
1299 Ryan Mansfield <rmansfield@qnx.com>
1300 Diego Novillo <dnovillo@google.com>
1301 Ollie Wild <aaw@google.com>
1302 Kenneth Zadeck <zadeck@naturalbridge.com>
1303
1304 * lto-cgraph.c: New file.
1305 * lto-compress.c: New file.
1306 * lto-compress.h: New file.
1307 * lto-opts.c: New file.
1308 * lto-section-in.c: New file.
1309 * lto-section-out.c: New file.
1310 * lto-streamer-in.c: New file.
1311 * lto-streamer-out.c: New file.
1312 * lto-streamer.c: New file.
1313 * lto-streamer.h: New file.
1314 * lto-symtab.c: New file.
1315 * lto-wpa-fixup.c: New file.
1316 * lto-wrapper.c: New file.
1317
1318 2009-10-03 Simon Baldwin <baldwin@google.com>
1319 Ben Elliston <bje@au.ibm.com>
1320 Rafael Espindola <espindola@google.com>
1321 Nathan Froyd <froydnj@codesourcery.com>
1322 Jan Hubicka <jh@suse.cz>
1323 Doug Kwan <dougkwan@google.com>
1324 Diego Novillo <dnovillo@google.com>
1325 Kenneth Zadeck <zadeck@naturalbridge.com>
1326
1327 * Makefile.in (enable_lto): New.
1328 (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
1329 (LINKER_PLUGIN_API_H): Define.
1330 (LTO_SYMTAB_H): Define.
1331 (LTO_STREAMER_H): Define.
1332 (TREE_VECTORIZER_H): Define.
1333 (INCLUDES): Add LIBELFINC.
1334 (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
1335 lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
1336 lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
1337 (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
1338 (native): Add lto-wrapper$(exeext)
1339 (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
1340 lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
1341 lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
1342 (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
1343 (varasm.o): Add dependency on tree-iterator.h.
1344 (cgraph.o): Add dependency on cif-code.def.
1345 (ipa-reference.o): Add dependency on LTO_STREAMER_H.
1346 (ipa-pure-const.o): Likewise.
1347 (GTFILES): Add lto-symtab.c.
1348 (install-lto-wrapper): New.
1349 * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
1350 and enable_lto. If LIBELFLIBS is set, define HAVE_libelf.
1351 * config.in: Regenerate.
1352
1353 2009-10-03 Rafael Espindola <espindola@google.com>
1354 Diego Novillo <dnovillo@google.com>
1355
1356 * cgraphunit.c (ipa_passes): Prevent lto1 from calling
1357 ipa_write_summaries.
1358 Call execute_ipa_summary_passes for all_regular_ipa_passes and
1359 all_lto_gen_passes.
1360 (cgraph_optimize): Make extern.
1361
1362 2009-10-03 Nathan Froyd <froydnj@codesourcery.com>
1363 Kenneth Zadeck <zadeck@naturalbridge.com>
1364
1365 * toplev.c (in_lto_p): Declare.
1366 * collect2.c (scan_prog_file): Read all the output when reading
1367 information for LTO.
1368 (enum lto_mode_d): Declare.
1369
1370 2009-10-03 Richard Guenther <rguenther@suse.de>
1371 Diego Novillo <dnovillo@google.com>
1372
1373 * gimple.c: Include target.h and alias.h.
1374 (gimple_types): Declare.
1375 (type_hash_cache): Declare.
1376 (gimple_alloc_stat): Make extern.
1377 (gimple_build_eh_must_not_throw): Call
1378 gimple_eh_must_not_throw_set_fndecl.
1379 (struct type_pair_d): Declare.
1380 (type_pair_t): Declare.
1381 (type_pair_hash): New.
1382 (type_pair_eq): New.
1383 (lookup_type_pair): New.
1384 (gimple_force_type_merge): New.
1385 (compare_type_names_p): New.
1386 (compare_field_offset): New.
1387 (gimple_types_compatible_p): New.
1388 (struct sccs): Declare.
1389 (next_dfs_num): Declare.
1390 (iterative_hash_gimple_type): New.
1391 (visit): New.
1392 (iterative_hash_type_name): New.
1393 (iterative_hash_gimple_type): New.
1394 (gimple_type_hash): New.
1395 (gimple_type_eq): New.
1396 (gimple_register_type): New.
1397 (print_gimple_types_stats): New.
1398 (gimple_signed_or_unsigned_type): New.
1399 (gimple_unsigned_type): New.
1400 (gimple_signed_type): New.
1401 (gimple_get_alias_set): New.
1402 (gimple_decl_printable_name): Do not use DMGL_TYPES.
1403 * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
1404 (gimple_force_type_merge): Declare.
1405 (gimple_types_compatible_p): Declare.
1406 (gimple_register_type): Declare.
1407 (print_gimple_types_stats): Declare.
1408 (gimple_unsigned_type): Declare.
1409 (gimple_signed_type): Declare.
1410 (gimple_get_alias_set): Declare.
1411 (gimple_eh_must_not_throw_set_fndecl): New.
1412
1413 2009-10-03 Jan Hubicka <jh@suse.cz>
1414 Kenneth Zadeck <zadeck@naturalbridge.com>
1415
1416 * ipa-pure-const.c: Include lto-streamer.h.
1417 (register_hooks): Factor out of ...
1418 (generate_summary): ... here.
1419 (pure_const_write_summary): New.
1420 (pure_const_read_summary): New.
1421 (pass_ipa_pure_const): Add pure_const_write_summary and
1422 pure_const_read_summary.
1423 * ipa-reference.c: Include lto-streamer.h.
1424 (add_new_function): New.
1425 (remove_node_data): New.
1426 (duplicate_node_data): New.
1427 (ipa_init): Guard against multiple calls.
1428 Move hook setup from analyze_function.
1429 (write_node_summary_p): New.
1430 (ipa_reference_write_summary): New.
1431 (ipa_reference_read_summary): New.
1432 (pass_ipa_reference): Add ipa_reference_write_summary and
1433 ipa_reference_read_summary.
1434 * cgraph.h (cgraph_local_info): Add field lto_file_data.
1435 (struct cgraph_edge): Add fields lto_stmt_uid and
1436 call_stmt_cannot_inline_p.
1437 (cgraph_optimize): Declare.
1438 (cgraph_decide_is_function_needed): Declare.
1439 (reset_inline_failed): Declare.
1440 (enum LTO_cgraph_tags): Declare.
1441 (LTO_cgraph_tag_names): Declare.
1442 (LCC_NOT_FOUND): Define.
1443
1444 2009-10-03 Doug Kwan <dougkwan@google.com>
1445 Rafael Espindola <espindola@google.com>
1446 Jan Hubicka <jh@suse.cz>
1447 Diego Novillo <dnovillo@google.com>
1448 Kenneth Zadeck <zadeck@naturalbridge.com>
1449
1450 * passes.c (all_regular_ipa_passes): New.
1451 (all_ipa_passes): Rename to all_small_ipa_passes.
1452 (init_optimization_passes): Init all_regular_ipa_passes.
1453 * tree-pass.h (all_regular_ipa_passes): New.
1454 (all_ipa_passes): Rename to all_small_ipa_passes.
1455 * passes.c (all_lto_gen_passes): New.
1456 (init_optimization_passes): Initialize all_lto_gen_passes.
1457 (execute_ipa_summary_passes): Make non-static.
1458 (ipa_write_summaries_1): New.
1459 (ipa_write_summaries_2): New.
1460 (ipa_write_summaries): New.
1461 (ipa_write_summaries_of_cgraph_node_set): New.
1462 (ipa_read_summaries_1): New.
1463 (ipa_read_summaries): New.
1464 (execute_ipa_pass_list): Call cgraph_process_new_functions.
1465 (execute_regular_ipa_pass_list): Remove.
1466 (init_optimization_passes): Schedule
1467 pass_rebuild_cgraph_edges and pass_early_inline outside
1468 of pass_all_early_optimizations. Document reason.
1469 (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
1470 pass_ipa_lto_finish_out): New pass.
1471 (pass_ipa_summary_passes): Start and stop timers if the pass has them.
1472 (execute_all_ipa_transforms): New.
1473 (execute_one_pass): Don't call execute_one_ipa_transform_pass.
1474 (dump_properties, debug_properties): New.
1475 * tree-optimize.c (gate_all_early_local_passes): Return
1476 false if we are in lto1.
1477 (tree_rest_of_compilation): Call execute_all_ipa_transforms.
1478 * tree-pass.h (execute_all_ipa_transforms): Declare.
1479 (pass_ipa_function_and_variable_visibility): Declare.
1480 (pass_ipa_early_inline): Declare.
1481 (pass_ipa_lto_gimple_out): Declare.
1482 (pass_ipa_lto_wpa_fixup): Declare.
1483 (pass_ipa_lto_finish_out): Declare.
1484 (all_small_ipa_passes, all_regular_ipa_passes,
1485 all_lto_gen_passes): Declare.
1486 (execute_ipa_summary_passes): Declare.
1487 (execute_all_ipa_transforms): Declare.
1488 (ipa_write_summaries): Declare
1489 (ipa_write_summaries_of_cgraph_node_set): Declare.
1490 (ipa_read_summaries): Declare.
1491
1492 2009-10-03 Doug Kwan <dougkwan@google.com>
1493 Ollie Wild <aaw@google.com>
1494
1495 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
1496
1497 * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
1498 (lto_mode): New variable.
1499 (maybe_run_lto_and_relink): Handle the -fwpa option.
1500 (main): Handle the -fwpa option.
1501 (maybe_unlink_list): New function.
1502 * gcc.c (link_lto_options): Replace -flto with -fwpa.
1503 * common.opt (flto): New flag.
1504 * toplev.c (flag_generate_lto): Declare.
1505
1506 2009-10-03 Simon Baldwin <simonb@google.com>
1507
1508 * common.opt (flto-compression-level): New flag.
1509
1510 * opts.c: Include lto-opts.h.
1511 (handle_option): Call lto_register_user_option for each
1512 valid option handled.
1513 (decode_options): Clear registered options before the options
1514 handling loop.
1515
1516 2009-10-03 Cary Coutant <ccoutant@google.com>
1517
1518 * collect2.c (is_elf): New function.
1519 (scan_prog_file): Require LTO object to be in ELF format.
1520
1521 2009-10-03 Rafael Espindola <espindola@google.com>
1522
1523 * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
1524 libgcc to the linker.
1525
1526 * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
1527
1528 * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
1529 (collect_execute): Add flags argument. Pass flags to pex_run. Update
1530 all callers.
1531 * collect2.h (collect_execute): Add flags argument.
1532 * tlink.c (tlink_execute): Update call to collect_execute.
1533 * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
1534 (use_linker_plugin): New.
1535 (use_linker_plugin_spec_function): New.
1536 (LINK_COMMAND_SPEC): Pass plugin options to the linker.
1537 (linker_plugin_file_spec): New.
1538 (lto_wrapper_spec): New.
1539 (lto_gcc_spec): New.
1540 (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
1541 (static_spec_functions): Add use-linker-plugin.
1542 (process_command): Handle -use-linker-plugin.
1543 (main): Use lto_wrapper_spec instead of lto_wrapper. Set
1544 linker_plugin_file_spec and lto_gcc_spec.
1545 (use_linker_plugin_spec_function): New.
1546
1547 2009-10-03 Richard Guenther <rguenther@suse.de>
1548
1549 PR lto/41547
1550 PR lto/41548
1551 * tree.h (is_lang_specific): Include LANG_TYPE.
1552 * tree.c (find_decls_types_r): Manually add interesting parts
1553 of TYPE_FIELDS. Walk BINFO_VIRTUALS. Do not walk TYPE_METHODS.
1554
1555 * gimple.c (type_pair_hash): Make symmetric.
1556 (type_pair_eq): Likewise.
1557 (lookup_type_pair): Increase initial hashtable size.
1558 (gimple_force_type_merge): Rely on type-pair symmetry.
1559 (visit): Remove excessive checking code.
1560 (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
1561 (gimple_register_type): Remove getenv calls, shrink initial
1562 hashtable size.
1563
1564 PR middle-end/41502
1565 * cgraphunit.c (ipa_passes): Do not remove bodies of extern
1566 inline functions if not generating lto output.
1567
1568 PR lto/41379
1569 * toplev.c (finalize): In WPA mode remove the asm file.
1570
1571 2009-10-03 Doug Kwan <dougkwan@google.com>
1572
1573 * ipa-inline.c (cgraph_mark_inline): Check
1574 edge->call_stmt_cannot_inline_p instead of calling
1575 gimple_call_cannot_inline_p.
1576 (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
1577 (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
1578 (inline_generate_summary): Do nothing in LTRANS.
1579 * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
1580 exists before calling gimple_call_cannot_inline_p.
1581 (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
1582 (cgraph_clone_edge): Add argument STMT_UID. Modify all callers.
1583 Update new_edge->lto_stmt_uid.
1584 * cgraphbuild.c (reset_inline_failed): New.
1585
1586 * common.opt (fwpa): New flag.
1587 (fltrans): New option.
1588 * gcc.c (gcc_lto_option_t): New type.
1589 (current_lto_option): New variable.
1590 (lto_single_spec_function): Remove and is replaced by ..
1591 (lto_option_spec_function): New function.
1592 (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
1593 passing the -flto flag.
1594 (cc1_options): Separate non-LTO related parts into ..
1595 (cc1_non_lto_options): Non-LTO related options shared by all FEs.
1596 (lto1_options): New spec for lto FE.
1597 (link_lto_options): New spec for handling LTO flags in linker.
1598 (invoke_lto_single): Re-format to fit in 80 column. Replace
1599 lto-single with lto-option.
1600 (static_specs): Add cc1_non_lto_options, lto1_options and
1601 link_lto_options.
1602 (static_spec_function): Replace lto-single with lto-option.
1603 (process_command): Handle -flto, -fwpa and -fltran by setting
1604 current_lto_option and not passing it to subprocess unconditionally.
1605
1606 2009-10-03 Bill Maddox <maddox@google.com>
1607
1608 Add `gcc' driver support for link-time code generation (LTO).
1609
1610 * collect2.c (enum pass): Add new literal PASS_LTOINFO.
1611 (lto_flag, lto_objects, lto_o_file): New variables.
1612 (struct lto_object, struct lto_object_list): New structures.
1613 (collect_exit, handler): Remove LTO temporary output file on exit.
1614 (add_lto_object): New function.
1615 (maybe_run_lto_and_relink): New function. Perform link time code
1616 generation and relinking for object files containing LTO information.
1617 (main): Invoke maybe_run_lto_and_relink().
1618 (dump_argv): New function. For debugging, currently disabled.
1619 (scan_prog_file): Add LTO information pass.
1620 * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
1621 collect2.
1622 * toplev.c (compile_file): Emit assembler directive to create
1623 the `gnu_lto_v1' marker symbol when compiling with `-flto'.
1624
1625 2009-10-03 Diego Novillo <dnovillo@google.com>
1626
1627 * c.opt: Add LTO to warn_abi and warn_psabi.
1628
1629 * tree.c (fld_worklist_push): Rename from PUSH. Convert to static
1630 inline function. Ignore language-specific nodes. Update all users.
1631 (find_decls_types_r): Do not traverse the subtrees of
1632 language-specific nodes. Do not traverse DECL_INITIAL for TYPE_DECLs.
1633 * tree.h (is_lang_specific): New.
1634 * langhooks.h (struct lang_hooks_for_decls): Remove
1635 may_need_assembler_name_p. Update all users.
1636
1637 * c-common.c (set_builtin_user_assembler_name): Move ...
1638 * builtins.c (set_builtin_user_assembler_name): ... here.
1639 (is_builtin_name): Add comment
1640 (is_builtin_fn): New.
1641 * except.c (output_ttype): Only call
1642 lookup_type_for_runtime if TYPE is not a runtime type.
1643
1644 * passes.c (register_pass): Call position_pass on
1645 all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
1646 * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
1647 (TV_IPA_LTO_DECL_IO): Define.
1648 (TV_IPA_LTO_CGRAPH_IO): Define.
1649 (TV_LTO): Define.
1650 (TV_WHOPR_WPA): Define.
1651 (TV_WHOPR_WPA_IO): Define.
1652 (TV_WHOPR_LTRANS): Define.
1653 (TV_WHOPR_WPA_FIXUP): Define.
1654 (TV_WHOPR_WPA_LTRANS_EXEC): Define.
1655 * tree-cfg.c (tree_node_can_be_shared): Make extern.
1656 * tree-flow.h (tree_node_can_be_shared): Declare.
1657 * tree-inline.c (tree_can_inline_p): Check that E has a
1658 statement associated with it.
1659 * tree.c (free_lang_data_in_binf): Factor out of ...
1660 (free_lang_data_in_type): ... here.
1661 Call RECORD_OR_UNION_TYPE_P.
1662 (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
1663 set. Call lang_hooks.decls.may_need_assembler_name_p if set.
1664 (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
1665 (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE. Set
1666 write_symbols to NO_DEBUG. Set debug_hooks to do_nothing_debug_hooks.
1667 (gate_free_lang_data): Return true if flag_generate_lto is set.
1668 (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
1669 * c-common.h (set_builtin_user_assembler_name): Move ...
1670 * tree.h (set_builtin_user_assembler_name): ... here.
1671
1672 * common.opt (flto-report): New flag.
1673 * opts.c (complain_wrong_lang): Do not complain if running lto1.
1674 * collect2.c (scan_prog_file): Send the error output of
1675 'nm' to HOST_BIT_BUCKET.
1676
1677 2009-10-03 Ollie Wild <aaw@google.com>
1678
1679 * langhooks-def.h (lhd_begin_section): New function declaration.
1680 (lhd_write_section): New function declaration.
1681 (lhd_end_section): New function declaration.
1682 (LANG_HOOKS_BEGIN_SECTION): New macro.
1683 (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
1684 (LANG_HOOKS_END_SECTION): New macro.
1685 (LANG_HOOKS_LTO): New macro.
1686 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
1687 * langhooks.c (output.h): Add include.
1688 (saved_section): New static variable.
1689 (lhd_begin_section): New function.
1690 (lhd_write_section_data): New function.
1691 (lhd_end_section): New function.
1692 * langhooks.h (struct lang_hooks_for_lto): New structure.
1693 (struct lang_hooks): Add member lto.
1694 * Makefile.in (langhooks.o): Add dependency on output.h.
1695
1696 * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
1697
1698 2009-10-03 Richard Guenther <rguenther@suse.de>
1699
1700 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
1701 Handle LTO.
1702
1703 2009-10-03 Simon Baldwin <simonb@google.com>
1704 Richard Guenther <rguenther@suse.de>
1705 Janis Johnson <janis187@us.ibm.com>
1706 Doug Kwan <dougkwan@google.com>
1707 Diego Novillo <dnovillo@google.com>
1708 Ramana Radhakrishnan <ramana.r@gmail.com>
1709 Ollie Wild <aaw@google.com>
1710
1711 * doc/install.texi: Add documentation for libelf and --enable-lto.
1712 * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
1713 -flto-report, -flto-compression-level and -use-linker-plugin.
1714 * doc/sourcebuild.texi: Document use of zlib. Document lto-plugin.
1715 Add section for LTO Testing.
1716
1717 2009-10-02 Cary Coutant <ccoutant@google.com>
1718
1719 Add support for comdat type sections for DWARF v4.
1720 Merge from dwarf4 branch.
1721
1722 * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
1723 (dw_die_ref): Define vector type.
1724 (enum dw_val_class): Add dw_val_class_data8.
1725 (struct dw_val_struct): Add v.val_data8.
1726 (comdat_type_node_ref): New type.
1727 (struct die_struct): Move die_symbol into a union; add new field
1728 die_type_node. Change all uses.
1729 (comdat_type_node): New type.
1730 (skeleton_chain_node): New type.
1731 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
1732 (comdat_type_list): New variable.
1733 (dwarf_tag_name): Add DW_TAG_type_unit.
1734 (dwarf_attr_name): Add DW_AT_signature.
1735 (add_AT_data8): New function.
1736 (replace_child): New function.
1737 (move_all_children): New function.
1738 (print_signature): New function.
1739 (print_die): Print signature information; add dw_val_class_data8.
1740 (attr_checksum): Support dw_val_class_data8.
1741 (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
1742 (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
1743 (checksum_sleb128, checksum_uleb128): New functions.
1744 (checksum_die_context): New function.
1745 (loc_checksum_ordered): New function.
1746 (attr_checksum_ordered): New function.
1747 (struct checksum_attributes): New structure.
1748 (collect_checksum_attributes): New function.
1749 (die_checksum_ordered): New function.
1750 (generate_type_signature): New function.
1751 (same_dw_val_p): Add dw_val_class_data8.
1752 (is_symbol_die): Use new is_declaration_die function.
1753 (is_declaration_die): New function.
1754 (should_move_die_to_comdat): New function.
1755 (clone_die): New function.
1756 (clone_tree): New function.
1757 (clone_as_declaration): New function.
1758 (copy_declaration_context): New function.
1759 (generate_skeleton_ancestor_tree): New function.
1760 (generate_skeleton_bottom_up): New function.
1761 (generate_skeleton): New function.
1762 (remove_child_or_replace_with_skeleton): New function.
1763 (break_out_comdat_types): New function.
1764 (struct decl_table_entry): New type.
1765 (htab_decl_hash): New function.
1766 (htab_decl_eq): New function.
1767 (htab_decl_del): New function.
1768 (copy_ancestor_tree): New function.
1769 (copy_decls_walk): New function.
1770 (copy_decls_for_unworthy_types): New function.
1771 (build_abbrev_table): Don't assert on missing die_symbol when doing
1772 comdat type sections.
1773 (size_of_die): Use DW_FORM_sig8 for external references. Add
1774 dw_val_class_data8.
1775 (unmark_dies): Don't assert for unmarked dies when doing comdat
1776 type sections.
1777 (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
1778 (output_signature): New function.
1779 (output_die): Likewise.
1780 (output_compilation_unit_header): Mark output as DWARF version 3
1781 even if generating DWARF 4.
1782 (output_comdat_type_unit): New function.
1783 (output_line_info): Mark output as DWARF version 3 even if generating
1784 DWARF 4.
1785 (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
1786 DWARF-4.
1787 (dwarf2out_end_source_file): Likewise.
1788 (prune_unused_types_walk_attribs): Don't follow references into
1789 comdat type sections.
1790 (prune_unused_types_mark): When generating type units, do not mark
1791 children of non-defining declarations of types; do mark children of
1792 type entries.
1793 (prune_unused_types): Process comdat type sections.
1794 (htab_ct_hash): New function.
1795 (htab_ct_eq): New function.
1796 (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
1797 Add a pointer to the line table from type unit entries so
1798 DW_AT_decl_file has meaning.
1799 * varasm.c (default_elf_asm_named_section): Use identifier name as
1800 comdat key instead of lang hook.
1801
1802 2009-10-02 Neil Vachharajani <nvachhar@google.com>
1803
1804 * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
1805
1806 2009-10-02 Uros Bizjak <ubizjak@gmail.com>
1807
1808 * config/i386/i386.md (SWIM248): New mode iterator.
1809 (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
1810 divmodhi4 patterns using SWIM248 macro.
1811 (*divmod<mode>4): Macroize insn_and_split pattern from
1812 *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
1813 and their corresponding splitters usign SWIM248 macro. Split SImode
1814 insn to generate cltd and DImode insn to generate cqto instead of
1815 move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
1816 (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
1817 (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
1818 *divmodsi_noext patterns using SWIM248 macro.
1819 (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
1820 udivmodhi4 patterns using SWIM248 macro.
1821 (*udivmod<mode>4): Macroize insn_and_split pattern from
1822 *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
1823 corresponding splitters using SWIM248 macro.
1824 (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
1825 *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
1826
1827 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
1828
1829 * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
1830 of zero-sized element is zero-sized regardless of its extent.
1831
1832 2009-10-02 Jakub Jelinek <jakub@redhat.com>
1833
1834 PR debug/40521
1835 * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
1836 * configure: Regenerated.
1837 * config.in: Regenerated.
1838 * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
1839 !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
1840 (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
1841 not emitting .eh_frame, emit .cfi_sections .debug_frame
1842 directive.
1843
1844 PR debug/41404
1845 PR debug/41353
1846 * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
1847 CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
1848 with '\0'.
1849 (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
1850 vars use DECL_RTL with resetting it back to NULL afterwards.
1851 * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
1852 rtx_equal_p instead of asserting it is a SYMBOL_REF.
1853 (value_format): For dw_val_class_addr only use DW_FORM_addr if
1854 the attribute type allows it, otherwise use DW_FORM_dataN.
1855 (mem_loc_descriptor): Handle CONST_STRING.
1856 (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
1857 Handle MEM with CONST_STRING address using add_AT_string.
1858 (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
1859 CONST_STRING for const arrays initialized with a string literal.
1860 (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
1861 (dwarf2out_finish): Call resolve_addr.
1862
1863 2009-10-02 Andreas Schwab <schwab@linux-m68k.org>
1864 Maxim Kuvyrkov <maxim@codesourcery.com>
1865
1866 * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
1867
1868 2009-10-02 Nick Clifton <nickc@redhat.com>
1869
1870 * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
1871 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
1872
1873 2009-10-01 Jan Hubicka <jh@suse.cz>
1874
1875 * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
1876 (cgraph_create_virtual_clone): Just pass redirect_callers
1877 around.
1878 * cgraph.h (cgraph_clone_node): Update prototype.
1879 * ipa-pure-const.c (self_recursive_p): New function.
1880 (propagate): Use it.
1881 * ipa-inline.c (cgraph_clone_inlined_nodes,
1882 cgraph_decide_recursive_inlining): Update.
1883
1884 2009-10-01 David Daney <ddaney@caviumnetworks.com>
1885
1886 * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
1887 instructions for TARGET_OCTEON.
1888
1889 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1890
1891 * config/arm/arm.c (arm_override_options): Turn off
1892 flag_dwarf2_cfi_asm for AAPCS variants.
1893
1894 2009-10-01 Martin Jambor <mjambor@suse.cz>
1895
1896 PR middle-end/12392
1897 * tree-sra.c (convert_callers): Do not call
1898 compute_inline_parameters on one caller more than once.
1899
1900 2009-10-01 Nick Clifton <nickc@redhat.com>
1901
1902 * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
1903 an empty string if not already defined.
1904
1905 2009-10-01 Martin Jambor <mjambor@suse.cz>
1906
1907 PR bootstrap/41395
1908 * tree-sra.c (is_va_list_type): New function.
1909 (find_var_candidates): Call is_va_list_type.
1910 (find_param_candidates): Check that the type or the type pointed
1911 to are not va_list types.
1912
1913 2009-10-01 Martin Jambor <mjambor@suse.cz>
1914
1915 PR c++/41503
1916 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
1917 DECL_ARTIFICIAL (param_decl) is true.
1918
1919 2009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
1920
1921 * tree.h (tree_decl_common::lang_flag_8): New.
1922 * c-common.c (c_common_reswords): Include "constexpr" as C++0x
1923 keyword.
1924 * c-common.h (RID_CONSTEXPR): New.
1925
1926 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
1927
1928 * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
1929 Use ref-all pointers.
1930 (alpha_gimplify_va_arg): Ditto.
1931
1932 2009-09-30 Jakub Jelinek <jakub@redhat.com>
1933
1934 PR target/41279
1935 * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
1936 before insn counting loop now that BB_END (bb) is counted. Ensure
1937 the return value isn't zero.
1938
1939 2009-09-30 Nick Clifton <nickc@redhat.com>
1940
1941 * config.gcc (sh-symbianelf): Replace definition of extra_objs
1942 with separate definitions of c_target_objs and cxx_target_objs.
1943 * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
1944 and symbian-base.o.
1945 * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
1946 sh_symbian_import_export_class.
1947 * config/sh/sh-protos.h: Fix names of exported symbian functions.
1948 * config/sh/symbian.c: Delete, moving code into...
1949 * config/sh/symbian-base.c: ... here
1950 * config/sh/symbian-c.c: ... and here
1951 * config/sh/symbian-cxx.c: ... and here.
1952
1953 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
1954
1955 PR target/22093
1956 * config/alpha/alpha.md (unaligned_storehi_be): Force operand
1957 of plus RTX into register.
1958
1959 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1960
1961 * doc/install.texi: Linguistic and markup fixes.
1962 (Configuration) <--disable-cpp>: Remove description.
1963 <--enable-maintainer-mode>: Autotools files are affected, too.
1964 <--with-sysroot>: Improve description.
1965 (Building): Bump required GNU make version.
1966
1967 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
1968
1969 * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
1970 (x86_64-*-*): Ditto.
1971
1972 * config/i386/fma4intrin.h: New file, provide common x86 compiler
1973 intrinisics for FMA4.
1974 * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
1975 * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
1976 Add FMA4 check and fma4intrin.h.
1977 * config/i386/i386-c.c(ix86_target_macros_internal): Check
1978 ISA_FLAG for FMA4.
1979 * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
1980 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
1981 constant for FMA4 support.
1982 (UNSPEC_FMA4_FMADDSUB): Ditto.
1983 (UNSPEC_FMA4_FMSUBADD): Ditto.
1984 * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
1985 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
1986 (ix86_expand_fma4_multiple_memory): Ditto.
1987 * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
1988 (OPTION_MASK_ISA_FMA4_UNSET): New.
1989 (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
1990 (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
1991 (ix86_handle_option): Handle -mfma4.
1992 (isa_opts): Handle -mfma4.
1993 (enum pta_flags): Add PTA_FMA4.
1994 (override_options): Add FMA4 support.
1995 (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
1996 (IX86_BUILTIN_VFMADDSD): Ditto.
1997 (IX86_BUILTIN_VFMADDPS): Ditto.
1998 (IX86_BUILTIN_VFMADDPD): Ditto.
1999 (IX86_BUILTIN_VFMSUBSS): Ditto.
2000 (IX86_BUILTIN_VFMSUBSD): Ditto.
2001 (IX86_BUILTIN_VFMSUBPS): Ditto.
2002 (IX86_BUILTIN_VFMSUBPD): Ditto.
2003 (IX86_BUILTIN_VFMADDSUBPS): Ditto.
2004 (IX86_BUILTIN_VFMADDSUBPD): Ditto.
2005 (IX86_BUILTIN_VFMSUBADDPS): Ditto.
2006 (IX86_BUILTIN_VFMSUBADDPD): Ditto.
2007 (IX86_BUILTIN_VFNMADDSS): Ditto.
2008 (IX86_BUILTIN_VFNMADDSD): Ditto.
2009 (IX86_BUILTIN_VFNMADDPS): Ditto.
2010 (IX86_BUILTIN_VFNMADDPD): Ditto.
2011 (IX86_BUILTIN_VFNMSUBSS): Ditto.
2012 (IX86_BUILTIN_VFNMSUBSD): Ditto.
2013 (IX86_BUILTIN_VFNMSUBPS): Ditto.
2014 (IX86_BUILTIN_VFNMSUBPD): Ditto.
2015 (IX86_BUILTIN_VFMADDPS256): Ditto.
2016 (IX86_BUILTIN_VFMADDPD256): Ditto.
2017 (IX86_BUILTIN_VFMSUBPS256): Ditto.
2018 (IX86_BUILTIN_VFMSUBPD256): Ditto.
2019 (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
2020 (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
2021 (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
2022 (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
2023 (IX86_BUILTIN_VFNMADDPS256): Ditto.
2024 (IX86_BUILTIN_VFNMADDPD256): Ditto.
2025 (IX86_BUILTIN_VFNMSUBPS256): Ditto.
2026 (IX86_BUILTIN_VFNMSUBPD256): Ditto.
2027 (enum multi_arg_type): New enum for describing the various FMA4
2028 intrinsic argument types.
2029 (bdesc_multi_arg): New table for FMA4 intrinsics.
2030 (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
2031 (ix86_expand_multi_arg_builtin): New function for creating FMA4
2032 intrinsics.
2033 (ix86_expand_builtin): Add FMA4 intrinsic support.
2034 (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
2035 operand instructions.
2036 (ix86_expand_fma4_multiple_memory): New function to split the
2037 second memory reference from FMA4 instructions.
2038 * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
2039 (ssemodesuffixf2s): Ditto.
2040 (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
2041 instructions.
2042 (fma4_fmsub<mode>4): Ditto.
2043 (fma4_fnmadd<mode>4): Ditto.
2044 (fma4_fnmsub<mode>4): Ditto.
2045 (fma4_vmfmadd<mode>4): Ditto.
2046 (fma4_vmfmsub<mode>4): Ditto.
2047 (fma4_vmfnmadd<mode>4): Ditto.
2048 (fma4_vmfnmsub<mode>4): Ditto.
2049 (fma4_fmadd<mode>4256): Ditto.
2050 (fma4_fmsub<mode>4256): Ditto.
2051 (fma4_fnmadd<mode>4256): Ditto.
2052 (fma4_fnmsub<mode>4256): Ditto.
2053 (fma4_fmaddsubv8sf4): Ditto.
2054 (fma4_fmaddsubv4sf4): Ditto.
2055 (fma4_fmaddsubv4df4): Ditto.
2056 (fma4_fmaddsubv2df4): Ditto.
2057 (fma4_fmsubaddv8sf4): Ditto.
2058 (fma4_fmsubaddv4sf4): Ditto.
2059 (fma4_fmsubaddv4df4): Ditto.
2060 (fma4_fmsubaddv2df4): Ditto.
2061 (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
2062 instructions for intrinsics.
2063 (fma4i_fmsub<mode>4): Ditto.
2064 (fma4i_fnmadd<mode>4): Ditto.
2065 (fma4i_fnmsub<mode>4): Ditto.
2066 (fma4i_vmfmadd<mode>4): Ditto.
2067 (fma4i_vmfmsub<mode>4): Ditto.
2068 (fma4i_vmfnmadd<mode>4): Ditto.
2069 (fma4i_vmfnmsub<mode>4): Ditto.
2070 (fma4i_fmadd<mode>4256): Ditto.
2071 (fma4i_fmsub<mode>4256): Ditto.
2072 (fma4i_fnmadd<mode>4256): Ditto.
2073 (fma4i_fnmsub<mode>4256): Ditto.
2074 (fma4i_fmaddsubv8sf4): Ditto.
2075 (fma4i_fmaddsubv4sf4): Ditto.
2076 (fma4i_fmaddsubv4df4): Ditto.
2077 (fma4i_fmaddsubv2df4): Ditto.
2078 (fma4i_fmsubaddv8sf4): Ditto.
2079 (fma4i_fmsubaddv4sf4): Ditto.
2080 (fma4i_fmsubaddv4df4): Ditto.
2081 (fma4i_fmsubaddv2df4): Ditto.
2082
2083 * doc/invoke.texi (-mfma4): Add documentation.
2084 * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
2085
2086 2009-09-29 Richard Henderson <rth@redhat.com>
2087
2088 * tree-eh.c (unsplit_eh): Do not unsplit if there's already
2089 an edge to the new destination block.
2090
2091 2009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2092
2093 PR target/41393
2094 * pa.c (hppa_profile_hook): Use
2095 make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
2096
2097 2009-09-29 Steve Ellcey <sje@cup.hp.com>
2098 Alexander Monakov <amonakov@ispras.ru>
2099
2100 PR target/41365
2101 * config/ia64/predicates.md (not_postinc_destination_operand): New.
2102 (not_postinc_memory_operand): New.
2103 (not_postinc_move_operand): New.
2104 * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
2105 (*cmovsi_internal): Ditto.
2106
2107 2009-09-29 Pat Haugen <pthaugen@us.ibm.com>
2108
2109 * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
2110 restrict issue_rate in first pass when scheduling for register
2111 pressure.
2112
2113 2009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
2114 Rafael Avila de Espindola <espindola@google.com>
2115
2116 * gengtype.c (plugin_output): New.
2117 (get_output_file_with_visibility): Return plugin_output for plugins.
2118 (main): Parse and use the -P option.
2119 * gty.texi: Update the command line format.
2120
2121 2009-09-29 Jakub Jelinek <jakub@redhat.com>
2122
2123 PR debug/41438
2124 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
2125 functions.
2126 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
2127 out if !const_ok_for_output.
2128
2129 PR debug/41474
2130 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
2131 case VAR_LOCATION>: Remove gcc_unreachable ().
2132
2133 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
2134
2135 * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
2136 (x86_64-*-*): Ditto.
2137 * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
2138 back to smmintrin.h.
2139 * config/i386/cpuid.h: (bit_SSE5): Remove SSE5 bit.
2140 * config/i386/x86intrin.h: Remove SSE5.
2141 * config/i386/mmintrin-common.h: Delete file.
2142 * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
2143
2144 2009-09-29 Richard Guenther <rguenther@suse.de>
2145
2146 * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
2147 resulting from stack temporaries on STRICT_ALIGNMENT targets.
2148
2149 2009-09-29 Nick Clifton <nickc@redhat.com>
2150
2151 * function.c (current_function_name): If there is no current
2152 function just return "<none>".
2153
2154 2009-09-28 Sriraman Tallam <tmsriram@google.com>
2155
2156 * tree-pass.h (register_pass_info): New structure.
2157 (pass_positioning_ops): Move enum from gcc-plugin.h.
2158 (register_pass): New function.
2159 * gcc-plugin.h (plugin_pass): Delete structure.
2160 (pass_positioning_ops): Delete enum.
2161 * plugin.c (regsiter_pass): Delete function.
2162 (position_pass): Delete function.
2163 (added_pass_nodes): Delete variable.
2164 (prev_added_pass_nodes): Delete variable.
2165 (pass_list_node): Delete structure.
2166 * passes.c (make_pass_instance): New function.
2167 (next_pass_1): Change to call make_pass_instance.
2168 (pass_list_node): Move structure from gcc-plugin.h.
2169 (added_pass_nodes): Move variable from plugin.c.
2170 (prev_added_pass_nodes): Move variable from plugin.c.
2171 (position_pass): New function.
2172 (register_pass): New function.
2173
2174 2009-09-28 Easwaran Raman <eraman@google.com>
2175
2176 * ifcvt.c (noce_try_abs): Recognize pattern and call
2177 expand_one_cmpl_abs_nojump.
2178 * optabs.c (expand_one_cmpl_abs_nojump): New function.
2179 * optabs.h (expand_one_cmpl_abs_nojump): Declare.
2180
2181 2009-09-28 Ian Lance Taylor <iant@google.com>
2182
2183 PR middle-end/40500
2184 * c-opts.c (c_common_handle_option): Don't set
2185 warn_jump_misses_init for -Wall.
2186 * doc/invoke.texi (Warning Options): Update documentation.
2187
2188 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2189
2190 * Makefile.in ($(out_object_file)): Depend on
2191 gt-$(basename $(notdir $(out_file))).h.
2192
2193 2009-09-28 Richard Henderson <rth@redhat.com>
2194
2195 * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
2196 * except.c (gen_eh_region): Set it.
2197 (duplicate_eh_regions_1): Copy it.
2198 * tree-eh.c (lower_resx): Use it to determine which function
2199 to call to resume.
2200
2201 * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
2202 * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
2203 * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
2204 * tree.c (build_common_builtin_nodes): Remove parameter. Build
2205 BUILT_IN_CXA_END_CLEANUP if necessary.
2206
2207 * c-common.c (c_define_builtins): Update call to
2208 build_common_builtin_nodes.
2209
2210 2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
2211
2212 * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
2213
2214 2009-09-28 Michael Matz <matz@suse.de>
2215
2216 * builtins.c (interclass_mathfn_icode): New helper.
2217 (expand_builtin_interclass_mathfn): Use it here, and split folding
2218 into ...
2219 (fold_builtin_interclass_mathfn): ... this new folder.
2220 (build_call_nofold_loc): New static helper.
2221 (build_call_nofold): New wrapper macro for above.
2222 (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
2223 (expand_builtin_pow): Ditto.
2224 (expand_builtin_memset_args): Ditto.
2225 (expand_builtin_printf): Ditto.
2226 (expand_builtin_fprintf): Ditto.
2227 (expand_builtin_sprintf): Ditto.
2228 (expand_builtin_memory_chk): Ditto.
2229 (expand_builtin_mempcpy_args): Ditto and don't call folders.
2230 (expand_builtin_stpcpy): Ditto.
2231 (expand_builtin_strcmp): Ditto.
2232 (expand_builtin_strncmp): Ditto.
2233 (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
2234 (expand_builtin_strcpy_args): Don't call folders.
2235 (expand_builtin_memcmp): Ditto.
2236 (expand_builtin_strncpy): Ditto, and use target.
2237 (expand_builtin_memcpy): Ditto.
2238 (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
2239 expand_builtin_strpbrk, expand_builtin_memmove,
2240 expand_builtin_memmove_args, expand_builtin_bcopy,
2241 expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
2242 expand_builtin_strspn, expand_builtin_strcspn,
2243 expand_builtin_fputs): Remove these.
2244 (expand_builtin): Don't call the above, change calls to other
2245 expanders that changed prototype.
2246 (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
2247 (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
2248 fold_builtin_interclass_mathfn.
2249 (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
2250 (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
2251
2252 * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
2253 * passes.c (init_optimization_passes): Move pass_fold_builtins
2254 after last phiopt pass.
2255 * tree-inline.c (fold_marked_statements): When folding builtins
2256 iterate over all instruction potentially generated.
2257 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
2258 earlier.
2259 (fold_gimple_call): Use it to always fold calls (into potentially
2260 multiple instructions).
2261 * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
2262 calls into zero at this time.
2263 * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
2264 statements generated by builtin folding.
2265
2266 2009-09-28 Nick Clifton <nickc@redhat.com>
2267
2268 * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
2269
2270 2009-09-28 Duncan Sands <baldrick@free.fr>
2271
2272 * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
2273 * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
2274 (register_callback): Dispatch it.
2275 (invoke_plugin_callbacks): Incorporate in sanity check.
2276 * ggc.h (ggc_register_cache_tab): Add declaration.
2277 * ggc-common.c (ggc_register_root_tab): Simplify.
2278 (const_ggc_cache_tab_t): New typedef.
2279 (extra_cache_vec): New vector of dynamically added cache tables.
2280 (ggc_register_cache_tab): New function.
2281 (ggc_scan_cache_tab): New function.
2282 (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
2283 * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
2284
2285 2009-09-27 Richard Henderson <rth@redhat.com>
2286
2287 * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
2288 which we remove __builtin_stack_restore.
2289
2290 2009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
2291
2292 * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
2293 to test for GRD_INVARIANT.
2294 (simple_rhs_p): Anything that's function_invariant_p is fine.
2295
2296 2009-09-27 Rafael Avila de Espindola <espindola@google.com>
2297
2298 * gengtype.c (main): Use plunge_files instead of plugin_output.
2299
2300 2009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
2301 Rafael Avila de Espindola <espindola@google.com>
2302
2303 * gengtype.c (write_root, write_roots): Add a emit_pch argument.
2304 Don't print pch related info if it is false.
2305 (main): Don't print pch info in plugin mode.
2306
2307 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
2308
2309 * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
2310 with dw_val_class_const_double.
2311 (struct dw_val_struct): Replace val_long_long with val_double and
2312 adjust for above change.
2313 (output_loc_operands): Likewise.
2314 (add_AT_long_long): Rename into...
2315 (add_AT_double): ...this.
2316 (print_die): Replace dw_val_class_long_long with
2317 dw_val_class_const_double and adjust.
2318 (attr_checksum): Likewise.
2319 (same_dw_val_p): Likewise.
2320 (size_of_die): Likewise.
2321 (value_format): Likewise.
2322 (output_die): Likewise.
2323 (loc_descriptor) <CONST_DOUBLE>: Likewise.
2324 (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
2325 instead of add_AT_long_long.
2326 (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
2327 value with the precision of its type.
2328
2329 2009-09-27 Andreas Schwab <schwab@linux-m68k.org>
2330
2331 PR c/41476
2332 * c-typeck.c (build_conditional_expr): Use the readonly and
2333 volatile flags of the operand types, not of the operands itself.
2334
2335 2009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
2336
2337 * collect2.c (main): Look for -brtl before adding libraries.
2338
2339 2009-09-27 Jonathan Gray <jsg@openbsd.org>
2340
2341 * config.gcc: Update OpenBSD targets.
2342 * config/openbsd-stdint.h: New file.
2343 * config/openbsd-libpthread.h: New file.
2344 * config/openbsd.h: Update and break out LIB_SPEC definition.
2345 * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
2346 * config/i386/openbsdelf.h: Correct types.
2347 * config/m68k/openbsd.h: Likewise.
2348 * config/mips/openbsd.h: Likewise.
2349 * config/vax/openbsd.h: Likewise.
2350
2351 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
2352
2353 * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
2354 (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
2355 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
2356 of the length and zero.
2357
2358 2009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2359
2360 * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
2361 (FLAGS_H): Add options.h $(REAL_H).
2362 (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
2363 (TREE_VECTORIZER_H): New.
2364 (EBITMAP_H): Renamed from EBIMAP_H.
2365 (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
2366 (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
2367 (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
2368 (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
2369 (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
2370 (graphite-clast-to-gimple.o, graphite-dependences.o)
2371 (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
2372 (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
2373 (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
2374 (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
2375 (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
2376 (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
2377 (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
2378 (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
2379 (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
2380 updated and fixed as per above changes and per
2381 check_makefile_deps.sh output.
2382
2383 PR bootstrap/40928
2384 * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
2385 * configure: Regenerate.
2386
2387 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2388
2389 * doc/install.texi: Update minimum MPC version to 0.7.
2390
2391 2009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
2392
2393 * doc/install.texi (Binaries): Remove reference to the binary
2394 distribution CD-ROM from the FSF.
2395
2396 2009-09-26 Michael Matz <matz@suse.de>
2397
2398 PR lto/40758
2399 PR middle-end/41470
2400 * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
2401 that are mentioned in the body.
2402
2403 2009-09-26 Michael Matz <matz@suse.de>
2404
2405 PR tree-optimization/41454
2406 * tree-ssa-dom (stmts_to_rescan): Remove variable.
2407 (tree_ssa_dominator_optimize): Don't allocate and free it.
2408 (dom_opt_leave_block): Don't iterate over it.
2409 (eliminate_redundant_computations): Don't return a value.
2410 (cprop_operand, cprop_into_stmt): Ditto.
2411 (optimize_stmt): Don't defer updating stmts.
2412
2413 2009-09-25 Dodji Seketeli <dodji@redhat.com>
2414
2415 * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
2416 generic_parameter_die, template_parameter_pack_die,
2417 gen_formal_parameter_die, gen_subprogram_die): Adjust after
2418 renaming DW_TAG_formal_parameter_pack and
2419 DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
2420 and DW_TAG_GNU_template_parameter_pack.
2421
2422 2009-09-25 Anatoly Sokolov <aesok@post.ru>
2423
2424 * config/v850/v850.h (FUNCTION_VALUE): Remove.
2425 * config/v850/v850.c (v850_function_value): New function.
2426 (TARGET_FUNCTION_VALUE): Define.
2427
2428 2009-09-25 Jakub Jelinek <jakub@redhat.com>
2429
2430 * tree-vect-stmts.c (vectorizable_call): Call
2431 mark_symbols_for_renaming after vect_finish_stmt_generation.
2432
2433 * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
2434 to loc_descriptor_from_tree.
2435 (add_location_or_const_value_attribute): Pass 0 instead of 2
2436 for decl_by_reference_p decls.
2437
2438 2009-09-25 Richard Guenther <rguenther@suse.de>
2439
2440 PR middle-end/41463
2441 * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
2442 arrays again.
2443
2444 2009-09-25 Ben Elliston <bje@au.ibm.com>
2445
2446 * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
2447 after `power7'.
2448
2449 2009-09-25 Alan Modra <amodra@bigpond.net.au>
2450
2451 * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
2452 form of instruction.
2453
2454 2009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2455
2456 PR middle-end/41435
2457 * fold-const.c (const_binop): Handle complex int division.
2458 * tree-complex.c (expand_complex_div_straight,
2459 expand_complex_div_wide): Update comments.
2460
2461 2009-09-24 DJ Delorie <dj@redhat.com>
2462
2463 PR target/41456
2464 * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
2465 (reg_class): Likewise.
2466 (REG_CLASS_NAMES): Likewise.
2467 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
2468 (m32c_override_options): Disable -fivopts for M32C.
2469
2470 2009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2471
2472 * config/rs6000/predicates.md (indexed_or_indirect_operand):
2473 Delete VSX load/store with update support.
2474 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
2475 * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
2476 (vsx_movti): Ditto.
2477 (VSX_U): Delete.
2478 (VSbit): Ditto.
2479 (VStype_load_update): Ditto.
2480 (VStype_store_update): Ditto.
2481 (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2482 (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2483
2484 * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
2485 load/store with update builtins.
2486
2487 2009-09-24 Kai Tietz <kai.tietz@onevision.com>
2488
2489 * libgcc2.c (L_trampoline): Prototype for getpagesize
2490 and mprotect in WINNT case.
2491
2492 2009-09-24 Anatoly Sokolov <aesok@post.ru>
2493
2494 * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
2495 * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
2496 * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
2497 'outgoing' argument.
2498 (TARGET_FUNCTION_VALUE): Define.
2499
2500 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2501
2502 * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
2503
2504 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2505
2506 PR bootstrap/41405
2507 * common.opt: Initialize dwarf_strict to -1.
2508 * toplev.c (process_options): Catch unset dwarf_strict
2509 and set to 0 for all targets not overriding.
2510 * config/darwin.c (darwin_override_options): Catch unset
2511 dwarf_strict and override to 1.
2512
2513 2009-09-24 Jeff Law <law@redhat.com>
2514
2515 * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
2516
2517 2009-09-24 Richard Guenther <rguenther@suse.de>
2518
2519 PR tree-optimization/36143
2520 PR tree-optimization/38747
2521 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
2522 create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
2523
2524 2009-09-24 Jakub Jelinek <jakub@redhat.com>
2525
2526 PR bootstrap/41457
2527 * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
2528 return false instead of gcc_unreachable (). For CONST return the
2529 value returned by recursive call instead of always returning true.
2530 (tree_add_const_value_attribute): Return the value returned by
2531 add_const_value_attribute instead of always returning true if rtl
2532 is non-NULL.
2533
2534 2009-09-23 Justin Seyster <jrseys@gmail.com>
2535
2536 * Makefile.in (PLUGIN_HEADERS): Include real.h.
2537
2538 2009-09-24 Jakub Jelinek <jakub@redhat.com>
2539
2540 * cgraphunit.c (cgraph_lower_function): Revert last change.
2541 * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
2542 instead of DECL_NO_STATIC_CHAIN.
2543 * tree-cfg.c (verify_gimple_call): Likewise.
2544 * tree-nested.c (get_chain_decl, get_chain_field,
2545 convert_tramp_reference_op, convert_gimple_call): Likewise.
2546 (convert_all_function_calls): Likewise. Always set or clear
2547 DECL_STATIC_CHAIN initially, for !n->outer clear it.
2548 (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
2549 * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
2550 if nested.
2551 * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
2552 DECL_NO_STATIC_CHAIN.
2553 * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
2554 instead of DECL_NO_STATIC_CHAIN.
2555 (ix86_function_regparm, find_drap_reg): Likewise. Don't test
2556 decl_function_context.
2557 * varasm.c (initializer_constant_valid_p): Likewise.
2558 * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
2559 (DECL_STATIC_CHAIN): ... this.
2560 * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
2561 instead of DECL_NO_STATIC_CHAIN.
2562
2563 2009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
2564 Rafael Avila de Espindola <espindola@google.com>
2565
2566 * gengtype.c (nb_plugin_files): Make it unsigned to match
2567 num_gt_files. Adjust other variables to avoid warnings.
2568 (main): Allocate an all zero lang_bitmap before each plugin file name
2569 to match regular file names.
2570
2571 2009-09-23 Richard Henderson <rth@redhat.com>
2572
2573 * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2574 (TARGET_STATIC_CHAIN): Mention that this hook must be used for
2575 static chain passed in memory.
2576 * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
2577 * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
2578 STATIC_CHAIN_INCOMING. Issue a sorry if there's no
2579 STATIC_CHAIN_REGNUM defined.
2580
2581 * config/picochip/picochip-protos.h: s/class/klass/.
2582 * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
2583 (picochip_static_chain): New.
2584 * config/picochip/picochip.h (STATIC_CHAIN): Remove.
2585 (STATIC_CHAIN_INCOMING): Remove.
2586
2587 * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
2588 (xtensa_static_chain): New.
2589 * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
2590 (STATIC_CHAIN_INCOMING): Remove.
2591
2592 2009-09-23 Anatoly Sokolov <aesok@post.ru>
2593
2594 * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
2595 * config/pa/pa-protos.h (function_value): Remove.
2596 * config/pa/pa.c (pa_function_value): Rename from function_value.
2597 Make static, add 'outgoing' argument.
2598 (TARGET_FUNCTION_VALUE): Define.
2599
2600 2009-09-23 Anatoly Sokolov <aesok@post.ru>
2601
2602 * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
2603 instead of cfun->machine->is_leaf.
2604 * config/avr/avr.h (machine_function): Remove is_leaf field.
2605
2606 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2607
2608 PR debug/41439
2609 * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
2610 DW_OP_piece after DW_OP_stack_value, adjust size calculations
2611 for it, when DW_OP_stack_value and DW_OP_implicit_value has
2612 the same size, prefer DW_OP_stack_value.
2613 (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
2614 loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
2615
2616 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
2617
2618 PR debug/41353
2619 * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
2620
2621 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
2622
2623 PR debug/41248
2624 * cfgexpand.c (convert_debug_memory_address): New.
2625 (expand_debug_expr): Convert base address and offset to the same
2626 mode. Use it to convert addresses to other modes. Accept
2627 ptr_mode addresses.
2628
2629 2009-09-23 Richard Guenther <rguenther@suse.de>
2630
2631 * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
2632 produced for bigendian targets with promoted subregs.
2633
2634 2009-09-23 Richard Guenther <rguenther@suse.de>
2635
2636 * value-prof.c (gimple_ic): Purge old EH edges only after building
2637 the new ones.
2638
2639 2009-09-23 Nick Clifton <nickc@redhat.com>
2640
2641 * config/arc/arc.c (arc_trampoline_init): Fix typo.
2642
2643 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2644
2645 PR bootstrap/41405
2646 * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
2647
2648 PR bootstrap/41436
2649 * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
2650 on non-nested functions.
2651
2652 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2653 Jan Hubicka <jh@suse.cz>
2654
2655 * dwarf2out.c (loc_list_plus_const): Only define if
2656 DWARF2_DEBUGGING_INFO.
2657 (address_of_int_loc_descriptor): Likewise.
2658
2659 PR debug/41411
2660 * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
2661
2662 2009-09-23 Uros Bizjak <ubizjak@gmail.com>
2663
2664 PR c/39779
2665 * c-typeck.c (build_binary_op) <short_shift>: Check that integer
2666 constant is more than zero.
2667
2668 2009-09-23 Alan Modra <amodra@bigpond.net.au>
2669
2670 PR target/40473
2671 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
2672 call final to emit non-scheduled prologue, instead insert at entry.
2673
2674 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
2675 Joseph S. Myers <joseph@codesourcery.com>
2676
2677 * doc/install.texi (*-*-freebsd*): Add proper format codes.
2678
2679 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
2680 Rafael Avila de Espindola <espindola@google.com>
2681
2682 * gengtype.c (is_file_equal): New function.
2683 (close_output_files): Use is_file_equal. Free of->buf.
2684
2685 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
2686 Rafael Avila de Espindola <espindola@google.com>
2687
2688 * gengtype.c (write_types, write_local): Add the output_header
2689 argument. Update all callers.
2690
2691 2009-09-22 Dodji Seketeli <dodji@redhat.com>
2692
2693 * dwarf2out.c (template_parameter_pack_die,
2694 gen_formal_parameter_pack_die ): New functions.
2695 (make_ith_pack_parameter_name): Remove this function.
2696 (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
2697 DW_TAG_formal_parameter_pack.
2698 (gen_generic_params_dies): Represent each template parameter pack
2699 by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
2700 represented by usual DW_TAG_template_*_parameter DIEs that are
2701 children of the DW_TAG_template_parameter_pack element DIE.
2702 (generic_parameter_die): This doesn't deal with parameter pack
2703 names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
2704 of parameter pack DIEs.
2705 (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
2706 in certain cases, e.g. for pack elements.
2707 (gen_formal_types_die, gen_decl_die): Adjust usage of
2708 gen_formal_parameter_die.
2709 (gen_subprogram_die): Represent each function parameter pack by a
2710 DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
2711 represented by usual DW_TAG_formal_parameter DIEs that are children
2712 of the DW_TAG_formal_parameter_pack DIE. Remove references to
2713 ____builtin_va_alist decls as no part of the compiler uses those
2714 anymore.
2715 * langhooks.h (struct lang_hooks_for_decls): Add
2716 function_parm_expanded_from_pack_p, get_generic_function_decl
2717 and function_parameter_pack_p hooks. Fix comment for
2718 get_innermost_generic_parms hook.
2719 * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
2720 LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
2721 macros and use them to initialize lang_hook.
2722
2723 2009-09-22 Richard Henderson <rth@redhat.com>
2724
2725 * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
2726 (TRAMPOLINE_ADJUST_ADDRESS): Poison.
2727 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
2728 on TRAMPOLINE_TEMPLATE.
2729 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
2730 TRAMPOLINE_ADJUST_ADDRESS.
2731 * targhooks.c (default_asm_trampoline_template): Remove.
2732 (default_trampoline_adjust_address): Remove.
2733 (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
2734 * targhooks.h: Update decls.
2735
2736 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
2737
2738 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
2739 * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
2740 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
2741
2742 2009-09-22 Alexandre Oliva <aoliva@redhat.com>
2743
2744 PR debug/41295
2745 * reload1.c (reload): Reset debug insns with pseudos without
2746 equivalences.
2747
2748 2009-09-22 Janis Johnson <janis187@us.ibm.com>
2749
2750 * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
2751 unconditional true for decimal float modes.
2752 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
2753 * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
2754
2755 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
2756
2757 * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
2758 Enable a new case for __FreeBSD__ >= 7.
2759 * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
2760 * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
2761 * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
2762 and USE_LD_AS_NEEDED.
2763
2764 * doc/install.texi (*-*-freebsd*): Update target information.
2765
2766 2009-09-22 Richard Guenther <rguenther@suse.de>
2767
2768 PR middle-end/41395
2769 * tree-dfa.c (get_ref_base_and_extent): Handle trailing
2770 arrays really properly.
2771
2772 2009-09-22 Richard Henderson <rth@redhat.com>
2773
2774 PR target/41246
2775 * target.h (struct gcc_target): Add asm_out.trampoline_template,
2776 calls.static_chain, calls.trampoline_init,
2777 calls.trampoline_adjust_address.
2778 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2779 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
2780 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2781 * builtins.c (expand_builtin_setjmp_receiver): Use
2782 targetm.calls.static_chain; only clobber registers.
2783 (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
2784 set up memory attributes properly for the trampoline block.
2785 (expand_builtin_adjust_trampoline): Use
2786 targetm.calls.trampoline_adjust_address.
2787 * calls.c (prepare_call_address): Add fndecl argument. Use
2788 targetm.calls.static_chain.
2789 * df-scan.c (df_need_static_chain_reg): Remove.
2790 (df_get_entry_block_def_set): Use targetm.calls.static_chain;
2791 consolodate static chain handling.
2792 * doc/tm.texi: Document new hooks.
2793 * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
2794 (init_emit_regs): Don't initialize them.
2795 * expr.h (prepare_call_address): Update decl.
2796 * final.c (profile_function): Use targetm.calls.static_chain.
2797 * function.c (expand_function_start): Likewise.
2798 * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
2799 * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
2800 only clobber registers.
2801 * targhooks.c (default_static_chain): New.
2802 (default_asm_trampoline_template, default_trampoline_init): New.
2803 (default_trampoline_adjust_address): New.
2804 * targhooks.h: Declare them.
2805 * varasm.c (assemble_trampoline_template): Use
2806 targetm.asm_out.trampoline_template. Make the memory block const
2807 and set its size.
2808
2809 * config/alpha/alpha.c (alpha_trampoline_init): Rename from
2810 alpha_initialize_trampoline. Make static. Merge VMS parameter
2811 differences into the TARGET_ABI_OPEN_VMS code block.
2812 (TARGET_TRAMPOLINE_INIT): New.
2813 * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
2814 (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
2815 * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
2816 (INITIALIZE_TRAMPOLINE): Remove.
2817
2818 * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
2819 (TRAMPOLINE_TEMPLATE): Merge with ...
2820 (INITIALIZE_TRAMPOLINE): ... this and move ...
2821 * config/arc/arc.c (arc_trampoline_init): ... here.
2822 (TARGET_TRAMPOLINE_INIT): New.
2823
2824 * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2825 (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2826 (arm_asm_trampoline_template): New.
2827 (arm_trampoline_init, arm_trampoline_adjust_address): New.
2828 * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
2829 THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
2830 code to arm_asm_trampoline_template.
2831 (TRAMPOLINE_ADJUST_ADDRESS): Move code to
2832 arm_trampoline_adjust_address.
2833 (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
2834 adjust for target hook parameters.
2835
2836 * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
2837 Remove.
2838
2839 * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
2840 * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
2841 (bfin_trampoline_init): Rename from initialize_trampoline;
2842 make static; update for target hook parameters.
2843 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
2844 * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
2845 bfin_asm_trampoline_template.
2846 (INITIALIZE_TRAMPOLINE): Remove.
2847
2848 * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2849 TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
2850 cris_trampoline_init): New.
2851 * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
2852 cris_asm_trampoline_template.
2853 (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
2854 adjust for target hook parameters.
2855
2856 * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
2857
2858 * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2859 TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
2860 fr30_trampoline_init): New.
2861 * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
2862 fr30_asm_trampoline_template.
2863 (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
2864 adjust for target hook parameters.
2865
2866 * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
2867 (frv_trampoline_init): Rename from frv_initialize_trampoline;
2868 make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
2869 * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
2870 * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
2871
2872 * config/h8300/h8300.c (h8300_trampoline_init): New.
2873 (TARGET_TRAMPOLINE_INIT): New.
2874 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
2875 to h8300_trampoline_init and adjust for hook parameters.
2876
2877 * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
2878 * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
2879 (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
2880 make static; adjust for hook parameters.
2881 * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
2882
2883 * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2884 (TARGET_TRAMPOLINE_INIT): New.
2885 (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
2886 * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
2887 iq2000_asm_trampoline_template.
2888 (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
2889 (TRAMPOLINE_CODE_SIZE): New.
2890 (TRAMPOLINE_SIZE): Use it.
2891 (TRAMPOLINE_ALIGNMENT): Follow Pmode.
2892
2893 * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
2894 * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
2895 (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
2896 adjust for hook parameters.
2897 * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
2898
2899 * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
2900 (m32r_trampoline_init): New.
2901 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
2902 m32r_trampoline_init.
2903
2904 * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
2905 (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
2906 make static; update for hook parameters.
2907 * config/m68hc11/m68hc11-protos.h: Update.
2908 * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
2909
2910 * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2911 (TARGET_TRAMPOLINE_INIT): New.
2912 (mcore_function_value): Fix typo.
2913 (mcore_asm_trampoline_template, mcore_trampoline_init): New.
2914 * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
2915 to mcore_asm_trampoline_template.
2916 (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
2917
2918 * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
2919 * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
2920 (mep_trampoline_init): Rename from mep_init_trampoline; make static;
2921 update for hook parameters.
2922 * config/mep/mep-protos.h (mep_init_trampoline): Remove.
2923
2924 * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2925 mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2926 mips_trampoline_init): New.
2927 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
2928 mips_asm_trampoline_template.
2929 (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
2930 update for hook parameters.
2931
2932 * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2933 (TARGET_TRAMPOLINE_INIT): New.
2934 (mmix_trampoline_size): Remove.
2935 (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
2936 make static. Remove out-of-date tetra vs octa comment.
2937 (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
2938 make static; update for hook parameters.
2939 * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
2940 (INITIALIZE_TRAMPOLINE): Remove.
2941 (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
2942 (TRAMPOLINE_ALIGNMENT): New.
2943 * gcc/config/mmix/mmix-protos.h: Update.
2944
2945 * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2946 mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2947 mn10300_trampoline_init): New.
2948 * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
2949 mn10300_asm_trampoline_template.
2950 (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
2951
2952 * config/moxie/moxie.c (moxie_static_chain,
2953 moxie_asm_trampoline_template, moxie_trampoline_init,
2954 TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
2955 TARGET_TRAMPOLINE_INIT): New.
2956 * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
2957 moxie_trampoline_init.
2958 (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
2959 (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2960
2961 * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2962 pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2963 pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
2964 pa_trampoline_adjust_address): New.
2965 * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
2966 pa_asm_trampoline_template.
2967 (TRAMPOLINE_ALIGNMENT): New.
2968 (TRAMPOLINE_CODE_SIZE): Move to pa.c.
2969 (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
2970 adjust for hook parameters.
2971 (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
2972
2973 * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
2974 (TARGET_TRAMPOLINE_INIT): New.
2975 * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
2976 (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
2977
2978 * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
2979
2980 * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
2981 * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
2982 (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
2983 make static; adjust parameters for the hook.
2984 * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
2985
2986 * config/s390/s390.c (s390_asm_trampoline_template): Rename from
2987 s390_trampoline_template; make static.
2988 (s390_trampoline_init): Rename from s390_initialize_trampoline;
2989 make static; adjust for target hook.
2990 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
2991 * config/s390/s390-protos.h: Remove trampoline decls.
2992 * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
2993 (TRAMPOLINE_TEMPLATE): Remove.
2994 (TRAMPOLINE_ALIGNMENT): New.
2995
2996 * config/score/score-protos.h (score_initialize_trampoline): Remove.
2997 * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2998 (TARGET_TRAMPOLINE_INIT): New.
2999 (score_asm_trampoline_template): New.
3000 (score_trampoline_init): Rename from score_initialize_trampoline;
3001 make static; adjust for hook parameters.
3002 * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
3003 score[37]_asm_trampoline_template.
3004 (INITIALIZE_TRAMPOLINE): Remove.
3005 * config/score/score3.c (score3_asm_trampoline_template): New.
3006 (score3_trampoline_init): Rename from score3_initialize_trampoline;
3007 adjust for target hook.
3008 * config/score/score7.c (score7_asm_trampoline_template): New.
3009 (score7_trampoline_init): Rename from score7_initialize_trampoline;
3010 adjust for target hook.
3011 * config/score/score3.h, config/score/score7.h: Update.
3012
3013 * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
3014 * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
3015 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
3016 (sh_trampoline_init): Rename from sh_initialize_trampoline;
3017 make static; adjust for target hook parameters.
3018 (sh_trampoline_adjust_address): New.
3019 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
3020 (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
3021
3022 * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
3023 (sparc32_initialize_trampoline): Rename from
3024 sparc_initialize_trampoline; make static; replace tramp parameter
3025 with m_tramp and update memory accesses.
3026 (sparc64_initialize_trampoline): Similarly.
3027 (sparc_trampoline_init): New.
3028 * config/sparc/sparc-protos.h: Remove trampoline decls.
3029 * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
3030 * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
3031
3032 * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
3033 (array_to_constant): Make ARR parameter const.
3034 (spu_trampoline_init): Rename from spu_initialize_trampoline;
3035 make static; update for hook parameters.
3036 * config/spu/spu-protos.h: Update decls.
3037 * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
3038
3039 * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
3040 from xstormy16_initialize_trampoline; make static; update for
3041 hook parameters.
3042 (TARGET_TRAMPOLINE_INIT): New.
3043 * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
3044
3045 * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3046 (TARGET_TRAMPOLINE_INIT): New.
3047 (v850_can_eliminate): Make static.
3048 (v850_asm_trampoline_template, v850_trampoline_init): New.
3049 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
3050 v850_asm_trampoline_template.
3051 (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
3052 and adjust for target hook parameters.
3053
3054 * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3055 (TARGET_TRAMPOLINE_INIT): New.
3056 (vax_asm_trampoline_template, vax_trampoline_init): New.
3057 * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
3058 vax_asm_trampoline_template.
3059 (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
3060
3061 * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3062 (TARGET_TRAMPOLINE_INIT): New.
3063 (xtensa_asm_trampoline_template): Rename from
3064 xtensa_trampoline_template; make static.
3065 (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
3066 make static; update for hook parameters.
3067 * config/xtensa/xtensa-protos.h: Remove trampoline decls.
3068 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
3069 (INITIALIZE_TRAMPOLINE): Remove.
3070
3071 * config/i386/i386.c (ix86_function_regparm): Do not issue an
3072 error for nested functions with regparm=3.
3073 (ix86_compute_frame_layout): Adjust frame pointer offset for
3074 ix86_static_chain_on_stack.
3075 (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
3076 (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
3077 don't reset to UNITS_PER_WORD.
3078 (ix86_emit_leave): Adjust ix86_cfa_state.
3079 (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
3080 (ix86_static_chain): New.
3081 (ix86_trampoline_init): Rename from x86_initialize_trampoline;
3082 make static; update for target hook parameters; use ix86_static_chain.
3083 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
3084 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
3085 (INITIALIZE_TRAMPOLINE): Remove.
3086 (TRAMPOLINE_SIZE): Use 24 for 64-bit.
3087 (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
3088 to the end. Add static_chain_on_stack.
3089 (ix86_static_chain_on_stack): New.
3090
3091 * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
3092 (m68k_output_mi_thunk): Don't use static_chain_rtx.
3093 (m68k_trampoline_init): New.
3094 * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
3095 m68k_trampoline_init and adjust for hook parameters.
3096 * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
3097 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
3098
3099 2009-09-22 Jakub Jelinek <jakub@redhat.com>
3100
3101 * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
3102 for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
3103
3104 * reload1.c (reload): Call wrap_constant when substituting
3105 reg for equiv inside of DEBUG_INSNs.
3106
3107 PR bootstrap/41405
3108 * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
3109 add_call_src_coords_attributes, add_high_low_attributes,
3110 gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
3111 gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
3112 dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
3113 when -gdwarf-2 -gstrict-dwarf.
3114 (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when
3115 -gdwarf-[23] -gstrict-dwarf.
3116 (address_of_int_loc_descriptor, loc_descriptor,
3117 loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
3118 DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
3119 * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
3120
3121 2009-09-22 Richard Guenther <rguenther@suse.de>
3122
3123 PR tree-optimization/41428
3124 * tree-ssa-ccp.c (ccp_fold_stmt): New function.
3125 (ccp_finalize): Pass it to substitute_and_fold.
3126
3127 2009-09-22 Richard Guenther <rguenther@suse.de>
3128
3129 * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
3130 (substitute_and_fold): Adjust prototype.
3131 * tree-vrp.c (vrp_evaluate_conditional): Make static.
3132 (simplify_stmt_using_ranges): Likewise.
3133 (fold_predicate_in): Move here from tree-ssa-propagate.c.
3134 (vrp_fold_stmt): New function.
3135 (vrp_finalize): Pass it to substitute_and_fold.
3136 * tree-flow.h (vrp_evaluate_conditional): Remove.
3137 (simplify_stmt_using_ranges): Likewise.
3138 * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
3139 * tree-ssa-copy.c (fini_copy_prop): Likewise.
3140 * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
3141 member.
3142 (fold_predicate_in): Move to tree-vrp.c.
3143 (substitute_and_fold): Use the callback instead of calling into
3144 tree-vrp.c functions directly.
3145
3146 2009-09-22 Jakub Jelinek <jakub@redhat.com>
3147
3148 * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
3149 comparison warning on rs6000.
3150
3151 PR middle-end/41429
3152 * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
3153 GIMPLE_EH_MUST_NOT_THROW cleanup.
3154 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
3155
3156 2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
3157
3158 PR middle-end/41260
3159 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
3160 * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
3161 LIB_SPEC for darwin10 and later since it always uses the unwinder in
3162 libSystem which is derived from the gcc 4.2.1 unwinder.
3163
3164 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
3165
3166 PR middle-end/41357
3167 * varasm.c (default_encode_section_info): Copy TLS model into
3168 sym_ref flags regardless of backend support for TLS, for all
3169 model types except TLS_MODEL_EMULATED.
3170
3171 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
3172
3173 PR bootstrap/41404
3174 * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
3175 we can handle it correctly.
3176
3177 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
3178
3179 * doc/install.texi (os2): Remove section.
3180
3181 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
3182
3183 * doc/standards.texi (Objective-C): Adjust two URLs.
3184
3185 2009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
3186
3187 * tree-tailcall.c (process_assignment): Don't check if a
3188 multiplication or an addition are already present.
3189 (find_tail_calls): Combine multiple additions and multiplications.
3190 (adjust_accumulator_values): Emit accumulators.
3191
3192 2009-09-21 Kai Tietz <kai.tietz@onevision.com>
3193
3194 * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
3195 xmm register restore.
3196
3197 2009-09-21 Jan Hubicka <jh@suse.cz>
3198
3199 * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
3200 (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
3201 restore at the end.
3202
3203 2009-09-21 Eric Botcazou <ebotcazou@adacore.com>
3204
3205 * stor-layout.c (layout_type): Remove obsolete code.
3206
3207 2009-09-20 H.J. Lu <hongjiu.lu@intel.com>
3208
3209 PR middle-end/41395
3210 * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
3211
3212 2009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3213
3214 PR middle-end/30789
3215 * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
3216 (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
3217 (fold_builtin_2, do_mpc_arg1): Update accordingly.
3218 * fold-const.c (const_binop): Likewise.
3219 * real.h (do_mpc_arg2): Update prototype.
3220
3221 2009-09-20 Jan Hubicka <jh@suse.cz>
3222
3223 * dwarf2out.c (add_const_value_attribute): Return true if successful.
3224 (add_location_or_const_value_attribute): Rewrite using
3225 loc_list_from_tree.
3226 (tree_add_const_value_attribute): Return true if successful.
3227 (tree_add_const_value_attribute_for_decl): Likewise.
3228
3229 * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
3230 (loc_descriptor): ... here;
3231 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3232 (cst_pool_loc_descr): Break out from ...; do not reffer constant
3233 pool items that was not marked for output.
3234 (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
3235 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3236 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3237 handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
3238 IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
3239 CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
3240 DW_OP_stack_value to get address of items that are not available
3241 as addresses.
3242 (dw_loc_list): Handle single element lists correctly.
3243
3244 2009-09-20 Kai Tietz <kai.tietz@onevision.com>
3245 Pascal Obry <obry@adacore.com>
3246
3247 * unwind-dw2-fde.c (classify_object_over_fdes):
3248 Cast the constant 1 to _Unwind_Ptr.
3249 (add_fdes): Likewise.
3250 (linear_search_fdes): Likewise.
3251
3252 2009-09-20 Eric Botcazou <ebotcazou@adacore.com>
3253
3254 * stor-layout.c (set_sizetype): Avoid useless type copy.
3255
3256 2009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
3257
3258 * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
3259 feature check.
3260 (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
3261 * configure, config.in: Regenerate.
3262 * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
3263 DW_EH_PE_absptr.
3264 * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
3265 (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
3266 for global data if the output could be used in a shared library.
3267 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
3268 to 0 if TARGET_WRITABLE_EH_FRAME.
3269
3270 2009-09-20 Paolo Bonzini <bonzini@gnu.org>
3271
3272 PR rtl-optimization/39886
3273 * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
3274 just when insn is equal to BB_END (bb).
3275
3276 2009-09-19 Adam Nemet <anemet@caviumnetworks.com>
3277
3278 * config/mips/mips.opt (mrelax-pic-calls): New option.
3279 * config/mips/mips.c (mips_strip_unspec_address): Move it up in
3280 the file.
3281 (mips_unspec_call): Change "unspec_call" expander into this.
3282 (mips_strip_unspec_call): New function.
3283 (mips_got_load): Call mips_unspec_call instead of
3284 gen_unspec_call<mode>.
3285 (mips16_build_call_stub): Fix comment for fp_code. Adjust call to
3286 MIPS_CALL.
3287 (mips_cfg_in_reorg): New function.
3288 (mips16_lay_out_constants): Use it to decide whether to call
3289 CFG-aware insn splitting.
3290 (r10k_insert_cache_barriers): Move CFG set-up code from here to
3291 mips_reorg. Move DF set-up code from here ...
3292 (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers
3293 from here.
3294 (mips_reorg): Call mips_df_reorg instead of
3295 r10k_insert_cache_barriers. Move CFG set-up code here from
3296 r10k_insert_cache_barriers.
3297 (mips_call_expr_from_insn): New function.
3298 (mips_pic_call_symbol_from_set): Likewise.
3299 (mips_find_pic_call_symbol): Likewise.
3300 (mips_annotate_pic_call_expr): Likewise.
3301 (mips_get_pic_call_symbol): Likewise.
3302 (mips_annotate_pic_calls): Likewise.
3303 (mips_override_options): Disable -mrelax-pic-calls unless PIC
3304 calls are used.
3305 (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
3306 * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
3307 * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
3308 directive.
3309 * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
3310 (unspec_call<mode>): Remove it.
3311 (sibcall_internal, sibcall_value_internal,
3312 sibcall_value_multiple_internal, call_internal, call_split,
3313 call_value_internal, call_value_split,
3314 call_value_multiple_internal, call_value_multiple_split): Pass
3315 SIZE_OPNO to MIPS_CALL.
3316 (call_internal_direct, call_direct_split,
3317 call_value_internal_direct, call_value_direct_split): Pass -1 as
3318 SIZE_OPNO to MIPS_CALL.
3319 * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
3320 * configure: Regenerate.
3321 * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
3322 and -mno-relax-pic-calls.
3323 (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
3324
3325 2009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3326
3327 PR bootstrap/35619
3328 * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
3329 in the directory this rule is called from, rather than the
3330 toplevel 'gcc' directory, to fix in-tree build.
3331
3332 2009-09-19 Chris Demetriou <cgd@google.com>
3333
3334 PR preprocessor/28435:
3335 * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
3336 to cpplib that the preprocessor output is needed.
3337
3338 2009-09-19 Jakub Jelinek <jakub@redhat.com>
3339
3340 * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
3341 *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
3342 *return_and_restore_fpregs_<mode>,
3343 *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
3344
3345 PR bootstrap/41397
3346 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
3347 instead of assuming it has always a REG inside of it.
3348
3349 2009-09-18 Gerald Pfeifer <gerald@pfeifer.com>
3350
3351 * config/freebsd.h: Update comment on types.
3352 (WINT_TYPE): Define.
3353
3354 2009-09-18 Jason Merrill <jason@redhat.com>
3355
3356 * c.opt: Add -fno-deduce-init-list.
3357
3358 2009-09-18 Neil Vachharajani <nvachhar@google.com>
3359
3360 * value-prof.c (interesting_stringop_to_profile_p): Added output
3361 argument to indicate which parameter is the size parameter.
3362 * value-prof.c (gimple_stringop_fixed_value): Use
3363 INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
3364 * value-prof.c (gimple_stringops_transform): Update call sites to
3365 INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
3366
3367 2009-09-18 Uros Bizjak <ubizjak@gmail.com>
3368
3369 PR target/38288
3370 From David Binderman <dcb314@hotmail.com>:
3371 * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
3372 local variable f. Remove stale comments.
3373 (ix86_compute_frame_layout): Remove useless local variable total_size.
3374 Remove #if 0'd code.
3375 (legitimate_address_p): Remove useless local variables
3376 reason_rtx and reason.
3377 (ix86_split_copysign_const): Remove useless local variable op1.
3378 (scale_counter): Remove useless local variable piece_size_mask.
3379
3380 2009-09-18 Jakub Jelinek <jakub@redhat.com>
3381
3382 * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
3383 output decl.
3384
3385 2009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
3386
3387 PR target/40913
3388 * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
3389
3390 2009-09-17 Jakub Jelinek <jakub@redhat.com>
3391
3392 * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
3393 TYPE_STUB_DECL.
3394
3395 2009-09-17 Alexandre Oliva <aoliva@redhat.com>
3396
3397 * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
3398 DW_OP_implicit_value even without dwarf_version 4.
3399
3400 2009-09-17 Jan Hubicka <jh@suse.cz>
3401
3402 * dwarf2out.c: Include tree-pass.h and gimple.h.
3403 (loc_list_plus_const): New function.
3404 (loc_descriptor_from_tree_1): Rename to ...
3405 (loc_descriptor_from_tree): ... remove original.
3406 (loc_list_from_tree): New function.
3407 (add_AT_location_description): Accept location list.
3408 (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
3409 (concatn_mem_loc_descriptor): Remove.
3410 (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
3411 returning NULL.
3412 (secname_for_decl): Move up.
3413 (hidden_reference_p): New function; break out from ...
3414 (loc_by_refernece): ... here; move up.
3415 (dw_loc_list): New function.
3416 (single_element_loc_list): New function.
3417 (single_element_loc_list_p): New function.
3418 (add_loc_descr_to_each): New function.
3419 (add_loc_list): New function.
3420 (loc_descr_from_tree): Make wraper of loc_list_from_tree.
3421 (loc_list_from_tree): Reroganized from loc_descr_from_tree;
3422 add diagnostics why expansion failed.
3423 (add_location_or_const_value_attribute): Support location lists.
3424 (add_bound_info): Likewise.
3425 (descr_info_loc): Update call of loc_descriptor_from_tree.
3426 (gen_variable_die): Work on location lists.
3427 * final.c (pass_final): Add dump file.
3428 * Makefile.in (dwarf2out.o): Add new dependencies.
3429
3430 2009-09-17 Janis Johnson <janis187@us.ibm.com>
3431
3432 PR c/41049
3433 * real.c decimal_from_integer, decimal_integer_string): New.
3434 (real_from_integer): Use them as special case for decimal float.
3435 * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
3436 (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
3437 Do not append zero after the decimal point in string to convert.
3438
3439 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
3440
3441 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
3442 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
3443
3444 2009-09-17 Martin Jambor <mjambor@suse.cz>
3445
3446 * common.opt (fipa-sra): New switch.
3447 * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
3448 * timevar.def (TV_IPA_SRA): New timevar.
3449 * params.def (ipa-sra-ptr-growth-factor): New parameter.
3450 * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
3451 * tree-sra.c: Include cgraph.c.
3452 (enum sra_mode): Added SRA_MODE_EARLY_IPA.
3453 (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
3454 and grp_not_necessarilly_dereferenced.
3455 (func_param_count): New variable.
3456 (encountered_apply_args): New variable.
3457 (bb_dereferences): New variable.
3458 (final_bbs): New variable.
3459 (no_accesses_representant): New variable.
3460 (no_accesses_p): New function.
3461 (dump_access): Dump the new fields.
3462 (sra_initialize): Set encountered_apply_args to false.
3463 (get_ssa_base_param): New function.
3464 (mark_parm_dereference): New function.
3465 (create_access): Caring for INIDRECT_REFs and different handling of
3466 varialble length accesses in early IPA SRA. Store the stmt - a new
3467 parameter - to the new access.
3468 (build_access_from_expr_1): New parameter stmt, passed to
3469 create_access. Handle INDIRECT_REFs.
3470 (build_access_from_expr): Pass the current statement to
3471 build_access_from_expr_1.
3472 (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
3473 passes.
3474 (build_accesses_from_assign): Pass the current statement to
3475 build_access_from_expr_1. Do not create assign links in IPA-SRA.
3476 (scan_function): Call handle_ssa_defs on phi nodes. Set bits in
3477 final_bbs when necessary. Check for calls to __builtin_apply_args.
3478 Fixup EH info if anythng was changed.
3479 (is_unused_scalar_param): New function.
3480 (ptr_parm_has_direct_uses): New function.
3481 (find_param_candidates): New function.
3482 (mark_maybe_modified): New function.
3483 (analyze_modified_params): New function.
3484 (propagate_dereference_distances): New function.
3485 (dump_dereferences_table): New function.
3486 (analyze_caller_dereference_legality): New function.
3487 (unmodified_by_ref_scalar_representative): New function.
3488 (splice_param_accesses): New function.
3489 (decide_one_param_reduction): New function.
3490 (enum ipa_splicing_result): New type.
3491 (splice_all_param_accesses): New function.
3492 (get_param_index): New function.
3493 (turn_representatives_into_adjustments): New function.
3494 (analyze_all_param_acesses): New function.
3495 (get_replaced_param_substitute): New function.
3496 (get_adjustment_for_base): New function.
3497 (replace_removed_params_ssa_names): New function.
3498 (sra_ipa_reset_debug_stmts): New function.
3499 (sra_ipa_modify_expr): New function.
3500 (sra_ipa_modify_assign): New function.
3501 (convert_callers): New function.
3502 (modify_function): New function.
3503 (ipa_sra_preliminary_function_checks): New function.
3504 (ipa_early_sra): New function.
3505 (ipa_early_sra_gate): New function.
3506 (pass_early_ipa_sra): New variable.
3507 * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
3508
3509 2009-09-17 Michael Matz <matz@suse.de>
3510
3511 PR middle-end/41347
3512 * tree.c (build_type_attribute_qual_variant): Export.
3513 * tree.h (build_type_attribute_qual_variant): Declare.
3514 * tree-inline.c (remap_type_1): Use it to build variants with
3515 the original qualifiers and attributes.
3516
3517 2009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3518
3519 * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
3520 without a fallthrough edge.
3521
3522 2009-09-16 DJ Delorie <dj@redhat.com>
3523
3524 * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
3525 chip and ignore the "fast_interrupt" attribute if so.
3526
3527 2009-09-16 Richard Henderson <rth@redhat.com>
3528
3529 PR middle-end/41360
3530 * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
3531 barrier fix.
3532
3533 2009-09-16 Richard Henderson <rth@redhat.com>
3534
3535 PR target/41246
3536 * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
3537 is set only if DECL_NO_STATIC_CHAIN is unset.
3538 * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
3539 (FOR_EACH_NEST_INFO): New.
3540 (walk_all_functions): Use it.
3541 (finalize_nesting_tree): Likewise.
3542 (unnest_nesting_tree): Likewise.
3543 (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
3544 (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
3545 (convert_gimple_call): Early out if gimple_call_chain already set.
3546 (convert_all_function_calls): Iterate until no new functions
3547 require a static chain.
3548 (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
3549 when building a trampoline. Use dump_function_to_file instead
3550 of dump_function.
3551 (lower_nested_functions): Open dump_file. Validate that decls
3552 that have DECL_NO_STATIC_CHAIN from the front end don't have that
3553 bit reset by this pass.
3554
3555 2009-09-16 Michael Matz <matz@suse.de>
3556
3557 PR fortran/41212
3558 * tree.h (struct tree_decl_common): Add decl_restricted_flag,
3559 shorten decl_common_unused.
3560 (DECL_RESTRICTED_P): New accessor.
3561 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
3562 to disambiguate marked decls and restrict pointers.
3563
3564 2009-09-16 Richard Henderson <rth@redhat.com>
3565
3566 PR middle-end/41360
3567 * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
3568
3569 2009-09-16 Jakub Jelinek <jakub@redhat.com>
3570
3571 * integrate.c (set_block_abstract_flags): Call
3572 set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
3573
3574 2009-09-16 Richard Guenther <rguenther@suse.de>
3575
3576 PR middle-end/34011
3577 * tree-flow-inline.h (may_be_aliased): Compute readonly variables
3578 as non-aliased.
3579
3580 2009-09-16 DJ Delorie <dj@redhat.com>
3581 Kaz Kojima <kkojima@gcc.gnu.org>
3582
3583 * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
3584 (sh_expand_prologue): Update calls to output_stack_adjust.
3585 (sh_expand_epilogue): Likewise.
3586
3587 2009-09-15 Adam Nemet <anemet@caviumnetworks.com>
3588
3589 PR bootstrap/41349
3590 * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
3591 trying to limit the extent of searches in the insn stream.
3592
3593 2009-09-15 Nathan Froyd <froydnj@codesourcery.com>
3594 Jakub Jelinek <jakub@redhat.com>
3595
3596 PR target/41175
3597 PR target/40677
3598 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
3599 problem.
3600 (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
3601 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
3602 (rs6000_savres_strategy): Always save FP registers inline if the
3603 target doesn't support hardware double-precision. Set the above
3604 bits in return value when needed.
3605 (rs6000_savres_routine_sym): Fix computation for cache selector.
3606 Mark the generated symbol as a function. Rename exitp argument to
3607 lr. Move code for determining the name of the symbol...
3608 (rs6000_savres_routine_name): ...here. New function. Add cases for
3609 getting the names right on AIX and 64-bit Linux.
3610 (savres_routine_name): New variable.
3611 (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert
3612 lr isn't set when savep. Use r12 resp. r1 instead of r11 depending
3613 on what the target routine uses as a base register. If savep && lr
3614 describe saving of r0 into memory slot.
3615 (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of
3616 line calls for AIX ABI.
3617 (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
3618 determine FP save/restore functions.
3619 (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
3620 frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of
3621 gen_addsi3.
3622 (rs6000_emit_epilogue): Adjust computation of restore_lr.
3623 Duplicate restoration of LR and execute the appropriate one
3624 depending on whether GPRs are being restored inline. Set r11 from
3625 offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
3626 r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3.
3627 Fix out of line calls for AIX ABI.
3628 * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
3629 New insn.
3630 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
3631 register 11.
3632 (*restore_gpregs_spe): Likewise.
3633 (*return_and_restore_gpregs_spe): Likewise.
3634 * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3635 Define to empty string unconditionally.
3636 * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3637 Define to empty string unconditionally.
3638 (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
3639 !TARGET_64BIT.
3640
3641 2009-09-15 Jan Hubicka <jh@suse.cz>
3642
3643 * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
3644 * params.def (inline-insns-auto): Likewise.
3645
3646 2009-09-15 Martin Jambor <mjambor@suse.cz>
3647
3648 * ipa-inline.c (estimate_function_body_sizes): Dump info about
3649 individual statements only at TDF_DETAILS dump level. Format
3650 source for 80 characters per line.
3651
3652 2009-09-15 Christian Bruel <christian.bruel@st.com>
3653
3654 * regrename.c (do_replace): Update REG_DEAD notes.
3655
3656 2009-09-15 Revital Eres <eres@il.ibm.com>
3657
3658 * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
3659 * targhooks.c (default_builtin_support_vector_misalignment):
3660 New builtin function.
3661 * targhooks.h (default_builtin_support_vector_misalignment):
3662 Declare.
3663 * target.h (builtin_support_vector_misalignment):
3664 New field in struct gcc_target.
3665 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
3666 new builtin function.
3667 * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
3668 Define.
3669 * config/rs6000/rs6000.c
3670 (rs6000_builtin_support_vector_misalignment): New function.
3671 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
3672
3673 2009-09-15 Jie Zhang <jie.zhang@analog.com>
3674
3675 * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
3676 instead of INSN_P.
3677 (bfin_optimize_loop): Likewise.
3678 (bfin_gen_bundles): Likewise.
3679 (workaround_speculation): Likewise.
3680 (find_load): Return NULL_RTX for debug_insn.
3681
3682 2009-09-15 Uros Bizjak <ubizjak@gmail.com>
3683
3684 * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
3685 (sminsf3): Ditto.
3686
3687 2009-09-14 DJ Delorie <dj@redhat.com>
3688
3689 * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
3690 * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
3691 VLIW mode.
3692
3693 2009-09-14 Richard Henderson <rth@redhat.com>
3694 Jakub Jelinek <jakub@redhat.com>
3695
3696 * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
3697 * cfgbuild.c (make_edges): Handle asm goto.
3698 * cfglayout.c (fixup_reorder_chain): Likewise.
3699 * cfgrtl.c (patch_jump_insn): Likewise.
3700 * gimple-pretty-print.c (dump_gimple_asm): Likewise.
3701 * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
3702 (gimple_build_asm_vec): Add and use labels parameter.
3703 (gimple_build_asm): Remove.
3704 (walk_gimple_asm): Walk labels too.
3705 * gimple.def (GIMPLE_ASM): Update docs.
3706 * gimple.h: Update decls.
3707 (struct gimple_statement_asm): Change nc to use unsigned char;
3708 add nl member.
3709 (gimple_asm_nlabels): New.
3710 (gimple_asm_label_op, gimple_asm_set_label_op): New.
3711 * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
3712 into gimple_build_asm_vec.
3713 * jump.c (mark_jump_label_asm): New.
3714 (mark_jump_label): Use it.
3715 (redirect_jump_1): Handle asm goto.
3716 (invert_jump_1): Soft fail if X is null.
3717 * recog.c (extract_asm_operands): New.
3718 (asm_noperands): Use it; handle asm labels.
3719 (decode_asm_operands): Use extract_asm_operands.
3720 (asm_operand_ok): Properly handle empty string.
3721 * reg-stack.c (get_asm_operands_in_out): Rename from
3722 get_asm_operand_n_inputs; use extract_asm_operands; return both
3723 inputs and outputs by reference; update all callers.
3724 * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
3725 * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
3726 (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
3727 (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
3728 (extract_asm_operands): Declare.
3729 * stmt.c (expand_asm_operands): Add and use labels parameter.
3730 (check_unique_operand_names): Likewise.
3731 (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
3732 (expand_asm_stmt): Handle asm labels.
3733 * tree-cfg.c (make_gimple_asm_edges): New.
3734 (make_edges): Use it.
3735 (cleanup_dead_labels): Handle asm labels.
3736 (is_ctrl_altering_stmt): Likewise.
3737 (gimple_redirect_edge_and_branch): Likewise.
3738 * tree.def (ASM_EXPR): Add 5th operand.
3739 * tree.h (ASM_LABELS): New.
3740 (resolve_asm_operand_names): Update decl.
3741
3742 * c-parser.c (c_parser_asm_statement): Parse asm goto.
3743 (c_parser_asm_goto_operands): New.
3744 * c-tree.h (build_asm_expr): Update decl.
3745 * c-typeck.c (build_asm_expr): Add and use labels parameter.
3746 * doc/extend.texi: Document asm goto.
3747
3748 2009-09-14 Richard Henderson <rth@redhat.com>
3749
3750 * except.h: Update declarations.
3751 (struct pointer_map_t): Forward declare.
3752 (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
3753 (struct eh_landing_pad_d, eh_landing_pad): New.
3754 (struct eh_catch_d, eh_catch): New.
3755 (struct eh_region_d): Remove next_region_sharing_label, aka,
3756 label, tree_label, landing_pad, post_landing_pad, resume,
3757 may_contain_throw. Rename region_number to index. Remove
3758 u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch.
3759 Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
3760 (VEC(eh_landing_pad,gc)): New.
3761 (struct eh_status): Remove last_region_number. Add lp_array,
3762 throw_stmt_table, ttype_data, ehspec_data.
3763 (ehr_next, FOR_ALL_EH_REGION_AT): New.
3764 (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
3765 * except.c (lang_protect_cleanup_actions): Return tree.
3766 (struct ehl_map_entry): Remove.
3767 (init_eh_for_function): Push zero entries for region and lp_array.
3768 (gen_eh_region): Add to region_array immediately.
3769 (gen_eh_region_catch): Operate on eh_catch objects.
3770 (gen_eh_landing_pad): New.
3771 (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
3772 (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
3773 (get_eh_region_from_number, get_eh_region_from_number_fn): New.
3774 (get_eh_landing_pad_from_number_fn): New.
3775 (get_eh_landing_pad_from_number): New.
3776 (get_eh_region_from_lp_number_fn): New.
3777 (get_eh_region_from_lp_number): New.
3778 (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
3779 (get_exception_pointer, get_exception_filter): Remove.
3780 (collect_eh_region_array, can_be_reached_by_runtime): Remove.
3781 (current_function_has_exception_handlers): Simplify.
3782 (bring_to_root, eh_region_replaceable_by_p): Remove.
3783 (replace_region, hash_type_list, hash_eh_region): Remove.
3784 (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
3785 (label_to_region_map, num_eh_regions): Remove.
3786 (get_next_region_sharing_label, must_not_throw_labels): Remove.
3787 (find_exception_handler_labels): Remove.
3788 (duplicate_eh_regions_0, find_prev_try): Remove.
3789 (struct duplicate_eh_regions_data): New.
3790 (duplicate_eh_regions_1): Rewrite.
3791 (duplicate_eh_regions): Return a pointer map instead of an
3792 integer offset.
3793 (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
3794 (redirect_eh_edge_to_label): Remove.
3795 (eh_region_outermost): Rewrite using eh_region pointers
3796 instead of integers.
3797 (add_ttypes_entry): Update for ttype_data move to eh_status.
3798 (add_ehspec_entry): Rewrite with VEC instead of varray.
3799 (assign_filter_values): Likewise. Export.
3800 (build_post_landing_pads, connect_post_landing_pads): Remove.
3801 (dw2_build_landing_pads): Rewrite to use lp_array.
3802 (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
3803 (sjlj_assign_call_site_values): Rewrite to use lp_array.
3804 (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
3805 (sjlj_mark_call_sites): Update for landing pad numbers.
3806 (finish_eh_generation): Rewrite.
3807 (gate_handle_eh): Do nothing for no eh tree.
3808 (pass_rtl_eh): Move up near finish_eh_generation.
3809 (remove_eh_landing_pad): New.
3810 (remove_eh_handler): Export.
3811 (remove_eh_region, remove_eh_handler_and_replace): Remove.
3812 (for_each_eh_label): Rewrite to use lp_array.
3813 (make_reg_eh_region_note): New.
3814 (make_reg_eh_region_note_nothrow_nononlocal): New.
3815 (insn_could_throw_p): New.
3816 (copy_reg_eh_region_note_forward): New.
3817 (copy_reg_eh_region_note_backward): New.
3818 (check_handled, add_reachable_handler): Remove.
3819 (reachable_next_level, foreach_reachable_handler): Remove.
3820 (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
3821 (get_eh_region_and_lp_from_rtx): New.
3822 (get_eh_region_from_rtx): New.
3823 (can_throw_internal_1, can_throw_external_1): Remove.
3824 (can_throw_internal): Use get_eh_region_from_rtx.
3825 (can_throw_external): Use get_eh_region_and_lp_from_rtx.
3826 (insn_nothrow_p, can_nonlocal_goto): New.
3827 (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
3828 (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
3829 (add_action_record): Use VEC not varray.
3830 (collect_one_action_chain): Update for eh_region changes.
3831 (convert_to_eh_region_ranges): Make static. Use VEC not varray.
3832 Use get_eh_region_and_lp_from_rtx.
3833 (gate_convert_to_eh_region_ranges): New.
3834 (pass_convert_to_eh_region_ranges): Use it.
3835 (push_uleb128, push_sleb128): Use VEC not varray.
3836 (output_one_function_exception_table): Likewise.
3837 (dump_eh_tree): Update for eh_region changes.
3838 (verify_eh_tree): Likewise.
3839 (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
3840 * tree-eh.c: Include target.h.
3841 (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
3842 Don't disallow GIMPLE_RESX; adjust argument check.
3843 (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
3844 (record_stmt_eh_region): Update for landing pad numbers;
3845 generate a landing pad if necessary.
3846 (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
3847 (remove_stmt_from_eh_lp_fn): Similarly.
3848 (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
3849 Update for lp numbers; don't special case missing throw_stmt_table.
3850 (lookup_expr_eh_lp): Similarly.
3851 (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
3852 (eh_seq, eh_region_may_contain_throw): New.
3853 (struct leh_state): Add ehp_region.
3854 (struct leh_tf_state): Remove eh_label.
3855 (emit_post_landing_pad): New.
3856 (emit_resx, emit_eh_dispatch): New.
3857 (note_eh_region_may_contain_throw): New.
3858 (frob_into_branch_around): Take eh_region not eh label;
3859 emit eh code into eh_seq.
3860 (honor_protect_cleanup_actions): Early exit for no actions. Don't
3861 handle EXC_PTR_EXPR, FILTER_EXPR. Use gimple_build_eh_must_not_throw,
3862 lower_eh_must_not_throw. Emit code to eh_seq.
3863 (lower_try_finally_nofallthru): Emit eh code to eh_seq.
3864 (lower_try_finally_onedest): Likewise.
3865 (lower_try_finally_copy): Likewise.
3866 (lower_try_finally_switch): Likewise.
3867 (lower_try_finally): Initialize ehp_region.
3868 (lower_catch): Update for eh_catch objects.
3869 (lower_eh_filter): Don't handle must_not_throw.
3870 (lower_eh_must_not_throw): New.
3871 (lower_cleanup): Don't set eh_label.
3872 (lower_eh_constructs_2): Resolve eh builtins.
3873 Handle GIMPLE_EH_MUST_NOT_THROW.
3874 (lower_eh_constructs): Initialize eh_region_may_contain_throw.
3875 Add eh_seq to the end of the function body.
3876 (make_eh_dispatch_edges): New.
3877 (make_eh_edge): Remove.
3878 (make_eh_edges): Simplify for landing pads.
3879 (redirect_eh_edge_1): New.
3880 (redirect_eh_edge): Use it.
3881 (redirect_eh_dispatch_edge): New.
3882 (stmt_could_throw_p): Use a switch. Allow RESX.
3883 (stmt_can_throw_external): Use lookup_stmt_eh_lp.
3884 (stmt_can_throw_internal): Likewise.
3885 (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
3886 (maybe_clean_or_replace_eh_stmt): Update for landing pads.
3887 (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
3888 (gate_refactor_eh): New.
3889 (pass_refactor_eh): Use it.
3890 (lower_resx, execute_lower_resx, pass_lower_resx): New.
3891 (lower_eh_dispatch, execute_lower_eh_dispatch): New.
3892 (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
3893 (remove_unreachable_handlers): Rename from
3894 tree_remove_unreachable_handlers; rewrite for landing pads;
3895 call remove_eh_handler directly.
3896 (remove_unreachable_handlers_no_lp): New.
3897 (unsplit_eh, unsplit_all_eh): New.
3898 (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
3899 (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
3900 (cleanup_empty_eh_unsplit): New.
3901 (cleanup_empty_eh): Rewrite.
3902 (cleanup_all_empty_eh): New.
3903 (execute_cleanup_eh): Rename from cleanup_eh. Remove unreachable
3904 handlers first. Use unsplit_all_eh, cleanup_all_empty_eh.
3905 (gate_cleanup_eh): New.
3906 (pass_cleanup_eh): Use it.
3907 (verify_eh_edges): Move later in file. Expect one EH edge.
3908 (verify_eh_dispatch_edge): New.
3909
3910 * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
3911 (gtype-desc.o): Add TARGET_H.
3912 (tree.o): Use EXCEPT_H, not except.h.
3913 (cfgbuild.o): Add EXPR_H.
3914 (GTFILES): Add vecprim.h.
3915 * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
3916 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
3917 * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
3918 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
3919 * calls.c (emit_call_1): Use make_reg_eh_region_note.
3920 * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
3921 calls to can_throw_internal.
3922 (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
3923 (make_edges): Don't handle RESX; use can_nonlocal_goto.
3924 * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
3925 (expand_gimple_stmt): Use make_reg_eh_region_note.
3926 (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
3927 (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
3928 or find_exception_handler_labels.
3929 * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX. Assert
3930 there is exacly one EH edge. Use can_nonlocal_goto and
3931 can_throw_internal.
3932 * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
3933 (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
3934 * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
3935 * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
3936 * dce.c (deletable_insn_p_1): Don't test may_trap_p.
3937 (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
3938 * dse.c (scan_insn): Use insn_could_throw_p.
3939 * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
3940 * expr.c (expand_expr_real): Use make_reg_eh_region_note.
3941 (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
3942 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
3943 EXC_PTR_EXPR or FILTER_EXPR.
3944 (tree_expr_nonzero_warnv_p): Likewise.
3945 * function.h: Include vecprim.h, not varray.h
3946 (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
3947 move ttype_data and ehspec_data members to struct eh_status; change
3948 action_record_data member to a VEC.
3949 * gcse.c (hash_scan_set): Use can_throw_internal.
3950 * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
3951 * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
3952 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
3953 (block_may_fallthru): Don't handle RESX_EXPR.
3954 * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
3955 (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
3956 (dump_gimple_stmt): Dump landing pad information with TDF_EH;
3957 handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
3958 * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
3959 GIMPLE_EH_DISPATCH, GIMPLE_RESX.
3960 (gimple_size): Likewise.
3961 (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
3962 (gimple_build_resx): Use gimple_build_with_ops.
3963 (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
3964 (is_gimple_val): Likewise.
3965 (is_gimple_stmt): Remove RESX_EXPR.
3966 * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
3967 (GIMPLE_RESX): Reorder with other EH constructs.
3968 * gimple.h (struct gimple_statement_eh_mnt): New.
3969 (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
3970 (gimple_eh_filter_must_not_throw): Remove.
3971 (gimple_eh_filter_set_must_not_throw): Remove.
3972 (gimple_eh_must_not_throw_fndecl): New.
3973 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
3974 (is_gimple_resx): New.
3975 * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
3976 Don't copy EH_FILTER_MUST_NOT_THROW.
3977 * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
3978 * ipa-inline.c (estimate_function_body_sizes): Don't try to
3979 handle must_not_throw_labels specially.
3980 * ipa-pure-const.c (check_call): Update debug statement for LP.
3981 * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
3982 * ipa-utils.c (get_base_var): Likewise.
3983 * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
3984 * lower-subreg.c (move_eh_region_note): Remove.
3985 (resolve_simple_move): Use copy_reg_eh_region_note_forward.
3986 * omp-low.c (new_omp_context): Update for eh_lp_nr.
3987 (create_task_copyfn): Likewise.
3988 (maybe_catch_exception): Use gimple_build_eh_filter.
3989 * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
3990 REG_EH_REGION. Use make_reg_eh_region_note_nothrow_nononlocal.
3991 * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
3992 and pass_lower_resx.
3993 * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
3994 * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
3995 can_throw_internal, can_nonlocal_goto.
3996 * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
3997 copy_reg_eh_region_note_forward.
3998 (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
3999 (emit_output_reload_insns): Likewise.
4000 (copy_eh_notes): Remove.
4001 * rtl.def (RESX): Remove.
4002 * rtl.h: Update declarations.
4003 * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
4004 * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
4005 (update_eh_label): Remove.
4006 (cleanup_dead_labels_eh): New.
4007 (cleanup_deal_labels): Use it instead of update_eh_label.
4008 (gimple_merge_blocks): Update landing pad data structure when
4009 removing a landing pad label.
4010 (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
4011 test; handle GIMPLE_EH_MUST_NOT_THROW.
4012 (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
4013 (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
4014 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
4015 (verify_stmt): Likewise. Verify landing pads.
4016 (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
4017 (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
4018 (struct move_stmt_d): Add eh_map.
4019 (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
4020 (move_stmt_r): Remap eh region numbers in builtin calls,
4021 resx and eh_dispatch.
4022 (move_block_to_fn): Remove eh_offset parameter. Use
4023 maybe_duplicate_eh_stmt_fn.
4024 (find_outermost_region_in_block): Operate on eh_region pointers
4025 instead of region numbers.
4026 (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
4027 duplicate_eh_regions.
4028 * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
4029 test earlier. Disallow EH landing pads.
4030 * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
4031 * tree-flow.h: Update declarations.
4032 (struct tree_ann_common_d): Replace rn with lp_nr.
4033 * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
4034 (remap_eh_region_nr, remap_eh_region_tree_nr): New.
4035 (remap_gimple_stmt): Remap eh region numbers in builtin calls,
4036 resx and eh_dispatch.
4037 (copy_bb): Use maybe_duplicate_eh_stmt_fn.
4038 (copy_edges_for_bb): Use make_eh_dispatch_edges.
4039 (copy_cfg_body): Expect eh_map instead of eh_region_offset
4040 from duplicate_eh_regions.
4041 (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
4042 update RESX; handle EH_DISPATCH.
4043 (expand_call_inline): Set eh_lp_nr, not eh_region.
4044 (maybe_inline_call_in_expr): Likewise.
4045 * tree-inline.h (struct copy_body_data): Replace eh_region with
4046 eh_lp_nr, eh_region_offset with eh_map.
4047 * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
4048 * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
4049 * tree-pretty-print.c (dump_generic_node): Don't handle
4050 EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
4051 * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
4052 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
4053 EXC_PTR_EXPR, FILTER_EXPR.
4054 * tree-ssa-operands.c (get_expr_operands): Likewise.
4055 * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
4056 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4057 (ao_ref_init_from_vn_reference): Likewise.
4058 * tree-ssa-sink.c (statement_sink_location): Likewise.
4059 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
4060 (mark_virtual_phi_result_for_renaming): Export. Tidy.
4061 * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
4062 EXC_PTR_EXPR, FILTER_EXPR.
4063 (is_exception_related): Remove.
4064 (compute_avail): Don't call it.
4065 * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
4066 * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
4067 (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
4068 (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
4069 Build EH builtins.
4070 (build_resx): Remove.
4071 * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
4072 * tree.h: Update declarations.
4073 (EH_FILTER_MUST_NOT_THROW): Remove.
4074 (struct tree_label_decl): Add eh_landing_pad_nr.
4075 (EH_LANDING_PAD_NR): New.
4076 * value-prof.c (gimple_ic): Tidy variable names. Update for
4077 landing pad numbers.
4078 (gimple_stringop_fixed_value): Tidy variable names. Assert
4079 that neither call stmt can throw.
4080 * vecprim.h (uchar): New.
4081 (VEC(uchar,heap), VEC(uchar,gc)): New.
4082
4083 * c-common.c (c_define_builtins): Update call to
4084 build_common_builtin_nodes.
4085 * c-parser.c (c_parse_file): Don't call
4086 default_init_unwind_resume_libfunc.
4087
4088 2009-09-14 Richard Sandiford <rdsandiford@googlemail.com>
4089
4090 * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
4091 (mips_cprestore_address_p): Likewise.
4092 (mips_save_gp_to_cprestore_slot): Likewise.
4093 (mips_restore_gp): Rename to...
4094 (mips_restore_gp_from_cprestore_slot): ...this.
4095 (mips_must_initialize_gp_p): Declare.
4096 (mips_emit_save_slot_move): Likewise.
4097 (mips_output_load_label): Return nothing.
4098 (mips_eh_uses): Declare.
4099 * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
4100 (TARGET_CPRESTORE_DIRECTIVE): New macro.
4101 (TARGET_ABSOLUTE_JUMPS): Likewise.
4102 (EH_USES): Likewise.
4103 (FIRST_PSEUDO_REGISTER): Update comment.
4104 (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
4105 (MIPS_CALL): ...here.
4106 (REGISTER_NAMES): Add $cprestore.
4107 * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
4108 Add load_label_length, has_inflexible_gp_insn_p,
4109 has_flexible_gp_insn_p, must_initialize_gp_p and
4110 must_restore_gp_when_clobbered_p.
4111 (mips_expand_call): Don't generate split instructions here.
4112 (mips_split_call): Update the call to mips_restore_gp after
4113 the above name change.
4114 (mips16_cfun_returns_in_fpr_p): Move earlier in file.
4115 (mips_find_gp_ref): New function.
4116 (mips_insn_has_inflexible_gp_ref_p): Likewise.
4117 (mips_cfun_has_inflexible_gp_ref_p): Likewise.
4118 (mips_insn_has_flexible_gp_ref_p): Likewise.
4119 (mips_cfun_has_flexible_gp_ref_p): Likewise.
4120 (mips_function_has_gp_insn): Delete.
4121 (mips_global_pointer): Drop the df_regs_ever_live_p check.
4122 Use the new functions above. Only return INVALID_REGNUM
4123 for TARGET_ABSOLUTE_JUMPS.
4124 (mips_must_initialize_gp_p): New function.
4125 (mips_get_cprestore_base_and_offset): New function, extracted from...
4126 (mips_cprestore_slot): ...here. Take a bool parameter.
4127 (mips_cfun_has_cprestore_slot_p): New function.
4128 (mips_cprestore_address_p): Likewise.
4129 (mips_save_gp_to_cprestore_slot): Likewise.
4130 (mips_restore_gp): Rename to...
4131 (mips_restore_gp_from_cprestore_slot): ...this. Assert
4132 epilogue_completed. Update the call to mips_cprestore_slot.
4133 Test cfun->machine->must_restore_gp_when_clobbered_p.
4134 (mips_direct_save_slot_move_p): New function.
4135 (mips_emit_save_slot_move): Likewise.
4136 (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
4137 of cfun->machine->global_pointer.
4138 (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
4139 (mips_save_reg): Use mips_emit_save_slot_move.
4140 (mips_expand_prologue): Set must_initialize_gp_p.
4141 Use mips_cfun_has_cprestore_slot_p. Use gen_potential_cprestore
4142 for all cprestore saves. Emit a use_cprestore instruction after
4143 setting up the cprestore slot.
4144 (mips_restore_reg): Use mips_emit_save_slot_move.
4145 (mips_process_load_label): New function.
4146 (mips_load_label_length): Likewise.
4147 (mips_output_load_label): Don't return asm: output it here instead.
4148 Use mips_process_load_label.
4149 (mips_adjust_insn_length): Adjust the length of branch instructions
4150 that have length MAX_PIC_BRANCH_LENGTH.
4151 (mips_output_conditional_branch): Update the call to
4152 mips_output_load_label. Assume the branch target is OPERANDS[0]
4153 rather than OPERANDS[1]. Use MIPS_ABSOLUTE_JUMP for absolute jumps.
4154 (mips_output_order_conditional_branch): Swap the meaning of
4155 OPERANDS[0] and OPERANDS[1].
4156 (mips_variable_issue): Don't count ghost instructions.
4157 (mips_expand_ghost_gp_insns): New function.
4158 (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
4159 (mips_output_mi_thunk): Set must_initialize_gp_p.
4160 (mips_eh_uses): New function.
4161 * config/mips/predicates.md (cprestore_save_slot_operand)
4162 (cprestore_load_slot_operand): New predicates.
4163 * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
4164 (UNSPEC_MOVE_GP): Likewise.
4165 (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
4166 (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
4167 (CPRESTORE_SLOT_REGNUM): New register.
4168 (MAX_PIC_BRANCH_LENGTH): New constant.
4169 (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
4170 (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
4171 branches. Fix commentary.
4172 (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
4173 Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
4174 Change type to "ghost".
4175 (loadgp_absolute_<mode>): Likewise.
4176 (loadgp_rtp_<mode>): Likewise.
4177 (copygp_mips16): Likewise.
4178 (loadgp_blockage): Remove redundant mode attribute.
4179 (potential_cprestore): New instruction.
4180 (cprestore): Turn into an unspec set.
4181 (use_cprestore): New instruction.
4182 (*branch_fp): Swap operands 0 and 1. Remove redundant mode attribute.
4183 (*branch_fp_inverted): Likewise.
4184 (*branch_order<mode>): Likewise.
4185 (*branch_order<mode>_inverted): Likewise.
4186 (*branch_equality<mode>): Likewise.
4187 (*branch_equality<mode>_inverted): Likewise.
4188 (*branch_bit<bbv><mode>): Likewise.
4189 (*branch_bit<bbv><mode>_inverted): Likewise.
4190 (*branch_equality<mode>_mips16): Remove redundant mode.
4191 (jump): Turn into a define_expand.
4192 (*jump_absolute): New instruction.
4193 (*jump_pic): Likewise.
4194 (*jump_mips16): Rename previously-unnamed pattern. Remove
4195 redundant mode attribute.
4196 (restore_gp): Split on epilogue_completed rather than
4197 reload_completed. Change type to "ghost".
4198 (move_gp<mode>): New instruction.
4199 * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
4200 Remove redundant mode attribute.
4201 * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
4202 (bc1any4f, bc1any2t, bc1any2f): Likewise.
4203 (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
4204
4205 2009-09-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4206
4207 PR target/41210
4208 * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
4209 are returned in the same register (vs34 or v2) that Altivec vector
4210 types are returned in.
4211 (rs6000_libcall_value): Ditto.
4212
4213 PR target/41331
4214 * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
4215 instead of explicit addsi3/adddi3 calls.
4216 (rs6000_split_multireg_move): Ditto.
4217 (rs6000_emit_allocate_stack): Ditto.
4218 (rs6000_emit_prologue): Ditto.
4219 (rs6000_output_mi_thunk): Ditto.
4220
4221 * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
4222 size is 64 bits if we can use 64-bit registers.
4223
4224 2009-09-14 Bernd Schmidt <bernd.schmidt@analog.com>
4225
4226 * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
4227 symbols.
4228
4229 From Jie Zhang <jie.zhang@analog.com>:
4230 * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
4231 save FP and RETS with saveall attribute.
4232 (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
4233 with saveall attribute.
4234
4235 * config/bfin/bfin.c (bfin_expand_builtin,
4236 case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
4237 operands.
4238
4239 From Jie Zhang <jie.zhang@analog.com>:
4240 * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
4241 before use in two places.
4242 * config/bfin/bfin.md (AREG): Define mode iterator.
4243 (reload_in, reload_out): Use mode iterator AREG.
4244
4245 2009-09-14 Richard Guenther <rguenther@suse.de>
4246
4247 PR middle-end/41350
4248 * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
4249 EH personality path.
4250
4251 2009-09-13 Richard Guenther <rguenther@suse.de>
4252 Rafael Avila de Espindola <espindola@google.com>
4253
4254 * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
4255 (LANG_HOOKS_EH_PERSONALITY): Likewise.
4256 (LANG_HOOKS_INITIALIZER): Adjust.
4257 (lhd_pass_through_t): Declare.
4258 * langhooks.h (struct lang_hooks): Add eh_runtime_type and
4259 eh_personality.
4260 * langhooks.c (lhd_pass_through_t): New function.
4261 * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
4262 dwarf2out_begin_prologue): Use personality from current_function_decl.
4263 * expr.h (get_personality_function): Declare.
4264 * expr.c (get_personality_function): New function.
4265 (build_personality_function): Likewise.
4266 * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
4267 (eh_personality_libfunc): Remove.
4268 * optabs.c (build_libfunc_function): New function split out from ...
4269 (init_one_libfunc): ... here.
4270 * tree.h (DECL_FUNCTION_PERSONALITY): New.
4271 (tree_function_decl): Add personality.
4272 (lhd_gcc_personality): Declare.
4273 (build_personality_function): Likewise.
4274 * tree.c (gcc_eh_personality_decl): New.
4275 (lhd_gcc_personality): New function.
4276 * except.h (lang_eh_runtime_type): Remove.
4277 (enum eh_personality_kind): New.
4278 (build_personality_function): Declare.
4279 (function_needs_eh_personality): Declare.
4280 * except.c (lang_eh_runtime_type): Remove.
4281 (function_needs_eh_personality): New function.
4282 (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
4283 (sjlj_emit_function_enter, output_function_exception_table):
4284 Use personality from current_function_decl.
4285 * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
4286 * tree-inline.c (tree_can_inline_p): Do not inline across different
4287 EH personalities.
4288 (expand_call_inline): Likewise. Adjust the callers EH personality.
4289 (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
4290 * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
4291 * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
4292 (c-parser.o): Likewise
4293 * c-tree.h (c_eh_initialized_p): Remove.
4294 (c_maybe_initialize_eh): Likewise.
4295 * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
4296 (finish_decl): Don't call c_maybe_initialize_eh.
4297 (c_eh_initialized_p): Remove.
4298 (c_maybe_initialize_eh): Likewise.
4299 * c-parser.c (c_parser_omp_construct): Likewise.
4300 (c_parse_file): Initialize exception handling.
4301
4302 2009-09-13 Kai Tietz <kai.tietz@onevision.com>
4303
4304 * config.gcc (tm_file): Remove i386/biarch32.h
4305 for i?86-w64-mingw* case.
4306 (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
4307 support.
4308 * config.host: Set for x64 mingw the option
4309 use_long_long_for_widest_fast_int to yes.
4310
4311 2009-09-13 Eric Botcazou <ebotcazou@adacore.com>
4312
4313 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
4314 * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
4315 (dbxout_begin_function): Likewise.
4316 * final.c (dwarf2_debug_info_emitted_p): New predicate.
4317 (final_start_function): Do not emit debug info if DECL_IGNORED_P is
4318 set on the function.
4319 (final_end_function): Likewise.
4320 (final_scan_insn): Likewise.
4321 (rest_of_handle_final): Likewise.
4322 * varasm.c (assemble_start_function): Likewise.
4323 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
4324
4325 2009-09-12 Jason Merrill <jason@redhat.com>
4326
4327 * dbgcnt.c (dbg_cnt_process_single_pair): constify.
4328 * opts.c (common_handle_option): constify.
4329
4330 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
4331
4332 * doc/install.texi (avr): Remove obsolete reference site.
4333
4334 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
4335
4336 * doc/install.texi (Binaries): Adjust AIX link.
4337
4338 2009-09-12 Akim Demaille <demaille@gostai.com>
4339
4340 * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
4341 Use an imperative sentence.
4342
4343 2009-09-11 Richard Henderson <rth@redhat.com>
4344
4345 * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
4346 structure-name and has-tree-operands arguments; update all entries.
4347 * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
4348 update all entries.
4349 * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
4350 (gsstruct_code_size): New.
4351 (gss_for_code_): New.
4352 (gss_for_code): Remove.
4353 (gimple_size): Rewrite using gsstruct_code_size.
4354 (gimple_statement_structure): Move to gimple.h.
4355 * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
4356 (gss_for_code, gimple_statement_structure): New.
4357 (gimple_ops): Use new arrays; tidy.
4358
4359 2009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4360
4361 * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
4362 operand to be a PLUS expression.
4363 * config/pa/pa.c (pa_secondary_reload): Likewise.
4364
4365 2009-09-11 Jakub Jelinek <jakub@redhat.com>
4366
4367 * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
4368
4369 * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
4370 XEXP (in_rtx, 8).
4371
4372 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
4373
4374 From Jie Zhang <jie.zhang@analog.com>:
4375 * doc/extend.texi (node Function Attributes): Document l2
4376 function attribute.
4377 (node Blackfin Variable Attributes): Document l2 variable attributes.
4378
4379 2009-09-11 Loren J. Rittle <ljrittle@acm.org>
4380
4381 * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
4382 to match the system compiler's configuration at inflection point.
4383 Add comment to remark a remaining difference with system compiler.
4384
4385 * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
4386 * configure: Regenerate.
4387
4388 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
4389
4390 From Jie Zhang <jie.zhang@analog.com>:
4391 * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
4392 (bfin_handle_l2_attribute): New.
4393 (bfin_attribute_table): Add l2 attribute.
4394
4395 2009-09-11 Michael Matz <matz@suse.de>
4396
4397 PR middle-end/41275
4398 * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
4399 on the local_decls list.
4400
4401 2009-09-11 Alexandre Oliva <aoliva@redhat.com>
4402
4403 PR debug/41276
4404 PR debug/41307
4405 * cselib.c (cselib_expand_value_rtx_cb): Document callback
4406 interface.
4407 (cselib_expand_value_rtx_1): Use callback for SUBREGs. Adjust
4408 for VALUEs, to implement the documented interface.
4409 * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
4410 Adjust for VALUEs and anything else, to implement the
4411 documented interface.
4412
4413 2009-09-10 Nathan Froyd <froydnj@codesourcery.com>
4414
4415 * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
4416 with actual SPE/paired vector modes before using 64-bit alignment.
4417 Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
4418
4419 2009-09-10 DJ Delorie <dj@redhat.com>
4420
4421 * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
4422 emitted.
4423
4424 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
4425 * config/mep/mep.c (mep_legitimate_constant_p): New.
4426 * config/mep/mep-protos.h: Prototype it.
4427
4428 2009-09-10 Richard Henderson <rth@redhat.com>
4429
4430 * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
4431
4432 2009-09-10 Jason Merrill <jason@redhat.com>
4433
4434 * tree.c (chain_index): New fn.
4435 * tree.h: Declare it.
4436
4437 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4438
4439 * config/sol2-c.c (cmn_err_length_specs): Initialize
4440 scalar_identity_flag.
4441
4442 2009-09-10 Richard Henderson <rth@redhat.com>
4443
4444 * tree.h (struct tree_decl_common): Move align member earlier;
4445 move label_decl_uid member ...
4446 (struct tree_label_decl): ... here.
4447 (LABEL_DECL_UID): Update to match.
4448
4449 * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
4450 not TDF_DETAILS.
4451
4452 * tree-cfg.c (gimple_redirect_edge_and_branch): Do
4453 gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
4454
4455 * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
4456 dest_prev if the edge is complex.
4457
4458 * tree-cfg.c (is_ctrl_stmt): Use a switch.
4459
4460 * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
4461 loop latch tests earlier.
4462
4463 * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
4464 before GIMPLE_RETURN, not after its predecessor; insert
4465 before GIMPLE_RESX.
4466
4467 * gimple-iterator.c (gimple_find_edge_insert_loc): Use
4468 gimple_seq_empty_p to test for no PHI nodes.
4469 * tree-cfg.c (split_critical_edges): Likewise.
4470
4471 * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
4472
4473 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
4474
4475 * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
4476 introduced by the VTA branch merge.
4477
4478 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
4479
4480 * ira-conflicts.c: Use fputs or putc instead of fprintf
4481 where appropriate.
4482 * cfg.c: Ditto.
4483 * toplev.c: Ditto.
4484 * tree-switch-conversion.c: Ditto.
4485
4486 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
4487
4488 * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
4489 introduced by the VTA branch merge.
4490
4491 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
4492
4493 Revert:
4494 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
4495
4496 PR rtl-optimization/39779
4497 * expr.c (convert_modes): Return when mode == oldmode after
4498 CONST_INTs are processed.
4499
4500 2009-09-10 Nick Clifton <nickc@redhat.com>
4501
4502 * config/mep/mep.c (mep_encode_section_info): Copy weakness
4503 attribute and referring decl when creating renamed symbol.
4504
4505 2009-09-10 Richard Guenther <rguenther@suse.de>
4506
4507 PR middle-end/41257
4508 * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
4509 reachable nodes.
4510 (cgraph_finalize_compilation_unit): Compute reachability
4511 before emitting thunks. Properly process aliases before
4512 possibly removing unreachable nodes.
4513
4514 2009-09-10 Richard Guenther <rguenther@suse.de>
4515
4516 PR middle-end/41254
4517 * tree.c (struct free_lang_data_d): Add worklist member.
4518 (find_decls_types_r): Push onto the worklist instead of recursing.
4519 Handle TREE_BINFOs properly.
4520 (find_decls_types): New function wrapped around find_decls_types_r
4521 to process the worklist.
4522 (find_decls_types_in_eh_region): Use it.
4523 (find_decls_types_in_node): Likewise.
4524 (find_decls_types_in_var): Likewise.
4525 (free_lang_data_in_cgraph): Likewise. Free the worklist.
4526 * tree.h (RECORD_OR_UNION_TYPE_P): New.
4527 (AGGREGATE_TYPE_P): Adjust.
4528
4529 2009-09-09 Jason Merrill <jason@redhat.com>
4530
4531 * configure.ac: Check glibc version even if we have an in-tree
4532 assembler.
4533
4534 2009-09-09 Anthony Green <green@moxielogic.com>
4535
4536 * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
4537 the constant 0 when appropriate.
4538 * config/moxie/constraints.md: Add constraint O.
4539
4540 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
4541 to pass up to 6 32-bit argument values in registers.
4542 (moxie_function_arg): Ditto.
4543 (moxie_arg_partial_bytes): Ditto.
4544 * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
4545 (REG_PARM_STACK_SPACE): Ditto.
4546 (FUNCTION_ARG_REGNO_P): Ditto.
4547
4548 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
4549 instruction to allocate stack space.
4550
4551 2009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
4552
4553 * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
4554 unnecessarily stringent constraints. Fix address
4555 calculation in the splitters.
4556
4557 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
4558
4559 PR rtl-optimization/39779
4560 * expr.c (convert_modes): Return when mode == oldmode after
4561 CONST_INTs are processed.
4562
4563 2009-09-09 Kai Tietz <kai.tietz@onevision.com>
4564
4565 PR/41315
4566 * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
4567 (ix86_expand_prologue): Take frame.padding0 into logic of
4568 to_allocate checks.
4569 (ix86_expand_epilogue): Likewise.
4570
4571 2009-09-09 Jakub Jelinek <jakub@redhat.com>
4572
4573 * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
4574 New variables.
4575 (SHLIB_LINK, SHLIB_INSTALL): Use them.
4576 * config/t-slibgcc-libgcc: New file.
4577 * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
4578
4579 2009-09-09 Martin Jambor <mjambor@suse.cz>
4580
4581 PR tree-optimization/41089
4582 * tree-sra.c (find_var_candidates): Do not consider va_lists in
4583 early SRA.
4584
4585 2009-09-09 Richard Henderson <rth@redhat.com>
4586
4587 * gimple.h (CASE_GIMPLE_OMP): New.
4588 (is_gimple_omp): Use it.
4589 * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
4590 (verify_gimple_debug): Likewise.
4591
4592 2009-09-09 Richard Guenther <rguenther@suse.de>
4593
4594 PR tree-optimization/41101
4595 * tree-ssa-pre.c (maximal_set): Remove.
4596 (compute_antic_aux): Treat the maximal set as implicitly all ones.
4597 Defer all blocks we didn't visit at least one successor.
4598 (add_to_exp_gen): Do not add to the maximal set.
4599 (make_values_for_phi): Likewise.
4600 (compute_avail): Likewise.
4601 (init_pre): Do not allocate the maximal set.
4602 (execute_pre): Do not dump it.
4603
4604 2009-09-09 Martin Jambor <mjambor@suse.cz>
4605
4606 * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
4607 an SSA_NAME rather than a is_gimple_variable.
4608
4609 2009-09-09 Richard Guenther <rguenther@suse.de>
4610
4611 PR middle-end/41317
4612 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
4613 code dealing with plain pointer bases.
4614 (maybe_fold_offset_to_reference): Likewise.
4615 (maybe_fold_stmt_addition): Adjust.
4616
4617 2009-09-09 Richard Guenther <rguenther@suse.de>
4618
4619 * tree.c (free_lang_data_in_type): Do not free the type variant
4620 chains.
4621 (free_lang_data): Merge char_type_node with its properly signed
4622 variant.
4623 (pass_ipa_free): Collect after freeing language specific data.
4624
4625 2009-09-09 Michael Matz <matz@suse.de>
4626
4627 PR middle-end/41268
4628 * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
4629 SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
4630 * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
4631 to reflect reality.
4632
4633 2009-09-08 DJ Delorie <dj@redhat.com>
4634
4635 * config/mep/mep.c (conversions[]): Add "ml" pattern.
4636
4637 2009-09-04 Jason Merrill <jason@redhat.com>
4638
4639 * tree.c (tree_find_value): Remove.
4640 * tree.h: Remove prototype.
4641 * varasm.c (assemble_external): Use value_member instead.
4642
4643 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4644
4645 * toplev.c (process_options): Choose default debugging type when
4646 gtoggle enables debug info and type is unset.
4647
4648 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4649
4650 PR debug/41276
4651 PR debug/41307
4652 * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
4653 invalid subreg.
4654
4655 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4656
4657 * configure: Rebuilt with modified libtool.m4.
4658
4659 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4660
4661 PR debug/41229
4662 PR debug/41291
4663 PR debug/41300
4664 * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
4665
4666 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4667
4668 * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
4669 (remove_statement): Likewise.
4670 (rewrite_use_nonlinear_expr): Adjust.
4671 (remove_unused_ivs): Collect SSA NAMEs to remove and call...
4672 * tree-ssa.c (release_defs_bitset): ... this. New.
4673 * tree-flow.h (release_defs_bitset): Declare.
4674
4675 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4676
4677 PR debug/41232
4678 * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
4679 in the middle block.
4680
4681 2009-09-08 Kai Tietz <kai.tietz@onevision.com>
4682
4683 * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
4684 via intptr_t to long type.
4685 (insert_operand_rank): Cast long type via intptr_t to
4686 pointer type.
4687 * genattrtab.c (RTL_HASH): Use intptr_t to cast from
4688 pointer to scalar.
4689 * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
4690 from pointer to unsigned via uintptr_t.
4691
4692 * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
4693 uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
4694 and HAVE_INTPTR_T.
4695 * configure: Regenerated.
4696 * config.in: Regenerated
4697 * system.h (stdint.h): Add include.
4698 (inttypes.h): Likewise.
4699 * Makefile.in (aclocal): Add config/stdint.m4.
4700 * aclocal.m4: Regenerated.
4701
4702 2009-09-08 Bernd Schmidt <bernd.schmidt@analog.com>
4703
4704 * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
4705 variables.
4706 (note_np_check_stores): New function.
4707 (harmless_null_pointer_p): New function.
4708 (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH. Callers
4709 changed. Take into account whether we're in the shadow of a condjump
4710 that tested NP_REG for NULL.
4711 Lose all code that tested for SEQUENCEs.
4712 (workaround_speculation): Avoid inserting NOPs for loads that are
4713 either always executed or a NULL pointer.
4714
4715 2009-09-08 Jan Hubicka <jh@suse.cz>
4716
4717 * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
4718 * params.def (early-inlining-insns): Likewise.
4719
4720 2009-09-08 Jakub Jelinek <jakub@redhat.com>
4721
4722 PR rtl-optimization/41239
4723 * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
4724 * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
4725 lists.
4726 * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
4727 across calls, as the calls might not always return normally.
4728 (call_may_noreturn_p): New function.
4729 (deps_analyze_insn): Update last_function_call_may_noreturn list.
4730 (init_deps): Initialize it.
4731 (remove_from_deps): Also remove calls from
4732 last_function_call_may_noreturn list.
4733
4734 2009-09-07 Richard Henderson <rth@redhat.com>
4735
4736 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
4737 more VR->OPERANDS than LHS operands. Free LHS before returning.
4738
4739 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
4740
4741 * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
4742 (attr "addrtype"): New member "spreg".
4743 Use it if mem_spfp_address_operand is true for the address.
4744 (attr "type"): New entry "stall".
4745 (cpu_unit "load"): New.
4746 (insn_reservations "load32", "loadp", "loadi"): Add reservation of
4747 "load".
4748 (insn_reservation "loadsp"): New.
4749 (insn_reservation "load_stall1"): New.
4750 (insn_reservation "load_stall3"): New.
4751 (stall): New insn.
4752 * config/bfin/predicates.md (const1_operand, const3_operand): New.
4753 (mem_p_address_operand): Exclude stack and frame pointer based
4754 addresses.
4755 (mem_spfp_address_operand): New; match them here.
4756 * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
4757 (bfin_reorg): Call it if scheduling insns.
4758 (bfin_gen_bundles): Remove dummy insns created by
4759 add_sched_insns_for_speculation.
4760
4761 From Jie Zhang <jie.zhang@analog.com>:
4762 * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
4763 bfin_si_revision, bfin_workarounds): Move these ...
4764 * config/bfin/bfin.h: ... here.
4765
4766 From Mike Frysinger <michael.frysinger@analog.com>
4767 * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
4768 BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
4769 * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
4770 bf547m, bf548m, and bf549m.
4771 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
4772 for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
4773 __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
4774 BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
4775 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4776 bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
4777 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4778 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4779 * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
4780 bf542m, bf544m, bf547m, bf548m, and bf549m.
4781
4782 From Jie Zhang <jie.zhang@analog.com>:
4783 * config/bfin/predicates.md (p_register_operand): New predicate.
4784 (dp_register_operand): New predicate.
4785 * config/bfin/bfin-protos.h (WA_05000074): Define.
4786 (ENABLE_WA_05000074): Define.
4787 * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
4788 (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
4789 * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
4790 (define_attr addrtype): Allow load/store register to be P register.
4791 (define_attr storereg): New.
4792 (define_cpu_unit anomaly_05000074): New.
4793 (define_insn_reservation dsp32shiftimm): New.
4794 (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
4795 (define_insn_reservation loadp): Cannot use slot2.
4796 (define_insn_reservation loadsp): Cannot use slot2.
4797 (define_insn_reservation storep): Cannot use slot2. Does not
4798 apply when working around 05000074.
4799 (define_insn_reservation storep_anomaly_05000074): New.
4800 (define_insn_reservation storei): Does not apply when working
4801 around 05000074.
4802 (define_insn_reservation storei_anomaly_05000074): New.
4803 (define_attr length): Add dsp32shiftimm case.
4804 (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
4805 ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
4806 movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
4807 ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
4808 Set type as dsp32shiftimm for dsp32shiftimm alternatives.
4809
4810 2009-09-07 Martin Jambor <mjambor@suse.cz>
4811
4812 PR middle-end/41282
4813 * tree-sra.c (create_artificial_child_access): Return NULL if
4814 build_ref_for_offset fails.
4815 (propagate_subacesses_accross_link): Allow build_ref_for_offset
4816 and create_artificial_child_access to fail.
4817
4818 2009-09-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
4819
4820 PR c++/41214
4821 * unwind-dw2.c (uw_init_context_1): Mark noinline.
4822 * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
4823 * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
4824
4825 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
4826
4827 * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
4828 block, ensure it has an exit edge. Emit a barrier after a jump.
4829
4830 2009-09-07 Nick Clifton <nickc@redhat.com>
4831
4832 * gcc.c (this_is_linker_script): New variable. Like
4833 this_is_library_file but for the %T constructor.
4834 (end_going_arg): If this_is_linker_script is set then locate the
4835 script and insert a --script switch before it
4836 (do_spec_2): Initialise this_is_linker_script.
4837 (do_spec_1): Likewise. Handle %T construct.
4838 (eval_spec_function): Preserve this_is_linker_script.
4839 * doc/invoke.texi: Document %T construct in spec files.
4840 * config/m32c/m32c.h (LIB_SPEC): Use it.
4841
4842 2009-09-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4843
4844 * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
4845 * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
4846 when volatile flag is set.
4847 * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
4848
4849 2009-09-06 Eric Botcazou <ebotcazou@adacore.com>
4850
4851 PR bootstrap/41241
4852 * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
4853 (combine_stack_adjustments_for_block): Allow insns between stack
4854 adjustments and stores with corresponding pre-(dec|inc)rement or
4855 pre-modify operation.
4856
4857 2009-09-06 Jakub Jelinek <jakub@redhat.com>
4858
4859 PR bootstrap/41241
4860 * combine-stack-adj.c (struct csa_memlist): Rename to...
4861 (struct csa_reflist): ... this. Rename mem field to ref.
4862 (free_csa_memlist): Rename to...
4863 (free_csa_reflist): ... this.
4864 (record_one_stack_memref): Rename to...
4865 (record_one_stack_ref): ... this. Handle also REG_P.
4866 (try_apply_stack_adjustment): Handle also REG_P.
4867 (struct record_stack_memrefs_data): Rename to...
4868 (struct record_stack_refs_data): ... this. Rename memlist field to
4869 reflist.
4870 (record_stack_memrefs): Rename to...
4871 (record_stack_refs): ... this. For DEBUG_INSNs keep traversing
4872 subexpressions instead of failing when a MEM contains SP references.
4873 For SP itself in DEBUG_INSNs queue it also onto reflist chain.
4874 (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
4875
4876 2009-09-06 Richard Guenther <rguenther@suse.de>
4877
4878 PR middle-end/41144
4879 * tree.c (build_array_type): Do not record types marked
4880 with structural equality in the canonical type hashtable.
4881
4882 2009-09-06 Richard Guenther <rguenther@suse.de>
4883
4884 PR middle-end/41261
4885 * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
4886
4887 2009-09-05 Richard Guenther <rguenther@suse.de>
4888
4889 PR middle-end/41181
4890 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
4891
4892 2009-09-05 Richard Guenther <rguenther@suse.de>
4893
4894 PR debug/41273
4895 * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
4896
4897 2009-09-05 Richard Guenther <rguenther@suse.de>
4898
4899 PR middle-end/41271
4900 * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
4901 before comparing function argument types.
4902
4903 2009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4904
4905 PR target/41024
4906 * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
4907 the assembler.
4908
4909 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
4910
4911 Revert:
4912 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
4913
4914 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
4915 locators before emit_insn is called.
4916
4917 2009-09-04 Vladimir Makarov <vmakarov@redhat.com>
4918
4919 PR bootstrap/41241
4920 * ira.c (update_equiv_reg): Revert my previous patch for the PR.
4921 * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
4922 (reginfo_init): Don't call allocate_reg_info.
4923
4924 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
4925
4926 PR target/41262
4927 * config/alpha/alpha.c (alpha_does_function_need_gp): Use
4928 NONDEBUG_INSN_P instead of INSN_P.
4929
4930 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
4931
4932 PR debug/41225
4933 * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
4934
4935 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
4936
4937 PR target/41252
4938 * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
4939 pattern of the split.
4940
4941 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
4942
4943 * toplev.c (process_options): Move setter of flag_var_tracking
4944 before other tests that depend on it. Move down setter of
4945 flag_rename_registers. Don't enable var-tracking-assignments
4946 by default if selective scheduling is enabled. Warn if both
4947 are enabled.
4948
4949 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
4950
4951 * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
4952 comment. Use switch statement to catch overlaps between rtx
4953 and tree codes. Accept FUNCTION_DECLs in addition to those in...
4954 (IS_DECL_CODE): ... here. Remove.
4955 (check_value_is_not_decl): Remove.
4956 (dv_from_decl, dv_from_value): Check after conversion.
4957
4958 2009-09-04 Richard Guenther <rguenther@suse.de>
4959
4960 PR middle-end/41257
4961 * (cgraph_finalize_compilation_unit): Move finalizing aliases
4962 after emitting tunks. Move emitting thunks and ctors from ...
4963 (cgraph_optimize): ... here. Remove redundant
4964 cgraph_analyze_functions.
4965 * varasm.c (find_decl_and_mark_needed): Remove no longer
4966 necessary check.
4967 (finish_aliases_1): Adjust check for thunk aliases.
4968
4969 2009-09-04 Daniel Gutson <dgutson@codesourcery.com>
4970
4971 * config/arm/arm.md (ctzsi2): Added braces
4972 to avoid warning that broke booststrap.
4973
4974 2009-09-04 Martin Jambor <mjambor@suse.cz>
4975
4976 PR tree-optimization/41112
4977 * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
4978 handle variable-bounded arrays.
4979 (expr_with_var_bounded_array_refs_p): New function.
4980 (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
4981
4982 2009-09-04 Wolfgang Gellerich <gellerich@de.ibm.com>
4983
4984 * config/s390/2097.md: Removed two incorrect bypasses.
4985 (z10_fsimpdf): Fixed latency.
4986 (z10_fhex): New insn_reservation.
4987 (z10_floaddf): Fixed latency.
4988 (z10_floadsf): Fixed latency.
4989 (z10_ftrunctf): Fixed latency.
4990 (z10_ftruncdf): Fixed latency.
4991 * config/s390/s390.c (z10_cost): Fixed values.
4992 (s390_adjust_priority): Added z10 path.
4993 * config/s390/s390.md (type): Added fhex.
4994 (*mov<mode>_64dfp): Updated type attribute.
4995 (*mov<mode>_64): Updated type attribute.
4996 (*mov<mode>_31): Updated type attribute.
4997 (*mov<mode>"): Likewise.
4998 * config/s390/2084.md (x_fsimpdf): Updated condition.
4999
5000 2009-09-04 Andreas Krebbel <krebbel1@de.ibm.com>
5001
5002 * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
5003 RTXs in the predicate for operand 1.
5004
5005 2009-09-03 Daniel Gutson <dgutson@codesourcery.com>
5006
5007 * config/arm/arm.md (UNSPEC_RBIT): New constant.
5008 (rbitsi2): New insn.
5009 (ctzsi2): New expand.
5010 * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
5011
5012 2009-09-03 Martin Jambor <mjambor@suse.cz>
5013
5014 * tree-sra.c (duplicate_expr_for_different_base): Removed.
5015 (create_artificial_child_access): Use build_ref_for_offset instead
5016 of duplicate_expr_for_different_base.
5017 (propagate_subacesses_accross_link): Likewise.
5018
5019 2009-09-03 Richard Sandiford <rdsandiford@googlemail.com>
5020
5021 * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
5022 of INSN_P.
5023 (mips16e_collect_argument_saves): Skip debug instructions.
5024 (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
5025 (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
5026 (r10k_insert_cache_barriers): Likewise.
5027 (mips_reorg_process_insns): Likewise.
5028
5029 2009-09-03 Vladimir Makarov <vmakarov@redhat.com>
5030
5031 PR bootstrap/41241
5032 * ira.c (update_equiv_reg): Remove check on class likely spill.
5033
5034 2009-09-03 Jakub Jelinek <jakub@redhat.com>
5035
5036 PR debug/41236
5037 * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
5038 SIGN_EXTEND or ZERO_EXTEND. Don't assume there is a REG inside of
5039 it or SUBREG.
5040
5041 PR debug/41238
5042 * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
5043 the stack slot if it is passed by invisible reference.
5044 * var-tracking.c (vt_add_function_parameters): Handle arguments passed
5045 by invisible reference.
5046
5047 2009-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
5048
5049 * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
5050 * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
5051 * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
5052 0.
5053 * config/bfin/sync.md: New file.
5054 * config/bfin/bfin.md: Include it.
5055 (UNSPEC_ATOMIC): New.
5056 (UNSPEC_ONES): Provide a unique number.
5057
5058 From Jie Zhang <jie.zhang@analog.com>:
5059 * config/bfin/bfin.c (ret_regs): New.
5060 (must_save_fp_p): Don't return true because of frame_pointer_needed.
5061 (must_save_rets_p): New.
5062 (n_regs_saved_by_prologue): Use must_save_rets_p instead of
5063 current_function_is_leaf.
5064 (do_link): Likewise.
5065 (do_unlink): Likewise.
5066 (expand_interrupt_handler_prologue): Use ret_regs array.
5067 (expand_interrupt_handler_epilogue): Use ret_regs array and
5068 pass return register to gen_return_internal.
5069 (bfin_expand_epilogue): Pass return register to
5070 gen_return_internal.
5071 (bfin_expand_call): Explicitly clobber RETS.
5072 * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
5073 * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
5074 call_insn_fdpic, call_value_insn_fdpic, call_symbol,
5075 call_value_symbol, call_insn, call_value_insn): Explicitly clobber
5076 RETS.
5077 (return_internal): Take a reg rtx rather than the register number.
5078
5079 2009-09-03 H.J. Lu <hongjiu.lu@intel.com>
5080
5081 * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
5082 when comparing against estimated_loop_iterations_int return.
5083
5084 2009-09-03 Richard Guenther <rguenther@suse.de>
5085
5086 * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
5087 eh_personality_libfunc.
5088
5089 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
5090
5091 * tree-parloops.c (separate_decls_in_region): Add space.
5092
5093 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
5094
5095 * tree-parloops.c (separate_decls_in_region): Change the condition
5096 checking if there are reductions in the loop.
5097
5098 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
5099
5100 PR tree-optimization/38275
5101 * tree-parloops.c (parallelize_loops): Replace profitability condition
5102 for expected number of iterations.
5103
5104 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
5105
5106 * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
5107 (bootstrap-debug): Explain conditions in which it becomes default.
5108 (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
5109 make it add to it.
5110
5111 2009-09-03 Namhyung Kim <namhyung@gmail.com>
5112
5113 * doc/invoke.texi (Optimize Options): Move
5114 -finline-small-functions to the -O2 list.
5115
5116 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
5117
5118 * toplev.c (process_options): Enable var-tracking-assignments
5119 by default if var-tracking is enabled.
5120
5121 2009-09-02 David Daney <ddaney@caviumnetworks.com>
5122
5123 * cfgbuild.c (find_bb_boundaries): Split blocks containing a
5124 barrier.
5125 * emit-rtl.c (prev_nonnote_insn_bb): New function.
5126 * rtl.h (prev_nonnote_insn_bb): Declare it.
5127
5128 2009-09-03 Diego Novillo <dnovillo@google.com>
5129
5130 * cgraph.c (cgraph_node_for_decl): New.
5131 * cgraph.h (cgraph_node_for_decl): Declare.
5132 * tree.c (host_integerp): Return 0 if T is NULL.
5133
5134 2009-09-03 Diego Novillo <dnovillo@google.com>
5135
5136 * tree.h (struct alias_pair): Move from varasm.c.
5137 (alias_pairs): Likewise.
5138 (TYPE_MAXVAL): Define.
5139 (TYPE_MINVAL): Define.
5140 (iterative_hash_host_wide_int): Declare.
5141 (remove_unreachable_alias_pairs): Declare.
5142 * tree-pass.h (pass_ipa_free_lang_data): Declare.
5143 * diagnostic.c (default_diagnostic_starter): Make extern.
5144 (default_diagnostic_finalizer): Make extern.
5145 * diagnostic.h (default_diagnostic_starter): Declare.
5146 (default_diagnostic_finalizer): Declare.
5147 (default_tree_printer): Declare.
5148 * toplev.c (default_tree_printer): Make extern.
5149
5150 2009-09-03 Richard Guenther <rguenther@suse.de>
5151 Diego Novillo <dnovillo@google.com>
5152
5153 * cgraph.c (cgraph_add_new_function): Remove gimplification.
5154 * cgraphunit.c (cgraph_expand_function): Do not emit
5155 associated thunks from here.
5156 (cgraph_emit_thunks): New.
5157 (cgraph_optimize): Call it.
5158 Return if any IPA pass finds an error.
5159 * varasm.c (finish_aliases_1): Ignore errorneous aliases used
5160 by thunks.
5161
5162 2009-09-03 Simon Baldwin <simonb@google.com>
5163 Rafael Espindola <espindola@google.com>
5164 Richard Guenther <rguenther@suse.de>
5165 Doug Kwan <dougkwan@google.com>
5166 Diego Novillo <dnovillo@google.com>
5167
5168 * tree.c: Include tree-pass.h, langhooks-def.h,
5169 diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
5170 (free_lang_data_in_type): New.
5171 (need_assembler_name_p): New.
5172 (free_lang_data_in_block): New.
5173 (free_lang_data_in_decl): New.
5174 (struct free_lang_data_d): New.
5175 (add_tree_to_fld_list): New.
5176 (find_decls_types_r): New.
5177 (get_eh_types_for_runtime): New.
5178 (find_decls_types_in_eh_region): New.
5179 (find_decls_types_in_node): New.
5180 (find_decls_types_in_var): New.
5181 (free_lang_data_in_cgraph): New.
5182 (free_lang_data): New.
5183 (gate_free_lang_data): New.
5184 (pass_ipa_free_lang_data): New.
5185
5186 2009-09-03 Diego Novillo <dnovillo@google.com>
5187
5188 * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
5189 * langhooks.h (struct lang_hooks): Add field free_lang_data.
5190 (lang_hooks): Remove const qualifier.
5191 * ipa.c (cgraph_remove_unreachable_nodes): Call
5192 remove_unreachable_alias_pairs.
5193 * except.c (add_type_for_runtime): Check if TYPE has
5194 already been converted.
5195 (lookup_type_for_runtime): Likewise.
5196 (check_handled): Handle converted types.
5197 * varasm.c (remove_unreachable_alias_pairs): New.
5198 * gimple.c: Include demangle.h.
5199 (gimple_decl_printable_name): New.
5200 (gimple_fold_obj_type_ref): New.
5201 * gimple.h (gimple_decl_printable_name): Declare.
5202 (gimple_fold_obj_type_ref): Declare.
5203 * passes.c (init_optimization_passes): Add pass
5204 pass_ipa_free_lang_data.
5205 * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
5206 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
5207
5208 2009-09-03 Diego Novillo <dnovillo@google.com>
5209
5210 * c-lang.c (lang_hooks): Remove const qualifier.
5211
5212 2009-09-02 Loren James Rittle <ljrittle@acm.org>
5213
5214 * doc/install.texi (*-*-freebsd*): Update target information.
5215
5216 2009-09-02 Anatoly Sokolov <aesok@post.ru>
5217
5218 * hard-reg-set.h (call_fixed_regs): Remove.
5219 * reginfo.c (call_fixed_regs): Remove.
5220 (init_reg_sets_1): Remove initialization of call_fixed_regs.
5221 (globalize_reg): Don't use call_fixed_regs.
5222 * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
5223 call_fixed_regs.
5224
5225 2009-09-01 Michael Matz <matz@suse.de>
5226
5227 * expr.h (emit_storent_insn, expand_expr_real_1,
5228 expand_expr_real_2): Declare.
5229 * expr.c (emit_storent_insn, expand_expr_real_1,
5230 expand_expr_real_2): Export.
5231 (store_expr): Setting and evaluating dont_return_target is useless.
5232 (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
5233 LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
5234 * except.c (expand_resx_expr): Rename to ...
5235 (expand_resx_stmt): ... this. Rewrite to take gimple statement.
5236 * except.h (expand_resx_stmt): Declare.
5237 * stmt.c: Add include gimple.h
5238 (expand_asm_expr): Rename to ...
5239 (expand_asm_stmt): ... this. Rewrite to take gimple statement.
5240 (expand_case): Rewrite to take gimple statement.
5241 * tree.h (expand_asm_stmt): Declare.
5242 (expand_case): Change prototype.
5243 * Makefile.in (stmt.o): Depend on gimple.h.
5244 * builtins.c (expand_builtin_synchronize): Build gimple asm
5245 statement, not an ASM_EXPR.
5246 * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
5247 gimple_to_tree, release_stmt_tree): Remove.
5248 (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
5249 ggc_free, but hold comparison code and operands separately.
5250 Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
5251 (expand_call_stmt, expand_gimple_stmt_1,
5252 expand_gimple_stmt): New helpers.
5253 (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
5254 release_stmt_tree. Call expand_gimple_stmt instead.
5255 (expand_gimple_basic_block): Ditto.
5256
5257 * calls.c (emit_call_1): Don't look at EH regions here, make
5258 fntree parameter useless.
5259 (expand_call): New local rettype for TREE_TYPE(exp), use it
5260 throughout. Remove local p, use addr instead.
5261 Don't look at EH regions here.
5262
5263 2009-09-02 Vladimir Makarov <vmakarov@redhat.com>
5264
5265 * doc/invoke.texi (-fsched-pressure): Document it.
5266 (-fsched-reg-pressure-heuristic): Remove it.
5267
5268 * reload.c (ira.h): Include.
5269 (find_reloads): Add choosing reload on number of small spilled
5270 classes.
5271
5272 * haifa-sched.c (ira.h): Include.
5273 (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
5274 saved_reg_pressure, curr_reg_live, saved_reg_live,
5275 region_ref_regs): New variables.
5276 (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
5277 initiate_reg_pressure_info, setup_ref_regs,
5278 initiate_bb_reg_pressure_info, save_reg_pressure,
5279 restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
5280 functions.
5281 (setup_insn_reg_pressure_info): New function.
5282 (rank_for_schedule): Add pressure checking and insn issue time.
5283 Remove comparison of insn reg weights.
5284 (ready_sort): Set insn reg pressure info.
5285 (update_register_pressure, setup_insn_max_reg_pressure,
5286 update_reg_and_insn_max_reg_pressure,
5287 sched_setup_bb_reg_pressure_info): New functions.
5288 (schedule_insn): Add code for printing and updating reg pressure info.
5289 (find_set_reg_weight, find_insn_reg_weight): Remove.
5290 (ok_for_early_queue_removal): Do nothing if pressure_only_p.
5291 (debug_ready_list): Print reg pressure info.
5292 (schedule_block): Ditto. Check insn issue time.
5293 (sched_init): Set up sched_pressure_p. Allocate and set up some
5294 reg pressure related info.
5295 (sched_finish): Free some reg pressure related info.
5296 (fix_tick_ready): Make insn always ready if pressure_p.
5297 (init_h_i_d): Don't call find_insn_reg_weight.
5298 (haifa_finish_h_i_d): Free insn reg pressure info.
5299
5300 * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
5301 ira_memory_move_cost, ira_class_hard_regs,
5302 ira_class_hard_regs_num, ira_no_alloc_regs,
5303 ira_available_class_regs, ira_reg_class_cover_size,
5304 ira_reg_class_cover, ira_class_translate): Move to ira.h.
5305
5306 * ira-lives.c (single_reg_class): Check mode to find how many
5307 registers are necessary for operand.
5308 (ira_implicitly_set_insn_hard_regs): New.
5309
5310 * common.opt (fsched-pressure): New options.
5311 (fsched-reg-pressure-heuristic): Remove.
5312
5313 * ira.c (setup_eliminable_regset): Rename to
5314 ira_setup_eliminable_regset. Make it external.
5315 (expand_reg_info): Pass cover class to setup_reg_classes.
5316 (ira): Call resize_reg_info instead of allocate_reg_info.
5317
5318 * sched-deps.c: Include ira.h.
5319 (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
5320 (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
5321 reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
5322 mark_insn_hard_regno_birth, mark_insn_reg_birth,
5323 mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
5324 mark_insn_reg_store, mark_insn_reg_clobber,
5325 setup_insn_reg_pressure_info): New.
5326 (sched_analyze_1): Update implicit_reg_pending_uses.
5327 (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
5328 Use them to create dependencies. Set insn reg uses and pressure
5329 info. Process reg_pending_uses in one place.
5330 (free_deps): Free implicit sets.
5331 (remove_from_deps): Remove implicit sets if necessary. Check
5332 implicit sets when clearing reg_last_in_use.
5333 (init_deps_global): Clear implicit_reg_pending_clobbers and
5334 implicit_reg_pending_uses.
5335
5336 * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
5337 ira_memory_move_cost, ira_class_hard_regs,
5338 ira_class_hard_regs_num, ira_no_alloc_regs,
5339 ira_available_class_regs, ira_reg_class_cover_size,
5340 ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
5341 (ira_setup_eliminable_regset, ira_set_pseudo_classes,
5342 ira_implicitly_set_insn_hard_regs): New prototypes.
5343
5344 * ira-costs.c (pseudo_classes_defined_p, allocno_p,
5345 cost_elements_num): New variables.
5346 (allocno_costs, total_costs): Rename to costs and
5347 total_allocno_costs.
5348 (COSTS_OF_ALLOCNO): Rename to COSTS.
5349 (allocno_pref): Rename to pref.
5350 (allocno_pref_buffer): Rename to pref_buffer.
5351 (common_classes): Rename to regno_cover_class.
5352 (COST_INDEX): New.
5353 (record_reg_classes): Set allocno attributes only if allocno_p.
5354 (record_address_regs): Ditto. Use COST_INDEX instead of ALLOCNO_NUM.
5355 (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
5356 and COSTS_OF_ALLOCNO.
5357 (print_costs): Rename to print_allocno_costs.
5358 (print_pseudo_costs): New.
5359 (process_bb_node_for_costs): Split into 2 functions with new
5360 function process_bb_for_costs. Pass BB to process_bb_for_costs.
5361 (find_allocno_class_costs): Rename to find_costs_and_classes. Add
5362 new parameter dump_file. Use cost_elements_num instead of
5363 ira_allocnos_num. Make one iteration if preferred classes were
5364 already calculated for scheduler. Make 2 versions of code
5365 depending on allocno_p.
5366 (setup_allocno_cover_class_and_costs): Check allocno_p. Use
5367 regno_cover_class and COSTS instead of common_classes and
5368 COSTS_OF_ALLOCNO.
5369 (init_costs, finish_costs): New.
5370 (ira_costs): Set up allocno_p and cost_elements_num. Call
5371 init_costs and finish_costs.
5372 (ira_set_pseudo_classes): New.
5373
5374 * rtl.h (allocate_reg_info): Remove.
5375 (resize_reg_info): Change return type.
5376 (reg_cover_class): New.
5377 (setup_reg_classes): Add new parameter.
5378
5379 * sched-int.h (struct deps_reg): New member implicit_sets.
5380 (sched_pressure_p, sched_regno_cover_class): New external definitions.
5381 (INCREASE_BITS): New macro.
5382 (struct reg_pressure_data, struct reg_use_data): New.
5383 (struct _haifa_insn_data): Remove reg_weight. Add members
5384 reg_pressure, reg_use_list, reg_set_list, and
5385 reg_pressure_excess_cost_change.
5386 (struct deps): New member implicit_sets.
5387 (pressure_p): New variable.
5388 (COVER_CLASS_BITS, INCREASE_BITS): New macros.
5389 (struct reg_pressure_data, struct reg_use_data): New.
5390 (INSN_REG_WEIGHT): Remove.
5391 (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
5392 INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
5393 (sched_init_region_reg_pressure_info,
5394 sched_setup_bb_reg_pressure_info): New prototypes.
5395
5396 * reginfo.c (struct reg_pref): New member coverclass.
5397 (reg_cover_class): New function.
5398 (reginfo_init, pass_reginfo_init): Move after free_reg_info.
5399 (reg_info_size): New variable.
5400 (allocate_reg_info): Make static. Setup reg_info_size.
5401 (resize_reg_info): Use reg_info_size. Return flag of resizing.
5402 (setup_reg_classes): Add a new parameter. Setup cover class too.
5403
5404 * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
5405 the dependencies.
5406
5407 * sched-rgn.c (deps_join): Set up implicit_sets.
5408 (schedule_region): Set up region and basic blocks pressure
5409 relative info.
5410
5411 * passes.c (init_optimization_passes): Move
5412 pass_subregs_of_mode_init before pass_sched.
5413
5414 2009-09-02 Martin Jambor <mjambor@suse.cz>
5415
5416 * tree-sra.c (struct access): New field grp_hint.
5417 (dump_access): Dump grp_hint.
5418 (sort_and_splice_var_accesses): Set grp_hint if a group is read
5419 multiple times.
5420 (analyze_access_subtree): Only scalarize accesses with grp_hint set or
5421 those which have been specifically read and somehow written to.
5422 (propagate_subacesses_accross_link): Set grp_hint of right child and
5423 also possibly of the left child.
5424
5425 2009-09-02 Jakub Jelinek <jakub@redhat.com>
5426
5427 * tree-object-size.c (addr_object_size): Always use object_size_type
5428 0 or 2 when determining the pointer pointed object size.
5429
5430 2009-09-02 Richard Guenther <rguenther@suse.de>
5431
5432 Revert
5433 2009-08-31 Richard Guenther <rguenther@suse.de>
5434
5435 * builtins.c (fold_builtin_memory_op): Use the alias oracle
5436 to query if the memory regions for memmove overlap.
5437 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
5438 asserts on pointers, instead deal with odd trees.
5439 (ptr_derefs_may_alias_p): Likewise.
5440 (refs_may_alias_p_1): Constructor bases also never alias.
5441
5442 2009-08-01 Christian Bruel <christian.bruel@st.com>
5443
5444 Revert:
5445 2009-07-31 Christian Bruel <christian.bruel@st.com>
5446 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
5447
5448 2009-09-01 Alexandre Oliva <aoliva@redhat.com>
5449
5450 * doc/invoke.texi (-fvar-tracking-assignments): New.
5451 (-fvar-tracking-assignments-toggle): New.
5452 (-fdump-final-insns=file): Mark filename as optional.
5453 (--param min-nondebug-insn-uid): New.
5454 (-gdwarf-@{version}): Mention version 4.
5455 * opts.c (common_handle_option): Accept it.
5456 * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
5457 * regrename.c (regrename_optimize): Drop last. Don't count debug
5458 insns as uses. Don't reject change because of debug insn.
5459 (do_replace): Reject DEBUG_INSN as chain starter. Take base_regno
5460 from the chain starter, and check for inexact matches in DEBUG_INSNS.
5461 (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
5462 (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
5463 * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
5464 * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
5465 * doc/gimple.texi (is_gimple_debug): New.
5466 (gimple_debug_bind_p): New.
5467 (is_gimple_call, gimple_assign_cast_p): End sentence with period.
5468 * doc/install.texi (bootstrap-debug): More details.
5469 (bootstrap-debug-big, bootstrap-debug-lean): Document.
5470 (bootstrap-debug-lib): More details.
5471 (bootstrap-debug-ckovw): Update.
5472 (bootstrap-time): New.
5473 * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
5474 (insert_phi_nodes_for): Insert debug stmts.
5475 (rewrite_stmt): Take iterator. Insert debug stmts.
5476 (rewrite_enter_block): Adjust.
5477 (maybe_replace_use_in_debug_stmt): New.
5478 (rewrite_update_stmt): Use it.
5479 (mark_use_interesting): Return early for debug stmts.
5480 * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
5481 stmts before replacing stmt.
5482 (move_computations_stmt): Likewise.
5483 * ira-conflicts.c (add_copies): Skip debug insns.
5484 * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
5485 (regstat_bb_compute_ri): Skip debug insns.
5486 * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
5487 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
5488 check_loop_closed_ssa_stmt): Skip debug stmts.
5489 * tree-tailcall.c (find_tail_calls): Likewise.
5490 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
5491 * tree.h (MAY_HAVE_DEBUG_STMTS): New.
5492 (build_var_debug_value_stat): Declare.
5493 (build_var_debug_value): Define.
5494 (target_for_debug_bind): Declare.
5495 * reload.c (find_equiv_reg): Skip debug insns.
5496 * rtlanal.c (reg_used_between_p): Skip debug insns.
5497 (side_effects_p): Likewise.
5498 (canonicalize_condition): Likewise.
5499 * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
5500 insns never depend on debug insns.
5501 (create_ddg_dep_no_link): Likewise.
5502 (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
5503 Don't add inter-loop dependencies for debug insns.
5504 (build_intra_loop_deps): Likewise.
5505 (create_ddg): Count debug insns.
5506 * ddg.h (struct ddg::num_debug): New.
5507 (num_backargs): Pair up with previous int field.
5508 * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
5509 -fcompare-debug-second.
5510 * final.c (get_attr_length_1): Skip debug insns.
5511 (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
5512 * gcc.c (invoke_as): Call compare-debug-dump-opt.
5513 (driver_self_specs): Map -fdump-final-insns to
5514 -fdump-final-insns=..
5515 (get_local_tick): New.
5516 (compare_debug_dump_opt_spec_function): Test for . argument and
5517 compute output name. Compute temp output spec without flag name.
5518 Compute -frandom-seed.
5519 (OPT): Undef after use.
5520 * cfgloopanal.c (num_loop_insns): Skip debug insns.
5521 (average_num_loop_insns): Likewise.
5522 * params.h (MIN_NONDEBUG_INSN_UID): New.
5523 * gimple.def (GIMPLE_DEBUG): New.
5524 * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
5525 * auto-inc-dec.c (merge_in_block): Skip debug insns.
5526 (merge_in_block): Fix whitespace.
5527 * toplev.c (flag_var_tracking): Update comment.
5528 (flag_var_tracking_assignments): New.
5529 (flag_var_tracking_assignments_toggle): New.
5530 (process_options): Don't open final insns dump file if we're not
5531 going to write to it. Compute defaults for var_tracking.
5532 * df-scan.c (df_insn_rescan_debug_internal): New.
5533 (df_uses_record): Handle debug insns.
5534 * haifa-sched.c (ready): Initialize n_debug.
5535 (contributes_to_priority): Skip debug insns.
5536 (dep_list_size): New.
5537 (priority): Use it.
5538 (rank_for_schedule): Likewise. Schedule debug insns as soon as
5539 they're ready. Disregard previous debug insns to make decisions.
5540 (queue_insn): Never queue debug insns.
5541 (ready_add, ready_remove_first, ready_remove): Count debug insns.
5542 (schedule_insn): Don't reject debug insns because of issue rate.
5543 (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
5544 (queue_to_ready): Skip and discount debug insns.
5545 (choose_ready): Let debug insns through.
5546 (schedule_block): Check boundary debug insns. Discount debug
5547 insns, schedule them early. Adjust whitespace.
5548 (set_priorities): Check for boundary debug insns.
5549 (add_jump_dependencies): Use dep_list_size.
5550 (prev_non_location_insn): New.
5551 (check_cfg): Use it.
5552 * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
5553 stmts.
5554 (remove_unused_ivs): Reset debug stmts.
5555 * modulo-sched.c (const_iteration_count): Skip debug insns.
5556 (res_MII): Discount debug insns.
5557 (loop_single_full_bb_p): Skip debug insns.
5558 (sms_schedule): Likewise.
5559 (sms_schedule_by_order): Likewise.
5560 (ps_has_conflicts): Likewise.
5561 * caller-save.c (refmarker_fn): New.
5562 (save_call_clobbered_regs): Replace regs with saved mem in
5563 debug insns.
5564 (mark_referenced_regs): Take pointer, mark and arg. Adjust.
5565 Call refmarker_fn mark for hardregnos.
5566 (mark_reg_as_referenced): New.
5567 (replace_reg_with_saved_mem): New.
5568 * ipa-pure-const.c (check_stmt): Skip debug stmts.
5569 * cse.c (cse_insn): Canonicalize debug insns. Skip them when
5570 searching back.
5571 (cse_extended_basic_block): Skip debug insns.
5572 (count_reg_usage): Likewise.
5573 (is_dead_reg): New, split out of...
5574 (set_live_p): ... here.
5575 (insn_live_p): Use it for debug insns.
5576 * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
5577 (execute_optimize_stdarg): Likewise.
5578 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
5579 * tree-ssa-propagate.c (substitute_and_fold): Don't regard
5580 changes in debug stmts as changes.
5581 * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
5582 (moveup_expr): Don't move across debug insns. Don't move
5583 debug insn if it would create a bookkeeping block.
5584 (moveup_expr_cached): Don't use cache for debug insns that
5585 are heads of blocks.
5586 (compute_av_set_inside_bb): Skip debug insns.
5587 (sel_rank_for_schedule): Schedule debug insns first. Remove
5588 dead code.
5589 (block_valid_for_bookkeeping_p); Support lax searches.
5590 (create_block_for_bookkeeping): Adjust block numbers when
5591 encountering debug-only blocks.
5592 (find_place_for_bookkeeping): Deal with debug-only blocks.
5593 (generate_bookkeeping_insn): Accept no place to insert.
5594 (remove_temp_moveop_nops): New argument full_tidying.
5595 (prepare_place_to_insert): Deal with debug insns.
5596 (advance_state_on_fence): Debug insns don't start cycles.
5597 (update_boundaries): Take fence as argument. Deal with
5598 debug insns.
5599 (schedule_expr_on_boundary): No full_tidying on debug insns.
5600 (fill_insns): Deal with debug insns.
5601 (track_scheduled_insns_and_blocks): Don't count debug insns.
5602 (need_nop_to_preserve_insn_bb): New, split out of...
5603 (remove_insn_from_stream): ... this.
5604 (fur_orig_expr_not_found): Skip debug insns.
5605 * rtl.def (VALUE): Move up.
5606 (DEBUG_INSN): New.
5607 * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
5608 (nearest_common_dominator_of_uses): Take debug_stmts argument.
5609 Set it if debug stmts are found.
5610 (statement_sink_location): Skip debug stmts. Propagate
5611 moving defs into debug stmts.
5612 * ifcvt.c (first_active_insn): Skip debug insns.
5613 (last_active_insns): Likewise.
5614 (cond_exec_process_insns): Likewise.
5615 (noce_process_if_block): Likewise.
5616 (check_cond_move_block): Likewise.
5617 (cond_move_convert_if_block): Likewise.
5618 (block_jumps_and_fallthru_p): Likewise.
5619 (dead_or_predicable): Likewise.
5620 * dwarf2out.c (debug_str_hash_forced): New.
5621 (find_AT_string): Add comment.
5622 (gen_label_for_indirect_string): New.
5623 (get_debug_string_label): New.
5624 (AT_string_form): Use it.
5625 (mem_loc_descriptor): Handle non-TLS symbols. Handle MINUS , DIV,
5626 MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING. Accept but
5627 discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
5628 several operations that cannot be represented with DWARF opcodes.
5629 (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND. Require
5630 dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
5631 (dwarf2out_var_location): Take during-call mark into account.
5632 (output_indirect_string): Update comment. Output if there are
5633 label and references.
5634 (prune_indirect_string): New.
5635 (prune_unused_types): Call it if debug_str_hash_forced.
5636 More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
5637 (dw_long_long_const): Remove.
5638 (struct dw_val_struct): Change val_long_long type to rtx.
5639 (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
5640 val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
5641 (output_die): Likewise. Use HOST_BITS_PER_WIDE_INT size of each
5642 component instead of HOST_BITS_PER_LONG.
5643 (output_loc_operands): Likewise. For const8* assert
5644 HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
5645 (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
5646 rather than HOST_BITS_PER_LONG is >= 64.
5647 (add_AT_long_long): Remove val_hi and val_lo arguments, add
5648 val_const_double.
5649 (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
5650 HOST_BITS_PER_LONG for dw_val_class_long_long.
5651 (add_const_value_attribute): Adjust add_AT_long_long caller. Don't
5652 handle TLS SYMBOL_REFs. If CONST wraps a constant, tail recurse.
5653 (dwarf_stack_op_name): Handle DW_OP_implicit_value and
5654 DW_OP_stack_value.
5655 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
5656 Handle DW_OP_implicit_value.
5657 (extract_int): Move prototype earlier.
5658 (mem_loc_descriptor): For SUBREG punt if inner
5659 mode size is wider than DWARF2_ADDR_SIZE. Handle SIGN_EXTEND
5660 and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}. Handle
5661 EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
5662 UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
5663 (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
5664 instead of Pmode size.
5665 (loc_descriptor): Add MODE argument. Handle CONST_INT, CONST_DOUBLE,
5666 CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
5667 attempt to handle other expressions. Don't handle TLS SYMBOL_REFs.
5668 (concat_loc_descriptor, concatn_loc_descriptor,
5669 loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
5670 (add_location_or_const_value_attribute): Likewise. For single
5671 location loc_lists attempt to use add_const_value_attribute
5672 for constant decls. Add DW_AT_const_value even if
5673 NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
5674 in its expression.
5675 * cfgbuild.c (inside_basic_block_p): Handle debug insns.
5676 (control_flow_insn_p): Likewise.
5677 * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
5678 (separate_decls_in_region_debug_bind): New.
5679 (separate_decls_in_region): Process debug bind stmts afterwards.
5680 * recog.c (verify_changes): Handle debug insns.
5681 (extract_insn): Likewise.
5682 (peephole2_optimize): Skip debug insns.
5683 * dse.c (scan_insn): Skip debug insns.
5684 * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
5685 Pass it on.
5686 (setup_id_for_insn): Handle debug insns.
5687 (maybe_tidy_empty_bb): Adjust whitespace.
5688 (tidy_control_flow): Skip debug insns.
5689 (sel_remove_insn): Adjust for debug insns.
5690 (sel_estimate_number_of_insns): Skip debug insns.
5691 (create_insn_rtx_from_pattern): Handle debug insns.
5692 (create_copy_of_insn_rtx): Likewise.
5693 * sel-sched-.h (sel_bb_end): Declare.
5694 (sel_bb_empty_or_nop_p): New.
5695 (get_all_loop_exits): Use it.
5696 (_eligible_successor_edge_p): Likewise.
5697 (return_nop_to_pool): Adjust.
5698 * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
5699 * ira-lives.c (process_bb_node_lives): Skip debug insns.
5700 * gimple-pretty-print.c (dump_gimple_debug): New.
5701 (dump_gimple_stmt): Use it.
5702 (dump_bb_header): Skip gimple debug stmts.
5703 * regmove.c (optimize_reg_copy_1): Discount debug insns.
5704 (fixup_match_2): Likewise.
5705 (regmove_backward_pass): Likewise. Simplify combined
5706 replacement. Handle debug insns.
5707 * function.c (instantiate_virtual_regs): Handle debug insns.
5708 * function.h (struct emit_status): Add x_cur_debug_insn_uid.
5709 * print-rtl.h: Include cselib.h.
5710 (print_rtx): Print VALUEs. Split out and recurse for VAR_LOCATIONs.
5711 * df.h (df_inns_rescan_debug_internal): Declare.
5712 * gcse.c (alloc_hash_table): Estimate n_insns.
5713 (cprop_insn): Don't regard debug insns as changes.
5714 (bypass_conditional_jumps): Skip debug insns.
5715 (one_pre_gcse_pass): Adjust.
5716 (one_code_hoisting_pass): Likewise.
5717 (compute_ld_motion_mems): Skip debug insns.
5718 (one_cprop_pass): Adjust.
5719 * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
5720 (if_convertible_stmt_p): Handle debug stmts.
5721 * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
5722 * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
5723 * ira-build.c (create_bb_allocnos): Skip debug insns.
5724 * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
5725 (has_single_use): Likewise.
5726 (single_imm_use): Likewise.
5727 (num_imm_uses): Likewise.
5728 * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
5729 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
5730 (create_outofssa_var_map): Likewise.
5731 * lower-subreg.c (adjust_decomposed_uses): New.
5732 (resolve_debug): New.
5733 (decompose_multiword_subregs): Use it.
5734 * tree-dfa.c (find_referenced_vars): Skip debug stmts.
5735 * emit-rtl.c: Include params.h.
5736 (cur_debug_insn_uid): Define.
5737 (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
5738 (copy_rtx_if_shared_1): Handle debug insns.
5739 (reset_used_flags): Likewise.
5740 (set_used_flags): LIkewise.
5741 (get_max_insn_count): New.
5742 (next_nondebug_insn): New.
5743 (prev_nondebug_insn): New.
5744 (make_debug_insn_raw): New.
5745 (emit_insn_before_noloc): Handle debug insns.
5746 (emit_jump_insn_before_noloc): Likewise.
5747 (emit_call_insn_before_noloc): Likewise.
5748 (emit_debug_insn_before_noloc): New.
5749 (emit_insn_after_noloc): Handle debug insns.
5750 (emit_jump_insn_after_noloc): Likewise.
5751 (emit_call_insn_after_noloc): Likewise.
5752 (emit_debug_insn_after_noloc): Likewise.
5753 (emit_insn_after): Take loc from earlier non-debug insn.
5754 (emit_jump_insn_after): Likewise.
5755 (emit_call_insn_after): Likewise.
5756 (emit_debug_insn_after_setloc): New.
5757 (emit_debug_insn_after): New.
5758 (emit_insn_before): Take loc from later non-debug insn.
5759 (emit_jump_insn_before): Likewise.
5760 (emit_call_insn_before): Likewise.
5761 (emit_debug_insn_before_setloc): New.
5762 (emit_debug_insn_before): New.
5763 (emit_insn): Handle debug insns.
5764 (emit_debug_insn): New.
5765 (emit_jump_insn): Handle debug insns.
5766 (emit_call_insn): Likewise.
5767 (emit): Likewise.
5768 (init_emit): Take min-nondebug-insn-uid into account.
5769 Initialize cur_debug_insn_uid.
5770 (emit_copy_of_insn_after): Handle debug insns.
5771 * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
5772 location of single rhs in place.
5773 (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
5774 (floor_sdiv_adjust): New.
5775 (cell_sdiv_adjust): New.
5776 (cell_udiv_adjust): New.
5777 (round_sdiv_adjust): New.
5778 (round_udiv_adjust): New.
5779 (wrap_constant): Moved from cselib.
5780 (unwrap_constant): New.
5781 (expand_debug_expr): New.
5782 (expand_debug_locations): New.
5783 (expand_gimple_basic_block): Drop hiding redeclaration. Expand
5784 debug bind stmts.
5785 (gimple_expand_cfg): Expand debug locations.
5786 * cselib.c: Include tree-pass.h.
5787 (struct expand_value_data): New.
5788 (cselib_record_sets_hook): New.
5789 (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
5790 (cselib_clear_table): Move, and implemnet in terms of...
5791 (cselib_reset_table_with_next_value): ... this.
5792 (cselib_get_next_unknown_value): New.
5793 (discard_useless_locs): Don't discard preserved values.
5794 (cselib_preserve_value): New.
5795 (cselib_preserved_value_p): New.
5796 (cselib_preserve_definitely): New.
5797 (cselib_clear_preserve): New.
5798 (cselib_preserve_only_values): New.
5799 (new_cselib_val): Take rtx argument. Dump it in details.
5800 (cselib_lookup_mem): Adjust.
5801 (expand_loc): Take regs_active in struct. Adjust. Silence
5802 dumps unless details are requested.
5803 (cselib_expand_value_rtx_cb): New.
5804 (cselib_expand_value_rtx): Rename and reimplment in terms of...
5805 (cselib_expand_value_rtx_1): ... this. Adjust. Silence dumps
5806 without details. Copy more subregs. Try to resolve values
5807 using a callback. Wrap constants.
5808 (cselib_subst_to_values): Adjust.
5809 (cselib_log_lookup): New.
5810 (cselib_lookup): Call it.
5811 (cselib_invalidate_regno): Don't count preserved values as useless.
5812 (cselib_invalidate_mem): Likewise.
5813 (cselib_record_set): Likewise.
5814 (struct set): Renamed to cselib_set, moved to cselib.h.
5815 (cselib_record_sets): Adjust. Call hook.
5816 (cselib_process_insn): Reset table when it would be cleared.
5817 (dump_cselib_val): New.
5818 (dump_cselib_table): New.
5819 * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
5820 (remove_forwarder_block): Support moving debug stmts.
5821 * cselib.h (cselib_record_sets_hook): Declare.
5822 (cselib_expand_callback): New type.
5823 (cselib_expand_value_rtx_cb): Declare.
5824 (cselib_reset_table_with_next_value): Declare.
5825 (cselib_get_next_unknown_value): Declare.
5826 (cselib_preserve_value): Declare.
5827 (cselib_preserved_value_p): Declare.
5828 (cselib_preserve_only_values): Declare.
5829 (dump_cselib_table): Declare.
5830 * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
5831 (try_crossjump_to_edge): Likewise.
5832 (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
5833 dominated blocks when debug stmts are present.
5834 * simplify-rtx.c (delegitimize_mem_from_attrs): New.
5835 * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
5836 (set_var_live_on_entry): Likewise.
5837 * loop-invariant.c (find_invariants_bb): Skip debug insns.
5838 * cfglayout.c (curr_location, last_location): Make static.
5839 (set_curr_insn_source_location): Don't avoid bouncing.
5840 (get_curr_insn_source_location): New.
5841 (get_curr_insn_block): New.
5842 (duplicate_insn_chain): Handle debug insns.
5843 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
5844 into debug stmts.
5845 * common.opt (fcompare-debug): Move to sort order.
5846 (fdump-unnumbered-links): Likewise.
5847 (fvar-tracking-assignments): New.
5848 (fvar-tracking-assignments-toggle): New.
5849 * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
5850 because of debug stmts.
5851 (mark_stmt_if_obviously_necessary): Mark debug stmts.
5852 (eliminate_unnecessary_stmts): Walk dominated blocks before
5853 dominators.
5854 * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
5855 * ira.c (memref_used_between_p): Skip debug insns.
5856 (update_equiv_regs): Likewise.
5857 * sched-deps.c (sd_lists_size): Accept empty list.
5858 (sd_init_insn): Mark debug insns.
5859 (sd_finish_insn): Unmark them.
5860 (sd_add_dep): Reject non-debug deps on debug insns.
5861 (fixup_sched_groups): Give debug insns group treatment.
5862 Skip debug insns.
5863 (sched_analyze_reg): Don't mark debug insns for sched before call.
5864 (sched_analyze_2): Handle debug insns.
5865 (sched_analyze_insn): Compute next non-debug insn. Handle debug
5866 insns.
5867 (deps_analyze_insn): Handle debug insns.
5868 (deps_start_bb): Skip debug insns.
5869 (init_deps): Initialize last_debug_insn.
5870 * tree-ssa.c (target_for_debug_bind): New.
5871 (find_released_ssa_name): New.
5872 (propagate_var_def_into_debug_stmts): New.
5873 (propagate_defs_into_debug_stmts): New.
5874 (verify_ssa): Skip debug bind stmts without values.
5875 (warn_uninialized_vars): Skip debug stmts.
5876 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
5877 * rtl.c (rtx_equal_p_cb): Handle VALUEs.
5878 (rtx_equal_p): Likewise.
5879 * ira-costs.c (scan_one_insn): Skip debug insns.
5880 (process_bb_node_for_hard_reg_moves): Likewise.
5881 * rtl.h (DEBUG_INSN_P): New.
5882 (NONDEBUG_INSN_P): New.
5883 (MAY_HAVE_DEBUG_INSNS): New.
5884 (INSN_P): Accept debug insns.
5885 (RTX_FRAME_RELATED_P): Likewise.
5886 (INSN_DELETED_P): Likewise
5887 (PAT_VAR_LOCATION_DECL): New.
5888 (PAT_VAR_LOCATION_LOC): New.
5889 (PAT_VAR_OCATION_STATUS): New.
5890 (NOTE_VAR_LOCATION_DECL): Reimplement.
5891 (NOTE_VAR_LOCATION_LOC): Likewise.
5892 (NOTE_VAR_LOCATION_STATUS): Likewise.
5893 (INSN_VAR_LOCATION): New.
5894 (INSN_VAR_LOCATION_DECL): New.
5895 (INSN_VAR_LOCATION_LOC): New.
5896 (INSN_VAR_LOCATION_STATUS): New.
5897 (gen_rtx_UNKNOWN_VAR_LOC): New.
5898 (VAR_LOC_UNKNOWN_P): New.
5899 (NOTE_DURING_CALL_P): New.
5900 (SCHED_GROUP_P): Accept debug insns.
5901 (emit_debug_insn_before): Declare.
5902 (emit_debug_insn_before_noloc): Declare.
5903 (emit_debug_insn_beore_setloc): Declare.
5904 (emit_debug_insn_after): Declare.
5905 (emit_debug_insn_after_noloc): Declare.
5906 (emit_debug_insn_after_setloc): Declare.
5907 (emit_debug_insn): Declare.
5908 (make_debug_insn_raw): Declare.
5909 (prev_nondebug_insn): Declare.
5910 (next_nondebug_insn): Declare.
5911 (delegitimize_mem_from_attrs): Declare.
5912 (get_max_insn_count): Declare.
5913 (wrap_constant): Declare.
5914 (unwrap_constant): Declare.
5915 (get_curr_insn_source_location): Declare.
5916 (get_curr_insn_block): Declare.
5917 * tree-inline.c (insert_debug_decl_map): New.
5918 (processing_debug_stmt): New.
5919 (remap_decl): Don't create new mappings in debug stmts.
5920 (remap_gimple_op_r): Don't add references in debug stmts.
5921 (copy_tree_body_r): Likewise.
5922 (remap_gimple_stmt): Handle debug bind stmts.
5923 (copy_bb): Skip debug stmts.
5924 (copy_edges_for_bb): Likewise.
5925 (copy_debug_stmt): New.
5926 (copy_debug_stmts): New.
5927 (copy_body): Copy debug stmts at the end.
5928 (insert_init_debug_bind): New.
5929 (insert_init_stmt): Take id. Skip and emit debug stmts.
5930 (setup_one_parameter): Remap variable earlier, register debug mapping.
5931 (estimate_num_insns): Skip debug stmts.
5932 (expand_call_inline): Preserve debug_map.
5933 (optimize_inline_calls): Check for no debug_stmts left-overs.
5934 (unsave_expr_now): Preserve debug_map.
5935 (copy_gimple_seq_and_replace_locals): Likewise.
5936 (tree_function_versioning): Check for no debug_stmts left-overs.
5937 Init and destroy debug_map as needed. Split edges unconditionally.
5938 (build_duplicate_type): Init and destroy debug_map as needed.
5939 * tree-inline.h: Include gimple.h instead of pointer-set.h.
5940 (struct copy_body_data): Add debug_stmts and debug_map.
5941 * sched-int.h (struct ready_list): Add n_debug.
5942 (struct deps): Add last_debug_insn.
5943 (DEBUG_INSN_SCHED_P): New.
5944 (BOUNDARY_DEBUG_INSN_P): New.
5945 (SCHEDULE_DEBUG_INSN_P): New.
5946 (sd_iterator_cond): Accept empty list.
5947 * combine.c (create_log_links): Skip debug insns.
5948 (combine_instructions): Likewise.
5949 (cleanup_auto_inc_dec): New. From Jakub Jelinek: Make sure the
5950 return value is always unshared.
5951 (struct rtx_subst_pair): New.
5952 (auto_adjust_pair): New.
5953 (propagate_for_debug_subst): New.
5954 (propagate_for_debug): New.
5955 (try_combine): Skip debug insns. Propagate removed defs into
5956 debug insns.
5957 (next_nonnote_nondebug_insn): New.
5958 (distribute_notes): Use it. Skip debug insns.
5959 (distribute_links): Skip debug insns.
5960 * tree-outof-ssa.c (set_location_for_edge): Likewise.
5961 * resource.c (mark_target_live_regs): Likewise.
5962 * var-tracking.c: Include cselib.h and target.h.
5963 (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
5964 MO_VAL_SET.
5965 (micro_operation_type_name): New.
5966 (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
5967 (struct micro_operation_def): Update comments.
5968 (decl_or_value): New type. Use instead of decls.
5969 (struct emit_note_data_def): Add vars.
5970 (struct attrs_def): Use decl_or_value.
5971 (struct variable_tracking_info_def): Add permp, flooded.
5972 (struct location_chain_def): Update comment.
5973 (struct variable_part_def): Use decl_or_value.
5974 (struct variable_def): Make var_part a variable length array.
5975 (valvar_pool): New.
5976 (scratch_regs): New.
5977 (cselib_hook_called): New.
5978 (dv_is_decl_p): New.
5979 (dv_is_value_p): New.
5980 (dv_as_decl): New.
5981 (dv_as_value): New.
5982 (dv_as_opaque): New.
5983 (dv_onepart_p): New.
5984 (dv_pool): New.
5985 (IS_DECL_CODE): New.
5986 (check_value_is_not_decl): New.
5987 (dv_from_decl): New.
5988 (dv_from_value): New.
5989 (dv_htab_hash): New.
5990 (variable_htab_hash): Use it.
5991 (variable_htab_eq): Support values.
5992 (variable_htab_free): Free from the right pool.
5993 (attrs_list_member, attrs_list_insert): Use decl_or_value.
5994 (attrs_list_union): Adjust.
5995 (attrs_list_mpdv_union): New.
5996 (tie_break_pointers): New.
5997 (canon_value_cmp): New.
5998 (unshare_variable): Return possibly-modified slot.
5999 (vars_copy_1): Adjust.
6000 (var_reg_decl_set): Adjust. Split out of...
6001 (var_reg_set): ... this.
6002 (get_init_value): Adjust.
6003 (var_reg_delete_and_set): Adjust.
6004 (var_reg_delete): Adjust.
6005 (var_regno_delete): Adjust.
6006 (var_mem_decl_set): Split out of...
6007 (var_mem_set): ... this.
6008 (var_mem_delete_and_set): Adjust.
6009 (var_mem_delete): Adjust.
6010 (val_store): New.
6011 (val_reset): New.
6012 (val_resolve): New.
6013 (variable_union): Adjust. Speed up merge of 1-part vars.
6014 (variable_canonicalize): Use unshared slot.
6015 (VALUED_RECURSED_INTO): New.
6016 (find_loc_in_1pdv): New.
6017 (struct dfset_merge): New.
6018 (insert_into_intersection): New.
6019 (intersect_loc_chains): New.
6020 (loc_cmp): New.
6021 (canonicalize_loc_order_check): New.
6022 (canonicalize_values_mark): New.
6023 (canonicalize_values_star): New.
6024 (variable_merge_over_cur): New.
6025 (variable_merge_over_src): New.
6026 (dataflow_set_merge): New.
6027 (dataflow_set_equiv_regs): New.
6028 (remove_duplicate_values): New.
6029 (struct dfset_post_merge): New.
6030 (variable_post_merge_new_vals): New.
6031 (variable_post_merge_perm_vals): New.
6032 (dataflow_post_merge_adjust): New.
6033 (find_mem_expr_in_1pdv): New.
6034 (dataflow_set_preserve_mem_locs): New.
6035 (dataflow_set_remove_mem_locs): New.
6036 (dataflow_set_clear_at_call): New.
6037 (onepart_variable_different_p): New.
6038 (variable_different_p): Use it.
6039 (dataflow_set_different_1): Adjust. Make detailed dump more verbose.
6040 (track_expr_p): Add need_rtl parameter. Don't generate rtl
6041 if not needed.
6042 (track_loc_p): Pass it true.
6043 (struct count_use_info): New.
6044 (find_use_val): New.
6045 (replace_expr_with_values): New.
6046 (log_op_type): New.
6047 (use_type): New, partially split out of...
6048 (count_uses): ... this. Count new micro-ops.
6049 (count_uses_1): Adjust.
6050 (count_stores): Adjust.
6051 (count_with_sets): New.
6052 (VAL_NEEDS_RESOLUTION): New.
6053 (VAL_HOLDS_TRACK_EXPR): New.
6054 (VAL_EXPR_IS_COPIED): New.
6055 (VAL_EXPR_IS_CLOBBERED): New.
6056 (add_uses): Adjust. Generate new micro-ops.
6057 (add_uses_1): Adjust.
6058 (add_stores): Generate new micro-ops.
6059 (add_with_sets): New.
6060 (find_src_status): Adjust.
6061 (find_src_set_src): Adjust.
6062 (compute_bb_dataflow): Use dataflow_set_clear_at_call.
6063 Handle new micro-ops. Canonicalize value equivalances.
6064 (vt_find_locations): Compute total size of hash tables for
6065 dumping. Perform merge for var-tracking-assignments. Don't
6066 disregard single-block loops.
6067 (dump_attrs_list): Handle decl_or_value.
6068 (dump_variable): Take variable. Deal with decl_or_value.
6069 (dump_variable_slot): New.
6070 (dump_vars): Use it.
6071 (dump_dataflow_sets): Adjust.
6072 (set_slot_part): New, extended to support one-part variables
6073 after splitting out of...
6074 (set_variable_part): ... this.
6075 (clobber_slot_part): New, split out of...
6076 (clobber_variable_part): ... this.
6077 (delete_slot_part): New, split out of...
6078 (delete_variable_part): .... this.
6079 (check_wrap_constant): New.
6080 (vt_expand_loc_callback): New.
6081 (vt_expand_loc): New.
6082 (emit_note_insn_var_location): Adjust. Handle values. Handle
6083 EMIT_NOTE_AFTER_CALL_INSN.
6084 (emit_notes_for_differences_1): Adjust. Handle values.
6085 (emit_notes_for_differences_2): Likewise.
6086 (emit_notes_for_differences): Adjust.
6087 (emit_notes_in_bb): Take pointer to set. Emit AFTER_CALL_INSN notes.
6088 Adjust. Handle new micro-ops.
6089 (vt_add_function_parameters): Adjust. Create and bind values.
6090 (vt_initialize): Adjust. Initialize scratch_regs and
6091 valvar_pool, flooded and perm.. Initialize and use cselib. Log
6092 operations. Move some code to count_with_sets and add_with_sets.
6093 (delete_debug_insns): New.
6094 (vt_debug_insns_local): New.
6095 (vt_finalize): Release permp, valvar_pool, scratch_regs. Finish
6096 cselib.
6097 (var_tracking_main): If var-tracking-assignments is enabled
6098 but var-tracking isn't, delete debug insns and leave. Likewise
6099 if we exceed limits or fail the stack adjustments tests, and
6100 after all var-tracking processing.
6101 More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
6102 (dataflow_set): Add traversed_vars.
6103 (value_chain, const_value_chain): New typedefs.
6104 (value_chain_pool, value_chains): New variables.
6105 (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
6106 add_value_chains, add_cselib_value_chains, remove_value_chain,
6107 remove_value_chains, remove_cselib_value_chains): New functions.
6108 (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
6109 shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
6110 static inlines.
6111 (shared_hash_find_slot_unshare, shared_hash_find_slot,
6112 shared_hash_find_slot_noinsert, shared_hash_find): Update.
6113 (dst_can_be_shared): New variable.
6114 (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
6115 Clear dst_can_be_shared. If set->traversed_vars is non-NULL and
6116 different from set->vars, look up slot again instead of using the
6117 passed in slot.
6118 (dataflow_set_init): Initialize traversed_vars.
6119 (variable_union): Use shared_hash_*. Use initially NO_INSERT
6120 lookup if set->vars is shared. Don't keep slot cleared before
6121 calling unshare_variable. Unshare set->vars if needed. Adjust
6122 unshare_variable callers. Clear dst_can_be_shared if needed.
6123 Even ->refcount == 1 vars must be unshared if set->vars is shared
6124 and var needs to be modified.
6125 (dataflow_set_union): Set traversed_vars during canonicalization.
6126 (VALUE_CHANGED, DECL_CHANGED): Define.
6127 (set_dv_changed, dv_changed_p): New static inlines.
6128 (track_expr_p): Clear DECL_CHANGED.
6129 (dump_dataflow_sets): Set it.
6130 (variable_was_changed): Call set_dv_changed.
6131 (emit_note_insn_var_location): Likewise.
6132 (changed_variables_stack): New variable.
6133 (check_changed_vars_1, check_changed_vars_2): New functions.
6134 (emit_notes_for_changes): Do nothing if changed_variables is
6135 empty. Traverse changed_variables with check_changed_vars_1,
6136 call check_changed_vars_2 on each changed_variables_stack entry.
6137 (emit_notes_in_bb): Add SET argument. Just clear it at the
6138 beginning, use it instead of local &set, don't destroy it at the end.
6139 (vt_emit_notes): Call dataflow_set_clear early on all
6140 VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
6141 computed set, dataflow_set_clear also VTI(bb)->in when we are
6142 done with the basic block. Initialize changed_variables_stack,
6143 free it afterwards. If ENABLE_CHECKING verify that after noting
6144 differences to an empty set value_chains hash table is empty.
6145 (vt_initialize): Initialize value_chains and value_chain_pool.
6146 (vt_finalize): Delete value_chains htab, free value_chain_pool.
6147 (variable_tracking_main): Call dump_dataflow_sets before calling
6148 vt_emit_notes, not after it.
6149 * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
6150 (propagate_var_def_into_debug_stmts): Declare.
6151 * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
6152 (df_set_note): Reject debug insns.
6153 (df_whole_mw_reg_dead_p): Take added_notes_p argument. Don't
6154 add notes to debug insns.
6155 (df_note_bb_compute): Adjust. Likewise.
6156 (df_simulate_uses): Skip debug insns.
6157 (df_simulate_initialize_backwards): Likewise.
6158 * reg-stack.c (subst_stack_regs_in_debug_insn): New.
6159 (subst_stack_regs_pat): Reject debug insns.
6160 (convert_regs_1): Handle debug insns.
6161 * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
6162 (print-rtl.o): Depend on cselib.h.
6163 (cselib.o): Depend on TREE_PASS_H.
6164 (var-tracking.o): Depend on cselib.h and TARGET_H.
6165 * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
6166 (init_ready_list): Skip boundary debug insns.
6167 (add_branch_dependences): Skip debug insns.
6168 (free_block_dependencies): Check for blocks with only debug insns.
6169 (compute_priorities): Likewise.
6170 * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
6171 (gimple_build_with_ops_stat): Take subcode as unsigned. Adjust
6172 all callers.
6173 (gimple_build_debug_bind_stat): New.
6174 (empty_body_p): Skip debug stmts.
6175 (gimple_has_side_effects): Likewise.
6176 (gimple_rhs_has_side_effects): Likewise.
6177 * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
6178 (gimple_build_debug_bind_stat): Declare.
6179 (gimple_build_debug_bind): Define.
6180 (is_gimple_debug): New.
6181 (gimple_debug_bind_p): New.
6182 (gimple_debug_bind_get_var): New.
6183 (gimple_debug_bind_get_value): New.
6184 (gimple_debug_bind_get_value_ptr): New.
6185 (gimple_debug_bind_set_var): New.
6186 (gimple_debug_bind_set_value): New.
6187 (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
6188 (gimple_debug_bind_reset_value): New.
6189 (gimple_debug_bind_has_value_p): New.
6190 (gsi_next_nondebug): New.
6191 (gsi_prev_nondebug): New.
6192 (gsi_start_nondebug_bb): New.
6193 (gsi_last_nondebug_bb): New.
6194 * sched-vis.c (print_pattern): Handle VAR_LOCATION.
6195 (print_insn): Handle DEBUG_INSN.
6196 * tree-cfg.c (remove_bb): Walk stmts backwards. Let loc
6197 of first insn prevail.
6198 (first_stmt): Skip debug stmts.
6199 (first_non_label_stmt): Likewise.
6200 (last_stmt): Likewise.
6201 (has_zero_uses_1): New.
6202 (single_imm_use_1): New.
6203 (verify_gimple_debug): New.
6204 (verify_types_in_gimple_stmt): Handle debug stmts.
6205 (verify_stmt): Likewise.
6206 (debug_loop_num): Skip debug stmts.
6207 (remove_edge_and_dominated_blocks): Remove dominators last.
6208 * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
6209 (linearize_expr): Likewise.
6210 * config/i386/i386.c (ix86_delegitimize_address): Call
6211 default implementation.
6212 * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
6213 (group_barrier_needed): Skip debug insns.
6214 (emit_insn_group_barriers): Likewise.
6215 (emit_all_insn_group_barriers): Likewise.
6216 (ia64_variable_issue): Handle debug insns.
6217 (ia64_dfa_new_cycle): Likewise.
6218 (final_emit_insn_group_barriers): Skip debug insns.
6219 (ia64_dwarf2out_def_steady_cfa): Take frame argument. Don't
6220 def cfa without frame.
6221 (process_set): Likewise.
6222 (process_for_unwind_directive): Pass frame on.
6223 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
6224 (rs6000_delegitimize_address): New.
6225 (rs6000_debug_adjust_cost): Handle debug insns.
6226 (is_microcoded_insn): Likewise.
6227 (is_cracked_insn): Likewise.
6228 (is_nonpipeline_insn): Likewise.
6229 (insn_must_be_first_in_group): Likewise.
6230 (insn_must_be_last_in_group): Likewise.
6231 (force_new_group): Likewise.
6232 * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
6233 contains only debug insns.
6234 (rtl_merge_blocks): Skip debug insns.
6235 (purge_dead_edges): Likewise.
6236 (rtl_block_ends_with_call_p): Skip debug insns.
6237 * dce.c (deletable_insn_p): Handle VAR_LOCATION.
6238 (mark_reg_dependencies): Skip debug insns.
6239 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
6240 * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
6241 * tree-ssa-threadedge.c
6242 (record_temporary_equivalences_from_stmts): Skip debug stmts.
6243 * regcprop.c (replace_oldest_value_addr): Skip debug insns.
6244 (replace_oldest_value_mem): Use ALL_REGS for debug insns.
6245 (copyprop_hardreg_forward_1): Handle debug insns.
6246 * reload1.c (reload): Skip debug insns. Replace unassigned
6247 pseudos in debug insns with their equivalences.
6248 (eliminate_regs_in_insn): Skip debug insns.
6249 (emit_input_reload_insns): Skip debug insns at first, adjust
6250 them later.
6251 * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
6252 (get_indirect_ref_operands): Pass opf_no_vops on.
6253 (get_expr_operands): Likewise. Skip debug stmts.
6254 (parse_ssa_operands): Scan debug insns with opf_no_vops.
6255
6256 2009-09-01 Richard Henderson <rth@redhat.com>
6257
6258 * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
6259 stmt_ends_pp_p statements at least once.
6260 * tree-vrp.c (vrp_initialize): Likewise.
6261 (vrp_visit_stmt): Be prepared for non-interesting stmts.
6262
6263 2009-09-01 Dodji Seketeli <dodji@redhat.com>
6264
6265 PR bootstrap/41205
6266 Fix AIX bootstrap after PR debug/30161
6267 * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
6268 that is a GNU extension.
6269 (tmpl_value_parm_die_table): Move the definition of this global
6270 outside #ifdef DWARF2_DEBUGGING_INFO region.
6271
6272 2009-09-01 Richard Guenther <rguenther@suse.de>
6273
6274 * tree.c (tree_expr_size): New function.
6275 * tree.h (tree_expr_size): Declare.
6276 * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
6277 * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
6278 * langhooks.c (lhd_expr_size): Remove.
6279 * langhooks.h (struct lang_hooks): Remove expr_size.
6280 * explow.c (expr_size): Use tree_expr_size.
6281 (int_expr_size): Likewise.
6282 * langhooks-def.h (lhd_expr_size): Remove.
6283 (LANG_HOOKS_EXPR_SIZE): Likewise.
6284 (LANG_HOOKS_INITIALIZER): Adjust.
6285
6286 2009-09-01 Richard Guenther <rguenther@suse.de>
6287
6288 * tree-flow.h (mark_addressable): Move declaration ...
6289 * tree.h (mark_addressable): ... here.
6290 * stmt.c (expand_asm_operands): Use mark_addressable, not
6291 lang_hooks.mark_addressable.
6292 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
6293 LANG_HOOKS_MARK_ADDRESSABLE.
6294 * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
6295 * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
6296
6297 2009-08-31 Chris Demetriou <cgd@google.com>
6298
6299 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
6300 vectorize if not TARGET_SSE2.
6301
6302 2009-08-31 DJ Delorie <dj@redhat.com>
6303
6304 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
6305 registers if no coprocessor is enabled.
6306
6307 2009-08-31 Dodji Seketeli <dodji@redhat.com>
6308
6309 PR debug/30161
6310 * cgraph.h (cgraph_get_node): Declare ...
6311 * cgraph.c (cgraph_get_node): ... new function.
6312 * dwarf2out.c (gen_generic_params_dies,
6313 generic_parameter_die, tree_add_const_value_attribute_for_decl,
6314 make_ith_pack_parameter_name,
6315 append_entry_to_tmpl_value_parm_die_table,
6316 gen_remaining_tmpl_value_param_die_attribute): New functions.
6317 (gen_subprogram_die): Generate debug info for template parameters
6318 if debug info level is higher than DINFO_LEVEL_TERSE.
6319 Use tree_add_const_value_attribute_for_decl instead of
6320 tree_add_const_value_attribute.
6321 (gen_const_die): Use tree_add_const_value_attribute_for_decl
6322 instead of tree_add_const_value_attribute.
6323 (gen_struct_or_union_type_die): Generate debug
6324 info for template parameters if debug info level is higher than
6325 DINFO_LEVEL_TERSE.
6326 (tree_add_const_value_attribute): Handle integral and pointer
6327 constants. Update comment.
6328 (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
6329 (dwarf_attr_name): Support DW_AT_GNU_template_name.
6330 (reference_to_unused): Fix thinko. Remove redundant predicates from
6331 tests.
6332 (tree_add_const_value_attribute): Make this work for constant
6333 expressions only.
6334 tree_add_const_value_attribute_for_decl is to be used for variable
6335 DECLs now.
6336 (add_location_or_const_value_attribute): Use
6337 tree_add_const_value_attribute_for_decl now.
6338 (dwarf2out_finish): Emit the DW_AT_const_value attribute of
6339 DW_TAG_template_value_param DIEs after function DIEs have been
6340 emitted.
6341 * langhooks.h (lang_hooks_for_types): Add
6342 get_argument_pack_elems.
6343 (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
6344 (lang_hooks): Added get_innermost_generic_parms,
6345 get_innermost_generic_args.
6346 * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
6347 LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
6348 LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
6349 LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
6350
6351 2009-08-31 DJ Delorie <dj@redhat.com>
6352
6353 * config/mep/mep.c (machine_function): Add frame_locked flag. Set
6354 it once we start generating the prologue or epilogue.
6355 (mep_call_saves_register): If the frame is locked, re-use
6356 cached values.
6357 (mep_assign_save_slots): New, broken out from mep_expand_prologue.
6358 (mep_expand_prologue): Call it.
6359 (mep_expand_epilogue): Likewise.
6360 (mep_start_function): Use the same logic as mep_expand_prologue.
6361 (mep_pass_by_reference): Make logic more readable.
6362 (mep_return_in_memory): Zero-sized objects are passed in memory.
6363 (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
6364
6365 2009-08-31 Richard Guenther <rguenther@suse.de>
6366
6367 * builtins.c (fold_builtin_memory_op): Use the alias oracle
6368 to query if the memory regions for memmove overlap.
6369 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
6370 asserts on pointers, instead deal with odd trees.
6371 (ptr_derefs_may_alias_p): Likewise.
6372 (refs_may_alias_p_1): Constructor bases also never alias.
6373
6374 2009-08-31 Gerald Pfeifer <gerald@pfeifer.com>
6375
6376 * doc/install.texi (Final install): Adjust reference on where to
6377 order printed manuals.
6378
6379 2009-08-30 Olivier Hainque <hainque@adacore.com>
6380
6381 * dwarf2out.c (switch_to_frame_table_section): Move
6382 definition prior to first use.
6383
6384 2009-08-30 Richard Guenther <rguenther@suse.de>
6385
6386 PR tree-optimization/41186
6387 * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
6388 (ao_ref_init_from_ptr_and_size): New function.
6389 (ref_maybe_used_by_call_p_1): Be more precise tracking
6390 used ranges for builtin functions.
6391 (ref_maybe_used_by_call_p): Adjust.
6392 (call_may_clobber_ref_p_1): Be more precise tracking clobbered
6393 ranges for builtin functions.
6394 * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
6395
6396 2009-08-30 Alan Modra <amodra@bigpond.net.au>
6397
6398 PR target/41081
6399 * fwprop.c (get_reg_use_in): Delete.
6400 (free_load_extend): New function.
6401 (forward_propagate_subreg): Use it.
6402
6403 2009-08-29 Kaz Kojima <kkojima@gcc.gnu.org>
6404
6405 * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
6406
6407 2009-08-29 Kai Tietz<kai.tietz@onevision.com>
6408
6409 PR/41184
6410 * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
6411 padding.
6412
6413 2009-08-29 Douglas B Rupp <rupp@gnat.com>
6414
6415 * crtstuff.c (__do_global_dtors_aux): Use atexit if no
6416 fini or fini_array section.
6417
6418 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6419
6420 * graphite-dependences.c (graphite_legal_transform_bb): Call
6421 pbb_remove_duplicate_pdrs.
6422 * graphite-poly.c (can_collapse_pdr): Removed.
6423 (pdr_find_duplicate): Removed.
6424 (can_collapse_pdrs): New.
6425 (pbb_remove_duplicate_pdrs): New.
6426 (new_poly_dr): Do not look for duplicates.
6427 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
6428 (PBB_PDR_DUPLICATES_REMOVED): New.
6429 (pbb_remove_duplicate_pdrs): Declared.
6430
6431 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6432
6433 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
6434 the strides by multiplying by PDR_NB_REFS.
6435 * graphite-poly.c (can_collapse_pdr): New.
6436 (pdr_find_duplicate): New.
6437 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
6438 Initialize PDR_NB_REFS.
6439 * graphite-poly.h (struct poly_dr): Add field nb_refs.
6440 (PDR_NB_REFS): New.
6441 (new_poly_dr): Number of subscripts is a graphite_dim_t.
6442
6443 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6444
6445 PR middle-end/40965
6446 * graphite-poly.c (apply_poly_transforms): Remove legality test before
6447 any transform.
6448
6449 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6450
6451 * graphite-dependences.c (pddr_original_scattering): Return NULL
6452 for read-read dependence relations.
6453 * graphite-poly.h (enum poly_dr_type): Fix comment.
6454 (pdr_read_p): New.
6455 (pdr_write_p): New.
6456 (pdr_may_write_p): New.
6457
6458 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6459
6460 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
6461 (struct poly_dr): Same.
6462 (new_poly_dr): Same.
6463 * graphite-poly.c (new_poly_dr): Same.
6464 * graphite-dependences.c (dot_deps): Disable call to system.
6465
6466 2009-08-28 Cary Coutant <ccoutant@google.com>
6467
6468 PR debug/41063
6469 * dwarf2out.c (gen_type_die_with_usage): Use proper context for
6470 struct/union/enum types local to a function.
6471
6472 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
6473 Sebastian Pop <sebastian.pop@amd.com>
6474
6475 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
6476 pbb_strip_mine_time_depth. Changed the implementation so that
6477 transformation is expressed as a transformation on
6478 time (scatttering) dimensions. Also, ensures that the 2d+1
6479 scheduling format is preserved.
6480 (pbb_strip_mine_profitable_p): Profitability is based on the
6481 iteration number of a given time (scattering) dimension,
6482 and not on a original loop depth dimension.
6483 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
6484 (pbb_do_strip_mine): Call psct_dynamic_dim.
6485 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
6486 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
6487 (pbb_nb_dynamic_scattering_transform): New.
6488 (psct_dynamic_dim): New.
6489
6490 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
6491
6492 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
6493 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
6494 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
6495 * graphite-interchange.c (build_linearized_memory_access): Same.
6496 (memory_stride_in_loop): Same.
6497
6498 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6499
6500 * graphite-dependences.c (pddr_original_scattering): New.
6501 (graphite_legal_transform_dr): Call pddr_original_scattering.
6502 (dot_deps_1): New.
6503 (dot_deps): New.
6504 * graphite-dependences.h (dot_deps): Declared.
6505 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
6506 (print_pdr): Print PDR_ID.
6507 * graphite-poly.h (struct poly_dr): Add field id.
6508 (PDR_ID): New.
6509 (pbb_index): New.
6510 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
6511
6512 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6513
6514 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
6515 not delete the original dependence relation.
6516
6517 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6518
6519 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
6520 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
6521 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
6522 (free_poly_ddr): New.
6523 (pddr_is_empty): New.
6524 (dependence_polyhedron_1): Now returns a poly_ddr_p.
6525 (dependence_polyhedron): Same. Remove useless gcc_assert.
6526 Remove fprintfs.
6527 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
6528 (graphite_carried_dependence_level_k): Call pddr_is_empty.
6529 * graphite-dependences.h (enum poly_dependence_kind): New.
6530 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
6531 (PDRP_SOURCE): Renamed PDDR_SOURCE.
6532 (PDRP_SINK): Renamed PDDR_SINK.
6533 (PDRP_DDP): Renamed PDDR_DDP.
6534 (PDDR_KIND): New.
6535 (free_poly_ddr): Declared.
6536 * graphite-poly.c (new_scop): Use the new hash function names.
6537 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
6538 into original_pddrs.
6539 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
6540
6541 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6542
6543 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
6544 bounds with LT_EXPR to make niter analysis more precise on code
6545 generated by Graphite.
6546
6547 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6548
6549 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
6550 (graphite_legal_transform_bb): Same.
6551 (poly_drs_may_alias_p): Same.
6552
6553 2009-08-28 Richard Guenther <rguenther@suse.de>
6554
6555 * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
6556
6557 2009-08-28 Jan Beulich <jbeulich@novell.com>
6558
6559 * config/i386/netware.c: Include langhooks.h.
6560 (i386_nlm_encode_section_info): Simplify.
6561 (netware_override_options): Delete.
6562 * config/i386/netware.h (netware_override_options): Delete
6563 declaration.
6564 (OVERRIDE_OPTIONS): Delete definition.
6565 (SUBTARGET_OVERRIDE_OPTIONS): Define.
6566 (ASM_COMMENT_START): Define.
6567 * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
6568
6569 2009-08-28 Jan Beulich <jbeulich@novell.com>
6570
6571 * configure.ac: For in-tree ld, do a plain version check to
6572 determine whether comdat groups are supported.
6573 * configure: Regenerate.
6574
6575 2009-08-28 Olivier Hainque <hainque@adacore.com>
6576
6577 * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
6578 always defined. Reflect definition or absence of such for
6579 COLLECT_EXPORT_LIST. Readability helper.
6580 (scanfilter): New enum, to help control what symbols
6581 are to be considered or ignored by scan_prog_file.
6582 (enum pass): Rename as "scanpass", moved together with scanfilter
6583 prior to scan_prog_file's prototype.
6584 (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
6585 Group prototype with the scanpass/scanfilter definitions, factorize
6586 head comments for the several implementations at the prototype.
6587 (main): Reorganize the first pass link control to let AIX
6588 drag only the needed frame tables in executables. Prevent
6589 frame tables collection during the scan aimed at static ctors.
6590 Pre-link and scan for frame tables later to compensate.
6591 * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
6592 A C statement to issue assembly directives that create a reference
6593 to the given DWARF table identifier label from the current function
6594 section.
6595 * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
6596 to differentiate first time section entry. Only emit a .data
6597 tables start identifier label the first time around.
6598 (switch_to_frame_table_section): New function. Helper for
6599 output_call_frame_info to switch possibly BACK into the eh_frame
6600 or the debug_frame section depending on FOR_EH.
6601 (output_call_frame_info): Use helper to first enter the proper
6602 frame section.
6603 (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
6604 emit a link to the frame table start label from each function
6605 section.
6606 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
6607 New function. Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
6608 * config/rs6000/rs6000-protos.h: Declare it.
6609 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
6610
6611 2009-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
6612
6613 * config/sh/sh.c (split_branches): Check the result of
6614 next_active_insn.
6615
6616 2009-08-27 Steve Ellcey <sje@cup.hp.com>
6617
6618 * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
6619 using -pthread -fopenmp
6620
6621 2009-08-27 Gerald Pfeifer <gerald@pfeifer.com>
6622
6623 * doc/service.texi (service directory): Update URL.
6624
6625 2009-08-27 Uros Bizjak <ubizjak@gmail.com>
6626
6627 PR rtl-optimization/40861
6628 * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
6629 extract word from a multi-word subreg for negative byte positions.
6630
6631 2009-08-27 Tristan Gingold <gingold@adacore.com>
6632 Douglas B Rupp <rupp@gnat.com>
6633
6634 * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
6635 (SECTION_VMS_OVERLAY): Define.
6636 (ia64_vms_common_object_attribute): Added. Handle the "common_object"
6637 attribute.
6638 (ia64_vms_elf_asm_named_section): Added. Generate .section pseudo-op
6639 for common_object.
6640 (ia64_vms_output_aligned_decl_common): Added. Generate pseudo-op for
6641 common_object declarations.
6642 (ia64_section_type_flags): Set section flag for common_object.
6643 * config/ia64/ia64-protos.h
6644 (ia64_vms_output_aligned_decl_common): Declare.
6645 (ia64_vms_elf_asm_named_section): Declare.
6646
6647 2009-08-27 Michael Matz <matz@suse.de>
6648
6649 * expr.c (expand_expr_real_2): New function taking exploded
6650 unary or binary expression, split out from ...
6651 (expand_expr_real_1): ... here. Move over all unary/binary
6652 switch parts to above function, in particular these codes:
6653 PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
6654 MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
6655 ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
6656 FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
6657 FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
6658 BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
6659 BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
6660 LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
6661 NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
6662 UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
6663 WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
6664 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
6665 VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
6666 VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
6667 VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
6668 VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
6669 VEC_PACK_FIX_TRUNC_EXPR.
6670 (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
6671 full expression.
6672
6673 2009-08-27 Richard Guenther <rguenther@suse.de>
6674
6675 * gengtype.c (main): Handle uint64_t.
6676 * ipa-utils.c (get_base_var): Indent properly.
6677 * tree-ssa-live.c (debug_scope_block): New function.
6678 * tree-flow.h (debug_scope_block): Declare.
6679 * tree-ssa-copy.c (replace_exp_1): Add vertical space.
6680 * basic-block.h (enum profile_status): Rename to
6681 enum profile_status_d.
6682 (x_profile_status): Adjust type.
6683
6684 2009-08-27 Dodji Seketeli <dodji@redhat.com>
6685
6686 PR debug/41170
6687 * dwarf2out.c (get_context_die): Declare this static function.
6688 (gen_type_die_with_usage): Make sure a DIE is a generated for
6689 the context of a typedef.
6690
6691 2009-08-26 Anatoly Sokolov <aesok@post.ru>
6692
6693 * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
6694 switch.
6695
6696 2009-08-26 Richard Sandiford <rdsandiford@googlemail.com>
6697
6698 * config/mips/mips-protos.h (mips_output_sync): Declare.
6699 (mips_sync_loop_insns): Likewise.
6700 (mips_output_sync_loop): Replace first two parameters with an rtx.
6701 * config/mips/mips.c (mips_multi_member): New structure.
6702 (mips_multi_members): New variable.
6703 (mips_multi_start): New function.
6704 (mips_multi_add): Likewise.
6705 (mips_multi_add_insn): Likewise.
6706 (mips_multi_add_label): Likewise.
6707 (mips_multi_last_index): Likewise.
6708 (mips_multi_copy_insn): Likewise.
6709 (mips_multi_set_operand): Likewise.
6710 (mips_multi_write): Likewise.
6711 (mips_print_operand_punctuation): Remove '%|' and '%-'.
6712 (mips_init_print_operand_punct): Update accordingly.
6713 (mips_start_ll_sc_sync_block): New function.
6714 (mips_end_ll_sc_sync_block): Likewise.
6715 (mips_output_sync): Likewise.
6716 (mips_sync_insn1_template): Likewise.
6717 (mips_sync_insn2_template): Likewise.
6718 (mips_get_sync_operand): Likewise.
6719 (mips_process_sync_loop): Likewise.
6720 (mips_output_sync_loop): Use mips_process_sync_loop.
6721 (mips_sync_loop_insns): New function.
6722 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
6723 (MIPS_COMPARE_AND_SWAP_12): Likewise.
6724 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
6725 (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
6726 (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
6727 (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
6728 (MIPS_SYNC_OLD_OP_12): Likewise.
6729 (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
6730 (MIPS_SYNC_NEW_OP_12): Likewise.
6731 (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
6732 (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
6733 (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
6734 (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
6735 (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
6736 (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
6737 * config/mips/mips.md (sync_mem): New attribute.
6738 (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
6739 (sync_exclusive_mask, sync_required_oldval): Likewise.
6740 (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
6741 (sync_release_barrier): Likewise.
6742 (length): Handle sync loops.
6743 (sync): Use mips_output_sync.
6744 * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
6745 (sync_compare_and_swap<mode>): Set the new sync_* attributes
6746 and use mips_output_sync_loop.
6747 (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
6748 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
6749 (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
6750 (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
6751 (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
6752 (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
6753 (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
6754 (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
6755 (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
6756
6757 2009-08-26 Richard Guenther <rguenther@suse.de>
6758
6759 PR middle-end/41163
6760 * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
6761 the types to not match.
6762 * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
6763 verification.
6764 * tree-ssa.c (useless_type_conversion_p): Conversions to
6765 pointers to unprototyped functions are useless.
6766
6767 2009-08-26 Richard Guenther <rguenther@suse.de>
6768
6769 * tree-ssa-structalias.c (create_variable_info_for): Remove strange
6770 whole-program condition, prepare to be called for non-globals.
6771 (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
6772 params build a representative with known type and track its fields.
6773
6774 2009-08-26 Uros Bizjak <ubizjak@gmail.com>
6775
6776 * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
6777 clearing by a taken branch.
6778 (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
6779 effectively after bbro pass.
6780 (sync_nand<mode>): Ditto.
6781 (sync_old_<fetchop_name><mode>): Ditto.
6782 (sync_old_nand<mode>): Ditto.
6783 (sync_new_<fetchop_name><mode>): Dito.
6784 (sync_new_nand<mode>): Ditto.
6785 (sync_compare_and_swap<mode>_1): Ditto.
6786 (*sync_compare_and_swap<mode>): Ditto.
6787 (sync_lock_test_and_set<mode>_1): Ditto.
6788 ("sync_lock_test_and_set<mode>): Ditto.
6789
6790 2009-08-25 Douglas B Rupp <rupp@gnat.com>
6791
6792 * hwint.h (HOST_LONG_FORMAT): New macro
6793 * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
6794 Use HOST_PTR_PRINTF.
6795 * system.h (HOST_PTR_PRINTF): Resurrect old macro
6796 * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
6797 (HOST_PTR_PRINTF): Document.
6798
6799 2009-08-25 Jan Hubicka <jh@suse.cz>
6800
6801 * config/i386/bmmintrin.h: Replace by #error.
6802
6803 Revert:
6804 Michael Meissner <michael.meissner@amd.com>
6805 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6806 Tony Linthicum <tony.linthicum@amd.com>
6807
6808 * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
6809 (TARGET_ROUND): New macro for the round/ptest instructions which
6810 are shared between SSE4.1 and SSE5.
6811 (OPTION_MASK_ISA_ROUND): Ditto.
6812 (OPTION_ISA_ROUND): Ditto.
6813 (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
6814 (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
6815
6816 * config/i386/i386.opt (-msse5): New switch for SSE5 support.
6817 (-mfused-madd): New switch to give users control over whether the
6818 compiler optimizes to use the multiply/add SSE5 instructions.
6819
6820 * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
6821 (ix86_handle_option): Turn off 3dnow if -msse5.
6822 (override_options): Add SSE5 support.
6823 (print_operand): %Y prints comparison codes for SSE5 com/pcom
6824 instructions.
6825 (ix86_expand_sse_movcc): Add SSE5 support.
6826 (ix86_expand_sse5_unpack): New function to use pperm to unpack a
6827 vector type to the next largest size.
6828 (ix86_expand_sse5_pack): New function to use pperm to pack a
6829 vector type to the next smallest size.
6830 (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
6831 (IX86_BUILTIN_FMADDSD): Ditto.
6832 (IX86_BUILTIN_FMADDPS): Ditto.
6833 (IX86_BUILTIN_FMADDPD): Ditto.
6834 (IX86_BUILTIN_FMSUBSS): Ditto.
6835 (IX86_BUILTIN_FMSUBSD): Ditto.
6836 (IX86_BUILTIN_FMSUBPS): Ditto.
6837 (IX86_BUILTIN_FMSUBPD): Ditto.
6838 (IX86_BUILTIN_FNMADDSS): Ditto.
6839 (IX86_BUILTIN_FNMADDSD): Ditto.
6840 (IX86_BUILTIN_FNMADDPS): Ditto.
6841 (IX86_BUILTIN_FNMADDPD): Ditto.
6842 (IX86_BUILTIN_FNMSUBSS): Ditto.
6843 (IX86_BUILTIN_FNMSUBSD): Ditto.
6844 (IX86_BUILTIN_FNMSUBPS): Ditto.
6845 (IX86_BUILTIN_FNMSUBPD): Ditto.
6846 (IX86_BUILTIN_PCMOV_V2DI): Ditto.
6847 (IX86_BUILTIN_PCMOV_V4SI): Ditto.
6848 (IX86_BUILTIN_PCMOV_V8HI): Ditto.
6849 (IX86_BUILTIN_PCMOV_V16QI): Ditto.
6850 (IX86_BUILTIN_PCMOV_V4SF): Ditto.
6851 (IX86_BUILTIN_PCMOV_V2DF): Ditto.
6852 (IX86_BUILTIN_PPERM): Ditto.
6853 (IX86_BUILTIN_PERMPS): Ditto.
6854 (IX86_BUILTIN_PERMPD): Ditto.
6855 (IX86_BUILTIN_PMACSSWW): Ditto.
6856 (IX86_BUILTIN_PMACSWW): Ditto.
6857 (IX86_BUILTIN_PMACSSWD): Ditto.
6858 (IX86_BUILTIN_PMACSWD): Ditto.
6859 (IX86_BUILTIN_PMACSSDD): Ditto.
6860 (IX86_BUILTIN_PMACSDD): Ditto.
6861 (IX86_BUILTIN_PMACSSDQL): Ditto.
6862 (IX86_BUILTIN_PMACSSDQH): Ditto.
6863 (IX86_BUILTIN_PMACSDQL): Ditto.
6864 (IX86_BUILTIN_PMACSDQH): Ditto.
6865 (IX86_BUILTIN_PMADCSSWD): Ditto.
6866 (IX86_BUILTIN_PMADCSWD): Ditto.
6867 (IX86_BUILTIN_PHADDBW): Ditto.
6868 (IX86_BUILTIN_PHADDBD): Ditto.
6869 (IX86_BUILTIN_PHADDBQ): Ditto.
6870 (IX86_BUILTIN_PHADDWD): Ditto.
6871 (IX86_BUILTIN_PHADDWQ): Ditto.
6872 (IX86_BUILTIN_PHADDDQ): Ditto.
6873 (IX86_BUILTIN_PHADDUBW): Ditto.
6874 (IX86_BUILTIN_PHADDUBD): Ditto.
6875 (IX86_BUILTIN_PHADDUBQ): Ditto.
6876 (IX86_BUILTIN_PHADDUWD): Ditto.
6877 (IX86_BUILTIN_PHADDUWQ): Ditto.
6878 (IX86_BUILTIN_PHADDUDQ): Ditto.
6879 (IX86_BUILTIN_PHSUBBW): Ditto.
6880 (IX86_BUILTIN_PHSUBWD): Ditto.
6881 (IX86_BUILTIN_PHSUBDQ): Ditto.
6882 (IX86_BUILTIN_PROTB): Ditto.
6883 (IX86_BUILTIN_PROTW): Ditto.
6884 (IX86_BUILTIN_PROTD): Ditto.
6885 (IX86_BUILTIN_PROTQ): Ditto.
6886 (IX86_BUILTIN_PROTB_IMM): Ditto.
6887 (IX86_BUILTIN_PROTW_IMM): Ditto.
6888 (IX86_BUILTIN_PROTD_IMM): Ditto.
6889 (IX86_BUILTIN_PROTQ_IMM): Ditto.
6890 (IX86_BUILTIN_PSHLB): Ditto.
6891 (IX86_BUILTIN_PSHLW): Ditto.
6892 (IX86_BUILTIN_PSHLD): Ditto.
6893 (IX86_BUILTIN_PSHLQ): Ditto.
6894 (IX86_BUILTIN_PSHAB): Ditto.
6895 (IX86_BUILTIN_PSHAW): Ditto.
6896 (IX86_BUILTIN_PSHAD): Ditto.
6897 (IX86_BUILTIN_PSHAQ): Ditto.
6898 (IX86_BUILTIN_FRCZSS): Ditto.
6899 (IX86_BUILTIN_FRCZSD): Ditto.
6900 (IX86_BUILTIN_FRCZPS): Ditto.
6901 (IX86_BUILTIN_FRCZPD): Ditto.
6902 (IX86_BUILTIN_CVTPH2PS): Ditto.
6903 (IX86_BUILTIN_CVTPS2PH): Ditto.
6904 (IX86_BUILTIN_COMEQSS): Ditto.
6905 (IX86_BUILTIN_COMNESS): Ditto.
6906 (IX86_BUILTIN_COMLTSS): Ditto.
6907 (IX86_BUILTIN_COMLESS): Ditto.
6908 (IX86_BUILTIN_COMGTSS): Ditto.
6909 (IX86_BUILTIN_COMGESS): Ditto.
6910 (IX86_BUILTIN_COMUEQSS): Ditto.
6911 (IX86_BUILTIN_COMUNESS): Ditto.
6912 (IX86_BUILTIN_COMULTSS): Ditto.
6913 (IX86_BUILTIN_COMULESS): Ditto.
6914 (IX86_BUILTIN_COMUGTSS): Ditto.
6915 (IX86_BUILTIN_COMUGESS): Ditto.
6916 (IX86_BUILTIN_COMORDSS): Ditto.
6917 (IX86_BUILTIN_COMUNORDSS): Ditto.
6918 (IX86_BUILTIN_COMFALSESS): Ditto.
6919 (IX86_BUILTIN_COMTRUESS): Ditto.
6920 (IX86_BUILTIN_COMEQSD): Ditto.
6921 (IX86_BUILTIN_COMNESD): Ditto.
6922 (IX86_BUILTIN_COMLTSD): Ditto.
6923 (IX86_BUILTIN_COMLESD): Ditto.
6924 (IX86_BUILTIN_COMGTSD): Ditto.
6925 (IX86_BUILTIN_COMGESD): Ditto.
6926 (IX86_BUILTIN_COMUEQSD): Ditto.
6927 (IX86_BUILTIN_COMUNESD): Ditto.
6928 (IX86_BUILTIN_COMULTSD): Ditto.
6929 (IX86_BUILTIN_COMULESD): Ditto.
6930 (IX86_BUILTIN_COMUGTSD): Ditto.
6931 (IX86_BUILTIN_COMUGESD): Ditto.
6932 (IX86_BUILTIN_COMORDSD): Ditto.
6933 (IX86_BUILTIN_COMUNORDSD): Ditto.
6934 (IX86_BUILTIN_COMFALSESD): Ditto.
6935 (IX86_BUILTIN_COMTRUESD): Ditto.
6936 (IX86_BUILTIN_COMEQPS): Ditto.
6937 (IX86_BUILTIN_COMNEPS): Ditto.
6938 (IX86_BUILTIN_COMLTPS): Ditto.
6939 (IX86_BUILTIN_COMLEPS): Ditto.
6940 (IX86_BUILTIN_COMGTPS): Ditto.
6941 (IX86_BUILTIN_COMGEPS): Ditto.
6942 (IX86_BUILTIN_COMUEQPS): Ditto.
6943 (IX86_BUILTIN_COMUNEPS): Ditto.
6944 (IX86_BUILTIN_COMULTPS): Ditto.
6945 (IX86_BUILTIN_COMULEPS): Ditto.
6946 (IX86_BUILTIN_COMUGTPS): Ditto.
6947 (IX86_BUILTIN_COMUGEPS): Ditto.
6948 (IX86_BUILTIN_COMORDPS): Ditto.
6949 (IX86_BUILTIN_COMUNORDPS): Ditto.
6950 (IX86_BUILTIN_COMFALSEPS): Ditto.
6951 (IX86_BUILTIN_COMTRUEPS): Ditto.
6952 (IX86_BUILTIN_COMEQPD): Ditto.
6953 (IX86_BUILTIN_COMNEPD): Ditto.
6954 (IX86_BUILTIN_COMLTPD): Ditto.
6955 (IX86_BUILTIN_COMLEPD): Ditto.
6956 (IX86_BUILTIN_COMGTPD): Ditto.
6957 (IX86_BUILTIN_COMGEPD): Ditto.
6958 (IX86_BUILTIN_COMUEQPD): Ditto.
6959 (IX86_BUILTIN_COMUNEPD): Ditto.
6960 (IX86_BUILTIN_COMULTPD): Ditto.
6961 (IX86_BUILTIN_COMULEPD): Ditto.
6962 (IX86_BUILTIN_COMUGTPD): Ditto.
6963 (IX86_BUILTIN_COMUGEPD): Ditto.
6964 (IX86_BUILTIN_COMORDPD): Ditto.
6965 (IX86_BUILTIN_COMUNORDPD): Ditto.
6966 (IX86_BUILTIN_COMFALSEPD): Ditto.
6967 (IX86_BUILTIN_COMTRUEPD): Ditto.
6968 (IX86_BUILTIN_PCOMEQUB): Ditto.
6969 (IX86_BUILTIN_PCOMNEUB): Ditto.
6970 (IX86_BUILTIN_PCOMLTUB): Ditto.
6971 (IX86_BUILTIN_PCOMLEUB): Ditto.
6972 (IX86_BUILTIN_PCOMGTUB): Ditto.
6973 (IX86_BUILTIN_PCOMGEUB): Ditto.
6974 (IX86_BUILTIN_PCOMFALSEUB): Ditto.
6975 (IX86_BUILTIN_PCOMTRUEUB): Ditto.
6976 (IX86_BUILTIN_PCOMEQUW): Ditto.
6977 (IX86_BUILTIN_PCOMNEUW): Ditto.
6978 (IX86_BUILTIN_PCOMLTUW): Ditto.
6979 (IX86_BUILTIN_PCOMLEUW): Ditto.
6980 (IX86_BUILTIN_PCOMGTUW): Ditto.
6981 (IX86_BUILTIN_PCOMGEUW): Ditto.
6982 (IX86_BUILTIN_PCOMFALSEUW): Ditto.
6983 (IX86_BUILTIN_PCOMTRUEUW): Ditto.
6984 (IX86_BUILTIN_PCOMEQUD): Ditto.
6985 (IX86_BUILTIN_PCOMNEUD): Ditto.
6986 (IX86_BUILTIN_PCOMLTUD): Ditto.
6987 (IX86_BUILTIN_PCOMLEUD): Ditto.
6988 (IX86_BUILTIN_PCOMGTUD): Ditto.
6989 (IX86_BUILTIN_PCOMGEUD): Ditto.
6990 (IX86_BUILTIN_PCOMFALSEUD): Ditto.
6991 (IX86_BUILTIN_PCOMTRUEUD): Ditto.
6992 (IX86_BUILTIN_PCOMEQUQ): Ditto.
6993 (IX86_BUILTIN_PCOMNEUQ): Ditto.
6994 (IX86_BUILTIN_PCOMLTUQ): Ditto.
6995 (IX86_BUILTIN_PCOMLEUQ): Ditto.
6996 (IX86_BUILTIN_PCOMGTUQ): Ditto.
6997 (IX86_BUILTIN_PCOMGEUQ): Ditto.
6998 (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
6999 (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
7000 (IX86_BUILTIN_PCOMEQB): Ditto.
7001 (IX86_BUILTIN_PCOMNEB): Ditto.
7002 (IX86_BUILTIN_PCOMLTB): Ditto.
7003 (IX86_BUILTIN_PCOMLEB): Ditto.
7004 (IX86_BUILTIN_PCOMGTB): Ditto.
7005 (IX86_BUILTIN_PCOMGEB): Ditto.
7006 (IX86_BUILTIN_PCOMFALSEB): Ditto.
7007 (IX86_BUILTIN_PCOMTRUEB): Ditto.
7008 (IX86_BUILTIN_PCOMEQW): Ditto.
7009 (IX86_BUILTIN_PCOMNEW): Ditto.
7010 (IX86_BUILTIN_PCOMLTW): Ditto.
7011 (IX86_BUILTIN_PCOMLEW): Ditto.
7012 (IX86_BUILTIN_PCOMGTW): Ditto.
7013 (IX86_BUILTIN_PCOMGEW): Ditto.
7014 (IX86_BUILTIN_PCOMFALSEW): Ditto.
7015 (IX86_BUILTIN_PCOMTRUEW): Ditto.
7016 (IX86_BUILTIN_PCOMEQD): Ditto.
7017 (IX86_BUILTIN_PCOMNED): Ditto.
7018 (IX86_BUILTIN_PCOMLTD): Ditto.
7019 (IX86_BUILTIN_PCOMLED): Ditto.
7020 (IX86_BUILTIN_PCOMGTD): Ditto.
7021 (IX86_BUILTIN_PCOMGED): Ditto.
7022 (IX86_BUILTIN_PCOMFALSED): Ditto.
7023 (IX86_BUILTIN_PCOMTRUED): Ditto.
7024 (IX86_BUILTIN_PCOMEQQ): Ditto.
7025 (IX86_BUILTIN_PCOMNEQ): Ditto.
7026 (IX86_BUILTIN_PCOMLTQ): Ditto.
7027 (IX86_BUILTIN_PCOMLEQ): Ditto.
7028 (IX86_BUILTIN_PCOMGTQ): Ditto.
7029 (IX86_BUILTIN_PCOMGEQ): Ditto.
7030 (IX86_BUILTIN_PCOMFALSEQ): Ditto.
7031 (IX86_BUILTIN_PCOMTRUEQ): Ditto.
7032 (enum multi_arg_type): New enum for describing the various SSE5
7033 intrinsic argument types.
7034 (bdesc_multi_arg): New table for SSE5 intrinsics.
7035 (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
7036 (ix86_expand_multi_arg_builtin): New function for creating SSE5
7037 intrinsics.
7038 (ix86_expand_builtin): Add SSE5 intrinsic support.
7039 (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
7040 operand instructions.
7041 (ix86_expand_sse5_multiple_memory): New function to split the
7042 second memory reference from SSE5 instructions.
7043 (type_has_variadic_args_p): Delete in favor of stdarg_p.
7044 (ix86_return_pops_args): Use stdarg_p to determine if the function
7045 has variable arguments.
7046 (ix86_setup_incoming_varargs): Ditto.
7047 (x86_this_parameter): Ditto.
7048
7049 * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
7050 declaration.
7051 (ix86_expand_sse5_pack): Ditto.
7052 (ix86_sse5_valid_op_p): Ditto.
7053 (ix86_expand_sse5_multiple_memory): Ditto.
7054
7055 * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
7056 constant for SSE5 support.
7057 (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
7058 (UNSPEC_SSE5_TRUEFALSE): Ditto.
7059 (UNSPEC_SSE5_PERMUTE): Ditto.
7060 (UNSPEC_SSE5_ASHIFT): Ditto.
7061 (UNSPEC_SSE5_LSHIFT): Ditto.
7062 (UNSPEC_FRCZ): Ditto.
7063 (UNSPEC_CVTPH2PS): Ditto.
7064 (UNSPEC_CVTPS2PH): Ditto.
7065 (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
7066 (PCOM_TRUE): Ditto.
7067 (COM_FALSE_S): Ditto.
7068 (COM_FALSE_P): Ditto.
7069 (COM_TRUE_S): Ditto.
7070 (COM_TRUE_P): Ditto.
7071 (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
7072 (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
7073 types.
7074 (memory attribute): Ditto.
7075 (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
7076 Use SSE4_1_ROUND_* constants instead of hard coded numbers.
7077 (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
7078 (floor<mode>2): Ditto.
7079 (ceil<mode>2): Ditto.
7080 (btrunc<mode>2): Ditto.
7081 (nearbyintdf2): Ditto.
7082 (nearbyintsf2): Ditto.
7083 (sse_setccsf): Disable if SSE5.
7084 (sse_setccdf): Ditto.
7085 (sse5_setcc<mode>): New support for SSE5 conditional move.
7086 (sse5_pcmov_<mode>): Ditto.
7087
7088 * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
7089 (SSEMODEF4): Ditto.
7090 (SSEMODEF2P): Ditto.
7091 (ssemodesuffixf4): New mode attribute for SSE5.
7092 (ssemodesuffixf2s): Ditto.
7093 (ssemodesuffixf2c): Ditto.
7094 (sserotatemax): Ditto.
7095 (ssescalarmode): Ditto.
7096 (sse_maskcmpv4sf3): Disable if SSE5.
7097 (sse_maskcmpv2df3): Ditto.
7098 (sse_vmmaskcmpv4sf3): Ditto.
7099 (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
7100 (sse5_vmfmadd<mode>4): Ditto.
7101 (sse5_fmsub<mode>4): Ditto.
7102 (sse5_vmfmsub<mode>4): Ditto.
7103 (sse5_fnmadd<mode>4): Ditto.
7104 (sse5_vmfnmadd<mode>4): Ditto.
7105 (sse5_fnmsub<mode>4): Ditto.
7106 (sse5_vmfnmsub<mode>4): Ditto.
7107 (sse5i_fmadd<mode>4): Ditto.
7108 (sse5i_fmsub<mode>4): Ditto.
7109 (sse5i_fnmadd<mode>4): Ditto.
7110 (sse5i_fnmsub<mode>4): Ditto.
7111 (sse5i_vmfmadd<mode>4): Ditto.
7112 (sse5i_vmfmsub<mode>4): Ditto.
7113 (sse5i_vmfnmadd<mode>4): Ditto.
7114 (sse5i_vmfnmsub<mode>4): Ditto.
7115 (mulv16qi3): Add SSE5 support.
7116 (mulv4si3): Ditto.
7117 (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
7118 (sse2_mulv4si3): Disable if SSE5.
7119 (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
7120 (sse4_1_roundps): Ditto.
7121 (sse4_1_roundsd): Ditto.
7122 (sse4_1_roundss): Ditto.
7123 (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
7124 be generated.
7125 (sse_maskcmpsf3): Ditto.
7126 (sse_vmmaskcmpv4sf3): Ditto.
7127 (sse2_maskcmpv2df3): Ditto.
7128 (sse2_maskcmpdf3): Ditto.
7129 (sse2_vmmaskcmpv2df3): Ditto.
7130 (sse2_eq<mode>3): Ditto.
7131 (sse2_gt<mode>3): Ditto.
7132 (sse5_pcmov_<mode>): Add SSE5 support.
7133 (vec_unpacku_hi_v16qi): Ditto.
7134 (vec_unpacks_hi_v16qi): Ditto.
7135 (vec_unpacku_lo_v16qi): Ditto.
7136 (vec_unpacks_lo_v16qi): Ditto.
7137 (vec_unpacku_hi_v8hi): Ditto.
7138 (vec_unpacks_hi_v8hi): Ditto.
7139 (vec_unpacku_lo_v8hi): Ditto.
7140 (vec_unpacks_lo_v8hi): Ditto.
7141 (vec_unpacku_hi_v4si): Ditto.
7142 (vec_unpacks_hi_v4si): Ditto.
7143 (vec_unpacku_lo_v4si): Ditto.
7144 (vec_unpacks_lo_v4si): Ditto.
7145 (sse5_pmacsww): New SSE5 intrinsic insn.
7146 (sse5_pmacssww): Ditto.
7147 (sse5_pmacsdd): Ditto.
7148 (sse5_pmacssdd): Ditto.
7149 (sse5_pmacssdql): Ditto.
7150 (sse5_pmacssdqh): Ditto.
7151 (sse5_pmacsdqh): Ditto.
7152 (sse5_pmacsswd): Ditto.
7153 (sse5_pmacswd): Ditto.
7154 (sse5_pmadcsswd): Ditto.
7155 (sse5_pmadcswd): Ditto.
7156 (sse5_pcmov_<move>): Conditional move support on SSE5.
7157 (sse5_phaddbw): New SSE5 intrinsic insn.
7158 (sse5_phaddbd): Ditto.
7159 (sse5_phaddbq): Ditto.
7160 (sse5_phaddwd): Ditto.
7161 (sse5_phaddwq): Ditto.
7162 (sse5_phadddq): Ditto.
7163 (sse5_phaddubw): Ditto.
7164 (sse5_phaddubd): Ditto.
7165 (sse5_phaddubq): Ditto.
7166 (sse5_phadduwd): Ditto.
7167 (sse5_phadduwq): Ditto.
7168 (sse5_phaddudq): Ditto.
7169 (sse5_phsubbw): Ditto.
7170 (sse5_phsubwd): Ditto.
7171 (sse5_phsubdq): Ditto.
7172 (sse5_pperm): Ditto.
7173 (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
7174 (sse5_pperm_zero_v16qi_v8hi): Ditto.
7175 (sse5_pperm_sign_v8hi_v4si): Ditto.
7176 (sse5_pperm_zero_v8hi_v4si): Ditto.
7177 (sse5_pperm_sign_v4si_v2di): Ditto.
7178 (sse5_pperm_sign_v4si_v2di): Ditto.
7179 (sse5_pperm_pack_v2di_v4si): Ditto.
7180 (sse5_pperm_pack_v4si_v8hi): Ditto.
7181 (sse5_pperm_pack_v8hi_v16qi): Ditto.
7182 (sse5_perm<mode>): New SSE5 intrinsic insn.
7183 (rotl<mode>3): Ditto.
7184 (sse5_rotl<mode>3): Ditto.
7185 (sse5_ashl<mode>3): Ditto.
7186 (sse5_lshl<mode>3): Ditto.
7187 (sse5_frcz<mode>2): Ditto.
7188 (sse5s_frcz<mode>2): Ditto.
7189 (sse5_cvtph2ps): Ditto.
7190 (sse5_cvtps2ph): Ditto.
7191 (sse5_vmmaskcmp<mode>3): Ditto.
7192 (sse5_com_tf<mode>3): Ditto.
7193 (sse5_maskcmp<mode>3): Ditto.
7194 (sse5_maskcmp_uns<mode>3): Ditto.
7195 (sse5_maskcmp_uns2<mode>3): Ditto.
7196 (sse5_pcom_tf<mode>3): Ditto.
7197
7198 * config/i386/predicates.md (sse5_comparison_float_operator):
7199 New predicate to match the comparison operators supported by
7200 the SSE5 com instruction.
7201 (ix86_comparison_int_operator): New predicate to match just the
7202 signed int comparisons.
7203 (ix86_comparison_uns_operator): New predicate to match just the
7204 unsigned int comparisons.
7205
7206 * doc/invoke.texi (-msse5): Add documentation.
7207 (-mfused-madd): Ditto.
7208
7209 * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
7210
7211 * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
7212 mmintrin-common.h.
7213 (x86_64-*-*): Ditto.
7214
7215 * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
7216
7217 * config/i386/bmmintrin.h: New file, provide common x86 compiler
7218 intrinisics for SSE5.
7219
7220 * config/i386/smmintrin.h: Move instructions shared with SSE5 to
7221 mmintrin-common.h.
7222
7223 * config/i386/mmintrin-common.h: New file, to contain common
7224 instructions between SSE4.1 and SSE5.
7225
7226 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
7227 FOREACH_FUNCTION_ARGS to iterate over the argument list.
7228 (gen_regparm_prefix): Ditto.
7229
7230 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
7231 FOREACH_FUNCTION_ARGS to iterate over the argument list. Use
7232 prototype_p to determine if a function is prototyped.
7233
7234 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
7235
7236 * c-common.c (c_common_reswords) add the alignof keyword,
7237 with same RID as __alignof and __alignof__
7238
7239 2009-08-25 Anatoly Sokolov <aesok@post.ru>
7240
7241 * hooks.h (hook_bool_const_int_const_int_true): Declare.
7242 * hooks.c (hook_bool_const_int_const_int_true): New function.
7243 * target.h (struct gcc_target): Add can_eliminate field.
7244 * target-def.h (TARGET_CAN_ELIMINATE): Define.
7245 (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
7246 * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
7247 * reload1.c (update_eliminables, init_elim_table): (Ditto.).
7248 (elim_table): Revise comment.
7249 * system.h (CAN_ELIMINATE): Poison.
7250 * defaults.h (CAN_ELIMINATE): Remove.
7251 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
7252
7253 * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
7254 * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
7255 Define macro.
7256 (alpha_vms_can_eliminate): Declare as static, change return type to
7257 bool.
7258 * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
7259
7260 * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
7261 * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
7262 (arm_can_eliminate): New function.
7263
7264 * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
7265 * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
7266 (avr_can_eliminate): Declare as static.
7267 * config/avr/avr-protos.h (avr_can_eliminate): Remove.
7268
7269 * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
7270 * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
7271 (bfin_can_eliminate): New function.
7272
7273 * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
7274 * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
7275 (crx_can_eliminate): New function.
7276
7277 * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
7278 * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
7279 (fr30_can_eliminate): New function.
7280
7281 * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
7282 * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
7283 (frv_can_eliminate): New function.
7284
7285 * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
7286 * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
7287 (h8300_can_eliminate): New function.
7288
7289 * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
7290 * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
7291 (i386_can_eliminate): Declare as static, change return type to bool.
7292 * config/i386/i386-protos.h (i386_can_eliminate): Remove.
7293
7294 * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
7295 * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
7296 (ia64_can_eliminate): New function.
7297
7298 * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
7299 * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
7300 (iq2000_can_eliminate): New function.
7301
7302 * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
7303 * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
7304 (m32r_can_eliminate): New function.
7305
7306 * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
7307 * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
7308 (m68hc11_can_eliminate): New function.
7309
7310 * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
7311 * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
7312 (m68k_can_eliminate): New function.
7313
7314 * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
7315 * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
7316 (mep_can_eliminate): New function.
7317
7318 * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
7319 * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
7320 (mips_can_eliminate): New function.
7321
7322 * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
7323 * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
7324 (rs6000_can_eliminate): New function.
7325
7326 * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
7327 * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
7328 (s390_can_eliminate): Declare as static.
7329 * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
7330
7331 * config/score/score.h (CAN_ELIMINATE): Remove macro.
7332 * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
7333 (score_can_eliminate): New function.
7334
7335 * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
7336 * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
7337 (sparc_can_eliminate): Declare as static.
7338 * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
7339
7340 * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
7341 * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
7342 (xstormy16_can_eliminate): New function.
7343
7344 * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
7345 * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
7346 (v850_can_eliminate): New function.
7347
7348 2009-08-25 Uros Bizjak <ubizjak@gmail.com>
7349
7350 * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
7351 (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
7352 (*movdfcc_ext[1234]): Disable for IEEE mode.
7353
7354 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
7355
7356 * gimplify.c (prepare_gimple_addressable): New static function.
7357 (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
7358 it addressable.
7359 (gimplify_addr_expr): Invoke it similarly on the operand instead of
7360 manually fiddling with it.
7361
7362 2009-08-25 Michael Matz <matz@suse.de>
7363
7364 * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
7365 * dojump.c (do_jump_by_parts_greater): Take two operands instead of
7366 full expression.
7367 (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
7368 (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
7369 (do_jump): Split out code for simple binary comparisons into ...
7370 (do_jump_1): ... this, taking the individual operands and code.
7371 Change callers to helper function above accordingly.
7372 * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
7373 comparisons.
7374
7375 2009-08-25 Michael Matz <matz@suse.de>
7376
7377 * expr.h (struct separate_ops, sepops): New type for passing
7378 around an exploded simple expression.
7379 * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
7380 Use this structure instead of expression tree.
7381 (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
7382 expression, only its type.
7383 (expand_vec_cond_expr): Take type and individual operands instead
7384 of full expression.
7385 * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
7386 expand_vec_shift_expr): Change prototype accordingly.
7387 * tree-vect-stmts.c (vectorizable_condition): Change call of
7388 expand_vec_cond_expr_p to pass only type.
7389 * expr.c (do_store_flags): Change prototype and implementation
7390 to take an exploded expression.
7391 (expand_expr_real_1): New local ops initialized with details
7392 of the full expression. Use it instead of full
7393 expression in calls to do_store_flags, expand_vec_cond_expr,
7394 expand_widen_pattern_expr and expand_vec_shift_expr.
7395
7396 2009-08-25 Michael Matz <matz@suse.de>
7397
7398 * expr.c (expand_expr_real_1): New local treeop0, treeop1,
7399 treeop2 initialized with first three operands of the full expression.
7400 Substitute all TREE_OPERAND (exp, [012]) calls with them.
7401
7402 2009-08-25 Kai Tietz <kai.tietz@onevision.com>
7403
7404 * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
7405 (__gthread_objc_condition_allocate): Mark arguments as unused.
7406 (__gthread_objc_condition_deallocate): Likewise.
7407 (__gthread_objc_condition_wait): Likewise.
7408 (__gthread_objc_condition_broadcast): Likewise.
7409 (__gthread_objc_condition_signal): Likewise.
7410 (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
7411 (__gthread_objc_thread_id): Likewise.
7412
7413 2009-08-25 Janus Weil <janus@gcc.gnu.org>
7414
7415 PR middle-end/41149
7416 * tree-pretty-print.c (print_call_name): Print the correct call name
7417 for procedure pointer components.
7418
7419 2009-08-24 Steve Ellcey <sje@cup.hp.com>
7420
7421 * config/ia64/ia64.c (ia64_promote_function_mode): Call
7422 default_promote_function_mode when not VMS.
7423
7424 2009-08-24 Olivier Hainque <hainque@adacore.com>
7425
7426 * convert.c (convert_to_integer): Don't assume an input pointer is
7427 POINTER_SIZE wide. Fetch from the type instead.
7428
7429 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7430
7431 * configure.ac (AC_PREREQ): Bump to 2.64.
7432
7433 2009-08-24 Rafael Avila de Espindola <espindola@google.com>
7434
7435 * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
7436 (process_command): Don't search standard_exec_prefix_1 and
7437 standard_exec_prefix_2.
7438
7439 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7440
7441 * config/arm/arm.c (output_return_instruction): Handle for
7442 unified syntax.
7443
7444 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7445
7446 * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
7447
7448 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7449
7450 * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
7451 (*arm_movdf_vfp): Likewise.
7452
7453 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7454
7455 * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
7456 (vashr<mode>3): Rename from ashr<mode>3.
7457 (vlshr<mode>3): Rename from lshr<mode>3.
7458
7459 2009-08-24 Kai Tietz <kai.tietz@onevision.com>
7460
7461 PR/40786
7462 * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
7463 (check_format_info_main): Use scalar_identify_flag.
7464 (check_format_types): Check for scalar size identity if
7465 scalar_identify_flag is set.
7466 (printf_length_specs): Extend by new field.
7467 (asm_fprintf_length_specs): Likewise.
7468 (gcc_diag_length_specs): Likewise.
7469 (scanf_length_specs): Likewise.
7470 (strfmon_length_specs): Likewise.
7471 (gcc_gfc_length_specs): Likewise.
7472 * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
7473 (ms_printf_flag_specs): Likewise.
7474 * c-format.h (format_length_info): Add new member scalar_identity_flag.
7475
7476 2009-08-23 Uros Bizjak <ubizjak@gmail.com>
7477
7478 PR target/40718
7479 * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
7480 (*call_value_pop_1): Ditto.
7481 (*sibcall_pop_1): New insn pattern.
7482 (*sibcall_value_pop_1): Ditto.
7483
7484 2009-08-23 Alan Modra <amodra@bigpond.net.au>
7485
7486 PR target/41081
7487 * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
7488 ashrsi3_64): New.
7489
7490 2009-08-23 Alan Modra <amodra@bigpond.net.au>
7491
7492 PR target/41081
7493 * fwprop.c (try_fwprop_subst): Allow multiple sets.
7494 (get_reg_use_in): New function.
7495 (forward_propagate_subreg): Propagate through subreg of zero_extend
7496 or sign_extend.
7497
7498 2009-08-22 Kaz Kojima <kkojima@gcc.gnu.org>
7499
7500 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
7501 * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
7502
7503 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7504
7505 * configure.ac: Remove --with-datarootdir, --with-docdir,
7506 --with-htmldir switches. No need to call AC_SUBST for
7507 datarootdir, docdir, htmldir any more.
7508 * configure: Regenerate.
7509 * doc/install.texi (Configuration): Document --datarootdir,
7510 --docdir, --htmldir, --pdfdir; update documentation for
7511 --infodir, --mandir.
7512 (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
7513 M4 to 1.4.6.
7514
7515 * aclocal.m4: Regenerate.
7516 * config.in: Regenerate.
7517 * configure: Regenerate.
7518
7519 2009-08-21 Douglas B Rupp <rupp@gnat.com>
7520 Olivier Hainque <hainque@adacore.com>
7521
7522 * config/ia64/ia64.c: Include libfuncs.h.
7523 (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
7524 (ia64_expand_call): Use reg 25 on VMS.
7525 (ia64_initialize_trampoline): Fix for VMS ABI.
7526 (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
7527 (ia64_function_arg): Initialize reg 25 on VMS.
7528 Fix OpenVMS ABI issues for varargs.
7529 For OpenVMS, emit the Argument Information register set in the
7530 incoming/sibcall case as well.
7531 (ia64_arg_type): New function.
7532 (ia64_function_arg_advance): Keep track of cum->words.
7533 Fix OpenVMS ABI issues for varargs.
7534 (ia64_function_value): On VMS, promote mode of non-aggregate types.
7535 (ia64_override_options): Set flag_no_common on VMS.
7536 (ia64_init_builtins): Disable FWRITE builtin.
7537 (ia64_asm_output_external): Call DO_CRTL_NAMES.
7538 (ia64_vms_init_libfuncs): Add decc$ routines.
7539 (ia64_vms_valid_pointer_mode): New function.
7540 (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
7541 (ia64_promote_function_mode): New function
7542 * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
7543 (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
7544 (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
7545 (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
7546 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
7547 (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
7548 Suppress trailing '#' if VALUE is numeric.
7549 * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
7550 ia64_promote_function_mode.
7551 (TARGET_VALID_POINTER_MODE): Define.
7552
7553 2009-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7554
7555 PR target/40671
7556 * config/rs6000/rs6000.c (rs6000_override_options): Use
7557 TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
7558
7559 PR target/41145
7560 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
7561 reporting of vector + decimal/boolean/complex error.
7562
7563 2009-08-21 Jakub Jelinek <jakub@redhat.com>
7564
7565 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
7566 __vector double TYPE_DECL.
7567
7568 2009-08-21 Richard Earnshaw <rearnsha@arm.com>
7569
7570 * arm.h (MACHMODE): New define. Include insn-modes.h if available.
7571 (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
7572 * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
7573 to pointer to enum machine_mode. Update all callers as needed.
7574
7575 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
7576
7577 * config/alpha/alpha.md (exception_receiver): Emit alternative
7578 GP load sequence if flag_reorder_blocks_and_partition is set.
7579 (*exception_receiver_2): Also enable when
7580 flag_reorder_blocks_and_partition is set.
7581
7582 2009-08-20 Matt Rice <ratmice@gmail.com>
7583 Diego Novillo <dnovillo@google.com>
7584
7585 * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
7586 tree-ssa-sccvn.h.
7587
7588 2009-08-20 Richard Guenther <rguenther@suse.de>
7589
7590 * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
7591 * c-tree.h (c_dup_lang_specific_decl): Remove.
7592 (struct lang_decl, struct lang_type): Move definitions ...
7593 * c-lang.h: ... here. New file.
7594 * c-decl.c: Include c-lang.h.
7595 (c_dup_lang_specific_decl): Remove.
7596 * c-typeck.c: Include c-lang.h.
7597 * Makefile.in (c-decl.o): Add c-lang.h dependency.
7598 (c-typeck.o): Likewise.
7599 * c-config-lang.in (gtfiles): Add c-lang.h.
7600 * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
7601 like c-tree.h.
7602
7603 2009-08-20 Uros Bizjak <ubizjak@gmail.com>
7604
7605 * config/alpha/alpha.c (alpha_end_function): Do not clear
7606 crtl->emit structure and free insn locators if cfun->is_thunk is true,
7607 this is now handled in generic code.
7608
7609 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
7610
7611 * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
7612 (s390_z10_fix_long_loop_prediction): New function.
7613 (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
7614 (s390_reorg): Walk over the INSNs and invoke
7615 s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
7616
7617 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
7618
7619 * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
7620 "*brx_64bit", "*brx_31bit"): New patterns.
7621 * config/s390/s390.c ('E'): New output modifier.
7622
7623 2009-08-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7624 Richard Earnshaw <richard.earnshaw@arm.com>
7625
7626 * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
7627 * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
7628
7629 2009-08-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7630
7631 * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
7632 patterns.
7633 * pa.c (emit_move_sequence): Check if address of operand1 is valid
7634 for mode mode of operand0 when doing secondary reload for SAR.
7635
7636 2009-08-19 Jakub Jelinek <jakub@redhat.com>
7637
7638 PR middle-end/41123
7639 * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
7640 of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
7641
7642 2009-08-19 Jason Merrill <jason@redhat.com>
7643
7644 * doc/invoke.texi (C++ Dialect Options): Note change of minimum
7645 supported template depth in C++0x.
7646
7647 2009-08-19 Jakub Jelinek <jakub@redhat.com>
7648
7649 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
7650 free_after_compilation.
7651 * config/score/score7.c (score7_output_mi_thunk): Likewise.
7652 * config/score/score3.c (score3_output_mi_thunk): Likewise.
7653 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
7654 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
7655 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7656 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
7657 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7658
7659 2009-08-19 Ian Lance Taylor <iant@google.com>
7660
7661 * doc/md.texi (Insn Canonicalizations): Correct canonicalization
7662 of (plus (mult (neg B) C) A).
7663
7664 2009-08-18 Michael Matz <matz@suse.de>
7665
7666 * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
7667 instead of comparing TYPE_MAIN_VARIANT for equality.
7668 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
7669 vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
7670 * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
7671 * gimplify.c (goa_lhs_expr_p): Ditto and use
7672 STRIP_USELESS_TYPE_CONVERSION.
7673
7674 2009-08-18 Michael Matz <matz@suse.de>
7675
7676 * tree-ssa-structalias.c (create_variable_info_for): Also mark
7677 first field in a struct.
7678 (intra_create_variable_infos): Don't deal with flag_argument_noalias.
7679
7680 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
7681
7682 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
7683 locators before emit_insn is called. Remove assert that
7684 cfun->is_thunk.
7685 (alpha_end_function): Clear crtl->emit structure and free insn
7686 locators if cfun->is_thunk is true.
7687
7688 2009-08-18 Jason Merrill <jason@redhat.com>
7689
7690 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
7691 type if available.
7692 * configure.ac: Test for it.
7693 * configure, config.in: Regenerate.
7694 * doc/install.texi: Document --enable-gnu-unique-object.
7695
7696 2009-08-18 Richard Guenther <rguenther@suse.de>
7697
7698 PR middle-end/41094
7699 * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
7700 pow(x,y*z) only if x is nonnegative.
7701
7702 2009-08-18 Jakub Jelinek <jakub@redhat.com>
7703
7704 * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
7705 on jumps.
7706
7707 PR target/40971
7708 * config/rs6000/rs6000.c (rs6000_legitimize_address): For
7709 [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
7710
7711 2009-08-17 DJ Delorie <dj@redhat.com>
7712
7713 * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
7714 * config/m32c/prologue.md (epilogue_freit): New.
7715 (fset_b): New.
7716 * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
7717 (bank_switch_p): Likewise.
7718 (fast_interrupt_p): Likewise.
7719 (interrupt_p): Likewise.
7720 (m32c_conditional_register_usage): Round memregs size up.
7721 (need_to_save): We only need to save $a0 when we use ENTER.
7722 (interrupt_p): Check for fast_interrupt too.
7723 (bank_switch_p): New.
7724 (fast_interrupt_p): New.
7725 (m32c_attribute_table): Add bank_switch and fast_interrupt.
7726 (m32c_emit_prolog): Support bank switching and fast interrupts.
7727 * doc/extend.texi (Function Attributes): Add bank_switch and
7728 fast_interrupt.
7729
7730 2009-08-17 Douglas B Rupp <rupp@gnat.com>
7731
7732 * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
7733 * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
7734
7735 2009-08-16 Douglas B Rupp <rupp@gnat.com>
7736
7737 * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
7738 (menu): Add IA-64/VMS Options.
7739 (IA-64/VMS Options): Likewise.
7740
7741 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
7742
7743 PR target/38599
7744 * config/mips/mips.md (*lwxs): Use :P for pointer values.
7745
7746 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
7747
7748 * config/mips/mips-protos.h (mips_push_asm_switch): New function.
7749 (mips_pop_asm_switch): Likewise.
7750 * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
7751 with...
7752 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
7753 (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
7754 (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
7755 (mips_print_operand_punctuation): Use them. Check mips_noreorder
7756 instead of set_noreorder.
7757 (mips_output_function_prologue): Use the new functions.
7758 (mips_output_function_epilogue): Likewise.
7759 (mips_need_noat_wrapper_p): New function, split out from...
7760 (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
7761 Use mips_push_asm_switch and mips_pop_asm_switch.
7762 * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
7763 and mips_pop_asm_switch.
7764 (ASM_OUTPUT_REG_POP): Likewise.
7765 (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
7766 Use mips_pop_asm_switch.
7767 (mips_asm_switch): New structure.
7768 (set_noreorder, set_nomacro): Replace with...
7769 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
7770 * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
7771 instead of set_nomacro.
7772 (fix_truncsfsi2_macro): Likewise.
7773 (cprestore): Likewise.
7774 (hazard): Use mips_noreorder instead of set_noreorder.
7775 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
7776
7777 2009-08-16 Uros Bizjak <ubizjak@gmail.com>
7778
7779 * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
7780 from prev_active_insn.
7781
7782 2009-08-16 Anatoly Sokolov <aesok@post.ru>
7783
7784 * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
7785 * config/avr/avr.c (avr_override_options): Initialize
7786 avr_current_arch variable.
7787 (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
7788 __AVR_HAVE_16BIT_SP__ according to the device type.
7789 (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
7790 TARGET_TINY_STACK.
7791 (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
7792 Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
7793
7794 2009-08-16 Dodji Seketeli <dodji@redhat.com>
7795
7796 PR debug/37801
7797 * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
7798 generating inlined subroutine die only. We shouldn't be
7799 called for anything else.
7800 (gen_block_die): Don't generate inline subroutine debug info for
7801 abstract blocks.
7802
7803 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
7804
7805 * graphite-poly.c (print_pbb): Print PBB index.
7806
7807 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
7808
7809 PR middle-end/40981
7810 * graphite-interchange.c (ppl_max_for_le): Moved...
7811 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
7812 * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of
7813 ppl_Pointset_Powerset_C_Polyhedron_maximize.
7814 * graphite-ppl.h (ppl_max_for_le): Declared.
7815
7816 2009-08-14 Olatunji Ruwase <tjruwase@google.com>
7817
7818 * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
7819 supported on all platforms.
7820 * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
7821 * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
7822 * c-pragma.c: Likewise.
7823 * target-def.h (TARGET_INITIALIZER): Remove
7824 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
7825 * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
7826
7827 2009-08-14 Douglas B Rupp <rupp@gnat.com>
7828
7829 * config/ia64/fde-vms.c: New file.
7830 * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
7831 * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
7832 (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
7833 (uw_frame_state_for): Only register a personality routine if it is
7834 known to be compatible with our expectations.
7835 (_Unwind_FindEnclosingFunction, uw_frame_state_for):
7836 Declare unw_table_entry stack variable and
7837 mod all calls to _Unwind_FindTableEntry to add arg.
7838 * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
7839 (_Unwind_FindTableEntry): Add arg to prototype.
7840
7841 2009-08-14 Eric Botcazou <ebotcazou@adacore.com>
7842
7843 * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
7844 field 'signal_pfs_loc'.
7845 (uw_frame_state_for): Remove duplicate code dealing with leaf
7846 procedures without unwind info.
7847 If in the frame after unwinding through a signal handler, restore
7848 the AR.PFS register instead of the CFM if AR.PFS has not been saved.
7849 * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
7850 'pfs_loc' to the AR.PFS location in the signal context; instead
7851 set 'signal_pfs_loc'.
7852 Manually generate the unwind info for the AR.PFS register.
7853 (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
7854 ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
7855 (ia64_handle_unwabi): Test 'fs->unwabi' against them.
7856 Do not set 'pfs_loc' to the AR.PFS location in the signal context;
7857 instead set 'signal_pfs_loc'.
7858 Remove code preventing the AR.PFS register from being restored
7859 from the signal context.
7860
7861 2009-08-14 Douglas B Rupp <rupp@gnat.com>
7862 Tristan Gingold <gingold@adacore.com>
7863
7864 * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
7865 * config/ia64/t-vms: New file.
7866 * config/ia64/vms64.h: New file.
7867 * config/ia64/vms.h: New file.
7868 * config/ia64/vms-crtinit.asm: New file.
7869 * config/ia64/vms_symvec_libgcc_s.opt: New file.
7870 * config/ia64/vms-unwind.h: New file.
7871
7872 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
7873
7874 * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
7875 TFmode compares.
7876
7877 2009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7878
7879 PR middle-end/30789
7880 * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
7881 Move declaration...
7882 * real.h (do_mpc_arg2): ... here.
7883 * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
7884 and RDIV_EXPR.
7885
7886 2009-08-14 Rafael Avila de Espindola <espindola@google.com>
7887
7888 * final.c (add_debug_prefix_map): Don't use GC memory for
7889 old_prefix and new_prefix.
7890
7891 2009-08-14 Richard Guenther <rguenther@suse.de>
7892
7893 * ipa-prop.c (compute_complex_pass_through): If we cannot
7894 compute a non-varying offset for IPA_JF_ANCESTOR punt.
7895
7896 2009-08-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7897
7898 * c-lex.c (c_lex_with_flags): Increase size of local variable
7899 to avoid memory clobber.
7900
7901 2009-08-14 Paolo Bonzini <bonzini@gnu.org>
7902
7903 PR target/40934
7904 * config/i386/i386.c (ix86_fp_comparison_strategy):
7905 Only enable/disable sahf at function granularity.
7906
7907 2009-08-14 Hans-Peter Nilsson <hp@axis.com>
7908
7909 PR rtl-optimization/41064
7910 * reload1.c (reload_as_needed): Don't call extract_insn
7911 for known invalid replacements after calling
7912 validate_replace_rtx_group and verify_changes.
7913
7914 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
7915
7916 PR target/41019
7917 * config/i386/sse.md (SSEMODE124C8): New mode iterator.
7918 (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
7919 ix86_expand_fp_vcond.
7920 (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
7921 Assert that operation is supported by ix86_expand_int_vcond.
7922 (vcondu<SSEMODE124C8:mode>): Ditto.
7923
7924 2009-08-13 DJ Delorie <dj@redhat.com>
7925
7926 * config/i386/djgpp-stdint.h: New.
7927 * config.gcc (djgpp): Use it.
7928
7929 2009-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
7930
7931 * config/sh/sh.c (sh_override_options): When flag_exceptions or
7932 flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
7933
7934 2009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
7935
7936 * tree-ssa-loop-prefetch.c
7937 (prune_ref_by_group_reuse): Enhance probabilistic analysis
7938 for long-stride pruning.
7939 (compute_miss_rate): New function to compute the probability
7940 that two memory references access different cache lines.
7941
7942 2009-08-13 Dave Korn <dave.korn.cygwin@gmail.com>
7943
7944 * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
7945
7946 2009-08-13 Richard Guenther <rguenther@suse.de>
7947
7948 PR middle-end/41047
7949 * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
7950 use the constant pointer type.
7951 * gimplify.c (canonicalize_addr_expr): Canonicalize independent
7952 of CV qualifiers on the target pointer type.
7953 * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
7954 conversion check before restrict check.
7955
7956 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
7957
7958 PR target/41029
7959 * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
7960
7961 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
7962
7963 * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
7964
7965 2009-08-12 Richard Guenther <rguenther@suse.de>
7966
7967 PR tree-optimization/41011
7968 * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
7969 and reference constructing.
7970
7971 2009-08-12 Xinliang David Li <davidxl@google.com>
7972
7973 PR tree-optimization/41012
7974 * tree-flow.h : New external interface.
7975 * gimple-low.c (check_call_arg): Change to public function.
7976 Remove argument mismatch check in lowering.
7977 * tree-inline.h (tree_can_inline_p): Interface change.
7978 * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
7979 into this function.
7980 * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
7981 Call change to tree_can_inline_p function.
7982 (cgraph_decide_inlining_incrementally): Ditto.
7983
7984 2009-08-12 Richard Sandiford <rdsandiford@googlemail.com>
7985
7986 PR tree-optimization/41031
7987 * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
7988 on the partition variable rather than promote_mode on the source
7989 type. Assert that the partition variable's type has the same
7990 mode as the source value's.
7991
7992 2009-08-12 Paolo Bonzini <bonzini@gnu.org>
7993
7994 * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
7995 for for_return == 2.
7996 * function.c (assign_parm_setup_reg): Use for_return == 2, improve
7997 comments.
7998 * calls.c (expand_call): Fix typo.
7999 * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
8000 and PARM_DECL.
8001 * stmt.c (expand_value_return): Use promote_function_mode to copy out
8002 of pseudo.
8003 * targhooks.c (default_promote_function_mode): Handle for_return == 2.
8004 * config/cris/cris.c (cris_promote_function_mode): Likewise.
8005 * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
8006 * config/pa/pa.c (pa_promote_function_mode): Likewise.
8007
8008 2009-08-12 Andrew Haley <aph@redhat.com>
8009
8010 * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
8011
8012 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8013
8014 PR bootstrap/40103
8015 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
8016
8017 2009-08-12 Richard Guenther <rguenther@suse.de>
8018
8019 * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
8020 * gimplify.c (gimplify_modify_expr): Do not use
8021 lang_hooks.types_compatible_p.
8022 * tree-ssa.c (useless_type_conversion_p): For aggregates
8023 just return false if the canonical types differ.
8024
8025 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8026
8027 PR middle-end/40980
8028 * sese.c (convert_for_phi_arg): New.
8029 (add_guard_exit_phis): Use convert_for_phi_arg.
8030
8031 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8032
8033 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
8034 unknown subscript upper bounds.
8035
8036 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8037 Pranav Garg <pranav.garg2107@gmail.com>
8038
8039 * graphite-interchange.c (gather_access_strides): Removed.
8040 (ppl_max_for_le): New.
8041 (build_linearized_memory_access): New.
8042 (memory_stride_in_loop): New.
8043 (pbb_interchange_profitable_p): Reimplemented.
8044 * graphite-ppl.h (ppl_new_id_map): New.
8045 (ppl_interchange): New.
8046
8047 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8048
8049 * graphite-interchange.c (compute_subscript): Removed.
8050 (compute_array_size_cstr): Removed.
8051 (compute_array_size_poly): Removed.
8052 (compute_array_size): Removed.
8053 (gather_access_strides_poly): Removed.
8054 (gather_access_strides): Empty.
8055
8056 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8057
8058 * graphite-dependences.c (dependence_polyhedron_1): Replace
8059 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
8060 (graphite_legal_transform_dr): Same.
8061 (graphite_carried_dependence_level_k): Same.
8062 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
8063 Initialize PDR_NB_SUBSCRIPTS.
8064 (print_pdr_access_layout): Replace pdr_nb_subscripts with
8065 PDR_NB_SUBSCRIPTS.
8066 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
8067 (PDR_NB_SUBSCRIPTS): New.
8068 (pdr_nb_subscripts): Removed.
8069 (pdr_dim): Simplified.
8070 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
8071 with PDR_NB_SUBSCRIPTS.
8072
8073 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8074
8075 * graphite-interchange.c (compute_array_size): Remove use of
8076 PDR_DATA_CONTAINER.
8077 * graphite-poly.c (new_poly_dr): Remove argument data_container.
8078 Do not initialize PDR_DATA_CONTAINER.
8079 (print_pdr): Do not print PDR_DATA_CONTAINER.
8080 * graphite-poly.h (struct poly_dr): Remove data_container field.
8081 (PDR_DATA_CONTAINER): Removed.
8082 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
8083 PDR_DATA_CONTAINER.
8084 (build_poly_dr): Same.
8085
8086 2009-08-12 Konrad Trifunovic <konrad.trifunovic@gmail.com>
8087 Sebastian Pop <sebastian.pop@amd.com>
8088
8089 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
8090 copy of the dependence polyhedron. Free the temporary objects.
8091 (graphite_carried_dependence_level_k): Free unused objects before
8092 returning.
8093
8094 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8095
8096 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
8097 Early return without analyzing the data dependences if no
8098 transform has been done. Call restore_scattering if the transform
8099 is not legal.
8100 (graphite-interchange.c): Same.
8101 * graphite-poly.c (print_scattering_function): Test for
8102 PBB_TRANSFORMED.
8103 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
8104 (apply_poly_transforms): Do not gcc_assert that
8105 the transform is legal.
8106 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
8107 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
8108 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
8109 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
8110 * graphite-poly.h (struct poly_scattering): New.
8111 (struct poly_bb): Add original, transformed, and saved fields.
8112 Remove transformed_scattering, original_scattering,
8113 nb_local_variables and nb_scattering_transform fields.
8114 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
8115 (poly_scattering_new): New.
8116 (poly_scattering_free): New.
8117 (poly_scattering_copy): New.
8118 (store_scattering_pbb): New.
8119 (store_scattering): New.
8120 (restore_scattering_pbb): New.
8121 (restore_scattering): New.
8122 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
8123 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
8124
8125 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8126
8127 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
8128 (print_scop): Same.
8129
8130 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8131
8132 * Makefile.in (graphite.o): Depends on PREDICT_H.
8133 * graphite.c: Include predict.h.
8134 (graphite_finalize): Call tree_estimate_probability.
8135 * predict.c (predict_loops): Do not call scev_initialize and
8136 scev_finalize.
8137 (tree_estimate_probability_bb): New.
8138 (tree_estimate_probability): Do not initialize loops: move that
8139 code to the driver. Call tree_estimate_probability_bb.
8140 (tree_estimate_probability_driver): New.
8141 (pass_profile): Use tree_estimate_probability_driver.
8142 * predict.h (tree_estimate_probability): Declared.
8143
8144 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8145
8146 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
8147 * graphite-dependences.c (graphite_legal_transform): Add time to
8148 TV_GRAPHITE_DATA_DEPS.
8149 (dependency_between_pbbs_p): Same.
8150 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
8151
8152 2009-08-12 Andrey Belevantsev <abel@ispras.ru>
8153
8154 PR rtl-optimization/41033
8155 * alias.c (nonoverlapping_component_refs_p): Punt when strict
8156 aliasing is disabled.
8157
8158 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
8159
8160 * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
8161 si_mask_operand, and_load_operand, low_bitmask_operand,
8162 and_reg_operand, and_operand): New predicates.
8163 * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
8164 * config/mips/mips.c (and_operands_ok): New function.
8165 * config/mips/mips-protos.h (and_operands_ok): Declare it.
8166 * config/mips/mips.md (move_type): Add ext_ins and logical.
8167 (type): Handle them.
8168 (and<mode>3): Use and_reg_operand as the second operand's predicate.
8169 (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
8170 shift_shift. Remove commutative constraint modifier.
8171 (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
8172 shift_shift.
8173 (*clear_upper32_dext): Remove define_insn_and_split.
8174 (*clear_upper32): Turn this define_insn_and_split ...
8175 (splitter for ANDing register with 0xffff_ffff): .. into this.
8176
8177 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
8178
8179 * combine.c (try_widen_shift_mode): Factor out code to check if an
8180 integer constant is a low-order bitmask from here ...
8181 * rtlanal.c (low_bitmask_len): ... to here.
8182 * rtl.h (low_bitmask_len): Declare.
8183
8184 2009-08-11 Uros Bizjak <ubizjak@gmail.com>
8185
8186 PR target/8603
8187 * config/alpha/alpha.md (addsi3): Remove expander.
8188 (addsi3): Rename from *addsi3_internal insn pattern.
8189 (subsi3): Remove expander.
8190 (subsi3): Rename from *subsi3_internal insn pattern.
8191
8192 2009-08-11 Douglas B Rupp <rupp@gnat.com>
8193
8194 * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
8195 FWRITE_UNLOCKED.
8196
8197 2009-08-11 Vasiliy Fofanov <fofanov@adacore.com>
8198 Eric Botcazou <botcazou@adacore.com>
8199 Douglas B Rupp <rupp@gnat.com>
8200
8201 * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
8202 that records that fit in 64 bits are returned by immediate value,
8203 as required by OpenVMS Calling Standard.
8204 (function_value): Adjust for above modification.
8205 (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
8206 virtual_incoming_args_rtx as base object, not next_arg.
8207 * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
8208
8209 2009-08-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8210
8211 * reload.c (find_reloads_subreg_address): Check the original
8212 req_equiv_mem address to detect the case where an address is
8213 not valid in the outer mode.
8214
8215 2009-08-11 Richard Guenther <rguenther@suse.de>
8216
8217 PR bootstrap/40788
8218 * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
8219
8220 2009-08-10 Douglas B Rupp <rupp@gnat.com>
8221
8222 * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
8223 (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
8224
8225 2009-08-10 Olivier Hainque <hainqueu@adacore.com>
8226 Douglas B Rupp <rupp@gnat.com>
8227
8228 * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
8229 PT_STACK when frame_pointer_needed on OpenVMS.
8230 (alpha_pv_save_size, alpha_using_fp): Remove.
8231 (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
8232 with proper processing for PT_NULL.
8233 (alpha_vms_initial_elimination_offset): New function. Support for
8234 INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
8235 (alpha_sa_size): Force procedure type to PT_STACK when
8236 frame_pointer_needed on OpenVMS.
8237 * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
8238 (alpha_using_fp): Likewise.
8239 (alpha_vms_can_eliminate): Add prototype.
8240 (alpha_vms_initial_elimination_offset): Likewise.
8241 * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
8242 Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
8243
8244 2009-08-10 Eric Botcazou <botcazou@adacore.com>
8245 Douglas B Rupp <rupp@gnat.com>
8246
8247 * config/alpha/alpha.c (common_object_handler): New function.
8248 (vms_attribute_table): Declare a single attribute "common_object".
8249 (vms_output_aligned_decl_common): New global function.
8250 (SECTION_VMS_OVERLAY): Delete.
8251 (SECTION_VMS_GLOBAL): Likewise.
8252 (SECTION_VMS_INITIALIZE): Likewise.
8253 (vms_asm_named_section): Remove support for above flags.
8254 (vms_section_type_flags): Delete.
8255 (TARGET_SECTION_TYPE_FLAGS): Likewise.
8256 * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
8257 * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
8258 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
8259
8260 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
8261
8262 PR target/41015
8263 * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
8264 (sub_ddmmss): Likewise.
8265
8266 2009-08-10 Andreas Tobler <a.tobler@schweiz.org>
8267
8268 PR bootstrap/41018
8269 * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
8270 year.
8271
8272 2009-08-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8273
8274 PR target/37053
8275 * reload1.c (reload_as_needed): Use cancel_changes to completely
8276 undo a failed replacement attempt.
8277
8278 2009-08-10 Richard Guenther <rguenther@suse.de>
8279
8280 PR middle-end/41006
8281 * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
8282 (useless_type_conversion_p): ... here. Require pointer targets
8283 to be compatible.
8284
8285 2009-08-10 Dodji Seketeli <dodji@redhat.com>
8286
8287 PR c++/40866
8288 * tree-inline.c (copy_statement_list): The resulting copy shouldn't
8289 loose the original type of the statement list.
8290
8291 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8292
8293 * config/alpha/alpha.c: Include libfuncs.h
8294 (avms_asm_output_extern): New function.
8295 (alpha_init_libfuncs): Init some decc libfuncs.
8296 * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
8297 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
8298 (DO_CRTL_NAMES): Define.
8299 (LIB_SPEC): Remove.
8300 * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef.
8301 (LONG_TYPE_SIZE): Define.
8302 (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
8303 (SUBTARGET_SWITCHES): Define malloc64 switch.
8304 (TARGET_DEFAULT): Default MASK_MALLOC64 set.
8305 (MASK_RETURN_ADDR): Define.
8306 doc/invoke.texi (mmalloc64): Document switch.
8307
8308 2009-08-09 Olivier Hainque <hainque@adacore.com>
8309 Douglas B Rupp <rupp@gnat.com>
8310
8311 * config/alpha/alpha.c (struct machine_function): New flag for VMS,
8312 uses_condition_handler.
8313 (alpha_expand_builtin_establish_vms_condition_handler): New expander.
8314 (alpha_expand_builtin_revert_vms_condition_handler): New expander.
8315 (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
8316 and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
8317 (code_for_builtin): New insn codes for the new alpha_builtins.
8318 (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
8319 (alpha_sa_size): Account for uses_condition_handler.
8320 (alpha_expand_prologue): Likewise.
8321 (alpha_start_function): Likewise.
8322 (alpha_expand_epilogue): Likewise.
8323 * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
8324 establish/revert expanders.
8325 * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
8326 * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
8327 New expander, resorting to the alpha.c associated function.
8328 (builtin_revert_vms_condition_handler): Likewise.
8329 * config/alpha/vms-gcc_shell_handler.c: New file. Implements
8330 __gcc_shell_handler, the static VMS condition handler used as
8331 an indirection wrapper to the current dynamically established
8332 handler.
8333 * config/alpha/vms-unwind.h: Complete rewrite.
8334 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
8335 * config/alpha/vms.h (MD_UNWIND_SUPPORT):
8336
8337 2009-08-09 Eric Botcazou <botcazou@adacore.com>
8338 Douglas B Rupp <rupp@gnat.com>
8339
8340 * config/alpha/alpha.c (alpha_links): Add 'target' field.
8341 (alpha_need_linkage): Handle aliases. Return function symbol.
8342 (alpha_use_linkage): Rename 'linkage' argument to 'func'.
8343 Use ultimate alias target for the linkage name.
8344 * config/alpha/alpha.md (movmemdi): Use the symbol returned
8345 by alpha_need_linkage for the function symbol.
8346 (setmemdi): Likewise.
8347
8348 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8349
8350 * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
8351 * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
8352 (ASM_WEAKEN_LABEL): Define.
8353 (CRT_CALL_STATIC_FUNCTION): Define.
8354 (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
8355 (ENDFILE_SPEC): Define.
8356 (INIT_SECTION_ASM_OP): Define.
8357 * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
8358 * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
8359 crtend.o crtendS.o.
8360 (MULTILIB_OSDIRNAMES): Define.
8361 (shlib_version): Define.
8362 (SHLIB_EXT): Define.
8363 (SHLIB_OBJS): Define.
8364 (SHLIB_NAME): Define.
8365 (SHLIB_MULTILIB): Define.
8366 (SHLIB_INSTALL): Define.
8367 (SHLIB_SYMVEC): Define.
8368 (SHLIB_SYMVECX2): Define.
8369 (SHLIB_LINK): Define.
8370
8371 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8372
8373 * config/alpha/alpha.c (alpha_initialize_trampoline):
8374 Initialize VMS trampoline IAW ABI for bounded procedure calls.
8375 (alpha_start_function): Emit transfer address on nested functions
8376 for VMS trampoline call.
8377 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
8378 since no longer used.
8379 * config/alpha/vms-tramp.asm: Remove.
8380 * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
8381 since now only data initialized at runtime.
8382
8383 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8384
8385 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
8386 (LINK_GCC_C_SEQUENCE_SPEC): Define.
8387 (MD_EXEC_PREFIX): Remove, no longer used.
8388 (MD_STARTFILE_PREFIX): Likewise.
8389 (INCLUDE_DEFAULTS): Likewise.
8390 * config/alpha/t-vms:
8391 (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
8392
8393 2009-08-09 Richard Guenther <rguenther@suse.de>
8394
8395 PR tree-optimization/41016
8396 * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
8397 (operand_precision): Remove.
8398 (integral_operand_p): Likewise.
8399 (recognize_single_bit_test): Adjust.
8400
8401 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
8402
8403 * c-common.c (c_fully_fold_internal): Issue a warning if a binary
8404 operation overflows. Likewise non-cast unary arithmetic.
8405 If one arm of a conditional expression is always taken,
8406 inhibit evaluation warnings for the other arm. Likewise inhibit
8407 evaluation warnings for the second && or || operand if the first
8408 operand is enough to determine the result.
8409 * c-typeck.c (build_conditional_expr): Apply the same inhibition
8410 rules here.
8411 (build_binary_op): Prevent duplicate evaluation warnings.
8412
8413 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
8414
8415 * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
8416 and destination have different modes, Use promote_mode to
8417 determine the signedness of the conversion. Assert that the
8418 promoted source mode matches the destination mode. Don't pass
8419 the destination and destination mode to expand_expr if the source
8420 mode is different. Simplify conversion logic.
8421
8422 2009-08-09 Ira Rosen <irar@il.ibm.com>
8423
8424 PR tree-optimization/41008
8425 * tree-vect-loop.c (vect_is_simple_reduction): Get operands
8426 from condition only in case it's a comparison. Adjust checks.
8427
8428 2009-08-09 Bernd Schmidt <bernd.schmidt@analog.com>
8429
8430 * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
8431 * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
8432 * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
8433 (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
8434 (dump_cand): Handle them.
8435 (struct iv_cand): New members COST_STEP and AINC_USE.
8436 (stmt_after_increment): Likewise.
8437 (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos. All
8438 callers changed. Use gimple_uid comparison instead of scanning.
8439 (add_candidate_1): When looking for identical candidates, take
8440 AINC_USE into account. Set it for new candidates.
8441 (force_expr_to_var_cost): Cast target_spill_cost to int.
8442 (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
8443 All callers changed. Check for availability of autoinc addressing
8444 modes, both in general for a given mode, and in the specific use case.
8445 (get_computation_cost_at): New argument CAN_AUTOINC. All callers
8446 changed.
8447 (get_computation_cost): Likewise.
8448 (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
8449 add_autoinc_candidates): New static functions.
8450 (add_candidate): Call add_autoinc_candidates for candidates based on
8451 a USE_ADDRESS use.
8452 (find_iv_candidates): Call set_autoinc_for_original_candidates.
8453 (determine_use_iv_cost_address): If we have an autoinc candidate at
8454 the matching use, verify autoinc is possible and subtract the cost
8455 of the candidate's step from the cost.
8456 (determine_iv_cost): Record the cost of the increment in the COST_STEP
8457 member of the candidate.
8458 (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
8459 determine_use_iv_costs. Call renumber_gimple_stmt_uids_in_blocks.
8460
8461 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8462
8463 * config.build (ia64-hp-*vms*): New target.
8464 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8465 with ia64-hp-*vms*.
8466 * config.gcc (ia64-hp-*vms*): New target.
8467 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8468 with ia64-hp-*vms*.
8469 * config.host (ia64-hp-*vms*): New target.
8470 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8471 with ia64-hp-*vms*.
8472
8473 2009-08-08 Richard Guenther <rguenther@suse.de>
8474
8475 PR tree-optimization/40991
8476 * tree-ssa-pre.c (eliminate): Delay purging EH edges.
8477
8478 2009-08-08 Richard Sandiford <rdsandiford@googlemail.com>
8479
8480 * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
8481 mode check. Do truncations in an integer mode.
8482 (force_to_mode): Handle subregs for all mode types. Only do
8483 arithmetic simplifications on integer modes.
8484
8485 2009-08-07 Richard Guenther <rguenther@suse.de>
8486
8487 PR tree-optimization/40999
8488 * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
8489 (maybe_fold_reference): Lookup constant initializers.
8490 (fold_gimple_assign): Likewise.
8491
8492 2009-08-07 Richard Guenther <rguenther@suse.de>
8493
8494 * tree-ssa.c (useless_type_conversion_p_1): Only for types
8495 that require structural equality defer to the langhook.
8496
8497 2009-08-07 Martin Jambor <mjambor@suse.cz>
8498
8499 * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
8500 comments.
8501 (struct ipa_pass_through_data): New type.
8502 (struct ipa_ancestor_jf_data): New type.
8503 (union jump_func_value): Removed field formal_id, added fields
8504 pass_through and ancestor.
8505 (struct ipa_param_call_note): Changed type of formal_id to int from
8506 unsigned.
8507 * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
8508 operations jump functions and ancestor jump functions.
8509 (compute_complex_pass_through): New function.
8510 (compute_scalar_jump_functions): Call compute_complex_pass_through,
8511 reflect changes in the jump function strucutre.
8512 (update_jump_functions_after_inlining): Ignore complex pass-through
8513 and ancestor jump functions.
8514 * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
8515 polynomial pass-through with operation jump functions.
8516
8517 2009-08-07 Jakub Jelinek <jakub@redhat.com>
8518
8519 * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
8520 fde->dw_fde_begin as begin label instead of hot/cold label.
8521 Use LLSDAC label instead of LLSDA for second section lsda.
8522 (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC
8523 label instead of LLSDA if it is true.
8524 (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
8525 callers.
8526 * except.c (add_call_site, dw2_size_of_call_site_table): Add
8527 SECTION argument. Use it as index into crtl->eh.call_site_record
8528 array.
8529 (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument,
8530 use it to determine how to print table entries instead of using
8531 #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold
8532 label instead of normal begin label as base.
8533 (sjlj_assign_call_site_values): Adjust add_call_site caller.
8534 (convert_to_eh_region_ranges): When doing hot/cold partitioning,
8535 ensure no EH range spans between sections and that landing pads
8536 are always in the corresponding section.
8537 (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
8538 for crtl->eh.call_site_record being an array rather than scalar.
8539 (output_one_function_exception_table): New function, copied
8540 from output_function_exception_table. Adjust
8541 dw2_size_of_call_site_table, dw2_output_call_site_table
8542 callers. For SECOND section use *C suffixed labels.
8543 (output_function_exception_table): Call
8544 output_one_function_exception_table and, when doing hot/cold
8545 partitioning, also another time for the second section.
8546 * opts.c: Include except.h.
8547 (decode_options): Allow -freorder-blocks-and-partition with
8548 exceptions, unless SJLJ or TARGET_UNWIND_INFO.
8549 * Makefile.in (opts.o): Depend on $(EXCEPT_H).
8550 * function.h (struct rtl_eh): Change call_site_record from
8551 scalar into array of 2 elements.
8552
8553 2009-08-07 Martin Jambor <mjambor@suse.cz>
8554
8555 * ipa-prop.c (count_formal_params_1): New function.
8556 (ipa_get_vector_of_formal_parms): New function.
8557 (get_vector_of_formal_parm_types): New function.
8558 (ipa_modify_formal_parameters): New function.
8559 (ipa_modify_call_arguments): New function.
8560 (index_in_adjustments_multiple_times_p): New function.
8561 (ipa_combine_adjustments): New function.
8562 (ipa_dump_param_adjustments): New function.
8563 * ipa-prop.h (struct ipa_parm_adjustment): New type.
8564 (ipa_get_vector_of_formal_parms): Declare.
8565 (ipa_modify_formal_parameters): Declare.
8566 (ipa_modify_call_arguments): Declare.
8567 (ipa_combine_adjustments): Declare.
8568 (ipa_dump_param_adjustments): Declare.
8569 (build_ref_for_offset): Declare.
8570 * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
8571 * tree-sra.c: Include ipa-prop.c.
8572 (build_ref_for_offset): Make public.
8573
8574 2009-08-06 Neil Vachharajani <nvachhar@gmail.com>
8575
8576 * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
8577
8578 2009-08-06 Thomas Schwinge <tschwinge@gnu.org>
8579
8580 * gcc/doc/extend.texi (__builtin_extract_return_address)
8581 (__builtin_frob_return_address): Document.
8582
8583 2009-08-06 Paul Brook <paul@codesourcery.com>
8584
8585 * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
8586 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
8587 implementation on ARMv6-M.
8588
8589 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8590
8591 * doc/extend.texi (pcs): Document new attribute for ARM.
8592
8593 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8594
8595 * arm.c (pcs_attribute_args): Comment out unsupported attribute
8596 variants.
8597
8598 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8599
8600 * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
8601 warning ().
8602
8603 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8604
8605 * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
8606
8607 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8608
8609 Merge ARM/hard_vfp_branch to trunk.
8610
8611 2009-08-04 Richard Earnshaw <rearnsha@arm.com>
8612
8613 * arm.c (libcall_eq): New function.
8614 (libcall_hash): New function.
8615 (add_libcall): New function.
8616 (arm_libcall_uses_aapcs_base): New function.
8617 (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
8618 libcalls using the base PCS.
8619 (arm_init_cumulative_args): Likewise.
8620
8621 2009-07-20 Joseph Myers <joseph@codesourcery.com>
8622
8623 * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
8624 Use base ABI for conversion libfuncs between HFmode and SFmode.
8625
8626 2009-05-12 Joseph Myers <joseph@codesourcery.com>
8627
8628 * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
8629 V4SImode as representatives of all 64-bit and 128-bit vector
8630 types. Allow vector types without vector modes.
8631 (aapcs_vfp_is_call_or_return_candidate): Handle vector types
8632 without vector modes like BLKmode.
8633 (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
8634 BLKmode. Avoid unsupported vector modes or TImode moves for
8635 non-TARGET_NEON.
8636 (aapcs_vfp_allocate_return_reg): Likewise.
8637 (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
8638 V8QImode if TARGET_NEON || TARGET_IWMMXT.
8639
8640 2009-05-12 Joseph Myers <joseph@codesourcery.com>
8641
8642 * config/arm/arm.c (arm_handle_pcs_attribute): New.
8643 (arm_get_pcs_model): Pass attribute arguments to
8644 arm_pcs_from_attribute.
8645 (arm_init_cumulative_args): Use base AAPCS for conversions from
8646 floating-point types to DImode.
8647 (arm_attribute_table): Add pcs attribute.
8648 (arm_handle_pcs_attribute): New.
8649 * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
8650 conversions from floating-point types to DImode, also declare them
8651 to use base AAPCS and declare functions they call to use base
8652 AAPCS and their RTABI names.
8653
8654 2009-05-12 Joseph Myers <joseph@codesourcery.com>
8655
8656 * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
8657 -mfloat-abi=hard not being supported for VFP.
8658
8659 2009-05-11 Kazu Hirata <kazu@codesourcery.com>
8660
8661 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
8662 SYMBOL_REF to hard_libcall_value.
8663
8664 2009-03-05 Joseph Myers <joseph@codesourcery.com>
8665 Richard Earnshaw <rearnsha@arm.com>
8666
8667 * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
8668 has been put on the stack, all remaining co-processory arguments for
8669 that co-processor also go on the stack.
8670
8671 2009-03-05 Joseph Myers <joseph@codesourcery.com>
8672
8673 * config/arm/arm.c (arm_return_in_memory): Handle returning
8674 vectors of suitable size in registers also for AAPCS case.
8675
8676 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
8677
8678 * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
8679
8680 2008-12-09 Richard Earnshaw <rearnsha@arm.com>
8681
8682 ARM Hard-VFP calling convention
8683 * target-def.h (TARGET_LIBCALL_VALUE): New hook.
8684 * target.h (gcc_target): Add libcall_value to table of call hooks.
8685 * targhooks.h (default_libcall_value): Default implementation.
8686 * targhooks.c (default_libcall_value): Likewise.
8687 * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
8688 * optabs.c (expand_unop): Use it.
8689 * expr.h (hard_libcall_value): Pass the function RTX through.
8690 * calls.c (emit_library_call_value_1): Update call to
8691 hard_libcall_value.
8692 * explow.c (hard_libcall_value): Use new target hook.
8693 * testsuite/lib/target-supports.exp
8694 (check_effective_target_arm_hard_vfp_ok): New hook.
8695 (check_effective_target_arm_neon_ok): Improve test for neon
8696 availability.
8697 * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
8698 * config/arm/arm.c: Include cgraph.h
8699 (TARGET_FUNCTION_VALUE): Override default hook.
8700 (arm_pcs_default): New variable.
8701 (arm_override_options): Don't fault hard calling convention with VFP.
8702 Add support for AAPCS variants.
8703 (arm_function_value): Make static. Handle AAPCS variants.
8704 (arm_libcall_value): New function.
8705 (arm_apply_result_size): Handle VFP registers in results.
8706 (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
8707 conventions.
8708 (pcs_attribute_args): New variable.
8709 (arm_pcs_from_attribute): New function.
8710 (arm_get_pcs_model): New function.
8711 (aapcs_vfp_cum_init): New function.
8712 (aapcs_vfp_sub_candidate): New function.
8713 (aapcs_vfp_is_return_candidate): New function.
8714 (aapcs_vfp_is_call_candidate): New function.
8715 (aapcs_vfp_allocate): New function.
8716 (aapcs_vfp_allocate_return_reg): New function.
8717 (aapcs_vfp_advance): New function.
8718 (aapcs_cp_arg_layout): New variable.
8719 (aapcs_select_call_coproc): New function.
8720 (aapcs_select_return_coproc): New function.
8721 (aapcs_allocate_return_reg): New function.
8722 (aapcs_libcall_value): New function.
8723 (aapcs_layout_arg): New function.
8724 (arm_init_cumulative_args): Initialize AAPCS args data.
8725 (arm_function_arg): Handle AAPCS variants using new interface.
8726 (arm_arg_parital_bytes): Likewise.
8727 (arm_function_arg_advance): New function.
8728 (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
8729 calling conventions.
8730 (arm_setup_incoming_varargs): Handle new AAPCS args data.
8731 * arm.h (NUM_VFP_ARG_REGS): Define.
8732 (LIBCALL_VALUE): Update.
8733 (FUNCTION_VALUE): Delete.
8734 (FUNCTION_VALUE_REGNO_P): Add VFP regs.
8735 (arm_pcs): New enum.
8736 (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
8737 (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
8738 (FUNCTION_ARG_REGNO_P): Add VFP regs.
8739 * arm-protos.h (arm_function_arg_advance): Add.
8740 (aapcs_libcall_value): Add.
8741 (arm_function_value): Delete.
8742
8743 2009-08-06 Uros Bizjak <ubizjak@gmail.com>
8744 H.J. Lu <hongjiu.lu@intel.com>
8745
8746 PR target/40957
8747 * config/i386/i386.c (standard_sse_mode_p): Remove.
8748 (standard_sse_constant_p): Return 2 for integer mode
8749 vector_all_ones_operand when SSE2 is enabled.
8750 (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
8751 (ix86_expand_vector_move): Do not check for negative values from
8752 standard_sse_constant_p.
8753
8754 2009-08-06 Richard Guenther <rguenther@suse.de>
8755
8756 * tree-ssa.c (useless_type_conversion_p_1): Make function and
8757 array type comparisons frontend independent.
8758 * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
8759 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
8760 out array reference lower bound and element size operands.
8761 (ao_ref_init_from_vn_reference): Properly compute the offset
8762 for ARRAY_RANGE_REF.
8763 (vn_reference_fold_indirect): Fill out array reference lower
8764 bound and element size operands.
8765 * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
8766 a non gimple valued reference operand which can happen for
8767 array reference lower bound or element size.
8768 (create_component_ref_by_pieces_1): Properly generate the
8769 element size operand for array references.
8770
8771 2009-08-06 Richard Guenther <rguenther@suse.de>
8772
8773 PR tree-optimization/40964
8774 * tree.c (iterative_hash_host_wide_int): Export.
8775 * tree.h (iterative_hash_host_wide_int): Declare.
8776 * tree-ssa-structalias.c (heapvar_map): New struct.
8777 (heapvar_map_eq): New function.
8778 (heapvar_map_hash): Likewise.
8779 (heapvar_lookup): Adjust.
8780 (heapvar_insert): Likewise.
8781 (make_constraint_from_heapvar): Allow multiple heap variables
8782 per decl at different offsets.
8783 (init_alias_heapvars): Adjust.
8784
8785 2009-08-04 David Daney <ddaney@caviumnetworks.com>
8786
8787 * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
8788 * mips_output_sync_loop (mips_output_sync_loop): Only emit
8789 trailing sync if TARGET_SYNC_AFTER_SC.
8790
8791 2009-08-05 David Daney <ddaney@caviumnetworks.com>
8792
8793 * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
8794 compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
8795 sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
8796 sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
8797 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
8798 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
8799 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
8800 sync_new_nand<mode>, sync_lock_test_and_set<mode>,
8801 test_and_set_12): Rewrite calls to mips_output_sync_loop.
8802 * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
8803 the prototype declaration match the definition.
8804 * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync
8805 instructions explicitly. Add barrier_before and operands
8806 parameters.
8807 * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
8808 MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
8809 MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
8810 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
8811 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
8812 MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
8813
8814 2009-08-05 Andrew Pinski <pinskia@gmail.com>
8815
8816 * tree-ssa-alias.c: Fix intervals to use [) syntax.
8817
8818 2009-08-05 Uros Bizjak <ubizjak@gmail.com>
8819 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
8820
8821 PR target/40906
8822 * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
8823 source operand.
8824
8825 2009-08-05 Jakub Jelinek <jakub@redhat.com>
8826
8827 PR rtl-optimization/40924
8828 * dse.c (canon_address): Before calling cselib_expand_value_rtx
8829 make sure canon_rtx (mem_address) isn't simpler than
8830 canon_rtx (expanded_mem_address).
8831
8832 2009-08-05 Li Feng <nemokingdom@gmail.com>
8833
8834 * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
8835 for each poly_bb_p.
8836 (build_scop_drs): Build alias set for each SCoP.
8837
8838 2009-08-04 Sandra Loosemore <sandra@codesourcery.com>
8839
8840 * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
8841 * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
8842 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
8843 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8844 (BASE_DRIVER_SELF_SPECS): Likewise.
8845
8846 2009-08-04 Andrew Pinski <pinskia@gmail.com>
8847
8848 * tree-ssa-alias.c: Fix some comment typos.
8849
8850 2009-08-04 Kaz Kojima <kkojima@gcc.gnu.org>
8851
8852 * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
8853 ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
8854
8855 2009-08-03 Janis Johnson <janis187@us.ibm.com>
8856
8857 PR c/39902
8858 * simplify-rtx.c (simplify_binary_operation_1): Disable
8859 simplifications for decimal float operations.
8860
8861 2009-08-03 Jakub Jelinek <jakub@redhat.com>
8862
8863 PR middle-end/40943
8864 * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
8865 operand of INDIRECT_REF.
8866
8867 2009-08-03 Uros Bizjak <ubizjak@gmail.com>
8868
8869 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
8870 constants referencing TLS symbols.
8871
8872 2009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
8873
8874 * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
8875 __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
8876
8877 2009-08-03 Richard Guenther <rguenther@suse.de>
8878
8879 * tree.c (make_vector_type): Build a main variant first,
8880 get the canonical one and then build the variant.
8881 * tree-ssa.c (useless_type_conversion_p_1): Handle
8882 fixed-point types.
8883 (useless_type_conversion_p): Conversions to pointers to
8884 incomplete record types are useless.
8885
8886 2009-08-03 Richard Guenther <rguenther@suse.de>
8887
8888 * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
8889 file will be created.
8890 * omp-low.c (pass_diagnose_omp_blocks): Likewise.
8891 * toplev.c (compile_file): Adjust comment.
8892
8893 2009-08-03 Kaz Kojima <kkojima@gcc.gnu.org>
8894
8895 * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
8896 * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
8897 (TARGET_PROMOTE_FUNCTION_MODE): Define.
8898 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
8899 (sh_promote_function_mode): Fix typo.
8900
8901 2009-08-03 Andreas Krebbel <krebbel1@de.ibm.com>
8902
8903 * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
8904
8905 2009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8906
8907 * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
8908 declaration arguments.
8909
8910 2009-08-02 Uros Bizjak <ubizjak@gmail.com>
8911
8912 * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
8913 of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
8914 (ix86_split_ashl): Ditto.
8915 (ix86_expand_vector_init_one_nonzero): Ditto.
8916 (ix86_expand_vector_set): Ditto.
8917 (ix86_expand_reduc_v4sf): Ditto.
8918
8919 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
8920
8921 * explow.c (promote_function_mode): Remove assert.
8922 * config/sh/sh.c (sh_promote_function_mode): Declare.
8923
8924 2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8925
8926 * config/pa/pa.c (pa_promote_function_mode): Declare.
8927 Change to static. Fix promote_mode call.
8928
8929 * gthr-dce.h (CONST_CAST2): Define if not defined.
8930 (__gthread_setspecific): Use CONST_CAST2 to fix warning.
8931
8932 * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
8933
8934 2009-08-01 Paolo Bonzini <bonzini@gnu.org>
8935
8936 * expr.c (store_constructor): Use promote_decl_mode. Remove
8937 now write-only variable unsignedp.
8938 (expand_expr_real_1): Use promote_decl_mode.
8939 * expr.h (promote_function_mode, promote_decl_mode): New.
8940 (promote_mode): Remove last argument.
8941 * function.c (assign_temp): Drop last argument of promote_mode.
8942 (assign_parm_find_data_types): Use promote_function_mode.
8943 (assign_parm_setup_reg): Likewise.
8944 (expand_function_end): Use promote_function_mode.
8945 * calls.c (initialize_argument_information): Use promote_function_mode.
8946 (precompute_arguments): Use promote_mode instead of checking if
8947 only PROMOTE_FUNCTION_MODE is defined.
8948 (expand_call): When making sibcall decisions, use promote_function_mode.
8949 Below, remove an if for targetm.calls.promote_function_return and
8950 and use promote_function_mode.
8951 (emit_library_call_value_1): Use promote_function_mode, fix bug
8952 where promote_mode was passed FOR_CALL == 0 for a return value in an
8953 assertion.
8954 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
8955 * explow.c (promote_function_mode, promote_decl_mode): New.
8956 (promote_mode): Keep only the FOR_CALL == 0 case.
8957 * combine.c (setup_incoming_promotion): Remove test of
8958 promote_function_args. Use promote_function_mode.
8959 * stmt.c (expand_value_return): Use promote_decl_mode.
8960 (expand_decl): Use promote_decl_mode.
8961
8962 * expr.c (store_constructor): Use promote_decl_mode. Remove
8963 now write-only variable unsignedp.
8964 (expand_expr_real_1): Use promote_decl_mode.
8965 * expr.h (promote_function_mode, promote_decl_mode): New.
8966 (promote_mode): Remove last argument.
8967 * function.c (assign_temp): Drop last argument of promote_mode.
8968 (assign_parm_find_data_types): Use promote_function_mode.
8969 (assign_parm_setup_reg): Likewise.
8970 (expand_function_end): Use promote_function_mode.
8971 * calls.c (initialize_argument_information): Use promote_function_mode.
8972 (precompute_arguments): Use promote_mode instead of checking if
8973 only PROMOTE_FUNCTION_MODE is defined.
8974 (expand_call): When making sibcall decisions, use promote_function_mode.
8975 Below, remove an if for targetm.calls.promote_function_return and
8976 and use promote_function_mode.
8977 (emit_library_call_value_1): Use promote_function_mode, fix bug
8978 where promote_mode was passed FOR_CALL == 0 for a return value in an
8979 assertion.
8980 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
8981 * explow.c (promote_function_mode, promote_decl_mode): New.
8982 (promote_mode): Keep only the FOR_CALL == 0 case.
8983 * combine.c (setup_incoming_promotion): Remove test of
8984 promote_function_args. Use promote_function_mode.
8985 * stmt.c (expand_value_return): Use promote_decl_mode.
8986 (expand_decl): Use promote_decl_mode.
8987
8988 * explow.c (promote_function_mode): Just call the target hook.
8989 * targhooks.c (default_promote_function_mode,
8990 default_promote_function_mode_always_promote): New.
8991 * targhooks.h (default_promote_function_mode,
8992 default_promote_function_mode_always_promote): Declare.
8993 * target.h (promote_function_args, promote_function_return): Remove.
8994 (promote_function_mode): New.
8995 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
8996 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8997 (TARGET_PROMOTE_FUNCTION_MODE): New.
8998 (TARGET_CALLS): Adjust.
8999 * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
9000 TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
9001
9002 * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
9003 * config/s390/s390.c (s390_promote_function_mode): ... here,
9004 with pointer handling.
9005 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9006 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9007
9008 * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
9009 * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
9010 with pointer handling.
9011 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9012 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9013
9014 * config/sh/sh-protos.h (sh_promote_function_mode): New.
9015 * config/sh/sh.c (sh_promote_function_mode): New.
9016 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9017 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9018
9019 * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
9020 * config/cris/cris.c (cris_promote_function_mode): ... here.
9021 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9022 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
9023
9024 * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
9025 * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
9026 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9027 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
9028
9029 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
9030 * config/arm/arm.c (arm_promote_function_mode): ... here, without
9031 complex type handling.
9032 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9033 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9034
9035 * config/pa/pa.c (pa_promote_function_mode): New.
9036 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9037 (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9038
9039 * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
9040 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9041 (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
9042 * config/xtensa/xtensa.c: Likewise.
9043 * config/stormy16/stormy16.c: Likewise.
9044 * config/iq2000/iq2000.c: Likewise.
9045 * config/rs6000/rs6000.c: Likewise.
9046 * config/picochip/picochip.c: Likewise.
9047 * config/arc/arc.c: Likewise.
9048 * config/mcore/mcore.c: Likewise.
9049 * config/score/score.c: Likewise.
9050 * config/mips/mips.c: Likewise.
9051 * config/bfin/bfin.c: Likewise.
9052 * config/ia64/ia64.c: Likewise (disabled though).
9053
9054 * config/frv/frv.h: Remove pointless remark.
9055
9056 * doc/tm.texi (PROMOTE_FUNCTION_MODE,
9057 TARGET_PROMOTE_FUNCTION_ARGS,
9058 TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
9059 (TARGET_PROMOTE_FUNCTION_MODE): ... this.
9060
9061 2009-08-01 Sebastian Pop <sebastian.pop@amd.com>
9062
9063 * doc/invoke.texi (-fgraphite-force-parallel): Renamed
9064 -floop-parallelize-all.
9065 * toplev.c (process_options): Rename flag_graphite_force_parallel to
9066 flag_loop_parallelize_all.
9067 * tree-ssa-loop.c (gate_graphite_transforms): Same.
9068 * graphite.c (graphite_transform_loops): Same.
9069 * common.opt: Same.
9070 * graphite-poly.c (apply_poly_transforms): Same.
9071
9072 2009-07-31 Richard Earnshaw <rearnsha@arm.com>
9073
9074 PR tree-optimization/40914
9075 * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
9076 if set, then check the delta field of the PMF record.
9077 (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
9078 (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
9079 call is stored in the delta.
9080
9081 2009-07-31 Adam Nemet <anemet@caviumnetworks.com>
9082
9083 * config/mips/mips.md (*clear_upper32_dext): New pattern.
9084
9085 2009-07-31 Uros Bizjak <ubizjak@gmail.com>
9086
9087 * config/i386/bsd.h (ASM_BYTE): New define.
9088 * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
9089 * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
9090 .byte. Use fputs or putc instead of fprintf where appropriate.
9091 * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use
9092 fputs or putc instead of fprintf where appropriate.
9093 * config/i386/i386elf.h: Ditto.
9094 * config/i386/sysv4.h: Ditto.
9095
9096 * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
9097 * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
9098 (*tls_global_dynamic_64): Ditto.
9099
9100 2009-07-31 Christian Bruel <christian.bruel@st.com>
9101
9102 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
9103
9104 2009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9105
9106 * config/arm/arm.c (arm_arm_address_cost): Fix typo.
9107 Remove dead code for MINUS.
9108
9109 2009-07-31 Anthony Green <green@moxielogic.com>
9110
9111 * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
9112 $r12 in prologue.
9113 (moxie_expand_epilogue): Ditto for epilogue.
9114 (moxie_setup_incoming_varargs): ABI change. Use 5 registers for
9115 incoming arguments.
9116 (moxie_function_arg): Ditto.
9117 (moxie_pass_by_reference): Ditto.
9118 (moxie_arg_partial_bytes): Ditto.
9119 * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
9120 (FUNCTION_ARG_ADVANCE) Ditto.
9121 (REG_PARM_STACK_SPACE) Ditto.
9122 (FUNCTION_ARG_REGNO_P) Dito.
9123
9124 * config.gcc: Add moxie linux config support.
9125 * gcc/config/moxie/uclinux.h: New file.
9126
9127 2009-07-31 DJ Delorie <dj@redhat.com>
9128
9129 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
9130 (UNSPECV_SP_SWITCH_E): New.
9131 (sp_switch_1): Change to an unspec.
9132 (sp_switch_2): Change to an unspec. Don't use post-inc when we
9133 replace $r15.
9134 * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
9135 reference the new stack's address
9136
9137 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9138
9139 * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
9140 graphite-clast-to-gimple.o, graphite-dependences.o,
9141 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
9142 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
9143 (graphite-blocking.o,
9144 graphite-clast-to-gimple.o, graphite-dependences.o,
9145 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
9146 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
9147 * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
9148 * cfgloop.h (struct loop): Add can_be_parallel field.
9149 * common.opt (fgraphite-identity): Moved up.
9150 (fgraphite-force-parallel): New flag.
9151 * graphite.c: Rewrite.
9152 * graphite.h: Rewrite.
9153 * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
9154 after Graphite.
9155 * toplev.c (graphite_out_file): New file descriptor.
9156 (graphite_in_file): New.
9157 (process_options): flag_graphite_force_parallel cannot be used without
9158 Graphite.
9159 * tree-ssa-loop.c: Include toplev.h.
9160 (gate_graphite_transforms): Enable flag_graphite for
9161 flag_graphite_force_parallel.
9162
9163 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9164
9165 * ChangeLog.graphite: New.
9166 * graphite-blocking.c: New.
9167 * graphite-clast-to-gimple.c: New.
9168 * graphite-clast-to-gimple.h: New.
9169 * graphite-dependences.c: New.
9170 * graphite-dependences.h: New.
9171 * graphite-interchange.c: New.
9172 * graphite-poly.c: New.
9173 * graphite-poly.h: New.
9174 * graphite-ppl.c: New.
9175 * graphite-ppl.h: New.
9176 * graphite-scop-detection.c: New.
9177 * graphite-scop-detection.h: New.
9178 * graphite-sese-to-poly.c: New.
9179 * graphite-sese-to-poly.h: New.
9180 * sese.c: New.
9181 * sese.h: New.
9182
9183 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9184
9185 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
9186 * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
9187
9188 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9189
9190 * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
9191 (scev_is_linear_expression): Return false if the evolution is not
9192 affine multivariate.
9193
9194 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9195
9196 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
9197 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
9198
9199 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9200
9201 * tree-data-ref.c (debug_data_references): New.
9202 (debug_data_reference): New.
9203 * tree-data-ref.h (debug_data_references): Declared.
9204 (debug_data_reference): Declared.
9205
9206 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9207
9208 * tree-data-ref.c (stmt_simple_memref_p: Removed.
9209 * tree-data-ref.h (scop_p): Removed.
9210 (struct data_reference): Remove field scop.
9211 (DR_SCOP): Removed.
9212 (stmt_simple_memref_p): Removed.
9213
9214 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9215
9216 * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
9217 * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
9218 basic block empty.
9219
9220 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9221
9222 * doc/invoke.texi (-fgraphite-force-parallel): Documented.
9223
9224 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9225
9226 * doc/invoke.texi (-fgraphite-identity): Documented.
9227
9228 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9229
9230 * tree-scalar-evolution.c: Fix comment.
9231 (instantiate_scev_1): Return unknow from scev instantiation if the
9232 result is not above instantiate_below.
9233
9234 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9235
9236 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
9237 static anymore. Instantiate the symbols that may have been introduced
9238 by chrec_apply.
9239 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
9240 Declared.
9241
9242 2009-07-30 DJ Delorie <dj@redhat.com>
9243
9244 * config/mep/mep.c (mep_asm_init_sections): Add section flags and
9245 .vliw directive to VLIW sections.
9246
9247 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9248
9249 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
9250 New variables.
9251 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
9252 (AUTOHEADER): New variable.
9253 ($(srcdir)/cstamp-h.in): Use it.
9254
9255 2009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
9256 Pat Haugen <pthaugen@us.ibm.com>
9257 Revital Eres <ERES@il.ibm.com>
9258
9259 * config/rs6000/vector.md (VEC_F): Add VSX support.
9260 (VEC_A): Ditto.
9261 (VEC_N): Ditto.
9262 (mov<mode>): Ditto.
9263 (vector_load_<mode>): Ditto.
9264 (vector_store_<mode>): Ditto.
9265 (vector GPR move split): Ditto.
9266 (vec_reload_and_plus_<mptrsize>): Ditto.
9267 (vec_reload_and_reg_<mptrsize>): Ditto.
9268 (add<mode>3): Ditto.
9269 (sub<mode>3): Ditto.
9270 (mul<mode>3): Ditto.
9271 (neg<mode>2): Ditto.
9272 (abs<mode>2): Ditto.
9273 (smin<mode>3): Ditto.
9274 (smax<mode>3): Ditto.
9275 (vector_eq<mode>): Ditto.
9276 (vector_gt<mode>): Ditto.
9277 (vector_ge<mode>): Ditto.
9278 (vector_gtu<mode>): Ditto.
9279 (vector_select_<mode>_uns): Ditto.
9280 (vector_eq_<mode>_p): Ditto.
9281 (vector_gt_<mode>_p): Ditto.
9282 (vector_ge_<mode>_p): Ditto.
9283 (vector_gtu_<mode>_p): Ditto.
9284 (cr6_test_for_zero): Ditto.
9285 (cr6_test_for_zero_reverse): Ditto.
9286 (cr6_test_for_lt): Ditto.
9287 (cr6_test_for_lt_reverse): Ditto.
9288 (xor<mode>3): Ditto.
9289 (ior<mode>3): Ditto.
9290 (and<mode>3): Ditto.
9291 (one_cmpl<mode>2): Ditto.
9292 (nor<mode>2): Ditto.
9293 (andc<mode>2): Ditto.
9294 (float<VEC_int<mode>2): Ditto.
9295 (unsigned_float<VEC_int><mode>2): Ditto.
9296 (fix_trunc<mode><VEC_int>2): Ditto.
9297 (fixuns_trunc<mode><VEC_int>2): Ditto.
9298 (vec_init<mode>):
9299 (vec_set<mode>): Ditto.
9300 (vec_extract<mode>): Ditto.
9301 (vec_interleave_highv4sf): Ditto.
9302 (vec_interleave_lowv4sf): Ditto.
9303 (vec_realign_load_<mode>): Ditto.
9304 (vec_shl_<mode>): Ditto.
9305 (vec_shr_<mode>): Ditto.
9306 (div<mode>3): New patterns for VSX.
9307 (vec_interleave_highv2df): Ditto.
9308 (vec_interleave_lowv2df): Ditto.
9309 (vec_pack_trunc_v2df): Ditto.
9310 (vec_pack_sfix_trunc_v2df): Ditto.
9311 (vec_pack_ufix_trunc_v2df): Ditto.
9312 (vec_unpacks_hi_v4sf): Ditto.
9313 (vec_unpacks_lo_v4sf): Ditto.
9314 (vec_unpacks_float_hi_v4si): Ditto.
9315 (vec_unpacks_float_lo_v4si): Ditto.
9316 (vec_unpacku_float_hi_v4si): Ditto.
9317 (vec_unpacku_float_lo_v4si): Ditto.
9318 (movmisalign<mode>): Ditto.
9319 (vector_ceil<mode>2): New patterns for vectorizing math library.
9320 (vector_floor<mode>2): Ditto.
9321 (vector_btrunc<mode>2): Ditto.
9322 (vector_copysign<mode>3): Ditto.
9323
9324 * config/rs6000/predicates.md (easy_vector_constant_msb): New
9325 predicate for setting the high bit in each word, used for copysign.
9326
9327 * config/rs6000/ppc-asm.h (f19): Whitespace.
9328 (f32-f63): Define if VSX.
9329 (v0-v31): Define if Altivec.
9330 (vs0-vs63): Define if VSX.
9331
9332 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
9333
9334 * config/rs6000/power7.md: New file, provide tuning parameters for
9335 -mcpu=power7.
9336
9337 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
9338 (rs6000_cpu_cpp_builtins): Ditto.
9339 (altivec_overloaded_builtins): Ditto.
9340 (altivec_resolve_overloaded_builtin): Ditto.
9341
9342 * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
9343 debug switch to disable vectorizing simple math builtin
9344 functions.
9345
9346 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
9347 Vectorize simple math builtin functions.
9348 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
9349 hook to vectorize math builtins.
9350 (rs6000_override_options): Enable -mvsx on -mcpu=power7.
9351 (rs6000_builtin_conversion): Add VSX/power7 support.
9352 (rs6000_builtin_vec_perm): Ditto.
9353 (vsplits_constant): Add support for loading up a vector constant
9354 with just the high bit set in each part.
9355 (rs6000_expand_vector_init): Add VSX/power7 support.
9356 (rs6000_expand_vector_set): Ditto.
9357 (rs6000_expand_vector_extract): Ditto.
9358 (rs6000_emit_move): Ditto.
9359 (bdesc_3arg): Ditto.
9360 (bdesc_2arg): Ditto.
9361 (bdesc_1arg): Ditto.
9362 (rs6000_expand_ternop_builtin): Ditto.
9363 (altivec_expand_builtin): Ditto.
9364 (rs6000_expand_unop_builtin): Ditto.
9365 (rs6000_init_builtins): Ditto.
9366 (altivec_init_builtins): Ditto.
9367 (builtin_function_type): Ditto.
9368 (rs6000_common_init_builtins): Ditto.
9369 (rs6000_handle_altivec_attribute); Ditto.
9370 (rs6000_mangle_type): Ditto.
9371 (rs6000_vector_mode_supported_p): Ditto.
9372 (rs6000_mode_dependent_address): Altivec addresses with AND -16
9373 are mode dependent.
9374
9375 * config/rs6000/vsx.md: New file for VSX support.
9376
9377 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
9378 identifing values with just the most significant bit set.
9379 (enum rs6000_builtins): Add builtins for VSX. Add simple math
9380 vectorized builtins.
9381
9382 * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
9383 (UNSPEC_VRFIM): Delete.
9384 (splitter for loading up vector with most significant bit): New
9385 splitter for vectorizing copysign.
9386 (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for
9387 vectorizing simple math functions.
9388 (altivec_vrfip): Add support for vectorizing simple math functions.
9389 (altivec_vrfim): Ditto.
9390 (altivec_copysign_v4sf3): New insn for Altivec copysign support.
9391
9392 * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
9393 (power7.md, vsx.md): Include for power7 support.
9394 (copysigndf3): Use VSX instructions if -mvsx.
9395 (negdf2_fpr): Ditto.
9396 (absdf2_fpr): Ditto.
9397 (nabsdf2_fpr): Ditto.
9398 (adddf3_fpr): Ditto.
9399 (subdf3_fpr): Ditto.
9400 (muldf3_fpr): Ditto.
9401 (divdf3_fpr): Ditto.
9402 (fix_truncdfdi2_fpr): Ditto.
9403 (cmpdf_internal1): Ditto.
9404 (fred, fred_fpr): Convert into expander/insn to add VSX support.
9405 (btruncdf2, btruncdf2_fpr): Ditto.
9406 (ceildf2, ceildf2_fpr): Ditto.
9407 (floordf2, floordf2_fpr): Ditto.
9408 (floatdidf2, floatdidf2_fpr): Ditto.
9409 (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx.
9410 (fmsubdf4_fpr): Ditto.
9411 (fnmadddf4_fpr_1): Ditto.
9412 (fnmadddf4_fpr_2): Ditto.
9413 (fnmsubdf4_fpr_1): Ditto.
9414 (fnmsubdf4_fpr_2): Ditto.
9415 (fixuns_truncdfdi2): Add expander for VSX support.
9416 (fix_truncdfdi2): Ditto.
9417 (fix_truncdfsi2): Ditto.
9418 (ftruncdf2): Ditto.
9419 (btruncsf2): Whitespace.
9420 (movdf_hardfloat32): Add support for VSX registers.
9421 (movdf_softfloat32): Ditto.
9422 (movdf_hardfloat64): Ditto.
9423 (movdf_hardfloat64_mfpgpr): Ditto.
9424 (movdf_softfloat64): Ditto.
9425 (movti splitters): Add check for vector registers supporting
9426 TImode in the future.
9427 (bpermd): Add power7 bpermd instruction.
9428
9429 * config/rs6000/altivec.h (vec_div): Define if VSX.
9430 (vec_mul): Ditto.
9431 (vec_msub): Ditto.
9432 (vec_nmadd): Ditto.
9433 (vec_nearbyint): Ditto.
9434 (vec_rint): Ditto.
9435 (vec_sqrt): Ditto.
9436 (all predicates): Use the generic builtin function, and not the V4SF
9437 specific function so that the predicates will work with VSX's V2DF.
9438 (vec_all_*): Ditto.
9439 (vec_any_*): Ditto.
9440
9441 * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
9442 Document new VSX functions and types.
9443
9444 * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
9445 switches.
9446
9447 * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
9448 "wa", and "j" constraints. Modify "v" to talk about Altivec
9449 instead of just vector.
9450
9451 2009-07-30 Andrew MacLeod <amacleod@redhat.com>
9452
9453 PR debug/26475
9454 * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
9455 location for phi arguments.
9456 (rewrite_update_phi_arguments): Find locations for reaching defs.
9457 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
9458 Add location to add_phi_arg calls.
9459 * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
9460 * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
9461 split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
9462 * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
9463 create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
9464 * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
9465 * tree-phinodes.c (make_phi_node): Initialize location.
9466 (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
9467 (add_phi_arg): Add location parameter.
9468 (remove_phi_arg_num): Move location when moving phi argument.
9469 * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
9470 location.
9471 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
9472 slpeel_update_phi_nodes_for_guard1,
9473 slpeel_update_phi_nodes_for_guard2,
9474 slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
9475 vect_loop_versioning): Set locations.
9476 * tree-parloops.c (create_phi_for_local_result,
9477 transform_to_exit_first_loop, create_parallel_loop): Add locations.
9478 * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
9479 * tree-vect-loop.c (get_initial_def_for_induction,
9480 vect_create_epilog_for_reduction, vect_finalize_reduction): Add
9481 locations.
9482 * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus.
9483 (gimple_phi_arg_location_from_edge): New. Return locus from an edge.
9484 (gimple_phi_arg_set_location): New. Set locus.
9485 (gimple_phi_arg_has_location): New. Check for locus.
9486 (redirect_edge_var_map_location): New. Return locus from var_map.
9487 * tree-vect-data-refs.c (vect_setup_realignment): Set location.
9488 * tree-ssa-phiopt.c (conditional_replacement): Set locus when
9489 combining PHI arguments.
9490 (cond_store_replacement): Set location.
9491 * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
9492 * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
9493 scop_add_exit_phis_edge): Add locations.
9494 * tree-cfgcleanup.c (remove_forwarder_block,
9495 remove_forwarder_block_with_phi): Add locations.
9496 * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
9497 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
9498 locations.
9499 * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
9500 * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
9501 flush_pending_stmts): Add source location.
9502 * lambda-code.c (perfect_nestify): Maintain location stack with argument
9503 stack to preserve locations.
9504 * tree-vect-stmts.c (vectorizable_load): Add location.
9505 * tree-inline.c (copy_phis_for_bb): Copy locus.
9506 (setup_one_parameter): Add call locus to inlined parameter stmts.
9507 (initialize_inlined_parameters): Pass in call location as parameter
9508 assignment locus.
9509 (tree_function_versioning): Pass location to setup_one_parameter.
9510 * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
9511 * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
9512 copy and edge lists.
9513 (insert_partition_copy_on_edge, insert_value_copy_on_edge,
9514 insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
9515 locus parameter and override the stmt default if provided.
9516 (new_elim_graph, clear_elim_graph, delete_elim_graph,
9517 elim_graph_add_edge, elim_graph_remove_succ_edge,
9518 FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
9519 elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
9520 eliminate_phi): Add locus info in elimination graph for each edge and
9521 value copy.
9522 (insert_backedge_copies): Copy locus if present.
9523 * tree-flow.h (struct _edge_var_map): Add locus field.
9524 * tree-switch_conversions.c (fix_phi_nodes): Add locations.
9525 * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
9526 add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
9527 locations.
9528 * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
9529
9530 2009-07-30 Martin Jambor <mjambor@suse.cz>
9531
9532 PR tree-optimization/40570
9533 * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
9534 use inlining loops.
9535
9536 2009-07-30 Razya Ladelsky <razya@il.ibm.com>
9537
9538 * ssa-loop-manip.c: Include langhooks.h.
9539 (rewrite_phi_with_iv): New.
9540 (rewrite_all_phi_nodes_with_iv): New.
9541 (canonicalize_loop_ivs): Move here from tree-parloops.c.
9542 Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
9543 * tree-parloops.c (loop_parallel_p): Move out all conditions
9544 except dependency check.
9545 (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
9546 (gen_parallel_loop): Call canonicalize_loop_ivs without
9547 reduction_list argument.
9548 (build_new_reduction): New.
9549 (gather_scalar_reductions): New.
9550 (try_get_loop_niter): New.
9551 (try_create_reduction_list): New.
9552 (parallleize_loops): Change the parallel conditions check.
9553 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
9554 * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
9555
9556 2009-07-30 Dave Korn <dave.korn.cygwin@gmail.com>
9557
9558 * opt-functions.awk (opt_args): Allow argument to be enclosed in
9559 curly braces.
9560 * doc/options.texi (Option properties): Mention new quoting syntax.
9561
9562 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9563
9564 * config/alpha/alpha.c (alpha_start_function):
9565 Handle VMS_DEBUG_MAIN_POINTER
9566 * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
9567 * doc/invoke.texi: Document -mdebug-main switch.
9568
9569 2009-07-29 Richard Henderson <rth@redhat.com>
9570
9571 * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
9572 (cgraph_create_edge_including_clones): Likewise.
9573 * tree-inline.c (copy_bb): Operate on the correct edges
9574 when updating the callgraph.
9575
9576 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9577
9578 * config/alpha/vms-cc.c: Deleted.
9579 * config/alpha/vms-ld.c: Deleted.
9580 * config/alpha/t-vms64: Moved to config/vms
9581 * config/alpha/vms-crt0-64.c: Moved to config/vms
9582 * config/alpha/vms-crt0.c: Moved to config/vms
9583 * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
9584 * config/alpha/vms-psxcrt0.c: Moved to config/vms
9585 * config/alpha/xm-vms.h: Moved to config/vms
9586 * config/alpha/x-vms: Moved to config/vms
9587 * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
9588 config/vms/t-vms.
9589 * config/vms/t-vms: Moved here from config/alpha. Alpha specific
9590 parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
9591 (version): Set.
9592 * config/vms/t-vms64: Moved here from config/alpha
9593 * config/vms/vms-crt0-64.c: Moved here from config/alpha.
9594 (argc,argv,envp): Enforce 32bit malloc'ing.
9595 * config/vms/vms-psxcrt0-64.c: Likewise.
9596 * config/vms/vms-crt0.c: Moved here from config/alpha.
9597 * config/vms/vms-psxcrt0.c: Likewise.
9598 * config/vms/vms-crtl-64.h: New file.
9599 * config/vms/vms-crtl.h: New file.
9600 * config/vms/vms.opt: New file.
9601 * config/vms/xm-vms64.h: New file.
9602 * config/vms/xm-vms.h: Moved here from config/alpha.
9603 (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
9604 Set.
9605 * config/vms/x-vms: Moved here from config/alpha.
9606 (version, VMS_EXTRA_PARTS): Moved to t-vms.
9607 (vms-ld.o, vms-cc.o): Removed.
9608 (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
9609
9610 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9611
9612 * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
9613 correct stack (obvious VMS fix).
9614
9615 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9616
9617 * dwarf2out.c (output_file_names): Output VMS style file name, size,
9618 date, version info if VMS_DEBUGGING_INFO defined.
9619 * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
9620 size, date calculating code moved here.
9621
9622 2009-07-29 Paul Brook <paul@codesourcery.com>
9623
9624 * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
9625 do_push/do_pop.
9626
9627 2009-07-29 Uros Bizjak <ubizjak@gmail.com>
9628
9629 PR target/40577
9630 * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
9631 to DImode when generating insq_le insn.
9632
9633 2009-07-28 Douglas B Rupp <rupp@gnat.com>
9634
9635 * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
9636 New macro set for VMS_DEBUGGGING_INFO.
9637 (AT_string_form): Use it.
9638
9639 2009-07-28 DJ Delorie <dj@redhat.com>
9640
9641 * config/mep/mep.c (vtext_section): New.
9642 (vftext_section): New.
9643 (ftext_section): New.
9644 (mep_select_section): Add support for functions.
9645 (mep_unique_section): Likewise.
9646 (mep_asm_init_sections): Likewise.
9647 (mep_encode_section_info): Remove it from here.
9648
9649 * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
9650
9651 2009-07-28 Paolo Bonzini <bonzinI@gnu.org>
9652
9653 * tree.h (TREE_DEPRECATED): Document it is used for types too.
9654 (TYPE_VECTOR_OPAQUE): Use default_def_flag
9655
9656 2009-07-28 Douglas B Rupp <rupp@gnat.com>
9657
9658 * dwarf2out.c (output_file_names): Test new macro
9659 DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
9660 (add_comp_dir_attribute): Likewise.
9661
9662 2009-07-28 Kai Tietz <kai.tietz@onevision.com>
9663
9664 * config/i386/mingw-w64.h (LINK_SPEC): Add
9665 separating space between commands.
9666
9667 2009-07-28 Jan Hubicka <jh@suse.cz>
9668
9669 PR tree-optimization/40759
9670 * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
9671 for renaming.
9672
9673 2009-07-27 DJ Delorie <dj@redhat.com>
9674
9675 * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
9676 types are dword-aligned.
9677 (mep_expand_va_start): Likewise.
9678
9679 2009-07-27 Olivier Hainque <hainque@adacore.com>
9680 Douglas B Rupp <rupp@gnat.com>
9681
9682 * convert.c (convert_to_pointer): Don't assume the target
9683 pointer type is POINTER_SIZE long. Fetch its precision instead.
9684
9685 2009-07-27 Douglas B Rupp <rupp@gnat.com>
9686
9687 * system.h (fopen): Undefine if macro.
9688
9689 2009-07-27 Jakub Jelinek <jakub@redhat.com>
9690
9691 * dwarf2out.c (output_cfi_p): Removed.
9692 (output_cfis): New function.
9693 (output_fde): New function, split from output_call_frame_info.
9694 (output_call_frame_info): Use it.
9695 (dwarf2out_switch_text_section): Use output_cfis.
9696
9697 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
9698
9699 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
9700 TARGET_BI_ARCH is specified without enabling SJLJ.
9701 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
9702 if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
9703
9704 2009-07-26 Mikael Pettersson <mikpe@it.uu.se>
9705
9706 * arm.md (negdi2): Use DImode if forcing a value into a register.
9707
9708 2009-07-26 Ira Rosen <irar@il.ibm.com>
9709
9710 PR tree-optimization/40801
9711 * tree-vect-stmts.c (vectorizable_call): Get previous copy
9712 of vector operand from the previous copy of vector statement.
9713 Pass the correct definition type value to
9714 vect_get_vec_def_for_stmt_copy().
9715
9716 2009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9717
9718 * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
9719 const char ** conversion.
9720
9721 2009-07-25 David Daney <ddaney@caviumnetworks.com>
9722
9723 * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
9724 fancy_abort() if !ENABLE_ASSERT_CHECKING.
9725 (gcc_unreachable): Invoke __builtin_unreachable() if
9726 !ENABLE_ASSERT_CHECKING.
9727
9728 2009-07-25 David Daney <ddaney@caviumnetworks.com>
9729
9730 PR rtl-optimization/40445
9731 * emit-rtl.c (next_nonnote_insn_bb): New function.
9732 * rtl.h (next_nonnote_insn_bb): Declare new function.
9733 * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
9734 with no successors that is the successor of the ENTRY_BLOCK.
9735 Continue from the top after removing an empty fallthrough block.
9736 * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
9737 of next_nonnote_insn.
9738
9739 2009-07-25 David Daney <ddaney@caviumnetworks.com>
9740
9741 * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
9742
9743 2009-07-25 Martin Jambor <mjambor@suse.cz>
9744
9745 * c-common.c (c_common_attribute_table): New element for noclone.
9746 (handle_noclone_attribute): New function. Forward-declare.
9747 * tree-inline.c (tree_versionable_function_p): Check for noclone
9748 attribute.
9749 * doc/extend.texi (Labels as Values): Document need for noclone.
9750 (Function Attributes): Document noclone attribute.
9751
9752 2009-07-25 Jakub Jelinek <jakub@redhat.com>
9753
9754 PR rtl-optimization/34999
9755 * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
9756 and dw_fde_switched_cold_to_hot fields.
9757 (output_cfi_p): New function.
9758 (output_call_frame_info): If fde->dw_fde_switched_sections,
9759 output 2 FDEs instead of one with corrupted header.
9760 (dwarf2out_do_cfi_startproc): New function.
9761 (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi
9762 and fde->dw_fde_switched_cold_to_hot.
9763 (dwarf2out_switch_text_section): Compute
9764 fde->dw_fde_switched_cold_to_hot. Switch to new text section here.
9765 If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
9766 dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
9767 Otherwise, compute fde->dw_fde_switch_cfi.
9768
9769 2009-07-24 Cary Coutant <ccoutant@google.com>
9770
9771 * tree-cfg.c (assign_discriminator): Add explicit parentheses.
9772
9773 2009-07-24 Cary Coutant <ccoutant@google.com>
9774
9775 * cfghooks.c (split_block): Copy discriminator to new block.
9776 * tree-cfg.c (assign_discriminator): Check location of last
9777 instruction in block as well as first.
9778
9779 2009-07-24 Uros Bizjak <ubizjak@gmail.com>
9780
9781 * config/i386/linux.c: Use fputs or putc instead of fprintf
9782 where appropriate.
9783 * config/i386/gas.h: Ditto.
9784 * config/i386/x86-64.h: Ditto.
9785 * config/i386/att.h: Ditto.
9786
9787 2009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9788
9789 * expmed.c (emit_store_flag): Use a recursive call to optimize the
9790 xor case.
9791
9792 2009-07-24 Martin Jambor <mjambor@suse.cz>
9793
9794 * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
9795 (ipa_push_func_to_list_1): Declare.
9796 (ipa_push_func_to_list): New function.
9797
9798 * ipa-prop.c (ipa_push_func_to_list_1): New function.
9799 (ipa_init_func_list): Call ipa_push_func_to_list_1.
9800 (ipa_push_func_to_list): Removed.
9801 (ipa_pop_func_from_list): Clear node_enqueued flag.
9802
9803 2009-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
9804
9805 * config/s390/s390.c (override_options): Default
9806 max-unrolled-insns to 100 for z10 tuning.
9807
9808 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
9809
9810 * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
9811 tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
9812 tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
9813 tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
9814 tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
9815 tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
9816 lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
9817
9818 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
9819
9820 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
9821 use default set in mingw32.h header.
9822 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
9823 64-bit /mingw/include path.
9824 (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
9825 path.
9826
9827 2009-07-23 Neil Vachharajani <nvachhar@google.com>
9828
9829 PR rtl-optimization/40209
9830 * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
9831
9832 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
9833
9834 * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate
9835 ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
9836 with the rest of string where appropriate. Use fputs or putc
9837 instead of fprintf where appropriate.
9838
9839 2009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
9840 Pat Haugen <pthaugen@us.ibm.com>
9841 Revital Eres <ERES@il.ibm.com>
9842
9843 * config/rs6000/vector.md: New file. Move most of the vector
9844 expander support here from altivec.md to allow for the VSX vector
9845 unit in the future. Add support for secondary_reload patterns.
9846 Rewrite the patterns for vector comparison, and vector comparison
9847 predicate instructions so that the RTL expresses the desired
9848 behavior, instead of using unspec.
9849
9850 * config/rs6000/constraints.md ("f" constraint): Use
9851 rs6000_constraints to hold the precalculated register class.
9852 ("d" constraint): Ditto.
9853 ("wd" constraint): New constraint for VSX.
9854 ("wf" constraint): Ditto.
9855 ("ws" constraint): Ditto.
9856 ("wa" constraint): Ditto.
9857 ("wZ" constraint): Ditto.
9858 ("j" constraint): Ditto.
9859
9860 * config/rs6000/predicates.md (vsx_register_operand): New
9861 predicate for VSX.
9862 (vfloat_operand): New predicate for vector.md.
9863 (vint_operand): Ditto.
9864 (vlogical_operand): Ditto.
9865 (easy_fp_constant): If VSX, 0.0 is an easy constant.
9866 (easy_vector_constant): Add VSX support.
9867 (altivec_indexed_or_indirect_operand): New predicate for
9868 recognizing Altivec style memory references with AND -16.
9869
9870 * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
9871 for vector secondary reload support.
9872 (rs6000_vector_reg_class): Delete, replacing it with
9873 rs6000_constraints.
9874 (rs6000_vsx_reg_class): Ditto.
9875 (rs6000_constraints): New array to hold the register classes of
9876 each of the register constraints that can vary at runtime.
9877 (builtin_mode_to_type): New static array for builtin function type
9878 creation.
9879 (builtin_hash_table): New static hash table for builtin function
9880 type creation.
9881 (TARGET_SECONDARY_RELOAD): Define target hook.
9882 (TARGET_IRA_COVER_CLASSES): Ditto.
9883 (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
9884 registers are 128 bits if VSX memory reference instructions are used.
9885 (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
9886 unit is being used.
9887 (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
9888 (rs6000_debug_reg_global): Move -mdebug=reg statements here.
9889 Print several of the scheduling related parameters.
9890 (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
9891 rs6000_constraints instead of rs6000_vector_reg_class. Move
9892 -mdebug=reg code to rs6000_debug_reg_global. Add support for
9893 -mvsx-align-128 debug switch. Drop testing float_p if VSX or
9894 Altivec. Add VSX support. Setup for secondary reload support on
9895 Altivec/VSX registers.
9896 (rs6000_override_options): Make power7 set the scheduling groups
9897 like the power5. Add support for new debug switches to override
9898 the scheduling defaults. Temporarily disable -mcpu=power7 from
9899 setting -mvsx. Add support for debug switches -malways-hint,
9900 -msched-groups, and -malign-branch-targets.
9901 (rs6000_buitlin_conversion): Add support for returning unsigned
9902 vector conversion functions to fix regressions due to stricter
9903 type checking.
9904 (rs6000_builtin_mul_widen_even): Ditto.
9905 (rs6000_builtin_mul_widen_odd): Ditto.
9906 (rs6000_builtin_vec_perm): Ditto.
9907 (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
9908 (rs6000_expand_vector_init): Initial VSX support for using xxlxor
9909 to zero a register.
9910 (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
9911 generated upstream.
9912 (bdesc_3arg): Add builtins for unsigned types. Add builtins for
9913 VSX types for bit operations. Changes to accomidate vector.md.
9914 (bdesc_2arg): Ditto.
9915 (bdesc_1arg): Ditto.
9916 (struct builtin_description_predicates): Rewrite predicate
9917 handling so that RTL describes the operation, instead of passing
9918 the instruction to be used as a string argument.
9919 (bdesc_altivec_preds): Ditto.
9920 (altivec_expand_predicate_builtin): Ditto.
9921 (altivec_expand_builtin): Ditto.
9922 (rs6000_expand_ternop_builtin): Use a switch instead of an if
9923 statement for vsldoi support.
9924 (altivec_expand_ld_builtin): Change to use new names from vector.md.
9925 (altivec_expand_st_builtin): Ditto.
9926 (paired_expand_builtin): Whitespace changes.
9927 (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the
9928 builtin_mode_to_type table for secondary reload. Call
9929 builtin_function_type to build random builtin functions.
9930 (altivec_init_builtins): Change to use builtin_function_type to
9931 create builtin function types dynamically as we need them.
9932 (builtin_hash_function): New support for hashing the tree types
9933 for builtin function as we need it, rather than trying to build
9934 all of the trees that we need. Add initial preliminary VSX support.
9935 (builtin_function_type): Ditto.
9936 (builtin_function_eq): Ditto.
9937 (builtin_hash_struct): Ditto.
9938 (rs6000_init_builtins): Ditto.
9939 (rs6000_common_init_builtins): Ditto.
9940 (altivec_init_builtins): Ditto.
9941 (rs6000_common_init_builtins): Ditto.
9942 (enum reload_reg_type): New enum for simplifing reg classes.
9943 (rs6000_reload_register_type): Simplify register classes into GPR,
9944 Vector, and other registers. Altivec and VSX addresses in reload.
9945 (rs6000_secondary_reload_inner): Ditto.
9946 (rs6000_ira_cover_classes): New target hook, that returns the
9947 appropriate cover classes, based on -mvsx being used or not.
9948 (rs6000_secondary_reload_class): Add VSX support.
9949 (get_vec_cmp_insn): Delete, rewrite vector conditionals.
9950 (get_vsel_insn): Ditto.
9951 (rs6000_emit_vector_compare): Rewrite vector conditional support
9952 so that where we can, we use RTL operators, instead of blindly use
9953 UNSPEC.
9954 (rs6000_emit_vector_select): Ditto.
9955 (rs6000_emit_vector_cond_expr): Ditto.
9956 (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
9957 (create_TOC_reference): Add -mdebug=addr support.
9958 (emit_frame_save): VSX loads/stores need register indexed addressing.
9959
9960 * config/rs6000/rs6000.md: Include vector.md.
9961
9962 * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
9963
9964 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9965 support for V2DI, V2DF in logical, permute, select operations.
9966
9967 * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
9968 switch for vsx/power7.
9969 (-mvsx-scalar-memory): Ditto.
9970 (-mvsx-align-128): Ditto.
9971 (-mallow-movmisalign): Ditto.
9972 (-mallow-df-permute): Ditto.
9973 (-msched-groups): Ditto.
9974 (-malways-hint): Ditto.
9975 (-malign-branch-targets): Ditto.
9976
9977 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
9978 hook instead.
9979 (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
9980 (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
9981 (rs6000_vector_reg_class): Delete.
9982 (rs6000_vsx_reg_class): Ditto.
9983 (enum rs6000_reg_class_enum): New enum for the constraints that
9984 vary based on target switches.
9985 (rs6000_constraints): New array to hold the register class for all
9986 of the register constraints that vary based on the switches used.
9987 (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
9988 (enum rs6000_builtins): Add unsigned varients for the builtin
9989 declarations returned by target hooks for expanding multiplies,
9990 select, and permute operations. Add VSX builtins.
9991 (enum rs6000_builtin_type_index): Add entries for VSX.
9992 (V2DI_type_node): Ditto.
9993 (V2DF_type_node): Ditto.
9994 (unsigned_V2DI_type_node): Ditto.
9995 (bool_long_type_node): Ditto.
9996 (intDI_type_internal_node): Ditto.
9997 (uintDI_type_internal_node): Ditto.
9998 (double_type_internal_node): Ditto.
9999
10000 * config/rs6000/altivec.md (whole file): Move all expanders to
10001 vector.md from altivec.md. Rename insn matching functions to be
10002 altivec_foo.
10003 (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
10004 (altivec_vcmp*): Ditto.
10005 (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
10006 (VM): New iterator for moves that includes the VSX types.
10007 (altivec_vperm_<mode>): Add VSX types. Add unsigned types.
10008 (altivec_vperm_<mode>_uns): New, for unsigned types.
10009 (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
10010 (altivec_eq<mode>): Ditto.
10011 (altivec_gt<mode>): Ditto.
10012 (altivec_gtu<mode>): Ditto.
10013 (altivec_eqv4sf): Ditto.
10014 (altivec_gev4sf): Ditto.
10015 (altivec_gtv4sf): Ditto.
10016 (altivec_vcmpbfp_p): Ditto.
10017
10018 2009-07-23 Richard Earnshaw <rearnsha@arm.com>
10019
10020 * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
10021 unsigned HWI.
10022
10023 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
10024
10025 PR target/40832
10026 * config/i386/i386.c (output_387_ffreep): Rewrite to use
10027 ASM_SHORT instead of .word.
10028 * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
10029 instead of .word in asm template.
10030
10031 2009-07-22 Vladimir Makarov <vmakarov@redhat.com>
10032
10033 PR target/37488
10034 * ira-lives.c (bb_has_abnormal_call_pred): New function.
10035 (process_bb_node_lives): Use it.
10036
10037 * ira.c (setup_cover_and_important_classes): Don't setup
10038 ira_important_class_nums. Add cover classes to the end of
10039 important classes.
10040 (cover_class_order, comp_reg_classes_func, reorder_important_classes):
10041 New.
10042 (find_reg_class_closure): Use reorder_important_classes.
10043
10044 * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
10045
10046 * config/i386/i386.c (i386_ira_cover_classes): New function.
10047 (TARGET_IRA_COVER_CLASSES): Redefine.
10048
10049 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
10050 importance of order of cover classes in the array.
10051
10052 2009-07-22 Diego Novillo <dnovillo@google.com>
10053
10054 * tree-pass.h (TDF_EH): Define.
10055 * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
10056 contains TDF_EH, print the EH region number holding GS.
10057 * tree-dump.c (dump_options): Add "eh".
10058 * doc/invoke.texi: Document it.
10059
10060 2009-07-22 Doug Kwan <dougkwan@google.com>
10061
10062 * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
10063
10064 2009-07-22 Michael Matz <matz@suse.de>
10065
10066 PR tree-optimization/35229
10067 PR tree-optimization/39300
10068
10069 * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
10070 (inhibit_phi_insertion): New function.
10071 (insert_into_preds_of_block): Call it for REFERENCEs.
10072 (init_pre): Initialize and finalize scalar evolutions.
10073 * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
10074
10075 2009-07-22 Uros Bizjak <ubizjak@gmail.com>
10076
10077 * config/i386/predicates.md (zero_extended_scalar_load_operand):
10078 Use CONST_VECTOR_NUNITS to determine number of elements.
10079
10080 2009-07-22 Andreas Krebbel <krebbel1@de.ibm.com>
10081
10082 * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
10083 (U, W): Constraints are now deprecated and will be removed if we
10084 run out of letters.
10085 * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
10086 the file.
10087 ("prefetch"): Add the stcmh instruction for prefetching.
10088 * config/s390/s390.c (s390_symref_operand_p): Function moved. No
10089 changes.
10090 (s390_short_displacement): Return always true if compiling for
10091 machines not providing the long displacement facility.
10092 (s390_mem_constraint): Support the new constraint letter Z.
10093 (s390_check_qrst_address): New function.
10094
10095 2009-07-21 DJ Delorie <dj@redhat.com>
10096
10097 * config/mep/mep.c (mep_legitimize_arg): Leave control registers
10098 alone too.
10099
10100 2009-07-21 Jason Merrill <jason@redhat.com>
10101
10102 * c-common.c (max_tinst_depth): Increase default to 1024.
10103
10104 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
10105
10106 * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
10107 (vec_unpacku_float_lo_v4si): Ditto.
10108
10109 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
10110
10111 PR target/40811
10112 * config/i386/sse.md (sse2_cvtudq2ps): New expander.
10113 (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
10114 (builtin_description): Add __builtin_ia32_cvtudq2ps.
10115 (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
10116
10117 2009-07-21 Jakub Jelinek <jakub@redhat.com>
10118
10119 PR tree-optimization/40813
10120 * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
10121 it.
10122
10123 2009-07-21 Kaz Kojima <kkojima@gcc.gnu.org>
10124
10125 * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
10126 with a NOP_EXPR if needed.
10127
10128 2009-07-21 Paul Brook <paul@codesourcery.com>
10129
10130 * tree-vectorizer.c (increase_alignment): Handle nested arrays.
10131 Terminate debug dump with newline.
10132
10133 2009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10134
10135 * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
10136 Cast "1" to unsigned HOST_WIDE_INT.
10137 (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit
10138 deposit length to the maximum length - lsb. Extend length if
10139 HOST_BITS_PER_WIDE_INT is 32.
10140
10141 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
10142
10143 * cgraph.h (constant_pool_htab): New function.
10144 (constant_descriptor_tree): Move from varasm.c.
10145 * varasm.c (constant_pool_htab): New function.
10146 (constant_descriptor_tree): Move to cgraph.h.
10147
10148 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
10149
10150 * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
10151
10152 2009-07-20 Shujing Zhao <pearly.zhao@oracle.com>
10153
10154 * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
10155 $(VARRAY_H).
10156
10157 2009-07-20 Xinliang David Li <davidxl@google.com>
10158
10159 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
10160
10161 2009-07-20 Adam Nemet <anemet@caviumnetworks.com>
10162
10163 * config/mips/mips.md (move_type): Add arith.
10164 (type): Handle arith.
10165 (zero_extendsidi2): Rename this into ...
10166 (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS.
10167 (zero_extendsidi2): New expander.
10168 (*zero_extendsidi2_dext): New pattern.
10169
10170 2009-07-20 Nick Clifton <nickc@redhat.com>
10171
10172 * config.gcc (mips64-*-*): Add definition of tm_defines in order
10173 to set MIPS_ABI_DEFAULT.
10174 * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
10175
10176 2009-07-20 Jakub Jelinek <jakub@redhat.com>
10177
10178 * tree-object-size.c (addr_object_size): Handle unions with
10179 array in it as last field of structs in __bos (, 1) as __bos (, 0).
10180
10181 PR tree-optimization/40792
10182 * tree.c (build_function_type_skip_args): Remove bogus assert.
10183
10184 2009-07-20 Jan Hubicka <jh@suse.cz>
10185 Martin Jambor <mjambor@suse.cz>
10186
10187 * cgraph.h (combined_args_to_skip): New field.
10188 * cgraph.c (cgraph_create_virtual_clone): Properly handle
10189 combined_args_to_skip and args_to_skip.
10190 * tree-inline.c (update_clone_info): New function.
10191 (tree_function_versioning): Call update_clone_info.
10192 * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
10193 functions.
10194 (cgraph_materialize_all_clones): More extensive dumping, working
10195 with combined_args_to_skip rather than args_to_skip.
10196
10197 2009-07-20 Ira Rosen <irar@il.ibm.com>
10198
10199 * tree-vectorizer.h (vectorizable_condition): Add parameters.
10200 * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
10201 (get_initial_def_for_reduction): Likewise.
10202 (vectorizable_reduction): Skip the check of first operand in case
10203 of COND_EXPR. Add check that it is outer loop vectorization if
10204 nested cycle was detected. Call vectorizable_condition() for
10205 COND_EXPR. If reduction epilogue cannot be created do not fail for
10206 nested cycles (if it is not double reduction). Assert that there
10207 is only one type in the loop in case of COND_EXPR. Call
10208 vectorizable_condition() to vectorize COND_EXPR.
10209 * tree-vect-stmts.c (vectorizable_condition): Update comment.
10210 Add parameters. Allow nested cycles if called from
10211 vectorizable_reduction(). Use reduction vector variable if provided.
10212 (vect_analyze_stmt): Call vectorizable_reduction() before
10213 vectorizable_condition().
10214 (vect_transform_stmt): Update call to vectorizable_condition().
10215
10216 2009-07-20 Christian Bruel <christian.bruel@st.com>
10217
10218 * config/sh/sh.opt (-mfmovd): Resurrect and document.
10219 * doc/invoke.texi (-mfmovd): Likewise.
10220 * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
10221
10222 2009-07-20 Jan Hubicka <jh@suse.cz>
10223
10224 * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
10225 when handling SSA name.
10226
10227 2009-07-19 Jan Hubicka <jh@suse.cz>
10228
10229 PR tree-optimization/40676
10230 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
10231 virtual PHIs in empty BBs.
10232
10233 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
10234
10235 * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
10236 re-expanded the compound use gen_lowpart instead to convert to the
10237 desired mode.
10238
10239 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
10240
10241 * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
10242 OUTER_CONST arguments.
10243 <LSHIFTRT>: Use them to allow widening if the bits shifted in from
10244 the new wider mode will be masked off.
10245 (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
10246
10247 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
10248
10249 * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
10250 high-order bits are zero.
10251
10252 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
10253
10254 * combine.c (simplify_shift_const_1): Split code to determine
10255 shift_mode into ...
10256 (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the
10257 new bits shifted in are identical to the old sign bit.
10258
10259 2009-07-18 Richard Guenther <rguenther@suse.de>
10260
10261 PR c/40787
10262 * gimplify.c (gimplify_call_expr): Reject code using results from
10263 functions returning void.
10264
10265 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
10266
10267 * doc/md.texi: Document the new PowerPC "es" constraint.
10268 Document that "m" can include automodified addresses on this target,
10269 and explain how %U must be used. Extend the "Q" and "Z" documentation
10270 to suggest "es" as well as "m".
10271 * config/rs6000/constraints.md (es): New memory constraint.
10272 (Q, Z): Update strings to match new documentation.
10273
10274 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
10275
10276 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
10277 offset from virtual_stack_vars_rtx and arg_pointer_rtx.
10278 * config/rs6000/predicates.md (volatile_mem_operand): Use
10279 offsettable_nonstrict_memref_p.
10280 * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
10281 (*floatunssidf2_internal): Likewise.
10282 (*fix_truncdfsi2_internal): Likewise.
10283 (*fix_trunctfsi2_internal): Likewise.
10284
10285 2009-07-17 Anatoly Sokolov <aesok@post.ru>
10286
10287 * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
10288 atmega32u2 devices.
10289 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
10290
10291 2009-07-17 Richard Guenther <rguenther@suse.de>
10292
10293 PR c/40401
10294 * tree-pass.h (pass_diagnose_omp_blocks): Declare.
10295 (pass_warn_unused_result): Likewise.
10296 (TODO_set_props): Remove.
10297 * omp-low.c (diagnose_omp_structured_block_errors): Change to
10298 run as a pass.
10299 (pass_diagnose_omp_blocks): Define.
10300 * c-decl.c (pop_file_scope): Do not finalize the CU here.
10301 (c_gimple_diagnostics_recursively): Remove.
10302 (finish_function): Do not call it.
10303 (c_write_global_declarations): Continue after errors.
10304 Finalize the CU here.
10305 * c-gimplify.c (c_genericize): Do not gimplify here.
10306 * c-common.c (c_warn_unused_result): Move ...
10307 * tree-cfg.c (do_warn_unused_result): ... here.
10308 (run_warn_unused_result): New function.
10309 (gate_warn_unused_result): New function.
10310 (pass_warn_unused_result): New pass.
10311 * c-common.h (c_warn_unused_result): Remove.
10312 * flags.h (flag_warn_unused_result): Declare.
10313 * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
10314 * opts.c (flag_warn_unused_result): Initialize to false.
10315 * toplev.c (compile_file): Add comment.
10316 * omp-low.c (create_omp_child_function): Do not register
10317 the function with the frontend.
10318 (diagnose_omp_structured_block_errors): Prepare to be
10319 called as optimization pass.
10320 (gate_diagnose_omp_blocks): New function.
10321 (pass_diagnose_omp_blocks): New pass.
10322 * cgraph.h (cgraph_optimize): Remove.
10323 (cgraph_analyze_function): Likewise.
10324 * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
10325 * cgraphunit.c (cgraph_lower_function): Lower nested functions
10326 before their parents here.
10327 (cgraph_finalize_function): Not here.
10328 (cgraph_analyze_function): Gimplify functions here.
10329 (cgraph_finalize_compilation_unit): Continue after errors.
10330 Optimize the callgraph from here.
10331 (cgraph_optimize): Make static.
10332 * langhooks.c (write_global_declarations): Finalize the CU.
10333 * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
10334 (gimplify_function_tree): Assert we gimplify only once.
10335 Set PROP_gimple_any property.
10336 * tree-nested.c (gimplify_all_functions): New function.
10337 (lower_nested_functions): Gimplify all nested functions.
10338 * gimple.h (diagnose_omp_structured_block_errors): Remove.
10339 * passes.c (init_optimization_passes): Add pass_warn_unused_result
10340 and pass_diagnose_omp_blocks after gimplification. Do not
10341 set TODO_set_props on all_lowering_passes.
10342 (execute_one_pass): Do not handle TODO_set_props.
10343 * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
10344 (gimplify.o): Add tree-pass.h dependency.
10345 * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
10346 (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
10347 (unsave_r): Likewise.
10348 * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
10349 temporary variable.
10350
10351 2009-07-17 Sandra Loosemore <sandra@codesourcery.com>
10352
10353 * doc/service.texi (Service): Restore previously removed link,
10354 which isn't broken after all.
10355
10356 2009-07-17 Richard Guenther <rguenther@suse.de>
10357
10358 PR tree-optimization/40321
10359 * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
10360 PHI nodes to the maximal set.
10361 (make_values_for_phi): Add PHI arguments to the maximal set.
10362 (execute_pre): Dump PHI_GEN and the maximal set.
10363
10364 2009-07-17 Jakub Jelinek <jakub@redhat.com>
10365
10366 PR c++/40780
10367 * gimplify.c (gimplify_conversion): Don't change non-conversions into
10368 VIEW_CONVERT_EXPR.
10369
10370 2009-07-16 Sandra Loosemore <sandra@codesourcery.com>
10371
10372 * doc/extend.texi (Nested Functions): Replace broken link with
10373 textual reference.
10374 * doc/service.texi (Service): Remove broken link.
10375
10376 2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
10377
10378 PR bootstrap/40781
10379 * builtins.c (expand_builtin_memcmp): Use loc instead of
10380 EXPR_LOCATION (exp).
10381 (expand_builtin_strncmp): Likewise.
10382
10383 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
10384 Manuel López-Ibáñez <manu@gcc.gnu.org>
10385
10386 PR 40435
10387 * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
10388 builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
10389 tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
10390 c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
10391 calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
10392 tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
10393 tree-inline.c, c-common.c, c-common.h, gimple.c,
10394 tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
10395 convert.c: Add location argument to fold_{unary,binary,ternary},
10396 fold_build[123], build_call_expr, build_size_arg,
10397 build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
10398 fold_build1_initializer, fold_build2_initializer,
10399 fold_build3_initializer, fold_build_call_array,
10400 fold_build_call_array_initializer, fold_single_bit_test,
10401 omit_one_operand, omit_two_operands, invert_truthvalue,
10402 fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
10403 combine_comparisons, fold_builtin_*, fold_call_expr,
10404 build_range_check, maybe_fold_offset_to_address, round_up,
10405 round_down.
10406
10407 2009-07-16 Jason Merrill <jason@redhat.com>
10408
10409 PR libstdc++/37907
10410 * c-common.c (c_common_reswords): Add __is_standard_layout
10411 and __is_trivial.
10412 * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
10413 * doc/implement-cxx.texi: New.
10414 * doc/gcc.texi: Include it.
10415
10416 2009-07-16 DJ Delorie <dj@redhat.com>
10417
10418 * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
10419 compares that may be indirectly affected by previous instructions.
10420
10421 2009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10422
10423 * builtins.c (do_mpc_arg2): New.
10424 (fold_builtin_2): Fold builtin cpow.
10425 * real.h (HAVE_mpc_pow): New.
10426
10427 2009-07-16 Bingfeng Mei <bmei@broadcom.com>
10428
10429 * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
10430 comparison to skip unprofitable schedule
10431
10432 2009-07-16 Simon Baldwin <simonb@google.com>
10433
10434 * gcc.c (option_map): New flag -no-canonical-prefixes.
10435 * (display_help): Print help text for new flag.
10436 * (process_command): Move options translation and language specifics
10437 and handle new flag early. Use it to set a function pointer to a
10438 prefix builder. Replace make_relative_prefix calls with calls to
10439 the function pointed to. Ignore new flag in regular options handling.
10440 * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
10441
10442 2009-07-15 DJ Delorie <dj@redhat.com>
10443
10444 * config/mep/mep.md (sibcall_internal): Change register to avoid
10445 argument registers.
10446 (sibcall_value_internal): Likewise.
10447
10448 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
10449
10450 PR rtl-optimization/40710
10451 * resource.c (mark_target_live_regs): Reset DF problem to LR.
10452
10453 2009-07-15 Adam Nemet <anemet@caviumnetworks.com>
10454
10455 * config/mips/mips.md (*extenddi_truncate<mode>,
10456 *extendsi_truncate<mode>): Change type attribute to move_type
10457 with shift_shift. Split out code handling exts from here ...
10458 (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
10459 pattern.
10460 (*extendhi_truncateqi): Change type attribute to move_type with
10461 shift_shift. Split out code handling exts from here ...
10462 (*extendhi_truncateqi_exts): ... to this new pattern.
10463
10464 2009-07-15 Uros Bizjak <ubizjak@gmail.com>
10465
10466 * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
10467 instead of "and" with inverted sign bit mask value. Use
10468 "nonimmediate_operand" for operand 1 and operand 2 predicate.
10469 Allocate registers only for operand 4 and operand 5.
10470
10471 2009-07-15 Jakub Jelinek <jakub@redhat.com>
10472
10473 PR middle-end/40747
10474 * fold-const.c (fold_cond_expr_with_comparison): When folding
10475 < and <= to MIN, make sure the MIN uses the same type as the
10476 comparison's operands.
10477
10478 2009-07-15 Richard Earnshaw <rearnsha@arm.com>
10479
10480 * arm.md (ior_xor): New code iterator.
10481 (split for ior/xor with shift and zero-extend): New split pattern.
10482 * arm/predicates.md (subreg_lowpart_operator): New special predicate.
10483
10484 2009-07-15 Richard Guenther <rguenther@suse.de>
10485
10486 * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
10487 offset member.
10488
10489 2009-07-15 Richard Guenther <rguenther@suse.de>
10490
10491 PR middle-end/40753
10492 * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
10493
10494 2009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10495
10496 * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
10497 handle 2.6.30 kernel.
10498
10499 2009-07-15 DJ Delorie <dj@redhat.com>
10500
10501 * config/mep/mep.md (sibcall_internal): Change register to allow
10502 for 24-bit addresses.
10503 (sibcall_value_internal): Likewise.
10504
10505 2009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com>
10506
10507 * doc/invoke.texi: Added descriptions of the scheduling heuristics
10508 that are enabled/disabled by the flags introduced by a previous patch.
10509
10510 2009-07-14 DJ Delorie <dj@redhat.com>
10511
10512 * config/mep/mep.md (sibcall_internal): Include non-toggling
10513 non-jmp case.
10514 (sibcall_value_internal): Likewise.
10515
10516 2009-07-14 Taras Glek <tglek@mozilla.com>
10517 Rafael Espindola <espindola@google.com>
10518
10519 * doc/sourcebuild.texi: Document install-plugin target.
10520 * configure.ac: Added install-plugin target to language makefiles.
10521 * configure: Regenerate.
10522 * Makefile.in: (install-plugin): Install more headers,
10523 depend on lang.install-plugin.
10524
10525 2009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10526
10527 * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
10528 translation.
10529
10530 2009-07-14 DJ Delorie <dj@redhat.com>
10531
10532 * config/mep/mep.c (mep_vliw_jmp_match): New function.
10533 * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
10534 * config/mep/mep.md (sibcall_internal): Change test from
10535 mep_vliw_mode_match to mep_vliw_jmp_match.
10536 (sibcall_value_internal): Likewise.
10537
10538 2009-07-14 Uros Bizjak <ubizjak@gmail.com>
10539
10540 * config/i386/sse.md (copysign<mode>3): New expander.
10541 * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
10542 * config/i386/i386.c (ix86_build_signbit_mask): Make public.
10543 Use ix86_build_const_vector.
10544 (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
10545 IX86_BUILTIN_CPYSGNPD.
10546 (builtin_description): Add __builtin_ia32_copysignps and
10547 __builtin_ia32_copysignpd.
10548 (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
10549 and BUILT_IN_COPYSIGNF.
10550
10551 2009-07-13 Jason Merrill <jason@redhat.com>
10552
10553 * builtins.c (can_trust_pointer_alignment): New fn.
10554 (get_pointer_alignment): Factor it out from here.
10555 * tree.h: Declare it.
10556
10557 2009-07-14 David Edelsohn <edelsohn@gnu.org>
10558
10559 * config/rs6000/predicates.md (offsettable_mem_operand): Test
10560 RTX_AUTOINC class.
10561
10562 2009-07-14 Dodji Seketeli <dodji@redhat.com>
10563
10564 PR debug/40705
10565 PR c++/403057
10566 * dwarf2.out.c (gen_type_die_with_usage): Added comment.
10567
10568 2009-07-14 Richard Guenther <rguenther@suse.de>
10569 Andrey Belevantsev <abel@ispras.ru>
10570
10571 PR middle-end/40745
10572 * cfgexpand.c (partition_stack_vars): Do not bother to update
10573 alias information when not optimizing.
10574
10575 2009-07-14 Richard Guenther <rguenther@suse.de>
10576 Andrey Belevantsev <abel@ispras.ru>
10577
10578 * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
10579 (pt_solution_set): Likewise.
10580 * tree-ssa-alias.c (refs_may_alias_p_1): Export.
10581 * tree-ssa-structalias.c (pt_solution_set): New function.
10582 * final.c (rest_of_clean_state): Free SSA data structures.
10583 * print-rtl.c (print_decl_name): Remove.
10584 (print_mem_expr): Implement in terms of print_generic_expr.
10585 * alias.c (ao_ref_from_mem): New function.
10586 (rtx_refs_may_alias_p): Likewise.
10587 (true_dependence): Query alias-export info.
10588 (canon_true_dependence): Likewise.
10589 (write_dependence_p): Likewise.
10590 * tree-dfa.c (get_ref_base_and_extent): For void types leave
10591 size unknown.
10592 * emit-rtl.c (component_ref_for_mem_expr): Remove.
10593 (mem_expr_equal_p): Use operand_equal_p.
10594 (set_mem_attributes_minus_bitpos): Do not use
10595 component_ref_for_mem_expr.
10596 * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
10597 (update_alias_info_with_stack_vars): Likewise.
10598 (partition_stack_vars): Call update_alias_info_with_stack_vars.
10599 * tree-ssa.c (delete_tree_ssa): Do not release SSA names
10600 explicitly nor clear stmt operands.
10601 Free the decl-to-pointer map.
10602 * tree-optimize.c (execute_free_datastructures): Do not free
10603 SSA data structures here.
10604 * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
10605 * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
10606 (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
10607 dependencies.
10608 (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
10609
10610 2009-07-13 DJ Delorie <dj@redhat.com>
10611
10612 * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
10613 unrolling at the right iteration count.
10614
10615 * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
10616 calculations.
10617
10618 2009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
10619
10620 * haifa-sched.c (rank_for_schedule): Introduced flags to
10621 enable/disable individual scheduling heuristics.
10622 * common.opt: Introduced flags to enable/disable individual
10623 heuristics in the scheduler.
10624 * doc/invoke.texi: Introduced flags to enable/disable individual
10625 heuristics in the scheduler.
10626
10627 2009-07-13 Kai Tietz <kai.tietz@onevision.com>
10628
10629 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
10630 config/i386/mingw-tls.c.
10631 * config/i386/mingw-tls.c: Removed.
10632
10633 2009-07-13 Ira Rosen <irar@il.ibm.com>
10634
10635 * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
10636 checks access only relevant statements.
10637 (vectorizable_reduction): Likewise.
10638
10639 2009-07-12 Kai Tietz <kai.tietz@onevision.com>
10640
10641 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
10642 just for 32-bit case.
10643
10644 2009-07-12 Jan Hubicka <jh@suse.cz>
10645
10646 PR tree-optimization/40585
10647 * except.c (expand_resx_expr): When there already is resume
10648 instruction, produce linked list.
10649 (build_post_landing_pads): Assert that resume is empty.
10650 (connect_post_landing_pads): Handle resume lists.
10651 (dump_eh_tree): Dump resume list.
10652
10653 2009-07-12 Ira Rosen <irar@il.ibm.com>
10654
10655 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
10656 with additional argument.
10657 * tree-vectorizer.h (enum vect_def_type): Add
10658 vect_double_reduction_def.
10659 (vect_is_simple_reduction): Add argument.
10660 * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
10661 indentation.
10662 (vect_analyze_scalar_cycles_1): Detect double reduction. Call
10663 vect_is_simple_reduction with additional argument.
10664 (vect_analyze_loop_operations): Handle exit phi nodes in case of
10665 double reduction.
10666 (reduction_code_for_scalar_code): Handle additional codes by
10667 returning ERROR_MARK for them. Fix comment and indentation.
10668 (vect_is_simple_reduction): Fix comment, add argument to specify
10669 double reduction. Detect double reduction.
10670 (get_initial_def_for_induction): Fix indentation.
10671 (get_initial_def_for_reduction): Fix comment and indentation.
10672 Handle double reduction. Create initial definitions that do not
10673 require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
10674 (vect_create_epilog_for_reduction): Fix comment, add argument to
10675 handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
10676 epilogue result extraction. Create double reduction phi node and
10677 replace relevant uses.
10678 (vectorizable_reduction): Call vect_is_simple_reduction with
10679 additional argument. Fix indentation. Update epilogue code treatment
10680 according to the changes in reduction_code_for_scalar_code. Check
10681 for double reduction. Call vect_create_epilog_for_reduction with
10682 additional argument.
10683 * tree-vect-stmts.c (process_use): Handle double reduction, update
10684 documentation.
10685 (vect_mark_stmts_to_be_vectorized): Handle double reduction.
10686 (vect_get_vec_def_for_operand): Likewise.
10687
10688 2009-07-12 Danny Smith <dansmister@gmail.com>
10689
10690 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
10691 dllexport if !TREE_PUBLIC.
10692 (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
10693
10694 2009-07-11 Anatoly Sokolov <aesok@post.ru>
10695
10696 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
10697 (avr_extra_arch_macro) Remove declatation.
10698 * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
10699 (avr_extra_arch_macro) Declare as static.
10700 * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
10701
10702 2009-07-11 Jan Hubicka <jh@suse.cz>
10703
10704 PR middle-end/48388
10705 * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
10706
10707 2009-07-11 Jakub Jelinek <jakub@redhat.com>
10708
10709 PR debug/40713
10710 * dwarf2out.c (dw_fde_struct): Add in_std_section and
10711 cold_in_std_section bits.
10712 (dwarf2out_begin_prologue): Initialize them.
10713 (dwarf2out_finish): Don't emit FDE range into .debug_ranges
10714 if already covered by text_section or cold_text_section range.
10715
10716 PR rtl-optimization/40667
10717 * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
10718 * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
10719 * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
10720 * config/i386/i386.c (ix86_minimum_alignment): New function.
10721 * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
10722 * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
10723 * emit-rtl.c (gen_reg_rtx): Likewise.
10724 * function.c (assign_parms): Likewise. If nominal_type needs
10725 bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
10726 rather than passed_type's alignment.
10727
10728 PR target/40668
10729 * function.c (assign_parm_setup_stack): Adjust
10730 MEM_OFFSET (data->stack_parm) if promoted_mode is different
10731 from nominal_mode on big endian.
10732
10733 2009-07-11 Paolo Bonzini <bonzini@gnu.org>
10734
10735 * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
10736
10737 2009-07-10 DJ Delorie <dj@redhat.com>
10738
10739 * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
10740
10741 2009-07-10 Mark Mitchell <mark@codesourcery.com>
10742
10743 * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
10744 attribute.
10745 (thumb2_cbnz): Likewise.
10746
10747 2009-07-10 David Daney <ddaney@caviumnetworks.com>
10748
10749 PR target/39079
10750 * config.gcc (supported_defaults): Add synci.
10751 (with_synci): Add validation.
10752 (all_defaults): Add synci.
10753 * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
10754 ISA_HAS_SYNCI.
10755 (synci): Same.
10756 * config/mips/mips.opt (msynci): New option.
10757 * config/mips/mips.c (mips_override_options): Warn on use of
10758 -msynci for targets that do now support it.
10759 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
10760 msynci.
10761 * gcc/doc/invoke.texi (-msynci): Document the new option.
10762 * doc/install.texi (--with-synci): Document the new option.
10763
10764 2009-07-10 Richard Guenther <rguenther@suse.de>
10765
10766 PR tree-optimization/40496
10767 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
10768 the PHI result with a compatible type.
10769
10770 2009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
10771
10772 PR 25509
10773 PR 40614
10774 * c.opt (Wunused-result): New.
10775 * doc/invoke.texi: Document it.
10776 * c-common.c (c_warn_unused_result): Use it.
10777
10778 2009-07-09 DJ Delorie <dj@redhat.com>
10779
10780 * targhooks.c (default_target_can_inline_p): Rename from
10781 default_target_option_can_inline_p.
10782 * targhooks.h (default_target_can_inline_p): Likewise.
10783 * target-def.h (TARGET_CAN_INLINE_P): Rename from
10784 TARGET_OPTION_CAN_INLINE_P.
10785 * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
10786 * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
10787 (mep_target_can_inline_p): Rename from
10788 mep_target_option_can_inline_p.
10789
10790 PR target/40626
10791 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
10792 registers used to pass vectors.
10793
10794 * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
10795
10796 2009-07-09 Tom Tromey <tromey@redhat.com>
10797
10798 * unwind-dw2-fde-darwin.c: Include dwarf2.h.
10799 * config/mmix/mmix.c: Include dwarf2.h.
10800 * config/rs6000/darwin-fallback.c: Include dwarf2.h.
10801 * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
10802 * config/sh/sh.c: Include dwarf2.h.
10803 * config/i386/i386.c: Include dwarf2.h.
10804 * Makefile.in (DWARF2_H): Remove 'elf'.
10805 * except.c: Include dwarf2.h.
10806 * unwind-dw2.c: Include dwarf2.h.
10807 * dwarf2out.c: Include dwarf2.h.
10808 * unwind-dw2-fde-glibc.c: Include dwarf2.h.
10809 * unwind-dw2-fde.c: Include dwarf2.h.
10810 * dwarf2asm.c: Include dwarf2.h.
10811
10812 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
10813
10814 * haifa-sched.c (insn_finishes_cycle_p): New static function.
10815 (max_issue): Use it.
10816 * sched-int.h (struct sched_info: insn_finishes_block_p): New
10817 scheduler hook.
10818 * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
10819 (region_sched_info): Update.
10820 * sched-ebb.c (ebb_sched_info): Update.
10821 * modulo-sched.c (sms_sched_info): Update.
10822 * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
10823
10824 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
10825
10826 * varasm.c (build_constant_desc): Don't share RTL in pool entries.
10827
10828 2009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
10829
10830 * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
10831
10832 2009-07-09 Jakub Jelinek <jakub@redhat.com>
10833
10834 PR middle-end/40692
10835 * fold-const.c (fold_cond_expr_with_comparison): Don't replace
10836 arg1 with arg01 if arg1 is already INTEGER_CST.
10837
10838 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
10839
10840 * simplify-rtx.c (simplify_binary_operation_1) <AND>:
10841 Transform (and (truncate)) into (truncate (and)).
10842
10843 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
10844
10845 * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
10846 creating LHS paradoxical subregs. Fix surrounding returns to
10847 use NULL_RTX rather than 0.
10848
10849 2009-07-08 DJ Delorie <dj@redhat.com>
10850
10851 * config/mep/mep.c: (mep_option_can_inline_p): New.
10852 (TARGET_OPTION_CAN_INLINE_P): Define.
10853
10854 2009-07-08 Mark Wielaard <mjw@redhat.com>
10855
10856 PR debug/40659
10857 * dwarf2out.c (add_data_member_location_attribute): When we have
10858 only a constant offset don't emit a new location description using
10859 DW_OP_plus_uconst, but just add the constant with add_AT_int, when
10860 dwarf_version > 2.
10861
10862 2009-07-08 Richard Henderson <rth@redhat.com>
10863
10864 PR target/38900
10865 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
10866 (enum reg_class): Add CLOBBERED_REGS.
10867 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
10868 * config/i386/i386.c (ix86_conditional_register_usage): Moved
10869 from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
10870 (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
10871 (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
10872 force 64-bit sibcalls into R11.
10873 * config/i386/constraints.md (U): New constraint.
10874 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
10875 (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
10876 (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
10877
10878 2009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
10879
10880 * basic-block.h (dump_regset, debug_regset): Remove duplicate
10881 prototypes.
10882 * c-objc-common.h (c_initialize_diagnostics): Ditto.
10883 * ebitmap.h (dump_ebitmap): Ditto.
10884 * optabs.h (optab_libfunc): Ditto.
10885 * tree.h (tree_expr_nonzero_warnv_p): Ditto.
10886 * tree-flow.h (vect_can_force_dr_alignment_p,
10887 get_vectype_for_scalar_type): Ditto.
10888 (vectorize_loops): Move prototype to ...
10889 * tree-vectorizer.h: ... here. Also, adjust comment.
10890 (vect_set_verbosity_level): Remove duplicate prototype.
10891 * tree-ssa-loop.c: Include tree-vectorizer.h.
10892 * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
10893
10894 2009-07-08 Nick Clifton <nickc@redhat.com>
10895
10896 * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
10897 forward slash.
10898
10899 2009-07-08 DJ Delorie <dj@redhat.com>
10900
10901 * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
10902 cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
10903 cpmovtocc_P0S_P1): Mark volatile. Note which registers are
10904 written to.
10905 * config/mep/intrinsics.md: Regenerated.
10906 * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
10907 registers when asm() or calls are detected.
10908
10909 2009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
10910
10911 PR c++/31246
10912 * gimplify.c (gimplify_expr): Propagate no_warning flag when
10913 gimplifying.
10914 * gimple (gimple_build_call_from_tree): Likewise.
10915 * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
10916 no_warning flag before warning.
10917
10918 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
10919
10920 * tree.c (set_expr_locus): Remove.
10921 * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
10922 * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
10923 EXPR_LOCATION.
10924 * gimplify.c (internal_get_tmp_var): Likewise.
10925 (gimplify_call_expr): Likewise.
10926 (gimplify_one_sizepos): Likewise.
10927
10928 2009-07-07 Eric Botcazou <ebotcazou@adacore.com>
10929
10930 PR debug/40666
10931 * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
10932 to variables for debugging purposes.
10933
10934 2009-06-23 Mark Loeser <mark@halcy0n.com>
10935
10936 PR build/40010
10937 * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
10938
10939 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
10940
10941 * pretty-print.c (pp_base_format): Remove %J.
10942 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
10943 gcc_cxxdiag_char_table): Likewise.
10944 (init_dynamic_diag_info): Likewise.
10945
10946 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
10947
10948 * pretty-print.c (pp_base_format): Remove %H.
10949 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
10950 gcc_cxxdiag_char_table): Likewise.
10951 (init_dynamic_diag_info): Likewise.
10952 * config/mep/mep.c (mep_select_section): Likewise.
10953
10954 2009-07-07 Duncan Sands <baldrick@free.fr>
10955
10956 * final.c (pass_clean_state): Give the pass a name.
10957 * passes.c (pass_rest_of_compilation): Likewise.
10958 * tree-optimize.c (pass_all_optimizations): Likewise.
10959
10960 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
10961
10962 * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
10963 an extra 'decl' for error_at.
10964
10965 2009-07-07 Jakub Jelinek <jakub@redhat.com>
10966
10967 PR middle-end/40669
10968 * tree-tailcall.c (adjust_return_value_with_ops,
10969 create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
10970 if it has complex or vector type.
10971
10972 2009-07-07 Olivier Hainque <hainque@adacore.com>
10973
10974 * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
10975 pthread symbols.
10976
10977 2009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
10978
10979 * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
10980
10981 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
10982
10983 * cgraphunit.c: Replace %J by an explicit location. Update all calls.
10984 * c-decl.c: Likewise.
10985 * function.c: Likewise.
10986 * varasm.c: Likewise.
10987 * tree-ssa.c: Likewise.
10988 * c-common.c: Likewise.
10989 * tree-cfg.c: Likewise.
10990 * config/spu/spu.c: Likewise.
10991 * config/ia64/ia64.c: Likewise.
10992 * config/v850/v850.c: Likewise.
10993
10994 2009-07-06 DJ Delorie <dj@redhat.com>
10995
10996 * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
10997 * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
10998 unspecified accesses to control registers.
10999 * config/mep/intrinsics.md: Regenerate.
11000 * config/mep/intrinsics.h: Regenerate.
11001 * config/mep/mep-intrin.h: Regenerate.
11002
11003 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
11004
11005 * c-lex.c: Replace %H by an explicit location. Update all calls.
11006 * c-common.c: Likewise.
11007 * c-decl.c: Likewise.
11008 * c-typeck.c: Likewise.
11009 * fold-const.c: Likewise.
11010 * gimplify.c: Likewise.
11011 * stmt.c: Likewise.
11012 * tree-cfg.c: Likewise.
11013 * tree-ssa-loop-niter.c: Likewise.
11014 * tree-vrp.c: Likewise.
11015 * value-prof.c: Likewise.
11016
11017 2009-07-06 Diego Novillo <dnovillo@google.com>
11018
11019 * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
11020 if it has one. Handle cases where VAR does not have an
11021 annotation or cfun is NULL.
11022
11023 2009-07-06 Diego Novillo <dnovillo@google.com>
11024
11025 * tree.c: Include debug.h.
11026 (initialize_tree_contains_struct): New.
11027 (init_ttree): Call it.
11028 (tree_node_structure_for_code): Factor out of ...
11029 (tree_node_structure): ... here.
11030 * treestruct.def (TS_PHI_NODE): Remove.
11031 (TS_GIMPLE_STATEMENT): Remove.
11032
11033 2009-07-06 Diego Novillo <dnovillo@google.com>
11034
11035 * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
11036 (debug_tree_chain): Handle cycles.
11037
11038 2009-07-06 Nick Clifton <nickc@redhat.com>
11039 DJ Delorie <dj@redhat.com>
11040
11041 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
11042 __FMOVD_ENABLED__ is defined.
11043 * config/sh/sh.h
11044 (TARGET_FMOVD): Provide a default definition.
11045 (MASK_FMOVD): Likewise.
11046 (TARGET_CPU_CPP_BUILTINS): Define
11047 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
11048 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
11049 two fmov instructions depending upon whether TARGET_FMOVD is enabled.
11050 (split for DF load from memory into register): Also handle
11051 MEMs which consist of REG+DISP addressing.
11052 (split for DF store from register to memory): Likewise.
11053 (movsf_ie): Always use single fp_mode.
11054 * config/sh/sh.c (sh_override_options): Do not automatically
11055 enable TARGET_MOVD for the SH2A when supporting doubles - leave
11056 that to the -mfmovd command line switch.
11057 (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
11058 (fldi_ok): Always allow.
11059 * config/sh/sh.opt (mfmovd): Remove this switch.
11060 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
11061
11062 2009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
11063 Kaz Kojima <kkojima@gcc.gnu.org>
11064
11065 PR rtl-optimization/30807
11066 * postreload.c (reload_combine): For every new use of REG_SUM,
11067 record the use of BASE.
11068
11069 2009-07-06 Jan Hubicka <jh@suse.cz>
11070
11071 * params.def: Revert my accidental commit at 2009-06-30.
11072
11073 2009-07-04 Ian Lance Taylor <iant@google.com>
11074
11075 PR target/40636
11076 * config/i386/msformat-c.c (mingw_format_attributes): Declare as
11077 EXPORTED_CONST.
11078 (mingw_format_attribute_overrides): Likewise.
11079
11080 2009-07-04 Jakub Jelinek <jakub@redhat.com>
11081
11082 PR debug/40596
11083 * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
11084 don't check cfa.reg. Instead of cfa.indirect use
11085 fde && fde->drap_reg != INVALID_REGNUM test.
11086
11087 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
11088
11089 * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
11090
11091 2009-07-03 Vladimir Makarov <vmakarov@redhat.com>
11092
11093 PR target/40587
11094 * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
11095
11096 2009-07-03 Richard Guenther <rguenther@suse.de>
11097
11098 PR tree-optimization/40640
11099 * tree-switch-conversion.c (build_arrays): Perform arithmetic
11100 in original type.
11101
11102 2009-07-03 Jan Hubicka <jh@suse.cz>
11103
11104 * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
11105 for size, reduce amount of inlining.
11106
11107 2009-07-03 Richard Guenther <rguenther@suse.de>
11108
11109 PR middle-end/34163
11110 * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
11111 if t +- x is known to not overflow and the conversion widens the
11112 operation.
11113 * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
11114
11115 2009-07-03 Jan Hubicka <jh@suse.cz>
11116
11117 * ipa-pure-const.c (analyze): Update loop optimizer init.
11118 * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
11119 try_remove_empty_loop, remove_empty_loops): Remove.
11120 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
11121 * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
11122 to mark regular loops as neccesary.
11123 (degenerate_phi_p): New function.
11124 (propagate_necessity, remove_dead_phis): Use it.
11125 (forward_edge_to_pdom): Likewise.
11126 (eliminate_unnecessary_stmts): Take care to remove uses of results of
11127 virtual PHI nodes that became unreachable.
11128 (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
11129 * tree-flow.h (remove_empty_loops): Remove.
11130 * passes.c (init_optimization_passes): Remove.
11131
11132 2009-07-03 Uros Bizjak <ubizjak@gmail.com>
11133
11134 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
11135 can_create_pseudo_p.
11136 (*fix_trunc<mode>_i387_1): Ditto.
11137 (*floathi<mode>2_1): Ditto.
11138 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
11139 (*fistdi2_1): Ditto.
11140 (*fist<mode>2_1): Ditto.
11141 (frndintxf2_floor): Ditto.
11142 (*fist<mode>2_floor_1): Ditto.
11143 (frndintxf2_ceil): Ditto.
11144 (*fist<mode>2_ceil_1): Ditto.
11145 (frndintxf2_trunc): Ditto.
11146 (frndintxf2_mask_pm): Ditto.
11147 (fxam<mode>2_i387_with_temp): Ditto.
11148 * config/i386/sse.md (mulv16qi3): Ditto.
11149 (*sse2_mulv4si3): Ditto.
11150 (mulv2di3): Ditto.
11151 (sse4_2_pcmpestr): Ditto.
11152 (sse4_2_pcmpistr): Ditto.
11153
11154 2009-07-03 Jan Hubicka <jh@suse.cz>
11155
11156 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
11157 (mark_stmt_necessary): Set it.
11158 (mark_operand_necessary): Set it.
11159 (mark_control_dependent_edges_necessary): Set it.
11160 (mark_virtual_phi_result_for_renaming): New function.
11161 (get_live_post_dom): New function.
11162 (forward_edge_to_pdom): New function.
11163 (remove_dead_stmt): Fix handling of control dependences.
11164 (tree_dce_init): Init new bitmap.
11165 (tree_dce_done): Free it.
11166
11167 2009-07-02 Richard Guenther <rguenther@suse.de>
11168
11169 PR bootstrap/40617
11170 * tree-ssa-structalias.c (new_var_info): Initialize
11171 is_restrict_var.
11172
11173 2009-07-02 Jan Hubicka <jh@suse.cz>
11174
11175 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
11176 local.
11177
11178 2009-07-02 Paolo Bonzini <bonzini@gnu.org>
11179
11180 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
11181 instead of recomputing it. Adjust calls.
11182 (emit_store_flag): Adjust recursive calls.
11183
11184 2009-07-02 Richard Guenther <rguenther@suse.de>
11185
11186 * tree-ssa-live.c (remove_unused_locals): Do not remove
11187 heap variables.
11188 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
11189 of DECL_EXTERNAL for HEAP variables.
11190 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
11191 HEAP variables. Do not adjust RESTRICT vars.
11192 (find_what_var_points_to): Nobody cares if something
11193 points to READONLY.
11194
11195 2009-07-02 Ben Elliston <bje@au.ibm.com>
11196
11197 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
11198 pc_low and pc_high declarations to the top of the function.
11199
11200 2009-07-01 DJ Delorie <dj@redhat.com>
11201
11202 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
11203 registers as fixed.
11204 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
11205 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
11206 unspecified accesses to control registers.
11207 * config/mep/intrinsics.md: Regenerate.
11208 * config/mep/intrinsics.h: Regenerate.
11209 * config/mep/mep-intrin.h: Regenerate.
11210
11211 2009-07-01 Anthony Green <green@moxielogic.com>
11212
11213 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
11214 instruction when possible.
11215 (moxie_expand_prologue): Ditto. Also, save an instruction and
11216 some complexity by popping off of $r12 instead of $sp.
11217 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
11218 operands.
11219
11220 2009-07-01 Richard Henderson <rth@redhat.com>
11221
11222 PR bootstrap/40347
11223 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
11224 contained no insns, reposition note before last insn.
11225
11226 2009-07-01 Richard Henderson <rth@redhat.com>
11227
11228 PR debug/40431
11229 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
11230 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
11231
11232 2009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11233
11234 PR bootstrap/40558
11235 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
11236 darwin9 for printing reg addresses with %y.
11237
11238 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
11239
11240 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
11241 truncation from operands in binary operations.
11242
11243 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
11244
11245 Revert:
11246 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
11247 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
11248 subreg of op0 to the original op0.
11249
11250 * expmed.c (store_bit_field_1): Use a temporary as the destination
11251 instead of a paradoxical subreg when we need to truncate the result.
11252
11253 2009-07-01 DJ Delorie <dj@redhat.com>
11254
11255 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
11256 names to VLIW variants.
11257 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
11258 * config/mep/intrinsics.md: Regenerate.
11259 * config/mep/intrinsics.h: Regenerate.
11260 * config/mep/mep-intrin.h: Regenerate.
11261
11262 2009-07-01 Jakub Jelinek <jakub@redhat.com>
11263
11264 PR debug/40462
11265 * jump.c (returnjump_p): Revert last patch.
11266 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
11267
11268 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11269
11270 PR target/40575
11271 * pa.md (casesi32p): Use jump table label to determine the offset
11272 of the jump table.
11273 (casesi64p): Likewise.
11274
11275 * pa.c (forward_branch_p): Return bool type. Use instruction
11276 addresses when available. Assert that INSN has a jump label.
11277 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
11278 have a jump label.
11279
11280 2009-07-01 Richard Guenther <rguenther@suse.de>
11281
11282 PR tree-optimization/19831
11283 * tree-ssa-dce.c (propagate_necessity): Calls to functions
11284 that only act as barriers do not make any previous stores necessary.
11285 * tree-ssa-structalias.c (handle_lhs_call): Delay making
11286 HEAP variables global, do not add a constraint from nonlocal.
11287 (find_func_aliases): Handle escapes through return statements.
11288 (compute_points_to_sets): Make escaped HEAP variables global.
11289
11290 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
11291
11292 PR bootstrap/40597
11293 * expmed.c (emit_store_flag): Perform a conversion if necessary,
11294 after reducing a DImode cstore to SImode.
11295
11296 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
11297
11298 * expr.c (expand_expr_real_1): Reinstate fallthrough to
11299 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
11300
11301 2009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
11302
11303 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
11304 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
11305 to 0.
11306 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
11307 and umod_optab if TARGET_BSD_DIVMOD.
11308 * config/vax/lib1funcs.asm: New file.
11309 * config/vax/t-linux: New file.
11310 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
11311
11312 2009-06-30 Jakub Jelinek <jakub@redhat.com>
11313
11314 PR c++/40566
11315 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
11316 to type arguments that have void type.
11317
11318 PR debug/40573
11319 * dwarf2out.c (gen_formal_parameter_die): Call
11320 equate_decl_number_to_die if node is different from origin.
11321
11322 2009-06-30 Anthony Green <green@moxielogic.com>
11323
11324 Clean up moxie port for --enable-build-with-cxx.
11325 * config/moxie/moxie.c (moxie_function_value): First two
11326 parameters are const_tree, not tree.
11327 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
11328 (REG_CLASS_NAMES): Ditto.
11329 (REGNO_REG_CLASS): Ditto.
11330 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
11331 (moxie_function_value): Fix constyness of arguments.
11332
11333 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
11334
11335 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
11336 finalize_size_functions before further processing.
11337 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
11338 (variable_size): Call self_referential_size on size expressions
11339 that contain a PLACEHOLDER_EXPR.
11340 (size_functions): New static variable.
11341 (copy_self_referential_tree_r): New static function.
11342 (self_referential_size): Likewise.
11343 (finalize_size_functions): New global function.
11344 * tree.c: Include tree-inline.h.
11345 (push_without_duplicates): New static function.
11346 (find_placeholder_in_expr): New global function.
11347 (substitute_in_expr) <tcc_declaration>: Return the replacement object
11348 on equality.
11349 <tcc_expression>: Likewise.
11350 <tcc_vl_exp>: If the replacement object is a constant, try to inline
11351 the call in the expression.
11352 * tree.h (finalize_size_functions): Declare.
11353 (find_placeholder_in_expr): Likewise.
11354 (FIND_PLACEHOLDER_IN_EXPR): New macro.
11355 (substitute_placeholder_in_expr): Update comment.
11356 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
11357 is true.
11358 (copy_tree_body_r): Likewise.
11359 (copy_tree_body): New static function.
11360 (maybe_inline_call_in_expr): New global function.
11361 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
11362 (maybe_inline_call_in_expr): Declare.
11363 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
11364 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
11365 GIMPLE_H.
11366
11367 2009-06-30 Richard Guenther <rguenther@suse.de>
11368
11369 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
11370 continue walking.
11371 (propagate_necessity): Do not mark reaching defs of stores
11372 as necessary.
11373
11374 2009-06-30 Jan Hubicka <jh@suse.cz>
11375
11376 * cfgloopanal.c (check_irred): Move into ...
11377 (mark_irreducible_loops): ... here; return true if ireducible
11378 loops was found.
11379 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
11380 (analyze_function): Try to prove loop finiteness.
11381 * cfgloop.h (mark_irreducible_loops): Update prototype.
11382 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
11383
11384 2009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
11385
11386 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
11387
11388 2009-06-30 Ira Rosen <irar@il.ibm.com>
11389
11390 PR tree-optimization/40542
11391 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
11392 types.
11393
11394 2009-06-30 Martin Jambor <mjambor@suse.cz>
11395
11396 PR tree-optimization/40582
11397 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
11398 than useless_type_conversion_p.
11399 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
11400 proper place.
11401
11402 2009-06-30 Martin Jambor <mjambor@suse.cz>
11403
11404 PR middle-end/40554
11405 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
11406
11407 2009-06-30 Richard Guenther <rguenther@suse.de>
11408
11409 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
11410 use ao_ref references.
11411 (walk_aliased_vdefs): Likewise.
11412 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
11413 * tree-ssa-dce.c (struct ref_data): Remove.
11414 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
11415 (mark_aliased_reaching_defs_necessary): Adjust.
11416 (mark_all_reaching_defs_necessary_1): Likewise.
11417
11418 2009-06-30 Paolo Bonzini <bonzini@gnu.org>
11419
11420 PR boostrap/40597
11421 * expmed.c (emit_cstore): New name of emit_store_flag_1.
11422 (emit_store_flag_1): Extract from emit_store_flag, adjust
11423 calls to (what now is) emit_cstore.
11424 (emit_store_flag): Call emit_store_flag_1 and also use it
11425 for what used to be recursive calls.
11426
11427 2009-06-30 Wei Guozhi <carrot@google.com>
11428
11429 PR/40416
11430 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
11431 if the target bb post dominates from bb.
11432 * config/i386/i386.c (memory_address_length): Check existence of base
11433 register before using it.
11434
11435 2009-06-30 Nick Clifton <nickc@redhat.com>
11436 DJ Delorie <dj@redhat.com>
11437
11438 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
11439 __FMOVD_ENABLED__ is defined.
11440 * config/sh/sh.h
11441 (TARGET_FMOVD): Provide a default definition.
11442 (MASK_FMOVD): Likewise.
11443 (TARGET_CPU_CPP_BUILTINS): Define
11444 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
11445 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
11446 two fmov instructions depending upon whether TARGET_FMOVD is
11447 enabled.
11448 (split for DF load from memory into register): Also handle
11449 MEMs which consist of REG+DISP addressing.
11450 (split for DF store from register to memory): Likewise.
11451 * config/sh/sh.opt (mfmovd): Remove this switch.
11452 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
11453 * config/sh/sh.c (sh_override_options): Do not automatically
11454 enable TARGET_MOVD for the SH2A when supporting doubles - leave
11455 that to the -mfmovd command line switch.
11456
11457 * config/sh/sh.c (broken_move): Do not restrict fldi test to only
11458 the SH4 and SH4A.
11459 (fldi_ok): Always allow.
11460 * config/sh/sh.md (movsf_ie): Always use single fp_mode.
11461
11462 2009-06-29 DJ Delorie <dj@redhat.com>
11463
11464 * doc/install.texi (mep-x-elf): Correct chip's full name.
11465
11466 2009-06-29 H.J. Lu <hongjiu.lu@intel.com>
11467
11468 * doc/extend.texi: Fix typo.
11469
11470 2009-06-29 Tom Tromey <tromey@redhat.com>
11471
11472 * dwarf2.h: Remove.
11473 * Makefile.in (DWARF2_H): New variable.
11474 (except.o): Use it.
11475 (dwarf2out.o): Likewise.
11476 (dwarf2asm.o): Likewise.
11477 * config/i386/t-i386: Use DWARF2_H.
11478 * except.c: Include elf/dwarf2.h.
11479 * unwind-dw2.c: Include elf/dwarf2.h.
11480 * dwarf2out.c: Include elf/dwarf2.h.
11481 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
11482 <dtprel>: New field.
11483 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
11484 (size_of_loc_descr): Likewise.
11485 (output_loc_operands_raw): Likewise.
11486 (output_loc_operands): Handle new dtprel field.
11487 (loc_checksum): Update.
11488 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
11489 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
11490 * unwind-dw2-fde.c: Include elf/dwarf2.h.
11491 * dwarf2asm.c: Include elf/dwarf2.h.
11492 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
11493 * config/mmix/mmix.c: Include elf/dwarf2.h.
11494 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
11495 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
11496 * config/sh/sh.c: Include elf/dwarf2.h.
11497 * config/i386/i386.c: Include elf/dwarf2.h.
11498
11499 2009-06-29 DJ Delorie <dj@redhat.com>
11500
11501 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
11502
11503 * doc/extend.texi: Add MeP attributes and pragmas.
11504 * doc/invoke.text: Add MeP Options.
11505 * doc/contrib.texi: Add MeP contribution.
11506 * doc/md.texi: Add MeP constraints.
11507 * doc/install.texi: Add MeP target.
11508
11509 2009-06-30 Anatoly Sokolov <aesok@post.ru>
11510
11511 * target.h (struct gcc_target): Add frame_pointer_required field.
11512 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
11513 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
11514 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
11515 hook.
11516 * reload1.c (update_eliminables): (Ditto.).
11517 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
11518 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
11519 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
11520
11521 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
11522
11523 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
11524 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11525 (arm_frame_pointer_required): New function.
11526
11527 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
11528 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11529 (avr_frame_pointer_required_p): Declare as static.
11530 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
11531
11532 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
11533 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11534 (bfin_frame_pointer_required): Make as static, change return type
11535 to bool.
11536 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
11537
11538 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
11539 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11540 (cris_frame_pointer_required): New function.
11541
11542 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
11543
11544 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
11545 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11546 (fr30_frame_pointer_required): New function.
11547
11548 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
11549 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11550 (frv_frame_pointer_required): Make as static, change return type
11551 to bool.
11552 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
11553
11554 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
11555 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11556 (ix86_frame_pointer_required): Make as static, change return type to
11557 bool.
11558 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
11559
11560 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
11561 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11562
11563 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
11564
11565 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
11566
11567 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
11568
11569 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
11570 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11571 (mips_frame_pointer_required): Make as static.
11572 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
11573
11574 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
11575 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11576 (mmix_frame_pointer_required): Mew function.
11577
11578 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
11579 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11580
11581 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
11582
11583 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
11584
11585 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
11586
11587 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
11588 (CAN_ELIMINATE): Redefine.
11589 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11590 (sparc_frame_pointer_required): New function.
11591 (sparc_can_eliminate): New function.
11592 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
11593
11594 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
11595 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11596
11597 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
11598 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11599 (xtensa_frame_pointer_required): Make as static, change return type
11600 to bool.
11601 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
11602 Remove.
11603
11604 2009-06-29 Olatunji Ruwase <tjruwase@google.com>
11605
11606 * doc/plugins.texi: Document PLUGIN_START_UNIT.
11607 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
11608 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
11609 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
11610 (register_callback): Handle PLUGIN_START_UNIT.
11611 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
11612
11613 2009-06-29 Eric Botcazou <ebotcazou@adacore.com>
11614
11615 * tree.c (process_call_operands): Propagate TREE_READONLY from the
11616 operands.
11617 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
11618 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
11619
11620 2009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
11621
11622 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
11623 move cost.
11624
11625 2009-06-29 Uros Bizjak <ubizjak@gmail.com>
11626
11627 * doc/extend.texi (Additional Floating Types): __float128 is also
11628 supported on i386 targets.
11629
11630 2009-06-29 Richard Guenther <rguenther@suse.de>
11631
11632 PR middle-end/14187
11633 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
11634 flag.
11635 (pt_solutions_same_restrict_base): Declare.
11636 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
11637 flag.
11638 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
11639 (make_constraint_from, make_copy_constraint): Move earlier.
11640 (make_constraint_from_heapvar): New function.
11641 (make_constraint_from_restrict): Likewise.
11642 (handle_lhs_call): Use it.
11643 (find_func_aliases): Use it to track conversions to restrict
11644 qualified pointers.
11645 (struct fieldoff): Add only_restrict_pointers flag.
11646 (push_fields_onto_fieldstack): Initialize it.
11647 (create_variable_info_for): Track global restrict qualified pointers.
11648 (intra_create_variable_infos): Use make_constraint_from_heapvar.
11649 Track restrict qualified pointer arguments.
11650 (set_uids_in_ptset): Use varinfo is_global_var flag.
11651 (find_what_var_points_to): Set the vars_contains_restrict flag.
11652 Always create the points-to solution for sets including restrict tags.
11653 (pt_solutions_same_restrict_base): New function.
11654 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
11655 qualified pointers use pt_solutions_same_restrict_base as
11656 additional source for disambiguation.
11657
11658 2009-06-29 Richard Guenther <rguenther@suse.de>
11659
11660 PR middle-end/38212
11661 * alias.c (find_base_decl): Remove.
11662 (get_deref_alias_set_1): Remove restrict handling.
11663 * c-common.c (c_apply_type_quals_to_decl): Do not set
11664 DECL_POINTER_ALIAS_SET.
11665 * gimplify.c (find_single_pointer_decl_1): Remove.
11666 (find_single_pointer_decl): Likewise.
11667 (internal_get_tmp_var): Remove restrict handling.
11668 (gimple_regimplify_operands): Likewise.
11669 * omp-low.c (expand_omp_atomic_pipeline): Do not set
11670 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
11671 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
11672 * tree.c (restrict_base_for_decl): Remove.
11673 (init_ttree): Do not allocate it.
11674 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
11675 LABEL_DECL_UID for label decls.
11676 (copy_node_stat): Do not copy restrict information.
11677 (decl_restrict_base_lookup): Remove.
11678 (decl_restrict_base_insert): Likewise.
11679 (print_restrict_base_statistics): Likewise.
11680 (dump_tree_statistics): Do not call print_restrict_base_statistics.
11681 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
11682 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
11683 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
11684 (LABEL_DECL_UID): Adjust.
11685 (DECL_BASED_ON_RESTRICT_P): Remove.
11686 (DECL_GET_RESTRICT_BASE): Likewise.
11687 (SET_DECL_RESTRICT_BASE): Likewise.
11688 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
11689
11690 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
11691 instead of DECL_POINTER_ALIAS_SET.
11692 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
11693 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
11694 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
11695
11696 2009-06-29 Richard Guenther <rguenther@suse.de>
11697
11698 PR tree-optimization/40579
11699 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
11700 the IL to simplify has constants that overflowed.
11701
11702 2009-06-28 Uros Bizjak <ubizjak@gmail.com>
11703
11704 PR tree-optimization/40550
11705 * tree-vect-generic.c (expand_vector_operations_1): Compute in
11706 vector_compute_type only when the size of vector_compute_type is
11707 less than the size of type.
11708
11709 2009-06-28 Eric Botcazou <ebotcazou@adacore.com>
11710
11711 * fold-const.c (contains_label_1): Fix comments.
11712 (contains_label_p): Do not walk trees multiple time.
11713
11714 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11715
11716 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
11717 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
11718 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
11719 ix86_fp_comparison_operator.
11720 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
11721 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
11722 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
11723 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
11724 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
11725 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
11726 (related splits): Change predicate to ix86_fp_comparison_operator.
11727 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
11728 instead of ix86_fp_comparison_codes.
11729 (ix86_trivial_fp_comparison_operator,
11730 ix86_fp_comparison_operator): New.
11731 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
11732 (ix86_expand_compare): Eliminate last two parameters.
11733 (ix86_fp_jump_nontrivial_p): Kill.
11734 * config/i386/i386.c (put_condition_code): Eliminate call to
11735 ix86_fp_comparison_codes and subsequent assertion.
11736 (ix86_fp_comparison_codes): Eliminate.
11737 (ix86_fp_swap_condition): New.
11738 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
11739 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
11740 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
11741 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
11742 and ix86_fp_swap_condition.
11743 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
11744 Use ix86_fp_comparison_strategy.
11745 (ix86_expand_compare): Likewise. Eliminate last two arguments.
11746 (ix86_fp_jump_nontrivial_p): Eliminate.
11747 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
11748 call to ix86_expand_compare.
11749 (ix86_split_fp_branch, ix86_expand_setcc,
11750 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
11751 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
11752
11753 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11754
11755 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
11756 related to jump_clobbers.
11757 * config/arm/arm.md (conds): Remove jump_clob case.
11758 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
11759 splits): Change comparison_operator to arm_comparison_operator.
11760 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
11761 Eliminate.
11762
11763 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11764
11765 * dojump.c (do_compare_rtx_and_jump): Try swapping the
11766 condition for floating point modes.
11767 * expmed.c (emit_store_flag_1): Move here a bigger part
11768 of emit_store_flag.
11769 (emit_store_flag): Try swapping the condition for floating point
11770 modes.
11771 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
11772
11773 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11774
11775 * expr.c (expand_expr_real_1): Just use do_store_flag.
11776 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
11777 emit_store_flag_force.
11778 * expmed.c (emit_store_flag_force): Copy here trick
11779 previously in expand_expr_real_1. Try reversing the comparison.
11780 (emit_store_flag_1): Work if target is NULL.
11781 (emit_store_flag): Work if target is NULL, using the result mode
11782 from the comparison. Use split_comparison, restructure final part
11783 to simplify conditionals.
11784
11785 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11786
11787 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
11788 * dojump.c (do_jump): Change handling of floating-point
11789 ops to use just do_compare_and_jump.
11790 (split_comparison): New.
11791 (do_compare_rtx_and_jump): Add here logic coming previously
11792 in do_jump, using split_comparison.
11793
11794 2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
11795
11796 PR target/40489
11797 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
11798
11799 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11800
11801 * tree-ssa-alias.c: Fix unintentional commit.
11802
11803 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11804
11805 * passes.c (execute_one_pass): Fix unintentional commit.
11806
11807 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11808
11809 * df-problems.c (df_set_seen, df_unset_seen): Delete.
11810 (df_rd_local_compute, df_md_local_compute): Inline them.
11811
11812 (df_md_scratch): New.
11813 (df_md_alloc, df_md_free): Allocate/free it.
11814 (df_md_local_compute): Only include live registers in init.
11815 (df_md_transfer_function): Prune the in-set computed by
11816 the confluence function, and the gen-set too.
11817
11818 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11819
11820 PR rtl-optimization/26854
11821 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
11822 * df-problems.c (df_rd_add_problem): Fix comment.
11823 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
11824 df_md_simulate_artificial_defs_at_top,
11825 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
11826 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
11827 df_md_transfer_function, df_md_init, df_md_confluence_0,
11828 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
11829 problem_MD, df_md_add_problem): New.
11830 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
11831 df_md_get_bb_info): New.
11832 (DF_LAST_PROBLEM_PLUS1): Adjust.
11833
11834 * Makefile.in (fwprop.o): Include domwalk.h.
11835 * fwprop.c: Include domwalk.h.
11836 (reg_defs, reg_defs_stack): New.
11837 (bitmap_only_bit_between): Remove.
11838 (process_defs): New.
11839 (process_uses): Use reg_defs and local_md instead of
11840 bitmap_only_bit_between and local_rd.
11841 (single_def_use_enter_block): New, from build_single_def_use_links.
11842 (single_def_use_leave_block): New.
11843 (build_single_def_use_links): Remove code moved to
11844 single_def_use_enter_block, invoke domwalk.
11845 (use_killed_between): Adjust comment.
11846
11847 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11848
11849 * bitmap.h (bitmap_ior_and_into): New.
11850 * bitmap.c (bitmap_ior_and_into): New.
11851
11852 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11853
11854 * domwalk.h (struct dom_walk_data): Remove all callbacks except
11855 before_dom_children_before_stmts and after_dom_children_after_stmts.
11856 Rename the two remaining callbacks to just before_dom_children and
11857 after_dom_children. Remove other GIMPLE statement walking bits.
11858 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
11859 * graphite.c: Do not include domwalk.h.
11860 * tree-into-ssa.c (interesting_blocks): New global.
11861 (struct mark_def_sites_global_data): Remove it and names_to_rename.
11862 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
11863 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
11864 now that they're not domwalk callbacks.
11865 (rewrite_initialize_block): Rename to...
11866 (rewrite_enter_block): ... this, place after called functions. Test
11867 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
11868 (rewrite_finalize_block): Rename to...
11869 (rewrite_leave_block): ... this, place after called functions.
11870 (rewrite_update_init_block): Rename to...
11871 (rewrite_update_enter_block): ... this, place after called functions.
11872 Test interesting_blocks, call rewrite_update_stmt and
11873 rewrite_update_phi_arguments.
11874 (rewrite_update_fini_block): Rename to...
11875 (rewrite_leave_block): ... this, place after called functions.
11876 (rewrite_blocks): Remove last argument, simplify initialization of
11877 walk_data.
11878 (mark_def_sites_initialize_block): Rename to...
11879 (mark_def_sites_block): ... this, call mark_def_sites.
11880 (mark_def_sites_blocks): Remove argument, simplify initialization of
11881 walk_data.
11882 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
11883 (update_ssa): Likewise.
11884 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
11885 callback.
11886 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
11887 (dom_opt_initialize_block): Rename to...
11888 (dom_opt_enter_block): ... this, place after called functions. Walk
11889 statements here, inline propagate_to_outgoing_edges.
11890 (dom_opt_finalize_block): Rename to...
11891 (dom_opt_leave_block): ... this, place after called functions.
11892 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
11893 domwalk callback.
11894 (dse_enter_block, dse_record_phi): New.
11895 (dse_record_phis): Delete.
11896 (dse_finalize_block): Rename to...
11897 (dse_leave_block): ... this.
11898 (tree_ssa_dse): Simplify initialization of walk_data.
11899 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
11900 Adjust initialization of walk_data.
11901 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
11902 * tree-ssa-loop-phiopt.c (get_non_trapping):
11903 Adjust initialization of walk_data.
11904 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
11905 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
11906 it's not a domwalk callback.
11907 (uncprop_initialize_block): Rename to...
11908 (dse_enter_block): ... this, call uncprop_into_successor_phis.
11909 (dse_finalize_block): Rename to...
11910 (dse_leave_block): ... this.
11911 (tree_ssa_uncprop): Simplify initialization of walk_data.
11912 * Makefile.in: Adjust dependencies.
11913
11914 2009-06-27 Richard Earnshaw <rearnsha@arm.com>
11915
11916 * arm.md (casesi): Fix test for Thumb1.
11917 (thumb1_casesi_internal_pic): Likewise.
11918 (thumb1_casesi_dispatch): Likewise.
11919
11920 2009-06-26 Daniel Gutson <dgutson@codesourcery.com>
11921
11922 * config/arm/arm-cores.def: Added core cortex-m0.
11923 * config/arm/arm-tune.md: Regenerated.
11924 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
11925
11926 2009-06-26 DJ Delorie <dj@redhat.com>
11927
11928 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
11929
11930 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
11931 the scheduler doesn't tag jump insns.
11932
11933 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
11934
11935 * c-decl.c (merge_decls): Re-indent.
11936
11937 2009-06-26 Janis Johnson <janis187@us.ibm.com>
11938
11939 PR c/39902
11940 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
11941 Special-case decimal float constants.
11942
11943 2009-06-26 Richard Henderson <rth@redhat.com>
11944
11945 * function.h (struct function): Add cannot_be_copied_reason,
11946 and cannot_be_copied_set.
11947 * tree-inline.c (has_label_address_in_static_1): Rename from
11948 inline_forbidden_p_2; don't set inline_forbidden_reason here.
11949 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
11950 don't set inline_forbidden_reason.
11951 (copy_forbidden): New function, split out of inline_forbidden_p.
11952 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
11953 (inline_forbidden_p): Use copy_forbidden.
11954 (tree_versionable_function_p): Likewise.
11955 (inlinable_function_p): Merge into tree_inlinable_function_p.
11956 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
11957 * ipa-cp.c (ipcp_versionable_function_p): New function.
11958 (ipcp_cloning_candidate_p): Use it.
11959 (ipcp_node_modifiable_p): Likewise.
11960
11961 2009-06-26 Olatunji Ruwase <tjruwase@google.com>
11962
11963 * builtins.c (expand_builtin_alloca): Handle builtin alloca
11964 that is marked not to be inlined. Remove flag_mudflap use.
11965 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
11966 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
11967
11968 2009-06-26 Steve Ellcey <sje@cup.hp.com>
11969
11970 PR bootstrap/40338
11971 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
11972 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
11973
11974 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
11975
11976 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
11977 shared libgcc.
11978 (__mingwthr_remove_key_dtor): Likewise.
11979
11980 2009-06-26 Richard Guenther <rguenther@suse.de>
11981
11982 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
11983
11984 2009-06-26 Steven Bosscher <steven@gcc.gnu.org>
11985
11986 PR middle-end/40525
11987 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
11988 try the non-cond_exec path also.
11989
11990 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11991
11992 PR target/40468
11993 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
11994 (output_cbranch): Use new functions.
11995 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
11996 Likewise.
11997
11998 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
11999 Pat Haugen <pthaugen@us.ibm.com>
12000 Revital Eres <ERES@il.ibm.com>
12001
12002 * config/rs6000/rs6000.c (print_operand): Correct lossage message
12003 for %c error. Add %x support to print VSX registers as a unified
12004 register set, instead of separate float and altivec registers.
12005 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
12006 %y case, and add support for VSX pre-modify addresses.
12007 (output_toc): Add assert for CONST containing an integer constant
12008 in the PLUS case.
12009 (rs6000_adjust_cost): Add POWER7 support.
12010 (insn_must_be_first_in_group): Ditto.
12011 (insn_must_be_last_in_group): Ditto.
12012 (rs6000_emit_popcount): Ditto.
12013 (rs6000_vector_mode_supported_p): Ditto.
12014
12015 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
12016 Change some of the functions called by macros to being called
12017 through a pointer, so debug functions can be inserted if
12018 -mdebug=addr or -mdebug=cost.
12019 (rs6000_preferred_reload_class_ptr): Ditto.
12020 (rs6000_secondary_reload_class_ptr): Ditto.
12021 (rs6000_secondary_memory_needed_ptr): Ditto.
12022 (rs6000_cannot_change_mode_class_ptr): Ditto.
12023 (rs6000_secondary_reload_inner): Ditto.
12024 (rs6000_legitimize_reload_address): Ditto.
12025 (rs6000_legitimize_reload_address_ptr): Ditto.
12026 (rs6000_mode_dependent_address): Ditto.
12027 (rs6000_mode_dependent_address_ptr): Ditto.
12028
12029 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
12030 function to return true if the mode allows reg + integer
12031 addresses.
12032 (virtual_stack_registers_memory_p): New function to return true if
12033 the address refers to a virtual stack register.
12034 (rs6000_legitimate_offset_address_p): Move code to say whether a
12035 mode supports reg+int addressing to reg_offset_addressing_ok_p and
12036 call it.
12037 (rs6000_legitimate_address_p): Add checks for modes that only can
12038 do reg+reg addressing. Start adding VSX support.
12039 (rs6000_legitimize_reload_address): Ditto.
12040 (rs6000_legitimize_address): Ditto.
12041 (rs6000_debug_legitimate_address_p): New debug functions for
12042 -mdebug=addr and -mdebug=cost.
12043 (rs6000_debug_rtx_costs): Ditto.
12044 (rs6000_debug_address_costs): Ditto.
12045 (rs6000_debug_adjust_cost): Ditto.
12046 (rs6000_debug_legitimize_address): Ditto.
12047 (rs6000_legitimize_reload_address_ptr): Point to call normal
12048 function or debug function. Make functions called via pointer
12049 static.
12050 (rs6000_mode_dependent_address_ptr): Ditto.
12051 (rs6000_secondary_reload_class_ptr): Ditto.
12052 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
12053 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
12054 into a friendlier error.
12055 (rs6000_init_builtins): Add initial VSX support.
12056 (rs6000_adjust_cost): Fix some spacing issues.
12057
12058 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
12059 (REG_CLASS_NAMES): Ditto.
12060 (REG_CLASS_CONTENTS): Ditto.
12061 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
12062 pointer, to add -mdebug=addr support.
12063 (CANNOT_CHANGE_MODE_CLASS): Ditto.
12064 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
12065 -mdebug=addr support.
12066 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
12067 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
12068 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
12069
12070 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
12071 16-bit values.
12072 (bswapsi*): Set attribute types for load/store. Add combiner
12073 patterns to eliminate zero extend on 64-bit.
12074 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
12075 stdbrx if the hardware supports those instructions.
12076
12077 2009-06-25 Ian Lance Taylor <iant@google.com>
12078
12079 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
12080 (Link Options): Document -static-libstdc++.
12081
12082 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
12083
12084 PR target/38731
12085 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
12086 DATA_ALIGNMENT instead.
12087
12088 2009-06-25 Richard Guenther <rguenther@suse.de>
12089
12090 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
12091 indirect references against the callused/escaped solutions.
12092 (call_may_clobber_ref_p_1): Likewise.
12093
12094 2009-06-25 Martin Jambor <mjambor@suse.cz>
12095
12096 PR tree-optimization/40493
12097 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
12098 (enum unscalarized_data_handling): New type.
12099 (handle_unscalarized_data_in_subtree): Return what has been done.
12100 (load_assign_lhs_subreplacements): Handle left flushes differently.
12101 (sra_modify_assign): Use unscalarized_data_handling, simplified
12102 condition determining whether to remove the statement.
12103
12104 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
12105
12106 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
12107 excerpt - @ should be doubled for texinfo.
12108
12109 2009-06-24 Ian Lance Taylor <iant@google.com>
12110
12111 * config/arc/arc.c: Include "df.h".
12112 (arc_attribute_table): Make static. Move higher in file.
12113 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
12114 (output_shift): Initialize n later to avoid warning.
12115 * config/arm/arm.c (arm_attribute_table): Make static. Move
12116 higher in file.
12117 * config/avr/avr.c (avr_attribute_table): Make static. Move
12118 higher in file.
12119 (reg_class_tab): Change array type from int to enum reg_class.
12120 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
12121 LABEL_REF.
12122 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
12123 (lshrhi3_out): Likewise.
12124 (class_likely_spilled_p): Change return type to bool.
12125 (avr_rtx_costs): Use local code variable with enum type.
12126 * config/avr/avr.md (movmemhi): Use add_reg_note.
12127 (andhi3, andsi3): Don't use AS2 with "and".
12128 (iorhi3, iorsi3): Don't use AS2 with "or".
12129 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
12130 * config/crx/crx.c: Include "df.h".
12131 (crx_attribute_table): Make static.
12132 * config/m32r/m32r.c: Include "df.h".
12133 (m32r_attribute_table): Make static. Move higher in file.
12134 (pop): Use add_reg_note.
12135 (block_move_call): Change 0 to LCT_NORMAL in function call.
12136 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
12137 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
12138 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
12139 declare, not just when TREE_CODE is defined.
12140 * config/m68hc11/m68hc11.c: Include "expr.h".
12141 (m68hc11_attribute_table): Make static. Move higher in file.
12142 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
12143 function call.
12144 (m68hc11_register_indirect_p): Likewise.
12145 (m68hc11_function_arg_padding): Change return type to enum
12146 direction.
12147 (emit_move_after_reload): Use add_reg_note.
12148 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
12149 (m68hc11_split_logical): Likewise.
12150 (m68hc11_rtx_costs): Add local code_and outer_code variables with
12151 enum type.
12152 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
12153 to VOIDmode in function call.
12154 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
12155 tree is defined.
12156 (m68hc11_split_logical): Update declaration.
12157 (m68hc11_function_arg_padding): Update declaration.
12158 * config/mcore/mcore.c (regno_reg_class): Change form array of int
12159 to array of enum reg_class.
12160 (mcore_attribute_table): Make static. Move higher in file.
12161 (mcore_rtx_costs): Add cast to enum type.
12162 * config/mcore/mcore.h (regno_reg_class): Update declaration.
12163 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
12164 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
12165 in file.
12166 * config/sh/predicates.md (trapping_target_operand): Rename and to
12167 and_expr.
12168 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
12169 higher in file.
12170 * config/spu/spu.c (spu_attribute_table): Make static. Move
12171 higher in file.
12172 * config/v850/v850.c (v850_attribute_table): Make static. Move
12173 higher in file.
12174 (v850_rtx_costs): Use local code with enum type.
12175 (expand_epilogue): Add cast.
12176 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
12177
12178 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
12179
12180 PR target/40515
12181 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
12182 -m2a-single-only and -m2a-nofpu.
12183 * config/sh/sh.opt: Document m2a generates FPU code.
12184
12185 2009-06-24 Anatoly Sokolov <aesok@post.ru>
12186
12187 * defaults.h (CAN_ELIMINATE): Provide default.
12188 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
12189 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
12190 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
12191 * config/spu/spu.h (CAN_ELIMINATE): Delete.
12192 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
12193 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
12194 * config/cris/cris.h (CAN_ELIMINATE): Delete.
12195 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
12196 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
12197 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
12198
12199 2009-06-24 DJ Delorie <dj@redhat.com>
12200
12201 * mep-ext-cop.cpu: Fix copyright notice.
12202 * mep-default: Fix copyright notice.
12203 * mep-core: Fix copyright notice.
12204 * mep: Fix copyright notice.
12205 * mep-ivc2: Fix copyright notice.
12206 * mep-c5: Fix copyright notice.
12207
12208 2009-06-24 Denis Chertykov <chertykov@gmail.com>
12209
12210 * doc/contrib.texi (Contributors):
12211
12212 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
12213
12214 PR middle-end/40501
12215 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
12216 src and dst operands if necessary.
12217
12218 2009-06-23 DJ Delorie <dj@redhat.com>
12219
12220 Add MeP port.
12221 * config.gcc: Add mep support.
12222 * recog.c: Resurrect validate_replace_rtx_subexp().
12223 * recog.h: Likewise.
12224 * config/mep/: Add new port:
12225 * config/mep/constraints.md: New file.
12226 * config/mep/default.h: New file.
12227 * config/mep/intrinsics.h: New file.
12228 * config/mep/intrinsics.md: New file.
12229 * config/mep/ivc2-template.h: New file.
12230 * config/mep/mep-c5.cpu: New file.
12231 * config/mep/mep-core.cpu: New file.
12232 * config/mep/mep-default.cpu: New file.
12233 * config/mep/mep-ext-cop.cpu: New file.
12234 * config/mep/mep-intrin.h: New file.
12235 * config/mep/mep-ivc2.cpu: New file.
12236 * config/mep/mep-lib1.asm: New file.
12237 * config/mep/mep-lib2.c: New file.
12238 * config/mep/mep-pragma.c: New file.
12239 * config/mep/mep-protos.h: New file.
12240 * config/mep/mep-tramp.c: New file.
12241 * config/mep/mep.c: New file.
12242 * config/mep/mep.cpu: New file.
12243 * config/mep/mep.h: New file.
12244 * config/mep/mep.md: New file.
12245 * config/mep/mep.opt: New file.
12246 * config/mep/predicates.md: New file.
12247 * config/mep/t-mep: New file.
12248
12249 2009-06-23 Ian Lance Taylor <iant@google.com>
12250
12251 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
12252 from loose_warn into c_loose_warn and from strict_warn into
12253 c_strict_warn. Set and substitute warn_cxxflags. Check for
12254 --enable-build-with-cxx. Set and substitute
12255 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
12256 * Makefile.in (CXXFLAGS): New variable.
12257 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
12258 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
12259 the default is the same as $(STRICT_WARN).
12260 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
12261 (CXX): New variable.
12262 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
12263 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
12264 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
12265 (HOST_LIBS): New variable.
12266 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
12267 (ALL_CXXFLAGS): New variable.
12268 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
12269 * doc/install.texi (Configuration): Document
12270 --enable-build-with-cxx, --with-stage1-ldflags,
12271 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
12272 * configure: Rebuild.
12273
12274 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12275
12276 * config/arm/arm.c (arm_override_options): Fix braces and formatting
12277 from previous commit.
12278
12279 2009-06-23 Ian Lance Taylor <iant@google.com>
12280
12281 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
12282
12283 2009-06-23 Ian Lance Taylor <iant@google.com>
12284
12285 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
12286 with ATTRIBUTE_UNUSED.
12287
12288 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
12289 Pat Haugen <pthaugen@us.ibm.com>
12290 Revital Eres <eres@il.ibm.com>
12291
12292 * config.in (HAVE_AS_POPCNTD): Add default definition.
12293 (HAVE_AS_LWSYNC): Ditto.
12294
12295 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
12296 release number.
12297 (gcc_cv_as_powerpc_cmpb): Ditto.
12298 (gcc_cv_as_powerpc_dfp): Ditto.
12299 (gcc_cv_as_powerpc_vsx): Ditto.
12300 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
12301 supporting the popcntd/lwsync instructions.
12302 (gcc_cv_as_powerpc_lwsync): Ditto.
12303 * configure: Regenerate.
12304
12305 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
12306 -mcpu=native and -mcpu=power7.
12307 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
12308
12309 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
12310 a variable instead of a mask to reduce the number of mask bits.
12311 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
12312 (-mbit-word): Ditto.
12313 (-mregnames): Ditto.
12314 * config/rs6000/rs6000.opt (-mupdate): Ditto.
12315 (-mfused-madd): Ditto.
12316
12317 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
12318 2.06 instructions.
12319 (-mvsx): New switch for VSX instructions.
12320 (-misel): Move from a variable to a mask to allow it to be set by
12321 -mcpu=.
12322
12323 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
12324 function declaration to an array declaration.
12325 (rs6000_hard_regno_nregs): New external array declaration.
12326
12327 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
12328 files included by rs6000.md.
12329
12330 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12331 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
12332
12333 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
12334 a target mask.
12335 (rs6000_debug_reg): New -mdebug= variables.
12336 (rs6000_debug_addr): Ditto.
12337 (rs6000_debug_cost): Ditto.
12338 (rs6000_pmode): New variable to hold Pmode.
12339 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
12340 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
12341 calculated at compiler start.
12342 (rs6000_hard_regno_nregs): Change function to an array which holds
12343 HARD_REGNO_NREGS calculated at compiler start.
12344 (rs6000_explicit_options): Delete isel field.
12345 (rs6000_vector_unit): New array to hold which vector unit
12346 supports arithmetic options for a given type.
12347 (rs6000_vector_mem): New array to hold which vector unit supports
12348 memory reference operations for a given type.
12349 (rs6000_vector_align): New array to given the alignment of each
12350 vector type.
12351 (power7_cost): New basic costs for power7.
12352 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
12353 (rs6000_hard_regno_nregs_internal): New function, moved from
12354 HARD_REGNO_NREGS, to calculate the number of registers each hard
12355 register takes for each type.
12356 (rs6000_debug_reg_print): New function for -mdebug=reg support.
12357 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
12358 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
12359 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
12360 unit information here so it is calculated once at compiler startup
12361 time.
12362 (rs6000_override_options): Make -misel a target mask. Add more
12363 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
12364 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
12365 -mdebug=cost.
12366 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
12367 (rs6000_handle_option): Move -misel from variable to target mask.
12368 (rs6000_builtin_mask_for_load): Add VSX support.
12369 (rs6000_conditional_register_usage): Ditto.
12370 (USE_ALTIVEC_FOR_ARG_P): Ditto.
12371 (function_arg_boundary): Ditto.
12372 (rs6000_expand_builtin): Ditto.
12373 (def_builtin): Make abort message a little friendlier.
12374 (rs6000_emit_int_cmove): Add support for 64-bit isel.
12375
12376 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
12377 assembler support the popcntd instruction instead of a vsx
12378 instruction to enable power7 support.
12379 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
12380 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
12381 option to the assembler if -mcpu=native.
12382 (ASM_CPU_NATIVE_SPEC): Ditto.
12383 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
12384 ISA 2.06 features.
12385 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
12386 the lwsync instruction.
12387 (enum processor_type): Add PROCESSOR_POWER7.
12388 (rs6000_debug_reg): New -mdebug= options.
12389 (rs6000_debug_addr): Ditto.
12390 (rs6000_debug_cost): Ditto.
12391 (rs6000_isel): Delete.
12392 (enum rs6000_vector): New enum to say what vector unit we have.
12393 (VECTOR_UNIT_*): New macros to say which vector unit has
12394 arithmetic operations for a given type.
12395 (VECTOR_MEM_*): New macros to say which vector unit has memory
12396 operations for a given type.
12397 (TARGET_LDBRX): Whether the machine supports the ldbrx
12398 instruction.
12399 (TARGET_ISEL): Delete, -misel moved to be a mask.
12400 (TARGET_ISEL64): New macro for 64-bit isel support.
12401 (UNITS_PER_VSX_WORD): New macro.
12402 (POINTER_SIZE): Move to be an external variable, rather than
12403 calculating whether we are generating 32 ot 64-bit code.
12404 (Pmode): Ditto.
12405 (STACK_BOUNDARY): Add VSX support.
12406 (LOCAL_ALIGNMENT): Ditto.
12407 (SLOW_UNALIGNED_ACCESS): Ditto.
12408 (VSX_REGNO_P): New macro for VSX support.
12409 (VFLOAT_REGNO_P): Ditto.
12410 (VINT_REGNO_P): Ditto.
12411 (VLOGICAL_REGNO_P): Ditto.
12412 (VSX_VECTOR_MODE): Ditto.
12413 (VSX_SCALAR_MODE): Ditto.
12414 (VSX_MODE): Ditto.
12415 (VSX_MOVE_MODE): Ditto.
12416 (VSX_REG_CLASS_P): Ditto.
12417 (HARD_REGNO_NREGS): Instead of calling a function, use an array
12418 lookup.
12419 (UNITS_PER_SIMD_WORD): Add VSX support.
12420 (MODES_TIEABLE_P): Ditto.
12421 (STARTING_FRAME_OFFSET): Ditto.
12422 (STACK_DYNAMIC_OFFSET): Ditto.
12423 (EPILOGUE_USES): Ditto.
12424 (REGNO_REG_CLASS): Move to array lookup.
12425 (CLASS_MAX_NREGS): Ditto.
12426 (rs6000_vector_reg_class): Add declaration.
12427 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
12428 overlap with the floating point and Altivec registers.
12429
12430 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
12431
12432 * config/rs6000/driver-rs6000.c (asm_names): New static array to
12433 give the appropriate asm switches if -mcpu=native.
12434 (host_detect_local_cpu): Add support for "asm".
12435 (host_detect_local_cpu): Follow GNU code guidelines for name.
12436
12437 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
12438 -mbit-word to a variable instead of being a target mask.
12439
12440 * config/rs6000/sync.md (lwsync): If the assembler supports it,
12441 emit the lwsync instruction instead of emitting the instruction as
12442 an integer constant.
12443
12444 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
12445 fixuns_trundfsi2, move expander into rs6000.md.
12446
12447 * config/rs6000/rs6000.md (cpu): Add power7.
12448 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
12449 (logical predicate patterns): Change the single instruction
12450 primitives that set CR0 to be fast_compare instead of compare.
12451 (norsi*): Ditto.
12452 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
12453 (popcntddi2): Ditto.
12454 (popcount<mode>): Ditto.
12455 (floating multiply/add insns): Name the floating point
12456 multiply/add insns.
12457 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
12458 (isel_unsigned_<mode>): Ditto.
12459 (fixuns_trundfsi2): Move expander here from spe.md.
12460 (smindi3): Define if we have -misel on 64-bit systems.
12461 (smaxdi3): Ditto.
12462 (umindi3): Ditto.
12463 (umaxdi3): Ditto.
12464
12465 2009-06-23 Anatoly Sokolov <aesok@post.ru>
12466
12467 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
12468 extra_objs.
12469 * config/avr/avr.c (avr_current_device): New variable.
12470 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
12471 (avr_arch, mcu_type_s): Move to avr.h.
12472 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
12473 default_data_section_start fields.
12474 (avr_arch): Moved from avr.c.
12475 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
12476 library_name fields.
12477 (avr_current_device, avr_mcu_types, avr_arch_types,
12478 avr_device_to_arch, avr_device_to_data_start,
12479 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
12480 (EXTRA_SPEC_FUNCTIONS): Define.
12481 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
12482 options mapping. Use device_to_arch and device_to_data_start insted.
12483 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
12484 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
12485 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
12486 * config/avr/driver-avr.c: New file.
12487 * config/avr/avr-devices.c: New file.
12488
12489 2009-06-23 Jakub Jelinek <jakub@redhat.com>
12490
12491 * var-tracking.c (unshare_variable): Force initialized to
12492 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
12493 (set_variable_part): Likewise.
12494 (struct variable_union_info): Remove pos_src field.
12495 (vui_vec, vui_allocated): New variables.
12496 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
12497 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
12498 == 1 use a simpler sorting algorithm. Compute pos field right
12499 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
12500 Avoid quadratic comparison if !flag_var_tracking_uninit.
12501 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
12502 unshare_variable unconditionally.
12503 (dataflow_set_different_2): Removed.
12504 (dataflow_set_different): Don't traverse second hash table.
12505 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
12506 unconditionally to var_reg_set or var_mem_set.
12507 (emit_notes_in_bb): Likewise.
12508 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
12509 unshare_variable.
12510 (emit_note_insn_var_location): Don't set initialized to
12511 VAR_INIT_STATUS_INITIALIZED early.
12512 (vt_finalize): Free vui_vec if needed, clear vui_vec and
12513 vui_allocated.
12514 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
12515
12516 * tree-object-size.c (addr_object_size): Instead of checking
12517 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
12518 are no FIELD_DECLs following it.
12519
12520 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
12521
12522 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
12523 order to match bswaps with signed source operands.
12524
12525 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12526
12527 * sdbout.c (sdbout_one_type): Fix braces in switch.
12528
12529 2009-06-23 Richard Guenther <rguenther@suse.de>
12530
12531 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
12532 member.
12533 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
12534 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
12535 var_callused, callused_tree, var_storedanything, storedanything_tree,
12536 var_integer, integer_tree): Remove global variables.
12537 (new_var_info): Do not pass new id, append the new var to the
12538 global variable vector.
12539 (do_ds_constraint): Use is_global_var member of the variable-info.
12540 (new_scalar_tmp_constraint_exp): Adjust.
12541 (create_function_info_for): Likewise.
12542 (create_variable_info_for): Likewise.
12543 (find_what_var_points_to): Remove dead code.
12544 (init_base_vars): Simplify.
12545 (compute_points_to_sets): Adjust.
12546
12547 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
12548
12549 * combine.c (try_combine): Dump information about the insns we're
12550 combining.
12551
12552 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
12553
12554 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
12555 check when calling force_to_mode on TRUNCATE's operand.
12556
12557 2009-06-22 Ian Lance Taylor <iant@google.com>
12558
12559 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
12560
12561 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
12562
12563 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
12564
12565 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12566
12567 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
12568 override library linkage flags such as -static-libgcc or
12569 -shared-libgcc.
12570
12571 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
12572
12573 * config/m68k/m68k-devices.def: Add line for MCF5221x.
12574
12575 2009-06-22 Ian Lance Taylor <iant@google.com>
12576
12577 * config/linux.opt: Put mglibc ahead of muclibc.
12578
12579 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
12580 for duplicate decls.
12581
12582 2009-06-22 Matthias Klose <doko@ubuntu.com>
12583
12584 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
12585
12586 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
12587
12588 PR objc/28050
12589 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
12590 instead of NULL if a parser error occurs.
12591
12592 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12593
12594 * dwarf2out.c (dwarf2_debug_hooks): Initialize
12595 non-DWARF2_DEBUGGING_INFO version.
12596
12597 2009-06-22 Kai Tietz <kai.tietz@onevision.com>
12598
12599 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
12600 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
12601
12602 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
12603 (LIBGCC2_TF_CEXT): Define.
12604 (TF_SIZE): Define.
12605
12606 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12607
12608 PR target/40463
12609 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
12610
12611 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12612
12613 * config/arm/arm.c (arm_override_options): Disable
12614 -mcaller-super-interworking and -mcallee-super-interworking.
12615 * doc/invoke.texi (ARM Options): Document this.
12616
12617 2009-06-22 Nathan Sidwell <nathan@codesourcery.com>
12618
12619 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
12620 * config/arm/constraints.md (j): New constraint for movw operands.
12621 (N): Remove thumb2 meaning.
12622 * config/arm/arm.md (*arm_movw): Delete.
12623 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
12624 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
12625 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
12626
12627 2009-06-22 Martin Jambor <mjambor@suse.cz>
12628
12629 PR tree-optimization/40492
12630 * tree-sra.c (sra_modify_assign): Pass zero offsets to
12631 build_ref_for_offset.
12632
12633 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
12634
12635 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
12636 JUMP_TABLE_DATA_P predicates where applicable.
12637 * auto-inc-dec.c: Ditto.
12638 * builtins.c: Ditto.
12639 * caller-save.c: Ditto.
12640 * calls.c: Ditto.
12641 * cfgcleanup.c: Ditto.
12642 * cfglayout.c: Ditto.
12643 * cfgrtl.c: Ditto.
12644 * combine.c: Ditto.
12645 * combine-stack-adj.c: Ditto.
12646 * cse.c: Ditto.
12647 * cselib.c: Ditto.
12648 * dbxout.c: Ditto.
12649 * df-scan.c: Ditto.
12650 * dse.c: Ditto.
12651 * dwarf2asm.c: Ditto.
12652 * dwarf2out.c: Ditto.
12653 * emit-rtl.c: Ditto.
12654 * except.c: Ditto.
12655 * explow.c: Ditto.
12656 * expmed.c: Ditto.
12657 * expr.c: Ditto.
12658 * final.c: Ditto.
12659 * function.c: Ditto.
12660 * fwprop.c: Ditto.
12661 * gcse.c: Ditto.
12662 * genpreds.c: Ditto.
12663 * genrecog.c: Ditto.
12664 * ifcvt.c: Ditto.
12665 * ira-costs.c: Ditto.
12666 * ira-lives.c: Ditto.
12667 * jump.c: Ditto.
12668 * loop-iv.c: Ditto.
12669 * lower-subreg.c: Ditto.
12670 * modulo-sched.c: Ditto.
12671 * optabs.c: Ditto.
12672 * postreload.c: Ditto.
12673 * print-rtl.c: Ditto.
12674 * recog.c: Ditto.
12675 * reginfo.c: Ditto.
12676 * regmove.c: Ditto.
12677 * reload1.c: Ditto.
12678 * reload.c: Ditto.
12679 * reorg.c: Ditto.
12680 * rtlanal.c: Ditto.
12681 * rtl.c: Ditto.
12682 * sched-vis.c: Ditto.
12683 * sdbout.c: Ditto.
12684 * sel-sched-ir.c: Ditto.
12685 * simplify-rtx.c: Ditto.
12686 * targhooks.c: Ditto.
12687 * var-tracking.c: Ditto.
12688 * vmsdbgout.c: Ditto.
12689
12690 2009-06-22 Matthias Klose <doko@ubuntu.com>
12691
12692 * Makefile.in (install-plugin): Always use DESTDIR.
12693
12694 2009-06-22 Olivier Hainque <hainque@adacore.com>
12695
12696 * config/pa/pa.c (output_call): Don't optimize post call jumps
12697 into return address adjustments if the call may throw.
12698
12699 2009-06-21 Richard Earnshaw <rearnsha@arm.com>
12700
12701 * arm.c (thumb1_output_casesi): New function.
12702 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
12703 optimizing for size or PIC.
12704 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
12705 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
12706 (casesi): Handle Thumb-1 when optimizing for size or PIC.
12707 (thumb1_casesi_internal_pic): New expand rule.
12708 (thumb1_casesi_dispatch): New pattern.
12709 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
12710 thumb-1 mode.
12711 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
12712 in the text seciton when PIC or optimizing for size.
12713 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
12714 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
12715 preservation properties of code.
12716 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
12717 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
12718 (__gnu_thumb1_case_si): New function.
12719 * t-arm (LIB1ASMSRC): Define here.
12720 (LIB1ASMFUNCS): Add some common functions.
12721 * t-arm-elf (LIB1ASMSRC): Delete.
12722 (LIB1ASMFUNCS): Append to existing set.
12723 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12724 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12725 * t-symbian (LIB1ASMFUNCS): Likewise.
12726 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12727 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12728
12729 2009-06-21 Richard Guenther <rguenther@suse.de>
12730
12731 PR tree-optimization/38729
12732 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
12733 to loops with a single exit if -fno-expensive-optimizations.
12734
12735 2009-06-21 Jakub Jelinek <jakub@redhat.com>
12736
12737 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
12738 (dataflow_set): Change vars type from htab_t to shared_hash.
12739 (shared_hash_pool, empty_shared_hash): New variables.
12740 (vars_clear): Removed.
12741 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
12742 shared_hash_find_slot_unshare, shared_hash_find_slot,
12743 shared_hash_find_slot_noinsert, shared_hash_find): New
12744 static inlines.
12745 (shared_hash_unshare, shared_hash_destroy): New functions.
12746 (unshare_variable): Unshare set->vars if shared, use
12747 shared_hash_htab.
12748 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
12749 (get_init_value, find_src_set_src, dump_dataflow_set,
12750 clobber_variable_part, emit_notes_for_differences): Use
12751 shared_hash_htab.
12752 (dataflow_set_init): Remove second argument, set vars to
12753 empty_shared_hash instead of creating a new htab.
12754 (dataflow_set_clear): Call shared_hash_destroy and set vars
12755 to empty_shared_hash instead of calling vars_clear.
12756 (dataflow_set_copy): Don't call vars_copy, instead just share
12757 the src htab with dst.
12758 (variable_union): Use shared_hash_*, use initially NO_INSERT
12759 lookup if set->vars is shared. Don't keep slot cleared before
12760 calling unshare_variable. Unshare set->vars if needed.
12761 Even ->refcount == 1 vars must be unshared if set->vars is shared
12762 and var needs to be modified.
12763 (variable_canonicalize): New function.
12764 (dataflow_set_union): If dst->vars is empty, just share src->vars
12765 with dst->vars and traverse with variable_canonicalize to canonicalize
12766 and unshare what is needed.
12767 (dataflow_set_different): If old_set and new_set use the same shared
12768 htab, they aren't different. If number of htab elements is different,
12769 htabs are different. Use shared_hash_*.
12770 (dataflow_set_destroy): Call shared_hash_destroy instead of
12771 htab_delete.
12772 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
12773 second argument to dataflow_set_init.
12774 (vt_initialize): Likewise. Initialize shared_hash_pool and
12775 empty_shared_hash, move bb in/out initialization afterwards.
12776 Use variable_htab_free instead of NULL as changed_variables del hook.
12777 (variable_was_changed): Change type of second argument to pointer to
12778 dataflow_set. When inserting var into changed_variables, bump
12779 refcount. Unshare set->vars if set is shared htab and slot needs to
12780 be cleared.
12781 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
12782 lookup if set->vars is shared. Unshare set->vars if needed.
12783 Even ->refcount == 1 vars must be unshared if set->vars is shared
12784 and var needs to be modified. Adjust variable_was_changed caller.
12785 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
12786 vars must be unshared if set->vars is shared and var needs to be
12787 modified. Adjust variable_was_changed caller.
12788 (emit_note_insn_var_location): Don't pool_free var.
12789 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
12790 instead of 1.
12791 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
12792 free_alloc_pool on shared_hash_pool.
12793
12794 2009-06-20 Anthony Green <green@moxielogic.com>
12795
12796 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
12797 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
12798
12799 2009-06-20 Richard Guenther <rguenther@suse.de>
12800
12801 * tree-ssa-structalias.c (find_func_aliases): For memset use
12802 a constraint from NULL if we memset to zero.
12803 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
12804 we explicitly handle that do not read from memory.
12805 (call_may_clobber_ref_p_1): Properly handle builtins that may
12806 set errno.
12807
12808 2009-06-20 Richard Guenther <rguenther@suse.de>
12809
12810 PR tree-optimization/40495
12811 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
12812 (new_scalar_tmp_constraint_exp): New function.
12813 (process_constraint): Do not create temporary decls.
12814 (process_all_all_constraints): Likewise.
12815 (handle_const_call): Likewise.
12816 (create_function_info_for): Do not set decl.
12817
12818 2009-06-19 Ian Lance Taylor <iant@google.com>
12819
12820 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
12821 (rs6000_attribute_table): Make static; move before use.
12822
12823 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
12824
12825 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
12826 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
12827 Propagate the TREE_READONLY flag without overwriting it.
12828 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
12829 Propagate the TREE_READONLY flag onto the result.
12830 (process_call_operands): Move around. Use correct constant value.
12831
12832 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12833
12834 PR target/40482
12835 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
12836 * config/arm/arm.md: Likewise.
12837
12838 2009-06-19 Ian Lance Taylor <iant@google.com>
12839
12840 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
12841 to GIMPLE_ERROR_MARK.
12842
12843 * c-typeck.c (build_conditional_expr): Add op1_original_type and
12844 op2_original_type parameters. Warn about using different enum types.
12845 * c-parser.c (c_parser_conditional_expression): Pass original
12846 types to build_conditional_expr.
12847 * c-tree.h (build_conditional_expr): Update declaration.
12848
12849 2009-06-19 Ian Lance Taylor <iant@google.com>
12850
12851 * config/i386/i386.c (ix86_function_specific_save): Test that
12852 fields match values, rather than testing the values are in a
12853 certain range.
12854
12855 2009-06-19 Richard Guenther <rguenther@suse.de>
12856
12857 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
12858 ADDR_EXPR pointers.
12859 (ptr_derefs_may_alias_p): Likewise.
12860 (ptr_deref_may_alias_ref_p_1): New function.
12861 (ptr_deref_may_alias_ref_p): Likewise.
12862 (ref_maybe_used_by_call_p_1): Handle builtins that are not
12863 covered by looking at the ESCAPED solution.
12864 (call_may_clobber_ref_p_1): Likewise.
12865 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
12866 Handle NULL_TREE offset. Do not produce redundant constraints.
12867 (process_all_all_constraints): New helper function.
12868 (do_structure_copy): Use it.
12869 (handle_lhs_call): Likewise.
12870 (find_func_aliases): Handle some builtins with pointer arguments
12871 and/or return values explicitly.
12872
12873 2009-06-19 Ian Lance Taylor <iant@google.com>
12874
12875 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
12876
12877 2009-06-19 Ian Lance Taylor <iant@google.com>
12878
12879 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
12880
12881 2009-06-19 Ian Lance Taylor <iant@google.com>
12882
12883 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
12884 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
12885 version.
12886
12887 * c-decl.c (finish_decl): If -Wc++-compat, warn about
12888 uninitialized const.
12889
12890 2009-06-19 Ian Lance Taylor <iant@google.com>
12891
12892 * dse.c (struct store_info): Rename bitmap field to bmap. Change
12893 all uses.
12894
12895 * c-decl.c (in_struct, struct_types): Remove.
12896 (struct c_binding): Add in_struct field.
12897 (c_binding_ptr): Define type, along with VEC.
12898 (struct c_struct_parse_info): Define.
12899 (struct_parse_info): New static variable.
12900 (bind): Initialize in_struct field.
12901 (start_struct): Remove enclosing_in_struct and
12902 enclosing_struct_types parameters. Add
12903 enclosing_struct_parse_info parameter. Change all callers. Set
12904 struct_parse_info rather than in_struct and struct_types.
12905 (grokfield): If -Wc++-compat and there is a symbol binding for the
12906 field name, set the in_struct flag and push it on the
12907 struct_parse_info->fields vector.
12908 (warn_cxx_compat_finish_struct): New static function.
12909 (finish_struct): Remove enclosing_in_struct and
12910 enclosing_struct_types parameters. Add
12911 enclosing_struct_parse_info parameter. Change all callers. Don't
12912 set C_TYPE_DEFINED_IN_STRUCT here. Call
12913 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
12914 parameter. Only push on struct_types if warn_cxx_compat.
12915 (finish_enum): Only push on struct_types if warn_cxx_compat.
12916 (declspecs_add_type): Add loc parameter. Change all callers.
12917 Change all error calls to error_at. Pass loc, not input_location,
12918 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
12919 defined in a struct. If -Wc++-compat and parsing a struct, record
12920 that a typedef name was used.
12921 * c-parser.c (c_parser_declspecs): Get location to pass to
12922 declspecs_add_type.
12923 (c_parser_struct_or_union_specifier): Update calls to start_struct
12924 and finish_struct.
12925 * c-tree.h (struct c_struct_parse_info): Declare.
12926 (finish_struct, start_struct): Update declarations.
12927 (declspecs_add_type): Update declaration.
12928
12929 2009-06-19 Ian Lance Taylor <iant@google.com>
12930
12931 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
12932 variable with an anonymous type.
12933
12934 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
12935
12936 * see.c: Remove for real.
12937
12938 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
12939
12940 * optabs.h (enum optab_index): Add new OTI_significand.
12941 (significand_optab): Define corresponding macro.
12942 * optabs.c (init_optabs): Initialize significand_optab.
12943 * genopinit.c (optabs): Implement significand_optab using
12944 significand?f2 patterns.
12945 * builtins.c (expand_builtin_mathfn): Handle
12946 BUILT_IN_SIGNIFICAND{,F,L}.
12947 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
12948 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
12949
12950 * config/i386/i386.md (significandxf2, significand<mode>2): New
12951 expanders to implement significandf, significand and significandl
12952 built-ins as inline x87 intrinsics.
12953
12954 2009-06-18 Anatoly Sokolov <aesok@post.ru>
12955
12956 * config/avr/avr.c (avr_override_options): Remove setting value of
12957 PARAM_INLINE_CALL_COST.
12958
12959 2009-06-18 Richard Henderson <rth@redhat.com>
12960
12961 PR 40488
12962 * tree-pass.h (TDF_ASMNAME): New.
12963 * tree-dump.c (dump_options): Add asmname.
12964 * doc/invoke.texi: Document it.
12965
12966 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
12967 (dump_decl_name): ...here.
12968 (dump_function_name): New flags arg; mind TDF_ASMNAME.
12969 (dump_generic_node): Update dump_function_name calls.
12970 (print_call_name): New flags arg; update all dump calls.
12971 * diagnostic.h (print_call_name): Update.
12972 * gimple-pretty-print.c (dump_gimple_call): Update.
12973
12974 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
12975
12976 PR target/40470
12977 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
12978
12979 2009-06-18 Diego Novillo <dnovillo@google.com>
12980
12981 * doc/plugins.texi: Document plugin_is_GPL_compatible.
12982 * plugin.c (str_license): Declare.
12983 (try_init_one_plugin): Assert that the symbol
12984 'plugin_is_GPL_compatible' exists.
12985
12986 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
12987
12988 * see.c: Remove.
12989 * Makefile.in (OBJS-common): Remove see.o.
12990 (see.o): Remove.
12991 * common.opt (fsee): Mark as preserved for backward compatibility.
12992 * opts.c (common_handle_option): Add OPT_fsee to the backward
12993 compatibility section.
12994 * passes.c (init_optimization_passes, pass_see): Remove pass.
12995 * timevar.def (TV_SEE): Remove.
12996 * tree-pass.h (pass_see): Remove declaration.
12997 * doc/invoke.texi (-fsee): Remove documentation.
12998
12999 2009-06-18 Martin Jambor <mjambor@suse.cz>
13000
13001 * tree-sra.c: Include statistics.h
13002 (sra_stats): New variable.
13003 (sra_initialize): Clear sra_stats.
13004 (create_access_replacement): Increment sra_stats.replacements.
13005 (get_access_replacement): Do not return twice.
13006 (analyze_all_variable_accesses): Increment statistics counter by the
13007 number of scalarized aggregates.
13008 (generate_subtree_copies): Increment sra_stats.subtree_copies.
13009 (sra_modify_expr): Increment sra_stats.exprs.
13010 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
13011 (sra_modify_assign): Increment sra_stats.exprs,
13012 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
13013 (perform_intra_sra): Update statistics counters.
13014 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
13015
13016 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
13017
13018 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
13019 (arm_scalar_mode_supported_p): New function.
13020
13021 2009-06-18 Paul Brook <paul@codesourcery.com>
13022 Sandra Loosemore <sandra@codesourcery.com>
13023
13024 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
13025 (__extendhfsf2, __truncsfhf2): Define.
13026 * config/arm/fp16.c: New file.
13027 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
13028 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
13029
13030 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
13031
13032 * doc/extend.texi (Half-Precision): New section.
13033 * doc/invoke.texi (Option Summary): List -mfp16-format.
13034 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
13035 * config/arm/arm.opt (mfp16-format=): New.
13036 * config/arm/arm.c: Include intl.h.
13037 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
13038 (TARGET_INVALID_RETURN_TYPE): Redefine.
13039 (TARGET_PROMOTED_TYPE): Redefine.
13040 (TARGET_CONVERT_TO_TYPE): Redefine.
13041 (arm_fp16_format): Define.
13042 (all_fpus): Add entry for neon-fp16.
13043 (fp_model_for_fpu): Likewise.
13044 (struct fp16_format): Declare.
13045 (all_fp16_formats): Define.
13046 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
13047 functions.
13048 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
13049 and no ldrh.
13050 (arm_legitimate_index_p): Treat HFmode like HImode.
13051 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
13052 (coproc_secondary_reload_class): Special-case HFmode.
13053 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
13054 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
13055 (arm_init_fp16_builtins): New.
13056 (arm_init_builtins): Call it.
13057 (arm_invalid_parameter_type): New.
13058 (arm_invalid_return_type): New.
13059 (arm_promoted_type): New.
13060 (arm_convert_to_type).
13061 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
13062 format.
13063 (arm_emit_fp16_const): New function.
13064 (arm_mangle_type): Mangle __fp16 as "Dh".
13065 * config/arm/arm.h (TARGET_VFPD32): Make it know about
13066 FPUTYPE_NEON_FP16.
13067 (TARGET_NEON_FP16): New.
13068 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
13069 (enum fputype): Add FPUTYPE_NEON_FP16.
13070 (enum arm_fp16_format_type): Declare.
13071 (arm_fp16_format): Declare.
13072 (LARGEST_EXPONENT_IS_NORMAL): Define.
13073 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
13074 * config/arm/arm-modes.def (HFmode): Define.
13075 * config/arm/vfp.md: (*movhf_vfp): New.
13076 (extendhfsf2): New.
13077 (truncsfhf2): New.
13078 * config/arm/arm.md: (fpu): Add neon_fp16.
13079 (floatsihf2, floatdihf2): New.
13080 (fix_trunchfsi2, fix_trunchfdi2): New.
13081 (truncdfhf2): New.
13082 (extendhfdf2): New.
13083 (movhf): New.
13084 (*arm32_movhf): New.
13085 (*thumb1_movhf): New.
13086 (consttable_2): Add check for HFmode constants.
13087 (consttable_4): Handle HFmode constants.
13088
13089 2009-06-18 Uros Bizjak <ubizjak@gmail.com>
13090
13091 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
13092
13093 2009-06-17 Olivier Hainque <hainque@adacore.com>
13094
13095 * collect2.c (main): Use CONST_CAST2 to perform char ** to
13096 const char ** conversion in AIX specific section.
13097
13098 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
13099
13100 * config/i386/i386.c (ix86_special_builtin_type): Remove
13101 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
13102 (bdesc_special_args): Updated.
13103 (ix86_init_mmx_sse_builtins): Likewise.
13104 (ix86_expand_special_args_builtin): Likewise.
13105
13106 2009-06-17 Richard Henderson <rth@redhat.com>
13107
13108 * tree-pretty-print.c (maybe_dump_asm_name): New.
13109 (dump_decl_name): Use it.
13110 (PRINT_FUNCTION_NAME): Merge into...
13111 (dump_function_name): ... here. Use maybe_dump_asm_name.
13112
13113 2009-06-17 Cary Coutant <ccoutant@google.com>
13114
13115 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
13116 Change caller.
13117 * debug.c (struct gcc_debug_hooks): Change placeholder for
13118 source_line hook.
13119 (debug_nothing_int_charstar_int): Replaced by...
13120 (debug_nothing_int_charstar_int_bool): ...this.
13121 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
13122 source_line prototype.
13123 (debug_nothing_int_charstar_int): Replaced by...
13124 (debug_nothing_int_charstar_int_bool): ...this.
13125 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
13126 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
13127 Output is_stmt operand when necessary.
13128 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
13129 (notice_source_line): Add is_stmt parameter.
13130 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
13131 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
13132 Change callers.
13133 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
13134 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
13135
13136 2009-06-17 Ian Lance Taylor <iant@google.com>
13137
13138 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
13139 Change all uses.
13140 (struct store_by_pieces_d): Rename from store_by_pieces. Change
13141 call uses.
13142
13143 2009-06-17 Adam Nemet <anemet@caviumnetworks.com>
13144
13145 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
13146 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
13147 tree_strip_sign_nop_conversions and
13148 tree_ssa_strip_useless_type_conversions rather than stripping
13149 the operations here.
13150 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
13151 Declare them.
13152 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
13153 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
13154 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
13155 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
13156 functions.
13157
13158 2009-06-17 Michael Eager <eager@eagercon.com>
13159
13160 * config/rs6000/constraints.md (register_constraint "d"): New.
13161 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
13162 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
13163 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
13164 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
13165 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
13166 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
13167 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
13168 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
13169 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
13170 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
13171 __fctiwz): Same.
13172 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
13173 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
13174 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
13175 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
13176 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
13177 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
13178 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
13179 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
13180 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
13181 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
13182 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
13183 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
13184 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
13185 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
13186
13187 2009-06-16 Ian Lance Taylor <iant@google.com>
13188
13189 * profile.c (total_num_never_executed): Don't define.
13190 (compute_branch_probabilities): Don't count or print
13191 num_never_executed.
13192 (init_branch_prob): Don't set total_num_never_executed.
13193 (end_branch_prob): Don't print total_num_never_executed.
13194
13195 2009-06-17 David Daney <ddaney@caviumnetworks.com>
13196
13197 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
13198
13199 2009-06-17 David Edelsohn <edelsohn@gnu.org>
13200
13201 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
13202 (nabstd2_fpr): Same.
13203
13204 2009-06-17 Steve Ellcey <sje@cup.hp.com>
13205
13206 * expr.c (expand_assignment): Change complex type check.
13207
13208 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
13209
13210 * doc/plugins.texi (Building GCC plugins): Added new section.
13211
13212 2009-06-17 Ian Lance Taylor <iant@google.com>
13213
13214 * c-pch.c (get_ident): Don't set size of templ array.
13215 (pch_init): Don't set size of partial_pch array.
13216
13217 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
13218 string constant to intialize an array whose size is the length of
13219 the string.
13220
13221 2009-06-17 Richard Guenther <rguenther@suse.de>
13222
13223 PR tree-optimization/40389
13224 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
13225 to addressable types.
13226 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
13227
13228 2009-06-17 Richard Guenther <rguenther@suse.de>
13229
13230 PR middle-end/40460
13231 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
13232 if there is no evolution of left in the loop bail out.
13233 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
13234 chrec_fold_multiply.
13235
13236 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
13237 Janis Johnson <janis187@us.ibm.com>
13238
13239 PR target/39254
13240 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
13241 for the symbol ref of a constant that is the source of a move
13242 - nor for any other not-obvious-label-ref constants.
13243
13244 2009-06-16 Olatunji Ruwase <tjruwase@google.com>
13245
13246 * plugin.c (position_pass): Skip newly inserted pass during list
13247 traversal to avoid repeated insertion.
13248
13249 2009-06-16 Ian Lance Taylor <iant@google.com>
13250
13251 * vec.h (VEC_stack_alloc): Define different version if
13252 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
13253 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
13254 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
13255 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
13256
13257 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
13258
13259 * config.gcc (extra_headers): Add ia32intrin.h for x86.
13260
13261 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
13262 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
13263 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
13264 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
13265 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
13266 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
13267 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
13268 (bdesc_special_args): Add __builtin_ia32_rdtsc and
13269 __builtin_ia32_rdtscp.
13270 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
13271 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
13272 and __builtin_ia32_rorhi.
13273 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
13274 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
13275 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
13276 (ix86_expand_args_builtin): Likewise.
13277 (ix86_expand_special_args_builtin): Likewise.
13278
13279 * config/i386/i386.md (UNSPECV_RDTSCP): New.
13280 (UNSPECV_RDTSC): Likewise.
13281 (UNSPECV_RDPMC): Likewise.
13282 (*bsr): Renamed to ...
13283 (bsr): This
13284 (*bsr_rex64): Renamed to ...
13285 (bsr_rex64): This.
13286 (rdpmc): New.
13287 (*rdpmc): Likewise.
13288 (*rdpmc_rex64): Likewise.
13289 (rdtsc): Likewise.
13290 (*rdtsc): Likewise.
13291 (*rdtsc_rex64): Likewise.
13292 (rdtscp): Likewise.
13293 (*rdtscp): Likewise.
13294 (*rdtscp_rex64): Likewise.
13295
13296 * config/i386/ia32intrin.h: New.
13297
13298 * config/i386/x86intrin.h: Include <ia32intrin.h>.
13299
13300 2009-06-16 Ian Lance Taylor <iant@google.com>
13301
13302 * ira-build.c (copy_info_to_removed_store_destinations):
13303 Initialize parent_a.
13304
13305 2009-06-16 Ian Lance Taylor <iant@google.com>
13306
13307 * c-decl.c (grokdeclarator): Change size_varies to bool.
13308
13309 2009-06-16 Ian Lance Taylor <iant@google.com>
13310
13311 * sel-sched.c: Make forward declarations of move_op_hooks and
13312 fur_hooks explicitly extern.
13313
13314 2009-06-16 Ian Lance Taylor <iant@google.com>
13315
13316 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
13317 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
13318
13319 2009-06-16 Ian Lance Taylor <iant@google.com>
13320
13321 * resource.c (mark_referenced_resources): Change
13322 include_delayed_effects parameter to bool. Change all callers.
13323 (mark_end_of_function_resources): Likewise.
13324 * reorg.c (insn_references_resource_p): Likewise.
13325 (insn_sets_resource_p): Likewise.
13326 * resource.h (mark_referenced_resources): Update declaration.
13327 (mark_end_of_function_resources): Update declaration.
13328
13329 2009-06-16 David Edelsohn <edelsohn@gnu.org>
13330
13331 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
13332
13333 2009-06-16 David Edelsohn <edelsohn@gnu.org>
13334
13335 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
13336 GCC can bootstrap on AIX with GNU Binutils 2.20.
13337
13338 2009-06-16 Ian Lance Taylor <iant@google.com>
13339
13340 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
13341
13342 2009-06-16 Ian Lance Taylor <iant@google.com>
13343
13344 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
13345 inline, not extern inline.
13346 (exact_log2): Likewise.
13347 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
13348 test CLZ_HWI.
13349 (exact_log2): Likewise, but don't test CTZ_HWI.
13350
13351 2009-06-16 Ian Lance Taylor <iant@google.com>
13352
13353 * bitmap.c (bitmap_clear): Don't declare as inline.
13354 * gimple.c (gimplify_assign): Likewise.
13355 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
13356 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
13357 (sched_scan_info): Remove duplicate definition.
13358
13359 2009-06-16 Ian Lance Taylor <iant@google.com>
13360
13361 * c-common.c (skip_evaluation): Don't define.
13362 (c_inhibit_evaluation_warnings): Define global variable.
13363 (overflow_warning): Check c_inhibit_evaluation_warnings rather
13364 than skip_evaluation.
13365 (convert_and_check, warn_for_div_by_zero): Likewise.
13366 * c-common.h (skip_evaluation): Don't declare.
13367 (c_inhibit_evaluation_warnings): Declare.
13368 * c-parser.c (c_parser_typeof_specifier): Set
13369 c_inhibit_evaluation_warnings rather than skip_evaluation.
13370 (c_parser_conditional_expression): Likewise.
13371 (c_parser_binary_expression): Likewise.
13372 (c_parser_sizeof_expression): Likewise.
13373 (c_parser_alignof_expression): Likewise.
13374 * c-typeck.c (build_indirect_ref): Check
13375 c_inhibit_evaluation_warnings rather than skip_evaluation.
13376 (build_conditional_expr, build_binary_op): Likewise.
13377
13378 2009-06-16 Richard Guenther <rguenther@suse.de>
13379
13380 * tree-ssa-alias.c (is_escape_site): Remove.
13381 * tree-ssa-alias.h (enum escape_type): Remove.
13382 (is_escape_site): Likewise.
13383 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
13384 via casts and asms without deferring to is_escape_site.
13385
13386 2009-06-16 Jakub Jelinek <jakub@redhat.com>
13387
13388 PR middle-end/40446
13389 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
13390 use gen_lowpart if op0 has complex mode.
13391
13392 2009-06-16 Richard Guenther <rguenther@suse.de>
13393
13394 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
13395 variables add them to ESCAPED.
13396 (find_func_aliases): Do not make all indirectly stored values escaped.
13397
13398 2009-06-16 Rafael Avila de Espindola <espindola@google.com>
13399
13400 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
13401 make_decl_one_only.
13402
13403 2009-06-16 Martin Jambor <mjambor@suse.cz>
13404
13405 PR tree-optimization/40432
13406 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
13407 check whether we need to force gimple register operand.
13408
13409 2009-06-16 Martin Jambor <mjambor@suse.cz>
13410
13411 PR tree-optimization/40413
13412 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
13413 build_ref_for_offset.
13414 (propagate_subacesses_accross_link): Fix a typo in a comment.
13415
13416 2009-06-16 Ira Rosen <irar@il.ibm.com>
13417
13418 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
13419 with additional parameter.
13420 * tree-vectorizer.h (enum vect_def_type): Add new value
13421 vect_nested_cycle.
13422 (enum vect_relevant): Add comments.
13423 (vect_is_simple_reduction): Add new argument.
13424 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
13425 Detect nested cycles.
13426 (vect_is_simple_reduction): Update documentation, add an argument to
13427 distinguish inner-loop reduction from nested cycle, detect nested
13428 cycles, fix printings and indentation, don't swap operands in case
13429 of nested cycle.
13430 (get_initial_def_for_reduction): Handle subtraction.
13431 (vect_create_epilog_for_reduction): Add new argument to specify
13432 reduction variable.
13433 (vect_finalize_reduction): Handle subtraction, fix comments.
13434 (vectorizable_reduction): Handle nested cycles. In case of nested
13435 cycle keep track of the reduction variable position. Call
13436 vect_is_simple_reduction with additional parameter. Use original
13437 statement code in reduction epilogue for nested cycle. Call
13438 vect_create_epilog_for_reduction with additional parameter.
13439 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
13440 inner-loop vectorization.
13441 (vect_recog_widen_sum_pattern): Likewise.
13442 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
13443 and reductions.
13444 (vect_mark_stmts_to_be_vectorized): Likewise.
13445 (vect_get_vec_def_for_operand): Handle nested cycles.
13446
13447 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13448
13449 * doc/invoke.texi (Debugging Options): Fix option index entries
13450 for -fdump-statistics, -frandom-seed add entries for
13451 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
13452 (FRV Options): Fix entries for -mTLS, -mtls.
13453 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
13454 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
13455 (M68hc1x Options): Fix @itemx for -mnominmax.
13456 (MCore Options): Fix entry for -mno-lsim.
13457 (MMIX Options): Fix entry for -mabi=mmixware.
13458 (PDP-11 Options): Fix entry for -mbcopy-builtin.
13459
13460 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
13461
13462 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
13463 Mention the plugin mode of gengtype.
13464 * doc/gty.texi (Source Files Containing Type Information): Likewise.
13465 * gengtype.c: Updated copyright.
13466 (plugin_files, nb_plugin_files) Added new static variables.
13467 (measure_input_list) Care about plugin_files.
13468 (write_rtx_next): Added early return in plugin mode.
13469 (create_file): Updated copyright year in generated file. Added
13470 asserts.
13471 (oprintf): Added early return if NULL outf.
13472 (get_output_file_with_visibility): Care of plugin_files.
13473 (get_output_file_name): May return null.
13474 (write_local): Added early return.
13475 (put_mangled_filename): Ditto.
13476 (finish_root_table): Added check for base_files.
13477 (write_roots): Care about null when plugins.
13478 (main): Added plugin mode.
13479
13480 2009-06-15 Ian Lance Taylor <iant@google.com>
13481
13482 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
13483 * gcov.c (read_count_file): Add braces around variables declared
13484 before label.
13485
13486 * c.opt (Wjump-misses-init): New warning.
13487 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
13488 -Wall and -Wc++-compat if not already set.
13489 (c_common_post_options): Clear warn_jump_misses_init if it was not
13490 set.
13491 * c-decl.c (struct c_binding): Change type field to a union with
13492 new label field. Make it the first field in the struct. Update
13493 references to type to use u.type instead.
13494 (struct c_spot_bindings): Define.
13495 (struct c_goto_bindings): Define.
13496 (c_goto_bindings_p): Define, along with VECs.
13497 (struct c_label_vars): Define.
13498 (struct c_scope): Add has_label_bindings field.
13499 (bind_label, set_spot_bindings): New static functions.
13500 (decl_jump_unsafe, update_spot_bindings): New static functions.
13501 (update_label_decls): New static function.
13502 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
13503 Update binding u.label field to shadowed field.
13504 (c_binding_start_stmt_expr): New function.
13505 (c_binding_end_stmt_expr): New function.
13506 (pushdecl): Don't call c_begin_vm_scope.
13507 (make_label): Add defining and p_label_vars parameters. Change
13508 all callers.
13509 (lookup_label): Correct test for whether a label has not yet been
13510 defined. Call bind_label rather than bind.
13511 (warn_about_goto): New static function.
13512 (lookup_label_for_goto): New function.
13513 (declare_label): Call bind_label rather than bind.
13514 (check_earlier_gotos): New static function.
13515 (define_label): Don't give errors about jumping into statement
13516 expressions or scopes of variably modified types. Call
13517 set_spot_bindings and check_earlier_gotos. Call bind_label
13518 instead of bind. Don't set label_context_stack_se or
13519 label_context_stack_vm.
13520 (c_get_switch_bindings): New function.
13521 (c_release_switch_bindings): New function.
13522 (c_check_switch_jump_warnings): New function.
13523 (start_function): Don't set label_context_stack_se or
13524 label_context_stack_vm.
13525 (finish_function): Likewise.
13526 * c-typeck.c (label_context_stack_se): Don't define.
13527 (label_context_stack_vm): Don't define.
13528 (c_finish_goto_label): Call lookup_label_for_goto rather than
13529 lookup_label. Don't give errors about jumping into a statement
13530 expression or the scope of a variably modified type. Don't set
13531 label_context_stack_se or label_context_stack_vm.
13532 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
13533 fields. Add bindings field.
13534 (c_start_case): Don't set deleted fields. Set bindings field.
13535 (do_case): Rework order of tests. Don't check blocked_stmt_expr
13536 or blocked_vm. Call c_check_switch_jump_warnings.
13537 (c_finish_case): Don't test blocked_stmt_expr field. Call
13538 c_release_switch_bindings.
13539 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
13540 c_switch_stack. Don't walk label_context_stack_se labels. Don't
13541 set label_context_stack_se. Call c_bindings_start_stmt_expr.
13542 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
13543 c_switch_stack. Don't walk label_context_stack_se labels. Don't
13544 set label_context_stack_se. Call c_bindings_end_stmt_expr.
13545 (c_begin_vm_scope, c_end_vm_scope): Don't define.
13546 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
13547 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
13548 (C_DECL_UNJUMPABLE_VM): Don't define.
13549 (C_DECL_UNDEFINABLE_VM): Don't define.
13550 (struct c_label_list): Don't define.
13551 (struct c_label_context_se): Don't define.
13552 (struct c_label_context_vm): Don't define.
13553 (struct c_spot_bindings): Declare.
13554 (c_bindings_start_stmt_expr): Declare.
13555 (c_bindings_end_stmt_expr): Declare.
13556 (lookup_label_for_goto): Declare.
13557 (c_get_switch_bindings, c_release_switch_bindings): Declare.
13558 (c_check_switch_jump_warnings): Declare.
13559 (label_context_stack_se, label_context_stack_vm): Don't declare.
13560 (c_finish_goto_label): Update declaration.
13561 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
13562 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
13563 (Warning Options): Document -Wjump-misses-init.
13564
13565 2009-06-15 Jakub Jelinek <jakub@redhat.com>
13566
13567 * tree-object-size.c (addr_object_size): Fix a pasto in the last
13568 change.
13569
13570 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
13571
13572 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
13573
13574 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
13575
13576 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
13577
13578 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
13579
13580 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
13581
13582 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
13583
13584 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
13585 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
13586 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
13587 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
13588 * dwarf2asm.c (dw2_force_const_mem): Update call to
13589 make_decl_one_only.
13590 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
13591 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
13592 * langhooks.c (lhd_comdat_group): Remove.
13593 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
13594 * tree.h (DECL_COMDAT_GROUP): New.
13595 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
13596 (tree_decl_with_vis): Add comdat_group. Remove one_only.
13597 (make_decl_one_only): Change signature.
13598 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
13599 make_decl_one_only.
13600 (make_decl_one_only): Change signature.
13601 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
13602
13603 2009-06-15 Richard Guenther <rguenther@suse.de>
13604
13605 PR middle-end/40439
13606 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
13607
13608 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13609
13610 * tree-ssa-math-opts.c: Remove extra divide.
13611
13612 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13613
13614 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
13615
13616 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13617
13618 * passes.c: Add bswap pass.
13619 * tree-pass.h: Add pass_optimize_bswap declaration.
13620 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
13621 Include rtl.h, expr.h and optabs.h for optab_handler check.
13622 (struct symbolic_number, pass_optimize_bswap): New definition.
13623 (do_shift_rotate, verify_symbolic_number_p): New functions.
13624 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
13625 (gate_optimize_bswap): New function.
13626 * tree.c (widest_int_cst_value): New function.
13627 * tree.h (widest_int_cst_value): Prototype added.
13628
13629 2009-06-14 Steven Bosscher <steven@gcc.gnu.org>
13630
13631 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
13632 REG_EQUAL/REG_EQUIV notes.
13633
13634 2009-06-14 Richard Guenther <rguenther@suse.de>
13635
13636 PR middle-end/40389
13637 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
13638 has its address taken if NRV was applied and it is addressable.
13639 * tree-ssa-structalias.c (get_constraint_for_address_of): New
13640 function split out from ...
13641 (get_constraint_for_1): ... here.
13642 (handle_rhs_call): Use it to mark the return slot escaped if
13643 it is addressable and NRV was applied.
13644
13645 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
13646
13647 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
13648 Change first argument type to location_t.
13649 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
13650 Do not set input_location.
13651 Use loc instead of input_location throughout.
13652
13653 2009-06-13 Richard Guenther <rguenther@suse.de>
13654
13655 PR tree-optimization/40421
13656 * tree-predcom.c (should_unroll_loop_p): Remove.
13657 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
13658
13659 2009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13660
13661 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13662 Add location argument.
13663
13664 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
13665
13666 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
13667 build_decl.
13668 * config/s390/s390.c (s390_build_builtin_va_list): Same.
13669 (s390_gimplify_va_arg): Pass location to create_artificial_label.
13670 * config/spu/spu-protos.h: Add location to
13671 spu_resolve_overloaded_builtin.
13672 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
13673 spu_build_builtin_va_list.
13674 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
13675 argument. Pass location to build_function_call_vec.
13676 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
13677 build_decl.
13678 (emit_fpu_switch): Same.
13679 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
13680 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
13681 to build_decl and create_artificial_label.
13682 (xtensa_gimplify_va_arg_expr): Same.
13683 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
13684 (xstormy16_gimplify_va_arg_expr): Same.
13685 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
13686 * config/arm/arm.c (arm_build_builtin_va_list): Same.
13687 * config/mips/mips.c (mips_build_builtin_va_list): Same.
13688 (mips16_build_function_stub): Same.
13689 (mips16_build_call_stub): Same.
13690
13691 2009-06-13 Richard Earnshaw <rearnsha@arm.com>
13692
13693 PR target/40327
13694 * arm/constraints.md (Pa, Pb): New constraints.
13695 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
13696 split pattern to deal with them.
13697
13698 2009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
13699
13700 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
13701 fix index entry for -Xpreprocessor.
13702
13703 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
13704
13705 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13706 Add location argument to build_decl call.
13707 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
13708 (rs6000_init_builtins): Same.
13709 (spe_init_builtins): Same.
13710 (rs6000_gimplify_va_arg): Add location argument to
13711 create_artificial_label call.
13712
13713 2009-06-12 Steven Bosscher <steven@gcc.gnu.org>
13714
13715 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
13716 * combine-stack-adj.c (pass_stack_adjustments): Use it.
13717 * Makefile.in: Fix GGC dependency for gcse.o.
13718
13719 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
13720
13721 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
13722 * gimple-pretty-print.c (dump_gimple_stmt): Same.
13723 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
13724 created.
13725 * c-parser.c (c_parser_binary_expression): Use current column while
13726 building binary operations.
13727 * common.opt (fshow-column): Enable by default.
13728 * tree-vrp.c (check_array_ref): Use warning_at.
13729 (check_array_bounds): Use location from call back if expr has no
13730 location.
13731 * tree.h: Add location argument to maybe_fold_*.
13732 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
13733 (maybe_fold_offset_to_array_ref): Add location argument and use it.
13734 (maybe_fold_offset_to_component_ref): Same.
13735 (maybe_fold_offset_to_reference): Same.
13736 (maybe_fold_offset_to_address): Same.
13737 (maybe_fold_stmt_indirect): Same.
13738 (maybe_fold_stmt_addition): Same.
13739 (fold_stmt_r): Pass location to maybe_fold_*.
13740 (fold_gimple_assign): Same.
13741 * c-tree.h: Add location argument to finish_decl,
13742 default_function_array_conversion, store_init_value.
13743 * c-decl.c (define_label): Use error_at.
13744 (c_make_fname_decl): Pass location to finish_decl.
13745 (finish_decl): New location argument.
13746 (build_compound_literal): Pass location to store_init_value.
13747 (grokdeclarator): Pass location to finish_decl.
13748 (grokfield): Same.
13749 * c-typeck.c (array_to_pointer_conversion): New location argument.
13750 (function_to_pointer_conversion): Same.
13751 (default_function_array_conversion): Same.
13752 (parser_build_unary_op): Pass location to overflow_warning.
13753 (parser_build_binary_op): Same. Use warning_at.
13754 (build_unary_op): Pass location to array_to_pointer_conversion.
13755 (build_c_cast): Pass location to digest_init.
13756 (build_modify_expr): New location argument.
13757 (convert_for_assignment): Same.
13758 (store_init_value): Same.
13759 (digest_init): Same.
13760 (output_init_element): Pass location to digest_init and
13761 array_to_pointer_conversion.
13762 (c_finish_return): Pass location to convert_for_assignment.
13763 * gimplify.c (gimplify_conversion): Pass location to
13764 maybe_fold_offset_to_address.
13765 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
13766 to maybe_fold_stmt_addition.
13767 * c-omp.c (c_finish_omp_atomic): Pass new location to
13768 build_modify_expr.
13769 (c_finish_omp_for): Same.
13770 * c-common.c (overflow_warning): New argument.
13771 * c-common.h: New argument to build_modify_expr, overflow_warning.
13772 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
13773 finish_decl.
13774 (c_parser_initializer): Pass location to
13775 default_function_array_conversion.
13776 (c_parser_initelt): Same.
13777 (c_parser_initval): Same.
13778 (c_parser_asm_operands): Same.
13779 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
13780 (c_parser_conditional_expression): Same.
13781 (c_parser_binary_expression): Add location info to stack. Use it.
13782 (c_parser_unary_expression): Pass location to
13783 default_function_array_conversion, parser_build_unary_op,
13784 build_indirect_ref, c_parser_postfix_expression_after_primary.
13785 (c_parser_postfix_expression_after_primary): New location argument.
13786 Use it.
13787 (c_parser_expression_conv): Pass location to
13788 default_function_array_conversion.
13789 (c_parser_expr_list): Same.
13790 (c_parser_omp_atomic): Same.
13791 (c_parser_omp_for_loop): Same.
13792 * c-tree.h: (struct c_declarator): Add comment to id_loc.
13793 (build_array_declarator): New argument.
13794 * c-decl.c (build_array_declarator): Add location argument.
13795 (grokdeclarator): Set id_loc for cdk_array.
13796 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
13797 build_array_declarator.
13798 * tree.c (build_omp_clause): Add location argument.
13799 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
13800 (OMP_CLAUSE_LOCATION): New macro.
13801 (struct tree_omp_clause): Add location field.
13802 (build_omp_clause): Add argument.
13803 * testsuite/gcc.dg/gomp/for-1.c: Fix column.
13804 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
13805 build_omp_clause.
13806 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
13807 (cp_parser_omp_clause_collapse): Same.
13808 (cp_parser_omp_clause_default): Same.
13809 (cp_parser_omp_clause_if): Same.
13810 (cp_parser_omp_clause_nowait): Same.
13811 (cp_parser_omp_clause_num_threads): Same.
13812 (cp_parser_omp_clause_ordered): Same.
13813 (cp_parser_omp_clause_schedule): Same.
13814 (cp_parser_omp_clause_untied): Same.
13815 (cp_parser_omp_for_loop): Same.
13816 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
13817 * c-tree.h (c_start_case): Add location argument.
13818 (c_process_expr_stmt): Same.
13819 (c_finish_goto_*): Same.
13820 * tree-parloops.c (initialize_reductions): Pass location to
13821 build_omp_clause.
13822 (create_parallel_loop): Same.
13823 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
13824 (gfc_trans_omp_reduction_list): Same.
13825 (gfc_trans_omp_clauses): Same.
13826 (gfc_trans_omp_do): Same.
13827 * c-typeck.c (c_finish_goto_label): Same.
13828 (c_finish_goto_ptr): New location argument.
13829 (c_start_case): Same.
13830 (emit_side_effect_warnings): Same.
13831 (c_process_expr_stmt): Same.
13832 (c_finish_stmt_expr): Same.
13833 (c_finish_omp_clauses): Use error_at instead of error.
13834 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
13835 build_omp_clause.
13836 * c-omp.c (c_split_parallel_clauses): New location argument.
13837 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
13838 to build_omp_clause.
13839 (convert_local_reference_stmt): Same.
13840 (convert_gimple_call): Same.
13841 * c-common.h (c_split_parallel_clauses): New argument.
13842 * c-parser.c (c_parser_statement_after_labels): Pass location to
13843 c_finish_goto_label.
13844 (c_parser_switch_statement): Pass location to c_start_case.
13845 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
13846 and c_process_expr_stmt.
13847 (c_parser_omp_variable_list): Add location argument.
13848 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
13849 (c_parser_omp_clause_default): Same.
13850 (c_parser_omp_clause_if): Same.
13851 (c_parser_omp_clause_num_threads): Same.
13852 (-c_parser_omp_clause_ordered): Same.
13853 (c_parser_omp_clause_reduction): Pass location to
13854 c_parser_omp_variable_list.
13855 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
13856 (c_parser_omp_clause_untied): Same.
13857 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
13858 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
13859
13860 * c-tree.h (check_for_loop_decls, undeclared_variable,
13861 build_component_ref, build_array_ref, build_external_ref,
13862 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
13863 build_conditional_expr, build_compound_expr, c_cast_expr,
13864 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
13865 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
13866 argument.
13867 * c-semantics.c (build_stmt): Same.
13868 (build_case_label): Same.
13869 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
13870 (undeclared_variable): New argument.
13871 (make_label): Same.
13872 (lookup_label): Pass location on down.
13873 (define_label): Same.
13874 (finish_decl): Same.
13875 (build_compound_literal): Same.
13876 (finish_struct): Same.
13877 (finish_function): Do not set location here.
13878 (check_for_loop_decls): New argument.
13879 * tree.c (save_expr): Set location.
13880 (build_empty_stmt): New argument.
13881 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
13882 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
13883 * builtins.c (gimplify_va_arg_expr): Use locations.
13884 (expand_builtin_sync_operation): Same.
13885 * c-typeck.c (build_component_ref): New argument.
13886 (build_array_ref): Same.
13887 (build_external_ref): Same.
13888 (c_expr_sizeof_expr): Same.
13889 (c_expr_sizeof_type): Same.
13890 (parser_build_unary_op): Same.
13891 (build_conditional_expr): Same.
13892 (build_compound_expr): Pass location on down.
13893 (build_compound_expr): New argument.
13894 (build_c_cast): Same.
13895 (c_cast_expr): Same.
13896 (build_asm_expr): Same.
13897 (c_finish_return): Same.
13898 (c_process_expr_stmt): Pass location on down.
13899 (c_finish_stmt_expr): New argument.
13900 (push_clenaup): Same.
13901 (c_finish_omp_parallel): Same.
13902 (c_finish_omp_task): Same.
13903 * gimplify.c (gimplify_call_expr): Pass location on down.
13904 * c-omp.c (c_finish_omp_master): New argument.
13905 (c_finish_omp_critical): Same.
13906 (c_finish_omp_ordered): Same.
13907 (c_finish_omp_barrier): Same.
13908 (-c_finish_omp_taskwait): Same.
13909 (c_finish_omp_atomic): Same.
13910 (c_finish_omp_flush): Same.
13911 * tree-inline.c (copy_tree_body_r): Pass location on down.
13912 (inline_forbidden_p): Remove use of input_location.
13913 * c-gimplify.c (c_build_bind_expr): New argument.
13914 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
13915 (c_sizeof_or_alignof_type): New argument.
13916 (c_alignof_expr): Same.
13917 (build_va_arg): Same.
13918 (c_add_case_label): Same.
13919 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
13920 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
13921 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
13922 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
13923 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
13924 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
13925 New argument.
13926 * stub-objc.c (objc_build_selector_expr): Same.
13927 (objc_build_throw_stmt): Same.
13928 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
13929 (c_parser_initelt): Same.
13930 (c_parser_compound_statement): Same.
13931 (c_parser_compound_statement_nostart): Same.
13932 (c_parser_label): Same.
13933 (c_parser_statement_after_labels): Same.
13934 (c_parser_if_body): Same.
13935 (c_parser_else_body): Same.
13936 (c_parser_if_statement): Same.
13937 (c_parser_switch_statement): Same.
13938 (c_parser_while_statement): Same.
13939 (c_parser_do_statement): Same.
13940 (c_parser_for_statement): Same.
13941 (c_parser_asm_statement): Same.
13942 (c_parser_conditional_expression): Same.
13943 (c_parser_binary_expression): Same.
13944 (c_parser_cast_expression): Same.
13945 (c_parser_unary_expression): Same.
13946 (c_parser_sizeof_expression): Same.
13947 (c_parser_alignof_expression): Same.
13948 (c_parser_postfix_expression): Same.
13949 (c_parser_expression): Same.
13950 (c_parser_objc_receiver): Same.
13951 (c_parser_omp_variable_list): Same.
13952 (c_parser_omp_structured_block): Same.
13953 (c_parser_omp_atomic): New argument.
13954 (c_parser_omp_barrier): Same.
13955 (c_parser_omp_critical): Same.
13956 (c_parser_omp_flush): Pass location on down.
13957 (c_parser_omp_for_loop): New argument.
13958 (c_parser_omp_for): Same.
13959 (c_parser_omp_master): Same.
13960 (c_parser_omp_ordered): Same.
13961 (c_parser_omp_sections_scope): Same.
13962 (c_parser_omp_sections): Same.
13963 (c_parser_omp_parallel): Same.
13964 (c_parser_omp_single): Same.
13965 (c_parser_omp_task): Same.
13966 (c_parser_omp_taskwait): Pass location on down.
13967 (c_parser_omp_construct): Same.
13968 (c_parser_omp_threadprivate): Same.
13969 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
13970 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
13971 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
13972 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
13973 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
13974 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
13975 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
13976 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
13977 config/i386/i386.c, stmt.c:
13978 Add location argument to the following function definitions and/or
13979 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
13980 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
13981 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
13982 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
13983 do_case, c_finish_bc_stmt, build_compound_literal,
13984 build_function_call.
13985 * c-decl.c (build_compound_literal): Add location argument.
13986 Make all diagnostic calls use location.
13987 (start_struct): Same.
13988 (finish_struct): Same.
13989 (start_enum): Same.
13990 (build_enumerator): Same.
13991 (start_function): Same.
13992 (grokdeclarator): Make all diagnostic calls use location.
13993 (store_parm_decls_oldstyle): Same.
13994 * c-typeck.c (build_function_call): Add location argument.
13995 Make all diagnostic calls use location.
13996 (do_case): Same.
13997 (c_finish_bc_stmt): Same.
13998 * tree-nested.c (get_trampoline_type): Add argument.
13999 Pass location to build_decl.
14000 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
14001 * rtl.h (RTL_LOCATION): New.
14002 * c-common.c (c_add_case_label): Add location argument.
14003 Make all diagnostic calls use location.
14004 * c-common.h: Add location argument to make_fname_decl, do_case,
14005 c_add_case_label, build_function_call, resolve_overloaded_builtin.
14006 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
14007 Set it appropriately for every case. Pass enum_loc to start_enum
14008 call. Pass value_loc first to build_enumerator. Pass enum_loc to
14009 parser_xref_tag.
14010 (c_parser_struct_or_union_specifier): Save location. Use it for
14011 start_struct, finish_struct, and parser_xref_tag.
14012
14013 2009-06-12 Ian Lance Taylor <iant@google.com>
14014
14015 * fold-const.c (fold_unary): Rename local variable and to and_expr.
14016
14017 * c-opts.c (c_common_handle_option): For -Wc++-compat set
14018 cpp_opts->warn_cxx_operator_names.
14019
14020 2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
14021
14022 PR tree-opt/38865
14023 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
14024 is returns NULL and OP is a VCE, look through the VCE.
14025
14026 2009-06-12 Ian Lance Taylor <iant@google.com>
14027
14028 PR bootstrap/40430
14029 * collect2.c (main): Use CONST_CAST2 in code inside #if
14030 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
14031
14032 2009-06-12 Joey Ye <joey.ye@intel.com>
14033
14034 PR middle-end/39146
14035 * cfgexpand.c (get_decl_align_unit): Update
14036 max_used_stack_slot_alignment with align instead of
14037 stack_alignment_needed.
14038
14039 * function.c (assign_stack_local_1): Update
14040 max_used_stack_slot_alignment with alignment_in_bits instead
14041 of stack_alignment_needed.
14042 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
14043 here.
14044
14045 2009-06-12 Jakub Jelinek <jakub@redhat.com>
14046
14047 * dwarf2out.c (last_var_location_insn): New variable.
14048 (dwarf2out_end_epilogue): Clear last_var_location_insn.
14049 (dwarf2out_var_location): Don't record anything after last real
14050 insn. Only change labels if there were any real instructions
14051 in between last note and this one, or if changed sections.
14052
14053 2009-06-11 Richard Henderson <rth@redhat.com>
14054
14055 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
14056 note when storing the frame pointer in a register.
14057 (FRP): Don't redefine to nothing for epilogue.
14058 (alpha_expand_epilogue): Mark register and sp restores.
14059 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
14060
14061 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
14062 when gen_lowpart is needed.
14063
14064 2009-06-11 Richard Henderson <rth@redhat.com>
14065
14066 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
14067
14068 * dwarf2out.c (need_data_align_sf_opcode): New.
14069 (div_data_align): Move earlier.
14070 (def_cfa_1, reg_save): Use it.
14071
14072 2009-06-11 H.J. Lu <hongjiu.lu@intel.com>
14073
14074 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
14075 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
14076 (ix86_handle_option): Handle OPT_mcrc32.
14077 (ix86_target_string): Add -mcrc32.
14078 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
14079
14080 * config/i386/i386.h (TARGET_CRC32): New.
14081
14082 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
14083 (sse4_2_crc32di): Likewise.
14084
14085 * config/i386/i386.opt (mcrc32): New.
14086
14087 * doc/invoke.texi: Document -mcrc32.
14088
14089 2009-06-11 Richard Henderson <rth@redhat.com>
14090
14091 * common.opt (gdwarf-): Accept a version number.
14092 * doc/invoke.texi (gdwarf-): Update docs.
14093 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
14094 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
14095 version level, and record it.
14096
14097 * dwarf2.h (DW_CIE_VERSION): Remove.
14098 * dwarf2out.c (DWARF_VERSION): Remove.
14099 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
14100 (output_call_frame_info): Use CIE version 3 for dwarf3,
14101 or if the return register column is out of range for version 1.
14102 (dwarf_stack_op_name): Add all dwarf3 values.
14103 (DEBUG_PUBTYPES_SECTION): New.
14104 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
14105 encoding change for dwarf3.
14106 (output_die) [dw_val_class_die_ref]: Likewise.
14107 (output_compilation_unit_header): Emit correct version for dwarf3.
14108 (output_line_info): Likewise.
14109 (output_pubnames): Update for DWARF_VERSION removal.
14110 (output_aranges): Likewise.
14111 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
14112 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
14113 (dwarf2out_finish): Likewise.
14114
14115 2009-06-11 David Daney <ddaney@caviumnetworks.com>
14116
14117 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
14118 in r148403.
14119
14120 2009-06-11 David Daney <ddaney@caviumnetworks.com>
14121
14122 PR c/39252
14123 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
14124 * builtins.c (expand_builtin_unreachable): New function.
14125 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
14126 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
14127 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
14128 successors.
14129 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
14130 searching for missing barriers.
14131
14132 2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14133
14134 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
14135 when -fprofile-generate* was passed.
14136 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
14137
14138 2009-06-11 Anthony Green <green@moxielogic.com>
14139
14140 * config/moxie/moxie.md: Define length attribute for all instructions.
14141 (rCC): Define.
14142 (*b<cond:code>): Support limited branch ranges for new PC-relative
14143 branch instructions.
14144 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
14145
14146 2009-06-11 Jakub Jelinek <jakub@redhat.com>
14147
14148 * config/i386/i386.c (min_insn_size): Use get_attr_length
14149 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
14150 For __asm return 0.
14151
14152 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
14153 instead of emit_insn_before.
14154
14155 2009-06-10 Ian Lance Taylor <iant@google.com>
14156
14157 PR bootstrap/40408
14158 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
14159 GIMPLE_SWITCH.
14160
14161 2009-06-10 Revital Eres <eres@il.ibm.com>
14162
14163 * passes.c (init_optimization_passes): Reschedule
14164 predictive-commoning pass before complete unroll pass.
14165
14166 2009-06-10 Martin Jambor <mjambor@suse.cz>
14167
14168 * cgraph.c (cgraph_node_can_be_local_p): New function.
14169 (cgraph_make_node_local): New function.
14170 * cgraph.h (cgraph_node_can_be_local_p): Declare.
14171 (cgraph_make_node_local): Declare.
14172
14173 2009-06-10 Nathan Froyd <froydnj@codesourcery.com>
14174
14175 * tree.h (tree_base): Add packed_flag and user_align fields.
14176 Decrease size of spare field.
14177 (TYPE_USER_ALIGN): Use user_align from tree_base.
14178 (DECL_USER_ALIGN): Likewise.
14179 (TYPE_PACKED): Use packed_flag from tree_base.
14180 (DECL_PACKED): Likewise.
14181 (tree_type): Delete packed_flag and user_align fields. Widen
14182 precision field. Widen mode field and shuffle fields to align
14183 mode on an 8-bit boundary.
14184 (tree_decl_common): Delete decl_flag_1 and user_align fields.
14185 Renumber decl_flag_* fields. Fix comments. Widen
14186 decl_common_unused field.
14187 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
14188 (DECL_EXTERNAL): Likewise.
14189 (DECL_BIT_FIELD): Likewise.
14190 (DECL_NONADDRESSABLE_P): Likewise.
14191 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
14192 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
14193
14194 2009-06-10 Ian Lance Taylor <iant@google.com>
14195
14196 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
14197 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
14198 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
14199 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
14200 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
14201 DEF_VEC_ALLOC_FUNC_P.
14202 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
14203 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
14204 DEF_VEC_ALLOC_FUNC_O.
14205 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
14206 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
14207 DEF_VEC_ALLOC_FUNC_I.
14208 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
14209 (vec_stack_p_reserve_exact_1): Declare.
14210 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
14211 (vec_stack_free): Declare.
14212 (VEC_stack_alloc): Define.
14213 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
14214 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
14215 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
14216 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
14217 for void_p.
14218 (stack_vecs): New static variable.
14219 (vec_stack_p_reserve_exact_1): New function.
14220 (vec_stack_o_reserve_1): New static function.
14221 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
14222 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
14223 (vec_stack_free): New function.
14224 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
14225 (VEC_df_ref_stack_alloc): Define.
14226 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
14227 DEF_VEC_ALLOC_P_STACK.
14228 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
14229 (struct df_collection_rec): Change _vec fields to VEC. Remove
14230 _use fields.
14231 (df_free_collection_rec): Adjust for new fields.
14232 (df_insn_rescan): Use new df_collection_rec fields.
14233 (df_notes_rescan, df_canonize_collection_rec): Likewise.
14234 (df_ref_create_structure, df_ref_record): Likewise.
14235 (df_get_conditional_uses, df_get_call_refs): Likewise.
14236 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
14237 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
14238 (df_record_exit_block_uses, df_bb_verify): Likewise.
14239 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
14240 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
14241 Remove count parameter. Change return type to void. Change all
14242 callers.
14243 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
14244 Remove count parameter. Change return type to void. Change all
14245 callers.
14246 (df_install_refs): Change old_vec parameter to VEC. Remove count
14247 parameter. Change all callers.
14248 (df_install_mws): Change old_vec parameter to VEC. Remove count
14249 parameter. Change all callers.
14250 (df_refs_verify): Change new_rec parameter to VEC. Change call
14251 callers.
14252 (df_mws_verify): Likewise.
14253
14254 2009-06-10 Alexandre Oliva <aoliva@redhat.com>
14255
14256 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
14257
14258 2009-06-10 H.J. Lu <hongjiu.lu@intel.com>
14259
14260 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
14261
14262 2009-06-10 Anthony Green <green@moxielogic.com>
14263
14264 * config/moxie/crti.asm: New file.
14265 * config/moxie/crtn.asm: New file.
14266 * config/moxie/moxie.c: New file.
14267 * config/moxie/moxie.h: New file.
14268 * config/moxie/sfp-machine.h: New file.
14269 * config/moxie/moxie-protos.h: New file.
14270 * config/moxie/t-moxie: Created.
14271 * config/moxie/t-moxie-softfp: Created.
14272 * config/moxie/moxie.md: Created.
14273 * config/moxie/constraints.md: Created.
14274 * config.gcc: Add moxie support.
14275 * doc/md.texi (Machine Constraints): Add moxie constraints.
14276 * doc/contrib.texi (Contributors): Mention moxie port.
14277 * doc/install.texi (Specific): Mention the moxie port.
14278
14279 2009-06-09 Ian Lance Taylor <iant@google.com>
14280
14281 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
14282 compiling with C++.
14283 * optabs.c (optab_table): Only use designated initializers if
14284 HAVE_DESIGNATED_INITIALIZERS is defined.
14285 (convert_optab_table): Likewise.
14286 (init_optabs): Always call init_insn_codes if
14287 HAVE_DESIGNATED_INITIALIZERS is not defined.
14288
14289 2009-06-09 Ian Lance Taylor <iant@google.com>
14290
14291 * targhooks.c (default_builtin_vectorized_function): Change fn
14292 parameter to unsigned int.
14293 (default_builtin_vectorized_conversion): Change code parameter to
14294 unsigned int.
14295 (default_builtin_reciprocal): Change fn parameter to unsigned int.
14296 * targhooks.h: Update declarations.
14297 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
14298 parameter to unsigned int.
14299
14300 * c-typeck.c (comptypes_check_enum_int): New static function.
14301 (comptypes_internal): Add enum_and_int_p parameter. Change all
14302 callers.
14303 (comp_target_types): Add location parameter. Change all callers.
14304 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
14305 Change all callers.
14306 (function_types_compatible_p, type_lists_compatible_p): Likewise.
14307 (build_conditional_expr): Add colon_loc parameter. Change all
14308 callers.
14309 (convert_for_assignment): Add location parameter. Change all callers.
14310 * c-parser.c (c_parser_conditional_expression): Pass location of
14311 colon to build_conditional_expr.
14312 * c-tree.h (build_conditional_expr): Update declaration.
14313
14314 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
14315
14316 * graphite.c: Revert previous patch.
14317
14318 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
14319
14320 PR bootstrap/40103
14321 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
14322
14323 2009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
14324
14325 * tree-ssa-loop-prefetch.c
14326 (loop_prefetch_arrays): Fixed a portability problem in printf format
14327 string.
14328
14329 2009-06-09 Martin Jambor <mjambor@suse.cz>
14330
14331 PR tree-optimization/40351
14332 * tree-sra.c (propagate_subacesses_accross_link): Check that a
14333 refrence to a potential artifical subaccess can be constructed.
14334
14335 2009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
14336
14337 * config/sh/sh-protos.h (sh_optimization_options): Declare.
14338 (sh_override_options): Likewise.
14339 * config/sh/sh.c: Include params.h.
14340 (sh_optimization_options): New.
14341 (sh_override_options): Likewise.
14342 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
14343 (OVERRIDE_OPTIONS): Use sh_override_options.
14344
14345 2009-06-08 Jakub Jelinek <jakub@redhat.com>
14346
14347 * dwarf2out.c (emit_cfa_remember): New variable.
14348 (add_fde_cfi): If emit_cfa_remember, recurse to add
14349 DW_CFA_remember_state first.
14350 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
14351 instead just set emit_cfa_remember.
14352
14353 2009-06-08 Jan Hubicka <jh@suse.cz>
14354
14355 PR debug/40126
14356 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
14357
14358 2009-06-08 Jan Hubicka <jh@suse.cz>
14359
14360 PR middle-end/39834
14361 * cgraphunit.c (save_inline_function_body): Do not copy transform
14362 hooks for saved inline bodies.
14363 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
14364 for given function.
14365
14366 2009-06-08 Adam Nemet <anemet@caviumnetworks.com>
14367
14368 * jump.c (returnjump_p): Handle delayed branches. Add missing
14369 function comment.
14370
14371 2009-06-08 Jan Hubicka <jh@suse.cz>
14372
14373 PR middle-end/40102
14374 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
14375 original node might've been modified.
14376 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
14377
14378 2009-06-08 Jakub Jelinek <jakub@redhat.com>
14379
14380 * tree-object-size.c (addr_object_size): Add OSI argument.
14381 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
14382 (compute_builtin_object_size, expr_object_size): Adjust callers.
14383 (plus_stmt_object_size): Call addr_object_size instead of
14384 compute_builtin_object_size.
14385
14386 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
14387 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
14388
14389 * tree-ssa-loop-prefetch.c
14390 (gather_memory_references): Introduced a counter for the number of
14391 memory references.
14392 (anything_to_prefetch_p): Introduced a counter for the number of
14393 prefetches.
14394 (is_loop_prefetching_profitable): New function with a cost model
14395 for prefetching.
14396 (loop_prefetch_arrays): Use the new cost model to determine if
14397 prefetching is profitable.
14398 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
14399 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14400 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
14401 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14402 * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
14403 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14404
14405 2009-06-08 Michael Matz <matz@suse.de>
14406
14407 PR debug/40012
14408 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
14409 partitions use the same.
14410 (expand_one_var): Deal with DECL_RTL sometimes begin set also
14411 for basevars of SSA_NAMEs.
14412 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
14413 to not expand them twice.
14414 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
14415 multiple places.
14416
14417 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
14418
14419 * common.opt (fcompare-debug=, fcompare-debug-second): New.
14420 (fdump-final-insns=, gtoggle): New.
14421 * doc/invoke.texi: Document them.
14422 * final.c (rest_of_clean_state): Dump final insn stream.
14423 * gcc.c (invoke_as): Hook in -fcompare-debug.
14424 (static_spec_functions): Add compare-debug-dump-opt,
14425 compare-debug-self-opt and compare-debug-auxbase-opt.
14426 (compare_debug, compare_debug_second, compare_debug_opt): New.
14427 (switches_debug_check, n_switches_debug_check): New.
14428 (debug_auxbase_opt, debug_check_temp_file): New.
14429 (process_command): Handle -fno-compare-debug, -fcompare-debug and
14430 -fcompare-debug=*.
14431 (do_self_spec): Handle arguments after switches.
14432 (do_spec_1): Add .gk extension to temp file basenames for compare.
14433 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
14434 (cc1_options): Use it instead of normal auxbase computation for
14435 the second compare-debug compilation.
14436 (compare_files): New.
14437 (main): Set up and implement compare debug mode.
14438 (compare_debug_dump_opt_spec_function): New.
14439 (compare_debug_self_opt_spec_function): New.
14440 (compare_debug_auxbase_opt_spec_function): New.
14441 * toplev.c (process_options): Handle flag_gtoggle,
14442 flag_dump_final_insns.
14443 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
14444 during -fcompare-debug-second compilation.
14445
14446 2009-06-07 Ian Lance Taylor <iant@google.com>
14447
14448 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
14449 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
14450
14451 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
14452 with no default node. Change warning with %H to warning_at.
14453 Don't clear warn_switch around case checking.
14454 * doc/invoke.texi (Warning Options): Clarify distinction between
14455 -Wswitch and -Wswitch-enum.
14456
14457 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14458
14459 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
14460
14461 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14462
14463 * gbl-ctors.h: Add header guard.
14464
14465 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14466
14467 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
14468 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
14469 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
14470 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
14471 prototypes for removed functions.
14472 (expressions_equal_p): Move to ...
14473 * tree-ssa-sccvn.h: ... here and ...
14474 * matrix-reorg.c: ... adjust includes.
14475
14476 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14477
14478 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
14479
14480 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14481
14482 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
14483 (finish_function): Remove erroneous whitespace.
14484
14485 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14486
14487 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
14488 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
14489
14490 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14491
14492 * errors.c (internal_error): Commentary typo fix.
14493 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
14494 * tree-ssa-pre.c: Ditto.
14495
14496 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14497
14498 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
14499 them is supposed to hold actual statements.
14500
14501 2009-06-06 Ian Lance Taylor <iant@google.com>
14502
14503 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
14504 empty statements can now have attributes.
14505
14506 2009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
14507
14508 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
14509 * config/mips/mips.md: Ditto.
14510
14511 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
14512
14513 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
14514 _RELOCATABLE.
14515 (__eabi_uconvert): Likewise.
14516
14517 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
14518
14519 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
14520 CFI_* definitions with IN_GCC.
14521
14522 2009-06-05 David Edelsohn <edelsohn@gnu.org>
14523
14524 * xcoffout.h (xcoffout_source_line): Update prototype.
14525
14526 2009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14527
14528 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
14529 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
14530
14531 2009-06-05 Jakub Jelinek <jakub@redhat.com>
14532
14533 PR middle-end/40340
14534 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
14535 inlined_function_outer_scope_p blocks for artificial inlines
14536 even at -g0/-g1.
14537 * tree.c (tree_nonartificial_location): Rewrite using
14538 block_nonartificial_location.
14539
14540 2009-06-05 Revital Eres <eres@il.ibm.com>
14541 Leehod Baruch <leehod@il.ibm.com>
14542
14543 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
14544 (expand_expr_real_1): Remove comment.
14545 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14546 Vectorize misaligned access when the target supports it.
14547 (vect_supportable_dr_alignment): Check for unaligned access support.
14548 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
14549 and remove asset.
14550
14551 2009-06-05 Julian Brown <julian@codesourcery.com>
14552
14553 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
14554 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
14555
14556 2009-06-05 Richard Guenther <rguenther@suse.de>
14557
14558 PR bootstrap/40350
14559 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
14560 as possibly unused.
14561
14562 2009-06-05 Jakub Jelinek <jakub@redhat.com>
14563
14564 * config/s390/s390.c (global_not_special_regno_p): New static inline.
14565 (save_gprs): Don't tell unwinder when a global register is saved.
14566 (s390_emit_epilogue): Emit needed epilogue unwind info.
14567
14568 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
14569
14570 * dwarf2out.c (deferred_asm_name): New.
14571 (add_name_and_src_coords_attributes): Defer creation of
14572 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
14573 computed yet.
14574 (move_linkage_attr): New.
14575 (dwarf2out_finish): Revisit deferrals and emit attributes at the
14576 right place.
14577
14578 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
14579
14580 * tree-nested.c (finalize_nesting_tree_1): Declare the
14581 frame_decl in the binding tree.
14582
14583 2009-06-04 Cary Coutant <ccoutant@google.com>
14584
14585 * basic-block.h (struct basic_block_def): Add discriminator field.
14586 * dbxout.c (dbxout_source_line): Add new parameter. Change all
14587 callers.
14588 * debug.c (do_nothing_debug_hooks): Add additional entry.
14589 (debug_nothing_int_charstar_int): New function.
14590 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
14591 (debug_nothing_int_charstar_int): New declaration.
14592 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
14593 discriminator value in .loc directive.
14594 * final.c (last_discriminator): New variable.
14595 (discriminator): New variable.
14596 (final_start_function): Initialize above variables, pass current
14597 discriminator to debug hook.
14598 (notice_source_line): Check for discriminator change.
14599 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
14600 * sdbout.c (sdbout_source_line): New parameter.
14601 * tree-cfg.c (struct locus_discrim_map): New structure type.
14602 (discriminator_per_locus): New hash table.
14603 (build_gimple_cfg): Allocate and free discriminator hash table.
14604 (make_edges): Call assign_discriminator.
14605 (locus_map_hash): New function.
14606 (locus_map_eq): New function.
14607 (next_discriminator_for_locus): New function.
14608 (same_line_p): New function.
14609 (assign_discriminator): New function.
14610 (make_cond_expr_edges): Call assign_discriminator.
14611 (make_gimple_switch_edges): Likewise.
14612 (first_non_label_stmt): New function.
14613 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
14614 all callers.
14615 * xcoffout.c (xcoffout_source_line): Add new parameter.
14616
14617 * configure.ac (gcc_cv_as_discriminator): New configury check for
14618 gas support for discriminator.
14619 * configure: Regenerate.
14620 * config.in: Regenerate.
14621
14622 2009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14623
14624 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
14625 val after checking for integers.
14626
14627 2009-06-04 Uros Bizjak <ubizjak@gmail.com>
14628
14629 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
14630 X64_REGPARM_MAX.
14631 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
14632 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
14633 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
14634 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
14635 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
14636 X64_SSE_REGPARM_MAX.
14637 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
14638 X64_SSE_REGPARM_MAX.
14639
14640 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
14641
14642 * gcc.c (report_times_to_file): New.
14643 (execute): Implement it.
14644 (process_command): Support -time=.
14645 * doc/invoke.texi: Document it.
14646
14647 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
14648
14649 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
14650 that have value exprs.
14651
14652 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
14653
14654 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
14655 declarations for constants until...
14656 (dw2_output_indirect_constant_1): ... this point.
14657
14658 2009-06-04 Richard Earnshaw <rearnsha@arm.com>
14659
14660 PR target/10242
14661 * arm.md (arm_addsi3): Don't try to split an add with an
14662 eliminable register until after reload has completed.
14663
14664 2009-06-03 Ian Lance Taylor <iant@google.com>
14665
14666 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
14667 * genattrtab.c (write_length_unit_log): Likewise.
14668 * genchecksum.c (dosum): Likewise.
14669 * gengtype.c (write_rtx_next): Likewise.
14670 (finish_root_table, write_roots): Likewise.
14671 * gimple.c (gimple_ops_offset_): Likewise.
14672 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
14673 * config/arc/arc.c (arc_attribute_table): Likewise.
14674 * config/arm/arm.c (arm_attribute_table): Likewise.
14675 * config/avr/avr.c (avr_attribute_table): Likewise.
14676 * config/crx/crx.c (crx_attribute_table): Likewise.
14677 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
14678 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
14679 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
14680 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
14681 * config/sh/sh.c (sh_attribute_table): Likewise.
14682 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
14683 * config/spu/spu.c (spu_attribute_table): Likewise.
14684 * config/v850/v850.c (v850_attribute_table): Likewise.
14685
14686 * config/alpha/alpha.c (vms_attribute_table): Make static.
14687 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
14688 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
14689 * config/mips/mips.c (mips_attribute_table): Likewise.
14690
14691 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
14692 $(SYSTEM_H).
14693 (cc1-checksum.o): Likewise.
14694
14695 2009-06-03 Steve Ellcey <sje@cup.hp.com>
14696
14697 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
14698
14699 2009-06-03 Jakub Jelinek <jakub@redhat.com>
14700
14701 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
14702 insn if it is changing sp. Use gen_add3_insn instead of
14703 conditionally gen_addsi3 and gen_adddi3.
14704 (offset_below_red_zone_p): New static inline function.
14705 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
14706 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
14707 * config/rs6000/ppc-asm.h: Include auto-host.h.
14708 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
14709 CFI_RESTORE): Define.
14710 * config/rs6000/crtresxgpr.asm: Add unwind info.
14711 * config/rs6000/crtresxfpr.asm: Likewise.
14712 * config/rs6000/crtresgpr.asm: Likewise.
14713 * config/rs6000/crtresfpr.asm: Likewise.
14714 * config/rs6000/crtsavgpr.asm: Likewise.
14715 * config/rs6000/crtsavfpr.asm: Likewise.
14716
14717 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
14718 argument of DWARF2_FRAME_REG_OUT macros.
14719
14720 2009-06-03 Julian Brown <julian@codesourcery.com>
14721
14722 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
14723 words or less (including TImode) in core registers.
14724
14725 2009-06-03 Richard Guenther <rguenther@suse.de>
14726
14727 PR middle-end/40328
14728 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
14729
14730 2009-06-03 Andrey Belevantsev <abel@ispras.ru>
14731
14732 * statistics.c (statistics_counter_event): Do not record event
14733 in pass dump if its number == -1.
14734 (curr_statistics_hash): Add assert that we never get passes
14735 with static number == -1.
14736
14737 2009-06-03 Richard Guenther <rguenther@suse.de>
14738 Andrey Belevantsev <abel@ispras.ru>
14739
14740 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
14741 non-BLKmode arrays addressable.
14742
14743 2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
14744
14745 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
14746 * config/m68k/m68k.h: ... here.
14747
14748 2009-06-03 Martin Jambor <mjambor@suse.cz>
14749
14750 PR tree-optimization/40323
14751 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
14752 assignment.
14753
14754 2009-06-03 Richard Guenther <rguenther@suse.de>
14755
14756 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
14757 consistently.
14758
14759 2009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
14760
14761 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
14762 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
14763 JUMP_TABLE_DATA_P where applicable.
14764 * config/sh/sh.c: Ditto.
14765 * config/sh/sh.h: Ditto.
14766 * config/sh/sh.md: Ditto.
14767 * config/sh/symbian.c: Ditto.
14768
14769 2009-06-03 Uros Bizjak <ubizjak@gmail.com>
14770
14771 * config/i386/driver-i386.c (describe_cache): Optimize
14772 concatenation of strings. Use snprintf instead of sprintf.
14773 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
14774 target when not compiling with GCC.
14775
14776 2009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
14777
14778 * config/sh/sh.c: Revert last change.
14779 (sh_expand_epilogue): Emit a blockage insn before the frame
14780 pointer adjustment unconditionally.
14781
14782 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14783
14784 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
14785 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
14786 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
14787 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
14788 to COLLECT_GCC_OPTIONS.
14789
14790 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14791
14792 * collect2.c (target_system_root): New variable.
14793 (main): Handle --sysroot=.
14794 (ignore_library): Strip the sysroot from the library path.
14795
14796 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14797
14798 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
14799 (collect2.o): Depend on collect2-aix.h.
14800 (collect2-aix.o): New rule.
14801 * collect2-aix.h: New file.
14802 * collect2-aix.c: Likewise.
14803 * collect2.c: Include collect2-aix.h. Don't undefine
14804 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
14805 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
14806 Use TARGET_AIX_VERSION instead of _AIX51.
14807 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
14808 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
14809 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
14810 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
14811 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
14812
14813 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14814
14815 * collect2.c (ignore_library): Avoid premature post-increment
14816 and null deference.
14817
14818 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14819
14820 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
14821 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
14822 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
14823 CROSS_DIRECTORY_STRUCTURE too.
14824 (LINK_LIBG_SPEC): Likewise.
14825 (LIB_SPEC): Add %R to sysroot paths.
14826 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
14827 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
14828 * config/rs6000/aix51.h: As for aix43.h.
14829 * config/rs6000/aix52.h: Likewise.
14830 * config/rs6000/aix53.h: Likewise.
14831 * config/rs6000/aix61.h: Likewise.
14832 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
14833 to the beginning of sysroot paths.
14834
14835 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14836
14837 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
14838 INSN_LISTs that are out of the REG_NOTE range.
14839
14840 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14841
14842 * loop-unroll.c (struct iv_to_split): Add pointer to next.
14843 (struct var_to_expand): Likewise.
14844 (struct opt_info): Add head and tail for linked lists of the above.
14845 (analyze_insn_to_expand_var): Initialize next.
14846 (analyze_iv_to_split_insn): Likewise.
14847 (analyze_insns_in_loop): Create linked lists.
14848 (allocate_basic_variable): Simplify for use without hash table.
14849 (insert_var_expansion_initialization): Likewise, make it type-safer.
14850 (combine_var_copies_in_loop_exit): Likewise.
14851 (apply_opt_in_copies): Walk lists rather than hash tables.
14852 (release_var_copies): Simplified and inlined by hand into...
14853 (free_opt_info): ... this function.
14854
14855 2009-06-02 Richard Guenther <rguenther@suse.de>
14856
14857 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
14858 for field decls.
14859
14860 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14861
14862 * cfgexpand.c (gimple_expand_cfg): Discard the source location
14863 only for builtins that are not overridden.
14864
14865 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14866
14867 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
14868 label string.
14869
14870 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14871
14872 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
14873
14874 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14875
14876 * combine.c (move_deaths): Compare LUIDs within the same BB only.
14877
14878 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14879
14880 * common.opt (fdump-unnumbered-links): New.
14881 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
14882 * print-rtl.c (flag_dump_unnumbered_links): New.
14883 (print_rtx): Test it.
14884
14885 2009-06-02 Richard Earnshaw <rearnsha@arm.com>
14886
14887 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
14888 push/pop multiple to 8-byte alignment.
14889
14890 2009-06-01 Jakub Jelinek <jakub@redhat.com>
14891
14892 * config/i386/i386.c (queued_cfa_restores): New static variable.
14893 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
14894 functions.
14895 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
14896 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
14897 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
14898 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
14899 note unconditionally.
14900 (ix86_emit_restore_regs_using_mov): Likewise.
14901 (ix86_emit_restore_sse_regs_using_mov): Likewise.
14902 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
14903 it through to ix86_emit_restore_reg_using_pop.
14904 (ix86_emit_leave): Add RED_OFFSET argument. Call
14905 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
14906 instead of adding REG_CFA_OFFSET note unconditionally.
14907 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
14908 the above functions. Call ix86_add_queued_cfa_restore_notes when
14909 needed.
14910
14911 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
14912 force output of the label even for dwarf2out_do_cfi_asm.
14913 (add_fde_cfi): If -g2 and above and cfi might change CFA,
14914 force creation of CFI label and chain DW_CFA_set_loc jumping to it
14915 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
14916 caller.
14917 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
14918 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
14919 dwarf2out_cfi_label callers.
14920 * tree.h (dwarf2out_cfi_label): Adjust prototype.
14921 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
14922 Adjust dwarf2out_cfi_label callers.
14923 * config/vax/vax.c (vax_output_function_prologue): Likewise.
14924
14925 * config/i386/i386.h (struct machine_cfa_state,
14926 struct machine_function): Guard with ifndef USED_FOR_TARGET
14927 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
14928
14929 PR other/40024
14930 * emutls.c (__emutls_get_address): Change arr->size to mean number
14931 of allocated arr->data entries instead of # of slots + 1.
14932
14933 PR middle-end/40316
14934 * recog.c (peep2_reinit_state): New function.
14935 (peephole2_init_state): Use it at the end of a basic block and also
14936 when seeing a RTX_FRAME_RELATED_P insn.
14937
14938 2009-06-01 Steve Ellcey <sje@cup.hp.com>
14939
14940 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
14941 fixuns_truncrfdi2): New.
14942 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
14943 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
14944 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
14945 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
14946 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
14947 *recip_approx): Remove.
14948 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
14949 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
14950 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
14951 move to div.md.
14952 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
14953 setf_exp_rf): New.
14954
14955 2009-06-01 Ian Lance Taylor <iant@google.com>
14956
14957 * attribs.c (register_attribute): Use CONST_CAST.
14958 * collect2.c (main): Use CONST_CAST2.
14959 (scan_prog_file): Likewise.
14960 * gcc.c (process_command, main): Likewise.
14961 * toplev.c (toplev_main): Likewise.
14962
14963 * c-typeck.c (handle_warn_cast_qual): New static function,
14964 partially broken out of build_c_cast.
14965 (build_c_cast): Call handle_warn_cast_qual.
14966 * doc/invoke.texi (Warning Options): Document new effect of
14967 -Wcast-qual.
14968
14969 2009-06-01 Aldy Hernandez <aldyh@redhat.com>
14970
14971 * diagnostic.c (diagnostic_build_prefix): Always print columns.
14972 (diagnostic_report_current_module): Print columns.
14973 * common.opt (flag_show_column): Enable by default.
14974
14975 2009-06-01 Luis Machado <luisgpm@br.ibm.com>
14976
14977 * alias.c (find_base_term): Check for NULL term before returning.
14978
14979 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
14980
14981 Revert due to PR40320:
14982 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
14983 * calls.c (emit_library_call_value_1): Don't force_operand for move
14984 and push insns.
14985
14986 2009-06-01 Olivier Hainque <hainque@adacore.com>
14987 Eric Botcazou <ebotcazou@adacore.com>
14988
14989 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
14990 to be processed as a bitfield for constructor output purposes.
14991 * output.h (initializer_constant_valid_for_bitfield_p): Declare
14992 new function.
14993 * varasm.c (oc_local_state): New type, output_constructor
14994 local state to support communication with helpers.
14995 (oc_outer_state): New type, output_constructor outer state of
14996 relevance in recursive calls.
14997 (output_constructor_array_range): New output_constructor helper,
14998 extracted code for an array range element.
14999 (output_constructor_regular_field): New output_constructor helper,
15000 extracted code for an element that is not a bitfield.
15001 (output_constructor_bitfield): New output_constructor helper,
15002 extracted code for a bitfield element. Accept an OUTER state
15003 argument for recursive processing. Recurse on record or array
15004 CONSTRUCTOR values, possibly past noop conversions.
15005 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
15006 VALUE is a valid constant-valued expression for use in a static
15007 bit-field initializer.
15008 (output_constructor): Rework to use helpers. Accept and honor an
15009 OUTER state argument for recursive calls. Return total size. Be
15010 prepared for nested constructors initializing bitfields.
15011 (output_constant): Feed OUTER in calls to output_constructor.
15012
15013 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
15014
15015 * calls.c (emit_library_call_value_1): Don't force_operand for move
15016 and push insns.
15017
15018 2009-06-01 Nick Clifton <nickc@redhat.com>
15019
15020 * doc/invoke.texi (IA-64 Options): Fix typo.
15021
15022 2009-06-01 Ira Rosen <irar@il.ibm.com>
15023
15024 PR tree-optimization/39129
15025 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
15026 printed message.
15027 (vect_do_peeling_for_loop_bound): Use
15028 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
15029 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
15030 (vect_loop_versioning): Likewise.
15031 (vect_create_cond_for_alias_checks): Fix indentation.
15032 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
15033 macros.
15034 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
15035 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
15036 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
15037 "control flow in loop".
15038 (vect_estimate_min_profitable_iters): Use
15039 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
15040 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
15041 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
15042 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
15043 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
15044 statement belongs to a group of strided accesses with the exact code
15045 check.
15046 (vectorizable_load): Likewise.
15047 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
15048 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
15049
15050 2009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
15051
15052 * config/freebsd-stdint.h: New file.
15053 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
15054 Add freebsd-stdint.h to tm_file.
15055
15056 2009-06-01 Richard Earnshaw <rearnsha@arm.com>
15057
15058 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
15059 (thumb2_extendhidi2): Likewise.
15060
15061 2009-05-31 Ian Lance Taylor <iant@google.com>
15062
15063 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
15064
15065 2009-05-31 Ian Lance Taylor <iant@google.com>
15066
15067 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
15068 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
15069 (ipa-reference.o): Depend upon gt-ipa-reference.h.
15070
15071 2009-05-31 Jason Merrill <jason@redhat.com>
15072
15073 * tree-pretty-print.c (print_call_name): Take the callee, not the
15074 call itself. Make non-static. Use dump_function_name for functions.
15075 (dump_generic_node): Adjust.
15076 * diagnostic.h: Declare print_call_name.
15077 * gimple-pretty-print.c (dump_gimple_call): Use it.
15078
15079 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
15080
15081 * config/sh/sh.md (ashldi3_std): New define_expand.
15082 (ashldi3): Use it.
15083
15084 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
15085
15086 PR target/40313
15087 * config/sh/sh.c: Include debug.h.
15088 (sh_expand_epilogue): Emit a blockage insn before the frame
15089 pointer adjustment also when dwarf2out_do_frame returns true.
15090
15091 2009-05-31 Richard Earnshaw <rearnsha@arm.com>
15092
15093 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
15094 (thumb2_extendqidi2): New pattern.
15095
15096 2009-05-31 Ira Rosen <irar@il.ibm.com>
15097
15098 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
15099 mark phis for renaming.
15100 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
15101 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
15102 Call mark_sym_for_renaming.
15103 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
15104 * tree-vect-loop.c (vect_transform_loop): Remove
15105 vect_memsyms_to_rename initialization and a call to
15106 mark_set_for_renaming.
15107
15108 2009-05-31 Jakub Jelinek <jakub@redhat.com>
15109
15110 PR middle-end/40304
15111 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
15112 frame related even if !set_cfa && style < 0.
15113
15114 2009-05-30 Kai Tietz <kai.tietz@onevision.com>
15115
15116 * config/i386/mingw-tls.c: New file.
15117 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
15118 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
15119 defining _WIN32 but not __CYGWIN__.
15120
15121 2009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15122
15123 * configure.ac: Add MPC support.
15124
15125 * config.in, configure: Regenerate.
15126
15127 2009-05-29 Richard Henderson <rth@redhat.com>
15128
15129 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
15130 NOTE_INSN_BASIC_BLOCK.
15131 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
15132 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
15133 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
15134 to be deleted.
15135 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
15136 add in_use field.
15137 (add_cfi): Disable check redefining cfa away from drap.
15138 (lookup_cfa_1): Add remember argument; handle remember/restore.
15139 (lookup_cfa): Pass remember argument.
15140 (cfa_remember): New.
15141 (compute_barrier_args_size_1): Remove sibcall check.
15142 (dwarf2out_frame_debug_def_cfa): New.
15143 (dwarf2out_frame_debug_adjust_cfa): New.
15144 (dwarf2out_frame_debug_cfa_offset): New.
15145 (dwarf2out_frame_debug_cfa_register): New.
15146 (dwarf2out_frame_debug_cfa_restore): New.
15147 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
15148 (dwarf2out_begin_epilogue): New.
15149 (dwarf2out_frame_debug_restore_state): New.
15150 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
15151 DW_CFA_restore_state.
15152 (output_cfi_directive): Likewise.
15153 (convert_cfa_to_fb_loc_list): Likewise.
15154 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
15155 * dwarf2out.h: Update.
15156 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
15157 (copy_insn_1): Early out for null.
15158 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
15159 and dwarf2out_frame_debug_restore_state.
15160 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
15161 (prologue_insn_hash, epilogue_insn_hash): New.
15162 (free_after_compilation): Adjust freeing accordingly.
15163 (record_insns): Create hash table if needed; push insns into
15164 hash instead of array.
15165 (maybe_copy_epilogue_insn): New.
15166 (contains): Search hash table instead of array.
15167 (sibcall_epilogue_contains): Remove.
15168 (thread_prologue_and_epilogue_insns): Split eh_return insns
15169 and mark them as epilogues.
15170 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
15171 scanning in terms of basic blocks.
15172 * insn-notes.def (CFA_RESTORE_STATE): New.
15173 * jump.c (returnjump_p_1): Accept EH_RETURN.
15174 (eh_returnjump_p_1, eh_returnjump_p): New.
15175 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
15176 CFA_REGISTER, CFA_RESTORE): New.
15177 * rtl.def (EH_RETURN): New.
15178 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
15179
15180 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
15181 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
15182
15183 * config/i386/i386.c (gen_push): Update cfa state.
15184 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
15185 add a CFA_ADJUST_CFA note.
15186 (ix86_dwarf_handle_frame_unspec): Remove.
15187 (ix86_expand_prologue): Update cfa state.
15188 (ix86_emit_restore_reg_using_pop): New.
15189 (ix86_emit_restore_regs_using_pop): New.
15190 (ix86_emit_leave): New.
15191 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
15192 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
15193 * config/i386/i386.h (struct machine_cfa_state): New.
15194 (ix86_cfa_state): New.
15195 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
15196 (eh_return_internal): Merge from eh_return_<mode>,
15197 use eh_return rtx, split w/ epilogue.
15198
15199 2009-05-29 Ian Lance Taylor <iant@google.com>
15200
15201 * builtins.c (validate_gimple_arglist): Don't use va_arg with
15202 enum type.
15203 * calls.c (emit_library_call_value_1): Likewise.
15204
15205 * c-typeck.c (c_build_va_arg): New function.
15206 * c-tree.h (c_build_va_arg): Declare.
15207 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
15208 instead of build_va_arg.
15209
15210 2009-05-29 Eric Botcazou <ebotcazou@adacore.com>
15211
15212 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
15213 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
15214 (ptr_difference_cost): Use affine combinations to compute it.
15215 (difference_cost): Likewise.
15216 (get_computation_cost_at): Compute more accurate cost for addresses
15217 if the ratio is a multiplier allowed in addresses.
15218 For non-addresses, consider that an additional offset or symbol is
15219 added only once.
15220
15221 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15222
15223 * config/i386/i386.c (ix86_decompose_address): Avoid useless
15224 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
15225
15226 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
15227 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
15228 (prefix_rex): For UNIT_MMX don't imply the prefix by default
15229 if MODE_DI.
15230 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
15231 to 1 for TYPE_SSE{IADD1,CVT1}.
15232 (prefix_vex_imm8): Removed.
15233 (length_vex): Only pass 1 as second argument to
15234 ix86_attr_length_vex_default if prefix_extra is 0.
15235 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
15236 (length): For prefix vex computation use length_immediate
15237 attribute instead of prefix_vex_imm8.
15238 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
15239 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
15240 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
15241 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
15242 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
15243 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
15244 a space in between the operands.
15245 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
15246 if one operand is 0xff and the other one si, di, bp or sp.
15247 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
15248 other one si, di, bp or sp.
15249 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
15250 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
15251 type and mode attributes.
15252 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
15253 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
15254 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
15255 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
15256 prefix_data16 attribute iff MODE_DF.
15257 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
15258 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
15259 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
15260 constm128_operand in length_immediate computation.
15261 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
15262 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
15263 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
15264 length_immediate attribute to 1.
15265 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
15266 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
15267 for certain alternatives.
15268 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
15269 prefix_data16 attribute if MODE_V1DF.
15270 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
15271 length_immediate to 1.
15272 (set_got_rex64, set_rip_rex64): Remove length attribute, set
15273 length_address to 4, set mode attribute to MODE_DI.
15274 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
15275 (fxam<mode>2_i387): Set length attribute to 4.
15276 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
15277 *prefetch_3dnow_rex): Override length_address attribute.
15278 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
15279 attributes.
15280 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
15281 (constm128_operand): Removed.
15282 * config/i386/i386.c (memory_address_length): For
15283 disp && !index && !base in 64-bit mode account for SIB byte if
15284 print_operand_address can't optimize disp32 into disp32(%rip)
15285 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
15286 for fs: or gs: segment.
15287 (ix86_attr_length_immediate_default): When checking if shortform
15288 is possible, truncate immediate to the length of the non-shortened
15289 immediate.
15290 (ix86_attr_length_address_default): Ignore MEM_P operands
15291 with X constraint.
15292 (ix86_attr_length_vex_default): Only check for DImode on
15293 GENERAL_REG_P operands.
15294 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
15295 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
15296 (sse_cvttps2pi): Clear prefix_rep attribute.
15297 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
15298 attribute.
15299 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
15300 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
15301 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
15302 iff operand 2 is const_int_operand.
15303 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
15304 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
15305 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
15306 instead of vex.
15307 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
15308 prefix_data16.
15309 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
15310 prefix_data16 attribute for movlpd and movhpd instructions.
15311 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
15312 length_immediate for shufpd instruction.
15313 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
15314 (avx_cmpp<avxmodesuffixf2c><mode>3,
15315 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
15316 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
15317 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
15318 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
15319 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
15320 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
15321 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
15322 prefix_data16 attribute for the first alternative to 1.
15323 (*avx_loadlps): Override length_immediate for the first alternative.
15324 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
15325 attributes for second alternative.
15326 (*vec_concatv2sf_sse4_1): Override length_immediate and
15327 prefix_data16 attributes for second alternative.
15328 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
15329 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
15330 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
15331 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
15332 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
15333 prefix_data16 and length_immediate to 1.
15334 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
15335 to 1.
15336 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
15337 prefix_extra attribute for variants that don't have 0f prefix alone.
15338 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
15339 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
15340 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
15341 *sse4_1_pextrd): Set length_immediate to 1.
15342 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
15343 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
15344 to 1.
15345 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
15346 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
15347 length_immediate to 1 for second alternative.
15348 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
15349 prefix_extra and length_immediate attributes for the first
15350 alternative.
15351 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
15352 first alternative.
15353 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
15354 to 1 for the first and third alternative.
15355 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
15356 alternative.
15357 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
15358 attribute.
15359 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
15360 attribute to 0.
15361 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
15362 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
15363 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
15364 *avx_psign<mode>3): Set prefix_extra attribute to 1.
15365 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
15366 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
15367 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
15368 ssse3_psign<mode>3): Override prefix_rex attribute.
15369 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
15370 (ssse3_palignrti): Override length_immediate to 1.
15371 (ssse3_palignrdi): Override length_immediate to 1, override
15372 prefix_rex attribute.
15373 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
15374 (sse4a_extrqi): Override length_immediate to 2.
15375 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
15376 (sse4a_insertq): Override prefix_data16 to 0.
15377 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
15378 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
15379 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
15380 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
15381 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
15382 and length_immediate to 1.
15383 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
15384 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
15385 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
15386 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
15387 and length_immediate to 1.
15388 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
15389 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
15390 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
15391 avx_ptest256): Override prefix_extra to 1.
15392 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
15393 Override prefix_data16 and length_immediate to 1.
15394 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
15395 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
15396 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
15397 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
15398 prefix_data16 to 0 and prefix_extra to 2.
15399 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
15400 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
15401 attribute.
15402 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
15403 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
15404 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
15405 and prefix_extra to 2.
15406 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
15407 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
15408 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
15409 avx_vpermilvar<mode>3,
15410 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
15411 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
15412 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
15413 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
15414 Override prefix_extra to 1.
15415 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
15416 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
15417 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
15418 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
15419 prefix_extra and length_immediate to 1.
15420 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
15421 modrm to 0.
15422 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
15423 to 1 for the first alternative.
15424 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
15425 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
15426 cases.
15427 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
15428 *movv2sf_internal_avx, *movv2sf_internal): Override
15429 prefix_rep attribute for certain alternatives.
15430 (*mov<mode>_internal): Override prefix_rep or prefix_data16
15431 attributes for certain alternatives.
15432 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
15433 attributes for certain alternatives.
15434 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
15435 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
15436 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
15437 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
15438 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
15439 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
15440 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
15441 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
15442 length_immediate to 1 if operand 2 is const_int_operand.
15443 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
15444 *vec_extractv2si_1): Set length_immediate attribute to 1.
15445 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
15446 using old 3DNOW insn rather than SSE/3DNOW_A.
15447 (mmx_emms, mmx_femms): Clear modrm attribute.
15448
15449 2009-05-29 Martin Jambor <mjambor@suse.cz>
15450
15451 * tree-sra.c: New implementation of SRA.
15452
15453 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
15454 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
15455 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
15456 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
15457 (SRA_MAX_STRUCTURE_COUNT): Removed.
15458 (SRA_FIELD_STRUCTURE_RATIO): Removed.
15459 * doc/invoke.texi (sra-max-structure-size): Removed.
15460 (sra-field-structure-ratio): Removed.
15461
15462 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15463
15464 PR middle-end/40291
15465 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
15466 before expansion.
15467
15468 2009-05-29 Andrey Belevantsev <abel@ispras.ru>
15469
15470 PR rtl-optimization/40101
15471 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
15472 seqno. Adjust comment.
15473 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
15474 inserting bookkeeping before a jump, the jump is not scheduled.
15475 When no positive seqno found, provide a value. Add comment.
15476
15477 2009-05-29 Richard Guenther <rguenther@suse.de>
15478
15479 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
15480 short-cutting on the first component.
15481
15482 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15483
15484 PR middle-end/39958
15485 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
15486 for trees other than decls/types.
15487
15488 2009-05-29 Richard Guenther <rguenther@suse.de>
15489
15490 * tree-ssa-operands.c (get_expr_operands): Do not handle
15491 INDIRECT_REFs in the handled-component case. Remove
15492 unused get_ref_base_and_extent case.
15493 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
15494 tree_low_cst and host_integerp where possible.
15495 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
15496 codes for equivalence.
15497 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
15498
15499 2009-05-29 David Billinghurst <billingd@gcc.gnu.org>
15500
15501 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
15502 to tmake_file for i[34567]86-*-cygwin*.
15503
15504 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15505
15506 PR target/40017
15507 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
15508 (altivec_categorize_keyword, init_vector_keywords,
15509 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
15510 similar to bool.
15511
15512 2009-05-29 Kai Tietz <kai.tietz@onevision.com>
15513
15514 * tree.c (handle_dll_attribute): Check if node is
15515 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
15516
15517 2009-05-29 Richard Earnshaw <rearnsha@arm.com>
15518
15519 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
15520 component.
15521 (thumb2_zero_extendqidi2): Likewise.
15522
15523 2009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
15524
15525 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
15526 instead of gen_movrt.
15527 * config/sh/sh.md (movrt): Remove.
15528
15529 2009-05-28 Steve Ellcey <sje@cup.hp.com>
15530
15531 * doc/invoke.texi (IA-64 Options):
15532 Add -msdata, -mfused-madd, -mno-inline-float-divide,
15533 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
15534 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
15535 -msched-prefer-non-control-spec-insns,
15536 -msched-stop-bits-after-every-cycle,
15537 -msched-count-spec-in-critical-path,
15538 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
15539 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
15540 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
15541 and -msched-spec-verbose.
15542
15543 2009-05-28 Joseph Myers <joseph@codesourcery.com>
15544
15545 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
15546 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
15547 error if used.
15548 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
15549
15550 2009-05-28 Richard Guenther <rguenther@suse.de>
15551
15552 * tree-ssa-alias.c (ao_ref_init): New function.
15553 (ao_ref_base): Likewise.
15554 (ao_ref_base_alias_set): Likewise.
15555 (ao_ref_alias_set): Likewise.
15556 (refs_may_alias_p_1): Change signature.
15557 (refs_may_alias_p): Adjust.
15558 (refs_anti_dependent_p): Likewise.
15559 (refs_output_dependent_p): Likewise.
15560 (call_may_clobber_ref_p_1): Change signature.
15561 (call_may_clobber_ref_p): Adjust.
15562 (stmt_may_clobber_ref_p_1): New function split out from ...
15563 (stmt_may_clobber_ref_p): ... here.
15564 (maybe_skip_until): Adjust signature.
15565 (get_continuation_for_phi): Likewise.
15566 (walk_non_aliased_vuses): Likewise.
15567 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
15568 (ao_ref_init): Declare.
15569 (ao_ref_base): Likewise.
15570 (ao_ref_alias_set): Likewise.
15571 (stmt_may_clobber_ref_p_1): Likewise.
15572 (walk_non_aliased_vuses): Adjust.
15573 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
15574 (get_ref_from_reference_ops): remove.
15575 (vn_reference_lookup_2): Adjust signature.
15576 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
15577 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
15578 (vn_reference_lookup): Adjust.
15579 (vn_reference_insert): Likewise.
15580 (vn_reference_insert_pieces): Adjust signature.
15581 (visit_reference_op_call): Adjust.
15582 * tree-ssa-pre.c (get_expr_type): Simplify.
15583 (phi_translate_1): Adjust.
15584 (compute_avail): Likewise.
15585 (translate_vuse_through_block): Do not re-build trees.
15586 (value_dies_in_block_x): Likewise.
15587 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
15588 fields.
15589 (vn_reference_lookup_pieces): Adjust declaration.
15590 (vn_reference_insert_pieces): Likewise.
15591
15592 2009-05-28 Benjamin Kosnik <bkoz@redhat.com>
15593
15594 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
15595 with checking disabled.
15596
15597 2009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
15598
15599 PR target/37216
15600
15601 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
15602 macro definition for support of three-operand format aligned
15603 .comm directive in assembler on cygwin/pe/mingw target OS.
15604 * configure: Regenerate.
15605 * config.h: Regenerate.
15606
15607 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
15608 aligned form of .comm directive if -mpe-aligned-commons is in effect.
15609 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
15610
15611 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
15612 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
15613
15614 2009-05-28 Ira Rosen <irar@il.ibm.com>
15615
15616 PR tree-optimization/40254
15617 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
15618 in analysis of basic blocks.
15619
15620 2009-05-28 Adam Nemet <anemet@caviumnetworks.com>
15621
15622 PR middle-end/33699
15623 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
15624 * target-def.h (TARGET_CONST_ANCHOR): New macro.
15625 (TARGET_INITIALIZER): Use it.
15626 * cse.c (CHEAPER): Move it up to the other macros.
15627 (insert): Rename this ...
15628 (insert_with_costs): ... to this. Add cost parameters. Update
15629 function comment.
15630 (insert): New function. Call insert_with_costs.
15631 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
15632 find_reg_offset_for_const, try_const_anchors): New functions.
15633 (cse_insn): Call try_const_anchors. Adjust cost of src_related
15634 when using a const-anchor. Call insert_const_anchors.
15635 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
15636 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
15637
15638 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
15639
15640 * tree-inline.c (remap_decls): Enable nonlocalized variables
15641 when not optimizing.
15642
15643 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
15644
15645 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
15646 Simplify other tests involving optimize.
15647
15648 2009-05-27 Tom Tromey <tromey@redhat.com>
15649
15650 * unwind-dw2.c (_Unwind_DebugHook): New function.
15651 (uw_install_context): Call _Unwind_DebugHook.
15652
15653 2009-05-27 Tom Tromey <tromey@redhat.com>
15654
15655 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
15656
15657 2009-05-27 Ian Lance Taylor <iant@google.com>
15658
15659 * Makefile.in (LINKER, LINKER_FLAGS): Define.
15660 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
15661 (ALL_LINKERFLAGS): Define.
15662 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
15663 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
15664 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
15665 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
15666 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
15667 $(LINKER_FOR_BUILD).
15668 (build/gcov-iov$(build_exeext)): Likewise.
15669
15670 2009-05-27 Julian Brown <julian@codesourcery.com>
15671
15672 * gcse.c (target.h): Include.
15673 (can_assign_to_reg_without_clobbers_p): Check that the target allows
15674 copy of argument to a pseudo register.
15675
15676 2009-05-27 Diego Novillo <dnovillo@google.com>
15677
15678 * tree-ssa-live.c (dump_scope_block): Document arguments.
15679 (dump_scope_blocks): Document.
15680 (debug_scope_blocks): New.
15681 * tree-flow.h (debug_scope_blocks): Declare.
15682
15683 2009-05-21 Denis Chertykov <denisc@overta.ru>
15684
15685 * doc/contrib.texi (Contributors): Add myself to the list.
15686
15687 2009-05-27 Olivier Hainque <hainque@adacore.com>
15688
15689 * expr.c (target_align): New function. Alignment the TARGET of an
15690 assignment may be assume to have.
15691 (highest_pow2_factor_for_target): Use it instead of relying on
15692 immediate tree attributes of TARGET, not necessarily honored when
15693 intermediate bitfields are involved.
15694
15695 2009-05-27 H.J. Lu <hongjiu.lu@intel.com>
15696
15697 PR target/40266
15698 * config/i386/driver-i386.c (host_detect_local_cpu): Support
15699 AVX, SSE4, AES, PCLMUL and POPCNT.
15700
15701 2009-05-27 Diego Novillo <dnovillo@google.com>
15702
15703 * tree-pretty-print.c (dump_location): New.
15704 (dump_generic_node): Call it.
15705 Factor code to handle BLOCK nodes ...
15706 (dump_block_node): ... here.
15707
15708 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
15709
15710 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
15711 with it.
15712 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
15713 included.
15714 * gcc-plugin.h: Include config.h and system.h.
15715 (IN_GCC): Define if not defined.
15716
15717 2009-05-27 Hans-Peter Nilsson <hp@axis.com>
15718
15719 PR middle-end/40249
15720 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
15721 with -fno-inline.
15722
15723 2009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
15724
15725 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
15726 applicable.
15727 * config/m32r/m32r.h: Ditto.
15728 * config/m32r/m32r.md: Ditto.
15729 * config/m32r/predicates.md: Ditto.
15730
15731 2009-05-27 Alexandre Oliva <aoliva@redhat.com>
15732
15733 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
15734
15735 2009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
15736
15737 * doc/plugins.texi
15738 (Loading plugins): typo.
15739 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
15740 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
15741 (Interacting with the GCC Garbage Collector): Added new section.
15742 (Giving information about a plugin): Added new section for
15743 PLUGIN_INFO.
15744 * ggc.h (ggc_register_root_tab): Added declaration.
15745 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
15746 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
15747 (register_callback): Improved comment in declaration.
15748 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
15749 (extra_root_vec) Added static variable for dynamic roots registration.
15750 (ggc_register_root_tab) Added new routine.
15751 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
15752 PLUGIN_GGC_MARKING event.
15753 * ggc-zone.c: Include plugin.h.
15754 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
15755 * ggc-page.c: Include plugin.h.
15756 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
15757 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
15758 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
15759 (register_callback): check lack of callbacks for
15760 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
15761 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
15762 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
15763 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
15764 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
15765 dependency on plugin.h.
15766 (plugin.o): Added dependency on ggc.h...
15767
15768 2009-05-26 Richard Guenther <rguenther@suse.de>
15769
15770 PR middle-end/40248
15771 Revert
15772 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
15773 with mismatched comparison modes.
15774
15775 * expr.c (expand_expr_real_1): Expand the operand of a
15776 VIEW_CONVERT_EXPR in its natural mode.
15777
15778 2009-05-26 Ian Lance Taylor <iant@google.com>
15779
15780 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
15781 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
15782 (ALL_COMPILERFLAGS): Define.
15783 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
15784 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
15785 (collect2$(exeext), collect2.o): Likewise.
15786 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
15787 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
15788 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
15789 (libbackend.o, intl.o, cppdefault.o): Likewise.
15790 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
15791 (build/%.o): Use $(COMPILER_FOR_BUILD).
15792 (build/gen%$(build_exeext)): Likewise.
15793 (build/gcov-iov$(build_exeext)): LIkewise.
15794 * config/t-darwin (darwin.o): Use $(COMPILER).
15795 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
15796 * config/t-sol2 (sol2-c.o): Likewise.
15797 (sol2.o): Likewise.
15798 * config/t-vxworks (vxworks.o): Likewise.
15799 * config/x-darwin (host-darwin.o): Likewise.
15800 * config/x-hpux (host-hpux.o): Likewise.
15801 * config/x-linux (host-linux.o): Likewise.
15802 * config/x-solaris (host-solaris.o): Likewise.
15803 * config/alpha/x-alpha (driver-alpha.o): Likewise.
15804 * config/arm/t-arm (arm-c.o): Likewise.
15805 * config/arm/t-pe (pe.o): Likewise.
15806 * config/arm/t-wince-pe (pe.o): Likewise.
15807 * config/i386/t-cygming (winnt.o): Likewise.
15808 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
15809 * config/i386/t-cygwin (cygwin1.o): Likewise.
15810 (cygwin2.o): Likewise.
15811 * config/i386/t-i386 (i386-c.o): Likewise.
15812 * config/i386/t-interix (winnt.o): Likewise.
15813 * config/i386/t-netware (netware.o): Likewise.
15814 * config/i386/t-nwld (nwld.o): Likewise.
15815 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
15816 * config/i386/x-i386 (driver-i386.o): Likewise.
15817 * config/i386/x-cygwin (host-cygwin.o): Likewise.
15818 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
15819 * config/ia64/t-ia64 (ia64-c.o): Likewise.
15820 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
15821 * config/mips/x-native (driver-native.o): Likewise.
15822 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
15823 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
15824 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
15825 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
15826 * config/score/t-score-elf (score7.o): Likewise.
15827 (score3.o): Likewise.
15828 * config/sh/t-sh (sh-c.o): Likewise.
15829 * config/sh/t-symbian (sh-c.o): Likewise.
15830 (symbian.o): Likewise.
15831 * config/spu/t-spu-elf (spu-c.o): Likewise.
15832 * config/v850/t-v850 (v850-c.o): Likewise.
15833 * config/v850/t-v850e (v850-c.o): Likewise.
15834
15835 2009-05-26 Richard Guenther <rguenther@suse.de>
15836
15837 PR tree-optimization/40122
15838 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
15839 VECTOR_CSTs if possible.
15840 (fold_gimple_assign): Likewise.
15841
15842 2009-05-26 Richard Guenther <rguenther@suse.de>
15843
15844 PR middle-end/40252
15845 * fold-const.c (fold_binary): Use the correct types for building
15846 rotates.
15847
15848 2009-05-26 Richard Guenther <rguenther@suse.de>
15849
15850 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
15851 redundant calls to merge_alias_info.
15852 (bump_vector_ptr): Likewise.
15853 * tree-ssa-copy.c (merge_alias_info): Remove.
15854 (replace_exp_1): Remove call to merge_alias_info.
15855 (propagate_tree_value): Likewise.
15856 (fini_copy_prop): Propagate points-to info.
15857 * tree-flow.h (merge_alias_info): Remove.
15858
15859 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
15860
15861 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
15862
15863 2009-05-25 Jan Hubicka <jh@suse.cz>
15864
15865 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
15866 * cgraph.h (struct inline_summary): New filed self_wize,
15867 size_inlining_benefit, self_time and time_inlining_benefit.
15868 (struct cgraph_global_info): Replace insns by time ans size fields.
15869 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
15870 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
15871 (ipcp_update_callgraph): Do not touch function bodies.
15872 * ipa-inline.c: Include except.h
15873 (MAX_TIME): New constant.
15874 (overall_insns): Remove.
15875 (leaf_node_p): New.
15876 (overall_size, max_benefit): New static variables.
15877 (cgraph_estimate_time_after_inlining): New function.
15878 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
15879 (cgraph_clone_inlined_nodes): Update size.
15880 (cgraph_mark_inline_edge): Update size.
15881 (cgraph_estimate_growth): Use size info.
15882 (cgraph_check_inline_limits): Check size.
15883 (cgraph_default_inline_p): Likewise.
15884 (cgraph_edge_badness): Compute badness based on benefit and size cost.
15885 (cgraph_decide_recursive_inlining): Check size.
15886 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
15887 and times.
15888 (cgraph_decide_inlining): Likewise.
15889 (cgraph_decide_inlining_incrementally): Likewise; honor
15890 PARAM_EARLY_INLINING_INSNS.
15891 (likely_eliminated_by_inlining_p): New predicate.
15892 (estimate_function_body_sizes): New function.
15893 (compute_inline_parameters): Use it.
15894 * except.c (must_not_throw_labels): New function.
15895 * except.h (must_not_throw_labels): Declare.
15896 * tree-inline.c (init_inline_once): Kill inlining_weigths
15897 * tree-ssa-structalias.c: Avoid uninitialized warning.
15898 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
15899 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
15900 (PARAM_INLINE_CALL_COST): Remove.
15901 (PARAM_EARLY_INLINING_INSNS): New.
15902
15903 2009-05-25 Richard Guenther <rguenther@suse.de>
15904
15905 PR tree-optimization/36327
15906 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
15907 callback for reference translation or lookup at the point of may-defs.
15908 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
15909 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
15910 for union COMPONENT_REFs.
15911 (vn_reference_lookup_3): New callback. Lookup from memset
15912 and CONSTRUCTOR assignment, translate through struct copies.
15913 (vn_reference_lookup_pieces): Make sure to not free the
15914 passed operands array. Adjust walk_non_aliased_vuses call.
15915 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
15916 make sure we do not leak memory.
15917
15918 2009-05-25 Richard Guenther <rguenther@suse.de>
15919
15920 * tree-ssa-alias.h (dump_points_to_solution): Declare.
15921 * tree-inline.c (expand_call_inline): Reset the escaped and
15922 callused solutions.
15923 * tree-ssa-structalias.c (pass_build_ealias): New.
15924 * tree-pass.h (pass_build_ealias): Declare.
15925 * passes.c (init_optimization_passes): Add PTA during
15926 early optimizations.
15927 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
15928 and CALLUSED solutions.
15929 (dump_points_to_solution): New function, split out from ...
15930 (dump_points_to_info_for): ... here.
15931 * tree-parloops.c (parallelize_loops): Reset the escaped and
15932 callused solutions.
15933
15934 2009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15935
15936 PR bootstrap/40027
15937 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
15938 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
15939
15940 2009-05-25 Ira Rosen <irar@il.ibm.com>
15941
15942 PR tree-optimization/40238
15943 * tree-vect-stmts.c (vect_init_vector): Insert initialization
15944 statements after basic block's labels.
15945 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
15946 to free the allocated memory.
15947
15948 2009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
15949
15950 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
15951 return address with a USE.
15952
15953 2009-05-24 Richard Guenther <rguenther@suse.de>
15954
15955 PR middle-end/40233
15956 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
15957 array type from the main variant of the inner type.
15958
15959 2009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15960
15961 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
15962 definition to bool (from int) to un-break build.
15963 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
15964
15965 2009-05-24 Paolo Bonzini <bonzini@gnu.org>
15966
15967 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
15968 discard_stmt_changes): Delete.
15969 * tree-ssa-operands.c (scb_stack): Delete.
15970 (init_ssa_operands): Do not initialize it.
15971 (fini_ssa_operands): Do not free it.
15972 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
15973
15974 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
15975 update_stmt, remove the others. Fix comments.
15976 * tree-dfa.c (optimize_stack_restore): Likewise.
15977 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
15978 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
15979 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
15980 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
15981 Likewise.
15982 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
15983 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
15984 (dom_opt_finalize_block): Likewise, adjusting access to
15985 stmts_to_rescan.
15986 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
15987 (stmts_to_rescan): Change item type to gimple.
15988 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
15989
15990 2009-05-24 Ira Rosen <irar@il.ibm.com>
15991
15992 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
15993 * tree-pass.h (pass_slp_vectorize): New pass.
15994 * params.h (SLP_MAX_INSNS_IN_BB): Define.
15995 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
15996 * tree-vectorizer.c (timevar.h): Include.
15997 (user_vect_verbosity_level): Declare.
15998 (vect_location): Fix comment.
15999 (vect_set_verbosity_level): Update user_vect_verbosity_level
16000 instead of vect_verbosity_level.
16001 (vect_set_dump_settings): Add an argument. Ignore user defined
16002 verbosity if dump flags require higher level of verbosity. Print to
16003 stderr only for loop vectorization.
16004 (vectorize_loops): Update call to vect_set_dump_settings.
16005 (execute_vect_slp): New function.
16006 (gate_vect_slp): Likewise.
16007 (struct gimple_opt_pass pass_slp_vectorize): New.
16008 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
16009 access its members.
16010 (vec_info_for_bb): New function.
16011 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
16012 (VECTORIZATION_ENABLED): New macro.
16013 (SLP_ENABLED, SLP_DISABLED): Likewise.
16014 (vect_is_simple_use): Add bb_vec_info argument.
16015 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
16016 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
16017 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
16018 vect_schedule_slp, vect_analyze_slp): Likewise.
16019 (vect_analyze_stmt): Add slp_tree argument.
16020 (find_bb_location): Declare.
16021 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
16022 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
16023 (vect_analyze_loop_operations, vect_analyze_loop,
16024 get_initial_def_for_induction, vect_create_epilog_for_reduction,
16025 vect_finalize_reduction, vectorizable_reduction,
16026 vectorizable_live_operation, vect_transform_loop): Likewise.
16027 * tree-data-ref.c (dr_analyze_innermost): Update comment,
16028 skip evolution analysis if analyzing a basic block.
16029 (dr_analyze_indices): Likewise.
16030 (initialize_data_dependence_relation): Skip the test whether the
16031 object is invariant for basic blocks.
16032 (compute_all_dependences): Skip dependence analysis for data
16033 references in basic blocks.
16034 (find_data_references_in_stmt): Don't fail in case of invariant
16035 access in basic block.
16036 (find_data_references_in_bb): New function.
16037 (find_data_references_in_loop): Move code to
16038 find_data_references_in_bb and add a call to it.
16039 (compute_data_dependences_for_bb): New function.
16040 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
16041 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
16042 that STEP is 0.
16043 (vect_analyze_data_ref_dependence): Check for interleaving in case of
16044 unknown dependence in basic block and fail in case of dependence in
16045 basic block.
16046 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
16047 dependence instances from either loop or basic block vectorization
16048 info.
16049 (vect_compute_data_ref_alignment): Check if it is loop vectorization
16050 before calling nested_in_vect_loop_p.
16051 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
16052 dependence instances from either loop or basic block vectorization
16053 info.
16054 (vect_verify_datarefs_alignment): Likewise.
16055 (vect_enhance_data_refs_alignment): Adjust function calls.
16056 (vect_analyze_data_refs_alignment): Likewise.
16057 (vect_analyze_group_access): Fix printing. Skip different checks if
16058 DR_STEP is 0. Keep strided stores either in loop or basic block
16059 vectorization data structure. Fix indentation.
16060 (vect_analyze_data_ref_access): Fix comments, allow zero step in
16061 basic blocks.
16062 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
16063 dependence instances from either loop or basic block vectorization
16064 info.
16065 (vect_analyze_data_refs): Update comment. Call
16066 compute_data_dependences_for_bb to analyze basic blocks.
16067 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
16068 case of loop vectorization. In case of basic block vectorization use
16069 data-ref itself as a base.
16070 (vect_create_data_ref_ptr): In case of basic block vectorization:
16071 don't advance the pointer, add new statements before the current
16072 statement. Adjust function calls.
16073 (vect_supportable_dr_alignment): Support only aligned accesses in
16074 basic block vectorization.
16075 * common.opt (ftree-slp-vectorize): New flag.
16076 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
16077 (vect_pattern_recog_1): Likewise.
16078 * tree-vect-stmts.c (process_use): Likewise.
16079 (vect_init_vector): Add new statements in the beginning of the basic
16080 block in case of basic block SLP.
16081 (vect_get_vec_def_for_operand): Adjust function calls.
16082 (vect_finish_stmt_generation): Likewise.
16083 (vectorizable_call): Add assert that it is loop vectorization, adjust
16084 function calls.
16085 (vectorizable_conversion, vectorizable_assignment): Likewise.
16086 (vectorizable_operation): In case of basic block SLP, take
16087 vectorization factor from statement's type and skip the relevance
16088 check. Adjust function calls.
16089 (vectorizable_type_demotion): Add assert that it is loop
16090 vectorization, adjust function calls.
16091 (vectorizable_type_promotion): Likewise.
16092 (vectorizable_store): Check for outer loop only in case of loop
16093 vectorization. Adjust function calls. For basic blocks, skip the
16094 relevance check and don't advance pointers.
16095 (vectorizable_load): Likewise.
16096 (vectorizable_condition): Add assert that it is loop vectorization,
16097 adjust function calls.
16098 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
16099 that it is not reduction, get vector type, call only supported
16100 functions, skip loop specific parts.
16101 (vect_transform_stmt): Check for outer loop only in case of loop
16102 vectorization.
16103 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
16104 (vect_is_simple_use): Fix comment, add new argument, fix conditions
16105 for external definition.
16106 * passes.c (pass_slp_vectorize): New pass.
16107 * tree-vect-slp.c (find_bb_location): New function.
16108 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
16109 check for patterns only in loops.
16110 (vect_build_slp_tree): Add argument, adjust function calls, fail in
16111 case of multiple types in basic block SLP.
16112 (vect_mark_slp_stmts_relevant): New function.
16113 (vect_supported_load_permutation_p): Fix comment.
16114 (vect_analyze_slp_instance): Add argument. In case of basic block
16115 SLP, take vectorization factor from statement's type, check that
16116 unrolling factor is 1. Adjust function call. Save SLP instance in
16117 either loop or basic block vectorization structure. Return FALSE,
16118 if SLP failed.
16119 (vect_analyze_slp): Add argument. Get strided stores groups from
16120 either loop or basic block vectorization structure. Return FALSE
16121 if basic block SLP failed.
16122 (new_bb_vec_info): New function.
16123 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
16124 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
16125 (vect_schedule_slp): Add argument. Get SLP instances from either
16126 loop or basic block vectorization structure. Set vectorization factor
16127 to be 1 for basic block SLP.
16128 (vect_slp_transform_bb): New function.
16129 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
16130
16131 2009-05-23 Mark Mitchell <mark@codesourcery.com>
16132
16133 * final.c (shorten_branches): Do not align labels for jump tables.
16134 (final_scan_insn): Use JUMP_TABLE_DATA_P.
16135
16136 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
16137
16138 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
16139 Remove outdated reference to flow.c and fix nits.
16140 * doc/gccint.texi: Tweak RTL description.
16141 * doc/rtl.texi: Likewise.
16142
16143 2009-05-23 Denis Chertykov <chertykov@gmail.com>
16144
16145 * config/avr/avr.c: Change my email address.
16146 * config/avr/avr.h: Likewise.
16147 * config/avr/avr.md: Likewise.
16148 * config/avr/avr-protos.h: Likewise.
16149 * config/avr/libgcc.S: Likewise.
16150
16151 2009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
16152
16153 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
16154 (spu_split_load, spu_split_store): Change return type to int.
16155 (spu_split_convert): Declare.
16156 * config/spu/predicates.md (spu_mem_operand): Remove.
16157 (spu_mov_operand): Update.
16158 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
16159 * config/spu/spu.c (regno_aligned_for_load): Remove.
16160 (reg_aligned_for_addr, spu_expand_load): Define.
16161 (spu_expand_extv): Reimplement and handle MEM.
16162 (spu_expand_insv): Handle MEM.
16163 (spu_sched_reorder): Handle insn's with length 0.
16164 (spu_legitimate_address_p): Reimplement.
16165 (store_with_one_insn_p): Return TRUE for any mode with size
16166 larger than 16 bytes.
16167 (address_needs_split): Define.
16168 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
16169 operands.
16170 (spu_convert_move): Define.
16171 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
16172 (spu_split_store): Change all MEM's to TImode.
16173 (spu_init_expanders): Preallocate registers that correspond to
16174 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
16175 mark_reg_pointer.
16176 (spu_split_convert): Define.
16177 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
16178 (_move<mode>, _movdi, _movti): Update predicate and condition.
16179 (load, store): Change to define_split.
16180 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
16181 extend<mode>ti2.
16182 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
16183 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
16184 define_insn_and_split of lshr<mode>3.
16185 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
16186 (<v>ashr<mode>3_imm): Define.
16187 (extv, extzv, insv): Allow MEM operands.
16188 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
16189 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
16190 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
16191 (_spu_convert2): Change to define_insn_and_split and remove the
16192 corresponding define_peephole2.
16193 (stack_protect_set, stack_protect_test, stack_protect_test_si):
16194 Change predicates to memory_operand.
16195
16196 2009-05-22 Mark Mitchell <mark@codesourcery.com>
16197
16198 * config/arm/thumb2.md: Add 16-bit multiply instructions.
16199
16200 2009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
16201
16202 PR tree-optimization/40219
16203 * tree.c (iterative_hash_expr): Make sure the builtin function is
16204 a normal builtin function and not a front end or back end builtin
16205 before indexing into the built_in_decls array.
16206
16207 2009-05-22 Richard Guenther <rguenther@suse.de>
16208
16209 PR middle-end/38964
16210 * alias.c (write_dependence_p): Do not use TBAA for answering
16211 anti-dependence or output-dependence.
16212 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
16213 (emit_pointer_definition): Remove.
16214 (emit_alias_warning): Likewise.
16215 (find_what_var_points_to): Remove TBAA pruning code.
16216 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
16217 violations.
16218 (compute_points_to_sets): Remove code computing the set of
16219 dereferenced pointers.
16220 * tree-data-ref.c (dr_may_alias_p): Properly use the split
16221 oracle for querying anti and output dependencies.
16222 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
16223 if TBAA may be applied.
16224 (refs_anti_dependent_p): New function.
16225 (refs_output_dependent_p): Likewise.
16226 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
16227 (refs_output_dependent_p): Likewise.
16228 * doc/tree-ssa.texi (Memory model): New section.
16229 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
16230 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
16231 * cfgexpand.c (expand_gimple_basic_block): Do not handle
16232 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
16233 * expr.c (expand_expr_real_1): Likewise.
16234 * gimple-low.c (lower_stmt): Likewise.
16235 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
16236 (dump_gimple_cdt): Remove.
16237 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
16238 (gimple_size): Likewise.
16239 (walk_gimple_op): Likewise.
16240 (is_gimple_stmt): Likewise.
16241 (walk_stmt_load_store_addr_ops): Likewise.
16242 (gimple_build_cdt): Remove.
16243 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
16244 * gimple.h (gimple_cdt_new_type): Remove.
16245 (gimple_cdt_new_type_ptr): Likewise.
16246 (gimple_cdt_set_new_type): Likewise.
16247 (gimple_cdt_location): Likewise.
16248 (gimple_cdt_location_ptr): Likewise.
16249 (gimple_cdt_set_location): Likewise.
16250 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
16251 * tree-cfg.c (remove_useless_stmts_1): Do not handle
16252 GIMPLE_CHANGE_DYNAMIC_TYPE.
16253 (verify_types_in_gimple_stmt): Likewise.
16254 * tree-inline.c (estimate_num_insns): Likewise.
16255 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
16256 (copy_decl_to_var): Likewise.
16257 (copy_result_decl_to_var): Likewise.
16258 * tree-pretty-print.c (dump_generic_node): Do not handle
16259 CHANGE_DYNAMIC_TYPE_EXPR.
16260 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
16261 * tree-ssa-operands.c (get_expr_operands): Likewise.
16262 * tree-ssa-structalias.c (struct variable_info): Remove
16263 no_tbaa_pruning member.
16264 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
16265 (unify_nodes): Do not copy it.
16266 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
16267 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
16268 (set_uids_in_ptset): Do not check it.
16269 (find_what_var_points_to): Likewise.
16270 (compute_tbaa_pruning): Remove.
16271 (compute_points_to_sets): Do not call it.
16272 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
16273 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
16274 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
16275 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
16276 (DECL_NO_TBAA_P): Likewise.
16277 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
16278 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
16279 (expand_omp_atomic_pipeline): Do not set it.
16280 * print-tree.c (print_node): Do not dump it.
16281 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
16282 redundant check.
16283
16284 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
16285
16286 PR target/39856
16287 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
16288 for clobber.
16289
16290 2009-05-22 Mark Mitchell <mark@codesourcery.com>
16291
16292 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
16293 non-external.
16294
16295 2009-05-22 Ben Elliston <bje@au.ibm.com>
16296
16297 * Makefile.in (bversion.h, s-bversion): New targets.
16298 (TOPLEV_H): Add bversion.h.
16299 * toplev.h: Include "bversion.h".
16300 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
16301 the __format__ attribute only if compiling with the same version
16302 of GCC as the sources (the "build version").
16303
16304 2009-05-22 Ben Elliston <bje@au.ibm.com>
16305
16306 * c-format.c (handle_format_attribute): Fix comment typo.
16307
16308 2009-05-21 Steve Ellcey <sje@cup.hp.com>
16309
16310 PR target/37846
16311 * config/ia64/ia64.opt (mfused-madd): New.
16312 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
16313 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
16314 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
16315 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
16316 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
16317 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
16318 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
16319 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
16320 instruction if !TARGET_FUSED_MADD.
16321 (fpma, fpms): Remove colon from name.
16322
16323 2009-05-22 Richard Guenther <rguenther@suse.de>
16324
16325 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
16326 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
16327 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
16328 TARGET_MEM_REF.
16329 (create_expression_by_pieces): Only convert if necessary.
16330 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
16331 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
16332
16333 2009-05-21 Adam Nemet <anemet@caviumnetworks.com>
16334
16335 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
16336 regular pattern from a template and rename it ...
16337 (*extzv_truncsi_exts): ... to this.
16338
16339 2009-05-21 Richard Guenther <rguenther@suse.de>
16340
16341 * cgraph.h (struct cgraph_node): Remove inline_decl member.
16342 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
16343 (cgraph_default_inline_p): Likewise.
16344 (cgraph_decide_inlining_incrementally): Likewise.
16345
16346 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
16347 Uros Bizjak <ubizjak@gmail.com>
16348
16349 * config/i386/cpuid.h (bit_MOVBE): New.
16350
16351 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
16352
16353 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
16354 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
16355 (ix86_handle_option): Handle OPT_mmovbe.
16356 (ix86_target_string): Add -mmovbe.
16357 (pta_flags): Add PTA_MOVBE.
16358 (processor_alias_table): Add PTA_MOVBE to "atom".
16359 (override_options): Handle PTA_MOVBE.
16360
16361 * config/i386/i386.h (TARGET_MOVBE): New.
16362
16363 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
16364 (*bswapsi_movbe): New.
16365 (*bswapdi_movbe): Likewise.
16366 (bswapdi2): Renamed to ...
16367 (*bswapdi_1): This.
16368 (bswapdi2): New expander.
16369
16370 * config/i386/i386.opt (mmovbe): New.
16371
16372 * doc/invoke.texi: Document -mmovbe.
16373
16374 2009-05-21 Taras Glek <tglek@mozilla.com>
16375
16376 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
16377 * gcc-plugin.h (plugin_init): Updated signature.
16378 * gcc-plugin.h (plugin_name_args): Moved to this header.
16379 * doc/plugins.texi (plugin_init): Updated documention to reflect
16380 API change.
16381 * doc/plugins.texi (plugin_name_args): Added to documention.
16382
16383 2009-05-21 Mark Mitchell <mark@codesourcery.com>
16384
16385 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
16386 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
16387
16388 2009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
16389
16390 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
16391 JUMP_TABLE_DATA_P predicates where applicable.
16392 * config/i386/predicates.md: Ditto.
16393 * config/i386/sse.md: Ditto.
16394
16395 2009-05-21 Jakub Jelinek <jakub@redhat.com>
16396
16397 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
16398 operand2 -128 override length_immediate attribute to 1.
16399 * config/i386/predicates.md (constm128_operand): New predicate.
16400
16401 * config/i386/i386.c (memory_address_length): Handle %r12
16402 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
16403 also check REGNO.
16404 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
16405 mode look through optional ZERO_EXTEND and SUBREG.
16406 * config/i386/i386.md (R12_REG): New define_constant.
16407 (prefix_data16): For sse unit set also for MODE_TI insns.
16408 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
16409 insns set if operand 1 is ext_QIreg_operand.
16410 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
16411 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
16412 immediate.
16413 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
16414 mode from MODE_DI to MODE_SI.
16415 (movdi_1_rex64): Override modrm and length_immediate attributes
16416 only for movabs (TYPE_IMOV, alternative 2).
16417 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
16418 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
16419 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
16420 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
16421 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
16422 prefix_rex attribute if DImode.
16423 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
16424 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
16425 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
16426 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
16427 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
16428 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
16429 Likewise. For TYPE_IMOV clear length_immediate attribute.
16430 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
16431 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
16432 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
16433 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
16434 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
16435 or one operand TYPE_ISHIFT.
16436 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
16437 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
16438 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
16439 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
16440 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
16441 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
16442 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
16443 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
16444 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
16445 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
16446 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
16447 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
16448 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
16449 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
16450 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
16451 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
16452 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
16453 set mode attribute, don't override length attribute.
16454 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
16455 to 1.
16456 (return_internal_long): Set length attribute to 2 instead of 1.
16457 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
16458 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
16459 prefix_rex attribute.
16460 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
16461 New predicates.
16462 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
16463
16464 2009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16465
16466 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
16467
16468 2009-05-20 Ian Lance Taylor <iant@google.com>
16469
16470 * tree.c (build_tree_list_vec_stat): New function.
16471 (ctor_to_vec): New function.
16472 (build_nt_call_vec): New function.
16473 (build_call_array): Change args to be a const pointer.
16474 (build_call_vec): New function.
16475 * tree.h (build_nt_call_vec): Declare.
16476 (build_tree_list_vec_stat): Declare.
16477 (build_tree_list_vec): Define.
16478 (build_call_array): Update declaration.
16479 (build_call_vec): Declare.
16480 (ctor_to_vec): Declare.
16481 * c-common.c (tree_vector_cache): New static variable.
16482 (make_tree_vector): New function.
16483 (release_tree_vector): New function.
16484 (make_tree_vector_single): New function.
16485 (make_tree_vector_copy): New function.
16486 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
16487 (make_tree_vector_single, make_tree_vector_copy): Declare.
16488 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
16489 (c_parser_expr_list): Don't manage cache here, instead call
16490 make_tree_vector.
16491 (c_parser_release_expr_list): Remove static function.
16492 (c_parser_vec_to_tree_list): Remove static function.
16493 (c_parser_attributes): Call build_tree_list_vec instead of
16494 c_parser_vec_to_tree_list. Call release_tree_vector instead of
16495 c_parser_release_expr_list.
16496 (c_parser_postfix_expression_after_primary): Likewise.
16497 (c_parser_objc_keywordexpr): Likewise.
16498
16499 2009-05-20 Sandra Loosemore <sandra@codesourcery.com>
16500
16501 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
16502 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
16503 TARGET_CONVERT_TO_TYPE.
16504 * hooks.c (hook_tree_const_tree_null): Define.
16505 * hooks.h (hook_tree_const_tree_null): Declare.
16506 * target.h (struct gcc_target): Add invalid_parameter_type,
16507 invalid_return_type, promoted_type, and convert_to_type fields.
16508 * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
16509 (TARGET_INVALID_RETURN_TYPE): Define.
16510 (TARGET_PROMOTED_TYPE): Define.
16511 (TARGET_CONVERT_TO_TYPE): Define.
16512 (TARGET_INITIALIZER): Update for new fields.
16513 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
16514 (grokparms): Check targetm.invalid_parameter_type.
16515 * c-typeck.c (default_conversion): Check targetm.promoted_type.
16516 * c-convert.c (convert): Check targetm.convert_to_type.
16517
16518 2009-05-20 Adam Nemet <anemet@caviumnetworks.com>
16519
16520 * config/mips/mips.md (*extenddi_truncate<mode>,
16521 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
16522 defintions.
16523 (*extendhi_truncateqi): New define_insn_and_sptit.
16524
16525 2009-05-20 Jakub Jelinek <jakub@redhat.com>
16526
16527 PR middle-end/40204
16528 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
16529 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
16530
16531 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
16532
16533 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
16534 the operand of VIEW_CONVERT_EXPR.
16535
16536 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
16537
16538 * config/i386/driver-i386.c (host_detect_local_cpu): Check
16539 extended family and model for Intel processors. Support Intel Atom.
16540
16541 2009-05-20 Olivier Hainque <hainque@adacore.com>
16542
16543 * gstab.h (stab_code_type): Define, to be used instead of the
16544 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
16545 notice.
16546 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
16547 occurrences by stab_code_type.
16548 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
16549
16550 2009-05-20 Martin Jambor <mjambor@suse.cz>
16551
16552 * tree-flow.h (insert_edge_copies_seq): Undeclare.
16553 (sra_insert_before): Likewise.
16554 (sra_insert_after): Likewise.
16555 (sra_init_cache): Likewise.
16556 (sra_type_can_be_decomposed_p): Likewise.
16557 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
16558 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
16559 (sra_insert_before): Likewise.
16560 (sra_insert_after): Likewise.
16561 (sra_init_cache): Likewise.
16562 (insert_edge_copies_seq): Made static and moved upwards.
16563
16564 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
16565 case.
16566
16567 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
16568
16569 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
16570 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
16571 simple copies.
16572
16573 2009-05-20 Richard Guenther <rguenther@suse.de>
16574
16575 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
16576 with mismatched comparison modes.
16577
16578 2009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16579
16580 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
16581 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
16582 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
16583 with shifts for Thumb2.
16584 (orsi_notsi): New for orn.
16585 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
16586 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
16587 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
16588 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
16589 Don't invert remainder for IOR.
16590
16591 2009-05-19 Zdenek Dvorak <ook@ucw.cz>
16592
16593 PR tree-optimization/40087
16594 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
16595 number_of_iterations_ne): Rename never_infinite argument.
16596 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
16597 number_of_iterations_le): Handle pointer-type ivs when
16598 exit_must_be_taken is false.
16599 (number_of_iterations_cond): Do not always assume that
16600 exit_must_be_taken if the control variable is a pointer.
16601
16602 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
16603
16604 * c-typeck.c (build_binary_op): Allow % on integal vectors.
16605 * doc/extend.texi (Vector Extension): Document that % is allowed too.
16606
16607 2009-05-19 H.J. Lu <hongjiu.lu@intel.com>
16608
16609 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
16610 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
16611
16612 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
16613
16614 PR c/40172
16615 * c.opt (Wlogical-op): Disabled by default.
16616 * c-opt (c_common_post_options): Do not enable Wlogical-op with
16617 Wextra.
16618 * doc/invoke.texi (Wlogical-op): Likewise.
16619
16620 2009-05-19 Eric Botcazou <ebotcazou@adacore.com>
16621
16622 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
16623 into CASE_CONVERT.
16624 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
16625 Propagate the type of the first operand.
16626 <ASSERT_EXPR>: Simplify.
16627 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
16628 Rewrite using the RHS code as discriminant.
16629 <NOP_EXPR>: Turn into CASE_CONVERT.
16630 <PLUS_EXPR>: Propagate the type of the first operand.
16631
16632 2009-05-19 Steve Ellcey <sje@cup.hp.com>
16633
16634 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
16635 (ia64_dconst_0_375): New.
16636 * config/ia64/ia64.c (ia64_override_options): Remove
16637 -minline-sqrt-min-latency warning.
16638 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
16639 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
16640 * config/ia64/ia64.md (*sqrt_approx): Remove.
16641 (sqrtsf2): Remove #if 0.
16642 (sqrtsf2_internal_thr): Rewrite and move to div.md.
16643 (sqrtdf): Remove assert.
16644 (sqrtdf2_internal_thr): Rewrite and move to div.md.
16645 (sqrtxf2): Remove #if 0.
16646 (sqrtxf2_internal_thr): Rewrite and move to div.md.
16647 * div.md (sqrt_approx_rf): New.
16648 (sqrtsf2_internal_thr): New implementation.
16649 (sqrtsf2_internal_lat): New.
16650 (sqrtdf2_internal_thr: New implementation.
16651 (sqrtxf2_internal): New implementation.
16652
16653 2009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
16654 Hans-Peter Nilsson <hp@axis.com>
16655
16656 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
16657 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
16658 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
16659 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
16660 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
16661 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
16662 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
16663 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
16664 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
16665 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
16666 * c-common.c: ...from here.
16667
16668 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
16669
16670 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
16671
16672 2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16673
16674 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
16675
16676 2009-05-19 Ben Elliston <bje@au.ibm.com>
16677
16678 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
16679 assignments with memcpy calls.
16680 (add_fdes): Likewise.
16681 (binary_search_unencoded_fdes): Likewise.
16682 (linear_search_fdes): Eliminate type puns.
16683
16684 2009-05-19 Richard Guenther <rguenther@suse.de>
16685
16686 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
16687 not falsely claim to have propagated into all uses.
16688
16689 2009-05-19 Ben Elliston <bje@au.ibm.com>
16690
16691 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
16692 version to v3.0.
16693
16694 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
16695
16696 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
16697 * config/sh/sh.c (sh_legitimate_address_p): Make static.
16698 (TARGET_LEGITIMATE_ADDRESS_P): New.
16699 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16700 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
16701
16702 2009-05-18 Dodji Seketeli <dodji@redhat.com>
16703
16704 PR debug/40109
16705 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
16706 child of the containing namespace's DIE.
16707
16708 2009-05-18 Adam Nemet <anemet@caviumnetworks.com>
16709
16710 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
16711 *zero_extendhi_truncqi): Move after the zero_extend patterns.
16712 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
16713 extend patterns.
16714
16715 2009-05-18 H.J. Lu <hongjiu.lu@intel.com>
16716
16717 PR target/39942
16718 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
16719 gen_align with gen_pad.
16720 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
16721 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
16722
16723 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
16724 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
16725
16726 * config/i386/i386.md (align): Renamed to ...
16727 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
16728 ASM_OUTPUT_MAX_SKIP_PAD.
16729
16730 2009-05-18 Andreas Schwab <schwab@linux-m68k.org>
16731
16732 * config.gcc: Fix variable syntax.
16733
16734 PR target/39531
16735 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
16736 before calling exact_log2.
16737 (output_iorsi3): Likewise.
16738 (output_xorsi3): Likewise.
16739
16740 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
16741
16742 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
16743 for the none zero constant operand except for EQ and NE
16744 comprisons even when the first operand is R0.
16745
16746 2009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
16747
16748 * config/s390/2064.md: Remove trailing whitespaces.
16749 * config/s390/2084.md: Likewise.
16750 * config/s390/constraints.md: Likewise.
16751 * config/s390/fixdfdi.h: Likewise.
16752 * config/s390/libgcc-glibc.ver: Likewise.
16753 * config/s390/s390-modes.def: Likewise.
16754 * config/s390/s390-protos.h: Likewise.
16755 * config/s390/s390.c: Likewise.
16756 * config/s390/s390.h: Likewise.
16757 * config/s390/s390.md: Likewise.
16758 * config/s390/tpf-unwind.h: Likewise.
16759
16760 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
16761
16762 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
16763
16764 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
16765
16766 M68K TLS support.
16767 * configure.ac (m68k-*-*): Check if binutils support TLS.
16768 * configure: Regenerate.
16769 * config/m68k/predicates.md (symbolic_operand): Extend comment.
16770 * config/m68k/constraints.md (Cu): New constraint.
16771 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
16772 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
16773 (movsi): Handle TLS symbols.
16774 (addsi3_5200): Handle XTLS symbols, indent.
16775 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
16776 (m68k_tls_reference_p): Declare.
16777 (m68k_legitimize_address): Declare.
16778 (m68k_unwrap_symbol): Declare.
16779 * config/m68k/m68k.opt (mxtls): New option.
16780 * config/m68k/m68k.c (ggc.h): Include.
16781 (m68k_output_dwarf_dtprel): Implement hook.
16782 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
16783 (m68k_expand_prologue): Load GOT pointer when function needs it.
16784 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
16785 (m68k_legitimate_constant_address_p): Same.
16786 (m68k_decompose_address): Handle TLS references.
16787 (m68k_get_gp): New static function.
16788 (enum m68k_reloc): New contants.
16789 (TLS_RELOC_P): New macro.
16790 (m68k_wrap_symbol): New static function.
16791 (m68k_unwrap_symbol): New function.
16792 (m68k_final_prescan_insn_1): New static function.
16793 (m68k_final_prescan_insn): New function.
16794 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
16795 functions.
16796 (legitimize_pic_address): Handle TLS references..
16797 (m68k_tls_get_addr, m68k_get_tls_get_addr)
16798 (m68k_libcall_value_in_a0_p)
16799 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
16800 (m68k_call_m68k_read_tp): Helper variables and functions for ...
16801 (m68k_legitimize_tls_address): Handle TLS references.
16802 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
16803 New functions.
16804 (m68k_legitimize_address): Handle TLS symbols.
16805 (m68k_get_reloc_decoration): New static function.
16806 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
16807 UNSPEC_RELOC32.
16808 (m68k_output_dwarf_dtprel): Implement hook.
16809 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
16810 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
16811 m68k_call_* routines.
16812 (sched_attr_op_type): Handle TLS symbols.
16813 (gt-m68k.h): Include.
16814 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
16815 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
16816
16817 2009-05-18 Martin Jambor <mjambor@suse.cz>
16818
16819 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
16820 (visit_store_addr_for_mod_analysis): New function.
16821 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
16822 (determine_cst_member_ptr): Use gimple_assign_single_p.
16823 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
16824 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
16825 operands. Don't check number of operands of a NOP_EXPR.
16826
16827 2009-05-18 Eric Fisher <joefoxreal@gmail.com>
16828
16829 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
16830
16831 2009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
16832
16833 PR c/40172
16834 * c-common.c (warn_logical_operator): Don't warn if one of
16835 expression isn't always true or false.
16836
16837 2009-05-17 Kai Tietz <kai.tietz@onevision.com>
16838
16839 * config/i386/biarch32.h: New file.
16840 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
16841
16842 2009-05-17 Adam Nemet <anemet@caviumnetworks.com>
16843
16844 * config/mips/mips.md (*zero_extend<mode>_trunchi,
16845 *zero_extend<mode>_truncqi): Merge these into ...
16846 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
16847 Name the pattern following this as *zero_extendhi_truncqi.
16848
16849 2009-05-16 Brad Lucier <lucier@math.purdue.edu>
16850
16851 PR middle-end/39301
16852 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
16853 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
16854 (output_info): Make field HOST_WIDEST_INT.
16855 (print_statistics): Use HOST_WIDEST_INT_PRINT.
16856 (dump_bitmat_statistics): Same.
16857
16858 2009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
16859
16860 * config.gcc (use_gcc_stdint): Set to wrap.
16861 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
16862 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
16863 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
16864 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
16865 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
16866 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
16867 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
16868 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
16869
16870 2009-05-16 Joseph Myers <joseph@codesourcery.com>
16871
16872 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
16873 tune_64.
16874 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
16875 Move definitions earlier.
16876 (OPT_ARCH64, OPT_ARCH32): Define.
16877 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
16878 and tune_64.
16879
16880 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
16881
16882 PR target/40153
16883 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
16884 implies.
16885
16886 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
16887
16888 * arm.md (movdi2): Copy non-reg values to DImode registers.
16889
16890 2009-05-16 Jakub Jelinek <jakub@redhat.com>
16891
16892 PR target/39942
16893 * final.c (label_to_max_skip): New function.
16894 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
16895 CODE_LABEL_NUMBER <= max_labelno.
16896 * output.h (label_to_max_skip): New prototype.
16897 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
16898 (ix86_avoid_jump_mispredicts): ... this. Don't define if
16899 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
16900 Handle CODE_LABELs with >= 16 byte alignment or with
16901 max_skip == (1 << align) - 1.
16902 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
16903 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
16904
16905 PR target/39942
16906 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
16907 .p2align 3 if MAX_SKIP is smaller than 7.
16908 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
16909
16910 2009-05-15 Ian Lance Taylor <iant@google.com>
16911
16912 * alias.c (struct alias_set_entry_d): Rename from struct
16913 alias_set_entry. Change all uses.
16914 * except.c (struct call_site_record_d): Rename from struct
16915 call_site_record. Change all uses.
16916 * except.h (struct eh_region_d): Rename from struct eh_region.
16917 Change all uses.
16918 * gcse.c (struct hash_table_d): Rename from struct hash_table.
16919 Change all uses.
16920 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
16921 ivtype_map_elt. Change all uses.
16922 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
16923 Change all uses.
16924 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
16925 * graphite.h (struct name_tree_d): Rename from struct name_tree.
16926 Change all uses.
16927 (struct sese_d): Rename from struct sese. Change all uses.
16928 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
16929 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
16930 * optabs.h (struct optab_d): Rename from struct optab. Change all
16931 uses.
16932 (struct convert_optab_d): Rename from struct convert_optab.
16933 Change all uses.
16934 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
16935 ipa_opt_pass. Change all uses.
16936 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
16937 all uses.
16938
16939 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
16940 defined as a typedef.
16941 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
16942 defined as a tag.
16943
16944 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
16945
16946 PR 16302
16947 * fold-const.c (make_range,build_range_check,merge_ranges): Move
16948 declaration to...
16949 (merge_ranges): Returns bool.
16950 * tree.h (make_range): .. to here.
16951 (build_range_check): Likewise.
16952 (merge_ranges): Likewise. Renamed from merge_ranges.
16953 * c-typeck.c (parser_build_binary_op): Update calls to
16954 warn_logical_operator.
16955 * c-common.c (warn_logical_operator): Add new warning.
16956 * c-common.h (warn_logical_operator): Update declaration.
16957
16958 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
16959
16960 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
16961
16962 2009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16963
16964 * doc/install.texi: Document MPC requirements, flags etc.
16965
16966 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
16967 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
16968 Evaluate constant arguments.
16969 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
16970 (fold_builtin_1): Likewise, also evaluate constant arguments.
16971 Remove superfluous break.
16972 (do_mpc_ckconv): New.
16973 * real.h: Include mpc.h.
16974 * toplev.c (print_version): Output MPC version info if available.
16975
16976 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
16977
16978 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
16979
16980 2009-05-15 H.J. Lu <hongjiu.lu@intel.com>
16981
16982 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
16983 only once.
16984
16985 2009-05-15 Jan Hubicka <jh@suse.cz>
16986
16987 * doc/invoke.texi (max-early-inliner-iterations): New flag.
16988 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
16989 (try_inline): Fix return value.
16990 (cgraph_decide_inlining_incrementally): Honor new value.
16991 (cgraph_early_inlining): Handle indirect inlining.
16992 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
16993
16994 2009-05-15 Jan Hubicka <jh@suse.cz>
16995
16996 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
16997 * cgraphunit.c (cgraph_finalize_function): Set it.
16998 (cgraph_expand_function): Use it.
16999
17000 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
17001
17002 * real.c (encode_ieee_half): Define.
17003 (decode_ieee_half): Define.
17004 (ieee_half_format): Define.
17005 (arm_half_format): Define.
17006 * real.h (ieee_half_format): Declare.
17007 (arm_half_format): Declare.
17008
17009 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
17010
17011 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
17012 swapped, and reversed optabs exist before trying to use them.
17013
17014 2009-05-15 Paul Brook <paul@codesourcery.com>
17015 Sandra Loosemore <sandra@codesourcery.com>
17016
17017 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
17018 loads. Allow PRE_DEC.
17019 (output_move_neon): Handle PRE_DEC.
17020 (arm_print_operand): Add 'A' for neon structure loads.
17021 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
17022 * config/arm/neon.md (neon_mov): Update comment.
17023 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
17024 calls.
17025 (Um): New constraint.
17026
17027 2009-05-15 Jan Hubicka <jh@suse.cz>
17028
17029 Revert the following patch until testsuite fallout is fixed:
17030 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
17031 * cgraph.h (struct inline_summary): New filed self_wize,
17032 size_inlining_benefit, self_time and time_inlining_benefit.
17033 (struct cgraph_global_info): Replace insns by time ans size fields.
17034 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
17035 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
17036 (ipcp_update_callgraph): Do not touch function bodies.
17037 * ipa-inline.c: Include except.h
17038 (MAX_TIME): New constant.
17039 (overall_insns): Remove
17040 (overall_size, max_benefit): New static variables.
17041 (cgraph_estimate_time_after_inlining): New function.
17042 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
17043 (cgraph_clone_inlined_nodes): Update size.
17044 (cgraph_mark_inline_edge): Update size.
17045 (cgraph_estimate_growth): Use size info.
17046 (cgraph_check_inline_limits): Check size.
17047 (cgraph_default_inline_p): Likewise.
17048 (cgraph_edge_badness): Compute badness based on benefit and size cost.
17049 (cgraph_decide_recursive_inlining): Check size.
17050 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
17051 and times.
17052 (cgraph_decide_inlining): Likewise.
17053 (cgraph_decide_inlining_incrementally): Likewise; honor
17054 PARAM_EARLY_INLINING_INSNS.
17055 (likely_eliminated_by_inlining_p): New predicate.
17056 (estimate_function_body_sizes): New function.
17057 (compute_inline_parameters): Use it.
17058 * except.c (must_not_throw_labels): New function.
17059 * except.h (must_not_throw_labels): Declare.
17060 * tree-inline.c (init_inline_once): Kill inlining_weigths
17061 * tree-ssa-structalias.c: Avoid uninitialized warning.
17062 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
17063 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
17064 (PARAM_INLINE_CALL_COST): Remove.
17065 (PARAM_EARLY_INLINING_INSNS): New.
17066
17067 2009-05-15 Richard Guenther <rguenther@suse.de>
17068
17069 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
17070 not TODO_update_ssa.
17071
17072 2009-05-15 Richard Guenther <rguenther@suse.de>
17073
17074 PR tree-optimization/39999
17075 * gimple.h (gimple_expr_type): Use the expression type looking
17076 through useless conversions.
17077 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
17078 (vn_nary_op_insert_stmt): Likewise.
17079 (simplify_binary_expression): Likewise.
17080
17081 2009-05-15 Richard Guenther <rguenther@suse.de>
17082
17083 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
17084 New options, enabled by default.
17085 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
17086 Document.
17087 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
17088 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
17089 * tree-ssa-structalias.c (gate_tree_pta): New function.
17090 (pass_build_alias): Use it.
17091
17092 2009-05-15 Joseph Myers <joseph@codesourcery.com>
17093
17094 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
17095 recurse on an invariant address if a conversion from a pointer
17096 type to a wider integer type is involved.
17097
17098 2009-05-15 Jan Hubicka <jh@suse.cz>
17099
17100 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
17101 * cgraph.h (struct inline_summary): New filed self_wize,
17102 size_inlining_benefit, self_time and time_inlining_benefit.
17103 (struct cgraph_global_info): Replace insns by time ans size fields.
17104 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
17105 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
17106 (ipcp_update_callgraph): Do not touch function bodies.
17107 * ipa-inline.c: Include except.h
17108 (MAX_TIME): New constant.
17109 (overall_insns): Remove
17110 (overall_size, max_benefit): New static variables.
17111 (cgraph_estimate_time_after_inlining): New function.
17112 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
17113 (cgraph_clone_inlined_nodes): Update size.
17114 (cgraph_mark_inline_edge): Update size.
17115 (cgraph_estimate_growth): Use size info.
17116 (cgraph_check_inline_limits): Check size.
17117 (cgraph_default_inline_p): Likewise.
17118 (cgraph_edge_badness): Compute badness based on benefit and size cost.
17119 (cgraph_decide_recursive_inlining): Check size.
17120 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
17121 and times.
17122 (cgraph_decide_inlining): Likewise.
17123 (cgraph_decide_inlining_incrementally): Likewise; honor
17124 PARAM_EARLY_INLINING_INSNS.
17125 (likely_eliminated_by_inlining_p): New predicate.
17126 (estimate_function_body_sizes): New function.
17127 (compute_inline_parameters): Use it.
17128 * except.c (must_not_throw_labels): New function.
17129 * except.h (must_not_throw_labels): Declare.
17130 * tree-inline.c (init_inline_once): Kill inlining_weigths
17131 * tree-ssa-structalias.c: Avoid uninitialized warning.
17132 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
17133 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
17134 (PARAM_INLINE_CALL_COST): Remove.
17135 (PARAM_EARLY_INLINING_INSNS): New.
17136 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
17137 (inline-call-cost): Remove.
17138 (early-inlining-insns): New.
17139
17140 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
17141
17142 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
17143 for bounds.
17144 (print_int_cst_bounds_in_octal_p): Likewise.
17145 (dbxout_type): Adjust calls to above functions. Be prepared to deal
17146 with subtypes.
17147 * dwarf2out.c (base_type_die): Likewise.
17148 (is_subrange_type): Delete.
17149 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
17150 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
17151 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
17152 if the destination type is boolean.
17153 (build_range_check): Do not special-case subtypes.
17154 (fold_sign_changed_comparison): Likewise.
17155 (fold_unary): Likewise.
17156 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
17157 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
17158 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
17159 * tree.c (subrange_type_for_debug_p): New predicate based on the
17160 former is_subrange_type.
17161 * tree.h (subrange_type_for_debug_p): Declare.
17162 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
17163 (convert_affine_scev): Remove call to above function.
17164 (chrec_convert_aggressive): Likewise.
17165 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
17166 false for conversions involving subtypes.
17167 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
17168 (vrp_val_min): Likewise.
17169 (needs_overflow_infinity): Likewise.
17170 (extract_range_from_unary_expr): Likewise.
17171
17172 2009-05-15 Paolo Bonzini <bonzini@gnu.org>
17173
17174 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
17175 * config/frv/frv.c: Likewise.
17176 * config/s390/s390.c: Likewise.
17177 * config/sparc/sparc.h: Likewise.
17178 * config/i386/i386.h: Likewise.
17179 * config/i386/i386.c: Likewise.
17180 * config/crx/crx.c: Likewise.
17181 * config/m68hc11/m68hc11.h: Likewise.
17182 * config/iq2000/iq2000.c: Likewise.
17183 * config/mn10300/mn10300.h: Likewise.
17184 * config/mn10300/mn10300.c: Likewise.
17185 * config/m68k/m68k.c: Likewise.
17186 * config/rs6000/rs6000.c: Likewise.
17187 * config/rs6000/xcoff.h: Likewise.
17188 * config/rs6000/linux64.h: Likewise.
17189 * config/rs6000/sysv4.h: Likewise.
17190 * config/score/score3.c: Likewise.
17191 * config/score/score7.c: Likewise.
17192 * config/score/score.c: Likewise.
17193 * config/arm/arm.md: Likewise.
17194 * config/mips/mips.c: Likewise.
17195 * config/mips/mips.md: Likewise.
17196 * config/bfin/bfin.h: Likewise.
17197 * config/pa/pa.c: Likewise.
17198 * config/pa/constraints.md: Likewise.
17199
17200 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
17201 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
17202 * config/pdp11/pdp11.h: Use memory_address_p instead.
17203
17204 2009-05-14 Ian Lance Taylor <iant@google.com>
17205
17206 * passes.c (finish_optimization_passes): Change i to int.
17207 * plugin.c (plugins_active_p): Change event to int.
17208 (dump_active_plugins): Likewise.
17209 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
17210 Add cast.
17211 * tree.c (tree_range_check_failed): Change c to unsigned int.
17212 (omp_clause_range_check_failed): Likewise.
17213 (build_common_builtin_nodes): Change mode to int. Add cast.
17214 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
17215 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
17216
17217 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
17218 ++ or -- with a variable of enum type.
17219
17220 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
17221
17222 PR driver/40144
17223 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
17224
17225 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
17226
17227 * store-motion.c: Do not include params.h
17228 * Makefile.in: Fix dependencies for various files.
17229
17230 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
17231
17232 * auto-inc-dec.c: Fix pass description, remove apparent
17233 accidental duplication.
17234
17235 2009-05-14 H.J. Lu <hongjiu.lu@intel.com>
17236
17237 PR middle-end/40147
17238 * ipa-utils.h (memory_identifier_string): Moved to ...
17239 * tree.h (memory_identifier_string): Here. Add GTY(()).
17240
17241 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
17242
17243 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
17244 in the former documentation of...
17245 (GO_IF_LEGITIMATE_ADDRESS): ... this.
17246 * ira-conflicts.c (get_dup_num): Use address_operand.
17247 * targhooks.c (default_legitimate_address_p): New.
17248 * targhooks.h (default_legitimate_address_p): New.
17249 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
17250 Call hook.
17251 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
17252 * target.h (struct target): Add legitimate_address_p.
17253 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
17254 (TARGET_INITIALIZER): Include it.
17255
17256 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17257 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
17258 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
17259 (TARGET_LEGITIMATE_ADDRESS_P): New.
17260
17261 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17262 (REG_OK_STRICT_P): Delete.
17263 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
17264 (frv_legitimate_address_p_1): ... this.
17265 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
17266 (frv_legitimate_address_p_1): ... the renamed old
17267 frv_legitimate_address_p.
17268 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
17269 (TARGET_LEGITIMATE_ADDRESS_P): New.
17270
17271 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17272 * config/s390/s390-protos.h (legitimate_address_p): Remove.
17273 * config/s390/s390.c (legitimate_address_p): Rename to...
17274 (s390_legitimate_address_p): ... this, make static.
17275 (legitimize_address): Adjust call.
17276 (TARGET_LEGITIMATE_ADDRESS_P): New.
17277 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
17278
17279 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17280 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
17281 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
17282 (TARGET_LEGITIMATE_ADDRESS_P): New.
17283
17284 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17285 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
17286 * config/spu/spu.c (spu_legitimate_address): Rename to...
17287 (spu_legitimate_address_p): ... this, make static.
17288 (TARGET_LEGITIMATE_ADDRESS_P): New.
17289
17290 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17291 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
17292 * config/sparc/sparc.c (legitimate_address_p): Rename to...
17293 (sparc_legitimate_address_p): ... this, make static and return bool.
17294 (legitimize_address): Adjust call.
17295 (TARGET_LEGITIMATE_ADDRESS_P): New.
17296
17297 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17298 * config/i386/i386-protos.h (legitimate_address_p): Remove.
17299 * config/i386/i386.c (legitimate_address_p): Rename to...
17300 (ix86_legitimate_address_p): ... this, make static.
17301 (constant_address_p): Move after it, adjust call.
17302 (TARGET_LEGITIMATE_ADDRESS_P): New.
17303
17304 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17305 * config/avr/avr-protos.h (legitimate_address_p): Remove.
17306 * config/avr/avr.c (legitimate_address_p): Rename to...
17307 (avr_legitimate_address_p): ... this, make static.
17308 (legitimize_address): Adjust call.
17309 (TARGET_LEGITIMATE_ADDRESS_P): New.
17310
17311 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17312 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
17313 * config/crx/crx.c (crx_legitimate_address_p): Make static.
17314 (TARGET_LEGITIMATE_ADDRESS_P): New.
17315
17316 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17317 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
17318 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
17319 (TARGET_LEGITIMATE_ADDRESS_P): New.
17320
17321 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17322 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
17323 Remove.
17324 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
17325 Make static.
17326 (TARGET_LEGITIMATE_ADDRESS_P): New.
17327
17328 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17329 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
17330 Remove.
17331 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
17332 Rename to...
17333 (m68hc11_legitimate_address_p): ... this, make static.
17334 (go_if_legitimate_address_internal): Rename to...
17335 (m68hc11_legitimate_address_p_1): ... this.
17336 (legitimize_address): Adjust call.
17337 (TARGET_LEGITIMATE_ADDRESS_P): New.
17338
17339 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17340 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
17341 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
17342 (TARGET_LEGITIMATE_ADDRESS_P): New.
17343
17344 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17345 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
17346 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
17347 (mn10300_legitimate_address_p): ... this, make static.
17348 (TARGET_LEGITIMATE_ADDRESS_P): New.
17349
17350 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17351 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
17352 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
17353 (TARGET_LEGITIMATE_ADDRESS_P): New.
17354
17355 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17356 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
17357 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
17358 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17359 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
17360 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
17361 (rs6000_legitimate_address_p): ... this, make static.
17362 (TARGET_LEGITIMATE_ADDRESS_P): New.
17363 (REG_MODE_OK_FOR_BASE_P): Delete.
17364 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
17365
17366 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17367 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
17368 Delete.
17369 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
17370 static, adjust types.
17371 (TARGET_LEGITIMATE_ADDRESS_P): New.
17372
17373 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17374 * config/score/score.c (score_address_p): Rename to...
17375 (score_legitimate_address_p): ... this.
17376 (TARGET_LEGITIMATE_ADDRESS_P): New.
17377 * config/score/score3.c (score3_address_p): Rename to...
17378 (score3_legitimate_address_p): ... this.
17379 * config/score/score7.c (score7_address_p): Rename to...
17380 (score7_legitimate_address_p): ... this.
17381
17382 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
17383 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
17384 GO_IF_LEGITIMATE_ADDRESS): Delete.
17385 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
17386 thumb2_legitimate_address_p): Delete.
17387 (arm_legitimate_address_p): Rename to...
17388 (arm_legitimate_address_outer_p): ... this.
17389 * config/arm/constraints.md ("Uq"): Adjust call.
17390 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
17391 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
17392 to...
17393 (arm_legitimate_address_outer_p): ... this.
17394 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
17395 static.
17396 (TARGET_LEGITIMATE_ADDRESS_P): New.
17397
17398 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17399 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
17400 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
17401 (TARGET_LEGITIMATE_ADDRESS_P): New.
17402
17403 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17404 * config/vax/vax-protos.h (legitimate_address_p): Remove.
17405 * config/vax/vax.c (legitimate_address_p): Rename to...
17406 (vax_legitimate_address_p): ... this, make static.
17407 (TARGET_LEGITIMATE_ADDRESS_P): New.
17408
17409 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17410 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
17411 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
17412 (TARGET_LEGITIMATE_ADDRESS_P): New.
17413
17414 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17415 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
17416 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
17417 (mmix_legitimate_address_p): ... this, make static.
17418 (TARGET_LEGITIMATE_ADDRESS_P): New.
17419
17420 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17421 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
17422 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
17423 (TARGET_LEGITIMATE_ADDRESS_P): New.
17424
17425 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
17426
17427 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
17428 of MODE_COMPLEX_INT.
17429
17430 2009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17431
17432 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
17433 LCT_NORMAL in function call.
17434 * mips-tdump.c (print_file_desc): Add cast to enum type.
17435 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
17436 (mark_stabs): Add casts to enum types.
17437 (parse_stabs_common): Add casts to enum types.
17438
17439 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
17440
17441 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
17442 Check for invalid values of LETTER.
17443
17444 2009-05-13 Taras Glek <tglek@mozilla.com>
17445
17446 * attribs.c (register_attribute): moved out attribute registration
17447 into register_attribute.
17448 * doc/plugins.texi: Documented register_attribute and
17449 PLUGIN_ATTRIBUTES.
17450 * gcc-plugin.h: Added forward decl for register_attribute.
17451 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
17452 * plugin.c (register_callback, invoke_plugin_callbacks): Added
17453 PLUGIN_ATTRIBUTES boilerplate.
17454
17455 2009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
17456
17457 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
17458 values even in sentinel and empty entries.
17459 (ms_printf_flag_specs): Likewise.
17460 (ms_scanf_flag_specs): Likewise.
17461 (ms_strftime_flag_specs): Likewise.
17462 (ms_print_char_table): Likewise.
17463 (ms_scan_char_table): Likewise.
17464 (ms_time_char_table): Likewise.
17465
17466 2009-05-13 Doug Kwan <dougkwan@google.com>
17467
17468 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
17469
17470 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
17471
17472 * config/mips/mips.md (store): Add attributes for QI and HI.
17473 Update comment.
17474 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
17475 (truncdi<mode>2): ... this new pattern.
17476
17477 2009-05-13 Brad Hards <bradh@kde.org>
17478
17479 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
17480
17481 2009-05-14 Jakub Jelinek <jakub@redhat.com>
17482 Ben Elliston <bje@au.ibm.com>
17483
17484 PR middle-end/40035
17485 * dse.c (check_mem_read_rtx): Guard against width == -1.
17486
17487 2009-05-13 Michael Matz <matz@suse.de>
17488
17489 PR middle-end/39976
17490 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
17491 (trivially_conflicts_p): New function.
17492 (insert_backedge_copies): Use it.
17493
17494 2009-05-13 Janis Johnson <janis187@us.ibm.com>
17495
17496 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
17497 (handle_stdc_pragma): Use new enum constant names.
17498 (handle_pragma_float_const_decimal64): Ditto.
17499
17500 2009-05-13 Ian Lance Taylor <iant@google.com>
17501
17502 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
17503 tree.def.
17504
17505 2009-05-13 Nathan Sidwell <nathan@codesourcery.com>
17506
17507 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
17508 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
17509 multilibs.
17510 * config/m68k/m68k.h (FL_UCLINUX): Define.
17511
17512 2009-05-13 Jan Hubicka <jh@suse.cz>
17513
17514 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
17515
17516 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
17517
17518 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
17519 unless -fschedule-insns is specified.
17520
17521 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
17522
17523 PR target/39561
17524 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
17525 TARGET_EXPAND_CBRANCHDI4.
17526 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
17527 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
17528 (cmpeqdi): Fix comment.
17529
17530 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
17531
17532 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
17533 (sh_legitimate_address_p): Likewise.
17534 * config/sh/sh.c (sh_legitimate_index_p): New.
17535 (sh_legitimate_address_p): Likewise.
17536 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
17537 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
17538 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
17539 (MAYBE_BASE_REGISTER_RTX_P): New macro.
17540 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
17541 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
17542 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
17543 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
17544 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
17545
17546 2009-05-12 Jan Hubicka <jh@suse.cz>
17547
17548 * tree-inline.c (estimate_operator_cost): Add operands;
17549 when division happens by constant, it is cheap.
17550 (estimate_num_insns): Loads and stores are not having cost of 0;
17551 EH magic stuff is cheap; when computing runtime cost of switch,
17552 use log2 base of amount of its cases; builtin_expect has cost of 0;
17553 compute cost for moving return value of call.
17554 (init_inline_once): Initialize time_based flags.
17555 * tree-inline.h (eni_weights_d): Add time_based flag.
17556
17557 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17558
17559 * df-core.c: Update head documentation.
17560
17561 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17562
17563 PR bootstrap/40118
17564 * rs6000.c (rs6000_generate_compare): Use op1b instead of
17565 shadowing exisiting variable op1.
17566
17567 2009-05-12 Uros Bizjak <ubizjak@gmail.com>
17568
17569 PR target/37179
17570 * config/i386/driver-i386.c (processor_signatures): New enum.
17571 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
17572 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
17573 processor signature to detect geode processor.
17574
17575 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17576
17577 Revert:
17578
17579 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17580
17581 * optabs.c (prepare_cmp_insn): Temporarily disable test that
17582 causes spurious differences between trunk and cond-optab branch.
17583
17584 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17585
17586 * dojump.c (compare_from_rtx): Delete.
17587 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
17588 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
17589 if the comparison does not satisfy the predicate; test predicates for
17590 operands 2 and 3 of a cstore pattern. Don't try cstore optab
17591 further if one existing pattern fails.
17592 * expr.h (compare_from_rtx): Delete.
17593 (prepare_operand): Declare it.
17594 * optabs.c: Change "lib call" to "libcall" throughout.
17595 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
17596 HAVE_conditional_trap, emit_cmp_insn): Delete.
17597 (can_compare_p): Delete cmp_optab case.
17598 (prepare_float_lib_cmp): Return an rtx and a machine mode.
17599 Accept other parameters by value.
17600 (prepare_operand): Make non-static.
17601 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
17602 other parameters by value. Try to widen operands here based on
17603 an optab_methods argument and looking at cbranch_optab.
17604 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
17605 loop. Use cbranch_optab directly.
17606 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
17607 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
17608 assertion.
17609 (emit_conditional_move, emit_conditional_add): Inline what's needed
17610 of compare_from_rtx, using new prepare_cmp_insn for the rest.
17611 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
17612 with COMPARE. Move cmov_optab and cstore_optab above
17613 with cbranch_optab, move cmp_optab down with ucmp_optab,
17614 remove tst_otpab. Do not initialize trap_rtx.
17615 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
17616 for trap code. Do not check HAVE_conditional_trap. Use
17617 prepare_cmp_insn. Accept no predicate for operand 3.
17618 * optabs.h (OTI_cmp): Mark as used only for libcalls.
17619 (OTI_ctrap, ctrap_optab): New.
17620 (tst_optab): Delete.
17621 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
17622 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
17623 with lookup of ctrap_optab.
17624 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
17625 Delete.
17626 (ctrap_optab): New.
17627
17628 * combine.c (combine_simplify_rtx, simplify_set): Do not
17629 special case comparing against zero for cc0 machines.
17630 * simplify-rtx.c (simplify_binary_operation_1): Never remove
17631 COMPARE on cc0 machines.
17632 (simplify_relational_operation): Return a new expression when
17633 a COMPARE could be removed.
17634 * final.c (final_scan_insn): Compare cc_status values
17635 against LHS of a (compare FOO (const_int 0)) cc0 source.
17636 Also check if cc_status.value is the full compare.
17637
17638 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
17639 (cstoreMM4): Document.
17640 (conditional_trap): Document ctrapMM4 instead.
17641 (sync_compare_and_swapMM): Refer to cbranchcc4.
17642 (Dependent Patterns): Eliminate obsolete information referring to
17643 the old jump optimization phase.
17644 (Canonicalization): Include cbranchcc4 case, omit canonicalization
17645 of compares with 0 on cc0 machines.
17646 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
17647 avoiding references to cc0. Remove text about storing operands
17648 in cmpMM.
17649 * doc/tm.texi (Condition Codes): Include blurb on different
17650 condition code representations, separate into subsections for
17651 CC0, MODE_CC and conditional execution.
17652
17653 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
17654 alpha_emit_setcc): Accept operands and a machine mode.
17655 * config/alpha/alpha.c (alpha_emit_conditional_branch):
17656 Get code/op0/op1 from operands, use machine mode argument
17657 instead of alpha_compare.fp_p. Emit the branch here.
17658 (alpha_emit_setcc): Likewise, and return boolean.
17659 (alpha_emit_conditional_move): Likewise. Assert that
17660 cmp_op_mode == cmp_mode, and simplify accordingly.
17661 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
17662 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
17663 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
17664 Delete.
17665 (stack probe test): Use cbranchdi4.
17666 * config/alpha/predicates.md (alpha_cbranch_operator): New.
17667
17668 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
17669 * config/arc/arc.h (movsicc, movsfcc): Use it.
17670 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
17671 (cbranchsi4, cstoresi4): New.
17672 (cmpsi, bCC and sCC expanders): Remove.
17673
17674 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
17675 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
17676 * config/arm/predicates.md (arm_comparison_operator): Only include
17677 floating-point operators if there is a hardware floating-point unit.
17678 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
17679 deferring to cbranch_cc and cstore_cc respectively.
17680 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
17681 cbranch_cc, cstore_cc): New.
17682 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
17683 arm_compare_op1.
17684 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
17685
17686 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
17687 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
17688 as an argument.
17689 (adjust_insn_length): Adjust calls.
17690 (avr_reorg): Handle (compare (foo) (const_int 0)).
17691 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
17692 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
17693 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
17694 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
17695 (bCC): Remove.
17696 (cbranchqi4, cbranchhi4, cbranchsi4): New.
17697 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
17698
17699 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
17700 (cbranchsi4, cstorebi4, cstoresi4): New.
17701 (movbisi): This insn is duplicate, split it to zero_extend.
17702 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
17703 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
17704 (bfin_optimize_loop): Use cbranch expander.
17705 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
17706 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
17707 (bfin_bimode_comparison_operator): ... this.
17708 (bfin_direct_comparison_operator): New.
17709
17710 * config/cris/cris.c (cris_normal_notice_update_cc): Look
17711 inside (compare FOO (const_int 0)).
17712 (cris_rtx_costs): Handle ZERO_EXTRACT.
17713 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
17714 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
17715 (*tstdi_v32): Delete.
17716 (*cmpdi_non_v32): Add M alternative for operand 1.
17717 (cmpsi, cmp<mode>): Make private.
17718 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
17719 with COMPARE.
17720 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
17721
17722 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
17723 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
17724 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
17725 (cc_reg_operand): New.
17726 (any_cond): Delete.
17727 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
17728 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
17729 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
17730 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
17731 crx_expand_scond): Delete.
17732
17733 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
17734 (cbranchsi4): New.
17735 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
17736 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
17737
17738 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
17739 cstoresi4, cstoresf4, cstoredf4): New.
17740 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
17741 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
17742 Receive the entire operands array.
17743 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
17744 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
17745 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
17746 Get test/op0/op1 from the operands array.
17747 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
17748
17749 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
17750 (h8300_expand_store): New.
17751 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
17752 (const_int 0)).
17753 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
17754 (h8300_expand_store): New.
17755 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
17756 or do not try to produce (set (cc0) REG).
17757 (peepholes): Wrap arguments with COMPARE. Add a peephole to
17758 change a compare into a move to a scratch register. Disable some
17759 peepholes when comparing with zero.
17760 (tstsi, tsthi, tstsi, cmpqi): Make private.
17761 (cmphi): Delete.
17762 (bCC, sCC): Delete.
17763 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
17764 cstoresi4): New.
17765
17766 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
17767 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
17768 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
17769 (ix86_emit_i387_log1p): Use cbranchxf2.
17770 (ix86_expand_setcc): Return void.
17771 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
17772 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
17773 cmp<MODEF>, cmpcc): Remove.
17774 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
17775 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
17776 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
17777 (sCC and bCC expanders): Remove.
17778 (stack_protect_test): Use cbranchcc4.
17779
17780 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
17781 Delete.
17782 (ia64_expand_compare): Accept three rtx by reference and return void.
17783 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
17784 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
17785 from *expr. Update *expr with the BImode comparison to do.
17786 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
17787 cmptf, bCC, sCC, conditional_trap): Delete.
17788 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
17789 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
17790 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
17791 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
17792 * config/ia64/predicates.md (ia64_cbranch_operator): New.
17793
17794 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
17795 type of last argument.
17796 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
17797 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
17798 use machine mode argument instead of branch_type. Remove dead
17799 code for floating-point comparisons.
17800 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
17801 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
17802 Remove.
17803 (cbranchsi4, cstoresi4): New.
17804 * config/iq2000/predicates.md (reg_or_const_operand): New.
17805
17806 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
17807 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
17808 (b<code>_op): Rewrite to...
17809 (bcc_op): ... this, using match_operator.
17810 (s<code>_op): Rewrite to...
17811 (scc_op): ... this, using match_operator.
17812 (s<code>_24_op): Rewrite to...
17813 (scc_op_24): ... this, using match_operator.
17814 (s<code>_<mode>): Rewrite to...
17815 (cstore<mode>4): ... this, using match_operator.
17816 (s<code>_<mode>_24): Rewrite to...
17817 (cstore<mode>4_24): ... this, using match_operator.
17818 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
17819 m32c_unpend_compare, m32c_expand_scc): Delete.
17820 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
17821 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
17822 (m32c_expand_movcc): Change NE to EQ if necessary.
17823 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
17824
17825 * config/m32r/m32r-protos.h (gen_cond_store): New.
17826 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
17827 (gen_cond_store): New, from sCC patterns.
17828 (m32r_expand_block_move): Use cbranchsi4.
17829 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
17830 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
17831 (cbranchsi4, cstoresi4): New.
17832
17833 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
17834 Delete.
17835 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
17836 (m68hc11_notice_update_cc): Look into a compare with 0.
17837 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
17838 Delete.
17839 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
17840 cmphi, cmpqi, bCC): Delete.
17841 (cbranchsi4, cbranchhi4, cbranchqi4): New.
17842 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
17843 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
17844 sets with COMPARE.
17845
17846 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
17847 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
17848 * config/m68k/constraints.md (H): New.
17849 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
17850 the define_insn below.
17851 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
17852 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
17853 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
17854 patterns): Wrap RHS with COMPARE.
17855 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
17856 (*cmpdi_internal): Name this pattern.
17857 (cmpdi): Change to define_insn.
17858 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
17859 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
17860 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
17861 predicate.
17862 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
17863 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
17864 (conditional_trap): Change to...
17865 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
17866 (*conditional_trap): Use the ordered_comparison_operator and
17867 const1_operand predicates.
17868 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
17869 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
17870 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
17871 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
17872
17873 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
17874 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
17875 (mcore_gen_compare): New.
17876 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
17877 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
17878 (mcore_gen_compare): ... this.
17879 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
17880 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
17881 (stack probe pattern): Use cbranchsi4.
17882
17883 * config/mips/predicates.md (mips_cstore_operator): New.
17884 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
17885 * config/mips/mips.md (any_cond): Delete.
17886 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
17887 always succeed.
17888 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
17889 fixuns_truncsfdi2): Use cbranch patterns.
17890 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
17891 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
17892 Adjust call to mips_expand_conditional_branch.
17893 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
17894 cstore<GPR:mode>4.
17895 * config/mips/mips-protos.h (mips_expand_conditional_branch,
17896 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
17897 * config/mips/mips.c (cmp_operands): Delete.
17898 (mips_emit_compare): Get comparison operands from *op0/*op1.
17899 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
17900 that it succeeds. Use op0/op1 instead of cmp_operands.
17901 (mips_expand_conditional_branch, mips_expand_conditional_move,
17902 mips_expand_conditional_trap): Likewise.
17903 (mips_block_move_loop): Use cbranch patterns.
17904 * config/mips/mips.h (cmp_operands): Delete.
17905
17906 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
17907 (mmix_gen_compare_reg): Just return a register in the right CC mode.
17908 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
17909 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
17910 (*cmpcc_folded): Rename to...
17911 (*cmpdi_folded): this.
17912 (*cmpcc): Rename to...
17913 (*cmps): ... this.
17914 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
17915 (bCC): Remove.
17916 (cbranchdi4): New.
17917 (cbranchdf4): New. Handle invalid comparisons here.
17918 * config/mmix/predicates.md (float_comparison_operator): New.
17919
17920 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
17921 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
17922 * config/mn10300/mn10300.md (tst): Delete.
17923 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
17924 Name these patterns and wrap RHS in a compare.
17925 (*cmpsi): Make this pattern private. Include tst.
17926 (*cmpsf): Make this pattern private.
17927 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
17928 (compare with zero peepholes): Likewise.
17929 (bCC): Remove.
17930 (cbranchsi4, cbranchsf4): New.
17931 (casesi): Use cbranchsi4.
17932
17933 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
17934 hppa_branch_type): Delete.
17935 (return_addr_rtx): Use cbranchsi4.
17936 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
17937 Emit CCFPmode comparison here.
17938 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
17939 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
17940 hppa_branch_type): Delete.
17941 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
17942 (movsicc, movdicc): Remove references to hppa_compare_op0,
17943 hppa_compare_op1 and compare_from_rtx.
17944 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
17945 (casesi): Use cbranchsi4.
17946
17947 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
17948 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
17949 * config/pdp11/pdp11.md (register_or_const0_operand): New.
17950 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
17951 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
17952 (bCC): Delete.
17953 (cbranchdf4, cbranchhi4, cbranchqi4): New.
17954 (*branch, *branch_inverted): New.
17955
17956 * config/picochip/picochip.md (cbranchhi4): Use
17957 ordered_comparison_operator.
17958 (cmphi, bCC): Remove.
17959
17960 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
17961 (trap_comparison_operator): Delete.
17962 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
17963 rs6000_emit_cbranch): Accept mode and operands.
17964 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
17965 rs6000_compare_fp_p): Delete.
17966 (rs6000_generate_compare): Accept mode and comparison. Extract code
17967 and op0/op1 from there. Replace references to rs6000_compare_op0
17968 and rs6000_compare_op1.
17969 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
17970 extract result from passed operands.
17971 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
17972 extract loc from passed operands.
17973 (rs6000_emit_cmove): Likewise.
17974 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
17975 rs6000_compare_fp_p): Delete.
17976 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
17977 (cbranch<GPR>4, cbranch<FP>4): New.
17978 (cstore<mode>4): New. Consolidate here all choices about when to use
17979 portable or specialized sCC sequences.
17980 (stack_protect_test): Use cbranchsi4.
17981 (conditional_trap): Replace with ctrap<GPR>4.
17982 (conditional trap insn): Replace trap_comparison_operator with
17983 ordered_comparison_operator.
17984
17985 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
17986 (s390_emit_prologue): Use ctrap.
17987 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
17988 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
17989 New predicates replacing...
17990 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
17991 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
17992 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
17993 (add<mode>cc): Do not use s390_compare_op0/op1.
17994 (s<code>): Change to...
17995 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
17996 (seq): Change to...
17997 (cstorecc4): ... this. Handle EQ or NE equally.
17998 (*sne): Un-privatize for use in cstorecc4.
17999 (b<code>): Change to...
18000 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
18001 (conditional_trap): Replace with...
18002 (ctrap<GPR>4, ctrap<FP>4): ... these.
18003 (stack_protect): Use cbranchcc4.
18004
18005 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
18006 * config/score/score-protos.h (score_gen_cmp): Delete.
18007 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
18008 (score_block_move-loop): Use cbranchsi4.
18009 * config/score/score.md (cbranchsi4): New.
18010 (cmpsi, bCC): Delete.
18011 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
18012 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
18013 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
18014 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
18015 * config/score/score3.h (score3_gen_cmp): Delete.
18016 * config/score/score7.h (score7_gen_cmp): Delete.
18017
18018 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
18019 (sh_emit_scc_to_t): ... this. Return void.
18020 (from_compare): Rename to...
18021 (sh_emit_compare_and_branch): ... this.
18022 (sh_emit_compare_and_set): New.
18023 (sh_expand_t_scc): Accept operands.
18024 * config/sh/predicates.md (sh_float_comparison_operator): New.
18025 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
18026 (prepare_scc_operands): Rename to...
18027 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
18028 arguments.
18029 (sh_emit_cheap_store_flag): New.
18030 (sh_emit_set_t_insn): New.
18031 (from_compare): Rename to...
18032 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
18033 handling of TARGET_SH2E floating point to avoid recursive call.
18034 Generate branch here.
18035 (sh_emit_compare_and_set): New.
18036 (sh_expand_t_scc): Get op0/op1 from arguments.
18037 (sh_emit_cheap_store_flag): New.
18038 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
18039 cases.
18040 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
18041 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
18042 (movsicc, movdicc): Do nothing when it recreated operands from
18043 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
18044 prepare_scc_operands (now sh_emit_scc_to_t).
18045 (udivdi3): Use cstoresi4.
18046 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
18047 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
18048 (cbranchint4_media, cbranchfp4_media): New.
18049 (casesi): Use cbranchdi4.
18050 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
18051 Delete.
18052 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
18053 (movnegt): Remove second operand.
18054 (cbranchsf4, cbranchdf4): New.
18055 (stack_protect): Use cbranchdi4/cbranchsi4.
18056
18057 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
18058 (gen_compare_reg): Accept comparison, extract part of it to...
18059 (gen_compare_reg_1): ... this.
18060 (gen_compare_operator): Delete.
18061 (gen_v9_scc): Accept separate destination, comparison code and arms.
18062 Do not use sparc_compare_op0/sparc_compare_op1.
18063 (emit_scc_insn, emit_conditional_branch_insn): New.
18064 (emit_v9_brxx): Make static. Remove useless assertion.
18065 (sparc_emit_float_lib_cmp): Return RTL instead of calling
18066 emit_cmp_insn.
18067 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
18068 * config/sparc/sparc-protos.h (gen_compare_reg,
18069 sparc_emit_float_lib_cmp): Adjust prototype.
18070 (emit_scc_insn, emit_conditional_branch_insn): New.
18071 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
18072 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
18073 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
18074 iterators to the top.
18075 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
18076 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
18077 snedi_special_trunc): Delete.
18078 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
18079 and snedi_special_trunc.
18080 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
18081 cbranchdi4, cbranch<F:mode>4): New.
18082 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
18083 here. Use gen_compare_reg instead of gen_compare_operator.
18084 (conditional_trap): Replace with...
18085 (ctrapsi4, ctrapdi4): ... this.
18086 (stack_protect_test): Use cbranchcc4.
18087
18088 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
18089 argument to rtx.
18090 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
18091 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
18092 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
18093 from operands[0] or operands[3] depending on is_set.
18094 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
18095 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
18096 cmpdf, bCC), sCC: Remove.
18097 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
18098 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
18099 cstoredf4): New.
18100 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
18101 spu_emit_branch_or_set.
18102
18103 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
18104 Add two arguments.
18105 * config/stormy16/stormy16.h (xstormy16_compare_op0,
18106 xstormy16_compare_op1): Delete.
18107 * config/stormy16/stormy16.c (xstormy16_compare_op0,
18108 xstormy16_compare_op1): Delete.
18109 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
18110 Adjust calls.
18111 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
18112 (cmphi, cmpsi, bCC): Remove.
18113
18114 * config/v850/v850.md (tstsi, cmpsi): Fold into...
18115 (*cmpsi): ... this one.
18116 (cbranchsi4, cstoresi4): New.
18117 (bCC expanders): Delete.
18118 (sCC insns): Fold into...
18119 (*setcc): ... this one.
18120 (casesi): Do not use gen_cmpsi and gen_bgtu.
18121 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
18122 (movsicc): Simplify.
18123 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
18124
18125 * config/vax/vax-protos.h (cond_name): New.
18126 (vax_output_conditional_branch): Remove.
18127 * config/vax/vax.c (cond_name): New.
18128 (vax_output_conditional_branch): Remove.
18129 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
18130 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
18131 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
18132 (bit<VAXint>): Wrap source with (compare).
18133 (b<code> and following unnamed pattern): Rename to *branch and
18134 *branch_reversed. Change macroization to match_operator.
18135 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
18136
18137 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
18138 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
18139 Change last argument to machine_mode.
18140 (xtensa_expand_scc): Add machine_mode argument.
18141 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
18142 (gen_conditional_move, xtensa_expand_conditional_branch,
18143 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
18144 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
18145 Adjust operand numbers.
18146 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
18147 Delete.
18148 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
18149 (cmpsi, cmpsf, b<code>, s<code>): Delete.
18150 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
18151
18152 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
18153
18154 * optabs.c (prepare_cmp_insn): Temporarily disable test that
18155 causes spurious differences between trunk and cond-optab branch.
18156
18157 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
18158
18159 PR target/37137
18160 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
18161
18162 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
18163
18164 * tree.c (iterative_hash_pointer): Delete.
18165 (iterative_hash_expr): Short-circuit handling of NULL pointer.
18166 Hash UIDs and versions of SSA names. Don't special-case built-in
18167 function declarations.
18168
18169 2009-05-11 Ian Lance Taylor <iant@google.com>
18170
18171 PR bootstrap/40103
18172 * graphite.c: Force -Wc++-compat to only be a warning before
18173 #including "cloog/cloog.h".
18174
18175 2009-05-11 Martin Jambor <mjambor@suse.cz>
18176
18177 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
18178
18179 2009-05-11 Jan Hubicka <jh@suse.cz>
18180
18181 * tree-ssa-loop-ivcanon.c: Include target.h
18182 (struct loop_size): new structure.
18183 (constant_after_peeling): New predicate.
18184 (tree_estimate_loop_size): New function.
18185 (estimated_unrolled_size): Rewrite for new estimates.
18186 (try_unroll_loop_completely): Use new estimates.
18187 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
18188
18189 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
18190
18191 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
18192 libcpp interface change.
18193 (spu_macro_to_expand): Likewise.
18194
18195 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
18196
18197 PR tree-optimization/40026
18198 * gimplify.c (gimplify_init_constructor): Change initial conditional
18199 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
18200 optimize_compound_literals_in_ctor.
18201
18202 2009-05-11 Nathan Sidwell <nathan@codesourcery.com>
18203
18204 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
18205 New devices.
18206 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
18207
18208 2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
18209
18210 * tree-vect-data-refs.c (vect_analyze_group_access): Use
18211 HOST_WIDE_INT for gap.
18212
18213 2009-05-11 Ira Rosen <irar@il.ibm.com>
18214
18215 PR tree-optimization/40074
18216 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
18217 account in group size and step comparison.
18218
18219 2009-05-11 Richard Guenther <rguenther@suse.de>
18220
18221 * passes.c (init_optimization_passes): Strip now incorrect comment.
18222 (execute_function_todo): Do not set PROP_alias.
18223 * tree-pass.h (PROP_alias): Remove.
18224 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
18225 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
18226 * tree-nrv.c (pass_return_slot): Likewise.
18227 * tree-object-size.c (pass_object_sizes): Likewise.
18228 * tree-ssa-dom.c (pass_dominator): Likewise.
18229 (pass_phi_only_cprop): Likewise.
18230 * tree-ssa-dse.c (pass_dse): Likewise.
18231 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
18232 (pass_cselim): Likewise.
18233 * tree-ssa-pre.c (pass_pre): Likewise.
18234 (pass_fre): Likewise.
18235 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
18236 * tree-ssa-sink.c (pass_sink_code): Likewise.
18237 * tree-stdarg.c (pass_stdarg): Likewise.
18238 * tree-tailcall.c (pass_tail_calls): Likewise.
18239 * tree-vrp.c (pass_vrp): Likewise.
18240
18241 2009-05-10 Ian Lance Taylor <iant@google.com>
18242
18243 * basic-block.h (enum profile_status): Break out of struct
18244 control_flow_graph.
18245 * cgraph.h (struct inline_summary): Break out of struct
18246 cgraph_local_info.
18247 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
18248 of struct cgraph_order_sort.
18249 * combine.c (enum undo_kind): New enum, broken out of struct undo.
18250 * cse.c (struct branch_path): Break out of struct
18251 cse_basic_block_data.
18252 * except.h (enum eh_region_type): Break out of struct eh_region.
18253 * gcc.c (enum add_del): Break out of struct modify_target.
18254 * genrecog.c (enum decision_type): Break out of struct decision_test.
18255 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
18256 ggc_pch_data.
18257 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
18258 * regmove.c (enum match_use): New enum, broken out of struct match.
18259 * sched-int.h (enum post_call_group): New enum, broken out of
18260 struct deps.
18261 (struct deps_reg): Break out of struct deps.
18262 * target.h (struct asm_int_op): Break out of struct gcc_target.
18263 * tree-eh.c (struct goto_queue_node): Break out of struct
18264 leh_tf_state.
18265 * tree-inline.h (enum copy_body_cge_which): Break out of
18266 copy_body_data.
18267 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
18268
18269 * c-decl.c (in_struct, struct_types): New static variables.
18270 (pushtag): Add loc parameter. Change all callers.
18271 (lookup_tag): Add ploc parameter. Change all callers.
18272 (check_compound_literal_type): New function.
18273 (parser_xref_tag): Add loc parameter. Change all callers. If
18274 -Wc++-compat, warn about struct/union/enum types defined within a
18275 struct or union.
18276 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
18277 and loc parameters. Change all callers. Change error calls to
18278 error_at, using loc. For a redefinition, if the location of the
18279 original definition is known, report it. Set in_struct and
18280 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
18281 (finish_struct): Add new parameters enclosing_in_struct and
18282 enclosing_struct_types. Change all callers. Set
18283 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
18284 in the struct. If in a struct, add this struct to struct_types.
18285 (start_enum): Add loc parameter. Change all callers. Use
18286 error_at for errors, using loc. For a redefinition, if the
18287 location of the original definition is known, report it. If in a
18288 struct, add this enum type to struct_types. If -Wc++-compat warn
18289 if in sizeof, typeof, or alignof.
18290 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
18291 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
18292 (c_parser_enum_specifier): Get enum location for start_enum.
18293 (c_parser_struct_or_union_specifier): Get struct location for
18294 start_struct. Save in_struct and struct_types status between
18295 start_struct and finish_struct.
18296 (c_parser_cast_expression): Get location of cast.
18297 (c_parser_alignof_expression): Get location of type.
18298 (c_parser_postfix_expression): Likewise.
18299 (c_parser_postfix_expression_after_paren_type): Add type_loc
18300 parameter. Change all callers. Call check_compound_literal_type.
18301 Use type_loc for error about variable size type.
18302 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
18303 of an enum constant from an enum type defined in a struct or union.
18304 (c_cast_expr): Add loc parameter. Change all callers. If
18305 -Wc++-compat, warn about defining a type in a cast.
18306 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
18307 (start_enum, start_struct, finish_struct): Update declarations.
18308 (parser_xref_tag, c_cast_expr): Update declarations.
18309 (check_compound_literal_type): Declare.
18310
18311 2009-05-11 Ben Elliston <bje@au.ibm.com>
18312
18313 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
18314 for recent libcpp interface change.
18315 (rs6000_macro_to_expand): Likewise.
18316
18317 2009-05-10 Michael Matz <matz@suse.de>
18318
18319 PR target/40031
18320 * config/arm/arm.c (require_pic_register): Emit on entry edge,
18321 not at entry of function.
18322
18323 2009-05-10 Richard Guenther <rguenther@suse.de>
18324
18325 PR tree-optimization/40081
18326 Revert
18327 * tree-sra.c (instantiate_element): Instantiate scalar replacements
18328 using the main variant of the element type. Do not fiddle with
18329 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
18330
18331 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
18332 structs with volatile fields.
18333
18334 2009-05-10 Jan Hubicka <jh@suse.cz>
18335
18336 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
18337 (estimate_move_cost): Assert that it does not get called for
18338 VOID_TYPE_P.
18339 (estimate_num_insns): Skip VOID types in argument handling.
18340 (optimize_inline_calls): Delete unreachable blocks and verify that
18341 callgraph is valid.
18342
18343 2009-05-10 Jan Hubicka <jh@suse.cz>
18344
18345 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
18346 * cgraph.c (cgraph_mark_address_taken_node): New function.
18347 (dump_cgraph_node): Dump new flag.
18348 * cgraph.h (struct cgraph_node): Add address_taken.
18349 (cgraph_mark_address_taken_node): New function.
18350 * ipa.c (cgraph_postorder): Prioritize functions with address taken
18351 since new direct calls can be born.
18352
18353 2009-05-10 Joseph Myers <joseph@codesourcery.com>
18354
18355 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
18356 tok->val.node.node.
18357
18358 2009-05-10 Jan Hubicka <jh@suse.cz>
18359
18360 PR middle-end/40084
18361 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
18362 argument; rewrite.
18363 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
18364 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
18365 * tree-inline.c (copy_bb): Set frequency correctly.
18366 (fold_marked_statements): Update call to
18367 cgraph_update_edges_for_call_stmt.
18368
18369 2009-05-10 Joseph Myers <joseph@codesourcery.com>
18370
18371 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
18372 identifiers in diagnostics.
18373 * config/arm/arm.c (arm_handle_fndecl_attribute,
18374 arm_handle_isr_attribute): Likewise.
18375 * config/avr/avr.c (avr_handle_progmem_attribute,
18376 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
18377 * config/bfin/bfin.c (handle_int_attribute,
18378 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
18379 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
18380 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
18381 Likewise.
18382 * config/darwin.c (darwin_handle_kext_attribute,
18383 darwin_handle_weak_import_attribute): Likewise.
18384 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
18385 h8300_handle_eightbit_data_attribute,
18386 h8300_handle_tiny_data_attribute): Likewise.
18387 * config/i386/i386.c (ix86_handle_cconv_attribute,
18388 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
18389 * config/i386/winnt.c (ix86_handle_shared_attribute,
18390 ix86_handle_selectany_attribute): Likewise.
18391 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
18392 * config/m32c/m32c.c (function_vector_handler): Likewise.
18393 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
18394 m68hc11_handle_fntype_attribute): Likewise.
18395 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
18396 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
18397 * config/mips/mips.c (mips_insert_attributes,
18398 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
18399 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
18400 rs6000_handle_struct_attribute): Likewise.
18401 * config/sh/sh.c (sh_insert_attributes,
18402 sh_handle_resbank_handler_attribute,
18403 sh_handle_interrupt_handler_attribute,
18404 sh2a_handle_function_vector_handler_attribute,
18405 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
18406 Likewise.
18407 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
18408 * config/spu/spu.c (spu_handle_fndecl_attribute,
18409 spu_handle_vector_attribute): Likewise.
18410 * config/stormy16/stormy16.c
18411 (xstormy16_handle_interrupt_attribute): Likewise.
18412 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
18413 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
18414
18415 2009-05-10 Joseph Myers <joseph@codesourcery.com>
18416
18417 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
18418 (pp_translate_identifiers): New.
18419 (pp_identifier): Only conditionally translate identifier to locale
18420 character set.
18421 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
18422 (pp_base_tree_identifier): Only conditionally translate identifier
18423 to locale character set.
18424 * c-pretty-print.c (M_): Define.
18425 (pp_c_type_specifier, pp_c_primary_expression): Mark English
18426 fragments for conditional translation with M_.
18427 * tree-pretty-print.c (maybe_init_pretty_print): Disable
18428 identifier translation.
18429
18430 2009-05-10 Richard Guenther <rguenther@suse.de>
18431
18432 PR tree-optimization/40081
18433 * tree-sra.c (instantiate_element): Instantiate scalar replacements
18434 using the main variant of the element type. Do not fiddle with
18435 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
18436
18437 2009-05-09 Jan Hubicka <jh@suse.cz>
18438
18439 PR middle-end/40080
18440 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
18441 indirect calls; verify cgraph afterwards.
18442
18443 2009-05-09 Jan Hubicka <jh@suse.cz>
18444
18445 PR bootstrap/40082
18446 * ipa.c (update_inlined_to_pointer): New function.
18447 (cgraph_remove_unreachable_nodes): Use it.
18448
18449 2009-05-09 Jan Hubicka <jh@suse.cz>
18450
18451 * tree-eh.c (struct leh_state): Remove prev_try.
18452 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
18453 not track prev_try.
18454 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
18455 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
18456 remove_eh_handler_and_replace, foreach_reachable_handler,
18457 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
18458 * except.h (struct eh_region): Remove eh_region_u_cleanup.
18459 (gen_eh_region_cleanup): Update prototype.
18460
18461 2009-05-09 Jan Hubicka <jh@suse.cz>
18462
18463 PR middle-end/40043
18464 * except.c (copy_eh_region): Always set prev_try.
18465 (redirect_eh_edge_to_label): Find outer try.
18466 (foreach_reachable_handler): When looking for prev try
18467 handle case where previous try is not going to be taken.
18468
18469 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
18470
18471 PR tree-optimization/40049
18472 * tree-vect-stmts.c (vectorizable_operation): If the machine has
18473 only vector/vector shifts, convert the type of the constant to the
18474 appropriate type to avoid building incorrect trees, which
18475 eventually have problems with garbage collection.
18476
18477 2009-05-08 Joseph Myers <joseph@codesourcery.com>
18478
18479 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
18480 -1 for complex floating-point types if honoring signed zeros.
18481
18482 2009-05-08 Jan Hubicka <jh@suse.cz>
18483
18484 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
18485 argument; handle correctly when profile is absent.
18486 (build_cgraph_edges): Update.
18487 (rebuild_cgraph_edges): Update.
18488 * cgraph.c: Do not include varray.h.
18489 (cgraph_set_call_stmt_including_clones): New function.
18490 (cgraph_create_edge_including_clones): Likewise
18491 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
18492 (cgraph_update_edges_for_call_stmt): Handle clones.
18493 (cgraph_remove_node): Handle clone tree.
18494 (cgraph_remove_node_and_inline_clones): New function.
18495 (dump_cgraph_node): Dump clone tree.
18496 (cgraph_clone_node): Handle clone tree.
18497 (clone_function_name): Bring here from tree-inline.c.
18498 (cgraph_create_virtual_clone): New function.
18499 * cgraph.h (ipa_replace_map): Move here from ipa.h.
18500 (cgraph_clone_info): New function.
18501 (strut cgraph_node): Add clone_info and new clone tree pointers.
18502 (cgraph_remove_node_and_inline_clones,
18503 cgraph_set_call_stmt_including_clones,
18504 cgraph_create_edge_including_clones,
18505 cgraph_create_virtual_clone): Declare.
18506 (cgraph_function_versioning): Use VEC argument.
18507 (compute_call_stmt_bb_frequency): Update prototype.
18508 (cgraph_materialize_all_clones): New function.
18509 * ipa-cp.c (ipcp_update_cloned_node): Remove.
18510 (ipcp_create_replace_map): Update to VECtors.
18511 (ipcp_update_callgraph): Use virtual clones.
18512 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
18513 (ipcp_update_profiling): Do not update local profiling.
18514 (ipcp_insert_stage): Use VECtors and virtual clones.
18515 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
18516 (clone_of_p): New function.
18517 (cgraph_preserve_function_body_p): Use clone tree.
18518 (cgraph_optimize): Materialize clones.
18519 (cgraph_function_versioning): Update for VECtors.
18520 (save_inline_function_body): Use clone tree.
18521 (cgraph_materialize_clone): New function.
18522 (cgraph_materialize_all_clones): Likewise.
18523 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
18524 * ipa.c: Include gimple.h.
18525 (cgraph_remove_unreachable_nodes): Use clone tree.
18526 * ipa-prop.c (ipa_note_param_call): Update call to
18527 compute_call_stmt_bb_frequencycall.
18528 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
18529 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
18530 (copy_bb): Handle updating of clone tree; add new edge when new call
18531 appears.
18532 (expand_call_inline): Be strict about every call having edge.
18533 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
18534 (delete_unreachable_blocks_update_callgraph): New function.
18535 (tree_function_versioning): Use VECtors; always remove unreachable
18536 blocks and fold conditionals.
18537 * tree-inline.h: Do not include varray.h.
18538 (tree_function_versioning): Remove.
18539 * Makefile.in (GTFILES): Remove tree-inline.c
18540 * passes.c (do_per_function): Do only functions having body.
18541 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
18542 tree.
18543
18544 2009-05-08 H.J. Lu <hongjiu.lu@intel.com>
18545 Andrew Morrow <acm@google.com>
18546
18547 PR c/36892
18548 * c-common.c (c_common_attribute_table): Permit deprecated
18549 attribute to take an optional argument.
18550 (handle_deprecated_attribute): If the optional argument to
18551 __attribute__((deprecated)) is not a string ignore the attribute
18552 and emit a warning.
18553
18554 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
18555 * c-typeck.c (build_component_ref): Likewise.
18556 (build_external_ref): Likewise.
18557
18558 * toplev.c (warn_deprecated_use): Add an attribute argument.
18559 Emit the message associated with __attribute__((deprecated)).
18560
18561 * toplev.h (warn_deprecated_use): Updated.
18562
18563 * doc/extend.texi: Document new optional parameter to
18564 __attribute__((deprecated))
18565
18566 2009-05-08 Michael Eager <eager@eagercon.com>
18567
18568 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
18569 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
18570
18571 2009-05-08 Richard Guenther <rguenther@suse.de>
18572
18573 PR tree-optimization/40062
18574 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
18575 Avoid exponential behavior.
18576
18577 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
18578
18579 PR rtl-optimization/33928
18580 PR 26854
18581 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
18582 process_uses, build_single_def_use_links): New.
18583 (update_df): Update use_def_ref.
18584 (forward_propagate_into): Use get_def_for_use instead of use-def
18585 chains.
18586 (fwprop_init): Call build_single_def_use_links and let it initialize
18587 dataflow.
18588 (fwprop_done): Free use_def_ref.
18589 (fwprop_addr): Eliminate duplicate call to df_set_flags.
18590 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
18591 df_rd_simulate_one_insn): New.
18592 (df_rd_bb_local_compute_process_def): Update head comment.
18593 (df_chain_create_bb): Use the new RD simulation functions.
18594 * df.h (df_rd_simulate_artificial_defs_at_top,
18595 df_rd_simulate_one_insn): New.
18596 * opts.c (decode_options): Enable fwprop at -O1.
18597 * doc/invoke.texi (-fforward-propagate): Document this.
18598
18599 2009-05-08 Joseph Myers <joseph@codesourcery.com>
18600
18601 PR c/24581
18602 * c-typeck.c (build_binary_op): Handle arithmetic between one real
18603 and one complex operand specially.
18604 * tree-complex.c (some_nonzerop): Do not identify a real value as
18605 zero if flag_signed_zeros.
18606
18607 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
18608
18609 PR rtl-optimization/33928
18610 * loop-invariant.c (record_use): Fix && vs. || mishap.
18611
18612 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
18613
18614 PR rtl-optimization/33928
18615 * loop-invariant.c (struct use): Add addr_use_p.
18616 (struct def): Add n_addr_uses.
18617 (struct invariant): Add cheap_address.
18618 (create_new_invariant): Set cheap_address.
18619 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
18620 (record_uses): Pass df_ref to record_use.
18621 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
18622 used only as such.
18623
18624 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
18625
18626 * config/sh/sh.c: Do not include c-pragma.h.
18627
18628 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
18629
18630 * config/spu/spu.c: Remove include of c-common.h.
18631
18632 2009-05-07 Janis Johnson <janis187@us.ibm.com>
18633
18634 PR c/39037
18635 * c-common.h (mark_valid_location_for_stdc_pragma,
18636 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
18637 clear_float_const_decimal64, float_const_decimal64_p): New.
18638 * c.opt (Wunsuffixed-float-constants): New.
18639 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
18640 unsuffixed float constant, handle new warning.
18641 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
18642 * c-decl.c (c_scope): New flag float_const_decimal64.
18643 (set_float_const_decimal64, clear_float_const_decimal64,
18644 float_const_decimal64_p): New.
18645 (push_scope): Set new flag.
18646 * c-parser.c (c_parser_translation_unit): Mark when it's valid
18647 to use STDC pragmas.
18648 (c_parser_external_declaration): Ditto.
18649 (c_parser_compound_statement_nostart): Ditto.
18650 * c-pragma.c (valid_location_for_stdc_pragma,
18651 mark_valid_location_for_stdc_pragma,
18652 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
18653 handle_pragma_float_const_decimal64): New.
18654 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
18655 * cp/semantics.c (valid_location_for_stdc_pragma_p,
18656 set_float_const_decimal64, clear_float_const_decimal64,
18657 float_const_decimal64_p): New dummy functions.
18658 * doc/extend.texi (Decimal Float): Remove statement that the
18659 pragma, and suffix for double constants, are not supported.
18660 * doc/invoke.texi (Warning Options): List new option.
18661 (-Wunsuffixed-float-constants): New.
18662
18663 2009-05-08 Steven Bosscher <steven@gcc.gnu.org>
18664
18665 * config/i386/i386.c: Do not include c-common.h.
18666
18667 2009-05-07 Mark Heffernan <meheff@google.com>
18668
18669 * doc/invoke.texi (Debugging Options): Document change of debugging
18670 dump location.
18671 * opts.c (decode_options): Make dump_base_name relative to
18672 aux_base_name directory.
18673
18674 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
18675
18676 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
18677 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
18678
18679 2009-05-07 Rafael Avila de Espindola <espindola@google.com>
18680
18681 * Makefile.in (install-plugin): Simplify a bit.
18682
18683 2009-05-07 Paolo Bonzini <bonzini@gnu.org>
18684
18685 * Makefile.in (OBJS-common): Add regcprop.o.
18686 (regcprop.o): New.
18687 * timevar.def (TV_CPROP_REGISTERS): New.
18688 * regrename.c (regrename_optimize): Return 0.
18689 (rest_of_handle_regrename): Delete.
18690 (pass_rename_registers): Point to regrename_optimize.
18691 (struct value_data_entry, struct value_data,
18692 kill_value_one_regno, kill_value_regno, kill_value,
18693 set_value_regno, init_value_data, kill_clobbered_value,
18694 kill_set_value, kill_autoinc_value, copy_value,
18695 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
18696 replace_oldest_value_reg, replace_oldest_value_addr,
18697 replace_oldest_value_mem, copyprop_hardreg_forward_1,
18698 debug_value_data, validate_value_data): Move...
18699 * regcprop.c: ... here.
18700 (rest_of_handle_cprop): Delete.
18701 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
18702
18703 2009-05-07 Jakub Jelinek <jakub@redhat.com>
18704
18705 PR middle-end/40057
18706 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
18707 GEN_INT for 1 << bitnum.
18708 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
18709 build_int_cst_type.
18710
18711 2009-05-07 Uros Bizjak <ubizjak@gmail.com>
18712
18713 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
18714 Remove wrong description of "nand" operation.
18715
18716 2009-05-06 Richard Guenther <rguenther@suse.de>
18717 Adam Nemet <anemet@caviumnetworks.com>
18718
18719 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
18720 comment. Add that if LHS is not a gimple register, then RHS1 has
18721 to be a single object (GIMPLE_SINGLE_RHS).
18722
18723 2009-05-06 Adam Nemet <anemet@caviumnetworks.com>
18724
18725 * expr.c (get_def_for_expr): Move it up in the file.
18726 (store_field): When expanding a bit-field store, look at the
18727 defining gimple stmt for the masking conversion.
18728
18729 2009-05-06 Janis Johnson <janis187@us.ibm.com>
18730
18731 PR middle-end/39986
18732 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
18733 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
18734 32-bit memcpy into long.
18735
18736 2009-05-06 Jakub Jelinek <jakub@redhat.com>
18737
18738 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
18739 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
18740 new_reg_loc_descr.
18741 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
18742 instead of appending DW_OP_deref*.
18743
18744 2009-05-06 Michael Matz <matz@suse.de>
18745
18746 PR middle-end/40021
18747 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
18748 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
18749
18750 2009-05-06 Rafael Avila de Espindola <espindola@google.com>
18751
18752 * Makefile.in (install-plugin): Fix srcdir handling.
18753
18754 2009-05-06 Andrey Belevantsev <abel@ispras.ru>
18755
18756 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
18757 when processing for not_regs_needed bitmap.
18758 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
18759 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
18760 handling it for rhs.
18761
18762 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
18763
18764 * config/i386/i386.md (unnamed inc/dec peephole): Use
18765 optimize_insn_for_size_p instead of optimize_size.
18766 * config/i386/predicates.md (incdec_operand): Likewise.
18767 (aligned_operand): Likewise.
18768 * config/i386/sse.md (divv8sf3): Likewise.
18769 (sqrtv8sf2): Likewise.
18770
18771 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
18772
18773 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
18774
18775 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
18776
18777 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
18778
18779 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
18780 ssemodesuffixf2c with avxmodesuffixf2c.
18781
18782 2009-05-06 Joseph Myers <joseph@codesourcery.com>
18783
18784 PR c/40032
18785 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
18786
18787 2009-05-05 Jakub Jelinek <jakub@redhat.com>
18788
18789 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
18790 (struct tree_base): Adjust spacing for 8 bit boundaries.
18791 (struct tree_decl_common): Add decl_by_reference_flag bit.
18792 (DECL_BY_REFERENCE): Adjust.
18793 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
18794 print DECL_BY_REFERENCE bit.
18795 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
18796 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
18797 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
18798 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
18799 unconditionally.
18800
18801 PR middle-end/39666
18802 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
18803 range of the type, but default label is missing, add it with one
18804 of the existing labels instead of adding a new label for it.
18805
18806 2009-05-05 Joseph Myers <joseph@codesourcery.com>
18807
18808 * dwarf.h: Remove.
18809
18810 2009-05-05 Rafael Avila de Espindola <espindola@google.com>
18811
18812 * Makefile.in (enable_plugin, plugin_includedir): New.
18813 (install): Depend on install-plugin.
18814 (PLUGIN_HEADERS): New.
18815 (install-plugin): New.
18816 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
18817
18818 2009-05-05 Richard Guenther <rguenther@suse.de>
18819
18820 PR tree-optimization/40022
18821 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
18822 the only vuse.
18823 (phivn_valid_p): Fix tuplification error, simplify.
18824 (phiprop_insert_phi): Add dumps.
18825 (propagate_with_phi): Simplify.
18826
18827 2009-05-05 Richard Guenther <rguenther@suse.de>
18828
18829 PR middle-end/40023
18830 * builtins.c (gimplify_va_arg_expr): Properly build the address.
18831
18832 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
18833
18834 * tree.h (strip_float_extensions): Remove duplicate declaration.
18835 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
18836 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
18837 block_ultimate_origin): Rearrange the declarations line to match the
18838 comment that indicates the .c file which the functions are defined.
18839 (dwarf2out_*, set_decl_rtl): Add comment.
18840 (get_base_address): Adjust comment.
18841 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
18842 declarations line and add comment.
18843 (is_builtin_name): Add blank after function name, for clarity.
18844
18845 2009-05-04 Joseph Myers <joseph@codesourcery.com>
18846
18847 * attribs.c (decl_attributes): Use %qE for identifiers in
18848 diagnostics.
18849 * cgraphunit.c (verify_cgraph_node): Translate function names to
18850 locale character set in diagnostics.
18851 * coverage.c (get_coverage_counts): Use %qE for identifiers in
18852 diagnostics.
18853 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
18854 Document that functions are named in UTF-8.
18855 * expr.c (expand_expr_real_1): Translate function names to locale
18856 character set in diagnostics.
18857 * gimplify.c (omp_notice_variable, omp_is_private,
18858 gimplify_scan_omp_clauses): Use %qE for identifiers in
18859 diagnostics.
18860 * langhooks.c (lhd_print_error_function): Translate function names
18861 to locale character set.
18862 * langhooks.h (decl_printable_name): Document that return value is
18863 in internal character set.
18864 * stmt.c: Include pretty-print.h
18865 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
18866 diagnostics.
18867 (resolve_operand_name_1): Translate named operand name to locale
18868 character set.
18869 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
18870 diagnostics.
18871 * toplev.c (announce_function): Translate function names to locale
18872 character set.
18873 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
18874 (default_tree_printer): Use pp_identifier or translate identifiers
18875 to locale character set. Mark "<anonymous>" for translation.
18876 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
18877 for identifiers in diagnostics.
18878 * tree.c (handle_dll_attribute): Use %qE for identifiers in
18879 diagnostics.
18880 * varasm.c (output_constructor): Use %qE for identifiers in
18881 diagnostics.
18882
18883 2009-05-04 Rafael Avila de Espindola <espindola@google.com>
18884
18885 * configure.ac: use ` ` instead of $()
18886 * configure: Regenerate.
18887
18888 2009-05-05 Ben Elliston <bje@au.ibm.com>
18889
18890 * config/pa/linux-atomic.c: Eliminate conditional include of
18891 errno.h on non-LP64 systems to simplify build requirements.
18892
18893 2009-05-04 Joseph Myers <joseph@codesourcery.com>
18894
18895 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
18896 diagnostics.
18897 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
18898 and pass value to identifier_to_locale.
18899 (warn_variable_length_array): Make name a tree.
18900 (grokdeclarator): Separate diagnostic texts for named and unnamed
18901 declarators. Use %qE for named declarators.
18902 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
18903 diagnostics.
18904 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
18905 identifiers in diagnostics.
18906 * c-typeck.c (push_member_name, start_init): Pass identifiers to
18907 identifier_to_locale. Mark "anonymous" strings for translation.
18908
18909 2009-05-04 Michael Eager <eager@eagercon.com>
18910
18911 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
18912 address for DImode/DFmode only if double-precision FP regs.
18913
18914 2009-05-04 Michael Eager <eager@eagercon.com>
18915
18916 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
18917 TARGET_SINGLE_FLOAT check.
18918
18919 2009-05-04 Michael Eager <eager@eagercon.com>
18920
18921 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
18922
18923 2009-05-04 Michael Eager <eager@eagercon.com>
18924
18925 * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
18926 * config/rs6000/t-xilinx: New
18927
18928 2009-05-04 Paolo Bonzini <bonzini@gnu.org>
18929
18930 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
18931 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
18932 * gcc/explow.c (memory_address): Use target hook.
18933 * gcc/targhooks.c (default_legitimize_address): New.
18934 * gcc/targhooks.h (default_legitimize_address): New.
18935 * gcc/target.h (legitimize_address): New.
18936 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
18937 (TARGET_INITIALIZER): Include it.
18938 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
18939
18940 * config/bfin/bfin-protos.h (legitimize_address): Remove.
18941 * config/bfin/bfin.c (legitimize_address): Remove.
18942 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
18943 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
18944 Remove.
18945 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
18946 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
18947
18948 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
18949 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
18950 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
18951 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
18952 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
18953 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
18954 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
18955 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
18956 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
18957 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
18958 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
18959 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
18960 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
18961 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
18962 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
18963 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
18964 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
18965 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
18966 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
18967 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
18968 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
18969 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
18970 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
18971
18972 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
18973 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
18974 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
18975 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
18976 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
18977 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
18978 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
18979 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
18980 (thumb_legitimize_address): Delete.
18981 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
18982 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
18983 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
18984 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
18985 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
18986 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
18987 Delete.
18988 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
18989 Delete.
18990
18991 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
18992 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
18993 * config/m32r/m32r.c (m32r_legitimize_address): New.
18994 * config/m68k/m68k.c (m68k_legitimize_address): New.
18995 * config/score/score.c (score_legitimize_address): Standardize.
18996 * config/score/score3.c (score3_legitimize_address): Standardize.
18997 * config/score/score3.h (score3_legitimize_address): Adjust.
18998 * config/score/score7.c (score7_legitimize_address): Standardize.
18999 * config/score/score7.h (score7_legitimize_address): Adjust.
19000 * config/sh/sh.c (sh_legitimize_address): New.
19001 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
19002
19003 * gcc/config/s390/s390.c (legitimize_address): Rename to...
19004 (s390_legitimize_address): ... this.
19005 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
19006 (sparc_legitimize_address): ... this.
19007 * gcc/config/i386/i386.c (legitimize_address): Rename to...
19008 (ix86_legitimize_address): ... this.
19009 * gcc/config/avr/avr.c (legitimize_address): Rename to...
19010 (avr_legitimize_address): ... this.
19011 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
19012 (mn10300_legitimize_address): ... this.
19013 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
19014 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
19015 (alpha_expand_mov): Adjust call.
19016
19017 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
19018 * config/spu/spu.c (spu_legitimize_address): Likewise.
19019 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
19020 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
19021
19022 2009-05-04 Joseph Myers <joseph@codesourcery.com>
19023
19024 * intl.c (locale_encoding, locale_utf8): New.
19025 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
19026 * intl.h (locale_encoding, locale_utf8): Declare.
19027 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
19028 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
19029 New.
19030 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
19031 argument.
19032 (pp_tree_identifier): Define to call pp_base_tree_identifier.
19033 (pp_base_tree_identifier): Declare as function.
19034 (identifier_to_locale): Declare.
19035 * Makefile.in (pretty-print.o): Update dependencies.
19036 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
19037
19038 2009-05-04 Richard Guenther <rguenther@suse.de>
19039
19040 PR middle-end/40015
19041 * builtins.c (fold_builtin_memory_op): Do not decay to element
19042 type if the size matches the whole array.
19043
19044 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
19045
19046 * expmed.c (synth_mult): When trying out a shift, pass the result
19047 of a signed shift.
19048
19049 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
19050
19051 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
19052 (shiftsub1_cost): New.
19053 (init_expmed): Compute shiftsub1_cost.
19054 (synth_mult): Optimize multiplications by constants of the form
19055 -(2^^m-1) for some constant positive integer m.
19056
19057 2009-05-03 Richard Guenther <rguenther@suse.de>
19058
19059 PR c/39983
19060 * c-typeck.c (array_to_pointer_conversion): Do not built
19061 ADDR_EXPRs of arrays of pointer-to-element type.
19062 * c-gimplify.c (c_gimplify_expr): Revert change fixing
19063 up wrong ADDR_EXPRs after-the-fact.
19064 * c-common.c (strict_aliasing_warning): Strip pointer
19065 conversions for obtaining the original type.
19066 * builtins.c (fold_builtin_memset): Handle array types.
19067 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
19068 and array types
19069
19070 2009-05-03 Richard Guenther <rguenther@suse.de>
19071
19072 PR middle-end/23329
19073 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
19074 Do not lose casts from array types with unknown extent to array
19075 types with known extent.
19076 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
19077 alias set compatibility.
19078
19079 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
19080
19081 * flags.h (extra_warnings): Delete.
19082 * toplev.c (process_options): Handle Wuninitialized here.
19083 * opts.c (extra_warnings): Delete.
19084 (set_Wextra): Delete.
19085 (common_handle_option): -Wextra can be handled automatically.
19086 * c-opts.c (c_common_handle_option): Delete obsolete code.
19087 (c_common_post_options): Simplify comment.
19088 * common.opt (W): Add Var.
19089 (Wextra): Add Var.
19090 (Wuninitialized): Initialize to -1.
19091
19092 2009-05-03 Adam Nemet <anemet@caviumnetworks.com>
19093 Richard Guenther <rguenther@suse.de>
19094
19095 * expr.c (get_def_for_expr): New function.
19096 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
19097 SSA rather than trees.
19098 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
19099 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
19100
19101 2009-05-03 Joseph Myers <joseph@codesourcery.com>
19102
19103 * c-common.c (reswords): Add _Imaginary.
19104 * c-common.c (enum rid): Add RID_IMAGINARY.
19105
19106 2009-05-03 Paolo Bonzini <bonzini@gnu.org>
19107
19108 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
19109 Patch by Richard Guenther.
19110
19111 2009-05-03 Anatoly Sokolov <aesok@post.ru>
19112
19113 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
19114 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
19115 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
19116 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
19117 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
19118 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
19119 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
19120 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
19121 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
19122 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
19123 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
19124 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
19125 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
19126 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
19127 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
19128 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
19129 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
19130 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
19131
19132 2009-05-02 Richard Guenther <rguenther@suse.de>
19133
19134 PR tree-optimization/39940
19135 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
19136 doing so.
19137
19138 2009-05-02 Richard Guenther <rguenther@suse.de>
19139
19140 PR middle-end/40001
19141 * tree-ssa.c (execute_update_addresses_taken): Properly check
19142 if we can mark a variable DECL_GIMPLE_REG_P.
19143 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
19144 back to the end of the function.
19145 (is_gimple_reg_type): Remove complex type special casing.
19146 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
19147 if not optimizing.
19148
19149 2009-05-02 Ben Elliston <bje@au.ibm.com>
19150
19151 * doc/collect2.texi (Collect2): Document search path behaviour
19152 when configured with --with-ld.
19153
19154 2009-05-02 Jan Hubicka <jh@suse.cz>
19155
19156 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
19157 parameter; update callers.
19158 (coalesce_cost_edge): EH edges are costier because they needs
19159 splitting even if not critical and even more costier when there are
19160 multiple EH predecestors.
19161
19162 2009-05-02 Jan Hubicka <jh@suse.cz>
19163
19164 * except.c (remove_eh_handler_and_replace): Handle updating after
19165 removing TRY blocks.
19166
19167 2009-05-02 Eric Botcazou <ebotcazou@adacore.com>
19168
19169 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
19170
19171 2009-05-02 Steven Bosscher <steven@gcc.gnu.org>
19172
19173 * varasm.c: Do not include c-pragma.h.
19174 * attribs.c: Do not incude c-common.h.
19175
19176 2009-05-01 Michael Matz <matz@suse.de>
19177
19178 * calls.c (initialize_argument_information): Handle SSA names like
19179 decls with a non MEM_P DECL_RTL.
19180
19181 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
19182
19183 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
19184 * ipa-utils.c: Likewise.
19185 * ipa-type-escape.c: Likewise.
19186 * cgraphunit.c Do not include c-common.h.
19187 * ipa-pure-const.c: Likewise.
19188 * tree-if-conv.c: Likewise.
19189 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
19190 * ipa-struct-reorg.c: Likewise.
19191 * tree-nomudflap.c: Likewise.
19192 * tree-ssa-structalias.c: Likewise.
19193
19194 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
19195
19196 * store-motion.c: Many cleanups to make this pass a first-class
19197 citizen instead of an appendix to gcse load motion. Add TODO list
19198 to make this pass faster/cleaner/better.
19199
19200 (struct ls_expr): Post gcse.c-split cleanups.
19201 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
19202 "stores" field to "avail_stores".
19203 (pre_ldst_mems): Rename to store_motion_mems.
19204 (pre_ldst_table): Rename to store_motion_mems_table.
19205 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
19206 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
19207 (ldst_entry): Rename to st_expr_entry, update users.
19208 (free_ldst_entry): Rename to free_st_expr_entry, update users.
19209 (free_ldst_mems): Rename to free_store_motion_mems, update users.
19210 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
19211 update caller.
19212 (first_ls_expr): Rename to first_st_expr, update users.
19213 (next_ls_expr): Rename to next_st_expr, update users.
19214 (print_ldst_list): Rename to print_store_motion_mems. Print names of
19215 fields properly for store motion instead of names inherited from load
19216 motion in gcse.c.
19217 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
19218 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
19219 are done with it.
19220
19221 (ae_kill): Rename to st_kill, update users.
19222 (ae_gen): Rename to st_avloc, update users.
19223 (transp): Rename to st_transp, update users.
19224 (pre_insert_map): Rename to st_insert_map, update users.
19225 (pre_delete_map): Rename to st_delete_map, update users.
19226 (insert_store, build_store_vectors, free_store_memory,
19227 one_store_motion_pass): Update for abovementioned changes.
19228
19229 (gcse_subst_count, gcse_create_count): Remove.
19230 (one_store_motion_pass): New statistics counters "n_stores_deleted"
19231 and "n_stores_created", local variables.
19232
19233 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
19234 use for_each_rtx.
19235
19236 (regvec, compute_store_table_current_insn): Remove.
19237 (reg_set_info, reg_clear_last_set): Remove.
19238 (compute_store_table): Use DF caches instead of local dataflow
19239 solvers.
19240
19241 2009-05-01 Joseph Myers <joseph@codesourcery.com>
19242
19243 * c-objc-common.c (c_tree_printer): Print identifiers with
19244 pp_identifier, not pp_string. Mark "({anonymous})" for
19245 translation.
19246 * c-pretty-print.c (pp_c_ws_string): New.
19247 (pp_c_cv_qualifier, pp_c_type_specifier,
19248 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
19249 pp_c_storage_class_specifier, pp_c_function_specifier,
19250 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
19251 pp_c_primary_expression, pp_c_postfix_expression,
19252 pp_c_unary_expression, pp_c_shift_expression,
19253 pp_c_relational_expression, pp_c_equality_expression,
19254 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
19255 use pp_string and pp_c_ws_string in place of pp_identifier and
19256 pp_c_identifier for non-identifiers. Mark English strings for
19257 translation.
19258 * c-pretty-print.h (pp_c_ws_string): Declare.
19259
19260 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
19261 Roland McGrath <roland@redhat.com>
19262
19263 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
19264 (ENABLE_LD_BUILDID): New configuration option.
19265 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
19266 (LINK_BUILDID_SPEC): New macro.
19267 (init_spec): If defined, prepend it between LINK_EH_SPEC and
19268 link_spec.
19269 * doc/install.texi: Document --enable-linker-build-id option.
19270 * configure: Rebuild.
19271 * config.in: Rebuild.
19272
19273 2009-04-30 Adam Nemet <anemet@caviumnetworks.com>
19274
19275 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
19276 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
19277 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
19278 MIPS_GP_SAVE_AREA_SIZE.
19279 * config/mips/mips.c (struct mips_frame_info): Update comment
19280 before arg_pointer_offset and hard_frame_pointer_offset.
19281 (mips_compute_frame_info): Update diagram before function: to
19282 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
19283 indicate the position of frame_pointer_rtx with -fstack-protector and
19284 to show args_size. Don't allocate cprestore area for leaf functions
19285 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
19286 cprestore_size.
19287 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
19288
19289 2009-04-30 Michael Matz <matz@suse.de>
19290
19291 PR tree-optimization/39955
19292 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
19293
19294 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
19295
19296 * ira.c (setup_cover_and_important_classes): Use safe macro
19297 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
19298 directly.
19299 * genpreds.c (write_tm_preds_h): Output suitable definition of
19300 REG_CLASS_FOR_CONSTRAINT.
19301
19302 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
19303
19304 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
19305 instead of an int.
19306 * bitmap.c (bitmap_descriptor): Likewise.
19307 * ggc-common.c (loc_descriptor): Likewise.
19308 * varray.c (varray_descriptor): Likewise.
19309 * vec.c (vec_descriptor): Likewise.
19310
19311 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
19312
19313 * Makefile.in (dce.o): Add $(EXCEPT_H).
19314 * dce.c: Include except.h and delete redundant vector definitions.
19315 (deletable_insn_p): Return false for non-call insns that can throw
19316 if DF is running.
19317
19318 2009-04-30 Steven Bosscher <steven@gcc.gnu.org>
19319
19320 * gcse.c (ae_gen): Remove.
19321 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
19322 and make non-static function to make it available in store-motion.c.
19323 Update call sites with search-and-replace.
19324 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
19325 extract_mentioned_regs, extract_mentioned_regs_helper,
19326 find_moveable_store, compute_store_table, load_kills_store, find_loads,
19327 store_killed_in_insn, store_killed_after, store_killed_before,
19328 build_store_vectors, insert_insn_start_basic_block, insert-store,
19329 remove_reachable_equiv_notes, replace_store_insn, delete_store,
19330 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
19331 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
19332 * store-motion.c: ...new file. Also copy data structures from gcse.c
19333 and clean up to remove parts not used by store motion.
19334 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
19335 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
19336
19337 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19338
19339 PR target/38571
19340 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
19341 when optimizing for size.
19342
19343 2009-04-30 Hans-Peter Nilsson <hp@axis.com>
19344
19345 * gcse.c (gcse_constant_p): Fix typo in last change.
19346
19347 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
19348
19349 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
19350
19351 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
19352
19353 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
19354
19355 2009-04-29 James E. Wilson <wilson@codesourcery.com>
19356
19357 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
19358 CONST_HIGH_PART result.
19359
19360 2009-04-29 Anatoly Sokolov <aesok@post.ru>
19361
19362 * config/avr/avr.c (initial_elimination_offset): Rename to
19363 avr_initial_elimination_offset.
19364 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
19365 change return type to bool.
19366 (avr_can_eliminate): New function.
19367 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
19368 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
19369 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
19370 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
19371 avr_initial_elimination_offset.
19372 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
19373 (avr_initial_elimination_offset): Define.
19374
19375 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
19376 Steven Bosscher <steven@gcc.gnu.org>
19377
19378 PR rtl-optimization/39938
19379 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
19380 * cfgrtl.c: Include insn-attr.h.
19381 (rest_of_pass_free_cfg): New function.
19382 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
19383 * resource.c (init_resource_info): Remove call to df_analyze.
19384
19385 2009-04-29 Richard Guenther <rguenther@suse.de>
19386
19387 PR target/39943
19388 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
19389 allow conversion to signed integers.
19390
19391 2009-04-29 Richard Guenther <rguenther@suse.de>
19392
19393 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
19394 shifts of floating point vectors if the shift amount is
19395 a constant multiple of the element size.
19396
19397 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
19398 Michael Matz <matz@suse.de>
19399
19400 PR middle-end/39927
19401 PR bootstrap/39929
19402 * tree-outof-ssa.c (emit_partition_copy): New function.
19403 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
19404 insert_part_to_rtx_on_edge): Perform the partition base var
19405 copy using emit_partition_copy.
19406 (insert_value_copy_on_edge): Convert constants to the right mode.
19407 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
19408 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
19409
19410 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
19411
19412 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
19413 scan backwards to try to find a constant to initialize it.
19414
19415 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
19416 insn before the loop_end instruction, don't look past labels.
19417
19418 2009-04-29 Richard Guenther <rguenther@suse.de>
19419
19420 PR middle-end/39937
19421 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
19422 loose type conversions.
19423 (forward_propagate_addr_expr): Fix tuplification bug. Remove
19424 stmts only if there are no uses of its definition.
19425
19426 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
19427
19428 * config/bfin/bfin.h (splitting_loops): Declare.
19429 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
19430 Reorder bit definitions to be ascending.
19431 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
19432 * config/bfin/bfin.c (splitting_loops): New variable.
19433 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
19434 (struct loop_info): Remove members INIT and LOOP_INIT.
19435 (bfin_optimize_loop): Don't set them. Reorder the code that generates
19436 the LSETUP sequence. Allow LC to be loaded from any register, but
19437 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
19438 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
19439 set to 1.
19440 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
19441 of reload_completed.
19442
19443 From Jie Zhang:
19444 * config/bfin/bfin.md (movsi_insn): Refine constraints.
19445
19446 2009-04-29 Rafael Avila de Espindola <espindola@google.com>
19447
19448 * Makefile.in (PLUGIN_VERSION_H): New.
19449 (OBJS-common): Remove plugin-version.o.
19450 (plugin.o): Depend on (PLUGIN_VERSION_H).
19451 (plugin-version.o): Remove.
19452 * configure: Regenerate
19453 * configure.ac: Create plugin-version.h.
19454 * gcc-plugin.h (plugin_gcc_version): Remove.
19455 (plugin_default_version_check): Change signature.
19456 * plugin-version.c: Remove.
19457 * plugin.c: Include plugin-version.h.
19458 (str_plugin_gcc_version_name): Remove.
19459 (try_init_one_plugin): Pass gcc version to plugin_init.
19460 (plugin_default_version_check): Both gcc and plugin versions are now
19461 arguments.
19462
19463 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
19464
19465 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
19466 problematic last insns. Test for TYPE_CALL rather than CALL_P.
19467 Remove special case testing for last insn of inner loops. Don't fail
19468 if the loop ends with a jump, emit an extra nop instead.
19469
19470 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
19471 DREGS rather than comparing directly. Remove code that tries to
19472 account for latencies.
19473
19474 2009-04-29 Richard Guenther <rguenther@suse.de>
19475
19476 PR tree-optimization/39941
19477 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
19478 eliminating an indirect call.
19479
19480 2009-04-29 Richard Guenther <rguenther@suse.de>
19481
19482 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
19483 parameter. Allow invariants as base if !require_lvalue.
19484 (verify_gimple_assign_single): Adjust.
19485
19486 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
19487
19488 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
19489 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
19490 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
19491 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
19492 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
19493 a VEC_SELECT.
19494 * config/bfin/bfin.c (bfin_expand_builtin,
19495 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
19496
19497 2009-04-28 Richard Guenther <rguenther@suse.de>
19498
19499 * tree-vect-loop.c (get_initial_def_for_induction): Use
19500 correct types for pointer increment.
19501
19502 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19503
19504 * toplev.c (print_version): Update GMP version string calculation.
19505
19506 2009-04-28 Eric Botcazou <ebotcazou@adacore.com>
19507
19508 PR rtl-optimization/39938
19509 * resource.c (init_resource_info): Add call to df_analyze.
19510
19511 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19512
19513 * config/alpha/alpha.md (usegp): Cast the result of
19514 alpha_find_lo_sum_using_gp to enum attr_usegp.
19515 * config/alpha/alpha.c (override_options): Remove end-of-structure
19516 marker element from cpu_table. Use array size of cpu_table to handle
19517 -mcpu and -mtune options.
19518 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
19519
19520 2009-04-28 Joseph Myers <joseph@codesourcery.com>
19521
19522 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
19523 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
19524 tune_32 and tune_64.
19525 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
19526 support on PowerPC.
19527 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
19528 * config/rs6000/option-defaults.h: ... here. New file.
19529 (OPT_64, OPT_32): Define.
19530 (MASK_64BIT): Define to 0 if not already defined.
19531 (OPT_ARCH64, OPT_ARCH32): Define.
19532 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
19533 and tune_64.
19534
19535 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19536
19537 * config/arm/arm.c (arm_override_options): Emit error on using
19538 fpa with AAPCS.
19539
19540 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19541
19542 PR rtl-optimization/39914
19543 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
19544 registers for allocnos created from user-defined variables only
19545 when not optimizing.
19546
19547 2009-04-28 Richard Guenther <rguenther@suse.de>
19548
19549 PR middle-end/39937
19550 * fold-const.c (fold_binary): Use distribute_real_division only
19551 on float types.
19552
19553 2009-04-28 Steve Ellcey <sje@cup.hp.com>
19554
19555 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
19556 add hpux-stdint.h to tm_file.
19557 (hppa[12]*-*-hpux11*): Ditto.
19558 (ia64*-*-hpux*): Ditto.
19559 * config/hpux-stdint.h: New.
19560 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
19561 __STDC_EXT__ for all compiles.
19562 * config/pa/pa-hpux.h: Ditto.
19563 * config/pa/pa-hpux10.h: Ditto.
19564 * config/pa/pa-hpux11.h: Ditto.
19565
19566 2009-04-28 Catherine Moore <clm@codesourcery.com>
19567
19568 * debug.h (set_name): Add comment.
19569
19570 2009-04-28 Andrew Pinski <pinskia@gmail.com>
19571
19572 PR target/39929
19573 * config/darwin.c (machopic_gen_offset): Check
19574 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
19575 * config/arm/arm.c (require_pic_register): Likewise.
19576
19577 2009-04-28 Paolo Bonzini <bonzini@gnu.org>
19578
19579 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
19580 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
19581 m32c_promote_prototypes): Delete.
19582
19583 2009-04-28 Michael Matz <matz@suse.de>
19584
19585 PR middle-end/39922
19586 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
19587 constants.
19588
19589 2009-04-28 Richard Guenther <rguenther@suse.de>
19590
19591 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
19592
19593 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19594
19595 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
19596 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
19597 * config/arm/arm-tune.md: Regenerate.
19598
19599 2009-04-28 Alexander Monakov <amonakov@ispras.ru>
19600
19601 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
19602 block if there are complex incoming edges.
19603 (sel_merge_blocks): Remove useless assert.
19604 (sel_redirect_edge_and_branch): Check that edge was redirected.
19605 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
19606 (sel_find_rgns): Delete declaration.
19607 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
19608 the region when it is not a preheader.
19609
19610 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19611
19612 PR c/39323
19613 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
19614
19615 2009-04-28 Richard Guenther <rguenther@suse.de>
19616
19617 * tree.h (SSA_NAME_VALUE): Remove.
19618 (struct tree_ssa_name): Remove value_handle member.
19619 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
19620 array for jump threading.
19621 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
19622 SSA_NAME_VALUEs.
19623 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
19624 * tree-flow.h (threadedge_initialize_values): Declare.
19625 (threadedge_finalize_values): Likewise.
19626 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
19627 (SSA_NAME_VALUE): Define.
19628 (threadedge_initialize_values): New function.
19629 (threadedge_finalize_values): Likewise.
19630 * tree-ssa-dom.c (ssa_name_values): New global variable.
19631 (SSA_NAME_VALUE): Define.
19632 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
19633
19634 2009-04-28 Ira Rosen <irar@il.ibm.com>
19635
19636 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
19637 Use REPORT_VECTORIZED_LOCATIONS instead
19638 REPORT_VECTORIZED_LOOPS.
19639 * tree-vectorizer.c (vect_verbosity_level): Make static.
19640 (vect_loop_location): Rename to vect_location.
19641 (vect_set_verbosity_level): Update comment.
19642 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
19643 and vect_location.
19644 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
19645 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
19646 instead REPORT_UNVECTORIZED_LOOPS.
19647 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
19648 and vect_loop_def to vect_external_def and vect_internal_def.
19649 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
19650 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
19651 REPORT_UNVECTORIZED_LOCATIONS.
19652 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
19653 and vect_used_in_loop and to vect_unused_in_scope and
19654 vect_used_in_scope.
19655 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
19656 (vect_verbosity_level): Remove declaration.
19657 (vect_analyze_operations): Likewise.
19658 (vect_analyze_stmt): Declare.
19659 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
19660 REPORT_UNVECTORIZED_LOCATIONS.
19661 (vect_get_loop_niters): Fix indentation.
19662 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
19663 (vect_analyze_loop_operations): New function.
19664 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
19665 vect_analyze_operations.
19666 (vect_is_simple_reduction): Use new names.
19667 (vectorizable_live_operation, vect_transform_loop): Likewise.
19668 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
19669 to specify whether the data references can be a part of interleaving
19670 chain.
19671 (vect_analyze_data_ref_dependence): Use new names.
19672 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
19673 (vect_create_addr_base_for_vector_ref): Remove redundant code.
19674 * tree-vect-patterns.c (widened_name_p): Use new names.
19675 (vect_recog_dot_prod_pattern): Likewise.
19676 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
19677 (process_use, vect_mark_stmts_to_be_vectorized,
19678 vect_model_simple_cost, vect_model_store_cost,
19679 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
19680 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
19681 vectorizable_operation, vectorizable_type_demotion,
19682 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
19683 vectorizable_condition): Likewise.
19684 (vect_analyze_operations): Split into vect_analyze_loop_operations
19685 and ...
19686 (vect_analyze_stmt): ... new function.
19687 (new_stmt_vec_info): Use new names.
19688 (vect_is_simple_use): Use new names and fix comment.
19689 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
19690 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
19691
19692 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19693
19694 PR target/39911
19695 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
19696 and integer modes for x87 operands. Do not ICE for unsupported size,
19697 generate error instead. Generate error for unsupported operand types.
19698 ['z']: Do not handle HImode memory operands specially. Warning
19699 for floating-point operands. Fallthru to 'Z' for unsupported operand
19700 types. Do not ICE for unsupported size, generate error instead.
19701 (output_387_binary_op): Use %Z to output operands.
19702 (output_fp_compare): Ditto.
19703 (output_387_reg_move): Ditto.
19704
19705 2009-04-28 Ben Elliston <bje@au.ibm.com>
19706
19707 PR c++/35652
19708 Revert:
19709
19710 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19711
19712 * builtins.c (c_strlen): Do not warn here.
19713 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
19714 * c-common.c (pointer_int_sum): Take an explicit location.
19715 Warn about offsets out of bounds.
19716 * c-common.h (pointer_int_sum): Adjust declaration.
19717
19718 2009-04-27 Ian Lance Taylor <iant@google.com>
19719
19720 * collect2.c (is_ctor_dtor): Change type of ret field in struct
19721 names to symkind.
19722 * dce.c (run_fast_df_dce): Change type of old_flags to int.
19723 * df-core.c (df_set_flags): Change return type to int. Change
19724 type of old_flags to int.
19725 (df_clear_flags): Likewise.
19726 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
19727 (df_get_conditional_uses): Likewise.
19728 * df.h (df_set_flags, df_clear_flags): Update declarations.
19729 * dwarf2out.c (struct indirect_string_node): Change type of form
19730 field to enum dwarf_form.
19731 (AT_string_form): Change return type to enum dwarf_form.
19732 * fixed-value.c (fixed_compare): Add cast to enum type.
19733 * fwprop.c (update_df): Change 0 to VOIDmode.
19734 * gensupport.c: Change 0 to UNKNOWN.
19735 * gimple.h (gimple_cond_code): Add cast to enum type.
19736 * haifa-sched.c (reemit_notes): Add cast to enum type.
19737 * hooks.c (hook_int_void_no_regs): Remove function.
19738 * hooks.h (hook_int_void_no_regs): Remove declaration.
19739 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
19740 * predict.c (combine_predictions_for_insn): Add casts to enum type.
19741 * real.c (real_arithmetic): Add cast to enum type.
19742 (real_compare): Likewise.
19743 * target.h (struct gcc_target): Change return type of
19744 branch_target_register_class to enum reg_class.
19745 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
19746 default_branch_target_register_class.
19747 * targhooks.c (default_branch_target_register_class): New function.
19748 * targhooks.h (default_branch_target_register_class): Declare.
19749 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
19750 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
19751 cast to int.
19752 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
19753 ERROR_MARK.
19754 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
19755 vect_uninitialized_def. Change 0 to ERROR_MARK.
19756 * tree-vect-stmts.c (supportable_widening_operation): Don't
19757 initialize icode1 and icode2.
19758 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
19759 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
19760 and to STD_C89.
19761 (cmn_err_flag_specs): Change 0 to STD_C89.
19762 (cmn_err_char_table): Likewise.
19763 * config/arm/arm.c (get_arm_condition_code): Change type of code
19764 to enum arm_cond_code.
19765 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
19766 (IWMMXT_BUILTIN2): Likewise.
19767 (neon_builtin_type_bits): Don't define typedef.
19768 (neon_builtin_datum): Change type of bits field to int.
19769 (arm_expand_neon_args): Add cast to enum type.
19770 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
19771 TLS_MODEL_NONE.
19772 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
19773 casts to enum type.
19774 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
19775 MIPS_FP_COND_f.
19776 * config/mips/mips.md (jal_macro): Return enum constant.
19777 (single_insn): Likewise.
19778 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
19779 CODE_FOR_nothing.
19780 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19781 casts to enum type.
19782 * config/s390/s390.c (s390_tune_flags): Change type to int.
19783 (s390_arch_flags): Likewise.
19784 (s390_handle_arch_option): Change flags field of struct pta to int.
19785 * config/s390/s390.h (s390_tune_flags): Update declaration.
19786 (s390_arch_flags): Likewise.
19787 * config/sh/sh.c (prepare_move_operands): Compare
19788 tls_symbolic_operand result with enum constant.
19789 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
19790 (sh_expand_prologue): Add cast to enum type.
19791 (sh_expand_epilogue): Likewise.
19792 (tls_symbolic_operand): Change return type to enum tls_model.
19793 (fpscr_set_from_mem): Add cast to enum type.
19794 (legitimize_pic_address): Compare tls_symbolic_operand result with
19795 enum constant.
19796 (sh_target_reg_class): Change return type to enum reg_class.
19797 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
19798 PROCESSOR_xxx.
19799 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
19800 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
19801 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
19802 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
19803 (delayed_branch, tls_call_delay): Likewise.
19804 (eligible_for_sibcall_delay): Likewise.
19805 (eligible_for_return_delay): Likewise.
19806 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
19807 (spu_expand_builtin_1): Likewise.
19808
19809 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
19810 for all types of conversions.
19811 (output_init_element): Issue -Wc++-compat warning if needed when
19812 initializing a bitfield with enum type.
19813 * c-parser.c (c_parser_expression): Set original_type to
19814 original_type of right hand operand of comma operator.
19815
19816 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19817
19818 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
19819 grammar nits.
19820 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
19821 * doc/cpp.texi (Standard Predefined Macros)
19822 (Implementation-defined behavior): Likewise.
19823 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
19824 * doc/gimple.texi (GIMPLE Exception Handling)
19825 (@code{GIMPLE_ASSIGN}): Likewise.
19826 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
19827 * doc/invoke.texi (Warning Options, Optimize Options)
19828 (AVR Options, Darwin Options): Likewise.
19829 (Optimize Options): Reformulate -fwhole-program description.
19830 * doc/loop.texi (Lambda): Likewise.
19831 * doc/md.texi (Output Template, Define Constraints)
19832 (Standard Names, Insn Splitting): Likewise.
19833 * doc/options.texi (Option properties): Likewise.
19834 * doc/passes.texi (Tree-SSA passes): Likewise.
19835 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
19836 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
19837 (File Names and DBX): Likewise.
19838 * doc/trouble.texi (Incompatibilities): Likewise.
19839
19840 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
19841
19842 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
19843 instruction is correct.
19844
19845 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
19846
19847 Allow non-constant arguments to conversion intrinsics.
19848 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
19849 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
19850 * spu.c (print_operand): Handle 'v' and 'w'.
19851 (exp2_immediate_p, spu_gen_exp2): Define.
19852 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
19853 spu_convtf_1): Update parameter descriptions.
19854 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
19855 * constraints.md ('v', 'w'): New.
19856 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
19857 Remove.
19858 (i2f, I2F): New define_mode_attr.
19859 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
19860 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
19861 fixuns_truncv4sfv4si2): Update to use mode attribute.
19862 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
19863 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
19864 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
19865 patterns for combine.
19866
19867 2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
19868
19869 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
19870 (cprop, hoist, pre, store_motion): New debug counters.
19871 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
19872 is not an RTL pass anymore.
19873 (pass_profiling): Remove extern decl for pass removed in 2005.
19874 (pass_gcse, pass_jump_bypass): Remove.
19875 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
19876 to 0 for clean state.
19877 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
19878 * cse.c (gate_handle_cse_after_global_opts,
19879 rest_of_handle_cse_after_global_opts): New functions.
19880 (pass_cse_after_global_opts): New pass, does local CSE.
19881 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
19882 (TV_CPROP): New timevar.
19883 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
19884 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
19885 (gcse_main, recompute_all_luids): Remove.
19886 (compute_hash_table_work): Call max_reg_num instead of reading
19887 max_gcse_regno.
19888 (cprop_jump): Don't set run_jump_opt_after_gcse.
19889 (constprop_register): Always allow to alter jumps.
19890 (cprop_insn): Likewise.
19891 (do_local_cprop): Likewise.
19892 (local_cprop_pass): Likewise. Return non-zero if something changed.
19893 (cprop): Remove function, fold interesting bits into one_cprop_pass.
19894 (find_implicit_sets): Add note about missed optimization opportunity.
19895 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
19896 pass_rtl_cprop execute function.
19897 Don't bother tracking the pass number, each pass gets its own dumpfile
19898 now anyway.
19899 Always allow to alter jumpsand bypass jumps.
19900 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
19901 will just find no suitable set.
19902 (pre_edge_insert): Fix dumping, this function is for PRE only.
19903 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
19904 pass_rtl_pre execute function.
19905 (hoist_code): Return non-zero if something changed. Keep track of
19906 substitutions and insertions for statistics gathering similar to PRE.
19907 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
19908 called from the pass_rtl_hoist execute function. Show pass statistics.
19909 (compute_store_table): Use max_reg_num directly instead of using the
19910 formerly global max_gcse_regno.
19911 (build_store_vectors): Likewise.
19912 (replace_store_insn): Fix dumping.
19913 (store_motion): Rename to ...
19914 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
19915 pass, called from the pass_rtl_store_motion execute function. Keep
19916 track of substitutions and insertions for statistics gathering similar
19917 to PRE.
19918 (bypass_jumps): Remove, fold interesting bits into ...
19919 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
19920 from the pass_rtl_cprop execute function.
19921 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
19922 pass_jump_bypass): Remove.
19923 (gate_handle_gcse, rest_of_handle_gcse): Remove.
19924 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
19925 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
19926 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
19927 (gate_rtl_store_motion, execute_rtl_store_motion,
19928 pass_rtl_store_motion): New.
19929 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
19930 make it clear that -fcse-skip-blocks is a no-op for backward compat.
19931 * passes.c (init_optimization_passes): Remove pass_gcse and
19932 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
19933 and cse_after_global_opts in place of pass_gcse. Schedule cprop
19934 instead of pass_jump_bypass.
19935
19936 2009-04-27 Richard Guenther <rguenther@suse.de>
19937
19938 PR middle-end/39928
19939 * gimplify.c (gimplify_expr): If we are required to create
19940 a temporary make sure it ends up as register.
19941
19942 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
19943
19944 PR target/39903
19945 * config/i386/i386.c (construct_container): Don't call
19946 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
19947 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
19948
19949 2009-04-27 Michael Matz <matz@suse.de>
19950
19951 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
19952 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
19953 * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
19954 (dump_replaceable_exprs): Take a bitmap.
19955 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
19956 array.
19957 (expand_gimple_basic_block): Likewise.
19958 * tree-ssa-ter.c (struct temp_expr_table_d): Make
19959 replaceable_expressions member a bitmap.
19960 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
19961 (mark_replaceable): Likewise.
19962 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
19963 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
19964
19965 2009-04-27 Richard Guenther <rguenther@suse.de>
19966
19967 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
19968 (verify_stmts): Dispatch to gimple/type verification code.
19969 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
19970 issue with call argument types.
19971
19972 2009-04-27 Michael Matz <matz@suse.de>
19973
19974 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
19975 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
19976 to above.
19977
19978 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
19979 Eric Botcazou <ebotcazou@adacore.com>
19980
19981 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
19982 a label's basic block.
19983 (mark_target_live_regs): Tidy and rework obsolete comments.
19984 Change back DF problem to LIVE. If a label starts a basic block,
19985 assume that all registers that used to be live then still are.
19986 (init_resource_info): If a label starts a basic block, set its
19987 BLOCK_FOR_INSN accordingly.
19988 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
19989
19990 2009-04-27 Richard Guenther <rguenther@suse.de>
19991
19992 * tree-flow-inline.h (function_ann): Remove.
19993 (get_function_ann): Likewise.
19994 * tree-dfa.c (create_function_ann): Remove.
19995 * tree-flow.h (struct static_var_ann_d): Remove.
19996 (struct function_ann_d): Likewise.
19997 (union tree_ann_d): Remove fdecl member.
19998 (function_ann_t): Remove.
19999 (function_ann, get_function_ann, create_function_ann): Remove
20000 declarations.
20001
20002 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
20003
20004 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
20005
20006 2009-04-27 Jan Hubicka <jh@suse.cz>
20007
20008 * ipa-pure-const.c (struct funct_state_d): New fields
20009 state_previously_known, looping_previously_known; remove
20010 state_set_in_source.
20011 (analyze_function): Use new fields.
20012 (propagate): Avoid assumption that state_set_in_source imply
20013 nonlooping.
20014
20015 * tree-ssa-loop-niter.c (finite_loop_p): New function.
20016 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
20017 * cfgloop.h (finite_loop_p): Declare.
20018
20019 2009-04-26 Michael Matz <matz@suse.de>
20020
20021 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
20022
20023 2009-04-26 Michael Matz <matz@suse.de>
20024
20025 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
20026 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
20027 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
20028 pass_mark_used_blocks): Remove.
20029 * tree-optimize.c (pass_free_datastructures,
20030 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
20031 * passes.c (init_optimization_passes): Don't call
20032 pass_mark_used_blocks, remove dead code.
20033
20034 2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
20035
20036 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
20037 * tree-ssa-live.h (register_ssa_partition): Likewise.
20038
20039 2009-04-26 Michael Matz <matz@suse.de>
20040
20041 Expand from SSA.
20042 * builtins.c (fold_builtin_next_arg): Handle SSA names.
20043 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
20044 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
20045 SSA names.
20046 (compare_pairs): Swap cost comparison.
20047 (coalesce_ssa_name): Don't use change_partition_var.
20048 * tree-nrv.c (struct nrv_data): Add modified member.
20049 (finalize_nrv_r): Set it.
20050 (tree_nrv): Use it to update statements.
20051 (pass_nrv): Require PROP_ssa.
20052 * tree-mudflap.c (mf_decl_cache_locals,
20053 mf_build_check_statement_for): Use make_rename_temp.
20054 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
20055 * alias.c (find_base_decl): Handle SSA names.
20056 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
20057 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
20058 * rtl.h (set_reg_attrs_for_parm): Declare.
20059 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
20060 to "optimized", remove unused locals at finish.
20061 (execute_free_datastructures): Make global, call
20062 delete_tree_cfg_annotations.
20063 (execute_free_cfg_annotations): Don't call
20064 delete_tree_cfg_annotations.
20065
20066 * ssaexpand.h: New file.
20067 * expr.c (toplevel): Include ssaexpand.h.
20068 (expand_assignment): Handle SSA names the same as register variables.
20069 (expand_expr_real_1): Expand SSA names.
20070 * cfgexpand.c (toplevel): Include ssaexpand.h.
20071 (SA): New global variable.
20072 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
20073 (SSAVAR): New macro.
20074 (set_rtl): New helper function.
20075 (add_stack_var): Deal with SSA names, use set_rtl.
20076 (expand_one_stack_var_at): Likewise.
20077 (expand_one_stack_var): Deal with SSA names.
20078 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
20079 before unique numbers.
20080 (expand_stack_vars): Use set_rtl.
20081 (expand_one_var): Accept SSA names, add asserts for them, feed them
20082 to above subroutines.
20083 (expand_used_vars): Expand all partitions (without default defs),
20084 then only the local decls (ignoring those expanded already).
20085 (expand_gimple_cond): Remove edges when jumpif() expands an
20086 unconditional jump.
20087 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
20088 or remove abnormal edges. Ignore insns setting the LHS of a TERed
20089 SSA name.
20090 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
20091 members of SA; deal with PARM_DECL partitions here; expand
20092 all PHI nodes, free tree datastructures and SA. Commit instructions
20093 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
20094 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
20095 info and statements at start, collect garbage at finish.
20096 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
20097 (VAR_ANN_PARTITION) Remove.
20098 (change_partition_var): Don't declare.
20099 (partition_to_var): Always return SSA names.
20100 (var_to_partition): Only accept SSA names.
20101 (register_ssa_partition): Only check argument.
20102 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
20103 member.
20104 (delete_var_map): Don't free it.
20105 (var_union): Only accept SSA names, simplify.
20106 (partition_view_init): Mark only useful SSA names as used.
20107 (partition_view_fini): Only deal with SSA names.
20108 (change_partition_var): Remove.
20109 (dump_var_map): Use ssa_name instead of partition_to_var member.
20110 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
20111 basic blocks.
20112 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
20113 (struct _elim_graph): New member const_dests; nodes member vector of
20114 ints.
20115 (set_location_for_edge): New static helper.
20116 (create_temp): Remove.
20117 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
20118 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
20119 (new_elim_graph): Allocate const_dests member.
20120 (clean_elim_graph): Truncate const_dests member.
20121 (delete_elim_graph): Free const_dests member.
20122 (elim_graph_size): Adapt to new type of nodes member.
20123 (elim_graph_add_node): Likewise.
20124 (eliminate_name): Likewise.
20125 (eliminate_build): Don't take basic block argument, deal only with
20126 partition numbers, not variables.
20127 (get_temp_reg): New static helper.
20128 (elim_create): Use it, deal with RTL temporaries instead of trees.
20129 (eliminate_phi): Adjust all calls to new signature.
20130 (assign_vars, replace_use_variable, replace_def_variable): Remove.
20131 (rewrite_trees): Only do checking.
20132 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
20133 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
20134 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
20135 contains_tree_r, MAX_STMTS_IN_LATCH,
20136 process_single_block_loop_latch, analyze_edges_for_bb,
20137 perform_edge_inserts): Remove.
20138 (expand_phi_nodes): New global function.
20139 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
20140 functions, initialize new parameter, remember partitions having a
20141 default def.
20142 (finish_out_of_ssa): New global function.
20143 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
20144 don't reset in_ssa_p here, don't disable TER when mudflap.
20145 (pass_del_ssa): Remove.
20146 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
20147 partition members.
20148 (execute_free_datastructures): Declare.
20149 * Makefile.in (SSAEXPAND_H): New variable.
20150 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
20151 * basic-block.h (commit_one_edge_insertion): Declare.
20152 * passes.c (init_optimization_passes): Move pass_nrv and
20153 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
20154 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
20155 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
20156 (redirect_branch_edge): Deal with super block when expanding, split
20157 out jump patching itself into ...
20158 (patch_jump_insn): ... here, new static helper.
20159
20160 2009-04-26 Michael Matz <matz@suse.de>
20161
20162 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
20163 beyond num_ssa_names.
20164 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
20165 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
20166
20167 2009-04-26 Jakub Jelinek <jakub@redhat.com>
20168
20169 PR inline-asm/39543
20170 * fwprop.c (forward_propagate_asm): New function.
20171 (forward_propagate_and_simplify): Propagate also into __asm, if it
20172 doesn't increase the number of referenced registers.
20173
20174 PR c/39889
20175 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
20176
20177 2009-04-26 Jakub Jelinek <jakub@redhat.com>
20178
20179 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
20180 note_nonlocal_vla_type for nonlocal VLAs.
20181 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
20182 contains_remapped_vars, remap_vla_decls): New functions.
20183 (convert_nonlocal_reference_stmt): If not optimizing, call
20184 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
20185 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
20186 if it wasn't found in var_map.
20187 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
20188 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
20189 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
20190 declare_vars.
20191 * gimplify.c (nonlocal_vlas): New variable.
20192 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
20193 referenced VLAs.
20194 (gimplify_body): Create and destroy nonlocal_vlas.
20195
20196 * dwarf2out.c (loc_descr_plus_const): New function.
20197 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
20198 mem_loc_descriptor, loc_descriptor_from_tree_1,
20199 descr_info_loc, gen_variable_die): Use it.
20200
20201 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
20202 !TREE_STATIC VAR_DECLs.
20203 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
20204 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
20205 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
20206 DECL_BY_REFERENCE is valid.
20207 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
20208 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
20209 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
20210 Copy DECL_BY_REFERENCE.
20211 (struct nesting_copy_body_data): New type.
20212 (nesting_copy_decl): New function.
20213 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
20214 if they have variable length.
20215
20216 2009-04-26 Michael Matz <matz@suse.de>
20217
20218 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
20219 mark new temporaries for renaming.
20220
20221 2009-04-26 Joseph Myers <joseph@codesourcery.com>
20222
20223 PR c/39581
20224 * c-decl.c (global_bindings_p): Return negative value.
20225 (c_variable_size): New. Based on variable_size from
20226 stor-layout.c.
20227 (grokdeclarator): Call c_variable_size not variable_size.
20228
20229 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
20230
20231 * config/i386/i386.c (print_operand) ['z']: Fix typo.
20232
20233 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
20234
20235 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
20236 Redefine it to just use mingw/include.
20237 (ASM_SPEC): Rules for -m32 and -m64.
20238 (LINK_SPEC): Use Likewise.
20239 (SPEC_32): New define.
20240 (SPEC_64): Likewise.
20241 (SUB_LINK_SPEC): Likewise.
20242 (MULTILIB_DEFAULTS): New define.
20243 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
20244 Add multilib options.
20245 (MULTILIB_DIRNAMES): Likewise.
20246 (MULTILIB_OSDIRNAMES): Likewise.
20247 (LIBGCC): Likewise.
20248 (INSTALL_LIBGCC): Likewise.
20249
20250 2009-04-26 Joseph Myers <joseph@codesourcery.com>
20251
20252 PR c/39556
20253 * c-tree.h (enum c_inline_static_type): New.
20254 (record_inline_static): Declare.
20255 * c-decl.c (struct c_inline_static, c_inline_statics,
20256 record_inline_static, check_inline_statics): New.
20257 (pop_file_scope): Call check_inline_statics.
20258 (start_decl): Call record_inline_static instead of pedwarning
20259 directly for static in inline function.
20260 * c-typeck.c (build_external_ref): Call record_inline_static
20261 instead of pedwarning directly for static referenced in inline
20262 function.
20263
20264 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
20265
20266 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
20267 not new but only being rescanned.
20268 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
20269 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
20270 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
20271 record_set_info, compute_set, grealloc): Remove.
20272 (recompute_all_luids): New function.
20273 (gcse_main): Don't compute sets, and don't do related memory
20274 allocations/free-ing. If something changed before the end of the
20275 pass, update LUIDs using recompute_all_luids.
20276 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
20277 (free_gcse_mem): Don't free it either.
20278 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
20279 Use the df insn LUIDs.
20280 (load_killed_in_block): Likewise.
20281 (compute_hash_table_work): Don't compute reg_set_in_block.
20282 (compute_transp): Use DF_REG_DEF_CHAINs.
20283 (local_cprop_pass): Don't use compute_sets and related functions.
20284 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
20285 Use get_max_uid() instead of max_cuid.
20286 (insert_insn_end_basic_block, pre_insert_copy_insn,
20287 update_ld_motion_stores): Don't try to
20288 keep reg_set tables up to date.
20289 (pre_insert_copies): Use df insn LUIDs.
20290 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
20291 (reg_set_info): Don't use extra bitmap argument.
20292 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
20293 information to compute regs_set_in_block.
20294 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
20295 (bypass_jumps): Don't use compute_sets and friends.
20296
20297 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20298
20299 PR testsuite/39710
20300 * opts.c (undocumented_msg): Do not leave blank even with
20301 ENABLE_CHECKING.
20302
20303 2009-04-25 Joseph Myers <joseph@codesourcery.com>
20304
20305 * c-decl.c (build_enumerator): Allow values folding to integer
20306 constants but not integer constant expressions with a pedwarn if
20307 pedantic.
20308
20309 2009-04-25 Joseph Myers <joseph@codesourcery.com>
20310
20311 PR c/39582
20312 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
20313 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
20314 type is an integer constant.
20315
20316 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
20317
20318 PR target/39897
20319 * config/i386/i386.c (print_operand) ['z']: Revert handling of
20320 HImode operands.
20321
20322 2009-04-25 Joseph Myers <joseph@codesourcery.com>
20323
20324 PR c/39564
20325 * c-decl.c (grokdeclarator): Diagnose declarations of functions
20326 with variably modified return type and no storage class
20327 specifiers, except for the case of nested functions. Distinguish
20328 extern declarations of functions with variably modified return
20329 types from those of objects with variably modified types.
20330
20331 2009-04-25 Jan Hubicka <jh@suse.cz>
20332
20333 * tree.c (list_equal_p): New function.
20334 * tree.h (list_equal_p): Declare.
20335 * coretypes.h (edge_def, edge, const_edge, basic_block_def
20336 basic_block_def, basic_block, const_basic_block): New.
20337 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
20338 (redirect_eh_edge): New function.
20339 (make_eh_edge_update_phi): EH edges are not abnormal.
20340 * except.c: Include tree-flow.h.
20341 (list_match): New function.
20342 (eh_region_replaceable_by_p): New function.
20343 (replace_region): New function.
20344 (hash_type_list): New function.
20345 (hash_eh_region): New function.
20346 (eh_regions_equal_p): New function.
20347 (merge_peers): New function.
20348 (remove_unreachable_regions): Verify EH tree when checking;
20349 merge peers.
20350 (copy_eh_region_1): New function.
20351 (copy_eh_region): New function.
20352 (push_reachable_handler): New function.
20353 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
20354 regions without label but with live RESX.
20355 * except.h (redirect_eh_edge_to_label): New.
20356 * tree-flow.h (redirect_eh_edge): New.
20357 * coretypes.h (edge_def, edge, const_edge, basic_block_def
20358 basic_block_def, basic_block, const_basic_block): Remove.
20359 * Makefile.in (except.o): Add dependency on tree-flow.h
20360 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
20361 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
20362 Remove.
20363
20364 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
20365
20366 PR bootstrap/39645
20367 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
20368 on the destination of memcpy.
20369
20370 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
20371
20372 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
20373 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
20374 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
20375
20376 2009-04-25 Jan Hubicka <jh@suse.cz>
20377
20378 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
20379 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
20380 to be reached by different label than left.
20381 (update_eh_edges): Update comment; remove edge_to_remove if possible
20382 and return true if suceeded.
20383 (cleanup_empty_eh): Accept sharing map; handle shared regions.
20384 (cleanup_eh): Compute sharing map.
20385 * except.c (remove_eh_handler_and_replace): Add argument if we should
20386 update regions.
20387 (remove_unreachable_regions): Update for label sharing.
20388 (label_to_region_map): Likewise.
20389 (get_next_region_sharing_label): New function.
20390 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
20391 prev_try pointers.
20392 (remove_eh_handler): Update.
20393 (remove_eh_region_and_replace_by_outer_of): New function.
20394 * except.h (struct eh_region): Add next_region_sharing_label.
20395 (remove_eh_region_and_replace_by_outer_of,
20396 get_next_region_sharing_label): Declare.
20397 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
20398
20399 2009-04-25 Jan Hubicka <jh@suse.cz>
20400
20401 * tree-cfg.c (split_critical_edges): Split also edges where we can't
20402 insert code even if they are not critical.
20403
20404 2009-04-25 Jan Hubicka <jh@suse.cz>
20405
20406 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
20407 (gimple_can_remove_branch_p): EH edges won't remove branch by
20408 redirection.
20409 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
20410 updating of non-abnormal EH edges.
20411 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
20412 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
20413 (split_critical_edges): Split also edges where emitting code on them
20414 will lead to splitting later.
20415
20416 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
20417 H.J. Lu <hongjiu.lu@intel.com>
20418
20419 PR target/39590
20420 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
20421 the configured assembler supports fildq and fistpq mnemonics.
20422 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
20423 * configure: Regenerated.
20424 * config.in: Ditto.
20425
20426 * config/i386/i386.c (print_operand): Handle 'Z'.
20427 ['z']: Remove handling of special fild/fist suffixes.
20428 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
20429 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
20430 suffix of fild insn.
20431 (*floatsi<mode>2_vector_mixed): Ditto.
20432 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
20433 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
20434 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
20435 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
20436 * config/i386/gas.h (GAS_MNEMONICS): Remove.
20437
20438 2009-04-25 Ben Elliston <bje@au.ibm.com>
20439
20440 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
20441 the source of a set operation.
20442
20443 2009-04-25 Anatoly Sokolov <aesok@post.ru>
20444
20445 * target.h (struct gcc_target): Add case_values_threshold field.
20446 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
20447 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
20448 * targhooks.c (default_case_values_threshold): New function.
20449 * targhooks.h (default_case_values_threshold): Declare function.
20450 * stmt.c (expand_case): Use case_values_threshold target hook.
20451 * expr.h (case_values_threshold): Remove declartation.
20452 * expr.c (case_values_threshold): Remove function.
20453 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
20454
20455 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
20456 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
20457 (avr_case_values_threshold): Declare as static.
20458 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
20459
20460 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
20461 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
20462 (mn10300_case_values_threshold): New function.
20463
20464 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
20465
20466 * ira.c (setup_cover_and_important_classes): Add enum cast.
20467
20468 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
20469
20470 * genpreds.c (write_enum_constraint_num): Output definition of
20471 CONSTRAINT_NUM_DEFINED_P macro.
20472 * ira.c (setup_cover_and_important_classes): Use
20473 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
20474
20475 2009-04-24 DJ Delorie <dj@redhat.com>
20476
20477 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
20478 __SH2A_SINGLE_ONLY__ also.
20479
20480 2009-04-24 Steve Ellcey <sje@cup.hp.com>
20481
20482 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
20483 (movdf_internal): Ditto.
20484 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
20485 SFmode and DFmode constants.
20486 (ia64_print_operand): Add 'G' format for printing
20487 floating point constants.
20488
20489 2009-04-24 Richard Guenther <rguenther@suse.de>
20490
20491 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
20492 from unsigned additions.
20493
20494 2009-04-24 Joseph Myers <joseph@codesourcery.com>
20495
20496 * c-typeck.c (set_init_index): Allow array designators that are
20497 not integer constant expressions with a pedwarn if pedantic.
20498
20499 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
20500
20501 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
20502 zero if no overlap in nonzero bits between the operands.
20503
20504 2009-04-24 Ian Lance Taylor <iant@google.com>
20505
20506 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
20507 (record_dead_and_set_regs): Likewise.
20508 * df.h (struct df_mw_hardreg): Change flags field to int.
20509 (struct df_base_ref): Likewise.
20510 (struct df): Change changeable_flags field to int.
20511 * df-scan.c (df_defs_record): Change clobber_flags to int.
20512 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
20513 constants rather than #define macros.
20514 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
20515 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
20516 (enum dwarf_calling_convention): Likewise.
20517 (enum dwarf_line_number_x_ops): Likewise.
20518 (enum dwarf_call_frame_info): Likewise.
20519 (enum dwarf_source_language): Likewise.
20520 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
20521 (add_calling_convention_attribute): Likewise.
20522 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
20523 (combine_comparisons): Change compcode to int. Add cast to enum type.
20524 * genrecog.c (maybe_both_true_2): Change c to int.
20525 (write_switch): Likewise. Add cast to enum type.
20526 * gimplify.c (gimplify_omp_for): Handle return values from
20527 gimplify_expr using MIN rather than bitwise or.
20528 (gimplify_expr): Add cast to enum type.
20529 * ipa-prop.c (update_jump_functions_after_inlining): Change
20530 IPA_BOTTOM to IPA_JF_UNKNOWN.
20531 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
20532 Add casts to enum type.
20533 (setup_cover_and_important_classes): Change cl to int. Add casts
20534 to enum type.
20535 (setup_class_translate): Change cl and mode to int.
20536 (ira_init_once): Change mode to int.
20537 (free_register_move_costs): Likewise.
20538 (setup_prohibited_mode_move_regs): Add casts to enum type.
20539 * langhooks.c (add_builtin_function_common): Rework assertion that
20540 value fits bitfield.
20541 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
20542 * omega.c (omega_do_elimination): Avoid math on enum types.
20543 * optabs.c (expand_vec_shift_expr): Remove casts to int.
20544 * opts.c (set_debug_level): Change 2 to enum constant. Use new
20545 int local to handle integral_argment value.
20546 * regmove.c (try_auto_increment): Change PUT_MODE to
20547 PUT_REG_NOTE_KIND.
20548 * reload.c (push_secondary_reload): Add casts to enum type.
20549 (secondary_reload_class, find_valid_class): Likewise.
20550 * reload1.c (emit_input_reload_insns): Likewise.
20551 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
20552 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
20553 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
20554 constant.
20555 * tree.c (build_common_builtin_nodes): Add casts to enum type.
20556 * tree-complex.c (complex_lattice_t): Typedef to int rather than
20557 enum type.
20558 (expand_complex_libcall): Add casts to enum type.
20559 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
20560 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
20561 with ERROR_MARK, not NUM_TREE_CODES.
20562 (vect_create_epilog_for_reduction): Likewise.
20563 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
20564 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
20565 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
20566 enum machine_mode.
20567 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
20568 vect_unused_in_loop. Change 0 to loop_vect.
20569 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
20570 * var-tracking.c (get_init_value): Change return type to enum
20571 var_init_status.
20572 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
20573 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
20574 arm_fp_model.
20575 (arm_override_options): Add casts to enum type.
20576 (arm_emit_tls_decoration): Likewise.
20577 * config/i386/i386.c (ix86_function_specific_restore): Add casts
20578 to enum type.
20579 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
20580 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
20581 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
20582 enum type.
20583 * config/s390/s390.c (code_for_builtin_64): Change to array of
20584 enum insn_code.
20585 (code_for_builtin_31): Likewise.
20586 (s390_expand_builtin): Change code_for_builtin to enum insn_code
20587 const *.
20588 * config/sparc/sparc.c (sparc_override_options): Change value
20589 field in struct code_model to enum cmodel. In initializer change
20590 0 to NULL and add cast to enum type.
20591
20592 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
20593 Change all callers. Issue a -Wc++-compat warning using
20594 lhs_origtype if necessary.
20595 (convert_for_assignment): Issue -Wc++-compat warnings about
20596 invalid conversions to enum type on assignment.
20597 * c-common.h (build_modify_expr): Update declaration.
20598
20599 2009-04-24 Nick Clifton <nickc@redhat.com>
20600
20601 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
20602 (function_arg_advance): Likewise.
20603 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
20604 5th alternative.
20605
20606 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
20607
20608 * config/s390/constraints.md ('I', 'J'): Fix condition.
20609
20610 2009-04-24 Diego Novillo <dnovillo@google.com>
20611
20612 * gengtype-parse.c (parse_error): Add newline after message.
20613
20614 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
20615
20616 * config/i386/sse.md (avxmodesuffixs): Removed.
20617 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
20618 (*avx_pinsr<ssevecsize>): This.
20619
20620 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
20621
20622 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
20623 follow chains of regs with a single definition, and allow expressions
20624 that are function_invariant_p.
20625 (simple_rhs_p): Allow expressions that are function_invariant_p.
20626
20627 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
20628
20629 PR middle-end/39867
20630 * fold-const.c (fold_cond_expr_with_comparison): When folding
20631 > and >= to MAX, make sure the MAX uses the same type as the
20632 comparison's operands.
20633
20634 2009-04-24 Nick Clifton <nickc@redhat.com>
20635
20636 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
20637 addressing for DImode accesses.
20638 (frv_print_operand_address): Handle PLUS case.
20639 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
20640
20641 2009-04-24 Jakub Jelinek <jakub@redhat.com>
20642
20643 PR rtl-optimization/39794
20644 * alias.c (canon_true_dependence): Add x_addr argument.
20645 * rtl.h (canon_true_dependence): Adjust prototype.
20646 * cse.c (check_dependence): Adjust canon_true_dependence callers.
20647 * cselib.c (cselib_invalidate_mem): Likewise.
20648 * gcse.c (compute_transp): Likewise.
20649 * dse.c (scan_reads_nospill): Likewise.
20650 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
20651 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
20652 canon_base_addr of the group, plus optional offset.
20653 (struct group_info): Rename canon_base_mem to
20654 canon_base_addr.
20655 (get_group_info): Set canon_base_addr to canon_rtx of base, not
20656 canon_rtx of base_mem.
20657
20658 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
20659
20660 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
20661 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
20662
20663 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20664
20665 * config/spu/spu-builtins.h: Delete file.
20666
20667 * config/spu/spu.h (enum spu_builtin_type): Move here from
20668 spu-builtins.h.
20669 (struct spu_builtin_description): Likewise. Add GTY marker.
20670 Do not use enum spu_function_code or enum insn_code.
20671 (spu_builtins): Add extern declaration.
20672
20673 * config/spu/spu.c: Do not include "spu-builtins.h".
20674 (enum spu_function_code, enum spu_builtin_type_index,
20675 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
20676 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
20677 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
20678 unsigned_V2DI_type_node): Move here from spu-builtins.h.
20679 (spu_builtin_types): Make static. Add GTY marker.
20680 (spu_builtins): Add extern declaration with GTY marker.
20681 Include "gt-spu.h".
20682
20683 * config/spu/spu-c.c: Do not include "spu-builtins.h".
20684 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
20685 Check programmatically whether all parameters are scalar.
20686
20687 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
20688
20689 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
20690
20691 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
20692 assignment from the constructor either if the target is volatile.
20693
20694 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
20695
20696 * config/arm/arm.md (insv): Do not share operands[0].
20697
20698 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
20699
20700 * config/vxlib-tls.c (active_tls_threads): Delete.
20701 (delete_hook_installed): New.
20702 (tls_delete_hook): Don't delete the delete hook.
20703 (tls_destructor): Delete it here.
20704 (__gthread_set_specific): Adjust installing the delete hook.
20705 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
20706 __gthread_leave_tsd_dtor_context.
20707
20708 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
20709
20710 * c-format.c (gcc_tdiag_char_table): Add support for %E.
20711
20712 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
20713
20714 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
20715 enum type.
20716 (alpha_rtx_costs): Ditto.
20717 (emit_unlikely_jump): Use add_reg_note.
20718 (emit_frame_store_1): Ditto.
20719 (alpha_expand_prologue): Ditto.
20720 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
20721 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
20722
20723 2009-04-23 Nick Clifton <nickc@redhat.com>
20724
20725 * config/v850/v850.md (epilogue): Remove suppressed code.
20726 (return): Rename to return_simple and remove test of frame size.
20727 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
20728 to gen_return_simple.
20729
20730 2009-04-22 Jing Yu <jingyu@google.com>
20731
20732 PR testsuite/39781
20733 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
20734
20735 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
20736
20737 PR C/31499
20738 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
20739 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
20740 value is a VECTOR_CST, the element type is the element type of the
20741 vector.
20742
20743 2009-04-22 DJ Delorie <dj@redhat.com>
20744
20745 * config/m32c/m32c.h: Update GTY annotations to new syntax.
20746
20747 2009-04-22 Jakub Jelinek <jakub@redhat.com>
20748
20749 * alias.c (find_base_term): Move around LO_SUM case, so that
20750 CONST falls through into PLUS/MINUS handling.
20751
20752 PR c/39855
20753 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
20754 into 0, use omit_one_operand.
20755
20756 2009-04-23 Ben Elliston <bje@au.ibm.com>
20757
20758 * config/rs6000/linux-unwind.h (get_regs): Remove type
20759 puns. Change the type of `pc' to an array of unsigned ints and
20760 update all users. Constify frame24.
20761
20762 2009-04-22 DJ Delorie <dj@redhat.com>
20763
20764 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
20765 declarations before code.
20766 (current_function_special_page_vector): Likewise.
20767 (m32c_expand_insv): Silence a warning.
20768
20769 2009-04-21 Taras Glek <tglek@mozilla.com>
20770
20771 * alias.c: Update GTY annotations to new syntax.
20772 * basic-block.h: Likewise.
20773 * bitmap.h: Likewise.
20774 * c-common.h: Likewise.
20775 * c-decl.c: Likewise.
20776 * c-parser.c: Likewise.
20777 * c-pragma.c: Likewise.
20778 * c-tree.h: Likewise.
20779 * cfgloop.h: Likewise.
20780 * cgraph.h: Likewise.
20781 * config/alpha/alpha.c: Likewise.
20782 * config/arm/arm.h: Likewise.
20783 * config/avr/avr.h: Likewise.
20784 * config/bfin/bfin.c: Likewise.
20785 * config/cris/cris.c: Likewise.
20786 * config/darwin.c: Likewise.
20787 * config/frv/frv.c: Likewise.
20788 * config/i386/i386.c: Likewise.
20789 * config/i386/i386.h: Likewise.
20790 * config/i386/winnt.c: Likewise.
20791 * config/ia64/ia64.h: Likewise.
20792 * config/iq2000/iq2000.c: Likewise.
20793 * config/mips/mips.c: Likewise.
20794 * config/mmix/mmix.h: Likewise.
20795 * config/pa/pa.c: Likewise.
20796 * config/pa/pa.h: Likewise.
20797 * config/rs6000/rs6000.c: Likewise.
20798 * config/s390/s390.c: Likewise.
20799 * config/sparc/sparc.c: Likewise.
20800 * config/xtensa/xtensa.c: Likewise.
20801 * cselib.h: Likewise.
20802 * dbxout.c: Likewise.
20803 * dwarf2out.c: Likewise.
20804 * except.c: Likewise.
20805 * except.h: Likewise.
20806 * fixed-value.h: Likewise.
20807 * function.c: Likewise.
20808 * function.h: Likewise.
20809 * gimple.h: Likewise.
20810 * integrate.c: Likewise.
20811 * optabs.c: Likewise.
20812 * output.h: Likewise.
20813 * real.h: Likewise.
20814 * rtl.h: Likewise.
20815 * stringpool.c: Likewise.
20816 * tree-data-ref.c: Likewise.
20817 * tree-flow.h: Likewise.
20818 * tree-scalar-evolution.c: Likewise.
20819 * tree-ssa-address.c: Likewise.
20820 * tree-ssa-alias.h: Likewise.
20821 * tree-ssa-operands.h: Likewise.
20822 * tree.c: Likewise.
20823 * tree.h: Likewise.
20824 * varasm.c: Likewise.
20825 * varray.h: Likewise.
20826 * vec.h: Likewise.
20827 * coretypes.h: Do not define GTY macro if it is already defined.
20828 * doc/gty.texi: Update GTY documentation to new syntax.
20829 * gengtype-lex.l: Enforce attribute-like syntax for GTY
20830 annotations on structs.
20831 * gengtype-parse.c: Likewise.
20832
20833 2009-04-22 Mark Heffernan <meheff@google.com>
20834
20835 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
20836
20837 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
20838
20839 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
20840 where appropriate.
20841
20842 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
20843
20844 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
20845 the same as a PLUS without a shift. Increase the cost of a
20846 CONST_INT in MULT.
20847
20848 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20849
20850 * Makefile.in: Update dependencies.
20851 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
20852 * errors.h: Remove bogus comment about compatibility.
20853 (warning): Update declaration.
20854 * genautomata.c: Update all calls to warning.
20855 * gimple.c: Do not include errors.h. Include toplev.h.
20856 * tree-ssa-structalias.c: Do not include errors.h.
20857 * omega.c: Likewise.
20858 * tree-ssa-reassoc.c: Likewise.
20859 * config/spu/spu-c.c: Likewise.
20860 * config/spu/t-spu-elf: Update dependencies.
20861
20862 2009-04-22 Richard Guenther <rguenther@suse.de>
20863
20864 PR tree-optimization/39824
20865 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
20866 make sure the types are compatible.
20867
20868 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20869
20870 PR c++/14875
20871 * c-common.c (c_parse_error): Take a token_flags parameter.
20872 Use token_type for the token type instead.
20873 Pass token_flags to cpp_type2name.
20874 * c-common.h (c_parse_error): Update declaration.
20875 * c-parser.c (c_parser_error): Pass 0 as token flags.
20876
20877 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
20878
20879 PR rtl-optimization/39580
20880 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
20881
20882 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20883
20884 * function.c (expand_function_end): Do not emit a jump to the "naked"
20885 return label for fall-through returns.
20886 * except.c (sjlj_emit_function_exit): Always place the call to the
20887 unregister function at the location installed by expand_function_end.
20888
20889 2009-04-22 Richard Guenther <rguenther@suse.de>
20890
20891 PR tree-optimization/39845
20892 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
20893 (gen_inbound_check): Likewise.
20894
20895 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
20896
20897 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
20898 padding for PPC.
20899 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
20900 * config/vxlib.c (__gthread_once): Add race guard for PPC.
20901
20902 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
20903
20904 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
20905 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
20906 shift counts to avoid out-of-bounds array accesses.
20907
20908 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
20909
20910 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
20911 (Pmode): Move above.
20912
20913 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
20914
20915 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
20916 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
20917 GET_CODE macro. Use IN_RANGE macro where appropriate.
20918 * config/alpha/alpha.h: Ditto.
20919 * config/alpha/alpha.md: Ditto.
20920 * config/alpha/constraints.md: Ditto.
20921 * config/alpha/predicates.md: Ditto.
20922
20923 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
20924
20925 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
20926 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20927 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20928 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20929 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20930 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20931 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20932 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20933 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20934 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20935 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20936 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20937 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20938 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20939 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20940 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20941 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20942 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20943 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20944 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20945 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20946 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20947 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20948 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20949 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20950 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20951 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20952
20953 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
20954
20955 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
20956 references from comments.
20957 * cfgbuild.c: (count_basic_blocks): Delete.
20958 (find_basic_blocks_1): Delete.
20959 (find_basic_blocks): Delete.
20960 * except.c (finish_eh_generation): Make static. Move comment from
20961 except.h here. Remove find_basic_blocks references from comments.
20962 * except.h (finish_eh_generation): Delete.
20963 * basic-block.h (find_basic_blocks): Delete.
20964 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
20965
20966 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
20967
20968 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
20969 (sdbout_parms): Likewise.
20970
20971 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
20972
20973 * config/sh/sh.c (prepare_cbranch_operands): Use
20974 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
20975 (expand_cbranchdi4): Likewise.
20976 (from_compare): Add cast to enum type.
20977 (expand_cbranchsi4): Use add_reg_note.
20978 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
20979 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
20980 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
20981 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
20982 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
20983 instead of CODE_FOR_nothing.
20984 (cbranchdi4): Likewise. Fix the order of arguments for
20985 gen_rtx_fmt_ee.
20986 (push_fpscr): Use add_reg_note.
20987 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
20988 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
20989
20990 2009-04-21 Joseph Myers <joseph@codesourcery.com>
20991
20992 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
20993 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
20994 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
20995 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
20996 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
20997 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
20998 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
20999 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
21000 config/alpha/x-vms, config/arc/t-arc,
21001 config/arm/README-interworking, config/arm/arm-c.c,
21002 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
21003 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
21004 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
21005 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
21006 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
21007 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
21008 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
21009 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
21010 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
21011 config/cris/t-elfmulti, config/crx/t-crx,
21012 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
21013 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
21014 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
21015 config/h8300/t-h8300, config/i386/athlon.md,
21016 config/i386/darwin-libgcc.10.4.ver,
21017 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
21018 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
21019 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
21020 config/i386/t-linux64, config/i386/t-nwld,
21021 config/i386/t-rtems-i386, config/i386/t-sol2-10,
21022 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
21023 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
21024 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
21025 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
21026 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
21027 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
21028 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
21029 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
21030 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
21031 config/m68k/t-uclinux, config/mcore/t-mcore,
21032 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
21033 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
21034 config/mips/crtn.asm, config/mips/irix-crti.asm,
21035 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
21036 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
21037 config/mips/mips-fixed.md, config/mips/sb1.md,
21038 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
21039 config/mips/t-iris6, config/mips/t-isa3264,
21040 config/mips/t-libgcc-mips16, config/mips/t-linux64,
21041 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
21042 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
21043 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
21044 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
21045 config/mn10300/t-linux, config/mn10300/t-mn10300,
21046 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
21047 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
21048 config/picochip/libgccExtras/clzsi2.asm,
21049 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
21050 config/rs6000/darwin-libgcc.10.4.ver,
21051 config/rs6000/darwin-libgcc.10.5.ver,
21052 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
21053 config/rs6000/t-aix43, config/rs6000/t-aix52,
21054 config/rs6000/t-darwin, config/rs6000/t-fprules,
21055 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
21056 config/rs6000/t-lynx, config/rs6000/t-netbsd,
21057 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
21058 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
21059 config/rs6000/t-rtems, config/rs6000/t-spe,
21060 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
21061 config/score/t-score-elf, config/sh/divcost-analysis,
21062 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
21063 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
21064 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
21065 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
21066 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
21067 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
21068 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
21069 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
21070 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
21071 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
21072 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
21073 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
21074 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
21075 limitx.h, version.c, xcoff.h: Add copyright and license notices.
21076 * config/h8300/genmova.sh: Include copyright and license notices
21077 in generated output.
21078 * config/h8300/mova.md: Regenerate.
21079 * doc/install.texi2html: Include word "Copyright" in copyright
21080 notice and use name "Free Software Foundation, Inc.".
21081 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
21082 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
21083 ChangeLog-2007, ChangeLog-2008: Correct dates.
21084
21085 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
21086
21087 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
21088 NE_EXPR operations as well.
21089 * c-parser.c (c_parser_condition): Do not set location information on
21090 the condition.
21091 (c_parser_conditional_expression): Likewise.
21092 (c_parser_binary_expression): Set location information on operators.
21093 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
21094 TRUTH_NOT_EXPR has been folded.
21095 * fold-const.c (fold_truth_not_expr): Copy location information from
21096 the incoming expression to the outgoing one.
21097 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
21098 recursive calls on the LHS of the operator but pass that of the
21099 operator to recursive calls on the RHS of the operator. Set it
21100 on the COND_EXPR.
21101 (shortcut_cond_expr): Set the locus of the operator on the second
21102 COND_EXPR and that of the expression on the first in degenerate cases.
21103 Pass the locus of the expression to calls to shortcut_cond_r.
21104 Set the locus of the 'then' block on the associated jump, if any.
21105 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
21106 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
21107 expression to call to gimplify_boolean_expr.
21108
21109 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
21110
21111 * config.gcc: Add additional configuration for
21112 i686-w64-mingw* and x86_64-w64-mingw* triplet.
21113 * config/i386/mingw-w64.h: New mingw-w64 specific header.
21114 (CPP_SPEC): Redefine for allowing -municode option.
21115 (STARTFILE_SPEC): Likewise.
21116 * config/i386/t-mingw-w64: New.
21117 * config/i386/mingw-w64.opt: New.
21118 (municode): Add new target option.
21119 * doc/invoke.texi (municode): Add documentation for new option.
21120
21121 2009-04-21 Ian Lance Taylor <iant@google.com>
21122
21123 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21124 Correct test for number of arguments.
21125 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
21126
21127 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
21128
21129 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
21130 argument of emit_library_call.
21131
21132 2009-04-21 Richard Guenther <rguenther@suse.de>
21133
21134 PR middle-end/39829
21135 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
21136 inside VIEW_CONVERT_EXPRs.
21137
21138 2009-04-21 Martin Jambor <mjambor@suse.cz>
21139
21140 * tree-switch-conversion.c (build_constructors): Split a long line.
21141 (constructor_contains_same_values_p): New function.
21142 (build_one_array): Create assigns of constants if possible, do not
21143 call mark_sym_for_renaming, call update_stmt.
21144 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
21145 make_rename_temp. Do not call mark_symbols_for_renaming, call
21146 update_stmt.
21147 (gen_def_assigns): Do not call mark_symbols_for_renaming or
21148 find_new_referenced_vars, call update_stmt.
21149 (gen_inbound_check): Use create_tmp_var and create ssa names manually
21150 instead of calling make_rename_temp. Do not call
21151 find_new_referenced_vars or mark_symbols_for_renaming, call
21152 update_stmt.
21153
21154 2009-04-21 Richard Guenther <rguenther@suse.de>
21155
21156 PR tree-optimization/39827
21157 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
21158 (tree_ssa_phiprop): Pass the correct array size.
21159
21160 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
21161
21162 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
21163
21164 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
21165
21166 PR 16202
21167 * c-typeck.c (lvalue_p): Move declaration ...
21168 * c-common.h (lvalue_p): ... to here.
21169 * c-common.c (candidate_equal_p): New.
21170 (add_tlist): Use it.
21171 (merge_tlist): Use it.
21172 (warn_for_collisions_1): Likewise.
21173 (warning_candidate_p): Accept more candidates.
21174 (verify_tree): A warning candidate can be an expression. Use
21175 candidate_equal_p.
21176
21177 2009-04-21 Ben Elliston <bje@au.ibm.com>
21178
21179 PR target/5267
21180 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
21181 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
21182 options. Remove -mcall-solaris documentation.
21183
21184 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21185
21186 PR c++/13358
21187 * doc/invoke.texi (-Wlong-long): Update description.
21188 * c-lex (interpret_integer): Only warn if there was no previous
21189 overflow and -Wlong-long is enabled.
21190 * c-decl.c (declspecs_add_type): Drop redundant flags.
21191 * c.opt (Wlong-long): Init to -1.
21192 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
21193 and front-end warn_long_long. Wlong-long only depends on other
21194 flags if it is uninitialized.
21195 * c-parser.c (disable_extension_diagnostics): warn_long_long is
21196 the same for CPP and FE.
21197 (restore_extension_diagnostics): Likewise.
21198
21199 2009-04-20 Ian Lance Taylor <iant@google.com>
21200
21201 Fix enum conversions which are invalid in C++:
21202 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
21203 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
21204 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
21205 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
21206 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
21207 (dbxout_parms): Likewise.
21208 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
21209 (df_clear_flags): Likewise.
21210 * df-problems.c (df_rd_bb_local_compute_process_def): Change
21211 top_flag parameter to int.
21212 (df_chain_create_bb_process_use): Likewise.
21213 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
21214 Remove cast.
21215 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
21216 (df_ref_create_structure, df_def_record_1): Likewise.
21217 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
21218 (df_notes_rescan): Change 0 to VOIDmode in function call.
21219 (df_get_call_refs, df_insn_refs_collect): Likewise.
21220 (df_bb_regs_collect): Likewise.
21221 (df_entry_block_defs_collect): Likewise.
21222 (df_exit_block_uses_collect): Likewise.
21223 * df.h: Update declarations.
21224 * double-int.c (double_int_divmod): Add cast to enum type.
21225 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
21226 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
21227 (based_loc_descr): Likewise.
21228 (loc_descriptor_from_tree_1): Change first_op and second_op to
21229 enum dwarf_location_atom. Add cast to enum type.
21230 * expmed.c (init_expmed): Change 0 to SET in function call.
21231 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
21232 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
21233 (do_store_flag): Likewise.
21234 * fixed-value.h (struct fixed_value): Change mode to enum
21235 machine_mode.
21236 * function.c (assign_parms): Change 0 to VOIDmode in function call.
21237 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
21238 function call.
21239 (insert_insn_decl, insert_decl, insert_state): Likewise.
21240 (automata_list_finish): Likewise.
21241 * genrecog.c (process_define_predicate): Add cast to enum type.
21242 * gensupport.c (init_predicate_table): Add cast to enum type.
21243 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
21244 function call.
21245 (gimple_build_call_1, gimple_build_label): Likewise.
21246 (gimple_build_goto, gimple_build_asm_1): Likewise.
21247 (gimple_build_switch_1, gimple_build_cdt): Likewise.
21248 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
21249 (enum fallback): Rename from enum fallback_t.
21250 (fallback_t): Typedef as int.
21251 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
21252 GSI_SAME_STMT in function call.
21253 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
21254 enum type.
21255 (setup_reg_class_relations): Likewise.
21256 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
21257 (setup_prohibited_class_mode_regs): Add cast to enum type.
21258 (setup_prohibited_mode_move_regs): Likewise.
21259 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
21260 (record_address_regs): Change i to enum reg_class.
21261 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
21262 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
21263 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
21264 (GET_MODE_2XWIDER_MODE): Likewise.
21265 (GET_CLASS_NARROWEST_MODE): Likewise.
21266 * omp-low.c (expand_omp_for): Add cast to enum type.
21267 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
21268 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
21269 * postreload.c (reload_cse_simplify_operands): Change rclass local
21270 to enum reg_class.
21271 * predict.c (combine_predictions_for_insn): Change best_predictor
21272 and predictor to enum br_predictor.
21273 (combine_predictions_for_bb): Likewise.
21274 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
21275 use SET_PREDICT_EXPR_OUTCOME.
21276 * real.c (real_arithmetic): Change icode to code in function call.
21277 * reginfo.c (init_move_cost): Add casts to enum type.
21278 (init_reg_sets_1, init_fake_stack_mems): Likewise.
21279 * regmove.c (regclass_compatible_p): Change class0 and class1 to
21280 enum reg_class.
21281 * reload.c (find_valid_class): Add casts to enum type.
21282 (push_reload): Change 0 to NO_REGS in function call.
21283 (find_reloads): Change this_alternative to array of enum
21284 reg_class. Remove some now-unnecessary casts.
21285 (make_memloc): Change 0 to VOIDmode in function call.
21286 * reload1.c (reload): Change 0 to VOIDmode in function call.
21287 (eliminate_regs_1, elimination_effects): Likewise.
21288 (eliminate_regs_in_insn): Likewise.
21289 (emit_input_reload_insns): Add cast to enum type.
21290 (delete_output_reload): Change 0 to VOIDmode in function call.
21291 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
21292 to enum type in function call.
21293 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
21294 (SET_PREDICT_EXPR_OUTCOME): Define.
21295 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
21296 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
21297 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
21298 (dump_function): Likewise.
21299 * tree-dump.h: Update declarations.
21300 * tree-pass.h: Update declarations.
21301 * varasm.c (assemble_integer): Change mclass to enum mode_class.
21302 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
21303 enum type.
21304 (arm_rtx_costs_1): Correct parenthesization.
21305 (arm_rtx_costs): Add casts to enum type.
21306 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
21307 (vfp_emit_fstmd): Use add_rg_note.
21308 (emit_multi_reg_push, emit_sfm): Likewise.
21309 (thumb_set_frame_pointer): Likewise.
21310 (arm_expand_prologue): Likewise.
21311 (arm_regno_class): Change return type to enum reg_class.
21312 (thumb1_expand_prologue): Use add_reg_note.
21313 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
21314 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
21315 in function call.
21316 * config/arm/gentune.sh: Add cast to enum type.
21317 * config/arm/arm-tune.md: Rebuild.
21318 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
21319 (ix86_split_fp_branch, predict_jump): Likewise.
21320 (ix86_expand_multi_arg_builtin): Change sub_code from enum
21321 insn_code to enum rtx_code.
21322 (ix86_builtin_vectorized_function): Add cast to enum type.
21323 * config/i386/i386.md (truncdfsf2): Change slot to enum
21324 ix86_stack_slot.
21325 (truncxf<mode>2, isinf<mode>2): Likewise.
21326 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
21327 enum type.
21328 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
21329 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
21330 (insert_bundle_state): Change 1 to INSERT in function call.
21331 (ia64_add_bundle_selector_before): Likewise.
21332 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
21333 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
21334 (restore_stack_nonlocal): Likewise.
21335 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
21336 function call.
21337 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
21338 function call.
21339 (mips_rtx_costs): Likewise.
21340 (mips_override_options): Add casts to enum type.
21341 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
21342 in function call.
21343 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
21344 (store_reg, set_reg_plus_d): Likewise.
21345 (hppa_expand_prologue, hppa_profile_hook): Likewise.
21346 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
21347 cast to enum type.
21348 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
21349 function call.
21350 (emit_unlikely_jump): Use add_reg_note.
21351 (rs6000_emit_allocate_stack): Likewise.
21352 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
21353 (output_toc): Change 1 to INSERT in function call.
21354 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
21355 (rs6000_initialize_trampoline): Likewise.
21356 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
21357 function call.
21358 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
21359 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
21360 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
21361 (save_gprs): Use add_reg_note.
21362 (s390_emit_prologue): Likewise.
21363 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
21364 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
21365 (sparc_fold_builtin): Add cast to enum type.
21366 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
21367 enum insn_code.
21368 (spu_expand_prologue): Use add_reg_note.
21369 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
21370
21371 2009-04-20 Ian Lance Taylor <iant@google.com>
21372
21373 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
21374 (c_parser_postfix_expression_after_primary): Get VEC for list of
21375 arguments. Get original types of arguments. Call
21376 build_function_call_vec.
21377 (cached_expr_list_1, cached_expr_list_2): New static variables.
21378 (c_parser_expr_list): Change return type to VEC *. Add
21379 p_orig_types parameter. Change all callers.
21380 (c_parser_release_expr): New static function.
21381 (c_parser_vec_to_tree_list): New static function.
21382 * c-typeck.c (build_function_call): Rewrite to build a VEC and
21383 call build_function_call_vec.
21384 (build_function_call_vec): New function, based on old
21385 build_function_call.
21386 (convert_arguments): Remove nargs and argarray parameters. Change
21387 values to a VEC. Add origtypes parameter.
21388 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
21389 (convert_for_assignment): Add origtype parameter. Change all
21390 callers. If warn_cxx_compat, check for conversion to an enum
21391 type when calling a function.
21392 (store_init_value): Add origtype parameter. Change all callers.
21393 (digest_init): Likewise.
21394 (struct init_node): Add origtype field.
21395 (add_pending_init): Add origtype parameter. Change all callers.
21396 (output_init_element): Likewise.
21397 (output_pending_init_elements): Pass origtype from init_node to
21398 output_init_element.
21399 (process_init_element): Pass origtype from c_expr to
21400 output_init_element.
21401 (c_finish_return): Add origtype parameter. Change all callers.
21402 * c-common.c (sync_resolve_size): Change params to VEC *. Change
21403 caller.
21404 (sync_resolve_params): Likewise.
21405 (sync_resolve_return): Change params to first_param. Change caller.
21406 (resolve_overloaded_builtins): Change params to VEC *. Change
21407 callers. Save first parameter around call to build_function_call_vec.
21408 * c-decl.c (finish_decl): Add origtype parameter. Change all
21409 callers. Call build_function_call_vec rather than
21410 build_function_call for cleanup.
21411 * c-tree.h: Update declarations.
21412 * c-common.h: Update declarations.
21413 * stub-objc.c (objc_rewrite_function_call): Change parameter from
21414 params to first_param.
21415 * target.h (struct gcc_target): Change resolve_overloaded_builtin
21416 params parameter from tree to void *.
21417 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21418 Change arglist parameter to have type void *, and to be a pointer
21419 to a VEC.
21420 * config/rs6000/rs6000-protos.h
21421 (altivec_resolve_overloaded_builtin): Update declaration.
21422 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
21423 fnargs parameter to have type void *, and to be a pointer to a
21424 VEC. Call build_function_call_vec instead of
21425 build_function_call.
21426 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
21427
21428 2009-04-20 Joey Ye <joey.ye@intel.com>
21429 Xuepeng Guo <xuepeng.guo@intel.com>
21430 H.J. Lu <hongjiu.lu@intel.com>
21431
21432 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
21433
21434 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
21435 (IX86_LEA_PRIORITY): Likewise.
21436 (distance_non_agu_define): New function.
21437 (distance_agu_use): Likewise.
21438 (ix86_lea_for_add_ok): Likewise.
21439 (ix86_dep_by_shift_count): Likewise.
21440
21441 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
21442 should split for LEA.
21443
21444 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
21445 function.
21446 (ix86_dep_by_shift_count): Likewise.
21447
21448 2009-04-20 Richard Guenther <rguenther@suse.de>
21449
21450 * expr.c (handled_component_p): Move ...
21451 * tree.h (handled_component_p): ... here.
21452 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
21453 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
21454 and REALPART_EXPR to be in one group.
21455
21456 2009-04-20 Richard Guenther <rguenther@suse.de>
21457
21458 * basic-block.h (get_all_dominated_blocks): Declare.
21459 * dominance.c (get_all_dominated_blocks): New function.
21460 * tree-cfg.c (get_all_dominated_blocks): Remove.
21461 (remove_edge_and_dominated_blocks): Adjust.
21462 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
21463 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
21464 instead of recursing.
21465
21466 2009-04-20 Doug Kwan <dougkwan@google.com>
21467
21468 * cgraph.h (cgraph_node_ptr): New type for vector functions.
21469 (struct cgraph_node_set_def): New type.
21470 (cgraph_node_set) New type. Also declare vector functions.
21471 (struct cgraph_node_set_element_def): New type.
21472 (cgraph_node_set_element): Ditto.
21473 (cgraph_node_set_iterator): New iterator type.
21474 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
21475 cgraph_node_set_remove, dump_cgraph_node_set,
21476 debug_cgraph_node_set): New prototypes.
21477 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
21478 cgraph_node_set_size): New inlines.
21479 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
21480 including cgraph.h.
21481 (struct ipa_opt_pass): Add struct cgraph_node_set_def
21482 argument to function 'write_summary'.
21483 * ipa.c: Include ggc.h.
21484 (hash_cgraph_node_set_element,
21485 eq_cgraph_node_set_element, cgraph_node_set_new,
21486 cgraph_node_set_add, cgraph_node_set_remove,
21487 cgraph_node_set_find, dump_cgraph_node_set,
21488 debug_cgraph_node_set): New functions.
21489 * Makefile.in (ipa.o): Add dependency on GGC_H.
21490
21491 2009-04-20 Ira Rosen <irar@il.ibm.com>
21492
21493 PR tree-optimization/39675
21494 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
21495 check of the return code of vect_schedule_slp. Check that
21496 stmt_vec_info still exists for the statement, before checking its
21497 vectorization type.
21498
21499 2009-04-20 Michael Matz <matz@suse.de>
21500
21501 * Makefile.in (generated_files): Take out $(simple_generated_c).
21502
21503 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
21504
21505 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
21506 (UINTPTR_TYPE): Likewise.
21507
21508 2009-04-19 Joseph Myers <joseph@codesourcery.com>
21509
21510 PR c/37481
21511 * c-typeck.c (digest_init): Check for initializing an array with a
21512 string literal.
21513
21514 2009-04-19 Joseph Myers <joseph@codesourcery.com>
21515
21516 PR c/19771
21517 * c-semantics.c (pop_stmt_list): Propagate
21518 STATEMENT_LIST_HAS_LABEL to parent statement list.
21519
21520 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
21521
21522 * config/mips/mips.h (mips_tune_attr): New macro.
21523 * config/mips/mips.md (cpu): Use it.
21524
21525 2009-04-19 Joseph Myers <joseph@codesourcery.com>
21526
21527 PR c/38243
21528 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
21529 declaring a tag.
21530
21531 2009-04-19 Diego Novillo <dnovillo@google.com>
21532
21533 * toplev.c (compile_file): Move call to coverage_finish ...
21534 * cgraphunit.c (ipa_passes): ... here.
21535 Call cgraph_process_new_functions.
21536 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
21537 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
21538
21539 2009-04-19 Jan Hubicka <jh@suse.cz>
21540
21541 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
21542 cfun.
21543 (dump_cgraph_node): Dump can throw external flag.
21544 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
21545
21546 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
21547
21548 PR c/32061
21549 PR c++/36954
21550 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
21551 * common.opt (Wlogical-op): Move from here...
21552 * c.opt (Wlogical-op): ... to here.
21553 * c-typeck.c (parser_build_binary_op): Update call to
21554 warn_logical_operator.
21555 * c-opts.c (c_common_post_options): Enable warn_logical_op with
21556 extra_warnings.
21557 * c-common.c (warn_logical_op): Update.
21558 * c-common.h (warn_logical_op): Update declaration.
21559
21560 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
21561
21562 * tree.c (protected_set_expr_location): Fix formatting.
21563
21564 2009-04-18 Joseph Myers <joseph@codesourcery.com>
21565
21566 PR c/27676
21567 * c-typeck.c (readonly_warning): new.
21568 (build_unary_op, build_modify_expr): Use readonly_warning for
21569 storing into something readonly but not const-qualified.
21570
21571 2009-04-18 Joseph Myers <joseph@codesourcery.com>
21572
21573 PR c/22367
21574 * c-typeck.c (build_unary_op): Check for taking address of
21575 expression of type void.
21576
21577 2009-04-18 Joseph Myers <joseph@codesourcery.com>
21578
21579 PR c/35210
21580 * c-typeck.c (build_function_call): Check for calling a function
21581 with qualified void return types. Call require_complete_type when
21582 generating a trap.
21583
21584 2009-04-18 Jan Hubicka <jh@suse.cz>
21585
21586 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
21587 Set nothrow flag.
21588 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
21589 can_throw_external flag.
21590 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
21591 * ipa-pure-const.c (ignore_edge): New function.
21592 (propagate): Compute order for NOTHROW computation; set NOTHROWs
21593 only over can_throw_external edges.
21594 (local_pure_const): Add nothrow flag.
21595 * ipa-utils.c (searchc): Add ignore_edge callback.
21596 (ipa_utils_reduced_inorder): Add ignore_edge callback.
21597 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
21598 (set_nothrow_function_flags): Update cgraph.
21599 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
21600
21601 2009-04-18 Richard Guenther <rguenther@suse.de>
21602
21603 PR middle-end/39804
21604 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
21605 (fold_stmt): ... this and ...
21606 (fold_stmt_inplace): ... this.
21607 (fold_stmt_1): Fold references in calls and asms.
21608 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
21609
21610 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21611
21612 * tree-vrp.c (ssa_name_nonzero_p): Remove.
21613 * tree.h: Remove the prototype for ssa_name_nonzero_p.
21614
21615 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21616
21617 * tree.c (function_args_count): Remove.
21618 * tree.h: Remove the prototype for function_args_count.
21619
21620 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21621
21622 * tree-iterator.c (expr_only): Remove.
21623 * tree.h: Remove the prototype for expr_only.
21624
21625 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21626
21627 * reginfo.c (cannot_change_mode_set_regs): Remove.
21628 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
21629
21630 2009-04-08 Anatoly Sokolov <aesok@post.ru>
21631
21632 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
21633 whether operands 0 and 1 overlaps.
21634
21635 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
21636
21637 PR middle-end/36902
21638 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
21639 pointer. Use warning_at instead of warning.
21640 (search_for_addr_array): Likewise.
21641 (check_array_bounds): Likewise.
21642 (check_all_array_refs): Check that the incoming edge is not in the
21643 list of edges to be removed.
21644 (check_all_array_refs): Avoid the temporal pointer.
21645 (vrp_visit_cond_stmt): Fix typo.
21646 (simplify_switch_using_ranges): Handle the case where the switch
21647 index is an integer constant.
21648
21649 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
21650
21651 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
21652
21653 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21654
21655 * doc/extend.texi, doc/invoke.texi: Fix typos.
21656
21657 2009-04-17 Cary Coutant <ccoutant@google.com>
21658
21659 * tree-flow-inline.h (get_lineno): Fix inverted test.
21660
21661 2009-04-17 Diego Novillo <dnovillo@google.com>
21662
21663 * tree-ssa-pre.c (create_expression_by_pieces): Remove
21664 assertion for AVAIL_OUT.
21665
21666 2009-04-17 Mike Frysinger <vapier@gentoo.org>
21667
21668 PR target/38627
21669 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
21670 * config/sh/linux-atomic.asm: Likewise.
21671
21672 2009-04-17 Diego Novillo <dnovillo@google.com>
21673
21674 * except.c (debug_eh_tree): New.
21675 (struct eh_region, struct eh_status): Move ...
21676 * except.h: ... here.
21677 (add_type_for_runtime): Declare extern.
21678 (lookup_type_for_runtime): Likewise.
21679 (debug_eh_tree): Declare.
21680 * Makefile.in (GTFILES): List except.h before except.c
21681
21682 2009-04-17 Diego Novillo <dnovillo@google.com>
21683
21684 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
21685 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
21686 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
21687 (find_vars_r): ... here.
21688 * tree-flow.h (find_referenced_vars_in): Declare.
21689 * tree-ssa-pre.c (create_expression_by_pieces): Assert
21690 that AVAIL_OUT exists for BLOCK.
21691 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
21692 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
21693 (tree-parloops.o): Likewise.
21694
21695 2009-04-17 Simon Baldwin <simonb@google.com>
21696
21697 * toplev.c (default_tree_printer): Add handling for %E format.
21698
21699 2009-04-17 Diego Novillo <dnovillo@google.com>
21700
21701 * tree-pretty-print.c (dump_generic_node): Add break after
21702 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
21703 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
21704 FUNCTION_TYPE together. Call print_struct_decl when printing
21705 structures and TDF_SLIM is not given.
21706 (print_struct_decl): Fix logic for detecting recursion.
21707
21708 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
21709
21710 PR 31567
21711 * gcc.c (create_at_file): New.
21712 (compile_input_file_p): New.
21713 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
21714 * main.c (main): Update call to toplev_main.
21715 * toplev.c (toplev_main): Change signature. Call expandargv.
21716 * toplev.h (toplev_main): Change signature.
21717
21718 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
21719
21720 * dwarf2out.c (field_byte_offset): Use the type size as the field size
21721 if the latter is not constant.
21722
21723 2009-04-17 David Edelsohn <edelsohn@gnu.org>
21724
21725 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
21726
21727 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
21728
21729 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
21730 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
21731
21732 2009-04-17 Richard Guenther <rguenther@suse.de>
21733
21734 * tree-ssa-structalias.c (get_constraint_for_component_ref):
21735 Handle component references view-converting an invariant address.
21736
21737 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
21738
21739 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
21740 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
21741 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
21742 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
21743 Use @deftypevr rather than @deftypevar.
21744
21745 2009-04-17 Richard Guenther <rguenther@suse.de>
21746
21747 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
21748 (get_prop_source_stmt): Likewise.
21749 (can_propagate_from): Likewise.
21750
21751 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
21752
21753 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
21754 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
21755 (--with-multilib-list): Add default value.
21756 * configure: Regenerate.
21757 * Makefile.in (TM_ENDIAN_CONFIG): Define.
21758 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
21759 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
21760 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
21761 Don't add default cpu to multilib list unnecessarily, but do enable
21762 the relevant compiler option..
21763 Add support for --with-multilib-list=<blank> and
21764 --with-multilib-list=!<somelib> to supress unwanted multilibs.
21765 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
21766 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
21767 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
21768 TM_MULTILIB_CONFIG.
21769 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
21770 (MULTILIB_OSDIRNAMES): New variable.
21771 * config/sh/t-1e: Delete file.
21772 * config/sh/t-mlib-sh1: Delete file.
21773 * config/sh/t-mlib-sh2: Delete file.
21774 * config/sh/t-mlib-sh2a: Delete file.
21775 * config/sh/t-mlib-sh2a-nofpu: Delete file.
21776 * config/sh/t-mlib-sh2a-single: Delete file.
21777 * config/sh/t-mlib-sh2a-single-only: Delete file.
21778 * config/sh/t-mlib-sh2e: Delete file.
21779 * config/sh/t-mlib-sh3e: Delete file.
21780 * config/sh/t-mlib-sh4: Delete file.
21781 * config/sh/t-mlib-sh4-nofpu: Delete file.
21782 * config/sh/t-mlib-sh4-single: Delete file.
21783 * config/sh/t-mlib-sh4-single-only: Delete file.
21784 * config/sh/t-mlib-sh4a: Delete file.
21785 * config/sh/t-mlib-sh4a-nofpu: Delete file.
21786 * config/sh/t-mlib-sh4a-single: Delete file.
21787 * config/sh/t-mlib-sh4a-single-only: Delete file.
21788 * config/sh/t-mlib-sh4al: Delete file.
21789 * config/sh/t-mlib-sh5-32media: Delete file.
21790 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
21791 * config/sh/t-mlib-sh5-64media: Delete file.
21792 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
21793 * config/sh/t-mlib-sh5-compact: Delete file.
21794 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
21795 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
21796 * doc/install.texi (Options specification): Add
21797 --with-multilib-list and --with-endian.
21798
21799 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
21800
21801 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
21802 REVISION_c.
21803 (OBJS-common): Add plugin-version.o.
21804 (plugin-version.o): New.
21805 * gcc-plugin.h (plugin_gcc_version): New.
21806 (plugin_default_version_check): New.
21807 (plugin_init_func, plugin_init): Add version argument.
21808 * plugin-version.c: New.
21809 * plugin.c (str_plugin_gcc_version_name): New.
21810 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
21811 pass it to the init function.
21812 (plugin_default_version_check): New.
21813
21814 2009-04-17 Richard Guenther <rguenther@suse.de>
21815
21816 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
21817 for decl-vs-decl disambiguation.
21818
21819 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
21820
21821 * config/s390/s390.h (s390_tune_attr): New macro definition.
21822 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
21823
21824 2009-04-17 Richard Guenther <rguenther@suse.de>
21825
21826 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
21827 (fold_stmt_r): Likewise.
21828 (maybe_fold_reference): New function.
21829 (fold_gimple_assign): Handle cases fold_stmt_r did.
21830 (fold_stmt): Do not use fold_stmt_r.
21831 (fold_stmt_inplace): Likewise.
21832
21833 2009-04-17 Richard Guenther <rguenther@suse.de>
21834
21835 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
21836 (record_equivalences_from_stmt): Remove useless checks and
21837 simplifications.
21838 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
21839 the type is already suitable.
21840
21841 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
21842
21843 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
21844
21845 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
21846
21847 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
21848 (CMPtype): Define as __gcc_CMPtype.
21849
21850 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
21851
21852 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
21853 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
21854
21855 2009-04-17 Richard Guenther <rguenther@suse.de>
21856
21857 PR tree-optimization/39746
21858 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
21859 special-casing for builtins and static variable use/def.
21860 (call_may_clobber_ref_p_1): Likewise.
21861
21862 2009-04-16 Ian Lance Taylor <iant@google.com>
21863
21864 * df.h: Include "timevar.h".
21865 (struct df_problem): Change tv_id field to timevar_id_t.
21866 * tree-pass.h: Include "timevar.h".
21867 (struct opt_pass): Change tv_id field to timevar_id_t.
21868 * timevar.h (timevar_id_t): Define TV_NONE.
21869 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
21870 TV_NONE rather than tv_id != 0.
21871 (execute_one_pass): Likewise.
21872 * Makefile.in (DF_H): Add $(TIMEVAR_H).
21873 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
21874 dependencies to $(TREE_PASS_H).
21875 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
21876 to TV_NONE.
21877 (pass_branch_target_load_optimize2): Likewise.
21878 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
21879 (pass_outof_cfg_layout_mode): Likewise.
21880 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
21881 (pass_rebuild_cgraph_edges): Likewise.
21882 (pass_remove_cgraph_callee_edges): Likewise.
21883 * df-core.c (pass_df_initialize_opt): Likewise.
21884 (pass_df_initialize_no_opt): Likewise.
21885 (pass_df_finish): Likewise.
21886 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
21887 * except.c (pass_set_nothrow_function_flags): Likewise.
21888 (pass_convert_to_eh_region_ranges): Likewise.
21889 * final.c (pass_compute_alignments): Likewise.
21890 * function.c (pass_instantiate_virtual_regs): Likewise.
21891 (pass_init_function): Likewise.
21892 (pass_leaf_regs): Likewise.
21893 (pass_match_asm_constraints): Likewise.
21894 * gimple-low.c (pass_lower_cf): Likewise.
21895 (pass_mark_used_blocks): Likewise.
21896 * init-regs.c (pass_initialize_regs): Likewise.
21897 * integrate.c (pass_initial_value_sets): Likewise.
21898 * ira.c (pass_ira): Likewise.
21899 * jump.c (pass_cleanup_barriers): Likewise.
21900 * omp-low.c (pass_expand_omp): Likewise.
21901 (pass_lower_omp): Likewise.
21902 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
21903 * recog.c (pass_split_all_insns): Likewise.
21904 (pass_split_after_reload): Likewise.
21905 (pass_split_before_regstack): Likewise.
21906 (pass_split_before_sched2): Likewise.
21907 (pass_split_for_shorten_branches): Likewise.
21908 * reginfo.c (pass_reginfo_init): Likewise.
21909 (pass_subregs_of_mode_init): Likewise.
21910 (pass_subregs_of_mode_finish): Likewise.
21911 * passes.c (pass_postreload): Likewise.
21912 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
21913 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
21914 (pass_warn_function_return): Likewise.
21915 (pass_warn_function_noreturn): Likewise.
21916 * tree-complex.c (pass_lower_complex): Likewise.
21917 (pass_lower_complex_O0): Likewise.
21918 * tree-if-conv.c (pass_if_conversion): Likewise.
21919 * tree-into-ssa.c (pass_build_ssa): Likewise.
21920 * tree-mudflap.c (pass_mudflap_1): Likewise.
21921 (pass_mudflap_2): Likewise.
21922 * tree-nomudflap.c (pass_mudflap_1): Likewise.
21923 (pass_mudflap_2): Likewise.
21924 * tree-nrv.c (pass_return_slot): Likewise.
21925 * tree-object-size.c (pass_object_sizes): Likewise.
21926 * tree-optimize.c (pass_all_optimizations): Likewise.
21927 (pass_early_local_passes): Likewise.
21928 (pass_all_early_optimizations): Likewise.
21929 (pass_cleanup_cfg): Likewise.
21930 (pass_cleanup_cfg_post_optimizing): Likewise.
21931 (pass_free_datastructures): Likewise.
21932 (pass_free_cfg_annotations): Likewise.
21933 (pass_fixup_cfg): Likewise.
21934 (pass_init_datastructures): Likewise.
21935 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
21936 (pass_late_warn_uninitialized): Likewise.
21937 (pass_update_address_taken): Likewise.
21938 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
21939 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
21940 (pass_cse_sincos): Likewise.
21941 (pass_convert_to_rsqrt): Likewise.
21942 * tree-ssa-structalias.c (pass_build_alias): Likewise.
21943 * tree-stdarg.c (pass_stdarg): Likewise.
21944 * tree-tailcall.c (pass_tail_recursion): Likewise.
21945 (pass_tail_calls): Likewise.
21946 * tree-vect-generic.c (pass_lower_vector): Likewise.
21947 (pass_lower_vector_ssa): Likewise.
21948 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
21949
21950 2009-04-16 Joseph Myers <joseph@codesourcery.com>
21951
21952 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
21953 XLR entry.
21954 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
21955 Handle -march=xlr.
21956 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
21957 logical and signext.
21958
21959 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
21960
21961 PR target/39767
21962 * config/sh/predicates.md (arith_operand): Check if the operand
21963 of TRUNCATE is a REG.
21964
21965 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
21966
21967 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
21968 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
21969
21970 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
21971
21972 * tree-iterator.c (tsi_split_statement_list_after,
21973 tsi_split_statement_list_before): Remove.
21974 * tree-iterator.h: Remove the prototypes for
21975 tsi_split_statement_list_after and tsi_split_statement_list_before.
21976
21977 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
21978
21979 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
21980 * tree-ssa-propagate.h: Remove the prototype for
21981 stmt_makes_single_load.
21982
21983 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
21984
21985 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
21986 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
21987
21988 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
21989
21990 * tree-iterator.c (EXPR_LAST_BODY): Remove.
21991
21992 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
21993
21994 * except.c (eh_region_outer_p): Remove.
21995 * except.h: Remove the prototype for eh_region_outer_p.
21996
21997 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
21998
21999 * function.c (current_function_assembler_name): Remove.
22000 * function.h: Remove the prototype for
22001 current_function_assembler_name.
22002
22003 2009-04-16 Ian Lance Taylor <iant@google.com>
22004
22005 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
22006 (add_reg_note): Call alloc_reg_note.
22007 * rtl.h (alloc_reg_note): Declare.
22008 * combine.c (try_combine): Use alloc_reg_note.
22009 (recog_for_combine, move_deaths): Likewise.
22010 (distribute_notes): Use alloc_reg_note and add_reg_note.
22011 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
22012 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
22013 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
22014
22015 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
22016
22017 PR rtl-optimization/39762
22018 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
22019 ira_may_move_out_cost): Add comments about way of their usage.
22020 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
22021
22022 * ira-conflicts.c (process_regs_for_copy): Use function
22023 ira_get_register_move_cost instead of global
22024 ira_register_move_cost.
22025
22026 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
22027 color_pass, move_spill_restore, update_curr_costs): Ditto.
22028
22029 * ira-lives.c (process_single_reg_class_operands): Ditto.
22030
22031 * ira-emit.c (emit_move_list): Ditto.
22032
22033 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
22034 (record_reg_classes): Ditto. Use functions
22035 ira_get_register_move_cost and ira_get_may_move_cost instead of
22036 global vars ira_register_move_cost, ira_may_move_out_cost and
22037 ira_may_move_in_cost.
22038 (record_address_regs): Don't call ira_init_register_move_cost.
22039 Use function ira_get_may_move_cost instead of global
22040 ira_may_move_in_cost.
22041 (process_bb_node_for_hard_reg_moves): Use function
22042 ira_get_register_move_cost instead of global ira_register_move_cost.
22043 (ira_costs): Don't call ira_init_register_move_cost.
22044
22045 2009-04-16 Richard Guenther <rguenther@suse.de>
22046
22047 * tree-cfg.c (verify_gimple_assign_binary):
22048 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
22049 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
22050 (create_general_new_stmt): Note that this function is broken.
22051
22052 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
22053
22054 * common.opt (fhelp): Add Var(help_flag).
22055 * gcc-plugin.h (plugin_info): Add help.
22056 * plugin.c (plugin_name_args): Add help.
22057 (register_plugin_info): Set plugin->help.
22058 (print_help_one_plugin): New.
22059 (print_plugins_help): New.
22060 * plugin.h (print_plugins_help): New.
22061 * toplev.c (toplev_main): Call print_plugins_help if needed.
22062
22063 2009-04-16 Richard Guenther <rguenther@suse.de>
22064
22065 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
22066 (gimple_ior_addresses_taken_1): New function.
22067 (gimple_ior_addresses_taken): Likewise.
22068 * gimple.h (struct gimple_statement_with_ops_base): Remove
22069 addresses_taken member.
22070 (gimple_ior_addresses_taken): Declare.
22071 (gimple_addresses_taken, gimple_addresses_taken_ptr,
22072 gimple_set_addresses_taken): Remove.
22073 * ipa-reference.c (mark_address): New function.
22074 (scan_stmt_for_static_refs): Use it for marking addresses taken.
22075 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
22076 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
22077 (gimple_add_to_addresses_taken): Remove.
22078 (get_tmr_operands): Call mark_address_taken.
22079 (get_asm_expr_operands): Likewise.
22080 (get_expr_operands): Likewise.
22081 (build_ssa_operands): Do not clear the addresses_taken bitmap.
22082 (free_stmt_operands): Do not free it.
22083 * tree-ssa.c (delete_tree_ssa): Likewise.
22084 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
22085
22086 2009-04-16 Richard Guenther <rguenther@suse.de>
22087
22088 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
22089 (walk_stmt_load_store_ops): Likewise.
22090 * gimple.c (get_base_loadstore): New function.
22091 (walk_stmt_load_store_addr_ops): Likewise.
22092 (walk_stmt_load_store_ops): Likewise.
22093 * ipa-pure-const.c (check_op): Simplify.
22094 (check_load, check_store): New functions.
22095 (check_stmt): Use walk_stmt_load_store_ops.
22096 * ipa-reference.c (mark_load): Adjust signature.
22097 (mark_store): Likewise.
22098 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
22099
22100 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
22101
22102 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
22103 (plugin_info): New.
22104 * opts.c (common_handle_option): Don't call print_version.
22105 * plugin.c (plugin_name_args): Add version.
22106 (register_plugin_info): New.
22107 (register_callback): Handle PLUGIN_INFO.
22108 (try_init_one_plugin): New.
22109 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
22110 if failed to init.
22111 (finalize_one_plugin): New.
22112 (finalize_plugins): New.
22113 (print_one_plugin): New.
22114 (print_plugins_versions): New.
22115 * plugin.h (print_plugins_versions): New.
22116 (finalize_plugins): New.
22117 * toplev.c (compile_file): Don't call initialize_plugins.
22118 (print_version): Call print_plugins_versions.
22119 (toplev_main): Call initialize_plugins. Print version if needed.
22120 Call finalize_plugins.
22121
22122 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
22123
22124 * common.opt (fversion): New.
22125 * gcc.c (print_version): New.
22126 (process_command): Don't print the version. Just set print_version.
22127 (main): Print version. Call subprocesses if print_version and
22128 verbose_flag are set.
22129 * opts.c (common_handle_option): Handle OPT_fversion.
22130
22131 2009-04-16 Richard Guenther <rguenther@suse.de>
22132 Ira Rosen <irar@il.ibm.com>
22133
22134 PR tree-optimization/39698
22135 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
22136 type of the reduction variable. Only generate the def if
22137 it is needed.
22138
22139 * omp-low.c (expand_omp_for_generic): When converting to a pointer
22140 make sure to first convert to an integer of the same precision.
22141 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
22142 the type of the evolution correctly in computing the new
22143 induction variable base.
22144
22145 2009-04-16 Richard Guenther <rguenther@suse.de>
22146
22147 PR middle-end/39625
22148 * tree-cfg.c (make_blocks): Split statements with to-be
22149 abnormal SSA names on the lhs.
22150
22151 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
22152
22153 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
22154 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
22155 * c-typeck.c (really_start_incremental_init): Likewise.
22156 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
22157 (TARGET_INITIALIZER): Remove it.
22158 * target.h (struct target): Remove vector_opaque_p.
22159 * tree.c (build_opaque_vector_type): New.
22160 * tree.h (TYPE_VECTOR_OPAQUE): New.
22161 (build_opaque_vector_type): Declare.
22162 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
22163 * config/rs6000/rs6000.c (build_opaque_vector_type,
22164 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
22165 (rs6000_init_builtins): Use build_opaque_vector_type for
22166 opaque_V4SI_type_node.
22167
22168 2009-04-15 Catherine Moore <clm@codesourcery.com>
22169
22170 * debug.h (set_name): Declare.
22171 * dwarf2out.c (dwarf2out_set_name): Declare.
22172 (dwarf2_debug_hooks): Add set_name.
22173 (find_AT_string): New.
22174 (add_AT_string): Call find_AT_string.
22175 (dwarf2out_set_name): New.
22176 * cp/decl.c (grokdeclarator): Call set_name.
22177 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
22178 * debug.c (do_nothing_debug_hooks): Likewise.
22179 * dbxout.c (dbx_debug_hooks): Likewise.
22180 * sdbout.c (sdb_debug_hooks): Likewise.
22181
22182 2009-04-15 Michael Eager <eager@eagercon.com>
22183
22184 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
22185 reg for single-precision FPU.
22186 * config/rs6000/rs6000.md (movsi_internal1): Only for
22187 !TARGET_SINGLE_FPU.
22188 (movsi_internal1_single): New. Add pattern to move SI values to/from
22189 single-precision FP regs.
22190
22191 2009-04-15 Richard Guenther <rguenther@suse.de>
22192
22193 * omp-low.c (lower_rec_input_clauses): Build correct address
22194 expressions.
22195 (expand_omp_for_generic): Fix multiplication type.
22196 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
22197 (generate_memset_zero): Fix types.
22198 * tree-profile.c (prepare_instrumented_value): Correctly
22199 widen a pointer.
22200
22201 2009-04-15 Ian Lance Taylor <iant@google.com>
22202
22203 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
22204 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
22205 for -Wall and for -Wc++-compat.
22206 (c_common_post_options): For C++, set warn_enum_compare if not
22207 already set.
22208 * c-tree.h (struct c_expr): Add field original_type.
22209 (build_external_ref): Update declaration.
22210 * c-parser.c (c_parser_braced_init): Set original_type.
22211 (c_parser_initelt): Likewise.
22212 (c_parser_expr_no_commas): Likewise.
22213 (c_parser_conditional_expression): Likewise.
22214 (c_parser_cast_expression): Likewise.
22215 (c_parser_unary_expression): Likewise. Pull setting of
22216 original_code to top of function.
22217 (c_parser_sizeof_expression): Set original_type.
22218 (c_parser_alignof_expression): Likewise.
22219 (c_parser_postfix_expression): Likewise. Pull setting of
22220 original_code to top of function.
22221 (c_parser_postfix_expression_after_paren_type): Set original_type.
22222 (c_parser_postfix_expression_after_primary): Likewise.
22223 (c_parser_expression): Likewise.
22224 * c-typeck.c (build_external_ref): Add type parameter. Change all
22225 callers.
22226 (c_expr_sizeof_expr): Set original_type field.
22227 (parser_build_unary_op): Likewise.
22228 (parser_build_binary_op): Likewise. Optionally warn about
22229 comparisons of enums of different types.
22230 (digest_init): Set original_type field.
22231 (really_start_incremental_init): Likewise.
22232 (push_init_level, pop_init_level): Likewise.
22233 * doc/invoke.texi (Warning Options): -Wenum-compare now
22234 supported in C.
22235
22236 2009-04-15 Richard Guenther <rguenther@suse.de>
22237
22238 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
22239 out a necessary conversion.
22240 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
22241 names we didn't value number.
22242 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
22243
22244 2009-04-15 Richard Guenther <rguenther@suse.de>
22245
22246 PR tree-optimization/39764
22247 * tree-ssa-ccp.c (get_value): Canonicalize value with
22248 canonicalize_float_value.
22249
22250 2009-04-15 Jan Hubicka <jh@suse.cz>
22251
22252 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
22253 Wrong version of patch.
22254
22255 2009-04-15 Jan Hubicka <jh@suse.cz>
22256
22257 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
22258
22259 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
22260
22261 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
22262 our distinct integral and vector types.
22263
22264 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
22265
22266 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
22267 * init.c (build_vtbl_address): Remove call to assemble_external.
22268
22269 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
22270
22271 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
22272 output for other floating point modes.
22273
22274 2009-04-14 Diego Novillo <dnovillo@google.com>
22275
22276 * diagnostic.c (diagnostic_report_diagnostic): Do not
22277 warn about loaded plugins for DK_ERROR and DK_WARNING.
22278 * c-decl.c (declspecs_add_type): Move call to
22279 invoke_plugin_callbacks ...
22280 * c-parser.c (c_parser_declspecs): ... here.
22281 * plugin.c (dump_active_plugins): Tidy output.
22282
22283 2009-04-14 Diego Novillo <dnovillo@google.com>
22284 Le-Chun Wu <lcwu@google.com>
22285
22286 * configure.ac: Add --enable-plugin support.
22287 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
22288 * Makefile.in (PLUGIN_H): Define.
22289 Export ENABLE_PLUGIN and GMPINC to site.exp.
22290 Add PLUGINLIBS to link command.
22291 Add/modify dependencies for plugin.o and files including plugin.h.
22292 (plugin.o): New.
22293 * config.in: Regenerate.
22294
22295 * opts.c (common_handle_option): Handle OPT_fplugin_ and
22296 OPT_fplugin_arg_.
22297
22298 2009-04-14 Le-Chun Wu <lcwu@google.com>
22299
22300 * tree-pass.h (register_one_dump_file): Add a prototype for
22301 register_one_dump_file.
22302 * toplev.c (compile_file): Call initialize_plugins.
22303 (do_compile): Call invoke_plugin_callbacks.
22304 (toplev_main): Call invoke_plugin_callbacks.
22305 * common.opt: Add -fplugin= and -fplugin-arg-.
22306 * gcc-plugin.h: New public header file for plugins to include.
22307 * plugin.c: New source file.
22308 * plugin.h: New internal header file.
22309 * passes.c (register_one_dump_file): Make it external.
22310
22311 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
22312
22313 2009-04-14 Diego Novillo <dnovillo@google.com>
22314
22315 * doc/plugins.texi: New.
22316 * doc/gccint.texi: Add reference to Plugins chapter.
22317 * doc/invoke.texi: Document -fplugin and -fplugin-arg
22318 * diagnostic.c (diagnostic_report_diagnostic): Warn about
22319 loaded plugins, if any.
22320 * timevar.def (TV_PLUGIN_INIT): Define.
22321 (TV_PLUGIN_RUN): Define.
22322 * plugin.c: Include timevar.h
22323 (plugins_active_p): New.
22324 (dump_active_plugins): New.
22325 (debug_active_plugins): New.
22326
22327 2009-04-14 Joseph Myers <joseph@codesourcery.com>
22328
22329 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
22330 library paths.
22331 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
22332
22333 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
22334
22335 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
22336 the same as a minus without a shift.
22337
22338 2009-04-14 Nick Clifton <nickc@redhat.com>
22339
22340 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
22341 comparisons with small integers will always produce a short
22342 branch.
22343
22344 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
22345
22346 Merge:
22347 2008-12-19 Diego Novillo <dnovillo@google.com>
22348
22349 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
22350
22351 2009-04-14 Richard Guenther <rguenther@suse.de>
22352
22353 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
22354 verification.
22355 (verify_gimple_assign_binary): Likewise. Handle shifts and
22356 rotates correctly.
22357 (verify_gimple_phi): Print the mismatched argument position.
22358 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
22359 Fix types.
22360 (vect_update_init_of_dr): Likewise.
22361 * matrix-reorg.c (transform_access_sites): Do what the
22362 comment suggests.
22363 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
22364
22365 2009-04-13 Michael Eager <eager@eagercon.com>
22366
22367 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
22368 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
22369 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
22370 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
22371 remove duplicate config
22372
22373 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
22374
22375 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
22376 file_name:line_number type locator of the call site.
22377
22378 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
22379
22380 * genautomata.c: Put blank after comma.
22381 (automaton_decls): New.
22382 (struct unit_usage): Add comments to member next.
22383 (store_alt_unit_usage): Keep the list ordered.
22384 (unit_present_on_list_p, equal_alternatives_p): New.
22385 (check_regexp_units_distribution): Check units distribution
22386 correctness correctly.
22387 (main): Don't write automata if error is found. Return correct
22388 exit code.
22389
22390 * config/m68k/cf.md (cfv4_ds): Remove.
22391 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
22392 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
22393
22394 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
22395 power4-load-ext, power4-store, power4-store-update,
22396 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
22397 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
22398 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
22399 power4-sqrt, power4-isync): Modify reservation to make correct
22400 unit distribution to automata.
22401
22402 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
22403 power5-store-update, power5-two, power5-three, power5-lmul,
22404 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
22405
22406 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
22407
22408 * except.c (pass_set_nothrow_function_flags): Set name and add
22409 TODO_dump_func.
22410 (set_nothrow_function_flags): Mention in the dump file when
22411 changing a function to nothrow.
22412
22413 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
22414
22415 PR/39066
22416 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
22417 instead of unsigned long.
22418
22419 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22420
22421 * config/arm/arm.c (return_used_this_function): Remove.
22422 (arm_output_function_prologue): Remove use of
22423 return_used_this_function.
22424 (output_return_instruction): Replace use of
22425 return_used_this_function
22426 by cfun->machine->return_used_this_function.
22427 (arm_output_epilogue): Likewise.
22428 (arm_output_function_epilogue): Likewise.
22429 (thumb_unexpanded_epilogue): Likewise.
22430 * config/arm/arm.h (struct machine_function):
22431 New member return_used_this_function.
22432
22433 2009-04-12 Mark Mitchell <mark@codesourcery.com>
22434
22435 * doc/install.texi: Correct description of default directory for
22436 --with-gxx-include-dir.
22437
22438 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
22439
22440 * fold-const.c (build_range_check): Properly deal with enumeral and
22441 boolean base types.
22442
22443 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
22444
22445 * doc/invoke.texi (max_gcse_passes): Remove documentation.
22446 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
22447 * params.h (MAX_GCSE_PASSES): Remove.
22448 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
22449 in sequence. Remove ability to run multiple passes.
22450 (bypass_jumps): Report run as third CPROP pass.
22451
22452 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
22453
22454 PR middle-end/39651
22455 * except.c (can_throw_external): Look at each insn in a SEQUENCE
22456 when deciding whether the whole SEQUENCE can throw.
22457
22458 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
22459
22460 PR target/39740
22461 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
22462 offseted label references.
22463
22464 2009-04-11 Jan Hubicka <jh@suse.cz>
22465
22466 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
22467
22468 2009-04-11 Richard Guenther <rguenther@suse.de>
22469
22470 PR middle-end/39732
22471 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
22472 return variables as TREE_ADDRESSABLE.
22473
22474 2009-04-11 Richard Guenther <rguenther@suse.de>
22475
22476 PR tree-optimization/39713
22477 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
22478 reference trees have SSA_NAME operands.
22479
22480 2009-04-11 Richard Guenther <rguenther@suse.de>
22481
22482 PR c/39712
22483 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
22484 address expressions.
22485
22486 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
22487
22488 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
22489 match changes in Cygwin 1.7
22490 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
22491 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
22492
22493 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
22494
22495 PR tree-optimization/39701
22496 * doc/invoke.texi (Optimization Options): Document change in
22497 meaning and initialization of -fdelete-null-pointer-checks.
22498
22499 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
22500
22501 PR middle-end/39701
22502 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
22503
22504 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
22505 here.
22506
22507 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
22508
22509 2009-04-10 Chao-ying Fu <fu@mips.com>
22510
22511 * doc/tm.texi (Instruction Output): Document
22512 TARGET_ASM_FINAL_POSTSCAN_INSN.
22513 * target.h (final_postscan_insn): New field in asm_out.
22514 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
22515 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
22516 * final.c (final_scan_insn): Call
22517 targetm.asm_out.final_postscan_insn after outputting
22518 an asm macro and a normal instruction.
22519
22520 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
22521 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
22522 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
22523 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
22524 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
22525
22526 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
22527
22528 PR middle-end/39701
22529 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
22530 variables as non-NULL even with -fdelete-null-pointer-checks.
22531
22532 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
22533
22534 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
22535
22536 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
22537
22538 PR target/39678
22539 * config/i386/i386.c (classify_argument): Handle SCmode with
22540 (bit_offset % 64) != 0.
22541
22542 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
22543
22544 * doc/invoke.texi (Optimize Options): Add cross-reference to
22545 -Q --help=optimizers examples.
22546
22547 2009-04-10 Ben Elliston <bje@au.ibm.com>
22548
22549 PR target/36800
22550 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
22551 regalign for the reg == fpr and TDmode case.
22552
22553 2009-04-09 David Ayers <ayers@fsfe.org>
22554
22555 PR objc/29200
22556 * objc/objc-act.c (warn_with_method): Remove helper function.
22557 (check_duplicates): Call warning and inform directly.
22558 (really_start_method): Likewise.
22559
22560 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
22561
22562 * expmed.c (expand_divmod): Always use a comparison for a division
22563 by a large unsigned integer.
22564
22565 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
22566 for things others than variables or functions as nonzero.
22567
22568 2009-04-09 Nick Clifton <nickc@redhat.com>
22569
22570 * unwind-compat.c: Change copyright header to refer to version
22571 3 of the GNU General Public License with version 3.1 of the
22572 GCC Runtime Library Exception and to point readers at the
22573 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
22574 * config/alpha/crtfastmath.c: Likewise.
22575 * config/alpha/linux-unwind.h: Likewise.
22576 * config/alpha/qrnnd.asm: Likewise.
22577 * config/alpha/vms-crt0-64.c: Likewise.
22578 * config/alpha/vms-crt0.c: Likewise.
22579 * config/alpha/vms-dwarf2.asm: Likewise.
22580 * config/alpha/vms-dwarf2eh.asm: Likewise.
22581 * config/alpha/vms-psxcrt0-64.c: Likewise.
22582 * config/alpha/vms-psxcrt0.c: Likewise.
22583 * config/alpha/vms_tramp.asm: Likewise.
22584 * config/arc/initfini.c: Likewise.
22585 * config/arc/lib1funcs.asm: Likewise.
22586 * config/arm/bpabi-v6m.S: Likewise.
22587 * config/arm/bpabi.S: Likewise.
22588 * config/arm/bpabi.c: Likewise.
22589 * config/arm/crti.asm: Likewise.
22590 * config/arm/crtn.asm: Likewise.
22591 * config/arm/ieee754-df.S: Likewise.
22592 * config/arm/ieee754-sf.S: Likewise.
22593 * config/arm/lib1funcs.asm: Likewise.
22594 * config/arm/libunwind.S: Likewise.
22595 * config/arm/linux-atomic.c: Likewise.
22596 * config/arm/mmintrin.h: Likewise.
22597 * config/arm/pr-support.c: Likewise.
22598 * config/arm/unaligned-funcs.c: Likewise.
22599 * config/arm/unwind-arm.c: Likewise.
22600 * config/arm/unwind-arm.h: Likewise.
22601 * config/avr/libgcc.S: Likewise.
22602 * config/bfin/crti.s: Likewise.
22603 * config/bfin/crtlibid.s: Likewise.
22604 * config/bfin/crtn.s: Likewise.
22605 * config/bfin/lib1funcs.asm: Likewise.
22606 * config/bfin/linux-unwind.h: Likewise.
22607 * config/cris/arit.c: Likewise.
22608 * config/cris/cris_abi_symbol.c: Likewise.
22609 * config/darwin-64.c: Likewise.
22610 * config/darwin-crt2.c: Likewise.
22611 * config/darwin-crt3.c: Likewise.
22612 * config/darwin.h: Likewise.
22613 * config/dbxelf.h: Likewise.
22614 * config/dfp-bit.c: Likewise.
22615 * config/dfp-bit.h: Likewise.
22616 * config/elfos.h: Likewise.
22617 * config/fixed-bit.c: Likewise.
22618 * config/fixed-bit.h: Likewise.
22619 * config/fp-bit.c: Likewise.
22620 * config/fp-bit.h: Likewise.
22621 * config/fr30/crti.asm: Likewise.
22622 * config/fr30/crtn.asm: Likewise.
22623 * config/fr30/lib1funcs.asm: Likewise.
22624 * config/freebsd-spec.h: Likewise.
22625 * config/frv/cmovd.c: Likewise.
22626 * config/frv/cmovh.c: Likewise.
22627 * config/frv/cmovw.c: Likewise.
22628 * config/frv/frvbegin.c: Likewise.
22629 * config/frv/frvend.c: Likewise.
22630 * config/frv/lib1funcs.asm: Likewise.
22631 * config/glibc-stdint.h: Likewise.
22632 * config/h8300/clzhi2.c: Likewise.
22633 * config/h8300/crti.asm: Likewise.
22634 * config/h8300/crtn.asm: Likewise.
22635 * config/h8300/ctzhi2.c: Likewise.
22636 * config/h8300/fixunssfsi.c: Likewise.
22637 * config/h8300/lib1funcs.asm: Likewise.
22638 * config/h8300/parityhi2.c: Likewise.
22639 * config/h8300/popcounthi2.c: Likewise.
22640 * config/i386/ammintrin.h: Likewise.
22641 * config/i386/att.h: Likewise.
22642 * config/i386/avxintrin.h: Likewise.
22643 * config/i386/biarch64.h: Likewise.
22644 * config/i386/bmmintrin.h: Likewise.
22645 * config/i386/cpuid.h: Likewise.
22646 * config/i386/cross-stdarg.h: Likewise.
22647 * config/i386/crtfastmath.c: Likewise.
22648 * config/i386/crtprec.c: Likewise.
22649 * config/i386/cygming-crtbegin.c: Likewise.
22650 * config/i386/cygming-crtend.c: Likewise.
22651 * config/i386/cygwin.asm: Likewise.
22652 * config/i386/emmintrin.h: Likewise.
22653 * config/i386/gmm_malloc.h: Likewise.
22654 * config/i386/gthr-win32.c: Likewise.
22655 * config/i386/i386.h: Likewise.
22656 * config/i386/immintrin.h: Likewise.
22657 * config/i386/linux-unwind.h: Likewise.
22658 * config/i386/linux64.h: Likewise.
22659 * config/i386/mm3dnow.h: Likewise.
22660 * config/i386/mmintrin-common.h: Likewise.
22661 * config/i386/mmintrin.h: Likewise.
22662 * config/i386/nmmintrin.h: Likewise.
22663 * config/i386/pmm_malloc.h: Likewise.
22664 * config/i386/pmmintrin.h: Likewise.
22665 * config/i386/smmintrin.h: Likewise.
22666 * config/i386/sol2-c1.asm: Likewise.
22667 * config/i386/sol2-ci.asm: Likewise.
22668 * config/i386/sol2-cn.asm: Likewise.
22669 * config/i386/sol2-gc1.asm: Likewise.
22670 * config/i386/tmmintrin.h: Likewise.
22671 * config/i386/unix.h: Likewise.
22672 * config/i386/w32-unwind.h: Likewise.
22673 * config/i386/wmmintrin.h: Likewise.
22674 * config/i386/x86-64.h: Likewise.
22675 * config/i386/x86intrin.h: Likewise.
22676 * config/i386/xmmintrin.h: Likewise.
22677 * config/ia64/crtbegin.asm: Likewise.
22678 * config/ia64/crtend.asm: Likewise.
22679 * config/ia64/crtfastmath.c: Likewise.
22680 * config/ia64/crti.asm: Likewise.
22681 * config/ia64/crtn.asm: Likewise.
22682 * config/ia64/fde-glibc.c: Likewise.
22683 * config/ia64/lib1funcs.asm: Likewise.
22684 * config/ia64/linux-unwind.h: Likewise.
22685 * config/ia64/quadlib.c: Likewise.
22686 * config/ia64/unwind-ia64.c: Likewise.
22687 * config/linux.h: Likewise.
22688 * config/m32c/m32c-lib1.S: Likewise.
22689 * config/m32c/m32c-lib2-trapv.c: Likewise.
22690 * config/m32c/m32c-lib2.c: Likewise.
22691 * config/m32r/initfini.c: Likewise.
22692 * config/m68hc11/larith.asm: Likewise.
22693 * config/m68hc11/m68hc11-crt0.S: Likewise.
22694 * config/m68k/cf.md: Likewise.
22695 * config/m68k/crti.s: Likewise.
22696 * config/m68k/crtn.s: Likewise.
22697 * config/m68k/lb1sf68.asm: Likewise.
22698 * config/m68k/linux-unwind.h: Likewise.
22699 * config/mcore/crti.asm: Likewise.
22700 * config/mcore/crtn.asm: Likewise.
22701 * config/mcore/lib1.asm: Likewise.
22702 * config/mips/linux-unwind.h: Likewise.
22703 * config/mips/loongson.h: Likewise.
22704 * config/mips/mips16.S: Likewise.
22705 * config/mmix/crti.asm: Likewise.
22706 * config/mmix/crtn.asm: Likewise.
22707 * config/pa/fptr.c: Likewise.
22708 * config/pa/hpux-unwind.h: Likewise.
22709 * config/pa/lib2funcs.asm: Likewise.
22710 * config/pa/linux-atomic.c: Likewise.
22711 * config/pa/linux-unwind.h: Likewise.
22712 * config/pa/milli64.S: Likewise.
22713 * config/pa/quadlib.c: Likewise.
22714 * config/pa/stublib.c: Likewise.
22715 * config/picochip/libgccExtras/adddi3.asm: Likewise.
22716 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
22717 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
22718 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
22719 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
22720 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
22721 * config/picochip/libgccExtras/divmod15.asm: Likewise.
22722 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
22723 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
22724 * config/picochip/libgccExtras/longjmp.asm: Likewise.
22725 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
22726 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
22727 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
22728 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
22729 * config/picochip/libgccExtras/setjmp.asm: Likewise.
22730 * config/picochip/libgccExtras/subdi3.asm: Likewise.
22731 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
22732 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
22733 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
22734 * config/rs6000/750cl.h: Likewise.
22735 * config/rs6000/altivec.h: Likewise.
22736 * config/rs6000/biarch64.h: Likewise.
22737 * config/rs6000/crtresfpr.asm: Likewise.
22738 * config/rs6000/crtresgpr.asm: Likewise.
22739 * config/rs6000/crtresxfpr.asm: Likewise.
22740 * config/rs6000/crtresxgpr.asm: Likewise.
22741 * config/rs6000/crtsavfpr.asm: Likewise.
22742 * config/rs6000/crtsavgpr.asm: Likewise.
22743 * config/rs6000/darwin-asm.h: Likewise.
22744 * config/rs6000/darwin-fallback.c: Likewise.
22745 * config/rs6000/darwin-fpsave.asm: Likewise.
22746 * config/rs6000/darwin-ldouble.c: Likewise.
22747 * config/rs6000/darwin-tramp.asm: Likewise.
22748 * config/rs6000/darwin-unwind.h: Likewise.
22749 * config/rs6000/darwin-vecsave.asm: Likewise.
22750 * config/rs6000/darwin-world.asm: Likewise.
22751 * config/rs6000/e500crtres32gpr.asm: Likewise.
22752 * config/rs6000/e500crtres64gpr.asm: Likewise.
22753 * config/rs6000/e500crtres64gprctr.asm: Likewise.
22754 * config/rs6000/e500crtrest32gpr.asm: Likewise.
22755 * config/rs6000/e500crtrest64gpr.asm: Likewise.
22756 * config/rs6000/e500crtresx32gpr.asm: Likewise.
22757 * config/rs6000/e500crtresx64gpr.asm: Likewise.
22758 * config/rs6000/e500crtsav32gpr.asm: Likewise.
22759 * config/rs6000/e500crtsav64gpr.asm: Likewise.
22760 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
22761 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
22762 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
22763 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
22764 * config/rs6000/eabi-ci.asm: Likewise.
22765 * config/rs6000/eabi-cn.asm: Likewise.
22766 * config/rs6000/eabi.asm: Likewise.
22767 * config/rs6000/linux-unwind.h: Likewise.
22768 * config/rs6000/linux64.h: Likewise.
22769 * config/rs6000/paired.h: Likewise.
22770 * config/rs6000/paired.md: Likewise.
22771 * config/rs6000/ppc64-fp.c: Likewise.
22772 * config/rs6000/ppu_intrinsics.h: Likewise.
22773 * config/rs6000/rs6000.h: Likewise.
22774 * config/rs6000/si2vmx.h: Likewise.
22775 * config/rs6000/sol-ci.asm: Likewise.
22776 * config/rs6000/sol-cn.asm: Likewise.
22777 * config/rs6000/spe.h: Likewise.
22778 * config/rs6000/spu2vmx.h: Likewise.
22779 * config/rs6000/sysv4.h: Likewise.
22780 * config/rs6000/tramp.asm: Likewise.
22781 * config/rs6000/vec_types.h: Likewise.
22782 * config/s390/linux-unwind.h: Likewise.
22783 * config/s390/tpf-unwind.h: Likewise.
22784 * config/score/crti.asm: Likewise.
22785 * config/score/crtn.asm: Likewise.
22786 * config/sh/crt1.asm: Likewise.
22787 * config/sh/crti.asm: Likewise.
22788 * config/sh/crtn.asm: Likewise.
22789 * config/sh/divtab-sh4-300.c: Likewise.
22790 * config/sh/divtab-sh4.c: Likewise.
22791 * config/sh/divtab.c: Likewise.
22792 * config/sh/lib1funcs-4-300.asm: Likewise.
22793 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
22794 * config/sh/lib1funcs.asm: Likewise.
22795 * config/sh/lib1funcs.h: Likewise.
22796 * config/sh/linux-atomic.asm: Likewise.
22797 * config/sh/linux-unwind.h: Likewise.
22798 * config/sh/shmedia.h: Likewise.
22799 * config/sh/sshmedia.h: Likewise.
22800 * config/sh/ushmedia.h: Likewise.
22801 * config/sparc/crtfastmath.c: Likewise.
22802 * config/sparc/linux-unwind.h: Likewise.
22803 * config/sparc/sol2-c1.asm: Likewise.
22804 * config/sparc/sol2-ci.asm: Likewise.
22805 * config/sparc/sol2-cn.asm: Likewise.
22806 * config/spu/divmodti4.c: Likewise.
22807 * config/spu/divv2df3.c: Likewise.
22808 * config/spu/float_disf.c: Likewise.
22809 * config/spu/float_unsdidf.c: Likewise.
22810 * config/spu/float_unsdisf.c: Likewise.
22811 * config/spu/float_unssidf.c: Likewise.
22812 * config/spu/mfc_multi_tag_release.c: Likewise.
22813 * config/spu/mfc_multi_tag_reserve.c: Likewise.
22814 * config/spu/mfc_tag_release.c: Likewise.
22815 * config/spu/mfc_tag_reserve.c: Likewise.
22816 * config/spu/mfc_tag_table.c: Likewise.
22817 * config/spu/multi3.c: Likewise.
22818 * config/spu/spu_internals.h: Likewise.
22819 * config/spu/spu_intrinsics.h: Likewise.
22820 * config/spu/spu_mfcio.h: Likewise.
22821 * config/spu/vec_types.h: Likewise.
22822 * config/spu/vmx2spu.h: Likewise.
22823 * config/stormy16/stormy16-lib2.c: Likewise.
22824 * config/svr4.h: Likewise.
22825 * config/sync.c: Likewise.
22826 * config/v850/lib1funcs.asm: Likewise.
22827 * config/vxlib-tls.c: Likewise.
22828 * config/vxlib.c: Likewise.
22829 * config/vxworks-dummy.h: Likewise.
22830 * config/xtensa/crti.asm: Likewise.
22831 * config/xtensa/crtn.asm: Likewise.
22832 * config/xtensa/ieee754-df.S: Likewise.
22833 * config/xtensa/ieee754-sf.S: Likewise.
22834 * config/xtensa/lib1funcs.asm: Likewise.
22835 * config/xtensa/lib2funcs.S: Likewise.
22836 * config/xtensa/linux-unwind.h: Likewise.
22837 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
22838 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
22839 * coretypes.h: Likewise.
22840 * crtstuff.c: Likewise.
22841 * defaults.h: Likewise.
22842 * dwarf2.h: Likewise.
22843 * emutls.c: Likewise.
22844 * gbl-ctors.h: Likewise.
22845 * gcov-io.h: Likewise.
22846 * ginclude/float.h: Likewise.
22847 * ginclude/iso646.h: Likewise.
22848 * ginclude/stdarg.h: Likewise.
22849 * ginclude/stdbool.h: Likewise.
22850 * ginclude/stddef.h: Likewise.
22851 * ginclude/stdfix.h: Likewise.
22852 * ginclude/stdint-gcc.h: Likewise.
22853 * ginclude/tgmath.h: Likewise.
22854 * gthr-aix.h: Likewise.
22855 * gthr-dce.h: Likewise.
22856 * gthr-gnat.c: Likewise.
22857 * gthr-gnat.h: Likewise.
22858 * gthr-lynx.h: Likewise.
22859 * gthr-mipssde.h: Likewise.
22860 * gthr-nks.h: Likewise.
22861 * gthr-posix.c: Likewise.
22862 * gthr-posix.h: Likewise.
22863 * gthr-posix95.h: Likewise.
22864 * gthr-rtems.h: Likewise.
22865 * gthr-single.h: Likewise.
22866 * gthr-solaris.h: Likewise.
22867 * gthr-tpf.h: Likewise.
22868 * gthr-vxworks.h: Likewise.
22869 * gthr-win32.h: Likewise.
22870 * gthr.h: Likewise.
22871 * libgcc2.c: Likewise.
22872 * libgcc2.h: Likewise.
22873 * libgcov.c: Likewise.
22874 * tsystem.h: Likewise.
22875 * typeclass.h: Likewise.
22876 * unwind-c.c: Likewise.
22877 * unwind-compat.h: Likewise.
22878 * unwind-dw2-fde-compat.c: Likewise.
22879 * unwind-dw2-fde-darwin.c: Likewise.
22880 * unwind-dw2-fde-glibc.c: Likewise.
22881 * unwind-dw2-fde.c: Likewise.
22882 * unwind-dw2-fde.h: Likewise.
22883 * unwind-dw2.c: Likewise.
22884 * unwind-dw2.h: Likewise.
22885 * unwind-generic.h: Likewise.
22886 * unwind-pe.h: Likewise.
22887 * unwind-sjlj.c: Likewise.
22888 * unwind.inc: Likewise.
22889 * config/arm/neon-gen.ml: Change generated copyright header to
22890 refer to version 3 of the GNU General Public License with
22891 version 3.1 of the GCC Runtime Library Exception and to point
22892 readers at the COPYING3 and COPYING3.RUNTIME files and the
22893 FSF's license web page.
22894 * config/arm/arm_neon.h: Regenerate.
22895
22896 2009-04-09 Jakub Jelinek <jakub@redhat.com>
22897
22898 * config/cris/cris.md: Change copyright header to refer to version
22899 3 of the GNU General Public License.
22900 * doc/install.texi2html: Change copyright header to refer to version
22901 3 of the GNU General Public License and to point readers at the
22902 COPYING3 file and the FSF's license web page.
22903 * config/vax/linux.h: Likewise.
22904
22905 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
22906
22907 * config/i386/i386.md (cmpcc): New.
22908 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
22909 (sync_compare_and_swap_cc*): Delete.
22910
22911 * config/s390/s390.c (s390_compare_emitted): Remove.
22912 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
22913 s390_compare_emitted used to be handled. Assert that modes match.
22914 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
22915 refer to sync_compare_and_swap_ccsi.
22916 * config/s390/s390.h (s390_compare_emitted): Remove.
22917 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
22918 instead of s390_compare_emitted.
22919 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
22920 instead of s390_compare_emitted.
22921 * config/s390/s390.md (cmpcc): New.
22922 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
22923 CC_REGNUM, do not pretend it's set.
22924 (sync_compare_and_swap_cc*): Delete.
22925 * config/s390/predicates.md (cc_reg_operand): New.
22926
22927 * expr.c (sync_compare_and_swap_cc): Delete.
22928 * optabs.h (sync_compare_and_swap_cc): Delete.
22929 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
22930 is being used with can_compare_p.
22931 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
22932 (find_cc_set): New.
22933 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
22934 look for a MODE_CC set instead. Use emit_store_flag.
22935 (expand_compare_and_swap_loop): Likewise, with some additional
22936 complication to avoid a force_reg when useless. Use
22937 emit_cmp_and_jump_insns.
22938 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
22939 * doc/md.texi (sync_compare_and_swap_cc): Merge with
22940 sync_compare_and_swap documentation.
22941
22942 2009-04-09 Jan Hubicka <jh@suse.cz>
22943
22944 * except.c (find_prev_try): Break out from ....
22945 (duplicate_eh_regions): ... here; properly update prev_try pointers
22946 when duplication part of tree.
22947 (dump_eh_tree): Improve dumping.
22948 (verify_eh_region): New.
22949 (verify_eh_tree): Use it.
22950
22951 2009-04-06 Richard Guenther <rguenther@suse.de>
22952
22953 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
22954 &ARRAY addresses by adjusting their types and prepending
22955 a conversion.
22956 * tree-cfg.c (verify_gimple_assign_single): Verify that
22957 addresses are correct.
22958
22959 2009-04-09 Richard Guenther <rguenther@suse.de>
22960
22961 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
22962 indices into an array reference if possible.
22963 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
22964 Fold POINTER_PLUS_EXPR statements with invariant address.
22965
22966 2009-04-09 Alan Modra <amodra@bigpond.net.au>
22967
22968 PR target/39634
22969 * config.gcc (powerpc64-*-linux*): Always build biarch.
22970
22971 2009-04-09 Joseph Myers <joseph@codesourcery.com>
22972
22973 PR c/39613
22974 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
22975 it and pedwarn if this results in an INTEGER_CST.
22976
22977 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22978
22979 * doc/install.texi: Update minimum GMP version. Remove obsolete
22980 text in MPFR section.
22981
22982 2009-04-08 Jakub Jelinek <jakub@redhat.com>
22983
22984 * dwarf2out.c (class_scope_p): New static inline.
22985 (class_or_namespace_scope_p): Use it.
22986 (gen_variable_die): Use DW_TAG_member tag for static data member
22987 declarations instead of DW_TAG_variable.
22988
22989 PR middle-end/39573
22990 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
22991 variables.
22992
22993 2009-04-08 Richard Guenther <rguenther@suse.de>
22994
22995 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
22996 valueize random data.
22997
22998 2009-04-08 David Edelsohn <edelsohn@gnu.org>
22999
23000 * config.gcc (aix tm_file): Add aix-stdint.h.
23001 (aix tm clause use_gcc_stdint): Set to wrap.
23002 * config/rs6000/aix-stdint.h: New file.
23003
23004 2009-04-08 Richard Guenther <rguenther@suse.de>
23005
23006 PR middle-end/36291
23007 * tree-dfa.c (add_referenced_var): Do not recurse into
23008 global initializers.
23009 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
23010 exposed variables.
23011 (fold_const_aggregate_ref): Likewise.
23012
23013 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
23014
23015 * recog.c (ordered_comparison_operator): New.
23016 * gensupport.c (std_preds): Add it.
23017 * doc/md.texi (Machine-Independent Predicates): Document it.
23018
23019 2009-04-08 Jan Hubicka <jh@suse.cz>
23020
23021 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
23022 * function.h (rtl_eh): Remove exception_handler_label_map.
23023 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
23024 remove_exception_handler_label, for_each_eh_label_1): Remove.
23025 (rtl_remove_unreachable_regions): Remove.
23026 (convert_from_eh_region_ranges): Do not remove unreachable regions.
23027 (find_exception_handler_labels): Don't build the hashtable.
23028 (maybe_remove_eh_handler): Remove.
23029 (for_each_eh_label): Rewrite to walk the tree.
23030 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
23031 * except.h (maybe_remove_eh_handler): Remove.
23032 * passes.c (init_optimization_passes): Schedule second EH cleanup
23033 before out-of-ssa.
23034 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
23035 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
23036
23037 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
23038
23039 * genoutput.c (validate_optab_operands): New.
23040 (gen_insn, gen_expand): Call it.
23041
23042 * genflags.c (gen_insn): Detect misused iterators.
23043 (main): Pass line_no to gen_insn, exit with status 1 on error.
23044
23045 * genextract.c (line_no): Make global.
23046 (VEC_safe_set_locstr): Change assertion to error message.
23047 (main): Exit with status 1 on error.
23048
23049 2009-04-08 Joseph Myers <joseph@codesourcery.com>
23050
23051 PR c/39614
23052 PR c/39673
23053 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
23054 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
23055 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
23056 * c-convert.c (convert): Do not call fold on results of conversion
23057 functions when the result is a C_MAYBE_CONST_EXPR.
23058 * c-parser.c (c_parser_postfix_expression): Do not fold condition
23059 of __builtin_choose_expr.
23060 * c-typeck.c (remove_c_maybe_const_expr): New.
23061 (build_unary_op, build_conditional_expr, build_compound_expr,
23062 build_binary_op, c_objc_common_truthvalue_conversion): Call
23063 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
23064 integer operands.
23065
23066 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
23067
23068 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
23069 CODE to produce a new one. Add a prototype to use fold_convert_const
23070
23071 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
23072
23073 PR bootstrap/39660
23074 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
23075 mix declarations and code.
23076
23077 2009-04-08 Ben Elliston <bje@au.ibm.com>
23078
23079 * gcc.c: Replace `CC' with `GCC' throughout.
23080
23081 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
23082
23083 * doc/invoke.texi: Document Atom support.
23084
23085 2009-04-07 Jason Merrill <jason@redhat.com>
23086
23087 PR c++/25185
23088 * c-common.h, c-common.c: Add flag_pretty_templates.
23089 * c-opts.c (c_common_handle_option): Set it.
23090 * c.opt: Add -fno-pretty-templates.
23091 * doc/invoke.texi (C++ Dialect Options): Likewise.
23092
23093 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
23094
23095 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
23096 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
23097 (ia64_expand_builtin): Likewise.
23098
23099 2009-04-07 Martin Jambor <mjambor@suse.cz>
23100
23101 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
23102 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
23103 ADDR_EXPRS are include too.
23104
23105 2009-04-07 Richard Guenther <rguenther@suse.de>
23106
23107 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
23108 decls are only used if passes as parameters or if they are
23109 local statics and the call is not to a builtin.
23110 (call_may_clobber_ref_p_1): Likewise.
23111
23112 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
23113
23114 * expr.c (do_store_flag): Remove last argument. Simplify code
23115 to avoid duplication of tests already done by can_compare_p.
23116 (expand_expr_real_1): Adjust caller.
23117
23118 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
23119
23120 * optabs.c (can_compare_p): Test the predicate of a
23121 cbranch and cstore pattern.
23122
23123 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
23124
23125 * expr.c (convert_move): Use emit_store_flag instead of
23126 "emulating" it.
23127
23128 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
23129
23130 * config/i386/i386.c (ix86_compare_emitted): Remove.
23131 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
23132 ix86_compare_op0 like ix86_compare_emitted used to be handled.
23133 * config/i386/i386.h (ix86_compare_emitted): Remove.
23134 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
23135 instead of ix86_compare_emitted.
23136 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
23137
23138 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
23139
23140 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
23141 Add t-sysroot-suffix to tmake_file.
23142 * config/print-sysroot-suffix.sh: New file.
23143 * config/t-sysroot-suffix: New file.
23144
23145 2009-04-07 Ben Elliston <bje@au.ibm.com>
23146
23147 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
23148 as the latter produces a warning when the target does not support
23149 infinity.
23150
23151 2009-04-07 Ben Elliston <bje@au.ibm.com>
23152
23153 * dfp.c: Replace type punning assignments with memcpy throughout.
23154 * Makefile.in (dfp.o-warn): Remove.
23155
23156 2009-04-07 Alan Modra <amodra@bigpond.net.au>
23157
23158 PR target/39634
23159 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
23160 Include soft-fp/t-softfp after rs6000/t-linux64.
23161
23162 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
23163
23164 * stor-layout.c (set_sizetype): Use the full precision of their
23165 machine mode for bitsize types.
23166
23167 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
23168
23169 * config/i386/i386.md: Revert 2 accidental checkins.
23170
23171 2009-04-06 Joey Ye <joey.ye@intel.com>
23172 Xuepeng Guo <xuepeng.guo@intel.com>
23173 H.J. Lu <hongjiu.lu@intel.com>
23174
23175 Atom pipeline model, tuning and insn selection.
23176 * config.gcc (atom): Add atom config options and target.
23177
23178 * config/i386/atom.md: New.
23179
23180 * config/i386/i386.c (atom_cost): New cost.
23181 (m_ATOM): New macro flag.
23182 (initial_ix86_tune_features): Set m_ATOM.
23183 (x86_accumulate_outgoing_args): Likewise.
23184 (x86_arch_always_fancy_math_387): Likewise.
23185 (processor_target): Add Atom cost.
23186 (cpu_names): Add Atom cpu name.
23187 (override_options): Set Atom ISA.
23188 (ix86_issue_rate): New case PROCESSOR_ATOM.
23189 (ix86_adjust_cost): Likewise.
23190
23191 * config/i386/i386.h (TARGET_ATOM): New target macro.
23192 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
23193 (TARGET_OPT_AGU): New target option.
23194 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
23195 (processor_type): Add PROCESSOR_ATOM.
23196
23197 * config/i386/i386.md (cpu): Add new value "atom".
23198 (use_carry, movu): New attr.
23199 (atom.md): Include atom.md.
23200 (adddi3_carry_rex64): Set attr "use_carry".
23201 (addqi3_carry): Likewise.
23202 (addhi3_carry): Likewise.
23203 (addsi3_carry): Likewise.
23204 (*addsi3_carry_zext): Likewise.
23205 (subdi3_carry_rex64): Likewise.
23206 (subqi3_carry): Likewise.
23207 (subhi3_carry): Likewise.
23208 (subsi3_carry): Likewise.
23209 (x86_movdicc_0_m1_rex64): Likewise.
23210 (*x86_movdicc_0_m1_se): Likewise.
23211 (x86_movsicc_0_m1): Likewise.
23212 (*x86_movsicc_0_m1_se): Likewise.
23213 (*adddi_1_rex64): Emit add insn as much as possible.
23214 (*addsi_1): Likewise.
23215 (return_internal): Set atom_unit.
23216 (return_internal_long): Likewise.
23217 (return_pop_internal): Likewise.
23218 (*rcpsf2_sse): Set atom_sse_attr attr.
23219 (*qrt<mode>2_sse): Likewise.
23220 (*prefetch_sse): Likewise.
23221
23222 * config/i386/i386-c.c (ix86_target_macros_internal): New case
23223 PROCESSOR_ATOM.
23224 (ix86_target_macros_internal): Likewise.
23225
23226 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
23227 (*prefetch_sse_rex): Likewise.
23228 (sse_rcpv4sf2): Likewise.
23229 (sse_vmrcpv4sf2): Likewise.
23230 (sse_sqrtv4sf2): Likewise.
23231 (<sse>_vmsqrt<mode>2): Likewise.
23232 (sse_ldmxcsr): Likewise.
23233 (sse_stmxcsr): Likewise.
23234 (*sse_sfence): Likewise.
23235 (sse2_clflush): Likewise.
23236 (*sse2_mfence): Likewise.
23237 (*sse2_lfence): Likewise.
23238 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
23239 (<sse>_movup<ssemodesuffixf2c>): Likewise.
23240 (avx_movdqu<avxmodesuffix>): Likewise.
23241 (avx_lddqu<avxmodesuffix>): Likewise.
23242 (sse2_movntv2di): Change attr "type" to "ssemov".
23243 (sse2_movntsi): Likewise.
23244 (rsqrtv8sf2): Change attr "type" to "sseadd".
23245 (sse3_addsubv2df3): Set attr "atom_unit".
23246 (sse3_h<plusminus_insn>v4sf3): Likewise.
23247 (*sse2_pmaddwd): Likewise.
23248 (*vec_extractv2di_1_rex64): Likewise.
23249 (*vec_extractv2di_1_avx): Likewise.
23250 (sse2_psadbw): Likewise.
23251 (ssse3_phaddwv8hi3): Likewise.
23252 (ssse3_phaddwv4hi3): Likewise.
23253 (ssse3_phadddv4si3): Likewise.
23254 (ssse3_phadddv2si3): Likewise.
23255 (ssse3_phaddswv8hi3): Likewise.
23256 (ssse3_phaddswv4hi3): Likewise.
23257 (ssse3_phsubwv8hi3): Likewise.
23258 (ssse3_phsubwv4hi3): Likewise.
23259 (ssse3_phsubdv4si3): Likewise.
23260 (ssse3_phsubdv2si3): Likewise.
23261 (ssse3_phsubswv8hi3): Likewise.
23262 (ssse3_phsubswv4hi3): Likewise.
23263 (ssse3_pmaddubsw128): Likewise.
23264 (sse3_pmaddubsw: Likewise.
23265 (ssse3_palignrti): Likewise.
23266 (ssse3_palignrdi): Likewise.
23267
23268 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
23269
23270 * doc/install.texi (Specific): Fix two cross-references to MinGW.
23271
23272 2009-04-06 Richard Guenther <rguenther@suse.de>
23273
23274 PR tree-optimization/28868
23275 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
23276 of which PHI results we inserted.
23277 (insert_into_preds_of_block): Record inserted PHIs.
23278 (eliminate): Eliminate redundant PHI nodes.
23279 (init_pre): Init inserted_phi_names.
23280
23281 2009-04-06 Richard Guenther <rguenther@suse.de>
23282
23283 PR tree-optimization/39643
23284 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
23285 IMAGPART_EXPRs of complex constants.
23286 (execute_fold_all_builtins): If we folded a call queue
23287 TODO_update_address_taken.
23288
23289 2009-04-06 Jan Hubicka <jh@suse.cz>
23290
23291 PR middle-end/39659
23292 * except.c (remove_unreachable_regions): Propagate may_contain_throw
23293 flag.
23294
23295 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
23296
23297 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
23298 delay slot.
23299 (ic_invalidate_array): Likewise.
23300
23301 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
23302
23303 * calls.c (emit_library_call_value_1): Fix a problem with parameter
23304 alignment for library calls.
23305
23306 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
23307
23308 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
23309 (mingw32 tm clause use_gcc_stdint): Set to wrap.
23310 * config/i386/mingw-stdint.h: New file.
23311
23312 2009-04-05 Richard Guenther <rguenther@suse.de>
23313
23314 PR tree-optimization/39648
23315 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
23316 our &A vs. &A[0] IL deficiencies.
23317
23318 2009-04-04 Jan Hubicka <jh@suse.cz>
23319
23320 * except.c (sjlj_find_directly_reachable_regions): Be ready for
23321 removed toplevel regions.
23322 (sjlj_mark_call_sites): Likewise.
23323
23324 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
23325
23326 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
23327 (cygwin tm clause use_gcc_stdint): Set to wrap.
23328 * config/i386/cygwin-stdint.h: New file.
23329
23330 2009-04-04 Richard Guenther <rguenther@suse.de>
23331
23332 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
23333 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
23334 single-argument PHIs if we are in loop-closed SSA form.
23335 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
23336 for the pre-condition.
23337 (slpeel_tree_peel_loop_to_edge): Likewise.
23338 (vect_build_loop_niters): Take an optional sequence to append stmts.
23339 (vect_generate_tmps_on_preheader): Likewise.
23340 (vect_do_peeling_for_loop_bound): Take extra guards for the
23341 pre-condition.
23342 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
23343 the cost model check.
23344 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
23345 guards if we are going to peel. Do not apply versioning in that case.
23346 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
23347 (vect_do_peeling_for_loop_bound): Likewise.
23348 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
23349 loop bound only record extra pre-conditions, do not apply loop
23350 versioning.
23351
23352 2009-04-04 Richard Guenther <rguenther@suse.de>
23353
23354 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
23355 renaming code.
23356
23357 2009-04-04 Jan Hubicka <jh@suse.cz>
23358
23359 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
23360 last_basic_block for size of bb->index indexed array.
23361 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
23362 compute_out, link_btr_uses, build_btr_def_use_webs,
23363 build_btr_def_use_webs, migrate_btr_defs): Likewise.
23364
23365 2009-04-04 Jan Hubicka <jh@suse.cz>
23366
23367 * except.c (remove_eh_handler_and_replace): Break out from ...
23368 (remove_eh_handler): ... here.
23369 (bring_to_root): New function.
23370 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
23371 handled ones, bring others to root of tree.
23372
23373 2009-04-04 Jan Hubicka <jh@suse.cz>
23374
23375 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
23376 (all_phis_safe_to_merge): New function.
23377 (update_info): New structure.
23378 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
23379 (cleanup_empty_eh): Update SSA if possible.
23380
23381 2009-04-04 Richard Guenther <rguenther@suse.de>
23382
23383 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
23384 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
23385 (append_vuse): Likewise.
23386
23387 2009-04-04 Jakub Jelinek <jakub@redhat.com>
23388
23389 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
23390 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
23391 instead of REG_UNSAVED for DW_CFA_undefined.
23392 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
23393 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
23394 outermost frame.
23395
23396 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
23397
23398 PR target/39501
23399 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
23400
23401 2009-04-04 Richard Guenther <rguenther@suse.de>
23402
23403 PR tree-optimization/8781
23404 PR tree-optimization/37892
23405 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
23406 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
23407 (valueize_refs): Call it for *& valueizations.
23408 (shared_reference_ops_from_ref): Rename to ...
23409 (valueize_shared_reference_ops_from_ref): ... this and valueize.
23410 (shared_reference_ops_from_call): Rename to ...
23411 (valueize_shared_reference_ops_from_call): ... this and valueize.
23412 (vn_reference_lookup): Update.
23413 (visit_reference_op_call): Likewise.
23414 * tree-ssa-pre.c (phi_translate_1): Fold *&.
23415 (eliminate): Value-replace the call address in call statements.
23416
23417 2009-04-04 Richard Guenther <rguenther@suse.de>
23418
23419 PR tree-optimization/39636
23420 * tree-ssa-forwprop.c
23421 (forward_propagate_addr_into_variable_array_index): Check for
23422 GIMPLE_ASSIGN before accessing the rhs code.
23423
23424 2009-04-03 Jason Merrill <jason@redhat.com>
23425
23426 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
23427
23428 2009-04-03 Steve Ellcey <sje@cup.hp.com>
23429
23430 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
23431 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
23432 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
23433 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
23434 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
23435 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
23436 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
23437 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
23438 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
23439 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
23440 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
23441 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
23442 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
23443 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
23444 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
23445 Use fr_reg_or_fp01_operand instead of fr_register_operand
23446
23447 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
23448 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
23449 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
23450
23451 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
23452
23453 PR rtl-optimization/39607
23454 PR rtl-optimization/39631
23455
23456 Revert:
23457
23458 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
23459 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
23460 instead of DF_LR_OUT.
23461 * ira-lives.c (process_bb_node_lives): Ditto.
23462 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
23463 instead of DF_LR_{OUT,IN}.
23464 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
23465 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
23466
23467 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
23468
23469 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
23470 (execute_lower_omp): Always run but take the short way out if -fopenmp
23471 is not given.
23472 (gate_lower_omp): Remove, forcing the pass manager to always run the
23473 pass and always set PROP_gimple_lomp.
23474 (pass_lower_omp): Remove gate function.
23475 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
23476 PROP_trees. Instead, require it.
23477 * ipa-cp.c (pass_ipa_cp): Likewise.
23478 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
23479 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
23480 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
23481 and PROP_gimple_leh.
23482
23483 2009-04-03 Richard Guenther <rguenther@suse.de>
23484
23485 PR middle-end/13146
23486 PR tree-optimization/23940
23487 PR tree-optimization/33237
23488 PR middle-end/33974
23489 PR middle-end/34093
23490 PR tree-optimization/36201
23491 PR tree-optimization/36230
23492 PR tree-optimization/38049
23493 PR tree-optimization/38207
23494 PR tree-optimization/38230
23495 PR tree-optimization/38301
23496 PR tree-optimization/38585
23497 PR middle-end/38895
23498 PR tree-optimization/38985
23499 PR tree-optimization/39299
23500 * tree-ssa-structalias.h: Remove.
23501 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
23502 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
23503 (struct vuse_element_d): Remove.
23504 (struct vuse_vec_d): Likewise.
23505 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
23506 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
23507 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
23508 VUSE_ELEMENT_VAR): Likewise.
23509 (struct voptype_d): Likewise.
23510 (NUM_VOP_FREE_BUCKETS): Likewise.
23511 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
23512 (struct stmt_operands_d): Remove.
23513 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
23514 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
23515 VDEF_NUM, VDEF_VECT): Likewise.
23516 (copy_virtual_operands): Remove.
23517 (operand_build_cmp): Likewise.
23518 (create_ssa_artificial_load_stmt): Likewise.
23519 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
23520 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
23521 vuse_index and mayuse_index members. Pack and move done and iter_type
23522 members to the front.
23523 (SSA_OP_VMAYUSE): Remove.
23524 (SSA_OP_VIRTUAL_USES): Adjust.
23525 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
23526 (unlink_stmt_vdef): Declare.
23527 (add_to_addressable_set): Remove.
23528 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
23529 (vrp_visit_stmt): Likewise.
23530 * doc/tree-ssa.texi (Alias analysis): Update.
23531 * doc/invoke.texi (max-aliased-vops): Remove docs.
23532 (avg-aliased-vops): Likewise.
23533 * tree-into-ssa.c (syms_to_rename): Remove.
23534 (need_to_update_vops_p): Likewise.
23535 (need_to_initialize_update_ssa_p): Rename to ...
23536 (update_ssa_initialized_fn): ... this. Track function we are
23537 initialized for.
23538 (symbol_marked_for_renaming): Simplify.
23539 (add_new_name_mapping): Do not set need_to_update_vops_p.
23540 (dump_currdefs): Use SYMS_TO_RENAME.
23541 (rewrite_update_stmt): Always walk all uses/defs.
23542 (dump_update_ssa): Adjust.
23543 (init_update_ssa): Take function argument. Track what we are
23544 initialized for.
23545 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
23546 (create_new_def_for): Initialize for cfun, assert we are initialized
23547 for cfun.
23548 (mark_sym_for_renaming): Simplify.
23549 (mark_set_for_renaming): Do not initialize update-ssa.
23550 (need_ssa_update_p): Simplify. Take function argument.
23551 (name_mappings_registered_p): Assert we ask for the correct function.
23552 (name_registered_for_update_p): Likewise.
23553 (ssa_names_to_replace): Likewise.
23554 (release_ssa_name_after_update_ssa): Likewise.
23555 (update_ssa): Likewise. Use SYMS_TO_RENAME.
23556 (dump_decl_set): Do not print a newline.
23557 (debug_decl_set): Do it here.
23558 (dump_update_ssa): And here.
23559 * tree-ssa-loop-im.c (move_computations): Adjust.
23560 (movement_possibility): Likewise.
23561 (determine_max_movement): Likewise.
23562 (gather_mem_refs_stmt): Likewise.
23563 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
23564 or NAME_MEMORY_TAG.
23565 * tree-complex.c (update_all_vops): Remove.
23566 (expand_complex_move): Adjust.
23567 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
23568 Simplify test for memory referencing statement. Exclude
23569 non-invariant ADDR_EXPRs.
23570 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
23571 * tree-loop-distribution.c (generate_memset_zero): Adjust.
23572 (rdg_flag_uses): Likewise.
23573 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
23574 related code.
23575 (tree_optimize_tail_calls_1): Also split the
23576 edge from the entry block if we have degenerate PHI nodes in
23577 the first basic block.
23578 * tree.c (init_ttree): Remove memory-tag related code.
23579 (tree_code_size): Likewise.
23580 (tree_node_structure): Likewise.
23581 (build7_stat): Re-write to be build6_stat.
23582 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
23583 (SSA_VAR_P): Adjust.
23584 (struct tree_memory_tag): Remove.
23585 (struct tree_memory_partition_tag): Likewise.
23586 (union tree_node): Adjust.
23587 (build7): Re-write to be build6.
23588 * tree-pass.h (pass_reset_cc_flags): Remove.
23589 (TODO_update_address_taken): New flag.
23590 (pass_simple_dse): Remove.
23591 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
23592 * params.h (MAX_ALIASED_VOPS): Remove.
23593 (AVG_ALIASED_VOPS): Likewise.
23594 * omp-low.c (expand_omp_taskreg): Update SSA form.
23595 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
23596 aliases the lhs in a copy stmt.
23597 * tree-ssa-dse.c (struct address_walk_data): Remove.
23598 (memory_ssa_name_same): Likewise.
23599 (memory_address_same): Likewise.
23600 (get_kill_of_stmt_lhs): Likewise.
23601 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
23602 unused stores. Look through PHI nodes into post-dominated regions.
23603 (dse_optimize_stmt): Simplify. Properly remove stores.
23604 (tree_ssa_dse): Compute dominators.
23605 (execute_simple_dse): Remove.
23606 (pass_simple_dse): Likewise.
23607 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
23608 gimple_loaded_syms and gimple_stored_syms computation.
23609 * toplev.c (dump_memory_report): Dump alias and pta stats.
23610 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
23611 (vn_reference_eq): Likewise.
23612 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
23613 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
23614 valueize_vuses): Remove.
23615 (get_def_ref_stmt_vuses): Simplify. Rename to ...
23616 (get_def_ref_stmt_vuse): ... this.
23617 (vn_reference_lookup_2): New function.
23618 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
23619 walking equivalent vuses. Simplify.
23620 (vn_reference_lookup): Likewise.
23621 (vn_reference_insert): Likewise.
23622 (vn_reference_insert_pieces): Likewise.
23623 (visit_reference_op_call): Simplify.
23624 (visit_reference_op_load): Likewise.
23625 (visit_reference_op_store): Likewise.
23626 (init_scc_vn): Remove shared_lookup_vuses initialization.
23627 (free_scc_vn): Remove shared_lookup_vuses freeing.
23628 (sort_vuses, sort_vuses_heap): Remove.
23629 (get_ref_from_reference_ops): Export.
23630 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
23631 vector with single vuse pointer.
23632 (vn_reference_lookup_pieces, vn_reference_lookup,
23633 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
23634 (shared_vuses_from_stmt): Remove.
23635 (get_ref_from_reference_ops): Declare.
23636 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
23637 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
23638 memory-tag related code.
23639 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
23640 (likely_value): Add comment, skip static-chain of call statements.
23641 (surely_varying_stmt_p): Adjust.
23642 (gimplify_and_update_call_from_tree): Likewise.
23643 (execute_fold_all_builtins): Do not rebuild alias info.
23644 (gimplify_and_update_call_from_tree): Properly update VOPs.
23645 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
23646 (copy_ref_info): Remove memory-tag related code.
23647 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
23648 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
23649 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
23650 computation.
23651 * tree-ssa-dom.c (gimple_p): Remove typedef.
23652 (eliminate_redundant_computations): Adjust.
23653 (record_equivalences_from_stmt): Likewise.
23654 (avail_expr_hash): Likewise.
23655 (avail_expr_eq): Likewise.
23656 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
23657 (stmt_makes_single_load): Likewise.
23658 (stmt_makes_single_store): Likewise.
23659 * tree-ssa-alias.c: Rewrite completely.
23660 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
23661 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
23662 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
23663 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
23664 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
23665 Remove public functions.
23666 (pass_reset_cc_flags): Remove.
23667 (pass_build_alias): Move ...
23668 * tree-ssa-structalias.c (pass_build_alias): ... here.
23669 * tree-ssa-alias.c (may_be_aliased): Move ...
23670 * tree-flow-inline.h (may_be_aliased): ... here.
23671 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
23672 count_uses_and_derefs): Move ...
23673 * gimple.c: ... here.
23674 * gimple.h (count_uses_and_derefs): Declare.
23675 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
23676 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
23677 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
23678 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
23679 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
23680 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
23681 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
23682 New functions.
23683 * tree-dfa.c (refs_may_alias_p): Move ...
23684 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
23685 * tree-ssa-alias.h: New file.
23686 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
23687 (statement_sink_location): Likewise.
23688 * opts.c (decode_options): Do not adjust max-aliased-vops or
23689 avg-aliased-vops values.
23690 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
23691 (TV_CALL_CLOBBER): Likewise.
23692 (TV_FLOW_SENSITIVE): Likewise.
23693 (TV_FLOW_INSENSITIVE): Likewise.
23694 (TV_MEMORY_PARTITIONING): Likewise.
23695 (TV_ALIAS_STMT_WALK): New timevar.
23696 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
23697 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
23698 (get_address_description): Remove memory-tag related code.
23699 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
23700 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
23701 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
23702 and immediate uses in statements. Document.
23703 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
23704 (dump_symbols): Remove.
23705 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
23706 * alias.c (get_deref_alias_set): New function split out from ...
23707 (get_alias_set): ... here.
23708 * alias.h (get_deref_alias_set): Declare.
23709 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
23710 type parameter. Remove restrict pointer handling. Create a
23711 ref-all pointer in case type-based alias sets do not conflict.
23712 (vect_analyze_data_refs): Remove SMT related code.
23713 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
23714 (vectorizable_load): Likewise.
23715 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
23716 (DR_SYMBOL_TAG, DR_VOPS): Remove.
23717 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
23718 Ignore vops and SMTs.
23719 (dr_analyze_alias): Likewise..
23720 (free_data_ref): Likewise.
23721 (create_data_ref): Likewise.
23722 (analyze_all_data_dependences): Likewise.
23723 (get_references_in_stmt): Adjust.
23724 * tree-flow-inline.h (gimple_aliases_computed_p,
23725 gimple_addressable_vars, gimple_call_clobbered_vars,
23726 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
23727 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
23728 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
23729 gimple_mem_ref_stats): Remove.
23730 (gimple_vop): New function.
23731 (op_iter_next_use): Remove vuses and mayuses cases.
23732 (op_iter_next_def): Remove vdefs case.
23733 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
23734 (clear_and_done_ssa_iter): Do not set removed fields.
23735 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
23736 Assert we are not iterating over vuses or vdefs if not also
23737 iterating over uses or defs.
23738 (op_iter_init_use): Likewise.
23739 (op_iter_init_def): Likewise.
23740 (op_iter_next_vdef): Remove.
23741 (op_iter_next_mustdef): Likewise.
23742 (op_iter_init_vdef): Likewise.
23743 (compare_ssa_operands_equal): Likewise.
23744 (link_use_stmts_after): Handle vuse operand.
23745 (is_call_used): Use is_call_clobbered.
23746 (is_call_clobbered): Global variables are always call clobbered,
23747 query the call-clobbers bitmap.
23748 (mark_call_clobbered): Ignore global variables.
23749 (clear_call_clobbered): Likewise.
23750 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
23751 virtual operands sanity check.
23752 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
23753 Remove.
23754 (TARGET_MEM_REF): Remove TMR_TAG operand.
23755 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
23756 Remove call-clobber related code.
23757 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
23758 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
23759 partitions or escape reason.
23760 (get_single_def_stmt, get_single_def_stmt_from_phi,
23761 get_single_def_stmt_with_phi): Remove.
23762 (dump_referenced_vars): Tidy.
23763 (get_ref_base_and_extent): Allow bare decls.
23764 (collect_dfa_stats): Adjust.
23765 * graphite.c (rename_variables_in_stmt): Adjust.
23766 (graphite_copy_stmts_from_block): Likewise.
23767 (translate_clast): Likewise.
23768 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
23769 (EXPR_DIES): New.
23770 (translate_vuse_through_block): Use the oracle.
23771 (phi_translate_1): Adjust.
23772 (value_dies_in_block_x): Use the oracle. Cache the outcome
23773 in EXPR_DIES.
23774 (valid_in_sets): Check if the VUSE for
23775 a REFERENCE is available.
23776 (eliminate): Do not remove stmts during elimination,
23777 instead queue and remove them afterwards.
23778 (do_pre): Do not rebuild alias info.
23779 (pass_pre): Run TODO_rebuild_alias before PRE.
23780 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
23781 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
23782 (mark_all_v_defs_stmt): Remove.
23783 (mark_all_v_defs_seq): Adjust.
23784 (sra_replace): Likewise.
23785 (scalarize_use): Likewise.
23786 (scalarize_copy): Likewise.
23787 (scalarize_init): Likewise.
23788 (scalarize_ldst): Likewise.
23789 (todoflags): Remove.
23790 (tree_sra): Do not rebuild alias info.
23791 (tree_sra_early): Adjust.
23792 (pass_sra): Run TODO_update_address_taken before SRA.
23793 * tree-predcom.c (set_alias_info): Remove.
23794 (prepare_initializers_chain): Do not call it.
23795 (mark_virtual_ops_for_renaming): Adjust.
23796 (mark_virtual_ops_for_renaming_list): Remove.
23797 (initialize_root_vars): Adjust.
23798 (initialize_root_vars_lm): Likewise.
23799 (prepare_initializers_chain): Likewise.
23800 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
23801 (may_propagate_copy_into_stmt): Likewise.
23802 (merge_alias_info): Do nothing for now.
23803 (propagate_tree_value_into_stmt): Adjust.
23804 (stmt_may_generate_copy): Likewise.
23805 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
23806 not mark symbols for renaming.
23807 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
23808 with the same statement, make sure to update the new pointed-to one.
23809 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
23810 call statements, do not mark symbols for renaming.
23811 (mark_operand_necessary): Dump something.
23812 (ref_may_be_aliased): New function.
23813 (mark_aliased_reaching_defs_necessary_1): New helper function.
23814 (mark_aliased_reaching_defs_necessary): Likewise.
23815 (mark_all_reaching_defs_necessary_1): Likewise.
23816 (mark_all_reaching_defs_necessary): Likewise.
23817 (propagate_necessity): Do not process virtual PHIs. For
23818 non-aliased loads mark all reaching definitions as necessary.
23819 For aliased loads and stores mark the immediate dominating
23820 aliased clobbers as necessary.
23821 (visited): New global static.
23822 (perform_tree_ssa_dce): Free visited bitmap after propagating
23823 necessity.
23824 (remove_dead_phis): Perform simple dead virtual PHI removal.
23825 (remove_dead_stmt): Properly unlink virtual operands when
23826 removing stores.
23827 (eliminate_unnecessary_stmts): Schedule PHI removal after
23828 stmt removal.
23829 * tree-ssa-ter.c (is_replaceable_p): Adjust.
23830 (process_replaceable): Likewise.
23831 (find_replaceable_in_bb): Likewise.
23832 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
23833 based on the single gimple vop.
23834 (verify_flow_insensitive_alias_info): Remove.
23835 (verify_flow_sensitive_alias_info): Likewise.
23836 (verify_call_clobbering): Likewise.
23837 (verify_memory_partitions): Likewise.
23838 (verify_alias_info): Likewise.
23839 (verify_ssa): Adjust..
23840 (execute_update_addresses_taken): Export. Update SSA
23841 manually. Optimize only when optimizing. Use a local bitmap.
23842 (pass_update_address_taken): Remove TODO_update_ssa, add
23843 TODO_dump_func.
23844 (pass_update_address_taken): Just use TODO_update_address_taken.
23845 (init_tree_ssa): Do not initialize addressable_vars.
23846 (verify_ssa): Verify new VUSE / VDEF properties.
23847 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
23848 Do not call verify_alias_info.
23849 (delete_tree_ssa): Clear the VUSE, VDEF operands.
23850 Do not free the loaded and stored syms bitmaps. Reset the escaped
23851 and callused solutions. Do not free addressable_vars.
23852 Remove memory-tag related code.
23853 (warn_uninitialized_var): Aliases are always available.
23854 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
23855 * lambda-code.c (can_put_in_inner_loop): Adjust.
23856 (can_put_after_inner_loop): Likewise.
23857 (perfect_nestify): Likewise.
23858 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
23859 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
23860 (vectorizable_conversion): Do not mark symbols for renaming.
23861 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
23862 (expand_call_inline): Unlink the calls virtual operands before
23863 replacing it.
23864 (tree_function_versioning): Do not call update_ssa if we are not
23865 updating clones. Simplify.
23866 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
23867 (propagate_with_phi): Likewise..
23868 * tree-outof-ssa.c (create_temp): Remove memory tag and call
23869 clobber code. Assert we are not aliased or global.
23870 * tree-flow.h: Include tree-ssa-alias.h
23871 (enum escape_type): Remove.
23872 (struct mem_sym_stats_d): Likewise.
23873 (struct mem_ref_stats_d): Likewise.
23874 (struct gimple_df): Add vop member. Remove global_var,
23875 call_clobbered_vars, call_used_vars, addressable_vars,
23876 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
23877 escaped and callused members.
23878 (struct ptr_info_def): Remove all members, add points-to solution
23879 member pt.
23880 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
23881 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
23882 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
23883 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
23884 (tree-ssa-alias.o): Likewise.
23885 (toplev.o): Add tree-ssa-alias.h
23886 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
23887 * gimple.c (gimple_set_bb): Fix off-by-one error.
23888 (is_gimple_reg): Do not handle memory tags.
23889 (gimple_copy): Also copy virtual operands.
23890 Delay updating the statement. Do not reset loaded and stored syms.
23891 (gimple_set_stored_syms): Remove.
23892 (gimple_set_loaded_syms): Likewise.
23893 (gimple_call_copy_skip_args): Copy the virtual operands
23894 and mark the new statement modified.
23895 * tree-ssa-structalias.c (may_alias_p): Remove.
23896 (set_uids_in_ptset): Take the alias set to prune with as
23897 parameter. Fold in the alias test of may_alias_p.
23898 (compute_points_to_sets): Compute whether a ptr is dereferenced
23899 in a local sbitmap.
23900 (process_constraint): Deal with &ANYTHING on the lhs, reject all
23901 other ADDRESSOF constraints on the lhs.
23902 (get_constraint_for_component_ref): Assert that we don't get
23903 ADDRESSOF constraints from the base of the reference.
23904 Properly generate UNKNOWN_OFFSET for DEREF if needed.
23905 (struct variable_info): Remove collapsed_to member.
23906 (get_varinfo_fc): Remove.
23907 (new_var_info): Do not set collapsed_to.
23908 (dump_constraint): Do not follow cycles.
23909 (dump_constraint_graph): Likewise.
23910 (build_pred_graph): Likewise.
23911 (build_succ_graph): Likewise.
23912 (rewrite_constraints): Likewise.
23913 (do_simple_structure_copy): Remove.
23914 (do_rhs_deref_structure_copy): Remove.
23915 (do_lhs_deref_structure_copy): Remove.
23916 (collapse_rest_of_var): Remove.
23917 (do_structure_copy): Re-implement.
23918 (pta_stats): New global variable.
23919 (dump_pta_stats): New function.
23920 (struct constraint_expr): Make offset signed.
23921 (UNKNOWN_OFFSET): Define special value.
23922 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
23923 (solution_set_expand): New helper function split out from ...
23924 (do_sd_constraint): ... here.
23925 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
23926 (do_ds_constraint): Likewise.
23927 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
23928 and CALLUSED = *CALLUSED.
23929 (set_union_with_increment): Make inc argument signed.
23930 (type_safe): Remove.
23931 (get_constraint_for_ptr_offset): Handle unknown and negative
23932 constant offsets.
23933 (first_vi_for_offset): Handle offsets before start. Bail
23934 out early for offsets beyond the variable extent.
23935 (first_or_preceding_vi_for_offset): New function.
23936 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
23937 Together with ESCAPED = *ESCAPED this properly computes reachability.
23938 (find_what_var_points_to): New function.
23939 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
23940 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
23941 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
23942 pt_solutions_intersect): New functions.
23943 (compute_call_used_vars): Remove.
23944 (compute_may_aliases): New main entry into PTA computation.
23945 * gimple.h (gimple_p): New typedef.
23946 (struct gimple_statement_base): Remove references_memory_p.
23947 (struct gimple_statement_with_memory_ops_base): Remove
23948 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
23949 members.
23950 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
23951 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
23952 gimple_set_references_memory): Remove.
23953 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
23954 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
23955 New functions.
23956 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
23957 (verify_expr): Allow RESULT_DECL.
23958 (gimple_duplicate_bb): Do not copy virtual operands.
23959 (gimple_duplicate_sese_region): Adjust.
23960 (gimple_duplicate_sese_tail): Likewise.
23961 (mark_virtual_ops_in_region): Remove.
23962 (move_sese_region_to_fn): Do not call it.
23963 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
23964 and pass_simple_dse.
23965 (execute_function_todo): Handle TODO_update_address_taken,
23966 call execute_update_addresses_taken for TODO_rebuild_alias.
23967 (execute_todo): Adjust.
23968 (execute_one_pass): Init dump files early.
23969 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
23970 call-clobbered.
23971 (create_general_new_stmt): Clear vops.
23972 * tree-ssa-reassoc.c (get_rank): Adjust.
23973 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
23974 symbols for renaming.
23975 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
23976 (PARAM_AVG_ALIASED_VOPS): Likewise.
23977 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
23978 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
23979 * tree-ssa-operands.c: Simplify for new virtual operand representation.
23980 (operand_build_cmp, copy_virtual_operands,
23981 create_ssa_artificial_load_stmt, add_to_addressable_set,
23982 gimple_add_to_addresses_taken): Remove public functions.
23983 (unlink_stmt_vdef): New function.
23984
23985 2009-04-03 Alan Modra <amodra@bigpond.net.au>
23986
23987 * config.gcc (powerpc-*-linux*): Merge variants.
23988
23989 2009-04-02 Chao-ying Fu <fu@mips.com>
23990 James Grosbach <james.grosbach@microchip.com>
23991
23992 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
23993 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
23994 cop0_sp_offset.
23995 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
23996 keep_interrupts_masked_p, use_debug_exception_return_p.
23997 (mips_attribute_table): Add interrupt, use_shadow_register_set,
23998 keep_interrupts_masked, use_debug_exception_return.
23999 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
24000 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
24001 New functions.
24002 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
24003 (mips_print_operand): Process COP0 registers to print $0 .. $31
24004 correctly for GAS to process.
24005 (mips_interrupt_extra_call_saved_reg_p): New function.
24006 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
24007 extra registers.
24008 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
24009 (mips_compute_frame_info): Add supports for interrupt context that
24010 includes doubleword accumulators and COP0 registers.
24011 (mips_for_each_saved_acc): New function.
24012 (mips_for_each_saved_gpr_and_fpr): Change the function name from
24013 mips_for_each_saved_reg.
24014 (mips_save_reg): Save accumulators.
24015 (mips_kernel_reg_p): A new for_each_rtx callback.
24016 (mips_expand_prologue): Support interrupt handlers.
24017 (mips_restore_reg): Restore accumulators.
24018 (mips_expand_epilogue): Support interrupt handlers.
24019 (mips_can_use_return_insn): Return false for interrupt handlers.
24020 (mips_epilogue_uses): New function.
24021 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
24022 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
24023 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
24024 cop0_move): New instructions.
24025 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
24026 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
24027 defines.
24028 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
24029 New defines.
24030 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
24031 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
24032 interrupt handlers, we use K0 as the temporary register.
24033 (EPILOGUE_USES): Change to a function call.
24034 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
24035 handlers, we use K0 as the temporary register.
24036
24037 * doc/extend.texi (Function Attributes): Document interrupt,
24038 use_shadow_register_set, keep_interrupts_masked,
24039 use_debug_exception_return for MIPS attributes.
24040
24041 2009-04-03 Alan Modra <amodra@bigpond.net.au>
24042
24043 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
24044 Remove a number of t-files from tmake_file.
24045 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
24046 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
24047 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
24048 target_prototype, not TARGET_PROTOTYPE.
24049 (LINK_OS_GNU_SPEC): Define.
24050 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
24051 and darwin-ldoubdle.c.
24052
24053 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24054
24055 PR driver/39293
24056 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
24057 (cpp_options): Ditto.
24058 (default_compilers): Ditto.
24059 (display_help): Ditto.
24060 (process_command): Ditto.
24061 (do_spec_1): Ditto.
24062 (set_input): Use lbasename instead of duplicate code.
24063 (save_temps_prefix): New static for -save-temps=obj.
24064 (save_temps_length): Ditto.
24065
24066 * doc/invoke.texi (-save-temps=obj): Document new variant to
24067 -save-temps switch.
24068
24069 2009-04-02 Jeff Law <law@redhat.com>
24070
24071 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
24072 variable.
24073
24074 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
24075
24076 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
24077 * configure: Regenerated.
24078
24079 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
24080
24081 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
24082 share the argument list.
24083
24084 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
24085
24086 Merge
24087
24088 2009-02-12 Diego Novillo <dnovillo@google.com>
24089
24090 * varpool.c (debug_varpool): New.
24091 * cgraph.h (debug_varpool): Declare.
24092
24093 2009-04-02 Jan Hubicka <jh@suse.cz>
24094
24095 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
24096 pass.
24097
24098 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
24099
24100 * config/i386/i386.c (ix86_abi): Move initialization to ...
24101 (override_options): Here.
24102
24103 2009-04-02 Christian Bruel <christian.bruel@st.com>
24104
24105 * config/sh/sh.c (sh_dwarf_register_span): New function.
24106 (TARGET_DWARF_REGISTER_SPAN): Define.
24107 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
24108
24109 2009-04-02 Ira Rosen <irar@il.ibm.com>
24110
24111 PR tree-optimization/39595
24112 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
24113 interleaved loads group is not greater than the SLP group size.
24114
24115 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
24116
24117 * builtins.c (is_builtin_name): New.
24118 (called_as_built_in): Use is_builtin_name.
24119 * tree.h (is_builtin_name): New.
24120 * varasm.c (incorporeal_function_p): Use is_builtin_name
24121
24122 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
24123
24124 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
24125
24126 2009-04-02 Dodji Seketeli <dodji@redhat.com>
24127
24128 PR c++/26693
24129 * c-decl.c (clone_underlying_type): Move this ...
24130 * c-common.c (set_underlying_type): ... here.
24131 Also, make sure the function properly sets TYPE_STUB_DECL() on
24132 the newly created typedef variant type.
24133 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
24134 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
24135 points.
24136
24137 2009-04-02 Richard Guenther <rguenther@suse.de>
24138
24139 PR tree-optimization/37221
24140 * tree-flow.h (degenerate_phi_result): Declare.
24141 * tree-ssa-dom.c (degenerate_phi_result): Export.
24142 * tree-scalar-evolution.c (analyze_initial_condition): If
24143 the initial condition is defined by a degenerate PHI node
24144 use the degenerate value.
24145
24146 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
24147
24148 PR rtl-optimization/39588
24149 * combine.c (merge_outer_ops): Do not set the constant when this
24150 is not necessary.
24151 (simplify_shift_const_1): Do not modify it either in this case.
24152
24153 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
24154
24155 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
24156 tuning is deprecated if -mtune value is set to an Itanium1 variant.
24157
24158 2009-04-01 Janis Johnson <janis187@us.ibm.com>
24159
24160 PR c/29027
24161 * c-lex.c (interpret_float): Default (no suffix) is double.
24162
24163 2009-04-1 Xinliang David Li <davidxl@google.com>
24164
24165 * config/i386/i386.c (legitimate_constant_p): Recognize
24166 all one vector constant.
24167
24168 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24169
24170 * config/vax/vax.c: Add #includes to silence warnings.
24171 Change #include order to silence two warnings.
24172
24173 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24174
24175 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
24176 (ASM_SPEC): Pass -k to the assembler for PIC code.
24177
24178 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24179
24180 * config.gcc: Add vax-*-linux* to the switch.
24181 * config/vax/linux.h: New file. (TARGET_VERSION,
24182 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
24183
24184 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24185
24186 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
24187 Use predicate macros instead of GET_CODE() == foo.
24188 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
24189 ashlsi3, rotrsi3, <unnamed>): Likewise.
24190
24191 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24192
24193 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
24194 jbbccihi, jbbccisi): Remova trailing whitespace.
24195 * config/vax/constraints.md: Likewise.
24196 * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
24197 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
24198 * config/vax/predicates.md: Likewise.
24199 * config/vax/vax.c (print_operand_address, vax_output_int_move,
24200 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
24201 * config/vax/vax.h: Likewise.
24202 * config/vax/vax.md (nonlocal_goto): Likewise.
24203
24204 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24205
24206 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
24207 (indirectable_address_p, adjacent_operands_p): Add spaces around
24208 braces.
24209 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
24210
24211 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24212
24213 * config/vax/vax.c (legitimate_constant_address_p,
24214 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
24215 index_term_p, reg_plus_index_p, legitimate_address_p,
24216 vax_mode_dependent_address_p): Update comments to match functions
24217 modified by the recent int->bool conversion.
24218
24219 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24220
24221 * config/vax/builtins.md: Update copyright message.
24222 * config/vax/constraints.md: Likewise.
24223 * config/vax/netbsd-elf.h: Likewise.
24224 * config/vax/predicates.md: Likewise.
24225 * config/vax/vax-protos.h: Likewise.
24226 * config/vax/vax.c: Likewise.
24227 * config/vax/vax.h: Likewise.
24228 * config/vax/vax.md: Likewise.
24229 * config/vax/vax.opt: Likewise.
24230
24231 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24232
24233 * config/vax/builtins.md (ffssi2, ffssi2_internal,
24234 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
24235 * config/vax/constraints.md (B, R): Likewise.
24236 * config/vax/predicates.md (external_memory_operand,
24237 nonimmediate_addsub_di_operand): Likewise.
24238 * config/vax/vax.c (vax_output_int_add): Likewise.
24239 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
24240 untyped_call): Likewise.
24241
24242 2009-04-01 Matt Thomas <matt@3am-software.com>
24243
24244 * config/vax/predicates.md: New file.
24245 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
24246 external_const_operand, nonsymbolic_operand, external_memory_operand,
24247 indirect_memory_operand, indexed_memory_operand,
24248 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
24249 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
24250 predicate.
24251 * config/vax/constraints.md: New file.
24252 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
24253 New constraint.
24254 * config/vax/builtins.md: New file.
24255 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
24256 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
24257 jbbccisi): Define.
24258 * config/vax/vax.opt (mqmath): Add option.
24259 * config/vax/vax.md (isfx): Extend with DI.
24260 (VAXintQH, VAXintQHSD): Define.
24261 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
24262 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
24263 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
24264 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
24265 (movdi): Update constraints and use vax_output_int_move().
24266 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
24267 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
24268 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
24269 nonlocal_goto): New.
24270 (mov<mode>): Extend accepted operand types.
24271 (subdi3_old): Rename from subdi3, change update constraints and use
24272 a new implementation.
24273 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
24274 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
24275 MOVE_RATIO, CLEAR_RATIO): Define.
24276 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
24277 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
24278 (PRINT_OPERAND): Redefine using a function instead of inlined code.
24279 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
24280 (split_quadword_operands): Make static and really allow variable
24281 splitting.
24282 (print_operand_address): Update for PIC generation.
24283 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
24284 indexable_address_p, fixup_mathdi_operand,
24285 vax_expand_addsub_di_operands, adjacent_operands_p): New.
24286 (vax_float_literal, legitimate_constant_p,
24287 indirectable_constant_address_p, index_term_p,
24288 reg_plus_index_p): Return bool instead of int.
24289 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
24290 where needed.
24291 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
24292 generation.
24293 (vax_output_conditional_branch): Indent.
24294 (legitimate_constant_address_p, indirectable_constant_address_p,
24295 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
24296 vax_mode_dependent_address_p): Return bool instead of int, update for
24297 PIC generation.
24298 * config/vax/vax-protos.h (legitimate_constant_address_p,
24299 legitimate_constant_p, legitimate_address_p,
24300 vax_mode_dependent_address_p): Change declaration to bool.
24301 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
24302 vax_expand_addsub_di_operands, vax_output_int_subtract,
24303 vax_output_movmemsi): Declare.
24304 (split_quadword_operands, vax_float_literal): Delete declaration.
24305 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
24306 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
24307 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
24308 ASM_OUTPUT_DWARF_PCREL): Define.
24309 (ASM_SPEC): Change definition to allow PIC generation.
24310
24311 2009-04-01 Steve Ellcey <sje@cup.hp.com>
24312
24313 * doc/sourcebuild.texi: Update front-end requirements.
24314
24315 2009-04-01 Jakub Jelinek <jakub@redhat.com>
24316
24317 PR target/39226
24318 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
24319 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
24320 (booldi3_internal3): Use boolean_or_operator instead of
24321 boolean_operator.
24322
24323 2009-04-01 Joseph Myers <joseph@codesourcery.com>
24324
24325 PR c/39605
24326 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
24327 declarator whose size is not an integer constant expression but
24328 folds to an integer constant, then treat it as a constant
24329 subsequently.
24330
24331 2009-04-01 Richard Guenther <rguenther@suse.de>
24332
24333 * fold-const.c (fold_plusminus_mult_expr): Do not fold
24334 i * 4 + 2 to (i * 2 + 1) * 2.
24335
24336 2009-04-01 Jakub Jelinek <jakub@redhat.com>
24337
24338 PR c/37772
24339 * c-parser.c (c_parser_asm_statement): Skip until close paren and
24340 return if c_parser_asm_string_literal returned NULL.
24341
24342 2009-04-01 Nick Clifton <nickc@redhat.com>
24343
24344 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
24345 already defined.
24346 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
24347 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
24348 other typedefs to avoid conflicts with libgcc2.c. Define labels
24349 to gain 16-bit bit-manipulation functions from libgcc2.c and then
24350 include it.
24351 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
24352 to gain 16-bit trapping arithmetic functions from libgcc2.c and
24353 then include it.
24354
24355 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
24356
24357 * varasm.c (default_function_rodata_section): Declare DOT as
24358 const char*.
24359
24360 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
24361 Andrey Galkin <agalkin@hypercom.com>
24362
24363 PR/39492
24364 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
24365 Make object_name unique for each process.
24366
24367 2009-04-01 Jakub Jelinek <jakub@redhat.com>
24368
24369 PR other/39591
24370 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
24371 addressable variables in the parallel that could go out of scope while
24372 running queued tasks.
24373
24374 2009-04-01 Anatoly Sokolov <aesok@post.ru>
24375
24376 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
24377 (CASE_VALUES_THRESHOLD): Redefine.
24378 * config/avr/avr.c (avr_override_options): Remove initialization of
24379 avr_case_values_threshold variable.
24380 (avr_case_values_threshold): Remove variable. Add new function.
24381 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
24382 * config/avr/avr.opt (mno-tablejump): Remove option.
24383 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
24384
24385 2009-04-01 DJ Delorie <dj@redhat.com>
24386
24387 * varasm.c (default_function_rodata_section): Don't assume
24388 anything about where the first '.' in the section name is.
24389
24390 2009-04-01 Alan Modra <amodra@bigpond.net.au>
24391
24392 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
24393 rs6000_emit_stack_tie.
24394
24395 2009-03-31 Ian Lance Taylor <iant@google.com>
24396
24397 * tree-eh.c (tree_remove_unreachable_handlers): Compare
24398 gimple_code with GIMPLE_RESX, not RESX.
24399
24400 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24401
24402 * c-common.c (c_get_ident): New.
24403 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
24404
24405 2009-04-01 Ben Elliston <bje@au.ibm.com>
24406
24407 * config/rs6000/sysv4.opt (msdata): Improve option description.
24408
24409 2009-03-31 Steve Ellcey <sje@cup.hp.com>
24410
24411 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
24412 (divdf3_internal_lat): Remove.
24413 (divxf3_internal_lat): Remove.
24414 (divxf3_internal_thr): Remove.
24415 (divxf): Use divxf3_internal.
24416 * config/ia64/div.md (divsf3_internal_lat): New.
24417 (divdf3_internal_lat): New.
24418 (divxf3_internal): New.
24419
24420 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24421
24422 PR c/448
24423 * Makefile.in (USE_GCC_STDINT): Define.
24424 (stmp-int-hdrs): Install stdint.h if applicable.
24425 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
24426 if known.
24427 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
24428 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
24429 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
24430 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24431 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24432 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24433 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24434 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24435 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
24436 (c_common_nodes_and_builtins): Initialize
24437 underlying_wchar_type_node. Do not initialize
24438 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
24439 nodes for new types.
24440 (c_stddef_cpp_builtins): Define macros for new types.
24441 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
24442 Remove.
24443 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
24444 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
24445 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
24446 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
24447 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
24448 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
24449 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
24450 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
24451 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
24452 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
24453 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
24454 int16_type_node, int32_type_node, int64_type_node,
24455 uint8_type_node, uint16_type_node, c_uint32_type_node,
24456 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
24457 int_least32_type_node, int_least64_type_node,
24458 uint_least8_type_node, uint_least16_type_node,
24459 uint_least32_type_node, uint_least64_type_node,
24460 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
24461 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
24462 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
24463 uintptr_type_node): Define.
24464 * c-cppbuiltin.c (builtin_define_constants,
24465 builtin_define_type_minmax): New.
24466 (builtin_define_stdint_macros): Define more macros.
24467 (c_cpp_builtins): Define more limit macros.
24468 (type_suffix): New.
24469 (builtin_define_type_max): Define in terms of
24470 builtin_define_type_minmax. Remove is_long parameter. All
24471 callers changed.
24472 * config.gcc (use_gcc_stdint): Define.
24473 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
24474 Add newlib-stdint.h for generic targets.
24475 * config/glibc-stdint.h, config/newlib-stdint.h,
24476 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
24477 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
24478 * config/score/score.h (UINTPTR_TYPE): Define.
24479 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
24480 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
24481 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24482 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24483 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24484 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24485 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24486 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
24487 * config/spu/spu.h (STDINT_LONG32): Define.
24488 * configure.ac (use_gcc_stdint): Substitute.
24489 * configure: Regenerate.
24490 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
24491 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
24492 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
24493 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
24494 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
24495 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
24496 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
24497 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
24498 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
24499 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
24500 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
24501 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
24502 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
24503 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
24504 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
24505 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
24506 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
24507 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
24508 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
24509 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
24510 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
24511 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
24512 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
24513 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24514 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24515 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24516 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24517 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24518 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
24519
24520 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
24521
24522 * loop-iv.c (suitable_set_for_replacement): Renamed from
24523 simplify_using_assignment; changed to return bool and to accept new
24524 args DEST and SRC. Return true iff we find a source/destination pair
24525 that can be used to make a replacement, and fill SRC and DEST if so.
24526 Remove arg ALTERED. Don't deal with altered regs here. All callers
24527 changed.
24528 (simplify_using_initial_values): Deal with altered regs here and track
24529 more precisely the effect they have on the validity of our expression.
24530
24531 * loop-iv.c (simplify_using_condition): A condition of the form
24532 (EQ REG CONST) can be used to simply make a substitution.
24533 (simplify_using_initial_values): Keep track of conditions we have seen
24534 and keep using them to simplify new expressions, while applying the
24535 same substitutions to them as to the expression.
24536
24537 * simplify-rtx.c (simplify_relational_operation_1): Simplify
24538 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
24539 GEU/LTU reversed.
24540
24541 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
24542 changed. Use this when trying to improve the upper bound.
24543 Generate the comparison by using simplify_gen_relational.
24544
24545 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
24546
24547 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
24548 functions.
24549 (simplify_using_assignment, simplify_using_initial_values): Call
24550 replace_in_expr to make replacements. Call replace_single_def_regs
24551 once on the initial version of the expression.
24552
24553 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24554
24555 PR target/27237
24556 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
24557
24558 2009-03-31 Richard Guenther <rguenther@suse.de>
24559
24560 PR middle-end/31029
24561 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
24562 equality comparisons. Fold C - X CMP X if C % 2 == 1.
24563
24564 2009-03-31 Richard Guenther <rguenther@suse.de>
24565
24566 * tree.h (div_if_zero_remainder): Declare.
24567 * fold-const.c (div_if_zero_remainder): Export.
24568 * tree-ssa-forwprop.c
24569 (forward_propagate_addr_into_variable_array_index): Handle
24570 constant array index addition outside of the variable index.
24571
24572 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24573
24574 PR target/39592
24575 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
24576 define_splits, floatunssi<mode>2): Require x87 conversions from
24577 DImode to be permitted.
24578
24579 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24580
24581 PR preprocessor/15638
24582 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
24583
24584 2009-03-31 Richard Guenther <rguenther@suse.de>
24585
24586 PR middle-end/23401
24587 PR middle-end/27810
24588 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
24589 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
24590 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
24591 a separate statement.
24592 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
24593 (lookup_tmp_var): Likewise.
24594 (is_gimple_formal_tmp_or_call_rhs): Remove.
24595 (is_gimple_reg_or_call_rhs): Rename to ...
24596 (is_gimple_reg_rhs_or_call): ... this.
24597 (is_gimple_mem_or_call_rhs): Rename to ...
24598 (is_gimple_mem_rhs_or_call): ... this.
24599 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
24600 DECL_GIMPLE_REG_P only if is_formal is true.
24601 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
24602 for non-proper post-modify expression gimplification.
24603 (gimplify_self_mod_expr): For post-modify expressions gimplify
24604 the lvalue to a minimal lvalue.
24605 (rhs_predicate_for): Remove formal temp case.
24606 (gimplify_modify_expr_rhs): Likewise.
24607 (gimplify_addr_expr): Use is_gimple_reg.
24608 (gimplify_expr): Remove formal temp cases.
24609 (gimple_regimplify_operands): Likewise.
24610 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
24611 and FILTER_EXPR like constants.
24612 * gimple.c (walk_gimple_op): Fix val_only initialization, use
24613 is_gimple_reg.
24614 (is_gimple_formal_tmp_rhs): Remove.
24615 (is_gimple_reg_rhs): Remove special casing.
24616 (is_gimple_mem_rhs): Fix.
24617 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
24618 (is_gimple_formal_tmp_var): Remove.
24619 (is_gimple_formal_tmp_reg): Likewise.
24620 (is_gimple_min_lval): Allow invariant component ref parts.
24621 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
24622 is_gimple_formal_tmp_reg): Remove declarations.
24623 * tree-cfg.c (verify_expr): Verify that variables with address
24624 taken do not have DECL_GIMPLE_REG_P set.
24625 * tree-mudflap.c (mf_build_check_statement_for): Use
24626 force_gimple_operand instead of gimplify_expr.
24627
24628 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
24629
24630 * modulo-sched.c (sms_schedule_by_order): Pass the actual
24631 schedulable rows to compute_split_row.
24632
24633 2009-03-31 Ben Elliston <bje@au.ibm.com>
24634
24635 PR target/31635
24636 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
24637 OPT_mvrsave.
24638
24639 2009-03-31 Alan Modra <amodra@bigpond.net.au>
24640
24641 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
24642 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
24643 * configure: Regenerate.
24644 * config.in: Regenerate.
24645 * config/rs6000/rs6000.opt (mtls-markers): Add.
24646 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
24647 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
24648 (tls_ld_aix, tls_ld_sysv): Likewise.
24649 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
24650 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
24651
24652 2009-03-31 Alan Modra <amodra@bigpond.net.au>
24653
24654 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
24655
24656 2009-03-30 Jan Hubicka <jh@suse.cz>
24657
24658 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
24659 out of RESX.
24660 (tree_remove_unreachable_handlers): Cleanup EH predecestor
24661 detection and label handling.
24662
24663 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
24664
24665 * ira-int.h (ira_allocno): Rename left_conflicts_num to
24666 left_conflicts_size.
24667 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
24668 ALLOCNO_LEFT_CONFLICTS_SIZE.
24669
24670 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
24671 remove_allocno_from_bucket_and_push,
24672 allocno_spill_priority_compare, push_allocnos_to_stack,
24673 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
24674 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
24675 (setup_allocno_left_conflicts_num): Ditto. Rename to
24676 setup_allocno_left_conflicts_size.
24677 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
24678 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
24679 setup_allocno_left_conflicts_size instead of
24680 setup_allocno_left_conflicts_num.
24681
24682 * ira-build.c (ira_create_allocno): Use
24683 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
24684 ALLOCNO_LEFT_CONFLICTS_NUM.
24685
24686 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
24687
24688 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
24689 instead of DF_LR_OUT.
24690
24691 * ira-lives.c (process_bb_node_lives): Ditto.
24692
24693 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
24694 instead of DF_LR_{OUT,IN}.
24695
24696 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
24697
24698 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
24699
24700 2009-03-30 Jan Hubicka <jh@suse.cz>
24701
24702 * except.c (label_to_region_map): Fix thinko.
24703
24704 2009-03-30 Steve Ellcey <sje@cup.hp.com>
24705
24706 PR middle-end/38237
24707 * tree.h (tree_find_value): New declaration.
24708 * tree.c (tree_find_value): New function.
24709 * varasm.c (assemble_external): Avoid duplicate entries on lists.
24710
24711 2009-03-30 Jakub Jelinek <jakub@redhat.com>
24712
24713 PR debug/39563
24714 * c-decl.c (struct c_binding): Add locus field.
24715 (bind): Add locus argument, set locus field from it.
24716 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
24717 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
24718 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
24719 implicitly_declare, undeclared_variable, lookup_label,
24720 declare_label, c_make_fname_decl, c_builtin_function,
24721 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
24722 bind callers.
24723
24724 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
24725
24726 PR target/38781
24727 * config/i386/i386.c (classify_argument): Check total size of
24728 structure.
24729
24730 2009-03-30 Martin Jambor <mjambor@suse.cz>
24731
24732 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
24733 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
24734 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
24735 respectively.
24736
24737 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
24738 seen_variable_array_ref while also traversing a union.
24739
24740 * tree-inline.c (optimize_inline_calls): Do not call
24741 cgraph_node_remove_callees.
24742 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
24743 (pass_remove_cgraph_callee_edges): New variable.
24744 * passes.c (init_optimization_passes): Add
24745 pass_remove_cgraph_callee_edges after early inlining and before all
24746 late intraprocedural passes.
24747
24748 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
24749
24750 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24751
24752 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
24753 Fix typos in names.
24754
24755 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24756
24757 * combine.c (simplify_comparison): Use have_insn_for.
24758 * dojump.c (do_jump): Likewise.
24759
24760 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24761
24762 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
24763 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
24764 sparc_compare_op0 like sparc_compare_emitted used to be handled.
24765 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
24766 instead of sparc_compare_emitted.
24767 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
24768 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
24769 instead of sparc_compare_emitted.
24770
24771 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24772
24773 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
24774 enter/exit cfglayout mode.
24775 (pass_partition_block): Require it.
24776 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
24777 (combine_instructions): Track basic blocks instead of labels.
24778 (update_cfg_for_uncondjump): New.
24779 (try_combine): Use it. Update jumps after rescanning.
24780 (pass_combine): Require PROP_cfglayout.
24781 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
24782
24783 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24784
24785 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
24786 Provide/destroy PROP_cfglayout respectively.
24787 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
24788 * tree-pass.h (PROP_cfglayout): New.
24789
24790 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24791
24792 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
24793 fold_convert_const_fixed_from_fixed,
24794 fold_convert_const_fixed_from_int,
24795 fold_convert_const_fixed_from_real, fold_negate_const): Do not
24796 set TREE_CONSTANT_OVERFLOW.
24797 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
24798 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
24799
24800 2009-03-30 Ira Rosen <irar@il.ibm.com>
24801
24802 * tree-vect-loop-manip.c: New file.
24803 * tree-vectorizer.c: Update documentation and included files.
24804 (vect_loop_location): Make extern.
24805 (rename_use_op): Move to tree-vect-loop-manip.c
24806 (rename_variables_in_bb, rename_variables_in_loop,
24807 slpeel_update_phis_for_duplicate_loop,
24808 slpeel_update_phi_nodes_for_guard1,
24809 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
24810 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
24811 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
24812 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
24813 find_loop_location): Likewise.
24814 (new_stmt_vec_info): Move to tree-vect-stmts.c.
24815 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
24816 get_vectype_for_scalar_type, vect_is_simple_use,
24817 supportable_widening_operation, supportable_narrowing_operation):
24818 Likewise.
24819 (bb_in_loop_p): Move to tree-vect-loop.c.
24820 (new_loop_vec_info, destroy_loop_vec_info,
24821 reduction_code_for_scalar_code, report_vect_op,
24822 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
24823 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
24824 (vect_supportable_dr_alignment): Likewise.
24825 * tree-vectorizer.h (tree-data-ref.h): Include.
24826 (vect_loop_location): Declare.
24827 Reorganize function declarations according to the new file structure.
24828 * tree-vect-loop.c: New file.
24829 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
24830 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
24831 * tree-vect-data-refs.c: New file.
24832 * tree-vect-patterns.c (timevar.h): Don't include.
24833 * tree-vect-stmts.c: New file.
24834 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
24835 tree-vect-slp.c, tree-vect-loop.c.
24836 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
24837 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
24838 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
24839 (tree-vect-analyze.o): Remove.
24840 (tree-vect-transform.o): Likewise.
24841 (tree-vect-data-refs.o): Add rule.
24842 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
24843 tree-vect-slp.o): Likewise.
24844 (tree-vect-patterns.o): Remove redundant dependencies.
24845 (tree-vectorizer.o): Likewise.
24846 * tree-vect-slp.c: New file.
24847
24848 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24849
24850 * optc-gen.awk: Warn if an option flag has multiple different
24851 help strings.
24852
24853 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
24854
24855 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
24856 -floop-block): Document dependences on PPL, CLooG and Graphite.
24857
24858 2009-03-30 Joseph Myers <joseph@codesourcery.com>
24859
24860 PR rtl-optimization/323
24861 * c-common.c (c_fully_fold, convert_and_check,
24862 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
24863 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
24864 * c-common.def (EXCESS_PRECISION_EXPR): New.
24865 * c-cppbuiltin.c (builtin_define_float_constants): Define
24866 constants with enough digits for long double.
24867 * c-lex.c (interpret_float): Interpret constant with excess
24868 precision where appropriate.
24869 * c-opts.c (c_common_post_options): Set
24870 flag_excess_precision_cmdline. Give an error for
24871 -fexcess-precision=standard for C++ for processors where the
24872 option is significant.
24873 * c-parser.c (c_parser_conditional_expression): Handle excess
24874 precision in condition.
24875 * c-typeck.c (convert_arguments): Handle arguments with excess
24876 precision.
24877 (build_unary_op): Move excess precision outside operation.
24878 (build_conditional_expr): Likewise.
24879 (build_compound_expr): Likewise.
24880 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
24881 (build_modify_expr): Handle excess precision in RHS.
24882 (convert_for_assignment): Handle excess precision in converted
24883 value.
24884 (digest_init, output_init_element, process_init_element): Handle
24885 excess precision in initializer.
24886 (c_finish_return): Handle excess precision in return value.
24887 (build_binary_op): Handle excess precision in operands and add
24888 excess precision as needed for operation.
24889 * common.opt (-fexcess-precision=): New option.
24890 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
24891 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
24892 For standard excess precision, output explicit conversion to and
24893 truncation from XFmode.
24894 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
24895 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
24896 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
24897 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
24898 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
24899 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
24900 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
24901 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
24902 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
24903 define_splits, sqrt<mode>2): Disable where appropriate for
24904 standard excess precision.
24905 * convert.c (convert_to_real): Do not shorten arithmetic to type
24906 for which excess precision would be used.
24907 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
24908 * doc/invoke.texi (-fexcess-precision=): Document option.
24909 (-mfpmath=): Correct index entry.
24910 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
24911 flag_excess_precision): New.
24912 * langhooks.c (lhd_post_options): Set
24913 flag_excess_precision_cmdline.
24914 * opts.c (common_handle_option): Handle -fexcess-precision=.
24915 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
24916 init_excess_precision): New.
24917 (lang_dependent_init_target): Call init_excess_precision.
24918 * tree.c (excess_precision_type): New.
24919 * tree.h (excess_precision_type): Declare.
24920
24921 2009-03-30 Joseph Myers <joseph@codesourcery.com>
24922
24923 PR c/35235
24924 * c-typeck.c (build_component_ref): Do not copy qualifiers from
24925 non-lvalue to component.
24926
24927 2009-03-29 Joseph Myers <joseph@codesourcery.com>
24928
24929 PR preprocessor/34695
24930 * Makefile.in (c-opts.o): Depend on c-tree.h.
24931 * c-common.c: Move down include of diagnostic.h.
24932 (done_lexing, c_cpp_error): New.
24933 * c-common.h (done_lexing): Declare.
24934 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
24935 (parse_in).
24936 * c-opts.c: Include c-tree.h.
24937 (c_common_init_options): Set preprocessor error callback.
24938 (c_common_handle_option): Do not set preprocessor
24939 inhibit_warnings, warnings_are_errors, warn_system_headers,
24940 pedantic_errors or inhibit_warnings flags.
24941 (c_common_post_options): Do not check cpp_errors (parse_in).
24942 (c_common_finish): Do not output dependencies if there were
24943 errors. Do not check return value of cpp_finish.
24944 * c-ppoutput.c (pp_file_change): Set input_location.
24945 * c-tree.h (c_cpp_error): Declare.
24946 * diagnostic.c (diagnostic_set_info_translated): Also initialize
24947 override_column.
24948 (diagnostic_build_prefix): Check override_column.
24949 * diagnostic.h (diagnostic_info): Add override_column field.
24950 (diagnostic_override_column): Define.
24951
24952 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
24953
24954 * c-common.c (c_expand_expr, c_staticp): Remove.
24955 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
24956 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
24957 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
24958 * c-gimplify.c (gimplify_compound_literal_expr,
24959 optimize_compound_literals_in_ctor): Remove.
24960 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
24961 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
24962 * c-semantics.c (emit_local_var): Remove.
24963
24964 * langhooks-def.h (lhd_expand_expr): Remove.
24965 * langhooks.c (lhd_expand_expr): Remove.
24966 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
24967
24968 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
24969 handling from c-semantics.c; don't call into langhook.
24970 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
24971 * gimplify.c (gimplify_compound_literal_expr,
24972 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
24973 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
24974 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
24975 as was done in c-gimplify.c.
24976 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
24977 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
24978 Move from c-common.h.
24979 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
24980
24981 * tree.c (staticp): Do not call langhook.
24982 * langhooks.c (lhd_staticp): Delete.
24983 * langhooks-def.h (lhd_staticp): Delete prototype.
24984 (LANG_HOOKS_STATICP): Delete.
24985 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
24986
24987 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
24988 instead of DECL_STMTs.
24989
24990 2009-03-29 Joseph Myers <joseph@codesourcery.com>
24991
24992 PR c/456
24993 PR c/5675
24994 PR c/19976
24995 PR c/29116
24996 PR c/31871
24997 PR c/35198
24998 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
24999 void_type_node.
25000 (fold_call_expr): Return a NOP_EXPR from folding rather than the
25001 contained expression.
25002 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
25003 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
25004 conditional expressions for C.
25005 (decl_constant_value_for_optimization): Move from
25006 decl_constant_value_for_broken_optimization in c-typeck.c. Check
25007 whether optimizing and that the expression is a VAR_DECL not of
25008 array type instead of doing such checks in the caller. Do not
25009 check pedantic. Call gcc_unreachable for C++.
25010 * c-common.def (C_MAYBE_CONST_EXPR): New.
25011 * c-common.h (c_fully_fold, c_save_expr,
25012 decl_constant_value_for_optimization): New prototypes.
25013 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
25014 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
25015 EXPR_INT_CONST_OPERANDS): Define.
25016 * c-convert.c (convert): Strip nops from expression.
25017 * c-decl.c (groktypename): Take extra parameters expr and
25018 expr_const_operands. Update call to grokdeclarator.
25019 (start_decl): Update call to grokdeclarator. Add statement for
25020 expressions used in type of decl.
25021 (grokparm): Update call to grokdeclarator.
25022 (push_parm_decl): Update call to grokdeclarator.
25023 (build_compound_literal): Add parameter non_const and build a
25024 C_MAYBE_COSNT_EXPR if applicable.
25025 (grokdeclarator): Take extra parameters expr and
25026 expr_const_operands. Track expressions used in declaration
25027 specifiers and declarators. Fold array sizes and track whether
25028 they are constant expressions and whether they are integer
25029 constant expressions.
25030 (parser_xref_tag): Set expr and expr_const_operands fields in
25031 return value.
25032 (grokfield): Update call to grokdeclarator.
25033 (start_function): Update call to grokdeclarator.
25034 (build_null_declspecs): Set expr and expr_const_operands fields in
25035 return value.
25036 (declspecs_add_type): Handle expressions in typeof specifiers.
25037 * c-parser.c (c_parser_declspecs): Set expr and
25038 expr_const_operands fields for declaration specifiers.
25039 (c_parser_enum_specifier): Likewise.
25040 (c_parser_struct_or_union_specifier): Likewise.
25041 (c_parser_typeof_specifier): Likewise. Update call to
25042 groktypename. Fold expression as needed. Return expressions with
25043 type instead of adding statements.
25044 (c_parser_attributes): Update calls to c_parser_expr_list.
25045 (c_parser_statement_after_labels): Fold expression before passing
25046 to objc_build_throw_stmt.
25047 (c_parser_condition): Fold expression.
25048 (c_parser_asm_operands): Fold expression.
25049 (c_parser_conditional_expression): Use c_save_expr. Update call
25050 to build_conditional_expr.
25051 (c_parser_alignof_expression): Update call to groktypename.
25052 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
25053 original_code. Fold expression argument of va_arg. Create
25054 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
25055 argument to va_arg. Update calls to groktypename. Fold array
25056 index for offsetof. Verify that first argument to
25057 __builtin_choose_expr has integer type.
25058 (c_parser_postfix_expression_after_paren_type): Update calls to
25059 groktypename and build_compound_literal. Handle expressions with
25060 side effects in type name.
25061 (c_parser_postfix_expression_after_primary): Update call to
25062 c_parser_expr_list. Set original_code for calls to
25063 __builtin_constant_p.
25064 (c_parser_expr_list): Take extra parameter fold_p. Fold
25065 expressions if requested.
25066 (c_parser_objc_type_name): Update call to groktypename.
25067 (c_parser_objc_synchronized_statement): Fold expression.
25068 (c_parser_objc_receiver): Fold expression.
25069 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
25070 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
25071 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
25072 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
25073 (struct c_typespec): Add elements expr and expr_const_operands.
25074 (struct c_declspecs): Add elements expr and expr_const_operands.
25075 (groktypename, build_conditional_expr, build_compound_literal):
25076 Update prototypes.
25077 (in_late_binary_op): Declare.
25078 * c-typeck.c (note_integer_operands): New function.
25079 (in_late_binary_op): New variable.
25080 (decl_constant_value_for_broken_optimization): Move to c-common.c
25081 and rename to decl_constant_value_for_optimization.
25082 (default_function_array_conversion): Do not strip nops.
25083 (default_conversion): Do not call
25084 decl_constant_value_for_broken_optimization.
25085 (build_array_ref): Do not fold result.
25086 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
25087 result when operand is a VLA.
25088 (c_expr_sizeof_type): Update call to groktypename. Handle
25089 expressions included in type name. Use C_MAYBE_CONST_EXPR for
25090 result when operand names a VLA type.
25091 (build_function_call): Update call to build_compound_literal.
25092 Only fold result for calls to __builtin_* functions. Strip
25093 NOP_EXPR from INTEGER_CST returned from such functions. Fold
25094 the function designator.
25095 (convert_arguments): Fold arguments. Update call to
25096 convert_for_assignment.
25097 (build_unary_op): Handle increment and decrement of
25098 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
25099 decrement earlier. Fold operand of increment and decrement.
25100 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
25101 built for integer operand. Wrap returns that are INTEGER_CSTs
25102 without being integer constant expressions or that have integer
25103 constant operands without being INTEGER_CSTs.
25104 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
25105 (build_conditional_expr): Add operand ifexp_bcp. Track whether
25106 result is an integer constant expression or can be used in
25107 unevaluated parts of one and avoid folding and wrap as
25108 appropriate. Fold operands before possibly doing -Wsign-compare
25109 warnings.
25110 (build_compound_expr): Wrap result for C99 if operands can be used
25111 in integer constant expressions.
25112 (build_c_cast): Update call to digest_init. Do not ignore
25113 overflow from casting floating-point constants to integers. Wrap
25114 results that could be confused with integer constant expressions,
25115 null pointer constants or floating-point constants.
25116 (c_cast_expr): Update call to groktypename. Handle expressions
25117 included in type name.
25118 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
25119 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
25120 Update calls to convert_for_assignment.
25121 (convert_for_assignment): Take new parameter
25122 null_pointer_constant. Do not strip nops or call
25123 decl_constant_value_for_broken_optimization. Set
25124 in_late_binary_op for conversions to boolean.
25125 (store_init_value): Update call to digest_init.
25126 (digest_init): Take new parameter null_pointer_constant. Do not
25127 call decl_constant_value_for_broken_optimization. pedwarn for
25128 initializers not constant expressions. Update calls to
25129 convert_for_assignment.
25130 (constructor_nonconst): New.
25131 (struct constructor_stack): Add nonconst element.
25132 (really_start_incremental_init, push_init_level, pop_init_level):
25133 Handle constructor_nonconst and nonconst element.
25134 (set_init_index): Call constant_expression_warning for array
25135 designators.
25136 (output_init_element): Fold value. Set constructor_nonconst as
25137 applicable. pedwarn for initializers not constant expressions.
25138 Update call to digest_init. Call constant_expression_warning
25139 where constant initializers are required.
25140 (process_init_element): Use c_save_expr.
25141 (c_finish_goto_ptr): Fold expression.
25142 (c_finish_return): Fold return value. Update call to
25143 convert_for_assignment.
25144 (c_start_case): Fold switch expression.
25145 (c_process_expr_stmt): Fold expression.
25146 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
25147 ensure statement expression is not evaluated in constant expression.
25148 (build_binary_op): Track whether results are integer constant
25149 expressions or may occur in such, disable folding and wrap results
25150 as applicable. Fold operands for -Wsign-compare warnings unless
25151 in_late_binary_op.
25152 (c_objc_common_truthvalue_conversion): Handle results folded to
25153 integer constants that are not integer constant expressions.
25154 * doc/extend.texi: Document when typeof operands are evaluated,
25155 that condition of __builtin_choose_expr is an integer constant
25156 expression, and more about use of __builtin_constant_p in
25157 initializers.
25158
25159 2009-03-29 Richard Guenther <rguenther@suse.de>
25160
25161 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
25162 propagate addresses of array references.
25163
25164 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
25165
25166 * regmove.c (perhaps_ends_bb_p): Remove.
25167 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
25168 from INSN and check that the main loop stays within that basic block.
25169 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
25170 (regmove_forward_pass): Split out from regmove_optimize. Use
25171 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
25172 (regmove_backward_pass): Split out from regmove_optimize. Use
25173 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
25174 (regmove_optimize): Simplify.
25175
25176 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
25177
25178 PR target/39545
25179 * config/i386/i386.c (classify_argument): Ignore flexible array
25180 member in struct and warn ABI change.
25181
25182 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
25183
25184 * config/i386/i386-protos.h (ix86_agi_dependent): New.
25185
25186 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
25187 (ix86_adjust_cost): Updated.
25188
25189 2009-03-29 Jan Hubicka <jh@suse.cz>
25190
25191 PR middle-end/28850
25192 * tree-pass.h (pass_cleanup_eh): New function.
25193 (remove_unreachable_regions): Break code handling RTL
25194 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
25195 that can not be reached by runtime.
25196 (can_be_reached_by_runtime): New function.
25197 (label_to_region_map): New function.
25198 (num_eh_regions): New function.
25199 (rtl_remove_unreachable_regions): New function.
25200 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
25201 (remove_eh_region): New function.
25202 * except.h: Include sbitmap and vecprim.
25203 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
25204 num_eh_regions): Declare.
25205 * passes.c (init_optimization_passes): Schedule cleanup_eh.
25206 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
25207 * tree-eh.c (tree_remove_unreachable_handlers): New function.
25208 (tree_empty_eh_handler_p): New function.
25209 (cleanup_empty_eh): New function.
25210 (cleanup_eh): New function.
25211 (pass_cleanup_eh): New function.
25212
25213 2009-03-29 Jan Hubicka <jh@suse.cz>
25214
25215 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
25216 for removed regions.
25217
25218 2009-03-29 Jan Hubicka <jh@suse.cz>
25219
25220 * except.c (dump_eh_tree): Dump all datastructures.
25221
25222 2009-03-29 Jan Hubicka <jh@suse.cz>
25223
25224 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
25225 (duplicate_eh_regions_1): Likewise.
25226 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
25227 vector; call EH verification.
25228 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
25229 Be ready for region being removed.
25230
25231 2009-03-29 Jan Hubicka <jh@suse.cz>
25232
25233 * bitmap.c (bitmap_last_set_bit): New function.
25234 * bitmap.h (bitmap_last_set_bit): Declare.
25235
25236 2009-03-29 David Ayers <ayers@fsfe.org>
25237
25238 PR objc/27377
25239 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
25240 by calling objc_compare_types and surpress warnings about
25241 incompatible C pointers that are compatible ObjC pointers.
25242
25243 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
25244
25245 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
25246 call initialize_inline_failed.
25247 (initialize_inline_failed): Move it from here ...
25248 * cgraph.c (initialize_inline_failed): ... to here.
25249 (cgraph_create_edge): Call initialize_inline_failed rather than
25250 setting inline_failed directly.
25251
25252 2009-03-29 Ben Elliston <bje@au.ibm.com>
25253
25254 PR target/32542
25255 * sysv4.opt (msdata): Improve comment.
25256 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
25257 * sysv4.h (SVR4_ASM_SPEC): Likewise.
25258
25259 2009-03-29 Ben Elliston <bje@au.ibm.com>
25260
25261 PR target/30451
25262 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
25263 load and store attributes.
25264
25265 2009-03-29 Ben Elliston <bje@au.ibm.com>
25266
25267 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
25268 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
25269 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
25270 * doc/extend.texi (X86 Built-in Functions): Add index entries for
25271 __builtin_infq and __builtin_huge_valq.
25272
25273 2009-03-28 Anatoly Sokolov <aesok@post.ru>
25274
25275 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
25276 atmega8m1 devices.
25277 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
25278 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
25279
25280 2009-03-28 Xinliang David Li <davidxl@google.com>
25281
25282 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
25283 (do_dbg_cnt): New function.
25284
25285 2009-03-28 Jan Hubicka <jh@suse.cz>
25286
25287 Merge from pretty-ipa:
25288
25289 2009-03-27 Jan Hubicka <jh@suse.cz>
25290
25291 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
25292 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
25293 * passes.c (function_called_by_processed_nodes_p): New.
25294 * ipa-pure-const.c (check_call): Fix handling of operands.
25295 (analyze_function): Dump debug output for skipped bodies.
25296 (local_pure_const): Use function_called_by_processed_nodes_p.
25297 * dwarf2out.c (reference_to_unused): Use output.
25298 * passes.c (do_per_function_toporder): Likewise.
25299
25300 2008-11-12 Jan Hubicka <jh@suse.cz>
25301
25302 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
25303 * ipa-pure-const.c (funct_state_d): Add can throw field; make
25304 state_set_in_source enum
25305 (check_decl): Ignore memory tags; do not set fake looping flags;
25306 dump diagnostics.
25307 (check_operand, check_tree, check_rhs_var, check_lhs_var,
25308 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
25309 (check_call, analyze_function): Rewrite.
25310 (check_stmt): New.
25311 (add_new_function): Update call of analyze_function.
25312 (generate_summary): Add call of analyze_function.
25313 (propagate): Propagate can_throw; handle state_set_in_source correctly.
25314 (local_pure_const): New function.
25315 (pass_local_pure_const): New pass.
25316 * ipa-inline.c (inline_transform): Set after_inlining.
25317 * tree-eh.c (stmt_can_throw_external): New.
25318 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
25319 work with aliasing built.
25320 * tree-flow.h (stmt_can_throw_external): New.
25321 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
25322 and local pure/const pass in early and late optimization queue.
25323
25324 2009-03-28 Martin Jambor <mjambor@suse.cz>
25325
25326 * fold-const.c (get_pointer_modulus_and_residue): New parameter
25327 allow_func_align.
25328 (fold_binary): Allow function decl aligment consideration is the
25329 second argument is integer constant one.
25330 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
25331 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
25332 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
25333
25334 2009-03-28 Jan Hubicka <jh@suse.cz>
25335
25336 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
25337 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
25338 * function.h (rtl_data): Add nothrow flag.
25339 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
25340 set DECL_NOTHROW for AVAILABLE functions.
25341
25342 2009-03-28 Jakub Jelinek <jakub@redhat.com>
25343
25344 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
25345 following vector keyword has expansion starting with pixel or bool
25346 keyword, expand vector to __vector and pixel or bool to __pixel or
25347 __bool.
25348
25349 PR c++/39554
25350 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
25351 warn_if_disallowed_function_p): Removed.
25352 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
25353 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
25354 warning_if_disallowed_function_p.
25355 * flags.h (warn_if_disallowed_function_p,
25356 warn_disallowed_functions): Removed.
25357 * common.opt (Wdisallowed-function-list=): Removed.
25358 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
25359
25360 2009-03-28 Richard Guenther <rguenther@suse.de>
25361
25362 PR tree-optimization/38723
25363 * tree-ssa-pre.c (compute_avail): Add all default definitions to
25364 the entry block.
25365
25366 2009-03-28 Jan Hubicka <jh@suse.cz>
25367
25368 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
25369 test introduced by my previous patch.
25370
25371 2009-03-28 Richard Guenther <rguenther@suse.de>
25372
25373 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
25374 the PHIs value undefined.
25375
25376 2009-03-28 Jan Hubicka <jh@suse.cz>
25377
25378 * tree-pass.h (pass_fixup_cfg): New pass.
25379 * ipa-inline.c (inline_transform): Set
25380 always_inline_functions_inlined/after_inlining.
25381 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
25382 (pass_fixup_cfg): New pass.
25383 * passes.c (init_optimization_passes): Add fixup_cfg.
25384
25385 2009-03-28 Richard Guenther <rguenther@suse.de>
25386
25387 PR tree-optimization/38458
25388 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
25389 argument use the arguments copy-of value.
25390
25391 2009-03-28 Richard Guenther <rguenther@suse.de>
25392
25393 PR tree-optimization/38180
25394 * tree-ssa-ccp.c (get_default_value): Simplify.
25395 (likely_value): Likewise.
25396 (surely_varying_stmt_p): Properly handle VOP case.
25397 (ccp_initialize): Likewise.
25398 (ccp_fold): Handle propagating through *&.
25399 (fold_const_aggregate_ref): Also handle decls.
25400
25401 2009-03-28 Jan Hubicka <jh@suse.cz>
25402
25403 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
25404 * cgraph.h (cgraph_node): Likewise.
25405 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
25406 (cgraph_reset_node): Use process flag.
25407 (cgraph_mark_functions_to_output): Likewise.
25408 (cgraph_expand_function): Likewise.
25409 (cgraph_expand_all_functions): Likewise.
25410 (cgraph_output_in_order): Likewise.
25411 * dwarf2out.c (reference_to_unused): Likewise.
25412 * passes.c do_per_function_toporder): Likewise.
25413
25414 2009-03-28 Jan Hubicka <jh@suse.cz>
25415
25416 Bring from lto-branch:
25417
25418 2008-09-03 Doug Kwan <dougkwan@google.com>
25419
25420 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
25421 enums instead of reason strings.
25422 * cgraph.c (cgraph_create_edge): Same.
25423 (cgraph_inline_failed_string): New function.
25424 * cgraph.h (cgraph_inline_failed_t): New enum type.
25425 (cgraph_inline_failed_string): New prototype.
25426 (struct cgraph_edge): Change type of INLINED_FAILED from constant
25427 char pointer to cgraph_inline_failed_t.
25428 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
25429 (cgraph_default_inline_p): Ditto.
25430 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
25431 to cgraph_inline_failed_t pointer.
25432 * cif-code.def: New file.
25433 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
25434 reason string.
25435 (cgraph_check_inline_limits): Change type of REASON to pointer to
25436 cgraph_inline_failed_t. Replace reason strings with enums.
25437 (cgraph_default_inline_p): Ditto.
25438 (cgraph_recursive_inlining_p): Ditto.
25439 (update_caller_keys): Change type of FAILED_REASON to
25440 cgraph_inline_failed_t.
25441 (cgraph_set_inline_failed): Change type of REASON to pointer to
25442 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
25443 convert enums to strings for text output.
25444 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
25445 to be of type cgraph_inline_failed_t. Replace reason strings with
25446 enums. Call cgraph_inline_failed_string to covert enums
25447 to strings for text output.
25448 (cgraph_decide_inlining): Replace reason strings with enums.
25449 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
25450 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
25451 for text output.
25452 * tree-inline.c (expand_call_inline): Change type of REASON
25453 to cgraph_inline_failed_t. Replace reason strings with enums.
25454 Call cgraph_inline_failed_string for text output.
25455 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
25456 (cgraph.o): Ditto.
25457
25458 2009-03-28 Jan Hubicka <jh@suse.cz>
25459
25460 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
25461 cgraph_clone_node): Remove master clone handling.
25462 (cgraph_is_master_clone, cgraph_master_clone): Remove.
25463 * cgraph.h (master_clone): Remove.
25464 (cgraph_is_master_clone, cgraph_master_clone): Remove.
25465 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
25466 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
25467
25468 2009-03-28 Jan Hubicka <jh@suse.cz>
25469
25470 * cgraph.c (cgraph_function_body_availability): Functions declared
25471 inline are always safe to assume that it is not going to be replaced.
25472
25473 2009-03-28 Richard Guenther <rguenther@suse.de>
25474
25475 PR tree-optimization/38513
25476 * tree-ssa-pre.c (eliminate): Remove redundant stores.
25477 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
25478 EXC_PTR_EXPR and FILTER_EXPR.
25479 (get_ref_from_reference_ops): Likewise.
25480
25481 2009-03-28 Richard Guenther <rguenther@suse.de>
25482
25483 PR tree-optimization/38968
25484 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
25485 Use FLOOR_MOD_EXPR to compute misalignment.
25486
25487 2009-03-28 Richard Guenther <rguenther@suse.de>
25488
25489 PR tree-optimization/37795
25490 * tree.h (combine_comparisons): Declare.
25491 * fold-const.c (combine_comparisons): Export.
25492 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
25493 comparisons.
25494 (ifcombine_iforif): Use combine_comparisons.
25495
25496 2009-03-28 Jan Hubicka <jh@suse.cz>
25497
25498 * tree-eh.c (inlinable_call_p): New function.
25499 (make_eh_edges): Use it.
25500 (verify_eh_edges): Use it.
25501 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
25502 * except.c (reachable_next_level): Add inlinable_function argument
25503 (sjlj_find_directly_reachable_regions): Update.
25504 (add_reachable_handler): Do not set saw_any_handlers.
25505 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
25506 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
25507 Add new inlinable call parameter.
25508 (can_throw_internal, can_throw_external): Update.
25509 * except.h (can_throw_internal_1, can_throw_external_1,
25510 foreach_reachable_handler): Update declaration.
25511
25512 2009-03-28 Joseph Myers <joseph@codesourcery.com>
25513
25514 * config/arm/t-arm-coff, config/h8300/coff.h,
25515 config/i386/i386-aout.h, config/i386/i386-coff.h,
25516 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
25517 config/pdp11/2bsd.h, config/rs6000/aix41.h,
25518 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
25519 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
25520 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
25521 sys-types.h: Remove.
25522 * Makefile.in: Remove protoize and fixproto support and references
25523 in comments.
25524 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
25525 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
25526 Remove.
25527 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
25528 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
25529 unprotoize$(exeext).
25530 (rest.encap): Don't depend on $(STMP_FIXPROTO)
25531 (.PHONY): Don't depend on proto.
25532 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
25533 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
25534 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
25535 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
25536 build/gen-protos.o, build/scan.o, xsys-protos.h,
25537 build/fix-header$(build_exeext), build/fix-header.o,
25538 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
25539 stmp-install-fixproto): Remove.
25540 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
25541 SYSCALLS.c or fixproto files.
25542 (install-common): Don't install protoize.
25543 (install-headers-tar, install-headers-cpio, install-headers-cp):
25544 Don't depend on $(STMP_FIXPROTO).
25545 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
25546 install fixproto files or write out fixproto settings.
25547 (uninstall): Don't uninstall protoize.
25548 * config.gcc (use_fixproto): Remove.
25549 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
25550 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
25551 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
25552 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
25553 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
25554 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
25555 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
25556 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
25557 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
25558 * config/t-vxworks (STMP_FIXPROTO): Remove.
25559 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
25560 STMP_FIXPROTO): Remove.
25561 * config.in, configure: Regenerate.
25562 * crtstuff.c (gid_t, uid_t): Don't undefine.
25563 * doc/install.texi: Change m68k-coff to m68k-elf in example.
25564 (arm-*-coff, arm-*-aout: Remove target entries.
25565 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
25566 Remove mention of AIX 4.1.
25567 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
25568 * doc/invoke.texi (Running Protoize): Remove.
25569 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
25570 (Protoize Caveats): Remove.
25571 * tsystem.h: Update comments on headers assumed to exist.
25572
25573 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
25574
25575 * genautomata.c: Add a new year to the copyright. Add a new
25576 reference.
25577 (struct insn_reserv_decl): Add comments for member bypass_list.
25578 (find_bypass): Remove.
25579 (insert_bypass): New.
25580 (process_decls): Use insert_bypass.
25581 (output_internal_insn_latency_func): Output all bypasses with the
25582 same input insn in one switch case.
25583
25584 * rtl.def (define_bypass): Describe bypass choice.
25585 * doc/md.texi (define_bypass): Ditto.
25586
25587 2009-03-27 Richard Guenther <rguenther@suse.de>
25588
25589 * gimplify.c (mark_addressable): Export.
25590 * tree-flow.h (mark_addressable): Declare.
25591 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
25592 * tree-ssa.c (verify_phi_args): Verify that address taken
25593 variables have TREE_ADDRESSABLE set.
25594
25595 2009-03-27 Richard Guenther <rguenther@suse.de>
25596
25597 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
25598 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
25599 Do not mark decls TREE_ADDRESSABLE.
25600 (build_fold_addr_expr): Adjust.
25601 (fold_addr_expr): Remove.
25602 (fold_unary): Use build_fold_addr_expr.
25603 (fold_comparison): Likewise.
25604 (split_address_to_core_and_offset): Likewise.
25605 * coverage.c (tree_coverage_counter_addr): Mark the array decl
25606 TREE_ADDRESSABLE.
25607 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
25608 (gimplify_modify_expr_to_memcpy): Mark source and destination
25609 addressable.
25610 * omp-low.c (create_omp_child_function): Mark the object decl
25611 TREE_ADDRESSABLE.
25612 (lower_rec_input_clauses): Mark the var we take the address of
25613 TREE_ADDRESSABLE.
25614 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
25615
25616 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25617
25618 PR middle-end/39315
25619 * cfgexpand.c (expand_one_stack_var_at): Change alignment
25620 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
25621
25622 2009-03-27 Richard Guenther <rguenther@suse.de>
25623
25624 PR tree-optimization/39120
25625 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
25626 constraints.
25627 (handle_lhs_call): Process return constraints. Add escape
25628 constraints if necessary.
25629 (handle_const_call): Fill out return constraints. Make nested
25630 case more precise. Avoid consttmp if possible.
25631 (handle_pure_call): Fill out return constraints. Avoid
25632 callused if possible.
25633 (find_func_aliases): Simplify call handling.
25634
25635 2009-03-27 Richard Guenther <rguenther@suse.de>
25636
25637 PR tree-optimization/39120
25638 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
25639 as a representative.
25640 (solve_graph): Do propagate CALLUSED.
25641 (handle_pure_call): Use a scalar constraint from CALLUSED for
25642 the return value.
25643 (find_what_p_points_to): CALLUSED shall not appear in poins-to
25644 solutions.
25645
25646 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25647
25648 PR c/39323
25649 * c-common.c (handle_aligned_attribute): Properly check alignment
25650 overflow. Use (1U << i) instead of (1 << i).
25651
25652 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
25653
25654 * expr.h (get_mem_align_offset): Updated.
25655
25656 * tree.h (tree_decl_common): Change align to "unsigned int" and
25657 move it before pointer_alias_set.
25658
25659 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25660 Jakub Jelinek <jakub@redhat.com>
25661
25662 PR target/38034
25663 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
25664 gr_register_operand with gr_reg_or_0_operand.
25665 (cmpxchg_rel_di): Likewise.
25666 (sync_lock_test_and_set<mode>): Likewise.
25667
25668 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25669
25670 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
25671 (true_regnum): Likewise.
25672
25673 * rtlanal.c (subreg_info): Moved to ...
25674 * rtl.h (subreg_info): Here. New.
25675 (subreg_get_info): New.
25676
25677 * rtlanal.c (subreg_get_info): Make it extern.
25678
25679 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25680
25681 PR target/39472
25682 * config/i386/i386.c (ix86_abi): New.
25683 (override_options): Handle -mabi=.
25684 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
25685 (ix86_call_abi_override): Likewise.
25686 (init_cumulative_args): Likewise.
25687 (function_arg_advance): Likewise.
25688 (function_arg_64): Likewise.
25689 (function_arg): Likewise.
25690 (ix86_pass_by_reference): Likewise.
25691 (ix86_function_value_regno_p): Likewise.
25692 (ix86_build_builtin_va_list_abi): Likewise.
25693 (setup_incoming_varargs_64): Likewise.
25694 (is_va_list_char_pointer): Likewise.
25695 (ix86_init_machine_status): Likewise.
25696 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
25697 (ix86_function_type_abi): Return enum calling_abi. Rewrite
25698 for 64bit. Replace DEFAULT_ABI with ix86_abi.
25699 (ix86_function_abi): Make it static and return enum calling_abi.
25700 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
25701 with ix86_abi.
25702 (ix86_fn_abi_va_list): Updated.
25703
25704 * config/i386/i386.h (ix86_abi): New.
25705 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
25706 (CONDITIONAL_REGISTER_USAGE): Likewise.
25707 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
25708 (machine_function): Likewise.
25709
25710 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
25711 with ix86_abi.
25712 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
25713 (STACK_BOUNDARY): Likewise.
25714 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
25715
25716 * config/i386/i386.opt (mabi=): New.
25717
25718 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
25719 return enum calling_abi.
25720 (ix86_function_type_abi): Likewise.
25721 (ix86_function_abi): Removed.
25722
25723 * doc/invoke.texi: Document -mabi= option for x86.
25724
25725 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25726
25727 * builtins.c (real_dconstp): Delete.
25728 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
25729
25730 2009-03-27 Dodji Seketeli <dodji@redhat.com>
25731 Jakub Jelinek <jakub@redhat.com>
25732
25733 PR debug/37959
25734 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
25735 (gen_subprogram_die): When a function is explicit, generate the
25736 DW_AT_explicit attribute.
25737 * langhooks.h (struct lang_hooks_for_decls): Add
25738 function_decl_explicit_p langhook.
25739 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
25740 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
25741
25742 2009-03-27 Jakub Jelinek <jakub@redhat.com>
25743
25744 * builtins.c (fold_builtin_memory_op): Optimize memmove
25745 into memcpy if we can prove source and destination don't overlap.
25746
25747 * tree-inline.c: Include gt-tree-inline.h.
25748 (clone_fn_id_num): New variable.
25749 (clone_function_name): New function.
25750 (tree_function_versioning): Use it.
25751 * Makefile.in (GTFILES): Add tree-inline.c.
25752
25753 2009-03-27 Mark Mitchell <mark@codesourcery.com>
25754
25755 * BASE-VER: Change to 4.5.0.
25756
25757 2009-03-27 Xinliang David Li <davidxl@google.com>
25758
25759 PR tree-optimization/39557
25760 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
25761
25762 2009-03-27 Xinliang David Li <davidxl@google.com>
25763
25764 PR tree-optimization/39548
25765 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
25766 candidate check.
25767
25768 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25769
25770 * c-common.c (pointer_int_sum): Use %wd on return from
25771 tree_low_cst.
25772
25773 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25774
25775 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
25776 on return from tree_low_cst.
25777
25778 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
25779
25780 PR c++/36799
25781 * ginclude/stdarg.h (va_copy): Define also for
25782 __GXX_EXPERIMENTAL_CXX0X__.
25783
25784 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25785
25786 PR c++/35652
25787 * builtins.h (c_strlen): Do not warn here.
25788 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
25789 * c-common.c (pointer_int_sum): Take an explicit location.
25790 Warn about offsets out of bounds.
25791 * c-common.h (pointer_int_sum): Adjust declaration.
25792
25793 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25794
25795 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
25796 markup glitch.
25797
25798 2009-03-26 Jakub Jelinek <jakub@redhat.com>
25799
25800 PR c++/39554
25801 * opts.c (warn_if_disallowed_function_p): Don't assume
25802 get_callee_fndecl must return non-NULL.
25803
25804 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
25805
25806 PR rtl-optimization/39522
25807 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
25808 when reg_reloaded_valid is set.
25809
25810 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25811
25812 * config/spu/divv2df3.c: New file.
25813 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
25814 (DPBIT_FUNCS): Filter out _div_df.
25815
25816 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
25817
25818 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
25819 a jump insn, count that jump in the distance to the loop start.
25820
25821 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
25822
25823 PR target/39523
25824 * config/sh/sh.c (calc_live_regs): Fix condition for global
25825 registers except PIC_OFFSET_TABLE_REGNUM.
25826
25827 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
25828
25829 PR/39518
25830 * doc/invoke.texi (-mconsole): New.
25831 (-mcygwin): New.
25832 (-mno-cygwin): New.
25833 (-mdll): New.
25834 (-mnop-fun-dllimport): New.
25835 (-mthread): New.
25836 (-mwin32): New.
25837 (-mwindows): New.
25838 (sub section "i386 and x86-64 Windows Options"): New.
25839
25840 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
25841
25842 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
25843 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
25844
25845 2009-03-25 Richard Guenther <rguenther@suse.de>
25846
25847 PR middle-end/39497
25848 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
25849 of -Wno-error.
25850
25851 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
25852
25853 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
25854 neither of haifa/selective schedulers are working.
25855
25856 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25857
25858 * doc/invoke.texi (Debugging Options): Fix description of
25859 -fno-merge-debug-strings.
25860
25861 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
25862
25863 * config/cris/libgcc.ver: New version-script.
25864 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
25865
25866 * configure.ac <GAS features, nop mnemonic>: Add pattern
25867 crisv32-*-* for "nop".
25868 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
25869 * configure: Regenerate.
25870
25871 2009-03-24 Ira Rosen <irar@il.ibm.com>
25872
25873 PR tree-optimization/39529
25874 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
25875 mark_sym_for_renaming for the tag copied to the new vector
25876 pointer.
25877
25878 2009-03-24 Arthur Loiret <aloiret@debian.org>
25879
25880 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
25881 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
25882 EXTRA_SPEC_FUNCTIONS.
25883 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
25884 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
25885 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
25886 -march and -mtune options.
25887
25888 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
25889
25890 * config/m68k/t-rtems: Add m5329 multilib.
25891
25892 2009-03-24 Dodji Seketeli <dodji@redhat.com>
25893 Jakub Jelinek <jakub@redhat.com>
25894
25895 PR debug/39524
25896 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
25897 nodes.
25898
25899 2009-03-23 Jakub Jelinek <jakub@redhat.com>
25900
25901 PR c/39495
25902 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
25903 instead of c_parser_expression_conv, if original_code isn't one of the
25904 4 allowed comparison codes, fail.
25905
25906 2009-03-23 Richard Guenther <rguenther@suse.de>
25907
25908 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
25909 * tree.h (struct tree_type): Likewise.
25910 * reload.h (struct insn_chain): Likewise.
25911 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
25912 * function.h (struct function): Likewise.
25913 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
25914
25915 2009-03-23 Jakub Jelinek <jakub@redhat.com>
25916
25917 PR tree-optimization/39516
25918 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
25919
25920 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
25921
25922 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
25923 should be set true if BITS_PER_WORD of target is bigger than 32
25924
25925 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
25926
25927 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
25928 Translate -B-options to -rpath-link. Correct existing
25929 rpath-link and conditionalize on !nostdlib.
25930
25931 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25932
25933 * doc/extend.texi (Function Attributes, Variable Attributes):
25934 Fix typos.
25935 * doc/invoke.texi (Debugging Options, Optimize Options)
25936 (i386 and x86-64 Options, MCore Options): Likewise.
25937
25938 2009-03-20 Jakub Jelinek <jakub@redhat.com>
25939
25940 PR debug/37890
25941 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
25942 it for block local namespace aliases.
25943 (gen_decl_die): Pass context_die to gen_namespace_die.
25944
25945 2009-03-19 Jakub Jelinek <jakub@redhat.com>
25946
25947 PR c/39495
25948 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
25949 minimum or maximum value.
25950
25951 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
25952
25953 * reginfo.c (globalize_reg): Recompute derived reg sets.
25954
25955 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
25956
25957 PR target/39063
25958 * libgcc2.c (mprotect): Do not use signed arguments for
25959 VirtualProtect, use DWORD arguments. Also fix the 'may
25960 be used uninitialized' warning for the np variable.
25961
25962 2009-03-19 Jakub Jelinek <jakub@redhat.com>
25963
25964 PR target/39496
25965 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
25966 functions using regparm calling conventions when not optimizing.
25967 (ix86_function_sseregparm): Similarly for sseregparm calling
25968 conventions.
25969
25970 2009-03-19 Li Feng <nemokingdom@gmail.com>
25971
25972 PR middle-end/39500
25973 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
25974 dependence if the first conflict is after niter iterations.
25975
25976 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
25977
25978 PR middle-end/38609
25979 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
25980 functions with dynamic stack-pointer adjustments.
25981
25982 2009-03-19 Ben Elliston <bje@au.ibm.com>
25983
25984 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
25985 option; change to -msdata=data.
25986
25987 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25988
25989 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
25990 and -fopenmp.
25991
25992 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
25993
25994 PR target/35180
25995 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
25996
25997 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
25998
25999 * doc/invoke.texi (Code Gen Options): Expand discussion of
26000 -fno-common.
26001
26002 2009-03-18 Jakub Jelinek <jakub@redhat.com>
26003
26004 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
26005 * matrix-reorg.c (struct matrix_info): Likewise.
26006 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
26007 * rtl.h (struct mem_attrs): Likewise.
26008 * df.h (struct df): Likewise.
26009 * tree-data-ref.h (struct data_dependence_relation): Likewise.
26010 * ira-int.h (struct ira_allocno): Likewise.
26011 * df-scan.c (struct df_collection_rec): Likewise.
26012 * ira.c (struct equivalence): Likewise.
26013 * function.c (struct temp_slot): Likewise.
26014 * cfgloop.h (struct loop): Likewise.
26015
26016 PR debug/39485
26017 * function.c (use_register_for_decl): When not optimizing, disregard
26018 register keyword for variables with types containing methods.
26019
26020 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
26021
26022 PR middle-end/39447
26023 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
26024 (is_simple_operand): Call contains_component_ref_p before calling data
26025 reference analysis that would fail on COMPONENT_REFs.
26026
26027 * tree-vrp.c (search_for_addr_array): Fix formatting.
26028
26029 2009-03-18 Richard Guenther <rguenther@suse.de>
26030
26031 * tree-vect-transform.c (vect_loop_versioning): Fold the
26032 generated comparisons.
26033 * tree-vectorizer.c (set_prologue_iterations): Likewise.
26034 (slpeel_tree_peel_loop_to_edge): Likewise.
26035
26036 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26037
26038 PR middle-end/37805
26039 * opts.c (print_specific_help): In addition to `undocumented',
26040 accept `separate' and `joined' flags if passed alone. Describe
26041 output by the first matched one of those.
26042 (common_handle_option): Skip over empty strings.
26043 * gcc.c (display_help): Fix help string for `--help='.
26044 * doc/invoke.texi (Option Summary, Overall Options): With
26045 `--help=', classes and qualifiers can both be repeated, but
26046 only the latter can be negated. One should not pass only
26047 negated qualifiers. Fix markup and examples.
26048
26049 Revert
26050 2008-10-14 Jakub Jelinek <jakub@redhat.com>
26051 PR middle-end/37805
26052 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
26053 and -fhelp=separate.
26054
26055 2009-03-17 Jing Yu <jingyu@google.com>
26056
26057 PR middle-end/39378
26058 * function.h (struct rtl_data): Move is_thunk from here...
26059 (struct function): ...to here.
26060 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
26061 * varasm.c (assemble_start_function): Change is_thunk from crtl to
26062 cfun.
26063 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
26064 cfun.
26065 (alpha_does_function_need_gp, alpha_start_function): Likewise.
26066 (alpha_output_function_end_prologue): Likewise.
26067 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
26068 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
26069 (rs6000_output_function_epilogue): Likewise.
26070 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
26071
26072 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
26073
26074 PR target/39482
26075 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
26076 from different units in a single alternative.
26077 (*truncdfsf_i387): Ditto.
26078 (*truncxfsf2_mixed): Ditto.
26079 (*truncxfdf2_mixed): Ditto.
26080
26081 2009-03-17 Jakub Jelinek <jakub@redhat.com>
26082
26083 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
26084 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
26085
26086 PR debug/39474
26087 * tree-ssa-live.c (remove_unused_locals): Don't remove local
26088 unused non-artificial variables when not optimizing.
26089
26090 PR debug/39471
26091 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
26092 DW_TAG_imported_module even if decl is IMPORTED_DECL with
26093 NAMESPACE_DECL in its DECL_INITIAL.
26094
26095 PR middle-end/39443
26096 * optabs.c (set_user_assembler_libfunc): New function.
26097 * expr.h (set_user_assembler_libfunc): New prototype.
26098 * c-common.c: Include libfuncs.h.
26099 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
26100 for memcmp, memset, memcpy, memmove and abort.
26101 * Makefile.in (c-common.o): Depend on libfuncs.h.
26102
26103 PR debug/39412
26104 * dwarf2out.c (gen_inlined_enumeration_type_die,
26105 gen_inlined_structure_type_die, gen_inlined_union_type_die,
26106 gen_tagged_type_instantiation_die): Removed.
26107 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
26108 do nothing.
26109
26110 2009-03-17 Janis Johnson <janis187@us.ibm.com>
26111
26112 PR testsuite/38526
26113 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
26114 its use.
26115 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
26116 (check-parallel-%): Ditto.
26117 (check-consistency): Ditto.
26118
26119 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
26120
26121 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
26122 local variable rhs by NULL_TREE.
26123
26124 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
26125
26126 PR target/39477
26127 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
26128
26129 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
26130
26131 PR target/39476
26132 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
26133
26134 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
26135
26136 PR target/39473
26137 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
26138 for ms->sysv ABI calls only in 64bit mode.
26139
26140 * config/i386/i386.md (untyped_call): Support 32bit.
26141
26142 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
26143
26144 * doc/extend.texi: Replace x86_65 with x86_64.
26145
26146 2009-03-16 Jakub Jelinek <jakub@redhat.com>
26147
26148 PR tree-optimization/39455
26149 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
26150 mismatches for POINTER_TYPE_P (type).
26151 (number_of_iterations_le): Likewise.
26152
26153 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
26154
26155 * config/picochip/picochip.c: Removed profiling support.
26156 * config/picochip/picochip.md: Removed profiling instruction.
26157 * config/picochip/picochip.h: Removed profiling builtin.
26158
26159 2009-03-16 Joseph Myers <joseph@codesourcery.com>
26160
26161 * doc/install.texi (--with-host-libstdcxx): Document.
26162
26163 2009-03-14 Anatoly Sokolov <aesok@post.ru>
26164
26165 PR target/34299
26166 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
26167 generate a warning if the function name does not begin with
26168 "__vector" and the function has either the 'signal' or 'interrupt'
26169 attribute, from here to ...
26170 (avr_declare_function_name): ...here. New function.
26171 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
26172 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
26173
26174 2009-03-14 Jakub Jelinek <jakub@redhat.com>
26175
26176 PR bootstrap/39454
26177 * cse.c (fold_rtx): Don't modify original const_arg1 when
26178 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
26179 separate variable instead.
26180 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
26181 from out of range shift counts.
26182 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
26183
26184 2009-03-13 Catherine Moore <clm@codesourcery.com>
26185
26186 * config/i386/x-mingw32 (host-mingw32.o): Replace
26187 diagnostic.h with $(DIAGNOSTIC_H).
26188
26189 2009-03-12 Jakub Jelinek <jakub@redhat.com>
26190
26191 PR target/39431
26192 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
26193 predicate.
26194 * config/i386/sync.md (sync_compare_and_swap<mode>,
26195 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
26196 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
26197 into a register.
26198 (sync_double_compare_and_swapdi_pic,
26199 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
26200 cmpxchg8b_pic_memory_operand instead of just memory_operand.
26201
26202 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
26203
26204 PR target/39445
26205 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
26206
26207 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
26208
26209 PR target/39327
26210 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
26211 (avx_addsubv4df3): Likewise.
26212 (*avx_addsubv4sf3): Likewise.
26213 (sse3_addsubv4sf3): Likewise.
26214
26215 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
26216
26217 PR target/38824
26218 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
26219
26220 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
26221
26222 PR debug/39432
26223 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
26224 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
26225 registers for allocnos created from user-defined variables.
26226
26227 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26228
26229 PR target/39181
26230 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
26231 of non-integer mode as well.
26232
26233 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
26234
26235 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
26236 for functions for which the parameter types are unknown.
26237
26238 2009-03-11 Jakub Jelinek <jakub@redhat.com>
26239
26240 PR target/39137
26241 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
26242 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
26243 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
26244 * config/i386/i386.c (ix86_local_alignment): For
26245 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
26246 long long variables on the stack to avoid dynamic realignment.
26247 Allow the first argument to be a decl rather than type.
26248 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
26249
26250 2009-03-11 Nick Clifton <nickc@redhat.com>
26251
26252 PR target/5362
26253 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
26254 options.
26255 Add description to mno-lsim option.
26256 * config/mcore/mcore.h: Remove comment about deprecated m4align
26257 option.
26258 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
26259 * doc/invoke.texi: Add description of mno-lsim and
26260 mstack-increment options.
26261
26262 * config/fr30/fr30.opt: Document the -mno-lsim option.
26263 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
26264 and -mno-lsim options.
26265
26266 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26267
26268 * fold-const.c (fold_comparison): Only call fold_inf_compare
26269 if the mode supports infinities.
26270
26271 2009-03-11 Jason Merrill <jason@redhat.com>
26272
26273 PR debug/39086
26274 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
26275 end already did. Notice GIMPLE_CALL modifications of the result.
26276 Don't copy debug information from an ignored decl or a decl from
26277 another function.
26278
26279 2009-03-10 Richard Guenther <rguenther@suse.de>
26280 Nathan Froyd <froydnj@codesourcery.com>
26281
26282 PR middle-end/37850
26283 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
26284 (__divMODE3): Likewise.
26285
26286 2009-03-09 Jakub Jelinek <jakub@redhat.com>
26287
26288 PR tree-optimization/39394
26289 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
26290 DECL_SIZE_UNIT of variable length FIELD_DECLs.
26291
26292 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26293
26294 * recog.c (verfiy_changes): Disallow renaming of hard regs in
26295 inline asms for register asm ("") declarations.
26296
26297 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
26298
26299 * fold-const.c (fold_unary): Fix comment.
26300
26301 2009-03-07 Jan Hubicka <jh@suse.cz>
26302
26303 PR target/39361
26304 * tree-inline.c (setup_one_parameter): Do replacement of const
26305 argument by constant in SSA form.
26306
26307 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26308
26309 PR middle-end/38028
26310 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
26311 determine alignment passed to assign_stack_local.
26312 (assign_parms_unsplit_complex): Likewise.
26313 * except.c (sjlj_build_landing_pads): Likewise.
26314
26315 2009-03-06 Jakub Jelinek <jakub@redhat.com>
26316
26317 PR middle-end/39360
26318 * tree-flow.h (add_referenced_var): Return bool instead of void.
26319 * tree-dfa.c (add_referenced_var): Return result of
26320 referenced_var_check_and_insert call.
26321 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
26322 of referenced_var_check_and_insert.
26323
26324 PR debug/39372
26325 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
26326 (gen_variable_die): Emit DW_AT_location on abstract static variable's
26327 DIE, don't emit it if abstract origin already has it.
26328 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
26329 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
26330
26331 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26332
26333 * genpreds.c (needs_variable): Fix parentheses at variable name
26334 detection.
26335 (write_tm_constrs_h): Indent generated code.
26336
26337 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26338
26339 * doc/extend.texi (Function Attributes): Add documentation
26340 for isr attributes.
26341
26342 2009-03-06 Jakub Jelinek <jakub@redhat.com>
26343
26344 PR debug/39387
26345 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
26346 take locus from its DECL_SOURCE_LOCATION instead of input_location.
26347
26348 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
26349
26350 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
26351 the loop as bad.
26352
26353 2009-03-05 Jakub Jelinek <jakub@redhat.com>
26354
26355 PR debug/39379
26356 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
26357 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
26358
26359 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
26360
26361 * config/i386/i386.md (R8_REG, R9_REG): New constants.
26362 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
26363 constants instead of magic numbers.
26364 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
26365 (QI_REG_P): Ditto.
26366 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
26367 (x86_64_ms_abi_int_parameter_registers): Ditto.
26368 (x86_64_int_return_registers): Ditto.
26369 (ix86_maybe_switch_abi): Ditto.
26370 (ix86_expand_call): Ditto for clobbered_registers array.
26371 (ix86_hard_regno_mode_ok): Ditto.
26372 (x86_extended_QIreg_mentioned_p): Ditto.
26373
26374 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
26375
26376 PR tree-optimization/39349
26377 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
26378
26379 * combine.c (gen_lowpart_for_combine): Use omode when generating
26380 clobber.
26381
26382 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
26383
26384 PR rtl-optimization/39235
26385 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
26386
26387 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
26388
26389 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
26390
26391 2009-03-04 Richard Guenther <rguenther@suse.de>
26392
26393 PR tree-optimization/39362
26394 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
26395 that occur in abnormal PHIs should be varying.
26396
26397 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
26398
26399 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
26400 Extend comments.
26401 (simple_iv): Take loop as an argument instead of statement.
26402 * tree-scalar-evolution.h (simple_iv): Declaration changed.
26403 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
26404 to simple_iv.
26405 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
26406 Ditto.
26407 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
26408 * matrix-reorg.c (analyze_transpose): Ditto.
26409 * tree-data-ref.c (dr_analyze_innermost): Ditto.
26410 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
26411 * tree-predcom.c (ref_at_iteration): Ditto.
26412 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
26413
26414 2009-03-04 Richard Guenther <rguenther@suse.de>
26415
26416 PR tree-optimization/39358
26417 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
26418 escaped_id and callused_id.
26419 (solve_graph): Likewise.
26420
26421 2009-03-04 Richard Guenther <rguenther@suse.de>
26422
26423 PR tree-optimization/39339
26424 * tree-sra.c (try_instantiate_multiple_fields): Make it
26425 no longer ICE on the above.
26426
26427 2009-03-03 Joseph Myers <joseph@codesourcery.com>
26428
26429 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
26430 that fits within Pmode.
26431
26432 2009-03-03 Steve Ellcey <sje@cup.hp.com>
26433
26434 PR middle-end/10109
26435 * tm.texi (LIBCALL_VALUE): Update description.
26436
26437 2009-03-03 Steve Ellcey <sje@cup.hp.com>
26438
26439 PR middle-end/34443
26440 * doc/extend.texi (section): Update description.
26441
26442 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
26443
26444 PR middle-end/39345
26445 * tree-inline.c (remapped_type): New.
26446 (can_be_nonlocal): Call remapped_type instead of remap_type.
26447
26448 2009-03-03 Jakub Jelinek <jakub@redhat.com>
26449
26450 PR fortran/39354
26451 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
26452 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
26453
26454 2009-03-03 Richard Guenther <rguenther@suse.de>
26455
26456 PR middle-end/39272
26457 * tree.c (tree_nonartificial_location): New function.
26458 * tree.h (tree_nonartificial_location): Declare.
26459 * builtins.c (expand_builtin_memory_chk): Provide location
26460 of the call location for artificial function pieces.
26461 (maybe_emit_chk_warning): Likewise.
26462 (maybe_emit_sprintf_chk_warning): Likewise.
26463 (maybe_emit_free_warning): Likewise.
26464 * expr.c (expand_expr_real_1): Likewise.
26465
26466 2009-03-03 Jakub Jelinek <jakub@redhat.com>
26467
26468 PR tree-optimization/39343
26469 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
26470 COMPONENT_REF t has ARRAY_TYPE.
26471
26472 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
26473
26474 PR middle-end/39335
26475 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
26476 when the type precision of the induction variable should be
26477 larger than the type precision of nit.
26478 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
26479 * graphite.c (graphite_loop_normal_form): Same.
26480 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
26481
26482 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
26483
26484 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
26485 (*call_1_rex64_ms_sysv): Use named constants instead of magic
26486 numbers to describe clobbered registers.
26487 (*call_value_0_rex64_ms_sysv): Ditto.
26488 * config/i386/mmx.md (mmx_emms): Ditto.
26489 (mmx_femms): Ditto.
26490
26491 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
26492
26493 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
26494 of ABI_64.
26495
26496 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26497
26498 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
26499 (spu_section_type_flags): New function.
26500
26501 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
26502
26503 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
26504 reg_class_contents of FLOAT_REGS into a temporary.
26505
26506 2009-03-02 Richard Guenther <rguenther@suse.de>
26507 Ira Rosen <irar@il.ibm.com>
26508
26509 PR tree-optimization/39318
26510 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
26511 information to the vectorized statement.
26512
26513 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
26514
26515 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
26516 variable. Use defined names instead of magic constants for REX SSE
26517 registers.
26518
26519 2009-03-01 Richard Guenther <rguenther@suse.de>
26520
26521 PR tree-optimization/39331
26522 * omp-low.c (lower_send_shared_vars): Do not receive new
26523 values for the reference of DECL_BY_REFERENCE parms or results.
26524
26525 2009-03-01 Jan Hubicka <jh@suse.cz>
26526
26527 PR debug/39267
26528 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
26529 BLOCK_NONLOCALIZED_VAR): New macros.
26530 (tree_block): Add nonlocalized_vars.
26531 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
26532 gen_decl_die): Add origin argument. Allow generation of die with
26533 origin at hand only.
26534 (gen_member_die, gen_type_die_with_usage, force_decl_die,
26535 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
26536 of gen_*.
26537 (gen_block_die): Fix checking for unused blocks.
26538 (process_scope_var): Break out from .... ; work with origins only.
26539 (decls_for_scope) ... here; process nonlocalized list.
26540 (dwarf2out_ignore_block): Look for nonlocalized vars.
26541 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
26542 vars.
26543 (dump_scope_block): Dump them.
26544 * tree-inline.c (remap_decls): Handle nonlocalized vars.
26545 (remap_block): Likewise.
26546 (can_be_nonlocal): New predicate.
26547 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
26548
26549 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26550
26551 * configure: Regenerate.
26552
26553 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26554
26555 * optc-gen.awk: No need to duplicate option flags twice.
26556 Reuse help texts for duplicate options which do not have any.
26557
26558 * gcc.c (display_help): Document --version.
26559
26560 * gcc.c (main): If print_help_list and verbose_flag, ensure
26561 driver output comes before subprocess output.
26562
26563 * optc-gen.awk: Assign all remaining fields to help string,
26564 space-separated, for multi-line help in *.opt.
26565
26566 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
26567 -Wno-pedantic-ms-format is for MinGW targets only.
26568
26569 * doc/options.texi (Option file format): Fix bad indentation,
26570 restoring dropped sentence.
26571
26572 2009-02-28 Jan Hubicka <jh@suse.cz>
26573
26574 * tree-inline.c (tree_function_versioning): Output debug info.
26575
26576 2009-02-28 Jan Hubicka <jh@suse.cz>
26577
26578 PR debug/39267
26579 * tree-inline.c (setup_one_parameter): Do not copy propagate
26580 arguments when not optimizing.
26581
26582 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
26583
26584 PR target/39327
26585 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
26586 (avx_addsubv4df3): Likewise.
26587 (*avx_addsubv4sf3): Likewise.
26588 (sse3_addsubv4sf3): Likewise.
26589 (*avx_addsubv2df3): Likewise.
26590 (sse3_addsubv2df3): Likewise.
26591 (avx_unpckhps256): Correct item selectors.
26592 (avx_unpcklps256): Likewise.
26593 (avx_unpckhpd256): Likewise.
26594 (avx_unpcklpd256): Likewise.
26595
26596 2009-02-28 Jan Hubicka <jh@suse.cz>
26597
26598 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
26599 static vars.
26600 (copy_arguments_for_versioning): If var is declared don't declare it.
26601 (tree_function_versioning): First setup substitutions and then copy
26602 args.
26603
26604 2009-02-27 Jan Hubicka <jh@suse.cz>
26605
26606 PR debug/39267
26607 * cgraph.h (varpool_output_debug_info): Remove.
26608 * cgraphunit.c (varpool_output_debug_info): Remove.
26609 * dwarf2out.c (deferred_locations_struct): New struct
26610 (deferred_locations): New type.
26611 (deferred_locations_list): New static var.
26612 (deffer_location): New function.
26613 (gen_variable_die): Use it.
26614 (decls_for_scope): Output info on local static vars.
26615 (dwarf2out_finish): Process deferred locations.
26616 * varpool.c (varpool_output_debug_info): Remove.
26617
26618 2009-02-27 Jan Hubicka <jh@suse.cz>
26619
26620 PR debug/39267
26621 * tree.h (TREE_PROTECTED): Fix comment.
26622 (BLOCK_HANDLER_BLOCK): Remove.
26623 (struct tree_block): Remove handler_block add body_block.
26624 (inlined_function_outer_scope_p): New.
26625 (is_body_block): Remove.
26626 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
26627 * dwarf2out.c (is_inlined_entry_point): Remove.
26628 (add_high_low_attributes): Use inlined_function_outer_scope_p.
26629 (gen_block_die): Use is_inlined_entry_point check. Remove body block
26630 code.
26631 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
26632 * gimplify.c (gimplify_expr): Gimplify body blocks.
26633 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
26634 block with multiple subblocks.
26635 (dump_scope_block): Prettier output; dump more flags and info.
26636 (dump_scope_blocks): New.
26637 (remove_unused_locals): Use dump_scope_blocks.
26638 * tree-flow.h (dump_scope_blocks): Declare.
26639 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
26640 * stmt.c (is_body_block): Remove.
26641 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
26642 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
26643
26644 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
26645
26646 PR middle-end/39308
26647 * graphite.c (graphite_loop_normal_form): Do not call
26648 number_of_iterations_exit from a gcc_assert.
26649
26650 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26651
26652 * config/s390/s390.c (s390_swap_cmp): Look for conditional
26653 jumps if COND is NULL.
26654 (find_cond_jump): New function.
26655 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
26656 * config/s390/s390.md: Remove z10_cobra attribute value.
26657
26658 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
26659
26660 * config/alpha/alpha.h (alpha_expand_mov): Return false if
26661 force_const_mem returns NULL_RTX.
26662
26663 2009-02-26 Jan Hubicka <jh@suse.cz>
26664
26665 PR debug/39267
26666 * cgraph.h (varpool_output_debug_info): Remove.
26667 * cgraphunit.c (varpool_output_debug_info): Remove.
26668 * dwarf2out.c (deferred_locations_struct): New struct
26669 (deferred_locations): New type.
26670 (deferred_locations_list): New static var.
26671 (deffer_location): New function.
26672 (gen_variable_die): Use it.
26673 (decls_for_scope): Output info on local static vars.
26674 (dwarf2out_finish): Process deferred locations.
26675 * varpool.c (varpool_output_debug_info): Remove.
26676
26677 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
26678
26679 PR rtl-optimization/39241
26680 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
26681 to subreg_offset_representable_p.
26682
26683 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
26684
26685 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
26686 execute function prototype. Get f and nregs from max_reg_num
26687 and get_insns. Remove the first backward pass as it's dead,
26688 guard the forward pass by flag_expensive_optimizations.
26689 (rest_of_handle_regmove): Delete.
26690 (pass_regmove): Replace it with regmove_optimize.
26691
26692 2009-02-25 Martin Jambor <mjambor@suse.cz>
26693
26694 PR tree-optimization/39259
26695 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
26696 calls_alloca function flags.
26697 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
26698 calls are detected.
26699
26700 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
26701
26702 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
26703 flags_set_1_rtx, flags_set_1_set): Delete.
26704 (regmove_optimize): Do not call mark_flags_life_zones.
26705
26706 2009-02-24 Julian Brown <julian@codesourcery.com>
26707
26708 PR target/35965
26709 * config/arm/arm.c (require_pic_register): Only set
26710 cfun->machine->pic_reg once per function.
26711
26712 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
26713
26714 * doc/invoke.texi (Link Options): Document an easier way to pass
26715 options that take arguments to the GNU linker using -Xlinker and -Wl.
26716
26717 2009-02-24 Steve Ellcey <sje@cup.hp.com>
26718
26719 PR target/33785
26720 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
26721
26722 2009-02-24 Richard Guenther <rguenther@suse.de>
26723
26724 PR debug/39285
26725 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
26726
26727 2009-02-24 Richard Guenther <rguenther@suse.de>
26728 Zdenek Dvorak <ook@ucw.cz>
26729
26730 PR tree-optimization/39233
26731 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
26732 from converting them to a generic type.
26733
26734 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
26735
26736 PR tree-optimization/39260
26737 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
26738 contains a condition with a real type.
26739 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
26740
26741 2009-02-23 Jason Merrill <jason@redhat.com>
26742
26743 PR c++/38880
26744 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
26745 narrowing_initializer_constant_valid_p.
26746 (narrowing_initializer_constant_valid_p): Don't return
26747 null_pointer_node for adding a pointer to itself.
26748
26749 2009-02-23 Jan Hubicka <jh@suse.cz>
26750
26751 PR c/12245
26752 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
26753 resizing.
26754
26755 2009-02-23 Jan Hubicka <jh@suse.cz>
26756
26757 PR tree-optimization/37709
26758 * tree.c (block_ultimate_origin): Move here from dwarf2out.
26759 * tree.h (block_ultimate_origin): Declare.
26760 * dwarf2out.c (block_ultimate_origin): Move to tree.c
26761 * tree-ssa-live.c (remove_unused_scope_block_p):
26762 Eliminate blocks containig no instructions nor live variables nor
26763 nested blocks.
26764 (dump_scope_block): New function.
26765 (remove_unused_locals): Enable removal of dead blocks by default;
26766 enable dumping at TDF_DETAILS.
26767
26768 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
26769
26770 * config/i386/i386.c (classify_argument): Don't allow COImode
26771 and OImode.
26772 (function_arg_advance_32): Don't allow OImode.
26773 (function_arg_32): Likewise.
26774 (function_value_32): Likewise.
26775 (return_in_memory_32): Likewise.
26776 (function_arg_64): Remove OImode comment.
26777
26778 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
26779
26780 PR target/39261
26781 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
26782 ix86_expand_vector_set for V4DImode in 64bit mode only.
26783 (ix86_expand_vector_init_one_var): Likewise.
26784
26785 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
26786
26787 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
26788
26789 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
26790
26791 PR bootstrap/39257
26792 * loop-iv.c: Revert last change.
26793 * emit-rtl.c: Likewise.
26794
26795 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
26796
26797 PR target/39256
26798 * config/i386/i386.c (type_natural_mode): Remove an extra
26799 space in the warning message.
26800 (function_value_32): Handle 32-byte vector modes.
26801 (return_in_memory_32): Likewise.
26802
26803 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
26804
26805 * loop-iv.c (truncate_value): New function.
26806 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
26807 of lowpart_subreg.
26808 (lowpart_subreg): Move to...
26809 * emit-rtl.c: ...here.
26810
26811 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
26812
26813 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
26814 accidental and undocumented change at revision 140860.
26815
26816 2009-02-21 Joseph Myers <joseph@codesourcery.com>
26817
26818 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
26819 take gimple_seq * arguments.
26820 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
26821 types_compatible_p langhook.
26822
26823 2009-02-20 Mark Mitchell <mark@codesourcery.com>
26824 Joseph Myers <joseph@codesourcery.com>
26825
26826 * config/arm/arm.c (arm_builtin_va_list): New function.
26827 (arm_expand_builtin_va_start): Likewise.
26828 (arm_gimplify_va_arg_expr): Likewise.
26829 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
26830 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
26831 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
26832 (va_list_type): New variable.
26833 (arm_mangle_type): Mangle va_list_type appropriately.
26834
26835 2009-02-20 Jakub Jelinek <jakub@redhat.com>
26836
26837 PR middle-end/39157
26838 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
26839 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
26840 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
26841 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
26842 parameter to 1000 for -O1 by default.
26843 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
26844 parameter.
26845 * loop-invariant.c: Include params.h.
26846 (move_loop_invariants): Don't call move_single_loop_invariants on
26847 very large loops.
26848
26849 2009-02-20 Jaka Mocnik <jaka@xlab.si>
26850
26851 * calls.c (emit_library_call_value_1): Use slot_offset instead of
26852 offset when calculating bounds for indexing stack_usage_map. Fixes
26853 a buffer overflow with certain target setups.
26854
26855 2009-02-20 Jakub Jelinek <jakub@redhat.com>
26856
26857 PR target/39240
26858 * calls.c (expand_call): Clear try_tail_call if caller and callee
26859 disagree in promotion of function return value.
26860
26861 2009-02-19 Jakub Jelinek <jakub@redhat.com>
26862
26863 PR target/39175
26864 * c-common.c (c_determine_visibility): If visibility changed and
26865 DECL_RTL has been already set, call make_decl_rtl to update symbol
26866 flags.
26867
26868 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
26869
26870 PR c++/39188
26871 * varasm.c (assemble_variable): Don't check DECL_NAME when
26872 globalizing a variable.
26873
26874 2009-02-19 Joseph Myers <joseph@codesourcery.com>
26875
26876 PR c/38483
26877 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
26878 expression before any __builtin_trap call.
26879 * c-typeck.c (build_function_call): Convert and check function
26880 arguments before generating a call to a trap. Evaluate the
26881 function arguments before the trap.
26882
26883 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
26884
26885 PR target/39228
26886 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
26887 (UNSPEC_FXAM_MEM): New unspec.
26888 (fxam<mode>2_i387_with_temp): New insn and split pattern.
26889 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
26890 memory using fxam<mode>2_i387_with_temp to remove excess precision.
26891
26892 2009-02-19 Richard Guenther <rguenther@suse.de>
26893
26894 PR tree-optimization/39207
26895 PR tree-optimization/39074
26896 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
26897 storedanything_tree): New.
26898 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
26899 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
26900 (build_succ_graph): Add edges from STOREDANYTHING to all
26901 non-direct nodes.
26902 (init_base_vars): Initialize STOREDANYTHING.
26903 (compute_points_to_sets): Free substitution info after
26904 building the succ graph.
26905 (ipa_pta_execute): Likewise.
26906
26907 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
26908 field.
26909 (do_ds_constraint): Do not add to special var or non-pointer
26910 field solutions.
26911 (type_could_have_pointers): Split out from ...
26912 (could_have_pointers): ... here. For arrays use the element type.
26913 (create_variable_info_for): Initialize may_have_pointers.
26914 (new_var_info): Likewise.
26915 (handle_lhs_call): Make the HEAP variable unknown-sized.
26916 (intra_create_variable_infos): Use a type with pointers for
26917 PARM_NOALIAS, make it unknown-sized.
26918
26919 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
26920
26921 PR target/39224
26922 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
26923
26924 2009-02-18 Jason Merrill <jason@redhat.com>
26925
26926 PR target/39179
26927 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
26928 value if DECL_EXTERNAL.
26929 * tree-sra.c (sra_walk_gimple_assign): Likewise.
26930 * target.h (gcc_target::binds_local_p): Clarify "module".
26931 * tree.h (TREE_PUBLIC): Clarify "module".
26932
26933 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
26934
26935 PR target/38891
26936 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
26937 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
26938
26939 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
26940
26941 PR target/39082
26942 * c.opt (Wabi): Support C and ObjC.
26943 (Wpsabi): New.
26944
26945 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
26946
26947 * config/i386/i386.c (classify_argument): Warn once about the ABI
26948 change when passing union with long double.
26949
26950 * doc/invoke.texi: Update -Wabi for warning psABI changes.
26951
26952 2009-02-18 Joseph Myers <joseph@codesourcery.com>
26953
26954 PR c/35447
26955 * c-parser.c (c_parser_compound_statement): Always enter and leave
26956 a scope.
26957
26958 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26959
26960 PR target/34587
26961 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
26962
26963 2009-02-18 Jakub Jelinek <jakub@redhat.com>
26964
26965 PR tree-optimization/36922
26966 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
26967 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
26968 Likewise.
26969
26970 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
26971
26972 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
26973 to 0 for EABI64.
26974
26975 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
26976
26977 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
26978
26979 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
26980
26981 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
26982 tree sharing.
26983
26984 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
26985 Richard Sandiford <rdsandiford@googlemail.com>
26986
26987 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
26988 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
26989 (loongson_biadd): ...this.
26990
26991 2009-02-17 Richard Guenther <rguenther@suse.de>
26992
26993 PR tree-optimization/39202
26994 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
26995 a var make sure to follow existing collapses.
26996
26997 2009-02-17 Richard Guenther <rguenther@suse.de>
26998
26999 PR middle-end/39214
27000 * langhooks.c (lhd_print_error_function): Check for NULL block.
27001
27002 2009-02-17 Richard Guenther <rguenther@suse.de>
27003
27004 PR tree-optimization/39204
27005 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
27006 of the PHI arg.
27007
27008 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
27009
27010 * config/soft-fp/double.h: Update from glibc CVS.
27011
27012 2009-02-17 Richard Guenther <rguenther@suse.de>
27013
27014 PR tree-optimization/39207
27015 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
27016 strict-aliasing warnings for pointers pointing to NULL.
27017
27018 2009-02-16 Joseph Myers <joseph@codesourcery.com>
27019
27020 PR c/35446
27021 * c-parser.c (c_parser_braced_init): Call pop_init_level when
27022 skipping until next close brace.
27023
27024 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
27025
27026 PR target/37049
27027 * config/i386/i386.c (ix86_expand_push): Set memory alignment
27028 to function argument boundary.
27029
27030 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
27031
27032 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
27033 in the lea_add. Reload eventually constraints it properly.
27034 * config/picochip/constraints.md: Remove the target constraint
27035 "b", since it is not needed anymore.
27036
27037 2009-02-16 Jakub Jelinek <jakub@redhat.com>
27038
27039 * gthr-dce.h: Uglify function parameter and local variable names.
27040 * gthr-gnat.h: Likewise.
27041 * gthr-mipssde.h: Likewise.
27042 * gthr-nks.h: Likewise.
27043 * gthr-posix95.h: Likewise.
27044 * gthr-posix.h: Likewise.
27045 * gthr-rtems.h: Likewise.
27046 * gthr-single.h: Likewise.
27047 * gthr-solaris.h: Likewise.
27048 * gthr-tpf.h: Likewise.
27049 * gthr-vxworks.h: Likewise.
27050 * gthr-win32.h: Likewise.
27051
27052 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
27053
27054 PR target/39196
27055 * config/i386/i386.md: Restrict the new peephole2 to move
27056 between MMX/SSE registers.
27057
27058 2009-02-15 Richard Guenther <rguenther@suse.de>
27059
27060 Revert
27061 2009-02-13 Richard Guenther <rguenther@suse.de>
27062
27063 * configure.ac: Enable LFS.
27064 * configure: Re-generate.
27065 * config.in: Likewise.
27066
27067 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27068
27069 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
27070 spu_srqwbyte, spu_srqwbytebc): Define.
27071 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
27072 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
27073 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
27074 "shrqby_<mode>"): New insn-and-split patterns.
27075 * config/spu/spu.c (expand_builtin_args): Determine and return
27076 number of operands using spu_builtin_description data.
27077 (spu_expand_builtin_1): Use it.
27078
27079 2009-02-13 Steve Ellcey <sje@cup.hp.com>
27080
27081 PR target/38056
27082 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
27083 TARGET_CONST_GP.
27084
27085 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
27086
27087 PR target/39149
27088 * config/i386/i386.c (override_options): Correct warning
27089 messages for -malign-loops, -malign-jumps and -malign-functions.
27090
27091 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
27092
27093 PR target/39152
27094 * config/i386/i386.md: Restrict the new peephole2 to move
27095 between the general purpose registers.
27096
27097 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
27098
27099 PR target/39162
27100 * config/i386/i386.c (type_natural_mode): Add a new argument.
27101 Return the original mode and warn ABI change if vector size is 32byte.
27102 (function_arg_advance): Updated.
27103 (function_arg): Likewise.
27104 (ix86_function_value): Likewise.
27105 (ix86_return_in_memory): Likewise.
27106 (ix86_sol10_return_in_memory): Likewise.
27107 (ix86_gimplify_va_arg): Likewise.
27108 (function_arg_32): Don't warn ABX ABI change here.
27109 (function_arg_64): Likewise.
27110
27111 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
27112
27113 * loop-iv.c (implies_p): In the final case, test that operands 0
27114 of the two comparisons match.
27115
27116 * config/bfin/bfin.c (find_prev_insn_start): New function.
27117 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
27118 (find_next_insn_start): Move.
27119
27120 2009-02-13 Richard Guenther <rguenther@suse.de>
27121
27122 * configure.ac: Enable LFS.
27123 * configure: Re-generate.
27124 * config.in: Likewise.
27125
27126 2009-02-13 Joseph Myers <joseph@codesourcery.com>
27127
27128 PR c/35444
27129 * c-parser.c (c_parser_parms_list_declarator): Discard pending
27130 sizes on syntax error after some arguments have been parsed.
27131
27132 2009-02-12 Jakub Jelinek <jakub@redhat.com>
27133
27134 * doc/invoke.texi (-fira): Remove.
27135
27136 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
27137
27138 * caller-save.c: Replace regclass.c with reginfo.c in comments.
27139 * recog.c: Likewise.
27140 * rtl.h: Likewise.
27141
27142 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
27143
27144 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
27145 (umul_ppmm): Likewise.
27146 (count_leading_zeros): Likewise.
27147 (count_trailing_zeros): Likewise.
27148 (UMUL_TIME): Likewise.
27149
27150 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
27151
27152 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
27153 soft-fp/t-softfp to tmake_file.
27154
27155 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
27156 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
27157 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
27158 IA64_BUILTIN_INFQ]: New.
27159 (ia64_init_builtins): Initialize __builtin_infq,
27160 __builtin_fabsq and __builtin_copysignq if not HPUX.
27161 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
27162 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
27163
27164 * config/ia64/lib1funcs.asm (__divtf3): Define only if
27165 SHARED is defined.
27166 (__fixtfti): Likewise.
27167 (__fixunstfti): Likewise.
27168 (__floattitf): Likewise.
27169
27170 * config/ia64/libgcc-glibc.ver: New.
27171 * config/ia64/t-fprules-softfp: Likewise.
27172 * config/ia64/sfp-machine.h: Likewise.
27173
27174 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
27175 (LIBGCC2_TF_CEXT): Likewise.
27176 (TF_SIZE): Likewise.
27177 (TARGET_INIT_LIBFUNCS): Likewise.
27178
27179 * config/ia64/t-glibc (SHLINB_MAPFILES):
27180 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
27181
27182 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
27183
27184 * config/i386/i386.c (construct_container): Rewrite processing
27185 BLKmode with X86_64_SSE_CLASS.
27186
27187 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
27188
27189 PR target/39152
27190 * config/i386/i386.md: Replace simplify_replace_rtx with
27191 replace_rtx in the new peephole2.
27192
27193 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
27194
27195 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
27196 loop unrolling do not happen at -O2.
27197
27198 2009-02-12 Michael Matz <matz@suse.de>
27199
27200 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
27201
27202 2009-02-12 Jakub Jelinek <jakub@redhat.com>
27203
27204 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
27205 for -g3.
27206
27207 2009-02-12 Ben Elliston <bje@au.ibm.com>
27208
27209 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
27210 patterns when updating the back chain. Missed in the 2009-02-10
27211 change.
27212
27213 2009-02-11 Janis Johnson <janis187@us.ibm.com>
27214
27215 * doc/extend.texi (Decimal Floating Types): Update identifier of
27216 draft TR and list of missing support.
27217
27218 2009-02-11 Jakub Jelinek <jakub@redhat.com>
27219
27220 PR middle-end/39154
27221 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
27222 bit to variable length decl's flags, add it also to its
27223 pointer replacement variable.
27224
27225 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
27226 Jakub Jelinek <jakub@redhat.com>
27227
27228 PR target/39118
27229 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
27230 (memory_blockage): New expander.
27231 (*memory_blockage): New insn pattern.
27232 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
27233 instead of general blockage at the end of function prologue when
27234 frame pointer is used to access red zone area. Do not emit blockage
27235 when profiling, it is emitted in generic code.
27236 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
27237 function epilogue when frame pointer is used to access red zone area.
27238
27239 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
27240
27241 PR target/38824
27242 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
27243 by arithmetic with memory operands.
27244 * config/i386/predicates.md (commutative_operator): New.
27245
27246 2009-02-10 Janis Johnson <janis187@us.ibm.com>
27247
27248 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
27249 bulleted lists.
27250
27251 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
27252
27253 * alias.h (record_alias_subset): Declare.
27254 * alias.c (record_alias_subset): Make global.
27255
27256 2009-02-10 Nick Clifton <nickc@redhat.com>
27257
27258 * tree-parloops.c: Change license to GPLv3.
27259 * ipa-struct-reorg.c: Change license to GPLv3.
27260 * ipa-struct-reorg.h: Change license to GPLv3.
27261
27262 2009-02-10 Steve Ellcey <sje@cup.hp.com>
27263
27264 PR c/39084
27265 * c-decl.c (start_struct): Return NULL on error.
27266
27267 2009-02-10 Jakub Jelinek <jakub@redhat.com>
27268
27269 PR middle-end/39124
27270 * cfgloopmanip.c (remove_path): Call remove_bbs after
27271 cancel_loop_tree, not before it.
27272
27273 PR target/39139
27274 * function.h (struct function): Add has_local_explicit_reg_vars bit.
27275 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
27276 VAR_DECLs were seen.
27277 * tree-ssa-live.c (remove_unused_locals): Recompute
27278 cfun->has_local_explicit_reg_vars.
27279 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
27280 copies or clearings if cfun->has_local_explicit_reg_vars.
27281
27282 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
27283
27284 PR target/39118
27285 * config/i386/i386.c (expand_prologue): Emit blockage at the end
27286 of function prologue when frame pointer is used to access
27287 red zone area.
27288
27289 2009-02-10 Richard Guenther <rguenther@suse.de>
27290
27291 PR middle-end/39127
27292 * gimplify.c (gimple_regimplify_operands): Always look if
27293 we need to create a temporary.
27294
27295 2009-02-10 Richard Guenther <rguenther@suse.de>
27296
27297 PR tree-optimization/39132
27298 * tree-loop-distribution.c (todo): New global var.
27299 (generate_memset_zero): Trigger TODO_rebuild_alias.
27300 (tree_loop_distribution): Return todo.
27301
27302 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
27303
27304 PR target/39119
27305 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
27306 (x86_64_reg_class_name): Removed.
27307 (classify_argument): Return 0 if bytes > 32. Return 0 if the
27308 first one isn't X86_64_SSE_CLASS or any other ones aren't
27309 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
27310 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
27311 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
27312 and 3 X86_64_SSEUP_CLASS.
27313 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
27314 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
27315
27316 2009-02-10 Ben Elliston <bje@au.ibm.com>
27317
27318 * config/rs6000/rs6000.md (allocate_stack): Always use an update
27319 form instruction to update the stack back chain word, even if the
27320 user has disabled the generation of update instructions.
27321 (movdi_<mode>_update_stack): New.
27322 (movsi_update_stack): Likewise.
27323 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
27324 always use an update form instruction to update the stack back
27325 chain word.
27326
27327 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
27328
27329 PR middle-end/38953
27330 * graphite.c (if_region_set_false_region): After moving a region in
27331 the false branch of a condition, remove the empty dummy basic block.
27332 (gloog): Remove wrong fix for PR38953.
27333
27334 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27335
27336 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
27337 generation due to implicit sign extension.
27338
27339 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
27340
27341 PR middle-end/38981
27342 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
27343 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
27344
27345 2009-02-09 Richard Guenther <rguenther@suse.de>
27346
27347 PR middle-end/35202
27348 * convert.c (convert_to_real): Disable (float)fn((double)x)
27349 to fnf(x) conversion if errno differences may occur and
27350 -fmath-errno is set.
27351
27352 2009-02-07 Anatoly Sokolov <aesok@post.ru>
27353
27354 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
27355 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
27356 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
27357
27358 2009-02-06 Joseph Myers <joseph@codesourcery.com>
27359
27360 PR c/35434
27361 * c-common.c (handle_alias_attribute): Disallow attribute for
27362 anything not a FUNCTION_DECL or VAR_DECL.
27363
27364 2009-02-06 Janis Johnson <janis187@us.ibm.com>
27365
27366 PR c/39035
27367 * real.c (do_compare): Special-case compare of zero against
27368 decimal float value.
27369
27370 2009-02-06 Joseph Myers <joseph@codesourcery.com>
27371
27372 PR c/36432
27373 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
27374 as indicating flexible array members unless the field itself is
27375 being declarared as the incomplete array.
27376
27377 2009-02-06 Jan Hubicka <jh@suse.cz>
27378
27379 PR tree-optimization/38844
27380 * ipa-inline.c (try_inline): Stop inlining recursion when edge
27381 is already inlined.
27382
27383 2009-02-06 Richard Guenther <rguenther@suse.de>
27384
27385 PR middle-end/38977
27386 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
27387 fork because we may expand it as __gcov_fork.
27388
27389 2009-02-06 Nick Clifton <nickc@redhat.com>
27390
27391 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
27392
27393 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
27394
27395 PR tree-optimization/35659
27396 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
27397 vn_phi_eq): Shortcut if hashcode does not match.
27398 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
27399 NULL operands.
27400 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
27401 and avoid iterative_hash_expr.
27402 (FOR_EACH_VALUE_ID_IN_SET): New.
27403 (value_id_compare): Remove.
27404 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
27405 sort expressions by value id.
27406
27407 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
27408
27409 PR target/38991
27410 * config/sh/predicates.md (general_movsrc_operand): Don't check
27411 the subreg of system registers here.
27412
27413 2009-02-05 Jakub Jelinek <jakub@redhat.com>
27414
27415 PR c++/39106
27416 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
27417 on the copied decl.
27418
27419 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
27420
27421 PR rtl-optimization/39110
27422 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
27423 addresses, not aligned ones.
27424
27425 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
27426 Richard Guenther <rguenther@suse.de>
27427
27428 PR tree-optimization/39100
27429 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
27430 comment says and add edges.
27431
27432 2009-02-05 Joseph Myers <joseph@codesourcery.com>
27433
27434 PR c/35435
27435 * c-common.c (handle_tls_model_attribute): Ignore attribute for
27436 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
27437
27438 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
27439
27440 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
27441 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
27442 register_bb_in_sese, new_sese, free_sese): Moved.
27443 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
27444 outermost_loop_in_scop, build_scop_iteration_domain,
27445 expand_scalar_variables_ssa_name, get_vdef_before_scop,
27446 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
27447 Use loop_in_sese_p instead of loop_in_scop_p.
27448 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
27449 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
27450 (scopdet_basic_block_info): Fix bug in scop detection.
27451 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
27452 eq_loop_to_cloog_loop): Remove.
27453 (nb_loops_around_loop_in_scop, nb_loop
27454 ref_nb_loops): Moved here...
27455 * graphite.h (ref_nb_loops): ... from here.
27456 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
27457 (loop_domain_dim, loop_iteration_vector_dim): Remove.
27458 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
27459
27460 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
27461 Hans-Peter Nilsson <hp@axis.com>
27462
27463 PR rtl-optimization/37889
27464 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
27465 Move offset handling from PLUS to before the switch. Use new
27466 arguments when considering SYMBOL_REFs too.
27467 (rtx_addr_can_trap_p): Pass dummy offset and size.
27468 (enum may_trap_p_flags): Remove.
27469 (may_trap_p_1): Pass size from MEM_SIZE.
27470
27471 PR rtl-optimization/38921
27472 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
27473 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
27474 * rtlanal.c (may_trap_after_code_motion_p): Delete.
27475 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
27476
27477 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
27478
27479 AVX Programming Reference (January, 2009)
27480 * config/i386/sse.md (*vpclmulqdq): New.
27481
27482 2009-02-04 Jakub Jelinek <jakub@redhat.com>
27483
27484 PR tree-optimization/38977
27485 PR gcov-profile/38292
27486 * calls.c (special_function_p): Disregard __builtin_ prefix.
27487
27488 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
27489
27490 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
27491 non-indexable addresses even before reload.
27492
27493 2009-02-03 Joseph Myers <joseph@codesourcery.com>
27494
27495 PR c/29129
27496 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
27497 as having variable size. Do not give an error for unnamed
27498 parameters with [*] declarators. Give a warning for type names
27499 with [*] declarators and mark them as variable size.
27500 * c-parser.c (c_parser_sizeof_expression): Do not give an error
27501 for sizeof applied to [*] type names.
27502
27503 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
27504
27505 PR C++/36607
27506 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
27507
27508 2009-02-03 Jakub Jelinek <jakub@redhat.com>
27509
27510 * gcc.c (process_command): Update copyright notice dates.
27511 * gcov.c (print_version): Likewise.
27512 * gcov-dump.c (print_version): Likewise.
27513 * mips-tfile.c (main): Likewise.
27514 * mips-tdump.c (main): Likewise.
27515
27516 2009-02-03 Joseph Myers <joseph@codesourcery.com>
27517
27518 PR c/35433
27519 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
27520 for composite type involving a zero-length array type.
27521
27522 2009-02-03 Jakub Jelinek <jakub@redhat.com>
27523
27524 PR target/35318
27525 * function.c (match_asm_constraints_1): Skip over
27526 initial optional % in the constraint.
27527
27528 PR inline-asm/39059
27529 * c-parser.c (c_parser_postfix_expression): If fixed point is not
27530 supported, don't accept FIXED_CSTs.
27531 * c-decl.c (finish_declspecs): Error if fixed point is not supported
27532 and _Sat is used without _Fract/_Accum. Set specs->type to
27533 integer_type_node for cts_fract/cts_accum if fixed point is not
27534 supported.
27535
27536 2009-02-02 Catherine Moore <clm@codesourcery.com>
27537
27538 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
27539
27540 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27541
27542 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
27543 (ABI_HAS_64BIT_SYMBOLS): Use it.
27544 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
27545
27546 2009-02-02 Paul Brook <paul@codesourcery.com>
27547
27548 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
27549
27550 2009-02-02 Jakub Jelinek <jakub@redhat.com>
27551
27552 PR inline-asm/39058
27553 * recog.h (asm_operand_ok): Add constraints argument.
27554 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
27555 recurse on matching constraint.
27556 (check_asm_operands): Pass constraints as 3rd argument to
27557 asm_operand_ok. Don't look up matching constraint here.
27558 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
27559 to asm_operand_ok.
27560
27561 2009-02-02 Ben Elliston <bje@au.ibm.com>
27562
27563 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
27564 TARGET_NARROW_VOLATILE_BITFIELD macro names.
27565
27566 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27567
27568 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
27569 information. Remove some obsolete information. Reorganize.
27570
27571 * config/pa/fptr.c: Revert license to GPL 2.
27572 * config/pa/milli64.S: Likewise.
27573
27574 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
27575
27576 PR target/38904
27577 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
27578 LIBRARY name in, instead of hard-coding it.
27579 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
27580 extra target make frag to tmake_files according to EH model.
27581 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
27582 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
27583 frags that define makefile variable EH_MODEL appropriately.
27584 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
27585 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
27586 to "-sjlj" according to type of EH configured.
27587 (LIBGCC_SONAME): Concatenate it to shared library base name.
27588 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
27589 to "_sjlj" according to type of EH configured.
27590 (LIBGCC_SONAME): Concatenate it to shared library base name.
27591 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
27592 (SHLIB_LINK): Add missing semicolon to if-else construct.
27593 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
27594 string value of "pe_dll" command-line option.
27595 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
27596 (SHLIB_SONAME): Use it when overriding t-cygming default.
27597 (SHLIB_IMPLIB): Override t-cygming default.
27598 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
27599 string value of "pe_dll" command-line option.
27600
27601 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
27602
27603 PR target/38952
27604 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
27605 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
27606
27607 2009-01-31 Richard Guenther <rguenther@suse.de>
27608
27609 PR tree-optimization/38937
27610 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
27611 computing the transitive closure.
27612
27613 2009-01-30 Richard Guenther <rguenther@suse.de>
27614
27615 PR tree-optimization/39041
27616 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
27617 Propagate variable indices only if the types match for this stmt.
27618
27619 2009-01-30 Jakub Jelinek <jakub@redhat.com>
27620
27621 PR target/39013
27622 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
27623 inline but never defined.
27624
27625 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
27626
27627 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
27628 (*insv_h_di_reg_extimm): New insn.
27629 (*insv_l<mode>_reg_extimm): New insn.
27630
27631 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
27632
27633 * config/picochip/picochip.c (flag_conserve_stack): set
27634 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
27635 fconserve-stack. Reduce call-overhead used by inliner.
27636
27637 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
27638
27639 PR/38157
27640 * common.opt (flag_conserve_stack): Initialised to zero.
27641
27642 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
27643
27644 PR/39002
27645 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
27646 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
27647 method.
27648
27649 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
27650
27651 * ira-color.c (allocno_reload_assign): Update comments.
27652 * regmove.c (regmove_optimize): Likewise.
27653
27654 * ra.h: Removed.
27655
27656 2009-01-29 Robert Millan <rmh@aybabtu.com>
27657
27658 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
27659 * config/i386/kopensolaris-gnu.h: New file. Undefine
27660 `MD_UNWIND_SUPPORT'.
27661 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
27662
27663 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
27664
27665 PR tree-optimization/39007
27666 * tree-loop-distribution.c (generate_builtin): Use
27667 recompute_dominator to compute the immediate dominator of the
27668 basic block just after the loop.
27669
27670 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27671
27672 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
27673 (ASM_OUTPUT_DWARF_PCREL): Define.
27674
27675 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
27676
27677 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
27678 * doc/passes.texi: Remove entries about regclass, local-alloc, and
27679 global. Modify entries about regmove and IRA.
27680
27681 * ra-conflict.c: Remove the file.
27682
27683 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
27684
27685 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
27686 (pass_regclass_init): Rename to pass_reginfo_init.
27687
27688 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
27689
27690 * toplev.h (flag_ira): Remove.
27691
27692 * caller-save.c (setup_save_areas): Remove flag_ira.
27693
27694 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
27695
27696 * global.c: Remove the file.
27697
27698 * opts.c (decode_options): Remove flag_ira.
27699
27700 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
27701
27702 * regmove.c: Modify file description.
27703 (find_use_as_address, try_auto_increment): Define them only if
27704 AUTO_INC_DEC is defined.
27705 (replacement_quality, replace_in_call_usage, fixup_match_1,
27706 stable_and_no_regs_but_for_p): Remove.
27707 (reg_set_in_bb): Make it static.
27708 (regmove_optimize): Remove flag_ira and code which worked for
27709 !flag_ira.
27710
27711 * local-alloc.c: Remove the file.
27712
27713 * common.opt (fira): Remove.
27714
27715 * ira.c: Include except.h.
27716 (eliminable_regset): Move from global.c.
27717 (mark_elimination): Ditto. Remove flag_ira.
27718 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
27719 equiv_mem_modified, validate_equiv_mem_from_store,
27720 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
27721 contains_replace_regs, memref_referenced_p, memref_used_between_p,
27722 no_equiv, recorded_label_ref): Move from local-alloc.c.
27723 (update_equiv_regs): Ditto. Make it static.
27724 (print_insn_chain, print_insn_chains): Move it from global.c.
27725 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
27726 (build_insn_chain): Ditto. Make it static.
27727 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
27728 Rename to init_live_subregs.
27729 (gate_ira): Remove flag_ira.
27730
27731 * regclass.c: Rename reginfo.c. Change file description.
27732 (FORBIDDEN_INC_DEC_CLASSES): Remove.
27733 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
27734 (init_reg_sets_1): Remove code for evaluation of
27735 reg_class_superclasses and losing_caller_save_reg_set.
27736 (init_regs): Remove init_reg_autoinc.
27737 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
27738 ok_for_base_p_nonstrict): Remove.
27739 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
27740 (pass_regclass_init): Rename to pass_reginfo_init. Modify
27741 corresponding entries.
27742 (dump_regclass, record_operand_costs, scan_one_insn,
27743 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
27744 record_address_regs, auto_inc_dec_reg_p): Remove.
27745 (gt-regclass.h): Rename to gt-reginfo.h.
27746
27747 * rtl.h (dump_global_regs, retry_global_alloc,
27748 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
27749
27750 * Makefile.in (RA_H): Remove.
27751 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
27752 Rename regclass.o to reginfo.o.
27753 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
27754 gt-reginfo.h.
27755 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
27756 (GTFILES): Rename regclass.c to reginfo.c.
27757
27758 * passes.c (init_optimization_passes): Remove pass_local_alloc and
27759 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
27760
27761 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
27762 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
27763 Remove flag_ira.
27764 (finish_spills): Ditto. Remove code for !flag_ira.
27765
27766 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
27767
27768 PR middle-end/35854
27769 * doc/invoke.texi (rtl debug options): Complete rewrite.
27770 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
27771 to auto_inc_dec".
27772 * mode-switching.c (pass_mode_switching): Rename pass from
27773 "mode-sw" to "mode_sw".
27774 * except.c (pass_convert_to_eh_ranges): Rename pass from
27775 "eh-ranges" to "eh_ranges".
27776 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
27777 to "subreg1".
27778
27779
27780 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
27781 Alexander Monakov <amonakov@ispras.ru>
27782
27783 PR middle-end/38857
27784 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
27785 register.
27786 (move_exprs_to_boundary): Change return type and pass through
27787 should_move from move_op. Relax assert. Update usage ...
27788 (schedule_expr_on_boundary): ... here. Use should_move instead of
27789 cant_move.
27790 (move_op_orig_expr_found): Indicate that insn was disconnected from
27791 stream.
27792 (code_motion_process_successors): Do not call after_merge_succs
27793 callback if original expression was not found when traversing any of
27794 the branches.
27795 (code_motion_path_driver): Change return type. Update prototype.
27796 (move_op): Update comment. Add a new parameter (should_move). Update
27797 prototype. Set *should_move based on indication provided by
27798 move_op_orig_expr_found.
27799
27800 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
27801
27802 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
27803 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
27804 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
27805 * config/rs6000/rs6000.c (rs6000_override_options): Default
27806 avoid-indexed-addresses on for Power6, off for everything else.
27807 (avoiding_indexed_address_p): New function.
27808 (rs6000_legitimize_address): Use it.
27809 (rs6000_legitimate_address): Likewise.
27810 * config/rs6000/rs6000.md (movXX_updateX): Likewise
27811
27812 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
27813
27814 PR tree-optimization/38997
27815 * tree-loop-distribution.c (generate_memset_zero): Use
27816 POINTER_PLUS_EXPR for a pointer addition.
27817
27818 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
27819
27820 * config/s390/s390.md (bswap<mode>2): New pattern added.
27821
27822 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
27823
27824 * config/s390/s390.md (*tls_load_31): Added type attribute.
27825
27826 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
27827
27828 * config/s390/s390.md: Fix a few comments.
27829
27830 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
27831
27832 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
27833 (*tm<mode>_full): Fixed z10prop attribute.
27834 (*tst<mode>_extimm): Fixed z10prop attribute.
27835 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
27836 (*tstqiCCT_cconly): Fixed z10prop attribute.
27837 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
27838 (*movsi_larl): Fixed z10prop attribute.
27839 (*movsi_zarch): Fixed z10prop attribute.
27840 (*movsi_eas): Fixed z10prop attribute.
27841 (*movhi): Fixed z10prop attribute.
27842 (*movqi): Fixed z10prop attribute.
27843 (*movstrictqi): Fixed z10prop attribute.
27844 (*mov<mode>): Fixed z10prop attribute.
27845 (*movcc): Fixed z10prop attribute.
27846 (*sethighpartdi_64): Fixed z10prop attribute.
27847 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
27848 (*negdi2_sign_cc): Fixed z10prop attribute.
27849 (*negdi2_sign): Fixed z10prop attribute.
27850 (*absdi2_sign_cc): Fixed z10prop attribute.
27851 (*absdi2_sign): Fixed z10prop attribute.
27852 (*negabsdi2_sign_cc): Fixed z10prop attribute.
27853 (*negabsdi2_sign): Fixed z10prop attribute.
27854 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
27855 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
27856 (doloop_si64): Fixed z10prop attribute.
27857 (doloop_si31): Fixed z10prop attribute.
27858 (doloop_long): Fixed z10prop attribute.
27859 (indirect_jump): Fixed z10prop attribute.
27860 (nop): Fixed z10prop attribute.
27861 (main_base_64): Fixed z10prop attribute.
27862 (reload_base_64): Fixed z10prop attribute.
27863
27864 2009-01-28 Jakub Jelinek <jakub@redhat.com>
27865
27866 PR rtl-optimization/38740
27867 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
27868 if !optimize.
27869 * config/mips/mips.c (mips_reorg): Likewise.
27870
27871 2009-01-28 Richard Guenther <rguenther@suse.de>
27872
27873 PR tree-optimization/38926
27874 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
27875 with the correct value id to a value.
27876 (do_regular_insertion): Use the value number of edoubleprime
27877 for the value number of the expr.
27878
27879 Revert
27880 2008-08-21 Richard Guenther <rguenther@suse.de>
27881
27882 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
27883 a PHI ask VN if it is already available.
27884 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
27885 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
27886
27887 2009-01-28 Jakub Jelinek <jakub@redhat.com>
27888
27889 PR middle-end/38934
27890 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
27891 set to varying whenever max has TREE_OVERFLOW set, similarly
27892 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
27893
27894 2009-01-28 Richard Guenther <rguenther@suse.de>
27895
27896 PR middle-end/38908
27897 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
27898 uninitialized aggregate uses in call arguments.
27899
27900 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
27901
27902 PR tree-optimization/38984
27903 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
27904 the nothing_id variable if -fno-delete-null-pointer-checks.
27905
27906 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
27907
27908 PR target/38988
27909 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
27910 (set_got_offset_rex64): Ditto.
27911
27912 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
27913
27914 PR target/38941
27915 * doc/extend.texi: Improve local variable with asm reg.
27916
27917 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
27918
27919 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
27920 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
27921 was not supplied then set warn_packed_bitfield_compat to the
27922 default value of 1.
27923 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
27924 against 1.
27925
27926 2009-01-27 Richard Guenther <rguenther@suse.de>
27927
27928 PR tree-optimization/38503
27929 * cfgexpand.c (expand_gimple_basic_block): Ignore
27930 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
27931 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
27932 variables that cannot have TBAA applied.
27933 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
27934 statements.
27935
27936 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
27937
27938 PR middle-end/38969
27939 * calls.c (initialize_argument_information): Do not wrap complex
27940 arguments in SAVE_EXPR.
27941
27942 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
27943
27944 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
27945 (INSTALL_LIBGCC): Revert typo commit.
27946
27947 2009-01-26 Richard Guenther <rguenther@suse.de>
27948
27949 PR tree-optimization/38745
27950 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
27951 from special handling.
27952
27953 2009-01-26 Richard Guenther <rguenther@suse.de>
27954
27955 PR tree-optimization/38745
27956 * tree-ssa.c (execute_update_addresses_taken): Do not include
27957 variables that cannot possibly be a register in not_reg_needs.
27958 Do not clear TREE_ADDRESSABLE on vars that may not become
27959 registers.
27960 * tree-ssa.c (update_alias_info_1): Include those in the set
27961 of addressable vars.
27962
27963 2009-01-26 Richard Guenther <rguenther@suse.de>
27964
27965 PR middle-end/38851
27966 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
27967 * tree-ssa-dse.c: Include langhooks.h
27968 (execute_simple_dse): Remove stores with zero size.
27969
27970 2009-01-24 Jakub Jelinek <jakub@redhat.com>
27971
27972 PR c/38957
27973 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
27974 as PLUS_EXPR.
27975
27976 2009-01-24 Julian Brown <julian@codesourcery.com>
27977
27978 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
27979 config/arm/linux-atomic.c.
27980 * config/arm/linux-atomic.c: New.
27981
27982 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
27983
27984 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
27985 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
27986 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
27987
27988 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
27989
27990 PR c/38938
27991 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
27992 properly.
27993
27994 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
27995
27996 PR tree-optimization/38953
27997 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
27998 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
27999 (gloog): Split the exit of the scop when the scop exit is a loop exit.
28000 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
28001 changed the CFG.
28002
28003 2009-01-24 Paul Brook <paul@codesourcery.com>
28004
28005 * config/arm/neon.md (neon_type): Move to arm.md.
28006 (neon_mov<VSTRUCT>): Add neon_type attribute.
28007 * config/arm/arm.md (neon_type): Move to here.
28008 (conds): Add "unconditioal" and use as default for NEON insns.
28009
28010 2009-01-24 Ben Elliston <bje@au.ibm.com>
28011
28012 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
28013 void *' warning from -Wc++-compat.
28014 * Makefile.in (dominance.o-warn): Remove.
28015
28016 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
28017
28018 PR tree-optimization/38932
28019 * fold-const.c (fold_unary_ignore_overflow): New.
28020 * tree.h (fold_unary_ignore_overflow): Declare.
28021 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
28022 * tree-ssa-sccvn.c (visit_reference_op_load,
28023 simplify_unary_expression): Likewise.
28024
28025 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
28026
28027 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
28028 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
28029 regardless of their type.
28030 * c-common.c (handle_packed_attribute): Don't ignore packed on
28031 bitfields.
28032 * c.opt (Wpacked-bitfield-compat): New warning option.
28033 * stor-layout.c (place_field): Warn if offset of a field changed.
28034 * doc/extend.texi (packed): Mention the ABI change.
28035 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
28036 (Warning Options): Add it to the list.
28037
28038 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
28039
28040 * c-opts.c (c_common_post_options): Fix a typo in comments.
28041
28042 2009-01-22 Steve Ellcey <sje@cup.hp.com>
28043
28044 PR middle-end/38615
28045 * gimplify.c (gimplify_init_constructor): Fix promotion of const
28046 variables to static.
28047 * doc/invoke.texi (-fmerge-all-constants): Update description.
28048
28049 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
28050
28051 PR target/38931
28052 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
28053 (*movdi_1_rex64): Use type "mmx" for alternative 5.
28054
28055 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
28056
28057 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
28058 a word boundary.
28059 (LOCAL_ALIGNMENT): Similarly.
28060
28061 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
28062 Joseph Myers <joseph@codesourcery.com>
28063
28064 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
28065 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
28066 * config/arm/arm-tune.md: Regenerate.
28067 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
28068 -march=iwmmxt2.
28069
28070 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
28071
28072 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
28073 version number to five.
28074
28075 2009-01-22 Dodji Seketeli <dodji@redhat.com>
28076
28077 PR c++/38930
28078 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
28079 * c-common.c (set_underlying_type): Likewise.
28080 (is_typedef_decl ): Likewise
28081 * tree.h: Likewise
28082 (set_underlying_type): Likewise.
28083 (is_typedef_type): Likewise.
28084
28085 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
28086
28087 PR middle-end/38587
28088 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
28089 crossing setjmps.
28090
28091 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
28092
28093 PR bootstrap/37660
28094 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
28095 (LIBGCC_SPEC): Don't define.
28096 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
28097
28098 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
28099
28100 PR rtl-optimization/38879
28101 * alias.c (base_alias_check): Unaligned access via AND address can
28102 alias all surrounding object types except those with sizes equal
28103 or wider than the size of unaligned access.
28104
28105 2009-01-21 Dodji Seketeli <dodji@redhat.com>
28106
28107 PR c++/26693
28108 * c-decl.c (clone_underlying_type): Move this ...
28109 * c-common.c (set_underlying_type): ... here.
28110 Also, make sure the function properly sets TYPE_STUB_DECL() on
28111 the newly created typedef variant type.
28112 (is_typedef_decl ): New entry point.
28113 * tree.h: Added a new member member_types_needing_access_check to
28114 struct tree_decl_non_common.
28115 (set_underlying_type): New entry point.
28116 (is_typedef_type): Likewise.
28117
28118 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
28119
28120 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
28121 Check whether two instructions have memory references that
28122 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
28123 are helper functions for traversing.
28124 * alias.h (insn_alias_sets_confilict_p): New prototypes.
28125 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
28126 not to draw dependency edge for instructions with non-conflicting
28127 alias sets.
28128
28129 2009-01-20 Joseph Myers <joseph@codesourcery.com>
28130
28131 PR other/38758
28132 * longlong.h: Update copyright years. Use soft-fp license notice.
28133 Sync __clz_tab declaration with glibc.
28134
28135 2009-01-20 Steve Ellcey <sje@cup.hp.com>
28136
28137 PR target/30687
28138 * doc/extend.texi (syscall_linkage): New.
28139 (version_id): Modify.
28140
28141 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
28142 Richard Guenther <rguenther@suse.de>
28143
28144 PR tree-optimization/38747
28145 PR tree-optimization/38748
28146 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
28147 conversion if the base address is an indirect reference and the
28148 aliasing sets could cause issues.
28149
28150 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
28151
28152 * common.opt (fgraphite, fgraphite-identity): Add comment for
28153 explaining why these options are not documented.
28154
28155 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
28156
28157 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
28158 gimple_call_lhs is NULL.
28159
28160 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
28161
28162 PR target/38868
28163 * emit-rtl.c (adjust_address_1): Make sure memref is never
28164 overwritten.
28165
28166 2009-01-20 Ben Elliston <bje@au.ibm.com>
28167
28168 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
28169 const qualifier from arg parameter. Remove unnecessary cast to char *.
28170 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
28171 const qualifier from arg 2.
28172
28173 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
28174
28175 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
28176
28177 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
28178
28179 PR c/38869
28180 * rtl.h (reinit_regs): New prototype.
28181 * regclass.c: Include ira.h.
28182 (reinit_regs): New.
28183 * Makefile.in (regclass.o): Add ira.h.
28184 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
28185
28186 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
28187
28188 PR target/38736
28189 * c-common.c (handle_aligned_attribute): Use
28190 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
28191 default alignment value.
28192
28193 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
28194
28195 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
28196 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
28197
28198 * doc/extend.texi: Update __attribute__ ((aligned)). Document
28199 __BIGGEST_ALIGNMENT__.
28200
28201 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
28202
28203 2009-01-18 Richard Guenther <rguenther@suse.de>
28204
28205 PR tree-optimization/38819
28206 * tree-flow.h (operation_could_trap_helper_p): Declare.
28207 * tree-eh.c (operation_could_trap_helper_p): Export.
28208 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
28209 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
28210 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
28211 are about to insert a possibly trapping instruction and fail
28212 in this case.
28213
28214 2009-01-18 Andreas Schwab <schwab@suse.de>
28215
28216 * doc/install.texi (Configuration): Remove obsolete paragraph
28217 about use of --with-gnu-ld with --with-gnu-as.
28218
28219 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
28220
28221 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
28222 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
28223 Follow spelling conventions.
28224
28225 2009-01-18 Ben Elliston <bje@au.ibm.com>
28226
28227 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
28228 C++ warning about implicit conversion from void * to struct
28229 bitmap_head_def *.
28230 (bitmap_obstack_free): Likewise for bitmap_element *.
28231 * Makefile.in (bitmap.o-warn): Remove.
28232
28233 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
28234
28235 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
28236
28237 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
28238 Tobias Grosser <tobi.grosser@amd.com>
28239
28240 * graphite.c (graphite_trans_scop_block): Do not block single
28241 nested loops.
28242
28243 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
28244
28245 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
28246 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
28247 test with assertion.
28248
28249 2009-01-16 Richard Guenther <rguenther@suse.de>
28250
28251 PR tree-optimization/38835
28252 PR middle-end/36227
28253 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
28254 and INT + PTR -> (INT)(PTR p+ INT) folding.
28255 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
28256
28257 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
28258
28259 PR target/38554
28260 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
28261 the subreg from a lowpart subreg if it is also casting the value.
28262
28263 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
28264 Tobias Grosser <tobi.grosser@amd.com>
28265
28266 * graphite.c (compare_prefix_loops): New.
28267 (build_scop_canonical_schedules): Rewritten.
28268 (graphite_transform_loops): Move build_scop_canonical_schedules
28269 after build_scop_iteration_domain.
28270
28271 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
28272 Tobias Grosser <tobi.grosser@amd.com>
28273
28274 * graphite.c (add_conditions_to_domain): Add the loops to
28275 the dimension of the iteration domain. Do copy the domain
28276 only when it exists.
28277 (build_scop_conditions_1): Do not call add_conditions_to_domain.
28278 (add_conditions_to_constraints): New.
28279 (can_generate_code_stmt, can_generate_code): Removed.
28280 (gloog): Do not call can_generate_code.
28281 (graphite_transform_loops): Call add_conditions_to_constraints
28282 after building the iteration domain.
28283
28284 2009-01-16 Jakub Jelinek <jakub@redhat.com>
28285
28286 PR tree-optimization/38789
28287 * tree-ssa-threadedge.c
28288 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
28289 __builtin_constant_p.
28290
28291 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
28292
28293 * dce.c (delete_unmarked_insns): Reversed the order that insns are
28294 examined before deleting them.
28295
28296 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
28297
28298 * function.c (aggregate_value_p): Correctly extract the function
28299 type from CALL_EXPR_FN lookup.
28300
28301 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
28302
28303 * config/picochip/picochip.c (picochip_override_options): Revert
28304 CFI asm flag disable commited previously.
28305
28306 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
28307 Tobias Grosser <tobi.grosser@amd.com>
28308 Jan Sjodin <jan.sjodin@amd.com>
28309
28310 * graphite.c (scan_tree_for_params): On substractions negate
28311 all the coefficients of the term.
28312 (clast_to_gcc_expression_red): New. Handle reduction expressions
28313 of more than two operands.
28314 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
28315 (get_vdef_before_scop): Handle also the case of default definitions.
28316
28317 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
28318
28319 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
28320 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
28321 Also use them when walking CALL_INSN_FUNCTION_USAGE.
28322
28323 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
28324 Joey Ye <joey.ye@intel.com>
28325
28326 PR middle-end/37843
28327 * cfgexpand.c (expand_stack_alignment): Don't update stack
28328 boundary nor check incoming stack boundary here.
28329 (gimple_expand_cfg): Update stack boundary and check incoming
28330 stack boundary here.
28331
28332 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
28333
28334 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
28335
28336 2009-01-14 Jakub Jelinek <jakub@redhat.com>
28337
28338 PR rtl-optimization/38245
28339 * calls.c (expand_call): Add stack arguments to
28340 CALL_INSN_FUNCTION_USAGE even for pure calls (when
28341 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
28342 in regs and partially in memory or BLKmode arguments.
28343 (emit_library_call_value_1): Add stack arguments to
28344 CALL_INSN_FUNCTION_USAGE even for pure calls (when
28345 ACCUMULATE_OUTGOING_ARGS).
28346 * dce.c: Include tm_p.h.
28347 (find_call_stack_args): New function.
28348 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
28349 argument.
28350 (mark_insn): Call find_call_stack_args for CALL_Ps.
28351 (prescan_insns_for_dce): Walk insns backwards in bb rather than
28352 forwards. Allocate and free arg_stores bitmap if needed, pass it
28353 down to deletable_insn_p, don't mark stores set in arg_stores
28354 bitmap, clear the bitmap at the beginning of each bb.
28355 * Makefile.in (dce.o): Depend on $(TM_P_H).
28356
28357 2009-01-14 Michael Meissner <gnu@the-meissners.org>
28358
28359 PR target/22599
28360 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
28361 to make sure the insn is a conditional test (bug 22599). Reformat a
28362 few long lines.
28363
28364 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
28365
28366 PR middle-end/38431
28367 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
28368 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
28369 (gloog): Do not call cleanup_tree_cfg.
28370 (graphite_transform_loops): Call cleanup_tree_cfg after all
28371 scops have been code generated.
28372
28373 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
28374 * doc/gty.texi (Invoking the garbage collector): Added new node
28375 and section documenting ggc_collect.
28376
28377 2009-01-14 Richard Guenther <rguenther@suse.de>
28378
28379 PR tree-optimization/38826
28380 PR middle-end/38477
28381 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
28382 initialization notes only if we actually emitted a warning.
28383 (intra_create_variable_infos): Add constraints for a result decl
28384 that is passed by hidden reference.
28385 (build_pred_graph): Mark all related variables non-direct on
28386 address-taking.
28387
28388 2009-01-14 Nick Clifton <nickc@redhat.com>
28389
28390 * ira-conflicts.c: Include addresses.h for the definition of
28391 base_reg_class.
28392 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
28393 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
28394
28395 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
28396
28397 PR target/38811
28398 * Makefile.in (ira-lives.o): Add except.h.
28399
28400 * ira-lives.c: Include except.h.
28401 (process_bb_node_lives): Process can_throw_internal.
28402
28403 2009-01-13 Jakub Jelinek <jakub@redhat.com>
28404
28405 PR rtl-optimization/38774
28406 * combine.c (simplify_set): When undoing cc_use change, don't do
28407 PUT_CODE on the newly created comparison, but instead put back the
28408 old comparison.
28409
28410 2009-01-13 Joseph Myers <joseph@codesourcery.com>
28411
28412 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
28413 values. Remove duplicate arm8 entry.
28414
28415 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
28416
28417 PR tree-optimization/38786
28418 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
28419 the SSA_NAME case of expand_scalar_variables_expr.
28420 Set the type of an expression to the type of its assign statement.
28421 (expand_scalar_variables_expr): Also gather the scalar computation
28422 used to index the memory access. Do not pass loop_p.
28423 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
28424 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
28425 the gimple_stmt_iterator where it inserts new code.
28426 Do not pass loop_p.
28427 (copy_bb_and_scalar_dependences): Do not pass loop_p.
28428 (translate_clast): Update call to copy_bb_and_scalar_dependences.
28429
28430 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
28431
28432 * graphite.h (debug_value): Removed.
28433 * graphite.c (debug_value): Removed.
28434
28435 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
28436
28437 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
28438 ldrd/strd with two 32-bit instructions.
28439
28440 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
28441
28442 * config/arm/arm.c (struct processors): Pass for speed down into
28443 cost helper functions.
28444 (const_ok_for_op): Handle COMPARE and inequality nodes.
28445 (arm_rtx_costs_1): Rewrite.
28446 (arm_size_rtx_costs): Update prototype.
28447 (arm_rtx_costs): Pass speed down to helper functions.
28448 (arm_slowmul_rtx_costs): Rework cost calculations.
28449 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
28450 (arm_9e_rtx_costs): Likewise.
28451
28452 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
28453
28454 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
28455 relocations of local symbols wider than UNITS_PER_WORD are not valid.
28456 (alpha_legitimize_address): Do not split local symbols wider than
28457 UNITS_PER_WORD into HIGH/LO_SUM parts.
28458
28459 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
28460
28461 PR bootstrap/38580
28462 * gcc.c (process_command): Replace call to execvp with calls
28463 to pex_one and exit.
28464
28465 2009-01-03 Anatoly Sokolov <aesok@post.ru>
28466
28467 PR target/29141
28468 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
28469 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
28470 variant for devices with 3-byte PC.
28471 (__tablejump_elpm__): New.
28472
28473 2009-01-12 Jakub Jelinek <jakub@redhat.com>
28474
28475 PR c/32041
28476 * c-parser.c (c_parser_postfix_expression): Allow `->' in
28477 offsetof member-designator, handle it as `[0].'.
28478
28479 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28480
28481 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
28482 function when not using named sections on targets with named sections
28483 if branch distance is less than 262132.
28484
28485 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
28486
28487 * combine.c (combine_instructions): Recompute
28488 optimize_this_for_speed_p for each BB in the main combine loop.
28489
28490 2009-01-12 Tomas Bily <tbily@suse.cz>
28491
28492 PR middlend/38385
28493 * tree-loop-distribution.c (prop_phis): New function.
28494 (generate_builtin): Call prop_phis.
28495
28496 2009-01-12 Jakub Jelinek <jakub@redhat.com>
28497
28498 PR tree-optimization/38807
28499 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
28500 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
28501
28502 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
28503
28504 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
28505 subreg of op0 to the original op0.
28506
28507 2009-01-11 Laurent GUERBY <laurent@guerby.net>
28508
28509 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
28510
28511 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
28512
28513 PR debug/7055
28514 * mips-tfile.c (parse_def): Fix parsing of def strings
28515 starting with digits.
28516
28517 2009-01-10 Jakub Jelinek <jakub@redhat.com>
28518
28519 PR target/38695
28520 * config/arm/arm.c (arm_is_long_call_p): Don't call
28521 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
28522
28523 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
28524
28525 * regrename.c (regrename_optimize): Fix dumping.
28526 (find_oldest_value_reg): Preserve REG_POINTER.
28527 (copy_hardreg_forward_1): Likewise.
28528
28529 2009-01-09 Diego Novillo <dnovillo@google.com>
28530
28531 * gimple.h (struct gimple_statement_base) <uid>: Document
28532 the restrictions on its use.
28533 (gimple_uid): Tidy.
28534 (gimple_set_uid): Tidy.
28535
28536 2009-01-09 Jakub Jelinek <jakub@redhat.com>
28537
28538 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
28539 zero guard even if align_bytes != 0 and count is smaller than
28540 size_needed.
28541
28542 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
28543
28544 PR rtl-optimization/38495
28545 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
28546 (add_range_and_copies_from_move_list): Print all added ranges.
28547 Add ranges to memory optimized destination.
28548
28549 2009-01-09 Jakub Jelinek <jakub@redhat.com>
28550
28551 PR target/38686
28552 PR target/38708
28553 * config/i386/i386.c (override_options): Reject
28554 -mstringop-strategy=rep_8byte with -m32.
28555 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
28556 to 1. Do count comparison against epilogue_size_needed at compile
28557 time even when count_exp was constant forced into register. For
28558 size_needed don't jump to epilogue, instead just avoid aligning
28559 and invoke the body algorithm. If need_zero_guard, add zero guard
28560 even if count is non-zero, but smaller than size_needed + number of
28561 bytes that could be stored for alignment.
28562 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
28563 to 1. If need_zero_guard, add zero guard even if count is non-zero,
28564 but smaller than size_needed + number of bytes that could be stored
28565 for alignment. Compare size_needed with epilogue_size_needed instead
28566 of desired_align - align, don't adjust size_needed, pass
28567 epilogue_size_needed to the epilogue expanders.
28568
28569 PR c/35742
28570 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
28571
28572 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28573
28574 * pa.c (last_address): Change to unsigned.
28575 (update_total_code_bytes): Change argument to unsigned. Don't
28576 check if insn addresses are set.
28577 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
28578 addresses are not set.
28579 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
28580
28581 2009-01-09 Nick Clifton <nickc@redhat.com>
28582
28583 * config/sh/symbian.c: Replace uses of DECL_INLINE with
28584 DECL_DECLARED_INLINE_P.
28585
28586 2009-01-09 Jakub Jelinek <jakub@redhat.com>
28587
28588 PR middle-end/38347
28589 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
28590 GET_MODE (op0) in operand_subword_force calls.
28591
28592 PR middle-end/38771
28593 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
28594 fold_convert arg0 operands to TREE_TYPE (op0) first.
28595
28596 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
28597
28598 * params.def (ira-max-conflict-table-size): Decrease default value
28599 to 1000.
28600
28601 2009-01-08 Jakub Jelinek <jakub@redhat.com>
28602
28603 PR tree-optimization/37031
28604 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
28605 on parameter_set.
28606 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
28607 allocate it using gc instead of heap, use VEC_quick_push instead of
28608 VEC_safe_push.
28609 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
28610 instead of heap, use VEC_quick_push instead of VEC_safe_push.
28611 * tree-data-ref.h (struct access_matrix): Change matrix to gc
28612 allocated vector from heap allocated.
28613 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
28614 * tree-loop-linear.c (linear_transform_loops): Allocate nest
28615 vector only after perfect_loop_nest_depth call.
28616
28617 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
28618 Jan Sjodin <jan.sjodin@amd.com>
28619
28620 PR tree-optimization/38559
28621 * graphite.c (debug_value, copy_constraint,
28622 swap_constraint_variables, scale_constraint_variable, ): New.
28623 (get_lower_bound, get_upper_bound): Removed.
28624 (graphite_trans_bb_strip_mine): Clean up this code that works
28625 only for constant number of iterations. Fully copy upper and
28626 lower bound constraints, not only the constant part of them.
28627 * graphite.h (debug_value): Declared.
28628
28629 2009-01-08 Ira Rosen <irar@il.ibm.com>
28630
28631 PR tree-optimization/37194
28632 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
28633 Don't add the cost of cost model guard in prologue to scalar
28634 outside cost in case of known number of iterations.
28635
28636 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
28637 Alan Modra <amodra@bigpond.net.au>
28638
28639 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
28640 non-word-aligned REG+CONST addressing.
28641
28642 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
28643
28644 PR target/38706
28645 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
28646 free_after_compilation when outputting a thunk.
28647 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
28648 Do not call free_after_compilation here.
28649
28650 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
28651
28652 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
28653 (ix86_valid_target_attribute_inner_p): Ditto.
28654
28655 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
28656
28657 PR tree-optimization/38492
28658 PR tree-optimization/38498
28659 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
28660 * tree-chrec.h (scev_is_linear_expression): Declared.
28661 * graphite.c (graphite_cannot_represent_loop_niter): New.
28662 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
28663 (graphite_loop_normal_form): Use gcc_assert.
28664 (scan_tree_for_params): Use CASE_CONVERT.
28665 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
28666 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
28667 Use gcc_assert. Discard scops that contain unhandled cases.
28668 (build_scop_conditions): Return a boolean status for unhandled cases.
28669 (strip_mine_profitable_p): Print the loop number, not its depth.
28670 (is_interchange_valid): Pass the depth of the loop nest, don't
28671 recompute it wrongly.
28672 (graphite_trans_bb_block): Same.
28673 (graphite_trans_bb_block): Print tentative of loop blocking.
28674 (graphite_trans_scop_block): Do not print that the loop has been
28675 blocked.
28676 (graphite_transform_loops): Do not handle scops that contain condition
28677 scalar phi nodes.
28678
28679 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
28680
28681 AVX Programming Reference (December, 2008)
28682 * config/i386/avxintrin.h (_mm256_stream_si256): New.
28683 (_mm256_stream_pd): Likewise.
28684 (_mm256_stream_ps): Likewise.
28685
28686 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
28687 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
28688 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
28689 (bdesc_special_args): Add __builtin_ia32_movntdq256,
28690 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
28691 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
28692 (ix86_expand_special_args_builtin): Likewise.
28693
28694 * config/i386/sse.md (AVXMODEDI): New.
28695 (avx_movnt<mode>): Likewise.
28696 (avx_movnt<mode>): Likewise.
28697 (<sse>_movnt<mode>): Remove AVX support.
28698 (sse2_movntv2di): Likewise.
28699
28700 2009-01-07 Richard Guenther <rguenther@suse.de>
28701
28702 PR middle-end/38751
28703 * fold-const.c (extract_muldiv): Remove obsolete comment.
28704 (fold_plusminus_mult_expr): Undo MINUS_EXPR
28705 to PLUS_EXPR canonicalization for the canonicalization.
28706
28707 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
28708
28709 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
28710 hosted cross-compilers generating less efficient code.
28711
28712 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
28713
28714 * function.h (rtl_data): Add a dbr_scheduled_p field.
28715 * reorg.c (dbr_schedule): Set it.
28716 (gate_handle_delay_slots): Check it.
28717 * config/mips/mips.c (mips_base_delayed_branch): Delete.
28718 (mips_reorg): Check flag_delayed_branch instead of
28719 mips_base_delayed_branch.
28720 (mips_override_options): Don't set mips_base_delayed_branch
28721 or flag_delayed_branch.
28722
28723 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
28724
28725 PR rtl-optimization/38426.
28726 * ira.c (ira): Set current_function_is_leaf earlier.
28727
28728 2009-01-06 Jakub Jelinek <jakub@redhat.com>
28729
28730 PR rtl-optimization/38722
28731 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
28732 too early, only set a flag and modify after last possible
28733 undo_all point.
28734
28735 2009-01-06 Janis Johnson <janis187@us.ibm.com>
28736
28737 PR c/34252
28738 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
28739 * real.c (decimal_single_format): Correct values of emin and emax.
28740 (decimal_double_format): Ditto.
28741 (decimal_quad_format): Ditto.
28742 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
28743 computation of DECnn_MIN and DECnn_MAX for corrected values of
28744 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
28745 __DECnn_MIN__, and adjust its computation for the corrected value
28746 of emin.
28747
28748 2009-01-06 Jan Hubicka <jh@suse.cz>
28749
28750 PR target/38744
28751 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
28752
28753 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
28754
28755 * doc/contrib.texi (Contributors): Slightly adjust the end note.
28756 Add Robert Clark to the list of testers.
28757
28758 2009-01-06 Jan Hubicka <jh@suse.cz>
28759 Kai Tietz <kai.tietz@onevision.com>
28760
28761 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
28762 * config/i386/i386.c (ix86_expand_call): Add clobbers.
28763
28764 2009-01-06 Jan Hubicka <jh@suse.cz>
28765 Kai Tietz <kai.tietz@onevision.com>
28766
28767 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
28768 for w64 ABI.
28769 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
28770 (ix86_nsaved_regs): Count only general purpose regs.
28771 (ix86_nsaved_sseregs): New.
28772 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
28773 to 16 for w64; compute padding and size of sse reg save area.
28774 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
28775 general purpose regs.
28776 (ix86_emit_save_sse_regs_using_mov): New.
28777 (ix86_expand_prologue): Save SSE regs if needed.
28778 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
28779 (ix86_emit_restore_sse_regs_using_mov): New.
28780 (ix86_expand_epilogue): Save SSE regs if needed.
28781
28782 2009-01-06 Jan Hubicka <jh@suse.cz>
28783 Kai Tietz <kai.tietz@onevision.com>
28784
28785 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
28786 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
28787 functions when accumulate outgoing args is off.
28788
28789 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
28790
28791 PR bootstrap/38742
28792 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
28793 before using pseudos_have_intersected_live_ranges_p.
28794
28795 * ira-int.h (ira_assert): Always define.
28796
28797 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
28798
28799 AVX Programming Reference (December, 2008)
28800 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
28801 (_mm256_permute2_pd): Likewise.
28802 (_mm_permute2_ps): Likewise.
28803 (_mm256_permute2_ps): Likewise.
28804 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
28805 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
28806
28807 * config/i386/i386.c (ix86_builtins): Remove
28808 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
28809 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
28810 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
28811 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
28812 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
28813 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
28814 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
28815 __builtin_ia32_vpermil2ps256.
28816 (ix86_init_mmx_sse_builtins): Updated.
28817 (ix86_expand_args_builtin): Likewise.
28818
28819 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28820
28821 * pa.c (output_call): Relocate non-jump insns in the delay slot of
28822 long absolute calls when generating PA 2.0 code.
28823
28824 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
28825
28826 PR rtl-optimization/38583
28827 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
28828
28829 * params.def (ira-max-conflict-table-size): New.
28830
28831 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
28832
28833 * ira.h (ira_conflicts_p): New external definition.
28834
28835 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
28836 table. Report this. Return result of building.
28837 (ira_build_conflicts): Use ira_conflicts_p. Check result of
28838 building conflict table.
28839
28840 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
28841 (ira_color): Use ira_conflicts_p.
28842
28843 * global.c: Include ira.h.
28844 (pseudo_for_reload_consideration_p, build_insn_chain): Use
28845 ira_conflicts_p.
28846
28847 * Makefile.in (global.o): Add ira.h.
28848
28849 * ira-build.c (mark_all_loops_for_removal,
28850 propagate_some_info_from_allocno): New.
28851 (remove_unnecessary_allocnos): Call
28852 propagate_some_info_from_allocno.
28853 (remove_low_level_allocnos): New.
28854 (remove_unnecessary_regions): Add parameter. Call
28855 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
28856 parameter to remove_unnecessary_regions.
28857 (ira_build): Remove all regions but root if the conflict table was
28858 not built. Update conflict hard regs for allocnos crossing calls.
28859
28860 * ira.c (ira_conflicts_p): New global.
28861 (ira): Define and use ira_conflicts_p.
28862
28863 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
28864 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
28865 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
28866
28867 2009-01-06 Ben Elliston <bje@au.ibm.com>
28868
28869 * gengtype-lex.l (YY_NO_INPUT): Define.
28870
28871 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
28872
28873 PR c/34911
28874 * c-common.c (handle_vector_size_attribute): Also reject
28875 BOOLEAN_TYPE types.
28876
28877 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
28878
28879 PR tree-optimization/38492
28880 * graphite.c (rename_map_elt, debug_rename_elt,
28881 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
28882 rename_map_elt_info, eq_rename_map_elts,
28883 get_new_name_from_old_name, bb_in_sese_p): Moved around.
28884 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
28885 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
28886 (sese_build_livein_liveouts): New.
28887 (new_sese, free_sese): New.
28888 (new_scop): Call new_sese.
28889 (free_scop): Call free_sese.
28890 (rename_variables_from_edge, rename_phis_end_scop): Removed.
28891 (register_old_new_names): Renamed register_old_and_new_names.
28892 (register_scop_liveout_renames, add_loop_exit_phis,
28893 insert_loop_close_phis, struct igp,
28894 default_liveout_before_guard, add_guard_exit_phis,
28895 insert_guard_phis, copy_renames): New.
28896 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
28897 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
28898 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
28899 (scop_adjust_phis_for_liveouts): New.
28900 (gloog): Call scop_adjust_phis_for_liveouts.
28901
28902 * graphite.h (struct sese): Documented. Added fields liveout,
28903 num_ver and livein.
28904 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
28905 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
28906 (struct scop): Added field liveout_renames.
28907 (SCOP_LIVEOUT_RENAMES): New.
28908
28909 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
28910
28911 PR tree-optimization/38510
28912 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
28913 (translate_clast): Call recompute_all_dominators before
28914 graphite_verify.
28915 (gloog): Call recompute_all_dominators before graphite_verify.
28916
28917 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
28918 Jan Sjodin <jan.sjodin@amd.com>
28919
28920 PR tree-optimization/38500
28921 * graphite.c (create_sese_edges): Call fix_loop_structure after
28922 splitting blocks.
28923
28924 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
28925
28926 * config.gcc: Add m32r*-*-rtems*.
28927 * config/m32r/rtems.h: New file.
28928
28929 2009-01-05 Ben Elliston <bje@au.ibm.com>
28930
28931 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
28932 (.po.pox): Likewise.
28933 (po/gcc.pot): Likewise.
28934
28935 2009-01-04 David S. Miller <davem@davemloft.net>
28936
28937 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
28938 (STARTING_FRAME_OFFSET): Always set to zero.
28939
28940 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
28941
28942 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
28943 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
28944 fixed-point types, and vectors of the same.
28945
28946 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
28947
28948 * config/mips/sync.md (*mb_barrier): Rename to...
28949 (*memory_barrier): ...this.
28950
28951 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
28952
28953 * doc/extend.texi (Function Attributes): Move @cindex after @item
28954 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
28955 and put in alphabetical order. Fix 'target' name and put in order.
28956 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
28957 typos.
28958
28959 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
28960
28961 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
28962 (memory_barrier): Expand as unspec instead of unspec_volatile.
28963 Remove mem:BLK from insn operands. Use Pmode scratch register.
28964 (*memory_barrier): Define as unspec instead of unspec_volatile.
28965 Use (match_dup 0) as input operand.
28966
28967 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
28968 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
28969 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
28970 scratch register. Remove operand 1.
28971 (*stbar): Define as unspec instead of unspec_volatile.
28972 Use (match_dup 0) as input operand, remove (const_int 8).
28973 (*membar): Define as unspec instead of unspec_volatile.
28974 Use (match_dup 0) as input operand, remove input operand 2.
28975
28976 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
28977 (memory_barrier): Expand as unspec instead of unspec_volatile.
28978 Remove mem:BLK from insn operands. Use Pmode scratch register.
28979 (*memory_barrier): Define as unspec instead of unspec_volatile.
28980 Use (match_dup 0) as input operand.
28981
28982 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
28983 Remove mem:BLK from insn operands. Use Pmode scratch register.
28984 Set volatile flag on operand 0.
28985 (*memory_barrier): New insn pattern.
28986
28987 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
28988 insn operands.
28989 (*memory_barrier): Use (match_dup 0) as input operand.
28990
28991 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
28992 Remove mem:BLK from insn operands. Use Pmode scratch register.
28993 Set volatile flag on operand 0.
28994 (*mb_internal): New insn pattern.
28995
28996 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
28997
28998 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
28999
29000 PR middle-end/38586
29001 * function.c (struct temp_slot): Move to the section of the file
29002 that deals with temp slots. Remove field 'address'.
29003 (temp_slot_address_table): New hash table of address -> temp slot.
29004 (struct temp_slot_address_entry): New struct, items for the table.
29005 (temp_slot_address_compute_hash, temp_slot_address_hash,
29006 temp_slot_address_eq, insert_temp_slot_address): Support functions
29007 for the new table.
29008 (find_temp_slot_from_address): Rewrite to use the new hash table.
29009 (remove_unused_temp_slot_addresses): Remove addresses of temp
29010 slots that have been made available.
29011 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
29012 worker function for remove_unused_temp_slot_addresses.
29013 (assign_stack_temp_for_type): Don't clear the temp slot address list.
29014 Add the temp slot address to the address -> temp slot map.
29015 (update_temp_slot_address): Update via insert_temp_slot_address.
29016 (free_temp_slots): Call remove_unused_temp_slot_addresses.
29017 (pop_temp_slots): Likewise.
29018 (init_temp_slots): Allocate the address -> temp slot map, or empty
29019 the map if it is already allocated.
29020 (prepare_function_start): Initialize temp slot processing.
29021
29022 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
29023
29024 PR middle-end/38584
29025 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
29026 Calculate the size of all stack vars assuming no packing of stack
29027 vars will happen, replacing a quadratic algorithm with a linear one.
29028
29029 2009-01-03 Jakub Jelinek <jakub@redhat.com>
29030
29031 PR target/38707
29032 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
29033 can't be used.
29034
29035 2009-01-03 Diego Novillo <dnovillo@google.com>
29036
29037 * doc/contrib.texi: Update contributions.
29038
29039 2009-01-03 Jakub Jelinek <jakub@redhat.com>
29040
29041 PR c++/38705
29042 * builtins.c (fold_builtin_memory_op): Give up if either operand
29043 is volatile. Set srctype or desttype to non-qualified version
29044 of the other type.
29045
29046 PR c/38700
29047 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
29048 and FUNCTION_DECLs.
29049
29050 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
29051
29052 PR rtl-optimization/35805
29053 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
29054 problem if fast dce is able to remove any instructions.
29055 * dce.c (dce_process_block): Fix dump message.
29056
29057 2009-01-02 Mark Mitchell <mark@codesourcery.com>
29058
29059 PR 33649
29060 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
29061
29062 2009-01-02 Jakub Jelinek <jakub@redhat.com>
29063
29064 PR middle-end/38690
29065 * tree-flow.h (op_code_prio, op_prio): New prototypes.
29066 * tree-pretty-print.c (op_code_prio): New function.
29067 (op_prio): No longer static. Use op_code_prio.
29068 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
29069 Use op_prio and op_code_prio to determine if () should be
29070 printed around operand(s) or not.
29071
29072 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
29073 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
29074 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
29075 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
29076 pp_character instead of pp_string for single letter printing.
29077
29078 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
29079
29080 * doc/extend.texi: Fix '#pragma GCC option' typo.
29081
29082 2009-01-02 Richard Guenther <rguenther@suse.de>
29083
29084 * doc/install.texi (--enable-checking): Mention different
29085 default for stage1.
29086 (--enable-stage1-checking): Document.
29087
29088 2009-01-01 Andrew Pinski <pinskia@gmail.com>
29089
29090 PR middle-end/30142
29091 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
29092 case to be an error.
29093
29094 2009-01-02 Ben Elliston <bje@au.ibm.com>
29095
29096 * config/fp-bit.h (pack_d): Constify argument.
29097 * config/fp-bit.c (makenan): Constify return type. Remove casts.
29098 (isnan): Constify argument.
29099 (isinf): Likewise.
29100 (iszero): Likewise.
29101 (pack_d): Likewise.
29102 (_fpadd_parts): Constify return type.
29103 (_fpmul_parts): Likewise.
29104 (_fpdiv_parts): Likewise.
29105
29106 2009-01-01 Jakub Jelinek <jakub@redhat.com>
29107
29108 PR c/36489
29109 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
29110 warn about overwriting initializer with side-effects or
29111 -Woverride-init if !IMPLICIT.
29112 (output_init_element): Likewise. Pass IMPLICIT down to
29113 add_pending_init.
29114 (process_init_element): Add IMPLICIT argument. Pass it down
29115 to output_init_element.
29116 (push_init_element, pop_init_level, set_designator): Adjust
29117 process_init_element callers.
29118 (set_nonincremental_init, set_nonincremental_init_from_string):
29119 Adjust add_pending_init callers.
29120 (output_pending_init_elements): Adjust output_init_element callers.
29121 * c-tree.h (process_init_element): Adjust prototype.
29122 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
29123 process_init_element callers.
29124
29125 \f
29126 Copyright (C) 2009 Free Software Foundation, Inc.
29127
29128 Copying and distribution of this file, with or without modification,
29129 are permitted in any medium without royalty provided the copyright
29130 notice and this notice are preserved.